* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0ABAB5;      /* Tiffany Blue */
    --primary-light: #81D8D0;      /* Светлый Tiffany */
    --primary-dark: #088A87;       /* Темный Tiffany */
    --secondary-color: #2C3E50;    /* Темно-серый */
    --accent-color: #FF6B9D;       /* Мягкий коралл */
    --accent-light: #FFB6C1;       /* Светло-розовый */
    /* «Чернильные» пары фирменных цветов — для текста и кнопок с белой надписью (контраст ≥4.5:1).
       Светлые --primary-color / --accent-color остаются для фонов, рамок и декора. */
    --primary-ink: #077B78;
    --accent-ink: #C93A6C;
    --accent-ink-hover: #B3325F;
    --muted-ink: #66727F;          /* даты и подписи вместо #999 */
    --text-color: #333333;         /* Темно-серый текст */
    --light-bg: #F0F8F8;           /* Очень светлый Tiffany фон */
    --white: #FFFFFF;              /* Белый */
    --cream: #F8F6F0;              /* Кремовый */
    --silver: #E8E8E8;             /* Серебристый */
    --shadow: 0 2px 10px rgba(10,186,181,0.15);
    --shadow-hover: 0 5px 20px rgba(10,186,181,0.25);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Шапка: белая полоса на всех страницах — бабочка «Имаго», разделы, телефон.
   Прилипает к верху; на телефоне разделы прячутся под кнопку меню. */
.site-top {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(10, 186, 181, 0.14);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
}

.site-top-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 68px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    -webkit-mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark {
    transform: rotate(-8deg) scale(1.06);
}

.brand-name {
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}


.brand-logo {
    max-height: 48px;
    width: auto;
}

.main-nav {
    order: 2;
    margin-left: auto;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-links a {
    position: relative;
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #3B4A58;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    background: var(--light-bg);
    color: var(--primary-ink);
}

/* Текущий раздел — бирюзовая черта снизу и тёмно-бирюзовый текст */
.nav-links a.active {
    color: var(--primary-ink);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    right: 12px;
    bottom: 3px;
    left: 12px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary-color);
}

.top-phone {
    display: inline-flex;
    order: 3;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    padding: 9px 14px;
    border-radius: 999px;
    background: var(--light-bg);
    color: var(--primary-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    transition: background 0.2s, color 0.2s;
}

.top-phone:hover {
    background: var(--primary-ink);
    color: #fff;
}

.top-phone svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.mobile-menu-toggle {
    display: none;
    order: 4;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--secondary-color);
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* На компьютере на главную ведёт знак «Имаго» — отдельный пункт «Главная» нужен только в меню телефона */
@media (min-width: 1081px) {
    .nav-links .nav-home {
        display: none;
    }
}

/* На узких ноутбуках разделы не влезают в одну строку с телефоном — телефон ужимается до значка */
@media (max-width: 1200px) {
    .top-phone span {
        display: none;
    }

    .top-phone {
        padding: 10px;
    }
}

@media (max-width: 1080px) {
    .site-top-inner {
        position: relative;
        gap: 8px;
        min-height: 60px;
    }

    .top-phone {
        margin-left: auto;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        right: -20px;
        left: -20px;
        margin: 0;
        overflow: hidden;
        max-height: 0;
        background: #fff;
        box-shadow: 0 16px 30px -18px rgba(20, 60, 60, 0.35);
        transition: max-height 0.3s ease;
    }

    .main-nav.open {
        max-height: 80vh;
        border-bottom: 1px solid rgba(10, 186, 181, 0.14);
    }

    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 6px 12px 12px;
    }

    .nav-links a {
        padding: 13px 12px;
        font-size: 17px;
    }

    .nav-links a.active {
        background: var(--light-bg);
    }

    .nav-links a.active::after {
        display: none;
    }
}

/* Первый экран главной: слева название школы, девиз и запись на пробное, справа живое фото */
.hero {
    position: relative;
    overflow: hidden;
    /* Снизу фон плавно уходит в белый — без видимой границы с приветствием */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) calc(100% - 180px), #fff 100%),
        radial-gradient(40rem 28rem at 92% 10%, rgba(129, 216, 208, 0.32), transparent 70%),
        radial-gradient(30rem 22rem at 0% 62%, rgba(255, 182, 193, 0.26), transparent 70%),
        linear-gradient(180deg, #F3FAF9 0%, #fff 100%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 64px;
}

.hero-text h1 {
    margin-bottom: 16px;
    color: var(--secondary-color);
    font-size: clamp(34px, 4.6vw, 54px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero-sub {
    max-width: 34em;
    margin-bottom: 10px;
    color: #4B5A66;
    font-size: 19px;
    line-height: 1.5;
}

.hero-motto {
    margin-bottom: 30px;
    color: var(--accent-ink);
    font-size: 19px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
}

.hero-cta {
    padding: 16px 30px;
    font-size: 17px;
}

.hero-call {
    color: #4B5A66;
    font-size: 15.5px;
    text-decoration: none;
}

.hero-call strong {
    display: block;
    color: var(--primary-ink);
    font-size: 18px;
    font-variant-numeric: tabular-nums;
}

.hero-call:hover strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-photo {
    position: relative;
    margin: 0;
}

.hero-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: 32px 32px 32px 120px;
    box-shadow: 0 30px 60px -30px rgba(10, 120, 115, 0.45);
}

.hero-butterfly {
    position: absolute;
    top: -26px;
    right: -14px;
    width: 96px;
    height: 96px;
    background: var(--accent-color);
    -webkit-mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    transform: rotate(14deg);
    opacity: 0.85;
}

@media (max-width: 860px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 28px;
        padding-bottom: 40px;
    }

    .hero-photo {
        order: -1;
    }

    .hero-photo img {
        aspect-ratio: 16 / 10;
        border-radius: 24px 24px 24px 72px;
    }

    .hero-butterfly {
        top: -18px;
        right: 4px;
        width: 64px;
        height: 64px;
    }

    .hero-sub,
    .hero-motto {
        font-size: 17px;
    }

    .hero-motto {
        margin-bottom: 22px;
    }

    .hero-cta {
        flex: 1 1 100%;
        text-align: center;
    }
}

/* Main Content */
.main-content {
    padding: 60px 20px;
    min-height: 60vh;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 40px;
    background: var(--light-bg);
    border-radius: 15px;
    position: relative;
    overflow: visible;
}

.welcome-decoration {
    position: absolute;
    top: 0;
    left: 0;
    max-width: 110px;
    max-height: 110px;
    width: auto;
    height: auto;
    opacity: 0.65;
    pointer-events: none;
    z-index: 1;
    object-fit: contain;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

.welcome-section h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    line-height: 1.2;
    text-wrap: balance;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    z-index: 2;
}

/* Приветствие читается строками не длиннее ~65 знаков, даже на широком экране */
.welcome-section .markdown-content {
    max-width: 64ch;
    margin: 0 auto;
    font-size: 16.5px;
}

.welcome-link {
    display: none;
}

/* Приветствие с фото: текст главный, фото — небольшая «карточка-снимок» сбоку (белая рамка, лёгкий наклон).
   Нарочно не такое, как на первом экране (там фото большое и без рамки), чтобы два блока подряд не повторяли друг друга. */
.welcome-section.has-photo {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
    align-items: center;
    gap: 72px;
    margin: 24px 0 88px;
    padding: 0;
    background: none;
    text-align: left;
}

.welcome-photo {
    position: relative;
    margin: 0;
    padding: 10px 10px 12px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(20, 60, 60, 0.06), 0 22px 44px -24px rgba(10, 120, 115, 0.45);
    transform: rotate(-3deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.welcome-photo:hover {
    transform: rotate(-1deg) translateY(-4px);
}

.welcome-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.welcome-butterfly {
    position: absolute;
    top: -34px;
    right: -30px;
    width: 84px;
    height: 84px;
    background: var(--primary-color);
    -webkit-mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    transform: rotate(16deg);
    opacity: 0.85;
}

/* Заголовок спокойнее, чем на первом экране: он продолжает разговор, а не открывает страницу заново */
.welcome-section.has-photo h2 {
    margin-bottom: 18px;
    font-size: clamp(26px, 2.8vw, 34px);
    font-weight: 700;
    line-height: 1.2;
}

.welcome-section.has-photo .markdown-content {
    max-width: 38em;
    margin: 0;
    color: #4B5A66;
    font-size: 17px;
    line-height: 1.65;
}

/* Первый абзац — вводный, крупнее и темнее */
.welcome-section.has-photo .markdown-content p:first-child {
    color: var(--secondary-color);
    font-size: 20px;
    line-height: 1.5;
}

.welcome-section.has-photo .welcome-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: var(--primary-ink);
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.25s ease;
}

.welcome-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.welcome-section.has-photo .welcome-link:hover {
    gap: 12px;
}

/* Телефон: сначала текст, снимок после него и поменьше — чтобы не было «фото, текст, фото, текст» */
@media (max-width: 860px) {
    .welcome-section.has-photo {
        grid-template-columns: 1fr;
        gap: 36px;
        margin: 8px 0 64px;
    }

    .welcome-photo {
        order: 2;
        justify-self: center;
        width: min(86%, 380px);
    }

    .welcome-butterfly {
        top: -26px;
        right: -18px;
        width: 62px;
        height: 62px;
    }

    .welcome-section.has-photo .markdown-content p:first-child {
        font-size: 18px;
    }

    .welcome-section.has-photo .markdown-content {
        font-size: 16px;
    }
}

/* Преимущества (главная): бенто-сетка на светло-бирюзовой полосе во всю ширину.
   Карточки чередуют три тона фирменной палитры; у каждой — иллюстрация (или эмодзи, пока её нет),
   номер, заголовок и текст. Широкие карточки — картинка слева. Замыкает сетку приглашение на пробное. */
.why {
    position: relative;
    margin: 0 calc(50% - 50vw) 72px;
    padding: 80px max(20px, calc(50vw - 580px)) 88px;
    overflow: hidden;
    /* Сверху и снизу фон плавно уходит в белый фон страницы — без резкой границы */
    background:
        linear-gradient(180deg, #fff 0, rgba(255, 255, 255, 0) 160px, rgba(255, 255, 255, 0) calc(100% - 160px), #fff 100%),
        radial-gradient(38rem 26rem at 8% 28%, rgba(129, 216, 208, 0.38), transparent 70%),
        radial-gradient(34rem 24rem at 100% 76%, rgba(255, 182, 193, 0.30), transparent 70%),
        #F1F9F8;
}

/* Бабочка «Имаго» (assets/butterfly.svg) — маской, чтобы красить в цвета сайта */
.why-butterfly {
    position: absolute;
    width: 128px;
    height: 128px;
    background: var(--primary-light);
    -webkit-mask: url("/assets/butterfly.svg?v=1") center / contain no-repeat;
    mask: url("/assets/butterfly.svg?v=1") center / contain no-repeat;
    opacity: 0.6;
    pointer-events: none;
}

.why-butterfly-1 {
    top: 34px;
    left: max(12px, calc(50vw - 640px));
    transform: rotate(-18deg);
}

.why-butterfly-2 {
    right: max(12px, calc(50vw - 660px));
    bottom: 40px;
    width: 92px;
    height: 92px;
    background: var(--accent-light);
    transform: rotate(14deg);
}

.why-head {
    position: relative;
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.why-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.12);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.why-head h2 {
    margin-bottom: 14px;
    color: var(--secondary-color);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.why-lead {
    color: #5B6B78;
    font-size: 18px;
    line-height: 1.55;
}

.why-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: row dense;
    gap: 22px;
}

.why-card {
    --tone: #E3F6F4;
    --tone-2: #CDEFEC;
    --ink: var(--primary-ink);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(10, 186, 181, 0.10);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 60, 60, 0.04), 0 10px 30px -12px rgba(10, 120, 115, 0.18);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
}

.why-tone-1 {
    --tone: #FDECF1;
    --tone-2: #FAD7E2;
    --ink: var(--accent-ink);
}

.why-tone-2 {
    --tone: #FBF5E9;
    --tone-2: #F4E7CC;
    --ink: #8A6418;
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 2px 4px rgba(20, 60, 60, 0.05), 0 22px 44px -16px rgba(10, 120, 115, 0.30);
}

.why-art {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.85) 0 28%, transparent 62%),
        linear-gradient(160deg, var(--tone) 0%, var(--tone-2) 100%);
}

.why-art img {
    width: 82%;
    height: 82%;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(20, 60, 60, 0.12));
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-card:hover .why-art img {
    transform: scale(1.05) rotate(-1.5deg);
}

/* Пока иллюстрации нет — крупный эмодзи на «подставке» */
.why-emoji {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 10px 24px -10px rgba(20, 60, 60, 0.25);
    font-size: 58px;
    line-height: 1;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-card:hover .why-emoji {
    transform: translateY(-4px) rotate(-4deg);
}

.why-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 26px 26px;
}


.why-body h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 21px;
    line-height: 1.25;
}

.why-body p {
    color: #5B6B78;
    font-size: 15.5px;
    line-height: 1.6;
}

/* Широкие карточки: 1-я и 4-я в каждой шестёрке — картинка слева, текст справа */
@media (min-width: 900px) {
    .why-card:not(.why-cta):nth-child(6n + 1),
    .why-card:not(.why-cta):nth-child(6n + 4) {
        grid-column: span 2;
        flex-direction: row;
    }

    .why-card:not(.why-cta):nth-child(6n + 1) .why-art,
    .why-card:not(.why-cta):nth-child(6n + 4) .why-art {
        flex: 0 0 46%;
        aspect-ratio: auto;
        min-height: 260px;
    }

    .why-card:not(.why-cta):nth-child(6n + 1) .why-body,
    .why-card:not(.why-cta):nth-child(6n + 4) .why-body {
        justify-content: center;
        padding: 34px 36px;
    }

    .why-card:not(.why-cta):nth-child(6n + 1) h3,
    .why-card:not(.why-cta):nth-child(6n + 4) h3 {
        font-size: 26px;
    }

    .why-card:not(.why-cta):nth-child(6n + 1) p,
    .why-card:not(.why-cta):nth-child(6n + 4) p {
        font-size: 16.5px;
    }
}

/* Приглашение на пробное занятие */
.why-cta {
    justify-content: flex-end;
    min-height: 460px;
    padding: 30px 28px;
    border: 0;
    background:
        radial-gradient(22rem 16rem at 110% -10%, rgba(255, 255, 255, 0.10), transparent 60%),
        linear-gradient(150deg, #07817C 0%, #06605D 100%);
    color: #fff;
    text-decoration: none;
}

.why-cta::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 22px;
    width: 96px;
    height: 96px;
    background: #fff;
    -webkit-mask: url("/assets/butterfly.svg?v=1") center / contain no-repeat;
    mask: url("/assets/butterfly.svg?v=1") center / contain no-repeat;
    opacity: 0.45;
    transform: rotate(12deg);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.why-cta:hover::before {
    transform: rotate(0deg) translateY(-6px);
}


/* Гимнастка с лентой (вырезанное фото) — в правом верхнем углу, лента уходит за край карточки */
.why-cta-art {
    position: absolute;
    top: 14px;
    right: -18px;
    height: 50%;
    pointer-events: none;
}

.why-cta-art img {
    position: relative;
    z-index: 1;
    display: block;
    width: auto;
    height: 100%;
    filter: drop-shadow(0 10px 14px rgba(0, 40, 38, 0.3));
    transform-origin: 60% 100%;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Тени на «полу» под каждой ступнёй (координаты ступней на картинке: левая ~34% по ширине и 93% по высоте, правая ~86% и 96%) */
.why-cta-art::before,
.why-cta-art::after {
    content: '';
    position: absolute;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 28, 26, 0.55), rgba(0, 28, 26, 0.22) 60%, transparent);
    filter: blur(1px);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s;
}

.why-cta-art::before {
    top: calc(93% - 6px);
    left: 24%;
    width: 22%;
}

.why-cta-art::after {
    top: calc(96% - 6px);
    left: 77%;
    width: 20%;
}

/* При наведении гимнастка чуть подпрыгивает, тень под ней сжимается и светлеет */
.why-cta:hover .why-cta-art img {
    transform: translateY(-8px) rotate(-2deg);
}

.why-cta:hover .why-cta-art::before,
.why-cta:hover .why-cta-art::after {
    opacity: 0.6;
    transform: scaleX(0.82);
}

.why-cta-title,
.why-cta-text,
.why-cta-btn {
    position: relative;
}

.why-cta-title {
    margin-bottom: 10px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
}

.why-cta-text {
    margin-bottom: 22px;
    font-size: 15.5px;
    line-height: 1.55;
    opacity: 0.92;
}

.why-cta-btn {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent-ink);
    box-shadow: 0 8px 20px -8px rgba(217, 74, 123, 0.7);
    font-weight: 700;
    transition: gap 0.25s ease, background 0.25s ease;
}

.why-cta-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.why-cta:hover .why-cta-btn {
    gap: 12px;
    background: var(--accent-ink-hover);
}

.why-card:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
}

/* Появление при прокрутке — где браузер умеет анимацию по прокрутке; иначе карточки просто видны */
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) {
        .why-card {
            animation: why-rise linear both;
            animation-timeline: view();
            animation-range: entry 0% entry 40%;
        }
    }
}

@keyframes why-rise {
    from { opacity: 0; transform: translateY(28px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 899px) {
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .why-cta {
        grid-column: 1 / -1;
        min-height: 300px;
        padding-right: 46%;
    }

    .why-cta-art {
        top: 12px;
        right: 3%;
        height: calc(100% - 24px);
    }

    .why-cta::before {
        display: none;
    }
}

/* Телефон: карточки листаются вбок, соседняя выглядывает — сразу понятно, что их несколько */
@media (max-width: 600px) {
    .why {
        margin-bottom: 48px;
        padding: 56px 0 60px;
    }

    .why-head {
        margin-bottom: 28px;
        padding: 0 20px;
    }

    .why-lead {
        font-size: 16px;
    }

    .why-grid {
        display: flex;
        gap: 14px;
        padding: 4px 20px 16px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 20px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .why-grid::-webkit-scrollbar {
        display: none;
    }

    .why-card {
        flex: 0 0 82%;
        scroll-snap-align: start;
        animation: none;
    }

    .why-card:hover {
        transform: none;
    }

    .why-body {
        padding: 18px 20px 22px;
    }

    .why-body h3 {
        font-size: 19px;
    }

    .why-body p {
        font-size: 15px;
    }

    .why-cta {
        justify-content: flex-end;
        min-height: 440px;
        padding-right: 28px;
    }

    .why-cta {
        min-height: 470px;
    }

    .why-cta-art {
        top: 12px;
        right: -14px;
        height: 46%;
    }

    .why-cta-title {
        font-size: 23px;
    }

    .why-butterfly-1 {
        width: 72px;
        height: 72px;
        top: 16px;
    }

    .why-butterfly-2 {
        display: none;
    }
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    text-align: center;
}

/* News Section */
.recent-news {
    margin-bottom: 60px;
}

.recent-news h2,
.news-list-section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
    background-color: var(--light-bg);
}

/* Стили для img.news-image (SEO-friendly вариант) */
img.news-image {
    display: block;
    object-fit: cover;
    object-position: center;
    background-color: var(--light-bg);
}

.news-image-placeholder {
    position: relative;
    background: var(--light-bg);
}

/* Новость без фото — бабочка «Имаго» на светлом фоне вместо пустой заливки */
.news-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 28%;
    background: var(--primary-light);
    -webkit-mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    mask: url('/assets/butterfly.svg?v=1') center / contain no-repeat;
    opacity: 0.8;
}

.news-content {
    padding: 25px;
}

.news-content h2,
.news-content h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.news-excerpt {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-date {
    color: var(--muted-ink);
    font-size: 14px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 60px;
    padding: 20px 0;
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pagination-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #E8E8E8;
}

.pagination-number:hover {
    background: var(--primary-ink);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--primary-ink);
    color: white;
    border-color: var(--primary-color);
    cursor: default;
    box-shadow: 0 4px 12px rgba(10, 186, 181, 0.3);
}

.pagination-dots {
    color: var(--muted-ink);
    padding: 0 8px;
    font-weight: bold;
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    border: 2px solid #E8E8E8;
}

.pagination-btn:hover {
    background: var(--primary-ink);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination-prev {
    margin-right: 10px;
}

.pagination-next {
    margin-left: 10px;
}

.view-all {
    text-align: center;
    margin-top: 40px;
}

/* Single Article */
/* Single Article Page */
.single-article {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.article-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 30px;
    margin-bottom: 40px;
}

.article-header h1 {
    font-size: 42px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--secondary-color);
    font-weight: 700;
}

.article-meta {
    color: var(--muted-ink);
    margin-bottom: 30px;
    font-size: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-meta span::before,
.article-footer .article-date::before {
    content: '';
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='3'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

.article-image {
    margin: 30px 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    max-width: 680px;
    font-size: 18px;
    line-height: 1.8;
    color: #333;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body h2 {
    font-size: 32px;
    margin: 40px 0 20px 0;
    color: var(--secondary-color);
}

.article-body h3 {
    font-size: 26px;
    margin: 30px 0 15px 0;
    color: var(--secondary-color);
}

.article-body ul,
.article-body ol {
    margin: 20px 0;
    padding-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Списки призёров и разрядниц — сетка плашек «🥇 Мария Г.» (класс ставит markdownTidyNames) */
.article-body ul.name-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px;
    padding-left: 0;
    list-style: none;
}

.article-body ul.name-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 9px 14px;
    border: 1px solid rgba(10, 186, 181, 0.16);
    border-radius: 12px;
    background: #fff;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.35;
}

.article-body ul.name-list li p {
    margin: 0;
}

@media (max-width: 480px) {
    .article-body ul.name-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-body ul.name-list li {
        padding: 8px 10px;
        font-size: 15px;
    }
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-footer .btn-secondary {
    background: var(--primary-ink);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.article-footer .btn-secondary::before {
    content: '←';
    font-size: 18px;
}

.article-footer .btn-secondary:hover {
    background: var(--primary-dark);
    transform: translateX(-5px);
}

.article-footer .article-meta {
    color: var(--text-light);
    font-size: 14px;
}

.article-footer .article-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.article-not-found {
    text-align: center;
    padding: 80px 20px;
}

.article-not-found h1 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.article-not-found p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.article-not-found a {
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 600;
}

.article-not-found a:hover {
    text-decoration: underline;
}

/* Coaches Section */
.coaches-section h1,
.about-section h1,
.contacts-section h1,
.calendar-section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Карточка тренера: фото и имя в строку, под ними бейджи (звание, категория, стаж) и достижения списком */
.coach-card {
    display: flex;
    flex-direction: column;
    padding: 26px 28px 24px;
    border: 1px solid rgba(10, 186, 181, 0.12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(20, 60, 60, 0.04), 0 12px 30px -16px rgba(10, 120, 115, 0.22);
}

.coach-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.coach-photo {
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    overflow: hidden;
    border-radius: 50%;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--primary-light);
}

.coach-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-ink);
    color: #fff;
    font-size: 40px;
    font-weight: 700;
}

.coach-title h2 {
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-size: 22px;
    line-height: 1.2;
}

.coach-position {
    color: var(--accent-ink);
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

.coach-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.coach-badges li {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--light-bg);
    color: var(--primary-ink);
    font-size: 13.5px;
    font-weight: 700;
}

.coach-badges li.is-rank {
    background: #FDECF1;
    color: var(--accent-ink-hover);
}

.coach-description {
    margin-bottom: 4px;
    color: #4B5A66;
    font-size: 15px;
    line-height: 1.55;
}

.coach-achievements {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #EEF3F4;
}

.coach-achievements h3 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 15px;
}

.coach-achievements ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.coach-achievements li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 18px;
    color: #3B4A58;
    font-size: 15px;
    line-height: 1.5;
}

.coach-achievements li::before {
    content: '';
    position: absolute;
    top: 0.6em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
}

.coach-more summary {
    display: inline-block;
    border-bottom: 1px dashed currentColor;
    margin-top: 2px;
    color: var(--primary-ink);
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.coach-more summary::-webkit-details-marker {
    display: none;
}


.coach-more[open] summary {
    display: none;
}

.coach-more ul {
    margin-top: 0;
}

@media (max-width: 480px) {
    .coach-card {
        padding: 20px 18px;
    }

    .coach-head {
        gap: 14px;
    }

    .coach-photo {
        width: 80px;
        height: 80px;
    }

    .coach-title h2 {
        font-size: 19px;
    }
}

/* About Section */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Contacts Section */
/* Контакты: сверху — как записаться (телефон крупно), ниже залы списком и все на одной карте */
.contact-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 40px;
    max-width: 1000px;
    margin: 0 auto 56px;
    padding: 30px 36px;
    border-radius: 24px;
    background:
        radial-gradient(22rem 14rem at 100% 0%, rgba(255, 182, 193, 0.28), transparent 70%),
        var(--light-bg);
}

.contact-lead-text h2 {
    margin: 0 0 6px;
    line-height: 1.25;
    color: var(--secondary-color);
    font-size: 24px;
    text-align: left;
}

.contact-lead-text p {
    max-width: 30em;
    color: #4B5A66;
    font-size: 16.5px;
}

.contact-lead-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.contact-phone {
    color: var(--primary-ink);
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.contact-phone:hover,
.contact-email:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.contact-email {
    color: #4B5A66;
    font-size: 16px;
    text-decoration: none;
}

.contacts-section h2.branches-title {
    margin: 0 0 24px;
    line-height: 1.25;
    color: var(--secondary-color);
    font-size: 28px;
    text-align: center;
}

.branches-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
    gap: 28px;
}

.branches-layout.no-map {
    grid-template-columns: 1fr;
}

.branches-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.branch-item {
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(10, 186, 181, 0.14);
    border-radius: 18px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.branch-item.is-active {
    border-color: var(--primary-color);
    box-shadow: 0 10px 24px -16px rgba(10, 120, 115, 0.45);
}

.branch-pin {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--light-bg);
    color: var(--primary-ink);
}

.branch-pin {
    font-size: 15px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.branch-item.is-active .branch-pin {
    background: var(--primary-ink);
    color: #fff;
}

.branch-body h3 {
    margin-bottom: 2px;
    color: var(--secondary-color);
    font-size: 18px;
}

.branch-address,
.branch-phone {
    color: #4B5A66;
    font-size: 15px;
    line-height: 1.5;
}

.branch-phone a {
    color: inherit;
}

.branch-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 8px;
}

.branch-links a,
.branch-show {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary-ink);
    font: inherit;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.branch-links a:hover,
.branch-show:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.branches-map {
    position: sticky;
    top: 88px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--light-bg);
    box-shadow: 0 12px 30px -18px rgba(10, 120, 115, 0.4);
}

.branches-map-canvas {
    width: 100%;
    height: min(620px, calc(100vh - 120px));
    background: #eef3f2;
    font: inherit;
}

/* Подложка OpenStreetMap чуть приглушена — на ней читаются наши бирюзовые метки */
.branches-map-canvas .leaflet-tile-pane {
    filter: saturate(0.55) brightness(1.03) contrast(0.96);
}

/* Метка зала — капля в цветах сайта с номером, как в списке */
.map-pin {
    background: none;
    border: 0;
}

.map-pin span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    background: var(--primary-ink);
    box-shadow: 0 6px 14px -4px rgba(7, 60, 58, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transform: rotate(-45deg);
    transition: transform 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.map-pin b {
    font-weight: inherit;
    transform: rotate(45deg);
}

.map-pin.is-active span,
.map-pin:hover span {
    background: var(--accent-ink);
    transform: rotate(-45deg) scale(1.12);
}

.map-popup {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 180px;
    font-family: inherit;
}

.map-popup strong {
    color: var(--secondary-color);
    font-size: 15px;
}

.map-popup span {
    color: #4B5A66;
    font-size: 13.5px;
    line-height: 1.45;
}

.map-popup a {
    margin-top: 4px;
    color: var(--primary-ink);
    font-weight: 700;
    text-decoration: none;
}

.map-popup a:hover {
    text-decoration: underline;
}

.branches-map .leaflet-popup-content-wrapper {
    border-radius: 14px;
    box-shadow: 0 14px 30px -14px rgba(10, 60, 58, 0.45);
}

.branches-map .leaflet-popup-content {
    margin: 12px 14px;
}

.branches-map .leaflet-control-attribution {
    font-size: 11px;
}

.branches-map .leaflet-bar a {
    color: var(--secondary-color);
}

/* Метро: кружки цвета линии (у пересадок — несколько), в списке залов и на карте */
.metro-dots {
    display: inline-flex;
    flex-shrink: 0;
    vertical-align: -1px;
}

.metro-dots i {
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(30, 50, 60, 0.18);
    box-sizing: content-box;
}

.metro-dots i + i {
    margin-left: -5px;
}

.branch-metro {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    color: #4B5A66;
    font-size: 14.5px;
}

.branch-metro li {
    display: flex;
    align-items: center;
    gap: 7px;
}

.metro-name {
    color: var(--secondary-color);
    font-weight: 600;
}

.metro-walk {
    color: #5F6B76;
    white-space: nowrap;
}

.metro-pin {
    display: flex;
    align-items: center;
    gap: 5px;
    width: max-content !important;
    margin: -8px 0 0 -8px;
    background: none;
    border: 0;
    pointer-events: none;
}

.metro-pin b {
    display: none;
    padding: 1px 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 1px 4px rgba(20, 40, 50, 0.18);
    color: #24323D;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.show-metro-labels .metro-pin b {
    display: block;
}

.branches-map-canvas:not(.metro-near) .metro-pin {
    margin: -4px 0 0 -4px;
    opacity: 0.75;
}

.branches-map-canvas:not(.metro-near) .metro-pin i {
    width: 6px;
    height: 6px;
    border-width: 1px;
}

.branches-map-canvas:not(.metro-near) .metro-pin i + i {
    margin-left: -3px;
}

.map-popup-metro {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .map-pin span {
        transition: none;
    }
}

@media (max-width: 860px) {
    .contact-lead {
        padding: 24px 22px;
    }

    .contact-phone {
        font-size: 24px;
    }

    .branches-layout {
        grid-template-columns: 1fr;
    }

    .branches-map {
        position: relative;
        top: 0;
        order: -1;
    }

    .branches-map-canvas {
        height: 340px;
    }
}

/* Calendar Section */
/* Календарный план — лента учебного года. Слева линия, которая перетекает цветами сезонов
   (осень → зима → весна → лето), на ней метки месяцев. Дата — «листок календаря»: крупное число
   и месяц под ним. Прошедшее приглушено, ближайшее событие подсвечено «Скоро». */
.calendar-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding-left: 44px;
}

/* Линия ленты собирается из отрезков у каждого месяца и сезона — так её цвет точно совпадает с сезоном */
.calendar-month::after,
.calendar-season::after {
    content: '';
    position: absolute;
    top: -14px;
    bottom: -22px;
    left: -30px;
    width: 3px;
    background: var(--season-mid);
    opacity: 0.6;
}

.calendar-season::after {
    top: -18px;
    bottom: -16px;
}

.calendar-season:first-child::after {
    top: 50%;
}

.calendar-month:last-child::after {
    bottom: auto;
    height: 30px;
}

.season-autumn { --season: #A4501B; --season-mid: #F2A06B; --season-bg: #FFF1E8; }
.season-winter { --season: #1F6E99; --season-mid: #7DBFE6; --season-bg: #EAF5FB; }
.season-spring { --season: #2E7D45; --season-mid: #7CCB94; --season-bg: #EBF6EE; }
.season-summer { --season: #85600F; --season-mid: #F2C94C; --season-bg: #FFF6DE; }

/* Подпись сезона на линии */
.calendar-season {
    position: relative;
    margin: 30px 0 14px;
}

.calendar-season:first-child {
    margin-top: 0;
}

.calendar-season span {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-left: -44px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--season-bg);
    color: var(--season);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calendar-month {
    position: relative;
    margin-bottom: 14px;
    border: 1px solid rgba(10, 186, 181, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(20rem 8rem at 100% 0%, var(--season-bg), transparent 70%),
        #fff;
    box-shadow: 0 12px 28px -22px rgba(10, 120, 115, 0.4);
}

/* Метка месяца на линии */
.calendar-month::before {
    content: '';
    position: absolute;
    z-index: 1;
    top: 22px;
    left: -36px;
    width: 13px;
    height: 13px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--season-mid);
    box-shadow: 0 0 0 1px var(--season-mid);
}

.calendar-month.is-current::before {
    width: 17px;
    height: 17px;
    top: 20px;
    left: -38px;
    background: var(--accent-ink);
    box-shadow: 0 0 0 5px rgba(201, 58, 108, 0.18);
}

.month-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 16px 22px 6px;
}

.month-header h2 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 20px;
    font-weight: 800;
}

.month-now {
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-ink);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.events-list {
    margin: 0;
    padding: 4px 14px 12px;
    list-style: none;
}

.event-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px;
    border-radius: 16px;
    transition: background 0.2s;
}

.event-item:hover {
    background: rgba(240, 248, 248, 0.8);
}

/* «Листок календаря»: число крупно, месяц мелко */
.event-date {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 64px;
    padding: 4px 8px;
    border-radius: 16px;
    background: var(--season-bg);
    color: var(--season);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.event-day {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.event-mon {
    margin-top: 4px;
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Период «18–25» / «июл–авг» — в том же листке, просто цифры чуть мельче */
.event-date.is-range .event-day {
    font-size: 19px;
}

.event-date.is-range .event-mon {
    font-size: 11.5px;
    letter-spacing: 0.03em;
}

/* Дата уточняется — пунктирный листок с «?» */
.event-date.is-tbd {
    border: 2px dashed var(--season-mid);
    background: #fff;
}

.event-tbd {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #F1F4F5;
    color: #5A6672;
    font-size: 12.5px;
    font-weight: 600;
    vertical-align: 2px;
}

.event-title {
    color: var(--text-color);
    font-size: 16.5px;
    line-height: 1.45;
}

/* Прошедшее — приглушено, но читаемо */
.event-item.is-past .event-date {
    background: #F1F4F5;
    color: #5A6672;
}

.event-item.is-past .event-title {
    color: #66727F;
}

/* Ближайшее событие */
.event-item.is-next {
    background: #fff;
    box-shadow: 0 0 0 2px var(--season-mid), 0 14px 28px -18px rgba(10, 120, 115, 0.5);
}

.event-item.is-next .event-date {
    background: var(--season);
    color: #fff;
}

.event-item.is-next .event-title {
    font-weight: 700;
}

.event-soon {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 9px;
    border-radius: 999px;
    background: #FDECF1;
    color: var(--accent-ink-hover);
    font-size: 12.5px;
    font-weight: 700;
    vertical-align: 2px;
}

/* Месяц без событий — одна компактная строка */
.calendar-month.is-empty {
    background: transparent;
    border-style: dashed;
    box-shadow: none;
}

.calendar-month.is-empty .month-header {
    padding: 12px 22px;
}

.calendar-month.is-empty .month-header h2 {
    color: #4B5A66;
    font-size: 17px;
    font-weight: 700;
}

.calendar-month.is-empty::before {
    top: 16px;
}

.no-events {
    color: var(--muted-ink);
    font-size: 14.5px;
}

.calendar-month.is-past:not(.is-empty) .month-header h2 {
    color: #4B5A66;
}

@media (max-width: 560px) {
    .calendar-timeline {
        padding-left: 30px;
    }

    .calendar-month::after,
    .calendar-season::after {
        left: -21px;
    }

    .calendar-season span {
        margin-left: -30px;
    }

    .calendar-month::before {
        left: -27px;
    }

    .calendar-month.is-current::before {
        left: -29px;
    }

    .month-header {
        padding: 14px 16px 4px;
    }

    .events-list {
        padding: 2px 8px 10px;
    }

    .event-item {
        gap: 12px;
    }

    .event-date {
        width: 68px;
        height: 58px;
    }

    .event-date.is-range .event-day {
        font-size: 17px;
    }

    .event-day {
        font-size: 21px;
    }

    .event-title {
        font-size: 15.5px;
    }

    .calendar-month.is-empty .month-header {
        padding: 10px 16px;
    }
}

/* Приглашение на пробное в конце новости и статьи «Родителям» */
.trial-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 28px;
    margin: 36px 0 8px;
    padding: 24px 28px;
    border-radius: 20px;
    background:
        radial-gradient(18rem 12rem at 100% 0%, rgba(255, 182, 193, 0.3), transparent 70%),
        var(--light-bg);
}

.trial-cta h2 {
    margin: 0 0 4px;
    color: var(--secondary-color);
    font-size: 20px;
    line-height: 1.3;
}

.trial-cta p {
    max-width: 34em;
    margin: 0;
    color: #4B5A66;
    font-size: 15.5px;
    line-height: 1.5;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--accent-ink);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-ink-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201,58,108,0.35);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Markdown Content */
.markdown-content h2 {
    font-size: 28px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.markdown-content h3 {
    font-size: 24px;
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.markdown-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 15px;
    padding-left: 30px;
}

.markdown-content li {
    margin-bottom: 8px;
}

.markdown-content a {
    color: var(--accent-ink);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content strong {
    font-weight: 600;
}

.markdown-content em {
    font-style: italic;
}

.markdown-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    margin: 20px 0;
    color: #666;
    font-style: italic;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

/* Footer */
.site-footer {
    margin-top: 72px;
    padding: 48px 0 0;
    background: #12302F;
    color: #D7E7E6;
    font-size: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px 48px;
    padding-bottom: 36px;
}

.brand-light {
    color: #fff;
}

.brand-light .brand-mark {
    background: var(--primary-light);
}

.footer-brand p {
    margin: 10px 0 18px;
    color: #B7CFCD;
}

.footer-cta {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--accent-ink);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

.footer-cta:hover {
    background: var(--accent-ink-hover);
}

.footer-contacts,
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.site-footer h2 {
    margin-bottom: 6px;
    color: #fff;
    font-size: 15px;
    letter-spacing: 0.02em;
}

.site-footer a:not(.footer-cta):not(.brand) {
    color: #D7E7E6;
    text-decoration: none;
}

.site-footer a:not(.footer-cta):not(.brand):hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer .footer-phone {
    white-space: nowrap;
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.footer-legal {
    padding-top: 18px;
    padding-bottom: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #A9C2C0;
    font-size: 13px;
}

.footer-legal p + p {
    margin-top: 4px;
}

@media (max-width: 760px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .news-grid,
    .coaches-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 40px 20px;
    }
    
    /* Адаптив для страницы статьи */
    .single-article {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .article-header h1 {
        font-size: 28px;
    }
    
    .article-body {
        font-size: 16px;
    }
    
    .article-body h2 {
        font-size: 24px;
    }
    
    .article-body h3 {
        font-size: 20px;
    }
    
    .article-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .article-footer .article-meta {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
    
    /* Адаптив для пагинации */
    .pagination {
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 40px;
    }
    
    .pagination-number {
        min-width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .pagination-btn {
        font-size: 14px;
        padding: 8px 16px;
    }
    
    .pagination-prev,
    .pagination-next {
        margin: 0;
    }
    
    /* Адаптив для декоративной картинки */
    .welcome-decoration {
        max-width: 120px;
        max-height: 120px;
    }
    
    /* Футер */
    .site-footer {
        font-size: 14px;
    }
}

/* === ARTICLE GALLERY === */
.article-gallery {
    margin: 50px 0;
    padding: 40px 30px;
    background: linear-gradient(to bottom, rgba(10, 186, 181, 0.03), rgba(10, 186, 181, 0.01));
    border-radius: 16px;
    border: 1px solid rgba(10, 186, 181, 0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-card {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    background: white;
    will-change: transform;
    contain: paint;
}

.gallery-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 65%, rgba(10, 186, 181, 0.18));
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-card:hover::before {
    opacity: 1;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(10, 186, 181, 0.16);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.22s ease;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.gallery-card:hover img {
    transform: scale(1.03) translateZ(0);
}

/* === GALLERY MODAL === */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.gallery-modal.active {
    background: rgba(0, 0, 0, 0.95);
}

.gallery-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-modal-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-modal.active .gallery-modal-img {
    opacity: 1;
    transform: scale(1);
}

.gallery-modal-close {
    position: fixed;
    top: 20px;
    right: 30px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s;
}

.gallery-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    border-radius: 50%;
    transition: background 0.3s;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-nav-prev {
    left: 20px;
}

.gallery-nav-next {
    right: 20px;
}

.gallery-modal-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 1.1em;
    z-index: 10001;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .article-gallery {
        margin: 30px 0;
        padding: 30px 15px;
    }
    
    .gallery-card {
        border-radius: 12px;
    }
    
    .gallery-modal-close {
        top: 10px;
        right: 10px;
        font-size: 40px;
        width: 40px;
        height: 40px;
    }
    
    .gallery-nav {
        font-size: 40px;
        width: 50px;
        height: 50px;
    }
    
    .gallery-nav-prev {
        left: 10px;
    }
    
    .gallery-nav-next {
        right: 10px;
    }
    
    .gallery-modal-counter {
        bottom: 20px;
        font-size: 1em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ПРОЕКТЫ ===== */

.projects-section h1 {
    font-size: 36px;
    margin-bottom: 30px;
    text-align: center;
    color: var(--secondary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(10, 186, 181, 0.2);
}

.project-logo {
    width: 100%;
    max-width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 12px;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-logo-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 64px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.project-info {
    text-align: center;
}

.project-info h2,
.project-info h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 700;
}

.project-dates {
    color: var(--accent-ink);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 15px;
}

.project-description {
    line-height: 1.7;
    color: #555;
    text-align: left;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* === GUIDES SECTION === */
.guides-section {
    padding: 40px 0;
}

.guides-section h1 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 42px;
}

.guides-section .section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 18px;
}

.guides-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.guide-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(107, 163, 213, 0.2);
    border-color: var(--primary-color);
}

.guide-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.guide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--light-bg);
}

/* Статья без картинки — бабочка «Имаго» вместо значка-эмодзи */
.guide-image-placeholder span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--primary-light);
    -webkit-mask: url('/assets/butterfly.svg?v=1') center / 60% no-repeat;
    mask: url('/assets/butterfly.svg?v=1') center / 60% no-repeat;
}

.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.guide-description {
    max-width: 68ch;
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}

.guide-arrow svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guide-arrow {
    flex-shrink: 0;
    font-size: 24px;
    color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.guide-item:hover .guide-arrow {
    opacity: 1;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-card {
        padding: 25px;
    }
    
    .project-logo {
        max-width: 150px;
        height: 150px;
    }
    
    /* Guides адаптив */
    .guides-section h1 {
        font-size: 32px;
    }
    
    .guide-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .guide-image {
        width: 70px;
        height: 70px;
    }
    
    .guide-title {
        font-size: 17px;
    }
    
    .guide-description {
        font-size: 14px;
    }
    
    .guide-arrow {
        display: none;
    }
}

/* === GUIDE PAGE IMPROVEMENTS === */
.article-intro { display: flex; gap: 40px; margin-bottom: 40px; align-items: flex-start; }
.intro-content { flex: 1; }
.intro-image-container { width: 300px; flex-shrink: 0; }
.intro-image { width: 100%; aspect-ratio: 16/9; border-radius: 16px; object-fit: cover; box-shadow: 0 10px 25px rgba(0,0,0,0.1); border: 1px solid rgba(0,0,0,0.05); }
@media (max-width: 992px) { .article-intro { flex-direction: column-reverse; gap: 25px; } .intro-image-container { width: 100%; } }

/* ---------- «О проекте и услугах» (pages/about.php) ----------
   Вводный текст из админки, три смысловых блока карточками и реквизиты исполнителя отдельной плашкой. */
.about-page {
    max-width: 980px;
    margin: 0 auto;
}

.about-head {
    max-width: 760px;
    margin: 0 auto 40px;
    text-align: center;
}

.about-head h1 {
    margin-bottom: 18px;
    color: var(--secondary-color);
    font-size: clamp(30px, 3.6vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.about-intro {
    color: #4B5A66;
    font-size: 17px;
    line-height: 1.65;
    text-align: left;
}

.about-blocks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin-bottom: 24px;
}

/* Длинный блок про сопровождение — справа во всю высоту, два коротких — слева друг под другом */
.about-block:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
}

@media (max-width: 760px) {
    .about-blocks {
        grid-template-columns: 1fr;
    }

    .about-block:nth-child(2) {
        grid-column: auto;
        grid-row: auto;
    }
}

.about-block {
    padding: 24px 26px;
    border: 1px solid rgba(10, 186, 181, 0.12);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px -20px rgba(10, 120, 115, 0.35);
}

.about-block h2 {
    margin-bottom: 10px;
    color: var(--secondary-color);
    font-size: 20px;
    line-height: 1.25;
}

.about-block p,
.about-block li {
    color: #3B4A58;
    font-size: 15.5px;
    line-height: 1.6;
}

.about-block p + p {
    margin-top: 10px;
}

.about-block ul {
    margin: 8px 0 12px;
    padding: 0;
    list-style: none;
}

.about-block li {
    position: relative;
    margin-bottom: 6px;
    padding-left: 18px;
}

.about-block li::before {
    content: '';
    position: absolute;
    top: 0.6em;
    left: 2px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary-light);
}

.about-block a,
.about-requisites a,
.legal-page a {
    color: var(--primary-ink);
    text-underline-offset: 3px;
}

.about-note {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--light-bg);
    color: #3B4A58;
    font-size: 14.5px;
    line-height: 1.55;
}

.about-requisites {
    padding: 26px 28px;
    border-radius: 22px;
    background:
        radial-gradient(22rem 12rem at 100% 0%, rgba(255, 182, 193, 0.24), transparent 70%),
        var(--light-bg);
}

.about-requisites h2 {
    margin-bottom: 14px;
    color: var(--secondary-color);
    font-size: 20px;
}

.about-requisites dl {
    display: grid;
    grid-template-columns: minmax(150px, max-content) 1fr;
    gap: 8px 20px;
    margin: 0 0 6px;
}

.about-requisites dt {
    color: var(--muted-ink);
    font-size: 14.5px;
}

.about-requisites dd {
    margin: 0;
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.about-requisites .about-note {
    background: rgba(255, 255, 255, 0.7);
}

@media (max-width: 560px) {
    .about-requisites dl {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .about-requisites dd {
        margin-bottom: 8px;
    }
}

/* ---------- Политика обработки персональных данных (pages/privacy.php) ---------- */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 44px;
    border: 1px solid rgba(10, 186, 181, 0.12);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px -24px rgba(10, 120, 115, 0.35);
}

.legal-page h1 {
    margin-bottom: 6px;
    color: var(--secondary-color);
    font-size: clamp(26px, 3.2vw, 34px);
    font-weight: 800;
    line-height: 1.2;
}

.legal-meta {
    margin-bottom: 26px;
    color: var(--muted-ink);
    font-size: 14px;
}

.legal-page h2 {
    margin: 28px 0 10px;
    color: var(--secondary-color);
    font-size: 19px;
}

.legal-page p,
.legal-page li {
    max-width: 68ch;
    color: #3B4A58;
    font-size: 16px;
    line-height: 1.65;
}

.legal-page p + p {
    margin-top: 10px;
}

.legal-page ul {
    margin: 8px 0;
    padding-left: 22px;
}

.legal-page li {
    margin-bottom: 4px;
}

@media (max-width: 560px) {
    .legal-page {
        padding: 26px 20px;
        border-radius: 18px;
    }
}

/* Подвал: ссылки на «О проекте» и политику; контакты: кто проводит занятия в зале */
.footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin-bottom: 8px;
}

.site-footer .footer-legal-links a {
    color: #D7E7E6;
    font-size: 14px;
    text-decoration: underline;
    text-decoration-color: rgba(215, 231, 230, 0.35);
    text-underline-offset: 3px;
}

.branch-school {
    margin-top: 2px;
    color: var(--primary-ink);
    font-size: 14px;
    font-weight: 600;
}
