/* ==============================
   CSS Vars
   ============================== */
:root {
    /* base */
    --bg-900: #0B0710;
    --bg-800: #1A0823;
    --border: #3C244F;

    --gift-card: #17151d;
    --gift-radius: 16px;
    --gift-gap: 20px;

    /* brand purple */
    --pri-700: #310c51;
    --pri-600: #6516B4;
    --pri-500: #7C2AE8;
    --pri-300: #B98AFF;

    /* text */
    --text: #dcdcdc;
    --text-muted: #D7CFF2;

    /* accents */
    --contrast: #B7F35D; /* gold CTA */
    --contrast-600: #93D94A;
    --contrast-on: #0B0710; /* текст на контрастной кнопке */
    --cyan: #22D3EE; /* опциональный холодный акцент */
    --fuchsia: #6C1EFF;

    /* gradients */
    --hero: radial-gradient(120% 120% at 80% 10%, #6C1EFF 0%, #2A0B3A 55%, #0B0710 100%);
    --panel: linear-gradient(180deg, #1A0823 0%, #0B0710 100%);

    --ag-gap: clamp(12px, 2vw, 24px);
    --ag-min: 340px; /* минимальная ширина карточки */
    --ag-radius: 3px;
    --ag-border: 1px solid rgba(255, 255, 255, .08);
    --ag-bg: rgba(255, 255, 255, .03);
    --card: rgb(14, 5, 18);
}

/* ==============================
   Base / Reset
   ============================== */
* {
    box-sizing: border-box;
}

/* Скрыть скроллбар глобально, но прокрутку оставить */
html {
    -ms-overflow-style: none; /* IE/старый Edge */
    scrollbar-width: none; /* Firefox */
}

html::-webkit-scrollbar {
    width: 0; /* Chrome/Edge/Safari/Opera */
    height: 0;
    background: transparent;
}

/* опционально: убить горизонтальный скроллбар, если он появляется */
body {
    overflow-x: hidden;
}


body{
    background:
        /* тёмная виньетка из углов */
            radial-gradient(120rem 90rem at -12% -12%, rgba(0,0,0,.72), transparent 58%) fixed,
            radial-gradient(120rem 90rem at 112% 112%, rgba(0,0,0,.74), transparent 58%) fixed,

                /* диагональная фиолетовая «полоса» */
            linear-gradient(137deg,
            color-mix(in oklab, var(--bg-900) 92%, black) 0%,
            color-mix(in oklab, var(--pri-700) 22%, var(--bg-900)) 27%,
            color-mix(in oklab, var(--pri-600) 38%, var(--bg-900)) 50%,
            color-mix(in oklab, var(--pri-700) 22%, var(--bg-900)) 73%,
            color-mix(in oklab, var(--bg-900) 92%, black) 100%
            ) fixed,

                /* базовый цвет */
            var(--bg-900);

    background-repeat: no-repeat, no-repeat, no-repeat;
    color: var(--text);
    font-family: Arial, sans-serif;
    margin: 0; padding: 0;
}

h2 {
    font-family: var(--nat-heading-font, inherit);
    font-size: clamp(42px, 3.2vw, 48px);
    line-height: 1.1;
    font-weight: 200;
    letter-spacing: .2px;
    margin: 10px 0 22px;
}

h2.wp-block-heading {
    margin-top: 50px;
}

.archive-grid h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

h3 {
    font-family: var(--nat-heading-font, inherit);
    font-size: 1.2rem;
    line-height: 1.2;
    font-weight: 400;
    letter-spacing: .2px;
}

a {
    text-decoration: none !important;
    color: var(--text);
}

p {
    color: var(--text);
    display: block;
    line-height: 1.6rem;
    margin: 1.6rem 0;
}

li {
    margin: 0 0 10px 0;
    list-style-type: none;
}

ul.wp-block-list li {
    list-style-type: disc;
}

ul.wp-block-list > li::marker,
ol.wp-block-list > li::marker {

    color: var(--pri-500);
    /* можно чуть увеличить размер "пули" или номера: */
    font-size: 1.1em;
}

img {
    height: auto;
    max-width: 100%;
}

.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==============================
   Layout helpers
   ============================== */
main#primary {
    padding-top: 110px;
}

.container {
    max-width: 1542px;
    margin: 0 auto;
    padding: 24px;
    font-family: Arial, sans-serif;
    font-size: 16px;
    letter-spacing: .05em !important;
}

.flex {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.grid {
    display: grid;
    grid-template-columns:1fr auto;
    gap: 24px;
}

.muted {
    color: var(--muted);
}

/* ==============================
   Site chrome
   ============================== */
/*
 * DIR: /wp-content/themes/your-theme/assets/css/hero.css
 * FILE: hero.css
 */

/* Контейнер HERO */
.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    overflow: clip;
}

/* Медиа-обёртка (слой под текстом) */
.hero__media {
    position: absolute;
    inset: 0;
    background: #0B0710; /* базовый тёмный фон под постер/видео */
}

/* По умолчанию отображаем DESKTOP, мобильную версию скрываем.
   В медиазапросе меняем местами. */
.hero__media--desktop {
    display: block;
}

.hero__media--mobile {
    display: none;
}

/* Само медиа (видео или картинка-постер) */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.03) brightness(0.9);
    opacity: 0; /* видео проявляем JS-ом */
    transition: opacity .35s ease-out;
    background: transparent;
}

/* Постер как <img> виден сразу */
.hero__poster {
    opacity: 1 !important;
}

/* Мягкая вуаль поверх медиа */
.hero__overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(120% 120% at 80% 10%,
    rgba(12, 0, 20, .35) 0%,
    rgba(5, 2, 12, .70) 55%,
    rgba(5, 2, 12, .92) 100%);
    z-index: 1;
}

/* Текстовые блоки поверх */
.hero__inner {
    position: relative;
    z-index: 2;
}

.hero__slogan {
    position: absolute;
    left: clamp(16px, 5vw, 64px);
    bottom: clamp(16px, 6vh, 80px);
    z-index: 3;

    max-width: min(940px, 92vw);
    padding: clamp(12px, 2vw, 24px) clamp(16px, 3vw, 32px);

    border: 1px solid rgba(255, 255, 255, .10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 5px;

    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    animation: heroFadeUp 2s ease-out both;
}

/* Если нужно сместить только иконку в слогане (не глобально все IMG) */
.hero__slogan img {
    position: relative;
    top: -50px;
    max-width: 120px;
}

/* Типографика */
.hero__kicker {
    display: block;
    font: 600 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .25em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: .4rem;
}

.hero__title {
    font-family: var(--nat-heading-font, inherit);
    font-size: clamp(42px, 3.2vw, 48px);
    line-height: 1.1;
    font-weight: 200;
    letter-spacing: .2px;
    margin: 0 0 .5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

.hero__desc {
    font: 500 clamp(14px, 1.4vw, 16px)/1.45 "Cormorant Garamond", Georgia, serif;
    opacity: .92;
    margin-top: 1rem;
}

/* Кнопка */
.hero .btn {
    float: right;
    text-align: center;
}

/* Анимация слогана */
@keyframes heroFadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Мобильная версия: показываем mobile, скрываем desktop.
   Видео НЕ скрываем — оно тоже может играть на мобайле (iOS: только muted+playsinline). */
@media (max-width: 768px) {


}


.brand {
    max-width: 100px;
}


/* Верхний уровень */
.nav .menu {
    display: flex;
    gap: 24px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav .menu > li {
    position: relative;
}

/* Ссылки */
.nav .menu a {
    display: inline-flex;
    align-items: center;
    padding: 10px 8px;
    text-decoration: none;
    transition: color .2s ease, opacity .2s ease;
}

/* Индикатор у пунктов с подпунктами — через mask + currentColor */
.nav .menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: .45rem;
    /* цвет стрелки теперь = currentColor (т.е. свойство color) */
    background-color: currentColor;
    /* маска-стрелка */
    -webkit-mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>") center / 12px 12px no-repeat;
    mask: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
  <path d='M6 9l6 6 6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>") center / 12px 12px no-repeat;

    transition: transform .2s ease;
}

.nav .menu-item-has-children > a::after {
    color: var(--text);
}

.nav li:hover > a::after,
.nav li.open > a::after {
    color: var(--text);
}


/* Выпадающее меню */
.nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    list-style: none;
    margin: 0;
    padding: 8px;
    background: #14141878;
    border: 1px solid var(--border, #26262b);
    border-radius: 5px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}

.nav .sub-menu > li > a {
    display: block;
    padding: 10px 12px;
    white-space: nowrap;
    border-radius: 5px;
}

.nav .sub-menu > li > a:hover {
    background: rgba(255, 255, 255, .06);
}

/* показать подменю при hover/focus (десктоп, клавиатура) */
.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu,
.nav li.open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
}

/* Повернуть стрелку когда меню открыто */
.nav li:hover > a::after,
.nav li.open > a::after,
.nav li:focus-within > a::after {
    transform: rotate(180deg);
}

/* Вложенные подменю (3-й уровень): выезжают вправо */
.nav .sub-menu .sub-menu {
    top: -8px;
    left: calc(100% + 8px);
}

.site-header {
    border-bottom: 1px solid transparent;
    transition: background .5s ease,
    border-color .5s ease,
    backdrop-filter .5s ease,
    -webkit-backdrop-filter .5s ease;
    position: absolute;
    inset-inline: 0;
    top: 0;
    z-index: 10;
    background: transparent;
}

.site-header.is-scrolled {
    background: color-mix(in oklab, var(--bg-800) 72%, transparent);
    border-bottom-color: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    background: color-mix(in oklab, var(--bg-800) 75%, transparent);
    backdrop-filter: blur(6px);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header.is-scrolled {
        background: color-mix(in oklab, var(--bg-800) 86%, transparent);
    }
}

body.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.site-header .container {
    padding: 1rem 0;
}


/* ==============================
   Grid & Card
   ============================== */
.natali-grid {
    display: grid;
    grid-template-columns:repeat(var(--natali-cols, 4), minmax(0, 1fr));
    gap: 20px;
}

.card {
    background: var(--card);
    border-radius: 5px;
    padding: 16px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
    border: 1px solid var(--border);
    transition: box-shadow .5s ease;
}

.card:hover {
    box-shadow: 1px 5px 244px rgb(124 36 177);
}

.card img {
    width: 100%;
    max-height: 420px;
    border-radius: 5px;
    object-fit: contain;
}

.card .price {
    font-weight: 700;
}

/* ==============================
   Content helpers
   ============================== */
.article .entry,
.program .entry {
    margin-top: 12px;
}

/* ==============================
   Buttons
   ============================== */
.btn {
    gap: 1rem;
    display: flex;
    padding: 14px 20px;
    border-radius: 5px;
    font-weight: 200;
    font-size: 16px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    transition: color .3s ease,
    box-shadow .3s ease;
    align-items: center;
    justify-content: center;
}

.btn:hover,
.btn:focus-visible {
    box-shadow: 0 0 24px -6px var(--pri-300);
    color: var(--link-color);
    outline: none;
}

.btn:active {
    box-shadow: 0 0 44px -6px var(--pri-300);
}

.btn--ghost {
    background: rgba(255, 255, 255, .06);
    color: #eaeaea;
    border: 1px solid #2a2a34;
}

.btn--icon {
    padding: 8px 10px;
    border-radius: 999px;
    line-height: 0;
    border: 1px solid var(--pri-700);
}

.btn--icon svg {
    width: 22px;
    height: 22px;
}


/* ==============================
   Forms
   ============================== */
.form .row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.form input {
    background: #0f0f13;
    border: 1px solid #272732;
    border-radius: 5px;
    color: var(--text);
    padding: 10px 12px;
    min-width: 240px;
}

.form .submit {
    margin-top: 12px;
}

/* ==============================
   Home enhancements / misc
   ============================== */
.snap {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    gap: 16px;
    scroll-snap-type: x mandatory;
}

.snap > .card {
    scroll-snap-align: start;
}

details {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 10px;
    margin: 6px 0;
}

.cta {
    text-align: center;
}

.services-menu {
    flex-wrap: wrap;
}

.site-footer {
    background: #1d1a2059;
    padding: 3rem 0 0 0;
}

.footer__copywriter {
    margin: 2rem 0;
    display: flex;
    justify-content: space-between;
}

/* ==============================
   Sections
   ============================== */
.section {
    width: 100%;
    margin: 0 0 4rem 0;
}

.section__head {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--nat-heading-font, inherit);
    font-size: clamp(42px, 3.2vw, 48px);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: .2px;
    margin: 10px 0 22px;
}

.section__subtitle {
    display: flex;
    justify-content: space-between;
}

a.link-all {
    color: var(--pri-500);
}

a.link-all:hover {
    color: var(--pri-300);
}

.section__more {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}


/* Natali breadcrumbs — горизонтально + разделитель */
.nat-breadcrumbs {
    margin-top: 1em;
}

.nat-breadcrumbs .nat-bc-list {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 0; /* разделитель сами рисуем */
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.nat-breadcrumbs .nat-bc-item {
    display: inline-flex;
    align-items: center;
    color: #bdbdbd;
}

.nat-breadcrumbs .nat-bc-item a {
    color: inherit;
    text-decoration: none;
}

.nat-breadcrumbs .nat-bc-item a:hover {
    text-decoration: underline;
}

/* » перед каждым элементом, кроме первого */
.nat-breadcrumbs .nat-bc-item + .nat-bc-item {
    margin-left: .5rem;
}

.nat-breadcrumbs .nat-bc-item + .nat-bc-item::before {
    content: "»";
    margin-right: .5rem;
    opacity: .6;
}

.archive-grid {
    display: grid !important; /* гасим возможный flex от темы */
    grid-template-columns: repeat(auto-fill, minmax(var(--ag-min), 1fr));
    gap: var(--ag-gap);
    align-items: start;
    margin-inline: auto;
}

/* Карточка (любая обёртка внутри сетки: article, li, div) */
.archive-grid > * {
    background: var(--ag-bg);
    border: var(--ag-border);
    border-radius: var(--ag-radius);
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
}

/* Изображение (если используешь <img> или .wp-post-image) */
.archive-grid img,
.archive-grid .wp-post-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10; /* приятная высота; меняй при желании */
    object-fit: cover;
}

/* Тело карточки */
.archive-grid .card-body {
    padding: clamp(12px, 2.2vw, 18px);
}

.archive-grid .card-title {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.25;
    margin: 0 0 .35em;
}

.archive-grid .card-meta {
    font-size: 12px;
    opacity: .75;
    margin-bottom: .6em;
}

.archive-grid .card-excerpt {
    font-size: 14px;
    line-height: 1.45;
    opacity: .92;
}

.archive-grid .excerpt {
    margin: 1rem 0;
}

/* Кнопка/ссылка внутри карточки (опционально) */
.archive-grid .card-action {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    margin-top: .9em;
    padding: .6em .9em;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .05);
    text-decoration: none;
    transition: background .2s ease, transform .1s ease;
}

.archive-grid .card-action:hover {
    background: rgba(255, 255, 255, .09);
}

.archive-grid .card-action:active {
    transform: translateY(1px);
}

.wp-block-gallery.has-nested-images figure.wp-block-image:not(#individual-image) {
    margin: 0;
    width: 100%;
    padding: 5px;
}

figure.wp-block-gallery.has-nested-images {
    align-items: normal;
    gap: 1rem;
}

.contacts {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.site-header .container {
    gap: 0;
}

ul.phones {
    padding: 0 10px;
}

/* раскладка */
.single-master .program-single__grid {
    display: grid;
    gap: 24px;
    grid-template-columns:1fr 1fr;
    align-items: start;
}

a.btn.btn--ghost.mobile-menu-btn {
    width: fit-content;
}

.mobile {
    display: none;
}

/* ==============================
   Accordion
   ============================== */
.nat-acc {
    margin: 10px 0;
    overflow: hidden;
    border: 1px solid #2a2a34;
    border-radius: 5px;
    transition: box-shadow .5s ease
}

.nat-acc:hover {
    box-shadow: 0 0 24px -6px var(--pri-300);
}

.nat-acc summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: #eaeaea;
    list-style: none;
}

.nat-acc summary::-webkit-details-marker {
    display: none;
}

.nat-acc__left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 600;
}

.nat-acc__heart {
    width: 14px;
    height: 14px;
    fill: red;
}

.nat-acc__title {
    line-height: 1;
}

.nat-acc__chev {
    width: 18px;
    height: 18px;
    opacity: .85;
    transition: transform .2s ease;
}

.nat-acc[open] .nat-acc__chev {
    transform: rotate(180deg);
}

.nat-acc__content {
    padding: 0 16px 14px 40px;
    color: var(--muted, #a2a2ad);
}

.program-single__meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}


/* Узкие экраны — карточки сужаем, чтобы не было горизонтального скролла */
@media (max-width: 640px) {
    .dekstop {
        display: none;
    }

    .mobile {
        display: inline;
    }

    :root {
        --ag-min: 180px;
    }

    .archive-grid {
        gap: clamp(10px, 2.5vw, 14px);
    }

    .archive-grid img, .archive-grid .wp-post-image {
        aspect-ratio: 16/11;
    }

    .contacts {
        gap: .2rem;
    }

    .natali-grid {
        grid-template-columns:repeat(var(--natali-cols, 1), minmax(0, 1fr));
    }

    .single-master .program-single__grid {
        grid-template-columns: 1fr;
    }

    .footer__copywriter {
        margin: 1rem 0 0 0;
    }

    .container {
        margin: 0 15px;
    }

    .hero__media--desktop {
        display: none;
    }

    .hero__media--mobile {
        display: block;
    }

    .hero__title {
        line-height: 1.5;
        text-align: center;
        padding: 2rem 0;
    }

    .hero__desc {
        text-align: center;
    }

    .hero__slogan {
        border: none;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        top: 25%;
        align-content: center;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .btn--icon {
        border: none;
        display: flex;
    }
}

.custom-logo {
    height: 36px;
    width: auto;
}

@media (min-width: 640px) {
    .custom-logo {
        height: 54px;
    }
}

/* Широкие экраны — карточки можно делать шире */
@media (min-width: 1400px) {
    :root {
        --ag-min: 400px;
    }
}

/* Варианты по месту:
   .archive-grid.archive-grid--tight  — более плотная сетка
   .archive-grid.archive-grid--wide   — более просторная сетка */
.archive-grid.archive-grid--tight {
    --ag-min: 220px;
    --ag-gap: 14px;
}

.archive-grid.archive-grid--wide {
    --ag-min: 320px;
    --ag-gap: 24px;
}

/* === Responsive additions (drop-in) === */

/* Базовые ряды фильтров */
.chips--filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.chips--filters .btn {
    padding: 8px 12px;
}

/* Крупные экраны ≤1280: держим 3 колонки */
@media (max-width: 1280px) {
    .container {
        padding: 20px;
    }

    .programs__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .nav .menu {
        font-size: 12px
    }
}

/* Ноутбуки/планшеты ≤1024: грид в 2 колонки, шапка компакнее */
@media (max-width: 1024px) {
    .container {
        padding: 18px;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .programs__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 22px;
    }

    .section__title {
        font-size: clamp(32px, 4.2vw, 40px);
    }
}

/* Планшеты/большие телефоны ≤768: одна колонка, аккуратные чипсы */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }

    .programs__grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .program-card__media img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .chips {
        left: 10px;
        top: 10px;
        gap: 6px;
    }

    .chip {
        font-size: 11px;
        padding: 3px 8px;
    }

    .program-card__body {
        padding: 14px 14px 16px;
    }

    .program-card__title {
        font-size: 19px;
    }

    .program-card__price {
        font-size: 17px;
    }

    .nav .menu {
        display: none
    }
}

/* Узкие телефоны ≤560: чуть меньше типографика/отступы */
@media (max-width: 560px) {
    .section {
        margin: 24px 0;
    }

    .section__head {
        margin-bottom: 12px;
    }

    .program-card {
        border-radius: 5px;
    }
}

/* Очень узкие ≤420: чипсы переносятся, контейнер плотнее */
@media (max-width: 420px) {
    .container {
        padding: 12px;
    }

    .chips {
        max-width: calc(100% - 20px);
        flex-wrap: wrap;
    }

    .program-card__excerpt {
        margin-bottom: 8px;
    }

}