/* ============================================================
   Детский центр «Развивайка» — основной файл стилей
   ============================================================ */

:root {
    --bg: #f6f9fd;
    --surface: #ffffff;
    --surface-2: #eef4fb;
    --ink: #2c3648;
    --ink-soft: #667488;
    --line: #dde7f2;
    --accent: #4f8fd6;
    --accent-dark: #3a74b8;
    --teal: #4fa8a0;
    --sun: #7cb8e8;
    --violet: #8b7fc7;
    --blue: #7cb8e8;
    --gold: #e7b64f;
    --radius: 24px;
    --radius-sm: 14px;
    --shadow-sm: 0 4px 16px rgba(44, 54, 72, 0.06);
    --shadow: 0 20px 46px rgba(44, 54, 72, 0.10);
    --container: 1160px;
    --font: "Nunito", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background:
        radial-gradient(900px 500px at 100% -5%, #e8f2fc 0%, rgba(232, 242, 252, 0) 60%),
        radial-gradient(700px 420px at -10% 30%, #e9f5f3 0%, rgba(233, 245, 243, 0) 65%),
        var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

ul, ol { margin: 0 0 1em; padding-left: 1.1em; }
li { margin-bottom: 0.35em; }

:focus-visible {
    outline: 3px solid rgba(43, 179, 163, 0.55);
    outline-offset: 3px;
    border-radius: 8px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.icon {
    width: 20px;
    height: 20px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 200;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
}
.skip-link:focus { left: 12px; color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 14px;
    padding: 6px 13px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.eyebrow .icon { width: 15px; height: 15px; }

/* ---------- Шапка ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(246, 249, 253, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.site-header.is-scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 8px 26px rgba(44, 54, 72, 0.07);
    background: rgba(246, 249, 253, 0.97);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 78px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    flex: none;
}
.logo:hover { color: var(--ink); }
.logo-mark { width: 52px; height: 52px; object-fit: contain; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.01em; }
.logo-text small { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.02em; }

.nav {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}
.nav-link {
    padding: 9px 11px;
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}
.nav-link:hover { background: rgba(255, 122, 89, 0.12); color: var(--accent-dark); }
.nav-link.is-active { background: #fff; box-shadow: var(--shadow-sm); }
.nav .nav-cta { display: none; }

.header-cta { flex: none; font-size: 0.95rem; }
.header-cta .icon { width: 18px; height: 18px; }

.burger {
    display: none;
    margin-left: auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.burger .icon { width: 22px; height: 22px; }
.burger-close { display: none; }
.burger[aria-expanded="true"] .burger-open { display: none; }
.burger[aria-expanded="true"] .burger-close { display: block; }

/* ---------- Кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
    background: linear-gradient(135deg, #6aa5e0, var(--accent) 55%, #3f7cc0);
    color: #fff;
    box-shadow: 0 12px 26px rgba(79, 143, 214, 0.32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 16px 32px rgba(79, 143, 214, 0.42); transform: translateY(-2px); }
.btn-ghost {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { color: var(--accent-dark); border-color: rgba(255, 122, 89, 0.4); transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn .icon { width: 18px; height: 18px; }

/* ---------- Первый экран ---------- */

.hero { padding: 48px 0 30px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 44px;
}
.hero-content h1 { margin-bottom: 16px; }
.hero-content h1 .hl {
    position: relative;
    isolation: isolate;
    color: var(--accent-dark);
    white-space: nowrap;
}
.hero-content h1 .hl::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    bottom: -1px;
    height: 0.13em;
    background: rgba(124, 184, 232, 0.5);
    border-radius: 999px;
    z-index: -1;
}
.hero-lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 520px; margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 24px; }
.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
}
.hero-badges li { display: flex; align-items: center; gap: 7px; margin: 0; }
.hero-badges .icon { width: 17px; height: 17px; color: var(--teal); stroke-width: 2.2; }

.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 26px 36px rgba(44, 54, 72, 0.10)); }

/* ---------- Секции ---------- */

.section { padding: 74px 0; }
.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 32px;
}
.section-head--center { display: block; max-width: 740px; margin: 0 auto 38px; text-align: center; }
.section-title { margin-bottom: 10px; }
.section-lead { color: var(--ink-soft); max-width: 660px; margin: 0; }
.section-head--center .section-lead { margin: 0 auto; }
.link-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 4px;
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.link-more .icon { width: 17px; height: 17px; transition: transform 0.2s ease; }
.link-more:hover .icon { transform: translateX(4px); }

.cards-grid { display: grid; gap: 18px; }
.cards-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- Карточки направлений ---------- */

.direction-card {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.direction-card:hover {
    color: inherit;
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border-color: rgba(255, 122, 89, 0.35);
}
.direction-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 16px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #e8f1fb;
    color: var(--accent-dark);
}
.direction-icon .icon { width: 25px; height: 25px; }
.direction-card:nth-child(4n + 2) .direction-icon { background: #e6f5f2; color: #3f8f86; }
.direction-card:nth-child(4n + 3) .direction-icon { background: #fdf3dd; color: #b8873c; }
.direction-card:nth-child(4n + 4) .direction-icon { background: #f1eefb; color: #6f5bab; }

.direction-age {
    margin-bottom: 6px;
    color: var(--teal);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.direction-title { margin-bottom: 8px; font-size: 1.12rem; font-weight: 800; }
.direction-text { margin-bottom: 16px; color: var(--ink-soft); font-size: 0.92rem; }
.direction-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
}
.direction-more .icon { width: 16px; height: 16px; }

/* ---------- Преимущества ---------- */

.feature-card {
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e8f2fc, #f3f8fd);
    color: var(--accent-dark);
}
.feature-icon .icon { width: 24px; height: 24px; }
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- О центре ---------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 46px;
    align-items: center;
}
.about-text p { color: var(--ink-soft); max-width: 620px; }
.about-text .section-title { max-width: 620px; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 26px;
    padding: 0;
}
.stat {
    padding: 16px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    text-align: center;
}
.stat strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--accent-dark); line-height: 1.1; }
.stat span { font-size: 0.78rem; color: var(--ink-soft); }

.about-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.about-media {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.media-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 168px;
    padding: 20px;
    border-radius: var(--radius);
    color: #fff;
    font-weight: 800;
    font-size: 1.02rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.media-card::after {
    content: "";
    position: absolute;
    right: -30px;
    bottom: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}
.media-card:nth-child(2) { transform: translateY(18px); }
.media-card:nth-child(4) { transform: translateY(18px); }
.media-card--coral { background: linear-gradient(140deg, #a9cdf2, #5b93d6); }
.media-card--teal { background: linear-gradient(140deg, #a9ded9, #4fa8a0); }
.media-card--sun { background: linear-gradient(140deg, #bfe0f5, #7cb8e8); color: #17435f; }
.media-card--violet { background: linear-gradient(140deg, #d3c9ee, #8b7fc7); }
.media-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.22);
    display: grid;
    place-items: center;
}
.media-icon .icon { width: 22px; height: 22px; }

/* ---------- Педагоги ---------- */

.teacher-card {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.teacher-avatar {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
}
.teacher-avatar .icon { width: 26px; height: 26px; }
.teacher-card--teal .teacher-avatar { background: var(--teal); }
.teacher-card--sun .teacher-avatar { background: var(--sun); color: #17435f; }
.teacher-card--violet .teacher-avatar { background: var(--violet); }
.teacher-card h3 { margin-bottom: 8px; font-size: 1.05rem; }
.teacher-role { margin-bottom: 10px; color: var(--accent-dark); font-size: 0.85rem; font-weight: 700; }
.teacher-text { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.teacher-tags span {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2);
    color: #4a5a6e;
    font-size: 0.74rem;
    font-weight: 700;
}

/* ---------- События ---------- */

/* ---------- Мероприятия ---------- */

.activities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.activity-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.activity-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: #e8f1fb;
    color: var(--accent-dark);
}
.activity-icon .icon { width: 24px; height: 24px; }
.activity-card:nth-child(3n + 2) .activity-icon { background: #e6f5f2; color: #3f8f86; }
.activity-card:nth-child(3n + 3) .activity-icon { background: #f1eefb; color: #6f5bab; }
.activity-card h3 { margin-bottom: 8px; }
.activity-card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.events-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Отзывы ---------- */

.review-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.review-stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--gold); }
.review-stars .icon { width: 16px; height: 16px; fill: currentColor; stroke: currentColor; }
.review-card blockquote {
    margin: 0 0 16px;
    padding: 0;
    color: var(--ink);
    font-size: 0.96rem;
}
.review-card figcaption { margin-top: auto; }
.review-card figcaption strong { display: block; font-size: 0.92rem; }
.review-card figcaption span { color: var(--ink-soft); font-size: 0.8rem; }
.reviews-note { margin: 24px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- Вопросы ---------- */

.faq-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 46px;
    align-items: start;
}
.faq-intro .btn { margin-top: 6px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    padding: 2px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin: 0; padding: 0 0 16px; color: var(--ink-soft); font-size: 0.95rem; }
.faq-plus {
    flex: none;
    color: var(--accent);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq-item[open] .faq-plus { transform: rotate(45deg); }

/* ---------- Карта ---------- */

.map-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.map-info { padding: 10px; }
.map-hint { color: var(--ink-soft); font-size: 0.92rem; }
.map-frame {
    min-height: 340px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--surface-2);
}
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    font-size: 0.95rem;
}
.contact-list .icon { margin-top: 3px; color: var(--accent-dark); }
.contact-list a { color: var(--ink); text-decoration: none; }
.contact-list a:hover { color: var(--accent-dark); }

/* ---------- Форма ---------- */

.section--form { padding-top: 34px; }
.form-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 44px;
    align-items: start;
}
.form-info .contact-list { margin-top: 22px; }
.form-channels { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
}
.chip-link:hover { color: var(--accent-dark); border-color: rgba(255, 122, 89, 0.4); }
.chip-link .icon { width: 16px; height: 16px; }
.chip-link--muted { color: var(--ink-soft); }

.form-card {
    padding: 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.form-alert {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
}
.form-alert--ok { background: #e8f7f4; border: 1px solid #b9e6df; color: #0f6b61; }
.form-alert--error { background: #fff0ee; border: 1px solid #ffd2cb; color: #a63a24; }
.form-alert ul { margin: 8px 0 0; padding-left: 18px; }
.form-alert p { margin: 6px 0 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-label { font-size: 0.84rem; font-weight: 700; }
.field-label em { color: var(--accent); font-style: normal; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(79, 168, 160, 0.22);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--accent-dark); }
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 18px;
    color: var(--ink-soft);
    font-size: 0.85rem;
}
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--teal); }
.form-hint { margin: 10px 0 0; text-align: center; color: var(--ink-soft); font-size: 0.78rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; opacity: 0; }

/* ---------- Внутренние страницы ---------- */

.page-hero { padding: 44px 0 8px; }
.page-hero .section-title { max-width: 820px; }
.breadcrumbs { margin-bottom: 14px; color: var(--ink-soft); font-size: 0.82rem; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-dark); }
.breadcrumbs span { opacity: 0.6; }

.direction-block {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 30px;
    margin-bottom: 18px;
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    scroll-margin-top: 100px;
}
.direction-block .direction-icon { width: 54px; height: 54px; }
.direction-block__head p { margin-bottom: 16px; color: var(--ink-soft); font-size: 0.95rem; }
.direction-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.direction-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
}
.direction-list li:last-child { border-bottom: 0; }
.direction-list .age { flex: none; color: var(--teal); font-size: 0.82rem; font-weight: 800; white-space: nowrap; }

.legal { max-width: 840px; }
.legal h2 { margin-top: 34px; font-size: 1.3rem; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.95rem; }
.legal .updated { color: var(--ink-soft); font-size: 0.85rem; }

.note-box {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px dashed rgba(79, 143, 214, 0.55);
    border-radius: var(--radius-sm);
    background: rgba(238, 244, 251, 0.9);
    color: #3e5670;
    font-size: 0.92rem;
}

/* ---------- Подвал ---------- */

.site-footer {
    margin-top: 40px;
    padding: 56px 0 26px;
    border-radius: 38px 38px 0 0;
    background: #2b3547;
    color: #e8eef7;
}
.site-footer .logo-mark { width: 48px; height: 48px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1.1fr;
    gap: 40px;
}
.site-footer .logo-text strong { color: #fff; }
.site-footer .logo-text small { color: rgba(255, 255, 255, 0.55); }
.footer-note {
    max-width: 380px;
    margin: 16px 0 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}
.footer-vk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 0.87rem;
    font-weight: 700;
    text-decoration: none;
}
.footer-vk:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.footer-title {
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.footer-nav { display: flex; flex-direction: column; gap: 9px; }
.footer-nav a { color: rgba(255, 255, 255, 0.82); font-size: 0.92rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-line {
    display: flex;
    gap: 10px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
}
.footer-line .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--sun); }
.footer-line a { color: rgba(255, 255, 255, 0.92); text-decoration: none; }
.footer-line a:hover { color: #fff; }
.footer-small { margin: 12px 0 0; color: rgba(255, 255, 255, 0.45); font-size: 0.78rem; }
.footer-bottom {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.78rem;
}
.footer-bottom p { margin: 0; }

.mobile-bar { display: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 1100px) {
    .nav-link { padding: 8px 10px; font-size: 0.9rem; }
    .header-cta span { display: none; }
    .header-cta { width: 46px; height: 46px; padding: 0; border-radius: 50%; }
}

@media (max-width: 960px) {
    .burger { display: inline-flex; }
    .header-cta { display: none; }

    .nav {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        z-index: 99;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin: 0;
        padding: 16px 20px 24px;
        background: #f8fbff;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 40px rgba(34, 48, 63, 0.14);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-link { padding: 12px 14px; border-radius: 12px; font-size: 1rem; }
    .nav .nav-cta { display: inline-flex; margin-top: 10px; }

    .hero-grid { grid-template-columns: 1fr; gap: 26px; }
    .hero-art { max-width: 520px; margin: 0 auto; }
    .hero-content h1 .hl { white-space: normal; }

    .about-grid,
    .faq-grid,
    .form-grid,
    .map-grid { grid-template-columns: 1fr; }
    .about-media { max-width: 520px; }
    .cards-grid--4,
    .cards-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .activities-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .map-frame, .map-frame iframe { min-height: 300px; }
}

@media (max-width: 720px) {
    body { font-size: 16px; padding-bottom: 72px; }
    .container { padding: 0 18px; }
    .section { padding: 52px 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
    .section-head--center { align-items: center; }
    .hero { padding: 30px 0 18px; }
    .cards-grid--4,
    .cards-grid--3 { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr 1fr; }
    .about-media { grid-template-columns: 1fr 1fr; }
    .media-card { min-height: 140px; padding: 16px; font-size: 0.92rem; }
    .media-card:nth-child(2),
    .media-card:nth-child(4) { transform: none; }
    .event-card { grid-template-columns: 66px 1fr; gap: 14px; padding: 18px; }
    .event-date { height: 66px; border-radius: 14px; }
    .event-date strong { font-size: 1.4rem; }
    .event-date span { font-size: 0.64rem; }
    .activities-grid { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .direction-block { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .site-footer { border-radius: 30px 30px 0 0; padding-top: 42px; }

    .mobile-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 120;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .mobile-bar-btn {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 8px 4px;
        border-radius: 12px;
        color: var(--ink);
        font-size: 0.72rem;
        font-weight: 700;
        text-decoration: none;
    }
    .mobile-bar-btn .icon { width: 20px; height: 20px; color: var(--accent-dark); }
    .mobile-bar-btn.is-accent { background: var(--accent); color: #fff; }
    .mobile-bar-btn.is-accent .icon { color: #fff; }
}

@media (max-width: 480px) {
    .logo-text small { display: none; }
    .logo-mark { width: 40px; height: 40px; }
    .hero-card { position: static; margin-top: 14px; justify-content: center; }
    .eyebrow { font-size: 0.7rem; letter-spacing: 0.05em; }
    .hero-actions .btn,
    .about-actions .btn,
    .events-actions .btn { flex: 1 1 100%; }
    .form-card { padding: 20px; }
    .review-card { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
}








