:root {
  --ink: #12372f;
  --ink-soft: #3f594e;
  --green: #1a6a58;
  --green-deep: #082f28;
  --mint: #eef5ee;
  --mint-strong: #dcebdd;
  --ivory: #fbfaf5;
  --paper: #ffffff;
  --peach: #4f7568;
  --peach-pale: #f2f6ef;
  --sage: #dcebdd;
  --poppy: #8c3534;
  --sky-pale: #e9f2f3;
  --line: #dce4dc;
  --line-dark: #b9cabd;
  --max: 1240px;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--ivory); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.66; }
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: var(--display); font-weight: 500; letter-spacing: 0; }
h1 { margin-bottom: 28px; font-size: clamp(58px, 5.65vw, 84px); line-height: .93; }
h2 { margin-bottom: 19px; font-size: clamp(42px, 4vw, 60px); line-height: .97; }
h3 { margin-bottom: 10px; font-size: 28px; line-height: 1.04; }
p { margin-bottom: 1.08em; }

.container { width: min(var(--max), calc(100% - 64px)); margin: 0 auto; }
.narrow { max-width: 880px; }
.section { padding: 132px 0; }
.center, .centered { text-align: center; }
.section-kicker, .request-label { margin-bottom: 16px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.55px; text-transform: uppercase; }
.section-heading { max-width: 690px; margin-bottom: 48px; }
.section-heading.centered { margin-right: auto; margin-left: auto; }
.section-heading > p:last-child { max-width: 620px; margin: 0 auto; color: var(--ink-soft); }

.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(23, 61, 54, .1); background: rgba(251, 250, 245, .96); box-shadow: 0 10px 28px rgba(23, 61, 54, .06); backdrop-filter: blur(14px); }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(23, 61, 54, .13); border-radius: 50%; background: var(--paper); color: var(--ink); font-family: var(--display); font-size: 28px; line-height: 1; box-shadow: 0 8px 20px rgba(23, 61, 54, .06); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.site-header .brand-copy strong { color: var(--ink); }
.brand-copy strong { color: var(--ink); font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: .1px; }
.site-header .brand-copy small { color: #708177; }
.brand-copy small { margin-top: 5px; color: #708177; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 31px; margin-left: auto; }
.nav a { position: relative; color: #365047; font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav a:not(.nav-cta)::after { position: absolute; right: 0; bottom: -9px; left: 0; height: 1px; background: var(--green-deep); content: ""; opacity: 0; transform: scaleX(.5); transition: opacity .2s ease, transform .2s ease; }
.nav a:hover::after, .nav a.is-active::after { opacity: 1; transform: scaleX(1); }
.nav a.is-active { color: var(--green-deep); }
.nav-cta { min-width: 128px; padding: 14px 21px; border: 1px solid rgba(248, 244, 234, .2); border-radius: 999px; background: var(--green-deep); color: #fff !important; text-align: center; box-shadow: 0 12px 24px rgba(5, 32, 27, .34); transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.nav-cta:hover { background: #092d26; box-shadow: 0 15px 30px rgba(5, 32, 27, .4); transform: translateY(-2px); }
.burger { width: 44px; height: 44px; display: none; place-items: center; margin-left: auto; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 21px; }

main, footer, .diploma-modal { position: relative; z-index: 2; }
.botanical-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.botanical-motion { position: absolute; top: 86px; right: 0; left: 0; height: min(880px, calc(100vh - 86px)); z-index: 3; pointer-events: none; overflow: hidden; }
.botanical-motion > * { position: absolute; will-change: transform; }
.leaf { color: var(--green-deep); }
.leaf-two { top: 27%; left: 4.5%; font-size: 54px; opacity: .09; transform: rotate(18deg); animation: leafWanderTwo 12s ease-in-out infinite alternate; }
@keyframes leafWanderTwo { from { transform: translate3d(0, 0, 0) rotate(18deg); } to { transform: translate3d(-18px, 12px, 0) rotate(6deg); } }

/* Фоновые цветы. Внешний span ведёт медленный дрейф, вложенный svg — покачивание,
   поэтому у каждого цветка своя, не повторяющаяся траектория.
   Параметры задаются переменными: так у каждого бутона свой ритм без войны специфичностей. */
.bud { display: block; color: var(--green); animation-name: var(--bud-anim, budDrift); animation-duration: var(--bud-dur, 18s); animation-delay: var(--bud-delay, 0s); animation-timing-function: ease-in-out; animation-direction: alternate; animation-iteration-count: infinite; }
.bud svg { display: block; width: 100%; height: 100%; transform-origin: 50% 50%; animation-name: var(--bud-svg-anim, budSway); animation-duration: var(--bud-svg-dur, 9s); animation-delay: var(--bud-svg-delay, 0s); animation-timing-function: var(--bud-svg-ease, ease-in-out); animation-direction: var(--bud-svg-dir, alternate); animation-iteration-count: infinite; }
.bud-soft { color: var(--peach); }
.bud-warm { color: var(--poppy); }

@keyframes budDrift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(16px, -24px, 0); } }
@keyframes budDriftBack { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-20px, 18px, 0); } }
@keyframes budSway { from { transform: rotate(-9deg) scale(.96); } to { transform: rotate(11deg) scale(1.04); } }
@keyframes budTurn { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes budBreathe { from { transform: rotate(4deg) scale(1); } to { transform: rotate(-7deg) scale(1.07); } }

.bud-1 { top: 9%; left: 3.2%; width: 84px; height: 84px; opacity: .1; }
.bud-2 { top: 61%; left: 1.6%; width: 58px; height: 58px; opacity: .09; --bud-dur: 22s; --bud-delay: -7s; --bud-svg-anim: budBreathe; --bud-svg-dur: 12s; --bud-svg-delay: -4s; }
.bud-3 { top: 13%; right: 3%; width: 96px; height: 96px; opacity: .07; --bud-anim: budDriftBack; --bud-dur: 25s; --bud-delay: -12s; --bud-svg-anim: budTurn; --bud-svg-dur: 54s; --bud-svg-ease: linear; --bud-svg-dir: normal; }
.bud-4 { top: 70%; right: 5%; width: 64px; height: 64px; opacity: .1; --bud-dur: 20s; --bud-delay: -3s; --bud-svg-dur: 11s; --bud-svg-delay: -6s; }
.bud-5 { top: 44%; left: -2.4%; width: 118px; height: 118px; opacity: .07; --bud-anim: budDriftBack; --bud-dur: 28s; --bud-delay: -15s; --bud-svg-dur: 14s; --bud-svg-delay: -9s; }
.bud-6 { top: 4%; left: 45%; width: 48px; height: 48px; opacity: .06; --bud-dur: 24s; --bud-delay: -9s; --bud-svg-anim: budBreathe; --bud-svg-dur: 13s; --bud-svg-delay: -2s; }

/* Тот же приём для секции записи. */
.section-botanical { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.section-botanical > * { position: absolute; will-change: transform; }
.bud-c1 { top: 8%; right: 4%; width: 104px; height: 104px; opacity: .085; --bud-dur: 21s; --bud-svg-dur: 11s; }
.bud-c2 { bottom: 4%; left: -1.6%; width: 76px; height: 76px; opacity: .1; --bud-anim: budDriftBack; --bud-dur: 26s; --bud-delay: -10s; --bud-svg-anim: budTurn; --bud-svg-dur: 62s; --bud-svg-ease: linear; --bud-svg-dir: normal; }
.bud-c3 { bottom: 5%; right: 1.5%; width: 62px; height: 62px; opacity: .07; --bud-dur: 24s; --bud-delay: -5s; --bud-svg-anim: budBreathe; --bud-svg-dur: 15s; --bud-svg-delay: -7s; }

.hero { padding: 42px 0 54px; background: var(--ivory); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, .95fr) minmax(420px, .82fr); min-height: 690px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: #f7faf5; box-shadow: 0 26px 56px rgba(18, 55, 47, .1); }
.hero-grid::before { position: absolute; top: 0; right: 0; bottom: 0; width: 37%; background: #edf4ed; content: ""; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 92px 42px 96px 78px; }
.hero-copy::before { width: max-content; max-width: 100%; margin-bottom: 32px; padding: 8px 14px; border: 1px solid rgba(30, 119, 102, .29); border-radius: 999px; color: var(--green-deep); content: "Психолог"; font-size: 10px; font-weight: 700; letter-spacing: 1.35px; text-transform: uppercase; }
.hero h1 { max-width: 600px; }
.hero h1 em { display: block; margin-top: 8px; color: var(--green-deep); font-family: var(--display); font-size: .88em; font-style: italic; font-weight: 500; letter-spacing: .3px; line-height: .88; white-space: nowrap; }
.hero-lead { max-width: 525px; margin: 3px 0 29px; color: #52675f; font-size: 16px; line-height: 1.75; }
.hero-principles { display: flex; flex-wrap: wrap; gap: 13px 21px; margin: 0 0 29px; }
.hero-principles article { display: grid; grid-template-columns: 28px auto; column-gap: 7px; align-items: center; }
.hero-principles i { grid-row: span 2; color: var(--green); font-size: 24px; line-height: 1; }
.hero-principles article:nth-child(2) i { color: #6f8d73; }
.hero-principles article:nth-child(3) i { color: #748f7f; }
.hero-principles strong { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.2; }
.hero-principles span { color: #7a8a82; font-size: 10px; line-height: 1.2; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.button, .text-action { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; text-align: center; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.button:hover, .text-action:hover { transform: translateY(-2px); }
.button-primary, .button-coral { background: var(--green-deep); color: #fff; box-shadow: 0 12px 24px rgba(14, 59, 49, .28); }
.button-primary:hover, .button-coral:hover { background: #092d26; box-shadow: 0 15px 30px rgba(14, 59, 49, .35); }
.button-light { border-color: rgba(255, 255, 255, .65); background: transparent; color: #fff; }
.button-light:hover { border-color: #fff; background: #fff; color: var(--green-deep); }
.text-action { border-color: rgba(23, 61, 54, .27); background: rgba(255, 255, 255, .58); color: var(--ink); }
.text-action i { margin-left: 11px; color: var(--peach); font-size: 17px; transition: transform .2s ease; }
.text-action:hover { border-color: var(--green); color: var(--green); }
.text-action:hover i { transform: translateX(4px); }
.nav-cta:focus-visible,
.button:focus-visible,
.text-action:focus-visible,
.gallery-button:focus-visible,
.diploma-button:focus-visible,
.diploma-card:focus-visible,
.diploma-modal-close:focus-visible,
.contact-card:focus-visible,
.field input:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid rgba(14, 59, 49, .42);
  outline-offset: 3px;
}
.hero-audience { display: flex; flex-wrap: wrap; gap: 9px; margin: 25px 0 0; }
.hero-audience span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .78); color: var(--green-deep); font-size: 11px; font-weight: 700; }
.hero-audience span:nth-child(2) { border-color: #c7d7c8; color: #285f4e; }
.hero-audience span:nth-child(3) { border-color: #c9d6e2; color: #597589; }

.hero-gallery { position: relative; z-index: 1; align-self: center; width: min(100% - 72px, 470px); min-height: 568px; margin: 0 auto; overflow: visible; border-radius: 24px; background: #dfeadf; box-shadow: 0 24px 42px rgba(18, 55, 47, .14); }
.gallery-stage { position: relative; height: 100%; min-height: 568px; overflow: hidden; border-radius: 24px; background: #dde9df; }
.gallery-slide { position: absolute; inset: 0; margin: 0; opacity: 0; pointer-events: none; transition: opacity .55s ease; }
.gallery-slide.is-active { opacity: 1; pointer-events: auto; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; object-position: center center; background: #dde9df; }
.gallery-slide:nth-child(2) img { object-position: center 51%; }
.gallery-slide:nth-child(3) img { object-position: center 42%; }
.gallery-slide:nth-child(4) img { object-position: center 30%; }
.gallery-slide figcaption { position: absolute; z-index: 2; right: -48px; bottom: 18px; left: auto; width: min(286px, calc(100% - 34px)); padding: 18px 21px; border: 1px solid rgba(23, 61, 54, .16); border-radius: 16px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 15px 28px rgba(23, 61, 54, .12); text-shadow: none; }
.gallery-slide figcaption span { display: block; margin-bottom: 4px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.gallery-slide figcaption strong { display: block; color: var(--ink); font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.03; }
.gallery-controls { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: none; gap: 7px; }
.gallery-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .75); border-radius: 50%; background: rgba(23, 61, 54, .7); color: #fff; font-size: 16px; transition: background .2s ease, transform .2s ease; }
.gallery-button:hover { background: var(--green); transform: scale(1.05); }
.gallery-dots, .hero-paper-edge { display: none; }

.focus-section { padding: 0; background: var(--ivory); }
.focus-atelier { display: grid; grid-template-columns: .86fr 1.07fr 1fr; gap: 50px; align-items: center; padding: 94px 0; border-bottom: 1px solid var(--line); }
.focus-botanical { display: none; }
.focus-title h2 { max-width: 320px; margin: 0; font-size: clamp(39px, 3.4vw, 54px); }
.focus-copy { max-width: 430px; color: var(--ink-soft); font-size: 15px; }
.focus-copy p:last-child { margin-bottom: 0; }
.focus-photos { display: grid; grid-template-columns: 1.13fr .87fr; gap: 10px; height: 224px; }
.focus-photos img { height: 100%; border-radius: 13px; object-fit: cover; }
.focus-photos img:first-child { object-position: center 57%; }
.focus-photos img:last-child { object-position: center 55%; }
.focus-types { grid-column: 1 / -1; display: flex; gap: 9px; margin-top: 4px; }
.focus-types span { padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; }
.focus-types span:nth-child(2) { border-color: #c7d7c8; color: #285f4e; }
.focus-types span:nth-child(3) { border-color: #c9d6e2; color: #517189; }

.about-section { background: var(--mint); }
.about-layout { display: grid; grid-template-columns: minmax(360px, .86fr) minmax(390px, 1fr); gap: clamp(55px, 9vw, 140px); align-items: center; }
.about-photo { min-height: 558px; overflow: hidden; border-radius: 24px; background: #dcebdd; }
.about-photo img { width: 100%; height: 558px; object-fit: contain; object-position: center center; background: #dcebdd; }
.about-copy { max-width: 620px; }
.about-copy h2 { max-width: 620px; }
.about-copy > p { color: var(--ink-soft); }
.credentials { margin: 34px 0 0; border-top: 1px solid rgba(23, 61, 54, .18); }
.credentials div { display: grid; grid-template-columns: 132px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid rgba(23, 61, 54, .14); }
.credentials dt { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.credentials dd { margin: 0; color: var(--ink); font-size: 14px; }

.services-section { background: var(--paper); }
.services-layout { display: block; }
.services-layout .section-heading { max-width: 920px; margin: 0 auto 46px; text-align: center; }
.services-layout .section-heading h2 { max-width: 860px; margin-left: auto; margin-right: auto; }
.services-layout .section-heading p:last-child { max-width: 720px; margin-left: auto; margin-right: auto; }
.service-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #f7f5ef; box-shadow: 0 22px 54px rgba(18, 55, 47, .08); }
.service-item { min-height: 178px; display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; padding: 28px 30px 27px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .78); transition: background .2s ease, transform .2s ease; }
.service-item:nth-child(3n) { border-right: 0; }
.service-item:nth-last-child(-n + 3) { border-bottom: 0; }
.service-item:hover { background: #eef5ee; transform: translateY(-2px); }
.service-item > span { width: max-content; min-width: 42px; height: 28px; display: grid; place-items: center; padding: 0 11px; border: 1px solid rgba(30, 119, 102, .25); border-radius: 999px; color: var(--green); font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .7px; }
.service-item h3 { margin-bottom: 8px; font-size: 25px; line-height: 1.05; }
.service-item p { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.58; }

.sand-section { background: var(--ivory); }
.sand-layout { display: grid; grid-template-columns: minmax(340px, .94fr) minmax(360px, .74fr); gap: clamp(42px, 8vw, 118px); align-items: center; }
.sand-copy h2 { max-width: 680px; }
.sand-copy p { color: var(--ink-soft); }
.sand-photo { min-height: 520px; overflow: hidden; border-radius: 24px; background: #dcebdd; box-shadow: 0 20px 38px rgba(18, 55, 47, .12); }
.sand-photo img { width: 100%; height: 520px; object-fit: contain; object-position: center center; background: #dcebdd; }
.sand-tasks { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(240px, .42fr) 1fr; gap: 34px; align-items: start; padding: 34px 0 0; border-top: 1px solid var(--line); }
.sand-tasks h3 { margin: 0; font-size: clamp(32px, 3vw, 46px); }
.sand-tasks ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.sand-tasks li { min-height: 72px; display: flex; align-items: center; padding: 15px 18px; border: 1px solid rgba(22, 84, 71, .16); border-radius: 18px; background: #fffdf8; color: #40584f; font-size: 13px; line-height: 1.45; }

.test-section { background: #e7f0e5; }
.test-layout { display: grid; grid-template-columns: minmax(320px, .72fr) minmax(420px, .88fr); gap: clamp(46px, 8vw, 118px); align-items: center; }
.test-layout h2 { max-width: 520px; }
.test-layout p:not(.section-kicker) { max-width: 560px; color: var(--ink-soft); }
.test-layout img { height: 430px; border-radius: 24px; object-fit: contain; object-position: center center; background: #f7f5ef; box-shadow: 0 20px 38px rgba(18, 55, 47, .1); }

.requests-section { background: #f7faf6; }
.request-columns { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); }
.request-column { min-height: 584px; padding: 34px 30px 28px; border-right: 1px solid var(--line); }
.request-column:last-child { border-right: 0; }
.request-column-children { background: #fff9f4; }
.request-column-adults { background: #f2f8f0; }
.request-column-family { background: #f2f8fa; }
.request-column h3 { min-height: 86px; margin-bottom: 23px; font-size: 34px; }
.request-column ul { min-height: 287px; margin: 0; padding: 0; list-style: none; }
.request-column li { position: relative; padding: 0 0 11px 17px; color: #4b6057; font-size: 13px; line-height: 1.57; }
.request-column li::before { position: absolute; top: .71em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--peach); content: ""; }
.request-column-adults .request-label { color: #517a55; }
.request-column-adults li::before { background: #6c9972; }
.request-column-family .request-label { color: #5a7c90; }
.request-column-family li::before { background: #789ab2; }
.request-note { margin: 0; padding-top: 18px; border-top: 1px solid rgba(23, 61, 54, .15); color: var(--ink); font-size: 12px; line-height: 1.6; }
.work-photo-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.work-photo-strip figure { position: relative; min-height: 390px; margin: 0; overflow: hidden; border-radius: 24px; background: #dcebdd; }
.work-photo-strip img { width: 100%; height: 390px; object-fit: contain; object-position: center center; background: #dcebdd; transition: transform .55s ease; }
.work-photo-strip figure:hover img { transform: scale(1.035); }
.work-photo-strip figcaption { position: absolute; left: 18px; bottom: 18px; padding: 10px 14px; border-radius: 999px; background: rgba(248, 251, 246, .92); color: var(--green-deep); font-size: 12px; font-weight: 700; }

.diplomas-section { background: var(--mint); }
.diplomas-intro { display: grid; grid-template-columns: minmax(390px, .95fr) minmax(320px, .65fr); gap: clamp(40px, 9vw, 150px); align-items: end; margin-bottom: 47px; }
.diplomas-intro .section-heading { margin: 0; }
.diplomas-intro > p { max-width: 470px; margin: 0 0 5px; color: var(--ink-soft); font-size: 14px; }
.diploma-gallery { position: relative; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 24px; background: var(--paper); box-shadow: 0 18px 42px rgba(23, 61, 54, .08); }
.diploma-stage { position: relative; min-height: 650px; }
.diploma-gallery .diploma-card { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .58fr); min-width: 0; min-height: 0; padding: 0; border: 0; background: transparent; color: var(--ink); opacity: 0; pointer-events: none; text-align: left; transform: translateX(22px); transition: opacity .42s ease, transform .42s ease, visibility .42s ease; visibility: hidden; }
.diploma-gallery .diploma-card.is-active { opacity: 1; pointer-events: auto; transform: none; visibility: visible; }
.diploma-gallery .diploma-card:focus-visible { outline: 3px solid var(--peach); outline-offset: -3px; }
.diploma-image { min-height: 0; display: grid; place-items: center; padding: 28px; background: #f7f5ef; overflow: hidden; }
.diploma-image img { width: 100%; height: 100%; object-fit: contain; object-position: center center; transition: transform .3s ease; }
.diploma-card:hover .diploma-image img { transform: none; }
.diploma-info { position: relative; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: 40px 78px 94px 39px; background: #f8ecdf; }
.diploma-card:nth-child(3n + 2) .diploma-info { background: #e7f0e5; }
.diploma-card:nth-child(3n) .diploma-info { background: #e8f0f3; }
.diploma-year { display: block; margin-bottom: 11px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.diploma-info strong { display: block; color: var(--ink); font-family: var(--display); font-size: clamp(28px, 2.55vw, 42px); font-weight: 600; line-height: .98; }
.diploma-info i { position: absolute; top: 33px; right: 32px; color: var(--green); font-size: 22px; }
.diploma-controls { position: absolute; z-index: 4; right: 0; bottom: 0; display: flex; align-items: center; }
.diploma-counter { min-width: 88px; height: 58px; display: grid; place-items: center; padding: 0 14px; background: var(--green-deep); color: #f8faf6; font-size: 11px; letter-spacing: .8px; }
.diploma-counter b { color: #b8dfbf; font-weight: 700; }
.diploma-button { width: 58px; height: 58px; display: grid; place-items: center; border: 0; border-left: 1px solid var(--line); background: var(--paper); color: var(--ink); font-size: 20px; transition: background .2s ease, color .2s ease; }
.diploma-button:hover { background: var(--green); color: #fff; }
.diploma-modal { width: min(1200px, calc(100% - 36px)); max-height: calc(100dvh - 36px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--ink); overflow: visible; }
.diploma-modal::backdrop { background: rgba(15, 47, 39, .77); backdrop-filter: blur(4px); }
.diploma-modal-inner { position: relative; max-height: calc(100dvh - 36px); padding: 25px; border-radius: 19px; background: var(--ivory); overflow: hidden; }
.diploma-modal-inner > p { margin: 0 56px 4px 0; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.diploma-modal h2 { margin-bottom: 18px; font-size: 28px; }
.diploma-modal-image { display: grid; place-items: center; min-height: 300px; max-height: calc(100dvh - 232px); background: #f7f5ef; overflow: auto; overscroll-behavior: contain; }
.diploma-modal-image img { width: auto; max-width: 100%; height: auto; max-height: calc(100dvh - 232px); object-fit: contain; transform-origin: center top; transition: width .2s ease; }
.diploma-modal-image.is-zoomed { display: block; }
.diploma-modal-image.is-zoomed img { width: var(--diploma-zoom, 150%); max-width: none; max-height: none; margin: 0 auto; }
.diploma-modal-toolbar { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.diploma-modal-paging, .diploma-modal-zoom { display: flex; align-items: center; gap: 7px; }
.diploma-modal-control { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border: 1px solid rgba(18, 55, 47, .24); border-radius: 999px; background: var(--paper); color: var(--ink); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.diploma-modal-control:hover { border-color: var(--green-deep); background: var(--green-deep); color: #fff; transform: translateY(-1px); }
.diploma-modal-control:focus-visible { outline: 3px solid rgba(8, 47, 40, .4); outline-offset: 2px; }
.diploma-modal-control:disabled { cursor: default; opacity: .42; transform: none; }
.diploma-modal-counter { min-width: 68px; color: var(--ink-soft); font-size: 11px; font-weight: 700; letter-spacing: .8px; text-align: center; }
.diploma-zoom-reset { min-width: 66px; font-size: 11px; font-weight: 700; }
.diploma-modal-close { position: absolute; z-index: 1; top: 22px; right: 22px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 20px; transition: background .2s ease, color .2s ease; }
.diploma-modal-close:hover { background: var(--green); color: #fff; }

.program-section { background: var(--green-deep); color: #eef6ef; }
.program-layout { display: grid; grid-template-columns: minmax(330px, .92fr) minmax(390px, 1.08fr); gap: clamp(58px, 10vw, 160px); align-items: center; }
.program-section .section-kicker { color: #b8d9bd; }
.program-copy h2, .program-copy p { color: #fff; }
.program-copy h2 { max-width: 590px; font-size: clamp(46px, 4.4vw, 66px); }
.program-copy h2 span { color: #cfe3cf; font-style: italic; }
.program-copy > p { max-width: 565px; color: #d8e7da; }
.program-detail { max-width: 610px; margin-top: 24px; padding: 25px 27px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 24px; background: rgba(255, 255, 255, .06); box-shadow: 0 18px 38px rgba(8, 35, 29, .24); }
.program-detail p { margin: 0; color: #d8e7da; font-size: 14px; line-height: 1.72; }
.program-detail p + p { margin-top: 14px; }
.program-meta { display: flex; flex-direction: column; gap: 3px; margin: 32px 0; padding: 18px 0; border-top: 1px solid rgba(255, 255, 255, .25); border-bottom: 1px solid rgba(255, 255, 255, .25); }
.program-meta strong { color: #fff; font-family: var(--display); font-size: 27px; font-weight: 600; }
.program-meta span { color: #cce0d0; font-size: 13px; }
.program-section .button-light { border-color: rgba(255, 255, 255, .38); background: var(--green-deep); color: #fff; box-shadow: 0 12px 24px rgba(5, 32, 27, .28); }
.program-section .button-light:hover { border-color: rgba(255, 255, 255, .58); background: #092d26; color: #fff; }
.program-steps { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.25); }
.program-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; min-height: 99px; align-items: start; padding: 19px 17px 19px 0; border-bottom: 1px solid rgba(255,255,255,.24); color: #e7f0e8; font-size: 13px; line-height: 1.55; }
.program-steps li:nth-child(odd) { margin-right: 21px; border-right: 1px solid rgba(255,255,255,.24); }
.program-steps li:nth-child(even) { padding-left: 21px; }
.program-steps b { color: #b8d9bd; font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1; }

.faq-section { background: var(--paper); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 23px 48px 23px 0; color: var(--ink); font-family: var(--display); font-size: 28px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { position: absolute; top: 18px; right: 3px; color: var(--green); content: "+"; font-family: var(--body); font-size: 28px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { max-width: 740px; padding: 0 0 22px; color: var(--ink-soft); font-size: 14px; }

.contact-section { position: relative; overflow: hidden; background: var(--peach-pale); }
.contact-layout { position: relative; z-index: 1; }
/* Формы больше нет — секция стала одной центрированной колонкой. */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; max-width: 1120px; margin: 0 auto; text-align: center; }
.contact-copy { width: 100%; }
.contact-copy h2 { max-width: 560px; margin-left: auto; margin-right: auto; }
.contact-copy > p { max-width: 510px; margin-left: auto; margin-right: auto; color: var(--ink-soft); }

/* Три равные карточки связи — по одной на способ. */
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 42px; }
.contact-card { display: grid; align-content: center; gap: 12px; min-height: 128px; padding: 26px 20px; border: 1px solid rgba(23, 61, 54, .2); border-radius: 20px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 28px rgba(23, 61, 54, .06); transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.contact-card:hover { border-color: rgba(23, 61, 54, .42); background: var(--paper); box-shadow: 0 18px 34px rgba(23, 61, 54, .12); transform: translateY(-3px); }
.contact-card span { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; }
.contact-card strong { color: var(--ink); font-family: var(--display); font-size: clamp(21px, 2vw, 27px); font-weight: 600; line-height: 1.08; overflow-wrap: anywhere; }
.contact-card i { margin-left: 4px; font-size: .72em; }
/* QR нужен тем, кто смотрит сайт с компьютера; на телефоне он бессмыслен и скрыт. */
.contact-qr { display: flex; align-items: center; gap: 22px; width: fit-content; margin: 22px auto 0; padding: 14px 28px 14px 14px; border: 1px solid rgba(23, 61, 54, .2); border-radius: 20px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 28px rgba(23, 61, 54, .06); text-align: left; }
.contact-qr img { width: 112px; height: 112px; flex: 0 0 auto; border-radius: 10px; background: #fff; }
.contact-qr p { max-width: 300px; margin: 0; }
.contact-qr strong { display: block; margin-bottom: 6px; color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 600; line-height: 1.1; }
.contact-qr span { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.form { padding: 38px; border: 1px solid rgba(23, 61, 54, .18); border-radius: 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 16px 34px rgba(23, 61, 54, .09); }
.field { margin-bottom: 21px; }
.field label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.field label span { color: #77877f; font-weight: 500; }
.field input, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line-dark); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--green); }
.field input::placeholder, .field textarea::placeholder { color: #a0ada6; }
.button-coral { width: 100%; margin-top: 6px; }
.form-note { margin: 15px 0 0; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.site-footer { padding: 40px 0; background: #133f36; color: #eff6ef; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.site-footer .brand-mark { border-color: rgba(255,255,255,.21); background: transparent; color: #fff; box-shadow: none; }
.site-footer .brand-copy strong { color: #fff; font-size: 26px; }
.site-footer .brand-copy small { color: #bbd3c1; }
.site-footer p { max-width: 650px; margin: 0; color: #c5d9ca; font-size: 11px; }

html.has-js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
html.has-js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1120px) {
  .container { width: min(var(--max), calc(100% - 52px)); }
  .header-inner { min-height: 80px; }
  .brand-copy strong { font-size: 24px; }
  .brand-copy small { font-size: 9px; }
  .nav { gap: 20px; }
  .nav a { font-size: 13px; }
  .hero-copy { padding-left: 48px; }
  .hero-gallery { width: min(100% - 46px, 418px); }
  .gallery-slide figcaption { right: -24px; }
  .focus-atelier { gap: 33px; }
}

@media (max-width: 920px) {
  .section { padding: 88px 0; }
  .nav { position: fixed; top: 80px; right: 0; left: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 18px 32px 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(251, 250, 245, .98); box-shadow: 0 16px 28px rgba(23, 61, 54, .1); transform: translateY(-130%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 11px 0; }
  .nav a:not(.nav-cta)::after { display: none; }
  .nav-cta { margin-top: 10px; }
  .burger { display: grid; }
  .hero { padding: 16px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; border-radius: 24px; }
  .hero-grid::before { top: auto; width: 100%; height: 48%; }
  .hero-copy { min-height: 0; padding: 64px 52px 51px; }
  .hero-gallery { width: min(100% - 104px, 520px); min-height: 580px; margin-bottom: 56px; }
  .gallery-stage { min-height: 580px; }
  .gallery-slide figcaption { right: -39px; }
  .focus-atelier { grid-template-columns: 1fr 1fr; }
  .focus-photos { grid-column: 1 / -1; height: 330px; }
  .about-layout, .services-layout, .program-layout, .contact-layout { grid-template-columns: 1fr; gap: 50px; }
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .contact-qr { display: none; }
  .sand-layout, .test-layout { grid-template-columns: 1fr; gap: 44px; }
  .services-layout .section-heading { position: static; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .service-item:nth-child(2n) { border-right: 0; }
  .service-item:nth-last-child(-n + 3) { border-bottom: 1px solid var(--line); }
  .service-item:nth-last-child(-n + 1) { border-bottom: 0; }
  .about-copy { max-width: 670px; }
  .request-columns { grid-template-columns: 1fr; }
  .request-column { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .request-column:last-child { border-bottom: 0; }
  .request-column h3, .request-column ul { min-height: auto; }
  .request-column ul { margin-bottom: 21px; }
  .sand-tasks { grid-template-columns: 1fr; }
  .sand-tasks ul { grid-template-columns: repeat(2, 1fr); }
  .test-layout img { height: 360px; }
  .work-photo-strip { grid-template-columns: 1fr; }
  .diplomas-intro { grid-template-columns: 1fr; gap: 3px; margin-bottom: 39px; }
  .diploma-stage { min-height: 620px; }
  .diploma-gallery .diploma-card { grid-template-columns: minmax(0, 1.2fr) minmax(250px, .8fr); }
  .diploma-info { padding: 34px 66px 86px 31px; }
  .program-steps { max-width: 760px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(var(--max), calc(100% - 32px)); }
  .section { padding: 67px 0; }
  h1 { font-size: 50px; }
  h2 { font-size: 41px; }
  .header-inner { min-height: 72px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-mark { width: 35px; height: 35px; font-size: 23px; }
  .brand-copy strong { font-size: 20px; }
  .brand-copy small { margin-top: 3px; font-size: 7px; letter-spacing: .75px; }
  .nav { top: 72px; padding: 15px 20px 23px; }
  .hero { padding: 12px 0 19px; }
  .hero-grid { border-radius: 18px; }
  .hero-copy { padding: 43px 24px 38px; }
  .hero-copy::before { margin-bottom: 21px; padding: 7px 10px; font-size: 8px; letter-spacing: 1.02px; }
  .hero h1 { margin-bottom: 23px; }
  .hero h1 em { margin-top: 8px; white-space: normal; }
  .hero-lead { margin-bottom: 24px; font-size: 14px; line-height: 1.67; }
  .hero-principles { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 24px; }
  .hero-principles article { grid-template-columns: 26px auto; }
  .hero-principles i { font-size: 22px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button, .text-action { width: 100%; min-height: 51px; }
  .hero-audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 18px; }
  .hero-audience span { padding: 8px 4px; font-size: 9px; text-align: center; }
  .hero-gallery { width: calc(100% - 56px); min-height: 410px; margin-bottom: 38px; border-radius: 18px; }
  .gallery-stage { min-height: 410px; border-radius: 18px; }
  .gallery-slide figcaption { right: -23px; bottom: 14px; width: min(230px, calc(100% - 27px)); padding: 13px 15px; border-radius: 12px; }
  .gallery-slide figcaption strong { font-size: 19px; }
  .gallery-controls { right: 10px; bottom: 10px; }
  .gallery-button { width: 32px; height: 32px; font-size: 14px; }
  .focus-atelier { display: block; padding: 62px 0; }
  .focus-title h2 { max-width: 350px; margin-bottom: 22px; font-size: 40px; }
  .focus-photos { height: 230px; margin-top: 30px; }
  .focus-types { display: grid; grid-template-columns: 1fr; gap: 7px; margin-top: 23px; }
  .focus-types span { text-align: center; }
  .about-photo, .about-photo img { min-height: 360px; height: 360px; border-radius: 18px; }
  .sand-photo, .sand-photo img { min-height: 340px; height: 340px; border-radius: 18px; }
  .sand-tasks { gap: 20px; padding-top: 26px; }
  .sand-tasks ul { grid-template-columns: 1fr; }
  .sand-tasks li { min-height: auto; }
  .test-layout img { height: 260px; border-radius: 18px; }
  .work-photo-strip figure { min-height: 300px; border-radius: 18px; }
  .work-photo-strip img { height: 300px; }
  .botanical-motion { display: block; opacity: .45; }
  .leaf-two { top: 22%; left: 5%; font-size: 32px; opacity: .08; }
  /* На узких экранах поля почти нет — уводим цветы за края, чтобы не лезли на текст. */
  .bud-3, .bud-5, .bud-6, .bud-c3 { display: none; }
  .bud-1 { top: 6%; left: -3.5%; width: 52px; height: 52px; }
  .bud-2 { top: 63%; left: -4.5%; width: 40px; height: 40px; }
  .bud-4 { top: 76%; right: -3.5%; width: 42px; height: 42px; }
  .bud-c1 { top: 2%; right: -5%; width: 66px; height: 66px; }
  .bud-c2 { bottom: 3%; left: -5%; width: 50px; height: 50px; }
  .about-copy h2, .contact-copy h2 { font-size: 42px; }
  .credentials div { grid-template-columns: 1fr; gap: 3px; }
  .services-layout { gap: 39px; }
  .service-list { grid-template-columns: 1fr; border-radius: 18px; }
  .service-item,
  .service-item:nth-child(2n),
  .service-item:nth-child(3n) { min-height: auto; grid-template-columns: 40px 1fr; gap: 14px; padding: 22px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .service-item:last-child { border-bottom: 0; }
  .service-item h3 { font-size: 24px; }
  .request-columns, .diploma-gallery { border-radius: 18px; }
  .request-column { padding: 28px 22px; }
  .request-column h3 { font-size: 31px; }
  .diplomas-intro { margin-bottom: 30px; }
  .diploma-stage { min-height: 610px; }
  .diploma-gallery .diploma-card { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .diploma-image { padding: 16px; }
  .diploma-info { min-height: 146px; padding: 20px 122px 68px 20px; }
  .diploma-info strong { font-size: 28px; }
  .diploma-info i { top: 21px; right: 20px; }
  .diploma-counter, .diploma-button { height: 50px; }
  .diploma-counter { min-width: 76px; }
  .diploma-button { width: 50px; }
  .diploma-modal { width: min(100% - 20px, 1200px); max-height: calc(100dvh - 20px); }
  .diploma-modal-inner { max-height: calc(100dvh - 20px); padding: 18px; border-radius: 14px; }
  .diploma-modal h2 { margin-bottom: 12px; font-size: 24px; }
  .diploma-modal-image { min-height: 180px; max-height: calc(100dvh - 210px); }
  .diploma-modal-image img { max-height: calc(100dvh - 210px); }
  .diploma-modal-close { top: 14px; right: 14px; width: 36px; height: 36px; }
  .diploma-modal-toolbar { align-items: stretch; flex-direction: column; }
  .diploma-modal-paging, .diploma-modal-zoom { justify-content: center; }
  .program-copy h2 { font-size: 45px; }
  .program-steps { grid-template-columns: 1fr; }
  .program-steps li:nth-child(odd) { margin-right: 0; border-right: 0; }
  .program-steps li:nth-child(even) { padding-left: 0; }
  .faq summary { font-size: 26px; }
  .form { padding: 27px 21px; border-radius: 18px; }
  .contact-cards { grid-template-columns: 1fr; margin-top: 32px; }
  .contact-card { min-height: auto; padding: 22px 18px; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.has-js .reveal { opacity: 1; transform: none; }
}

/* Primary actions stay dark green across every section and state. */
.nav-cta,
.button-primary,
.button-coral,
.diploma-counter,
.program-section .button-light {
  background: #082f28 !important;
  color: #fff !important;
}
