:root {
    --ink: #4c3b32;
    --muted: #7a6b62;
    --paper: #fffdf9;
    --soft: #fff7ea;
    --coral: #ef6d5d;
    --orange: #e96614;
    --blue: #46a9c9;
    --green: #57ab72;
    --yellow: #f7c844;
    --shadow: 0 18px 45px rgba(97, 70, 48, 0.12);
    --radius: 28px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: Inter, ui-rounded, "Trebuchet MS", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.section-pad {
    padding: 96px 0;
}

.soft-bg {
    background: var(--soft);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 249, 0.91);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(76, 59, 50, 0.08);
}

.nav-wrap {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand img {
    width: 125px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 25px;
    margin-left: auto;
    align-items: center;
}

.nav a {
    font-size: 14px;
    font-weight: 700;
}

.nav a:hover {
    color: var(--orange);
}

.nav-toggle {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border-radius: 18px;
    background: var(--orange);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(233, 102, 20, 0.2);
    transition:
        0.2s transform,
        0.2s box-shadow;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(233, 102, 20, 0.26);
}

.button-small {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 14px;
    font-size: 14px;
}

.button-ghost {
    background: #fff;
    color: var(--ink);
    border: 2px solid #f0e7dd;
    box-shadow: none;
}

.text-link {
    font-weight: 800;
    color: var(--orange);
}

.hero {
    position: relative;
    overflow: hidden;
    padding-top: 72px;
    background:
        radial-gradient(circle at 88% 18%,
            rgba(247, 200, 68, 0.22),
            transparent 23%),
        radial-gradient(circle at 8% 78%, rgba(70, 169, 201, 0.13), transparent 21%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    align-items: center;
    gap: 68px;
    min-height: 610px;
}

.eyebrow {
    display: inline-block;
    color: var(--green);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 14px;
}

.hero h1,
.section-head h2,
.feature-copy h2,
.info-card h2,
.printing h2,
.nutrition-copy h2,
.contact-card h2 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0;
}

.hero h1 {
    font-size: clamp(54px, 6.2vw, 86px);
    max-width: 780px;
}

.hero h1 span {
    color: var(--orange);
}

.lead {
    font-size: 22px;
    max-width: 660px;
    color: var(--muted);
    margin: 25px 0 32px;
}

.lead-small {
    font-size: 19px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    color: var(--muted);
}

.hero-note-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid #eee5da;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.3;
}

a.hero-note-item {
    transition:
        0.2s transform,
        0.2s border-color,
        0.2s color;
}

a.hero-note-item:hover {
    transform: translateY(-1px);
    border-color: rgba(233, 102, 20, 0.35);
    color: var(--orange);
}

.hero-note-item>span:first-child {
    flex: 0 0 auto;
}

.hero-note-hours {
    flex-basis: 100%;
    width: 100%;
    max-width: fit-content;
}

.hero-note-hours b {
    color: var(--ink);
}

.hero-visual {
    position: relative;
    min-height: 520px;
}

.hero-card-main {
    position: absolute;
    inset: 25px 30px 20px 40px;
    border-radius: 40px 40px 120px 40px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transform: rotate(1.8deg);
    background: #fff;
    border: 10px solid #fff;
}

.hero-card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-card {
    position: absolute;
    z-index: 3;
    padding: 15px 18px;
    border-radius: 18px;
    font-weight: 700;
    line-height: 1.25;
    box-shadow: var(--shadow);
    transform: rotate(-3deg);
}

.mini-card b {
    display: block;
}

.mini-card-yellow {
    background: #fff1a8;
    right: -15px;
    top: 48px;
}

.mini-card-blue {
    background: #d9f4ff;
    left: 0;
    bottom: 45px;
    transform: rotate(4deg);
}

.doodle-line {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 120px;
    height: 70px;
    border-bottom: 5px solid var(--green);
    border-radius: 50%;
    transform: rotate(-12deg);
}

.spark {
    position: absolute;
    font-size: 28px;
    animation: floaty 4.5s ease-in-out infinite;
}

.spark-a {
    color: var(--coral);
    left: 3%;
    top: 24%;
}

.spark-b {
    color: var(--blue);
    left: 43%;
    bottom: 8%;
    animation-delay: 1s;
}

.spark-c {
    color: var(--yellow);
    right: 3%;
    top: 26%;
    animation-delay: 2s;
}

@keyframes floaty {
    50% {
        transform: translateY(-10px) rotate(8deg);
    }
}

.quick-strip {
    padding: 27px 0;
    border-top: 1px solid #f0e7dd;
    border-bottom: 1px solid #f0e7dd;
    background: #fff;
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.quick-grid>div {
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 10px;
    align-items: center;
}

.quick-grid span {
    font-size: 22px;
    color: var(--coral);
    grid-row: 1/3;
}

.quick-grid b {
    font-size: 15px;
}

.quick-grid small {
    font-size: 12px;
    color: var(--muted);
}

.section-head {
    max-width: 760px;
    margin-bottom: 42px;
}

.section-head h2,
.feature-copy h2,
.printing h2,
.nutrition-copy h2,
.contact-card h2 {
    font-size: clamp(38px, 4vw, 58px);
}

.section-head p {
    color: var(--muted);
    font-size: 18px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 230px;
    padding: 28px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid #eee5da;
    overflow: hidden;
    transition:
        0.25s transform,
        0.25s box-shadow;
}

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

.service-card h3 {
    font-size: 22px;
    margin: 20px 0 8px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 20px;
    font-weight: 900;
}

.coral .service-icon {
    background: #ffe2dd;
    color: var(--coral);
}

.blue .service-icon {
    background: #dcf4fb;
    color: var(--blue);
}

.green .service-icon {
    background: #e5f6e8;
    color: var(--green);
}

.yellow .service-icon {
    background: #fff3bf;
    color: #c89100;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 80px;
    align-items: center;
}

.feature-media {
    position: relative;
    min-height: 650px;
}

.portrait-poster {
    width: 55%;
    height: 620px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow);
    margin-left: 12%;
}

.feature-photo {
    position: absolute;
    width: 52%;
    height: 360px;
    object-fit: cover;
    right: 0;
    bottom: 10px;
    border-radius: 30px;
    border: 8px solid #fff;
    box-shadow: var(--shadow);
    transform: rotate(3deg);
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 28px 0;
}

.check-list li {
    position: relative;
    padding: 11px 0 11px 36px;
    border-bottom: 1px dashed #ded3c6;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 9px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5f6e8;
    color: var(--green);
    display: grid;
    place-items: center;
    font-weight: 900;
}

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

.info-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 28px;
    align-items: center;
    padding: 35px;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 32px;
}

.info-card h2 {
    font-size: 36px;
}

.info-card p {
    color: var(--muted);
}

.info-card img {
    border-radius: 22px;
    max-height: 390px;
    width: 100%;
    object-fit: cover;
}

.printing {
    background: linear-gradient(135deg, #eefaff, #fff8e8 70%);
}

.printing-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 70px;
    align-items: center;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.pill-list span {
    padding: 9px 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #e6ded4;
    font-weight: 800;
    font-size: 13px;
}

.gift-note {
    margin: 28px 0;
    padding: 18px 20px;
    border-left: 5px solid var(--yellow);
    background: rgba(255, 255, 255, 0.75);
    border-radius: 0 16px 16px 0;
}

.printing-gallery {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 1fr 1fr;
    gap: 14px;
    height: 650px;
}

.printing-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(50, 70, 80, 0.12);
}

.printing-gallery .print-poster {
    grid-row: 1/3;
    object-position: top;
}

.nutrition-grid {
    display: grid;
    grid-template-columns: 1fr 0.75fr;
    gap: 75px;
    align-items: center;
}

.nutrition-poster {
    max-height: 520px;
    justify-self: center;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 270px;
    gap: 14px;
}

.gallery-grid figure {
    margin: 0;
    position: relative;
    border-radius: 26px;
    overflow: hidden;
}

.gallery-grid figure.wide {
    grid-column: span 2;
}

.gallery-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.gallery-grid figure:hover img {
    transform: scale(1.04);
}

.gallery-grid figcaption {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
}

.contacts {
    background: #fff8ec;
}

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

.contact-card,
.map-card {
    background: #fff;
    border-radius: 34px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.contact-lines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.contact-lines p {
    margin: 0;
    color: var(--muted);
}

.contact-lines a {
    font-weight: 800;
    color: var(--ink);
}

.socials {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0 0 28px;
}

.socials a {
    padding: 10px 13px;
    border-radius: 12px;
    background: #f6f1ea;
    font-weight: 800;
    font-size: 13px;
}

.map-card {
    display: flex;
    flex-direction: column;
    padding: 18px;
    background: #f0f6ec;
}

.map-illustration {
    position: relative;
    min-height: 400px;
    border-radius: 25px;
    overflow: hidden;
    background: linear-gradient(30deg, #e2eedb, #f8f1d8);
}

.map-road {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd2c7;
    border-radius: 999px;
}

.r1 {
    width: 120%;
    height: 28px;
    left: -10%;
    top: 43%;
    transform: rotate(-11deg);
}

.r2 {
    width: 30px;
    height: 120%;
    left: 61%;
    top: -10%;
    transform: rotate(9deg);
}

.r3 {
    width: 80%;
    height: 18px;
    left: 8%;
    top: 20%;
    transform: rotate(18deg);
}

.map-pin {
    position: absolute;
    left: 55%;
    top: 45%;
    width: 68px;
    height: 68px;
    border-radius: 50% 50% 50% 8px;
    transform: rotate(-45deg);
    background: var(--coral);
    display: grid;
    place-items: center;
    color: white;
    font-size: 25px;
    box-shadow: 0 15px 25px rgba(239, 109, 93, 0.3);
}

.map-pin::first-letter {
    transform: rotate(45deg);
}

.map-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: #fff;
    padding: 13px 16px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(70, 60, 50, 0.12);
}

.map-label b,
.map-label span {
    display: block;
}

.map-label span {
    font-size: 13px;
    color: var(--muted);
}

.map-hint {
    padding: 14px 8px 0;
    font-weight: 800;
    color: var(--green);
}

.footer {
    padding: 30px 0;
    border-top: 1px solid #eee4d8;
}

.footer-grid {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 30px;
}

.footer img {
    width: 145px;
    object-fit: contain;
    height: fit-content;
}

.footer p {
    font-size: 13px;
    color: var(--muted);
}

.footer a {
    font-weight: 800;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 980px) {
    .nav {
        position: fixed;
        top: 82px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: 20px;
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .nav.open {
        display: flex;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
        border: 0;
        background: #f5eee5;
        border-radius: 12px;
        padding: 10px 13px;
        font-weight: 800;
    }

    .header-cta {
        display: none;
    }

    .hero-grid,
    .feature-grid,
    .printing-grid,
    .nutrition-grid,
    .contacts-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 480px;
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-grid,
    .printing-grid,
    .nutrition-grid {
        gap: 45px;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 24px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .section-pad {
        padding: 68px 0;
    }

    .nav-wrap {
        height: 72px;
    }

    .brand img {
        width: 100px;
    }

    .nav {
        top: 72px;
    }

    .hero {
        padding-top: 50px;
    }

    .hero-grid {
        gap: 25px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 48px;
    }

    .lead {
        font-size: 18px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .hero-card-main {
        inset: 20px 20px 25px 20px;
        border-radius: 30px 30px 80px 30px;
    }

    .mini-card {
        font-size: 12px;
    }

    .mini-card-yellow {
        right: 0;
    }

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

    .quick-grid small {
        display: none;
    }

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

    .service-card {
        min-height: auto;
    }

    .feature-media {
        min-height: 510px;
    }

    .portrait-poster {
        height: 485px;
        width: 65%;
        margin-left: 3%;
    }

    .feature-photo {
        height: 260px;
        width: 55%;
    }

    .info-card {
        grid-template-columns: minmax(0, 1fr) 110px;
        gap: 16px;
        padding: 24px 20px;
        width: 100%;
        min-width: 0;
    }

    .info-card>div {
        min-width: 0;
    }

    .info-card img {
        width: 100%;
        max-width: 110px;
        justify-self: end;
    }

    .info-card h2 {
        font-size: 28px;
    }

    .printing-gallery {
        height: 520px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 280px;
    }

    .gallery-grid figure.wide {
        grid-column: span 1;
    }

    .contact-card,
    .map-card {
        padding: 25px;
    }

    .contact-lines {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }

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

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .spark {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---- Правки v2: инфографика, форма, lightbox, адаптив ---- */
.zoomable {
    cursor: zoom-in;
}

.zoomable:focus-visible {
    outline: 4px solid rgba(70, 169, 201, 0.35);
    outline-offset: 4px;
}

/* Показываем постеры целиком, без обрезки текста по краям. */
.portrait-poster {
    width: min(76%, 520px);
    height: auto;
    max-height: 650px;
    object-fit: contain;
    margin-left: 4%;
    background: #fff;
}

.printing-gallery {
    grid-template-columns: minmax(0, 1.7fr) minmax(150px, 0.65fr);
}

.printing-gallery .print-poster {
    object-fit: contain;
    object-position: center;
    background: #fff;
}

/* Контакты и форма. */
.feedback-card {
    background: #fff;
    border-radius: 34px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.feedback-card h2 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.02;
    margin: 0;
    font-size: clamp(38px, 4vw, 58px);
}

.form-intro {
    color: var(--muted);
    margin: 16px 0 28px;
}

.feedback-form {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    align-items: start;
}

.feedback-form label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    font-size: 14px;
}

.feedback-form label>span {
    display: block;
}

.feedback-form input,
.feedback-form select,
.feedback-form textarea {
    width: 100%;
    border: 1px solid #e6ded4;
    background: #fffdf9;
    color: var(--ink);
    border-radius: 15px;
    padding: 13px 14px;
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.feedback-form input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(70, 169, 201, 0.12);
}

.feedback-form textarea {
    resize: vertical;
    min-height: 110px;
}

.feedback-form .consent {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    gap: 10px;
    font-weight: 500;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.4;
}

.feedback-form .consent input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    accent-color: var(--orange);
}

.form-status {
    min-height: 20px;
    margin: 0;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}

.map-card-wide {
    margin-top: 24px;
}

.map-card-wide .map-illustration {
    min-height: 330px;
}

/* Полноэкранный просмотр инфографики. */
body.modal-open {
    overflow: hidden;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 26px;
    background: rgba(42, 34, 29, 0.88);
    backdrop-filter: blur(6px);
}

.image-lightbox.is-open {
    display: flex;
}

.image-lightbox img {
    width: auto;
    height: auto;
    max-width: min(96vw, 1200px);
    max-height: 92vh;
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.lightbox-close {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.back-to-top {
    border: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 8px 0;
}

.back-to-top:hover {
    color: var(--orange);
}

.field-error {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #c62828;
}

.field-error[hidden] {
    display: none;
}

.field-error:not([hidden]) {
    display: block;
}

/* Program promo sections */
.program-section {
    background: linear-gradient(135deg, #fffaf3 0%, #eefaff 52%, #fff7d7 100%);
}

.program-section-mental {
    background: linear-gradient(135deg, #fffdf7 0%, #f4fbff 48%, #fff7d7 100%);
}

.program-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
}

.program-grid-reverse .program-copy {
    order: 2;
}

.program-grid-reverse .program-media {
    order: 1;
}

.program-copy h2 {
    margin: 0 0 18px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.program-copy h3 {
    margin: 26px 0 12px;
    font-size: 24px;
    line-height: 1.2;
}

.program-list {
    margin: 22px 0 26px;
}

.program-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.program-meta-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.program-meta > div {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #e8dfd4;
    border-radius: 18px;
}

.program-meta > div > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.program-meta span {
    flex: 0 0 auto;
    font-size: 22px;
    line-height: 1;
}

.program-price {
    display: inline-block;
    margin: 0 0 4px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #fff1d1;
    color: var(--ink);
}

.benefit-list {
    display: grid;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.benefit-list li {
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.program-callout {
    margin: 24px 0 18px;
    padding: 18px 20px;
    border: 1px solid #eadfce;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
}

.program-callout h3 {
    margin-top: 0;
}

.program-callout p {
    margin-bottom: 0;
}

.program-urgency {
    margin: 0 0 18px;
    font-weight: 900;
    color: var(--orange);
}

.program-media {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.program-poster {
    width: min(100%, 520px);
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 24px;
    object-fit: contain;
    box-shadow: var(--shadow);
}

@media (max-width: 1200px) {
    .info-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
        overflow: hidden;
    }

    .info-card>div {
        min-width: 0;
    }

    .info-card h2 {
        font-size: 30px;
        line-height: 1.05;
    }

    .info-card img {
        width: 100%;
        max-width: 220px;
        max-height: none;
        height: fit-content;
        justify-self: center;
        object-fit: contain;
    }
}

@media (max-width: 1100px) {

    .nutrition-poster {
        max-height: 450px;
    }
}

@media (max-width: 980px) {
    .spark {
        display: none;
    }

    .portrait-poster {
        width: min(72%, 520px);
        margin-left: 0;
    }

    .feature-media {
        min-height: 620px;
    }

    .printing-gallery {
        grid-template-columns: minmax(0, 1.55fr) minmax(140px, 0.65fr);
    }

    .nutrition-poster {
        max-height: 580px;
        max-width: 500px;
        width: 100%;
    }
}

@media (max-width: 980px) {
    .program-grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .program-grid-reverse .program-copy,
    .program-grid-reverse .program-media {
        order: initial;
    }

    .program-media {
        order: -1;
    }

    .program-meta-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .program-grid {
        gap: 28px;
    }

    .program-copy h2 {
        font-size: 36px;
    }

    .program-copy h3 {
        font-size: 21px;
    }

    .program-meta,
    .program-meta-three {
        grid-template-columns: 1fr;
    }

    .program-poster {
        width: min(86vw, 430px);
        max-height: none;
        border-radius: 20px;
        object-fit: contain;
    }

    .benefit-list li {
        padding: 9px 10px;
    }
}

@media (max-width: 620px) {
    .spark {
        display: none;
    }

    .feature-media {
        min-height: 565px;
        display: flex;
        align-items: flex-start;
    }

    .portrait-poster {
        width: 78%;
        height: auto;
        max-height: none;
        margin: 0;
        object-fit: contain;
    }

    .feature-photo {
        width: 48%;
        height: 220px;
        right: 0;
        bottom: 0;
    }

    .printing-gallery {
        height: auto;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 10px;
    }

    .printing-gallery .print-poster {
        grid-column: 1/-1;
        grid-row: auto;
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .printing-gallery img:not(.print-poster) {
        height: 190px;
        object-fit: cover;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .feedback-card {
        padding: 25px;
    }

    .image-lightbox {
        padding: 14px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .nutrition-poster {
        max-height: none;
        max-width: 100%;
        height: auto;
    }

    .thanks-card {
        padding: 32px 22px;
    }
}

@media (max-width: 360px) {
    .info-card {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
        overflow: hidden;
    }

    .info-card>div {
        min-width: 0;
    }

    .info-card h2 {
        font-size: 30px;
        line-height: 1.05;
    }

    .info-card img {
        width: 100%;
        max-width: 220px;
        max-height: none;
        justify-self: center;
        object-fit: contain;
    }
}

/* ---- SEO/content additions: slogan, FAQ, accessible honeypot ---- */
.hero-slogan {
    margin: 18px 0 -8px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(22px, 2.1vw, 31px);
    line-height: 1.15;
    font-weight: 800;
    color: var(--green);
}

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

.faq-section {
    background: var(--paper);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.faq-item {
    border: 1px solid #eee5da;
    border-radius: 22px;
    background: #fff;
    padding: 0 22px;
    box-shadow: 0 8px 25px rgba(97, 70, 48, 0.06);
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 38px 20px 0;
    font-weight: 850;
    position: relative;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 13px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--soft);
    color: var(--orange);
    font-size: 22px;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    margin: -2px 0 20px;
    color: var(--muted);
}

.contact-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-lines a[href^="mailto:"] {
    overflow-wrap: anywhere;
}

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

@media (max-width: 620px) {
    .hero-slogan {
        margin-top: 14px;
    }

    .contact-lines {
        grid-template-columns: 1fr;
    }
}

.thanks-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 40px 0;
    background:
        radial-gradient(circle at 80% 20%,
            rgba(247, 200, 68, 0.22),
            transparent 26%),
        var(--paper);
}

.thanks-card {
    max-width: 720px;
    text-align: center;
    background: #fff;
    border: 1px solid #eee5da;
    border-radius: 34px;
    padding: 48px;
    box-shadow: var(--shadow);
}

.thanks-card>img {
    width: 150px;
    height: auto;
    margin: 0 auto 20px;
}

.thanks-card h1 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(44px, 7vw, 72px);
    margin: 0;
}

.thanks-card p {
    font-size: 19px;
    color: var(--muted);
    margin: 18px auto 28px;
}

.thanks-card .hero-actions {
    justify-content: center;
}

.form-status {
    margin: 16px 0;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.form-status-error {
    background: #fff0ed;
    color: #9b352b;
    border: 1px solid #f2c0b8;
}

@media (max-width: 420px) {
    .hero-note {
        gap: 8px;
    }

    .hero-note-item {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-note-hours span:last-child {
        display: block;
    }
}

/* Unified programs slider */
.programs-carousel-section {
    background: linear-gradient(135deg, #fffaf3 0%, #eefaff 52%, #fff7d7 100%);
    overflow: hidden;
}

.programs-carousel-head {
    margin-bottom: 22px;
}

.program-tabs {
    display: flex;
    gap: 10px;
    margin: 0 0 24px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.program-tab {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid #e4d7c7;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.program-tab:hover {
    transform: translateY(-1px);
}

.program-tab.is-active {
    border-color: var(--orange);
    background: var(--orange);
    color: #fff;
}

.program-tab:focus-visible,
.program-arrow:focus-visible {
    outline: 3px solid rgba(27, 142, 216, 0.28);
    outline-offset: 3px;
}

.program-slider-shell {
    position: relative;
    border: 1px solid rgba(220, 207, 190, 0.9);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow);
}

.program-slide {
    padding: 34px;
}

.program-slide[hidden] {
    display: none !important;
}

.program-slide.is-active {
    animation: programSlideIn 0.28s ease both;
}

@keyframes programSlideIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programs-carousel-section .program-grid {
    gap: 42px;
}

.programs-carousel-section .program-copy {
    min-width: 0;
}

.programs-carousel-section .program-copy h2 {
    font-size: clamp(34px, 3.6vw, 52px);
}

.programs-carousel-section .program-poster {
    width: min(100%, 470px);
    max-height: 650px;
    object-fit: contain;
}

.program-slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 20px;
}

.program-arrow {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid #e4d7c7;
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 24px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.program-arrow:hover {
    transform: translateY(-1px);
    border-color: var(--orange);
}

.program-counter {
    min-width: 64px;
    text-align: center;
    font-weight: 800;
}

@media (max-width: 980px) {
    .program-slide {
        padding: 28px;
    }

    .programs-carousel-section .program-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .programs-carousel-section .program-media {
        order: -1;
    }

    .programs-carousel-section .program-poster {
        width: min(86vw, 460px);
        max-height: 560px;
    }
}

@media (max-width: 620px) {
    .programs-carousel-head {
        margin-bottom: 16px;
    }

    .program-tabs {
        margin-right: -18px;
        margin-left: -2px;
        padding-right: 18px;
    }

    .program-tab {
        min-height: 40px;
        padding: 9px 13px;
        font-size: 14px;
    }

    .program-slider-shell {
        border-radius: 22px;
    }

    .program-slide {
        padding: 20px 16px 24px;
    }

    .programs-carousel-section .program-grid {
        gap: 22px;
    }

    .programs-carousel-section .program-copy h2 {
        font-size: 32px;
    }

    .programs-carousel-section .program-copy h3 {
        font-size: 20px;
    }

    .programs-carousel-section .program-meta,
    .programs-carousel-section .program-meta-three {
        grid-template-columns: 1fr;
    }

    .programs-carousel-section .program-poster {
        width: min(82vw, 390px);
        max-height: 520px;
        border-radius: 18px;
    }

    .program-slider-controls {
        margin-top: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .program-slide.is-active {
        animation: none;
    }
}

/* =========================
   Расписание занятий
   ========================= */

.schedule-section {
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 210, 73, 0.16), transparent 30%),
        radial-gradient(circle at 88% 20%, rgba(54, 174, 238, 0.14), transparent 32%),
        #fffaf3;
}

.schedule-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 48px;
    align-items: center;
}

.schedule-copy {
    min-width: 0;
}

.schedule-copy h2 {
    margin: 0 0 18px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: clamp(36px, 4vw, 54px);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.schedule-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 0 26px;
    padding: 16px 18px;
    border: 1px solid #e8dfd4;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.schedule-note > span {
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
}

.schedule-note > div {
    min-width: 0;
    overflow-wrap: anywhere;
}

.schedule-media {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.schedule-poster {
    display: block;
    width: min(100%, 680px);
    height: auto;
    max-height: 820px;
    object-fit: contain;
    border-radius: 24px;
    box-shadow: var(--shadow);
    cursor: zoom-in;
}

@media (max-width: 980px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .schedule-copy {
        max-width: 720px;
    }

    .schedule-media {
        order: -1;
    }

    .schedule-poster {
        width: min(86vw, 620px);
        max-height: 760px;
    }
}

@media (max-width: 620px) {
    .schedule-section {
        padding-top: 42px;
        padding-bottom: 42px;
    }

    .schedule-grid {
        gap: 22px;
    }

    .schedule-copy h2 {
        font-size: 32px;
    }

    .schedule-note {
        margin: 18px 0 22px;
        padding: 14px 15px;
    }

    .schedule-poster {
        width: min(92vw, 430px);
        max-height: none;
        border-radius: 18px;
    }
}

