/* ==========================================================================
   Воронежский учебный центр — основной стиль
   ========================================================================== */

:root {
    --c-primary: #0B4EA2;
    --c-primary-700: #083A7A;
    --c-primary-100: #DCEAFB;
    --c-primary-50: #EEF5FE;
    --c-accent: #F5B335;
    --c-accent-600: #E09A12;
    --c-sky: #3BA9E8;
    --c-text: #16233C;
    --c-muted: #5B677A;
    --c-bg: #F5F8FD;
    --c-surface: #FFFFFF;
    --c-border: #E2E9F3;
    --c-success: #2E9E6B;
    --c-danger: #D64545;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(16, 42, 80, .05), 0 4px 16px rgba(16, 42, 80, .05);
    --shadow-md: 0 10px 30px rgba(16, 42, 80, .12);
    --container: 1200px;
    --header-h: 82px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.is-compact {
    --header-h: 64px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.15;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: var(--c-primary);
    text-decoration: none;
}

a:hover {
    color: var(--c-primary-700);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

.icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--c-primary);
    color: #fff;
    transition: top .2s;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--c-primary);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--c-primary);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}

.btn:active {
    transform: translateY(1px);
}

.btn__icon {
    width: 20px;
    height: 20px;
}

.btn--primary {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 78, 162, .18);
}

.btn--primary:hover {
    background: var(--c-primary-700);
    border-color: var(--c-primary-700);
    color: #fff;
}

.btn--accent {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #2A1A00;
    box-shadow: 0 6px 16px rgba(245, 179, 53, .22);
}

.btn--accent:hover {
    background: var(--c-accent-600);
    border-color: var(--c-accent-600);
    color: #2A1A00;
}

.btn--ghost {
    background: #fff;
    border-color: var(--c-border);
    color: var(--c-primary);
}

.btn--ghost:hover {
    background: var(--c-primary-50);
    border-color: #C9D9EF;
    color: var(--c-primary-700);
}

.btn--lg {
    min-height: 52px;
    padding: 0 24px;
    font-size: 16px;
}

.btn--sm {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
}

/* Шапка */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: box-shadow .25s, border-color .25s, background .25s;
}

.site-header.is-compact {
    background: rgba(255, 255, 255, .97);
    border-color: var(--c-border);
    box-shadow: 0 8px 30px rgba(16, 42, 80, .08);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: var(--header-h);
    transition: height .25s;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--c-text);
}

.brand:hover {
    color: var(--c-text);
}

.brand__logo {
    width: 44px;
    height: 35px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    max-width: 300px;
    overflow: hidden;
    opacity: 1;
    transition: max-width .25s, opacity .2s;
}

.brand__text strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.brand__text span {
    font-size: 11px;
    color: var(--c-muted);
    white-space: nowrap;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.site-header.is-compact .brand__text {
    max-width: 0;
    opacity: 0;
}

.site-header.is-compact .btn {
    min-width: 44px;
    padding: 0 12px;
}

.site-header.is-compact .btn__label {
    display: none;
}

/* Первый экран */
.hero {
    position: relative;
    padding: 56px 0 72px;
    overflow: hidden;
    background:
        radial-gradient(900px 420px at 12% -10%, rgba(59, 169, 232, .18), transparent 60%),
        radial-gradient(700px 380px at 92% 12%, rgba(245, 179, 53, .16), transparent 60%),
        linear-gradient(180deg, #F3F8FF 0%, var(--c-bg) 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.hero::before {
    width: 320px;
    height: 320px;
    right: -120px;
    top: -140px;
    background: rgba(59, 169, 232, .12);
}

.hero::after {
    width: 180px;
    height: 180px;
    left: -60px;
    bottom: -80px;
    background: rgba(245, 179, 53, .16);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 48px;
    align-items: center;
}

.hero h1 {
    margin: 14px 0 18px;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    letter-spacing: -.035em;
}

.hero__lead {
    max-width: 620px;
    font-size: clamp(1rem, 1.6vw, 1.18rem);
    color: var(--c-muted);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 26px;
    color: var(--c-muted);
    font-size: 13px;
}

.hero__badges li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge__icon {
    width: 18px;
    height: 18px;
    color: var(--c-success);
}

.hero__card {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 24px;
    background: rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__card-top {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--c-border);
}

.hero__card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}

.hero__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 20px 0;
}

.hero__stats strong {
    display: block;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--c-primary);
}

.hero__stats span {
    font-size: 11px;
    color: var(--c-muted);
}

.hero__card-note {
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
    font-size: 12px;
    color: var(--c-muted);
}

/* Секции */
.section {
    padding: 72px 0;
}

.section--about {
    background: var(--c-surface);
}

.section--docs {
    background: var(--c-bg);
}

.section__head {
    max-width: 760px;
    margin-bottom: 32px;
}

.section__head h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.025em;
}

.section__head p {
    color: var(--c-muted);
}

/* Плитки направлений */
.tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 170px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-surface);
    color: var(--c-text);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s, border-color .2s;
}

.tile:hover {
    transform: translateY(-3px);
    border-color: #C9D9EF;
    color: var(--c-text);
    box-shadow: var(--shadow-md);
}

.tile__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--c-primary-50);
    color: var(--c-primary);
}

.tile__icon-svg {
    width: 26px;
    height: 26px;
}

.tile__body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: auto;
}

.tile__title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.tile__meta {
    font-size: 12px;
    color: var(--c-muted);
}

.tile__arrow {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #A9B8CC;
    transition: color .2s, transform .2s;
}

.tile:hover .tile__arrow {
    color: var(--c-primary);
    transform: translate(2px, -2px);
}

.tile__arrow-icon {
    width: 20px;
    height: 20px;
}

.tile--speak {
    border-color: transparent;
    background: linear-gradient(140deg, #0B4EA2 0%, #2E86D8 55%, #3BA9E8 100%);
    color: #fff;
}

.tile--speak:hover {
    color: #fff;
}

.tile--speak .tile__icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.tile--speak .tile__meta {
    color: rgba(255, 255, 255, .76);
}

.tile--speak .tile__arrow {
    color: rgba(255, 255, 255, .7);
}

.tile--speak:hover .tile__arrow {
    color: #fff;
}

.tile--strela {
    border-color: #F2D58B;
    background: linear-gradient(140deg, #EAF7FF 0%, #FFF7E0 100%);
}

.tile--strela .tile__icon {
    background: #fff;
    color: #2E86D8;
}

.tile--cta {
    grid-column: span 2;
    border-color: #E8A81E;
    background: linear-gradient(135deg, #F5B335, #FFD36A);
    color: #2A1A00;
}

.tile--cta:hover {
    color: #2A1A00;
}

.tile--cta .tile__icon {
    background: rgba(255, 255, 255, .55);
    color: #5A3B00;
}

.tile--cta .tile__meta {
    color: rgba(42, 26, 0, .7);
}

.tile--cta .tile__arrow {
    color: #5A3B00;
}

.tile--cta:hover .tile__arrow {
    color: #2A1A00;
}

/* О нас */
.about {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 48px;
    align-items: start;
}

.about__content h2 {
    margin: 8px 0 16px;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    letter-spacing: -.025em;
}

.about__content p {
    margin-top: 12px;
    color: var(--c-muted);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 24px 0 28px;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
}

.check-list__icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    color: var(--c-success);
}

.about__card {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid #D8E7FA;
    border-radius: var(--radius);
    background: var(--c-primary-50);
}

.about__stat {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #D8E7FA;
}

.about__stat strong {
    font-size: 2rem;
    line-height: 1;
    color: var(--c-primary);
}

.about__stat span {
    font-size: 13px;
    color: var(--c-muted);
}

.about__license {
    display: grid;
    gap: 4px;
    font-size: 12px;
    color: var(--c-muted);
}

.about__license strong {
    font-size: 14px;
    color: var(--c-text);
}

/* Галереи */
.gallery {
    display: grid;
    gap: 14px;
}

.gallery--docs {
    grid-template-columns: repeat(3, 1fr);
}

.gallery__item {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
    transition: transform .2s, box-shadow .2s;
}

.gallery__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery--docs .gallery__item {
    aspect-ratio: 3 / 4;
}

.gallery__item picture {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery--docs .gallery__item img {
    object-fit: contain;
    background: #fff;
}

.gallery__zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(11, 78, 162, .9);
    color: #fff;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity .2s, transform .2s;
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
    opacity: 1;
    transform: none;
}

.gallery__zoom-icon {
    width: 18px;
    height: 18px;
}

.gallery__more {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.gallery__more-count {
    color: var(--c-muted);
    font-weight: 400;
}

/* CTA */
.section--cta {
    padding: 0 0 72px;
}

.cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0B4EA2 0%, #0A3B7C 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.cta h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.cta p {
    max-width: 560px;
    color: rgba(255, 255, 255, .78);
}

.cta .eyebrow {
    color: rgba(255, 255, 255, .62);
}

.cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

.cta .btn--ghost {
    border-color: rgba(255, 255, 255, .28);
    background: transparent;
    color: #fff;
}

.cta .btn--ghost:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

/* Внутренние страницы */
.page-hero {
    padding: 48px 0 40px;
    background: linear-gradient(180deg, #EEF5FE 0%, var(--c-bg) 100%);
}

.page-hero__inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-hero h1 {
    margin: 8px 0 10px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    letter-spacing: -.035em;
}

.page-hero__lead {
    max-width: 760px;
    color: var(--c-muted);
}

.page-hero--strela {
    background: linear-gradient(135deg, #E8F6FF 0%, #FFF8E3 100%);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.badge--warn {
    border: 1px solid #F5D38A;
    background: #FFF1D6;
    color: #7A4B00;
}

/* Фильтр программ */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 24px 0 18px;
    padding: 12px;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
}

.filter {
    display: flex;
    flex: 1 1 280px;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 12px;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    background: var(--c-bg);
}

.filter:focus-within {
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(11, 78, 162, .12);
}

.filter__icon {
    width: 20px;
    height: 20px;
    color: var(--c-muted);
}

.filter input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-text);
}

.filter input::placeholder {
    color: #8A97AA;
}

.filter__status {
    font-size: 13px;
    color: var(--c-muted);
}

.programs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 0 14px;
    background: var(--c-bg);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.programs-nav__item {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-text);
    font-size: 12px;
}

.programs-nav__item span {
    display: inline-grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--c-primary-50);
    color: var(--c-primary);
    font-size: 10px;
    font-weight: 700;
}

.programs-nav__item:hover {
    border-color: #C9D9EF;
    color: var(--c-primary);
}

/* Разделы программ */
.program-section {
    padding: 34px 0;
    scroll-margin-top: 32px;
}

.program-section + .program-section {
    border-top: 1px solid var(--c-border);
}

.program-section__head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.program-section__icon {
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--c-primary-50);
    color: var(--c-primary);
}

.program-section__icon-svg {
    width: 26px;
    height: 26px;
}

.program-section__title h2 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
    letter-spacing: -.02em;
}

.program-section__title p {
    max-width: 760px;
    margin-top: 4px;
    color: var(--c-muted);
    font-size: 13px;
}

.program-section__count {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: 999px;
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: 12px;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface);
    box-shadow: var(--shadow-sm);
}

.program-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.program-table th {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
    background: #F8FAFE;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.program-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #EDF2F9;
    vertical-align: top;
}

.program-table tr:last-child td {
    border-bottom: 0;
}

.program-table tbody tr:hover {
    background: #FAFCFF;
}

.program-table td:first-child {
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.program-table td:nth-child(2) {
    font-weight: 500;
}

.program-table td:nth-child(3),
.program-table td:nth-child(4) {
    color: var(--c-muted);
    white-space: nowrap;
}

.program-table td:nth-child(4) {
    color: var(--c-text);
    font-weight: 600;
}

.program-title {
    display: block;
}

.program-table tbody tr.program-row--plan {
    cursor: pointer;
}

.program-table tbody tr.program-row--plan:hover {
    background: #F2F8FF;
}

.plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 7px;
    padding: 3px 8px;
    border: 1px solid #D6E6FA;
    border-radius: 999px;
    background: #F2F7FE;
    color: var(--c-primary);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    transition: background .2s, color .2s, border-color .2s;
}

.plan-chip:hover {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: #fff;
}

.plan-chip:focus-visible {
    outline: 2px solid var(--c-primary);
    outline-offset: 2px;
}

.plan-chip__icon {
    width: 14px;
    height: 14px;
}

.program-table tbody tr.program-row--plan:hover .plan-chip {
    border-color: var(--c-primary);
    background: var(--c-primary);
    color: #fff;
}

.empty-state {
    margin: 24px 0;
    padding: 60px 20px;
    border: 1px dashed var(--c-border);
    border-radius: 18px;
    background: var(--c-surface);
    text-align: center;
}

.empty-state__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--c-muted);
}

.empty-state h2 {
    margin-bottom: 6px;
    font-size: 1.3rem;
}

.empty-state p {
    color: var(--c-muted);
}

.programs-note {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0 60px;
    padding: 20px 24px;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-surface);
    color: var(--c-muted);
    font-size: 13px;
}

.programs-note__text {
    display: grid;
    gap: 6px;
    max-width: 820px;
}

.programs-note a {
    color: var(--c-primary);
}

/* Модалка учебного плана */
.plan-modal {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
}

.plan-modal::backdrop {
    background: rgba(4, 12, 28, .78);
}

.plan-modal__panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: #fff;
}

.plan-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--c-border);
    background: var(--c-surface);
}

.plan-modal__heading {
    min-width: 0;
}

.plan-modal__heading h2 {
    margin: 3px 0 0;
    overflow: hidden;
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plan-modal__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.plan-modal__actions .btn {
    white-space: nowrap;
}

.plan-modal__close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-muted);
}

.plan-modal__close:hover {
    background: var(--c-primary-50);
    color: var(--c-primary);
}

.plan-modal__close-icon {
    width: 20px;
    height: 20px;
}

.plan-modal__body {
    flex: 1;
    min-height: 0;
    background: #EEF2F7;
}

.plan-modal__body iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Модалка контактов */
.modal {
    width: min(1000px, calc(100% - 32px));
    max-width: 1000px;
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: transparent;
}

.modal::backdrop {
    background: rgba(4, 12, 28, .62);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.modal[open] {
    animation: modal-in .2s ease-out;
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal__panel {
    position: relative;
    max-height: 90vh;
    padding: 30px;
    overflow: auto;
    border-radius: 22px;
    background: var(--c-surface);
    box-shadow: 0 30px 80px rgba(4, 12, 28, .35);
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-muted);
}

.modal__close:hover {
    background: var(--c-primary-50);
    color: var(--c-primary);
}

.modal__close-icon {
    width: 20px;
    height: 20px;
}

.modal__head {
    padding-right: 48px;
}

.modal__head h2 {
    margin: 6px 0 8px;
    font-size: 1.8rem;
}

.modal__head p {
    max-width: 620px;
    color: var(--c-muted);
}

.modal__body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}

.contacts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-content: start;
}

.contacts__block h3 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--c-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.contacts__icon {
    width: 16px;
    height: 16px;
    color: var(--c-primary);
}

.contacts__block p,
.contacts__block li {
    font-size: 14px;
}

.contacts__block ul {
    display: grid;
    gap: 4px;
}

.contacts__block a {
    color: var(--c-text);
}

.contacts__block a:hover {
    color: var(--c-primary);
}

.modal__map {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--c-border);
    border-radius: 14px;
    background: var(--c-bg);
}

.modal__map-link {
    position: relative;
    display: block;
    color: #fff;
}

.modal__map-link:hover {
    color: #fff;
}

.modal__map-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 650 / 400;
    object-fit: cover;
}

.modal__map-caption {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(11, 78, 162, .92);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
}

.modal__map-icon {
    width: 14px;
    height: 14px;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--c-primary);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.link-button:hover {
    color: var(--c-primary-700);
}

/* Лайтбокс */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 12, 28, .9);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.lightbox__figure {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: min(1100px, 92vw);
    max-height: 86vh;
}

.lightbox__figure img {
    width: auto;
    max-width: 100%;
    max-height: 78vh;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.lightbox__figure figcaption {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    text-align: center;
}

.lightbox__close,
.lightbox__nav {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.lightbox__close:hover,
.lightbox__nav:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.lightbox__close {
    top: 20px;
    right: 20px;
}

.lightbox__nav--prev {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.lightbox__nav--next {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.lightbox__icon {
    width: 24px;
    height: 24px;
}

.lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    z-index: 2;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    transform: translateX(-50%);
}

body.lightbox-open {
    overflow: hidden;
}

/* Подвал */
.site-footer {
    padding: 56px 0 0;
    background: #0A2A52;
    color: rgba(255, 255, 255, .75);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.4fr .7fr 1fr;
    gap: 40px;
    padding-bottom: 36px;
}

.brand--footer {
    color: #fff;
}

.brand--footer:hover {
    color: #fff;
}

.brand--footer .brand__text strong {
    color: #fff;
}

.brand--footer .brand__text span {
    color: rgba(255, 255, 255, .6);
}

.brand--footer .brand__logo {
    width: 48px;
    height: 40px;
    padding: 4px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.footer__about {
    max-width: 420px;
    margin-top: 16px;
    font-size: 13px;
}

.footer__legal {
    max-width: 480px;
    margin-top: 14px;
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}

.footer__title {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer__list {
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.footer__list a {
    color: rgba(255, 255, 255, .8);
}

.footer__list a:hover {
    color: #fff;
}

.footer__contacts li {
    color: rgba(255, 255, 255, .7);
}

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .45);
    font-size: 11px;
}

/* Детский центр */
.strela {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: start;
}

.strela__content h2 {
    margin: 8px 0 16px;
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
}

.strela__content p {
    margin-top: 12px;
    color: var(--c-muted);
}

.strela__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.strela__card {
    padding: 28px;
    border: 1px solid #F2D58B;
    border-radius: var(--radius);
    background: linear-gradient(140deg, #EAF7FF 0%, #FFF7E0 100%);
}

.strela__card h2 {
    margin-bottom: 14px;
    font-size: 1.4rem;
}

.strela__contacts {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.strela__contacts a {
    color: var(--c-text);
}

.strela__contacts a:hover {
    color: var(--c-primary);
}

/* Политика */
.legal {
    max-width: 900px;
    padding: 32px;
    border: 1px solid var(--c-border);
    border-radius: 18px;
    background: var(--c-surface);
}

.legal__date {
    margin-bottom: 16px;
    color: var(--c-muted);
    font-size: 12px;
}

.legal h2 {
    margin: 24px 0 8px;
    font-size: 1.15rem;
}

.legal p,
.legal li {
    margin-bottom: 8px;
    color: var(--c-muted);
    font-size: 14px;
}

.legal ul {
    padding-left: 18px;
    list-style: disc;
}

/* 404 */
.not-found {
    padding: 90px 0;
    background: linear-gradient(180deg, #EEF5FE 0%, var(--c-bg) 100%);
}

.not-found__inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.not-found__code {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    line-height: 1;
    color: var(--c-primary);
    opacity: .18;
}

.not-found h1 {
    margin: 8px 0 10px;
}

.not-found p {
    color: var(--c-muted);
}

.not-found__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

/* Кнопка наверх */
.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--c-border);
    border-radius: 50%;
    background: var(--c-surface);
    color: var(--c-primary);
    box-shadow: var(--shadow-md);
}

.to-top:hover {
    background: var(--c-primary);
    color: #fff;
}

.to-top__icon {
    width: 20px;
    height: 20px;
}

.metrika-pixel {
    position: absolute;
    left: -9999px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero__card {
        max-width: 520px;
    }

    .tiles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .tile--cta {
        grid-column: span 1;
    }

    .about,
    .strela {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about__card,
    .strela__card {
        max-width: 560px;
    }

    .gallery--docs {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .page-hero__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 900px) {
    .plan-modal__head {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .plan-modal__heading h2 {
        white-space: normal;
    }

    .plan-modal__actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .plan-modal__actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    body {
        --header-h: 64px;
    }

    .site-header .brand__text {
        display: none;
    }

    .header__actions .btn {
        width: 44px;
        height: 44px;
        padding: 0;
    }

    .header__actions .btn__label {
        display: none;
    }

    .tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tile--cta {
        grid-column: span 2;
    }

    .gallery--docs {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 26px;
    }

    .modal__body {
        grid-template-columns: 1fr;
    }

    .contacts {
        grid-template-columns: 1fr 1fr;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cta__actions {
        width: 100%;
    }

    .cta__actions .btn {
        flex: 1 1 auto;
    }

    .programs-nav {
        position: sticky;
        top: var(--header-h);
        z-index: 30;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .program-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .program-table,
    .program-table tbody,
    .program-table tr,
    .program-table td {
        display: block;
        width: 100%;
    }

    .program-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--c-border);
    }

    .program-table tr:last-child {
        border-bottom: 0;
    }

    .program-table td {
        padding: 3px 0;
        border: 0;
    }

    .program-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--c-muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .06em;
        text-transform: uppercase;
    }

    .program-table td:nth-child(2) {
        font-size: 15px;
    }

    .program-table td:nth-child(3),
    .program-table td:nth-child(4) {
        white-space: normal;
    }

    .modal {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .modal__panel {
        min-height: 100%;
        border-radius: 0;
        padding: 24px 18px;
    }

    .program-section__head {
        flex-wrap: wrap;
    }

    .program-section__count {
        margin-left: 64px;
    }

    .lightbox__nav--prev {
        left: 8px;
    }

    .lightbox__nav--next {
        right: 8px;
    }

    .lightbox__close {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 520px) {
    .tiles {
        grid-template-columns: 1fr;
    }

    .tile--cta {
        grid-column: span 1;
    }

    .contacts {
        grid-template-columns: 1fr;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .programs-note {
        flex-direction: column;
        align-items: flex-start;
    }

    .legal {
        padding: 22px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
