/* Self-hosted Golos Text (cyrillic + latin). Same files cover 400–600. */
@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/golos-text-cyrillic-ext-zAqBxX_.woff2") format("woff2");
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/golos-text-cyrillic-1nzrg9_.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/golos-text-latin-ext-sNqT7NB.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Golos Text";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/golos-text-latin-HCe20zO.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --green-50: #f4fbf7;
    --green-100: #e7f6ee;
    --green-200: #c9edd9;
    --green-300: #9adcb8;
    --green-400: #5ec492;
    --green-500: #2aaa6c;
    --green-600: #1b8c56;
    --green-700: #157046;
    --green-800: #12573a;
    --green-900: #0e3f2c;

    --blue-50: #f4fafd;
    --blue-100: #e7f4fb;
    --blue-200: #c9e7f7;
    --blue-300: #98d0ef;
    --blue-400: #5bb3de;
    --blue-500: #2b97ce;
    --blue-600: #1b7aab;
    --blue-700: #176187;
    --blue-800: #154d6b;
    --blue-900: #12384e;

    --ink: #173028;
    --ink-soft: #3c564c;
    --muted: #5d756c;
    --line: #d5e6de;
    --white: #ffffff;

    --bg: #f5faf8;
    --surface: var(--white);
    --primary: var(--green-700);
    --primary-hover: var(--green-800);
    --accent: var(--blue-600);
    --shadow: 0 12px 32px rgba(20, 72, 48, 0.07);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --font: "Golos Text", "Segoe UI", sans-serif;
    --content: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.5;
    background:
        radial-gradient(880px 420px at 0% -8%, rgba(94, 196, 146, 0.22), transparent 62%),
        radial-gradient(760px 460px at 100% 0%, rgba(91, 179, 222, 0.24), transparent 58%),
        var(--bg);
}

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

a:hover {
    color: var(--blue-800);
}

img {
    max-width: 100%;
}

.wrap {
    width: min(var(--content), calc(100% - 40px));
    margin-inline: auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(213, 230, 222, 0.9);
    backdrop-filter: blur(16px);
}

.site-main {
    flex: 1 0 auto;
}

.header__inner,
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.header__panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: var(--green-50);
    cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--green-800);
}

.nav-toggle__bars {
    position: relative;
    margin-inline: auto;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo:hover {
    color: var(--ink);
}

.logo__mark {
    width: 42px;
    height: 40px;
    flex: none;
    object-fit: contain;
}

.contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
    color: var(--ink-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon {
    width: 1.15em;
    height: 1.15em;
    flex: none;
}

.hero {
    padding: 72px 0 36px;
}

.hero__panel {
    padding: 56px 56px 48px;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.4)),
        linear-gradient(120deg, var(--green-100), var(--blue-100));
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--green-700);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 18px;
    max-width: 22em;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.hero h1 {
    max-width: 14ch;
    margin-bottom: 0;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.lead {
    max-width: 38rem;
    margin: 0 0 20px;
    color: var(--ink-soft);
    font-size: 1.15rem;
}

.hero .lead {
    margin-top: 18px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--green-500), var(--blue-500));
    color: var(--white);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.button:hover {
    background: linear-gradient(145deg, var(--green-500), var(--blue-500));
    filter: brightness(0.92);
    color: var(--white);
}

.button--ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--blue-700);
    box-shadow: inset 0 0 0 1px var(--blue-200);
}

.button--ghost:hover {
    background: var(--white);
    color: var(--blue-800);
    filter: none;
}

.surfaces {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-bottom: 72px;
}

.surface {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.surface--mint {
    background: var(--green-50);
    box-shadow: inset 0 0 0 1px var(--green-200);
}

.surface--sky {
    background: var(--blue-50);
    box-shadow: inset 0 0 0 1px var(--blue-200);
}

.surface h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.surface p {
    margin: 0;
    color: var(--ink-soft);
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.7);
}

.footer__inner {
    min-height: 88px;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer a {
    color: var(--ink-soft);
    font-weight: 500;
}

@media (max-width: 1200px) {
    .header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 0;
        min-height: 64px;
    }

    .logo {
        min-width: 0;
        font-size: 1rem;
        line-height: 1.2;
    }

    .logo__mark {
        width: 36px;
        height: 34px;
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: 0;
        grid-column: 2;
        grid-row: 1;
    }

    .header__panel {
        display: none;
        grid-column: 1 / -1;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 16px;
    }

    .header.is-open .header__panel {
        display: flex;
    }

    .header__panel .nav {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }

    .header__panel .nav a,
    .header .contacts a {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 48px;
        padding: 0 4px;
        border-bottom: 1px solid var(--line);
    }

    .header .contacts {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
}

@media (max-width: 800px) {
    .footer__inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .contacts,
    .footer__links {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 28px;
    }

    .hero__panel {
        padding: 32px 24px;
    }

    .hero .actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero .actions .button {
        width: 100%;
    }

    .surfaces {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .date-chip {
        flex-basis: 100%;
    }
}

.brand-gradient {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.header .nav,
.header .contacts {
    align-items: center;
}

.header .nav a,
.header .contacts a {
    line-height: 1;
}

.header .contacts {
    font-size: 1.15rem;
    font-weight: 600;
}

.header-phone {
    color: var(--accent);
}

.header-phone__text {
    background-image: linear-gradient(145deg, var(--green-500), var(--blue-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.header-phone .icon {
    stroke: url("#brand-gradient");
}

.header-phone:hover {
    color: var(--accent);
}

.header-phone:hover .header-phone__text {
    background-image: none;
    color: var(--accent);
}

.header-phone:hover .icon {
    stroke: currentColor;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.nav a {
    color: var(--ink-soft);
    font-weight: 500;
}

.nav a.is-active,
.nav a:hover {
    color: var(--green-700);
}

.page {
    padding: 36px 0 72px;
}

.page-block {
    padding-bottom: 40px;
}

.page-block h2,
.page h2 {
    margin: 28px 0 14px;
    letter-spacing: -0.03em;
}

.page > .cards {
    margin-top: 8px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: stretch;
}

.card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--white);
    color: inherit;
    box-shadow: var(--shadow);
}

.media-placeholder {
    width: 100%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 58%),
        linear-gradient(120deg, var(--green-100), var(--blue-100));
}

.card .media-placeholder {
    height: 190px;
    flex: none;
}

.card img,
.gallery img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.cover {
    width: 100%;
    max-height: 420px;
    margin: 8px 0 24px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.media-placeholder.cover {
    aspect-ratio: 16 / 10;
    height: auto;
}

.card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 16px 18px 18px;
}

.card h2,
.card h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.card p {
    flex: 1;
    margin: 0;
    color: var(--ink-soft);
}

.prose {
    margin: 0 0 16px;
    color: var(--ink-soft);
    white-space: pre-line;
}

.page > .prose {
    max-width: 42rem;
}

.card__meta {
    margin-top: auto;
    padding-top: 10px;
    color: var(--green-700);
    font-weight: 600;
}

.dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.date-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 220px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--white);
    color: inherit;
    box-shadow: var(--shadow);
}

.facts {
    margin: 0 0 24px;
    padding-left: 18px;
}

.program {
    margin-bottom: 12px;
}

.price-scroll {
    margin: 0 0 28px;
    overflow-x: auto;
}

.page .contacts--stack {
    gap: 14px;
    align-items: flex-start;
    margin-top: 8px;
}

.page .contacts--stack a {
    min-height: 44px;
    align-items: center;
}

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

.program {
    margin-bottom: 12px;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 16px;
    background: var(--white);
}

.price-table th,
.price-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.gallery-page .gallery {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
}

.gallery-page .gallery__open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.gallery-page .gallery img {
    height: 280px;
    border-radius: var(--radius-md);
}

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

    .gallery-page .gallery img {
        height: 220px;
    }
}

.gallery-dialog {
    width: min(960px, calc(100% - 32px));
    padding: 16px;
    border: 0;
    border-radius: var(--radius-md);
    background: var(--white);
}

.gallery-dialog::backdrop {
    background: rgba(16, 32, 28, 0.72);
}

.gallery-dialog img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
}

.gallery-dialog__close {
    margin-top: 12px;
}

.contact-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.contact-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    column-gap: 12px;
    align-items: center;
    min-height: 72px;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow);
    color: var(--ink);
    font-weight: 500;
}

.contact-card .icon {
    grid-row: 1 / span 2;
}

.contact-card__label {
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.contact-card__value {
    color: var(--ink);
}

.contact-card:hover {
    background: var(--green-50);
    color: var(--ink);
}

.gallery figcaption {
    color: var(--muted);
    font-size: 0.92rem;
}

.contacts--stack,
.stack-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.stack-form input {
    display: block;
    min-width: 260px;
    min-height: 42px;
    margin-top: 4px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
}

.form-error {
    color: #9b3b3b;
}
