/* Академия гармоничного воспитания: живая природа и забота.
   Молочный фон, зелень и бежевый из пожелания заказчика; шары, дуги и кора — из логотипа. */

/* ---------- Шрифты: Alegreya и Nunito с казахскими буквами (ә ғ қ ң ө ұ ү һ і) ---------- */
@font-face { font-family: "Alegreya"; font-weight: 700 900; font-display: swap;
  src: url("../assets/fonts/alegreya-cyrillic-ext.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: "Alegreya"; font-weight: 700 900; font-display: swap;
  src: url("../assets/fonts/alegreya-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Alegreya"; font-weight: 700 900; font-display: swap;
  src: url("../assets/fonts/alegreya-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-400.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: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-700.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: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-ext-800.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: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Nunito"; font-weight: 400; font-display: swap; src: url("../assets/fonts/nunito-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../assets/fonts/nunito-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../assets/fonts/nunito-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+FEFF, U+FFFD; }

:root {
  --milk: #fbf7ee;
  --paper: #fffdf8;
  --cream: #f4ecdd;
  --beige: #e9dcc5;
  --leaf: #0f8f3c;
  --leaf-text: #0b7431;
  --forest: #0c5b42;
  --olive: #86a92c;
  --sage: #dfe7bd;
  --sky: #6cc7e6;
  --bark: #683d10;
  --ink: #26362a;
  --ink-soft: #566457;
  --line: rgba(104, 61, 16, .16);
  --display: "Alegreya", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --soft: 0 14px 40px rgba(76, 74, 40, .11);
  --bar-h: 72px;
  --ball-g: radial-gradient(circle at 50% 50%, #5fae74, #0d9f48 55%, #047a35);
  --ball-o: radial-gradient(circle at 50% 50%, #a9bf62, #88ad2c 55%, #6c8a22);
  --ball-d: radial-gradient(circle at 50% 50%, #5a8466, #075d41 55%, #044733);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 18px); -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--milk); font: 400 1.0625rem/1.65 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--leaf-text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
.ico { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 60; padding: 10px 16px; border-radius: 12px; background: #fff; font-weight: 800; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1160px, 100% - 56px); margin-inline: auto; }
.muted { color: var(--ink-soft); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; color: var(--forest); }
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.5rem); text-wrap: balance; }
h3 { font-size: 1.45rem; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 800; font-size: .98rem; color: var(--leaf-text); }
.kicker .ico { color: var(--olive); }
.lede { margin-top: 14px; font-size: 1.13rem; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.head { margin-bottom: 42px; }
.head-center { text-align: center; }
.head-center .lede { margin-inline: auto; }

/* ---------- Фон ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, #fdf9ef, var(--milk) 40%, #f8f1e3); }
#nature { position: absolute; inset: 0; width: 100%; height: 100%; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); }
.glow-a { width: 54vmax; height: 54vmax; right: -18vmax; top: -22vmax; background: #ffe9ad; opacity: .75; animation: glow-a 18s ease-in-out infinite alternate; }
.glow-b { width: 46vmax; height: 46vmax; left: -20vmax; top: 34vh; background: #dcebb6; opacity: .6; animation: glow-b 24s ease-in-out infinite alternate; }
.glow-c { width: 38vmax; height: 38vmax; right: -12vmax; bottom: -16vmax; background: #cdeaf2; opacity: .55; animation: glow-c 21s ease-in-out infinite alternate; }
@keyframes glow-a { to { transform: translate(-7vmax, 5vmax) scale(1.14); } }
@keyframes glow-b { to { transform: translate(8vmax, -6vmax) scale(.9); } }
@keyframes glow-c { to { transform: translate(-6vmax, -7vmax) scale(1.12); } }

/* Лоза растёт при прокрутке: линия и листья — js/main.js */
main { position: relative; isolation: isolate; }
.vine { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.vine-line { fill: none; stroke: var(--bark); stroke-width: 4; stroke-linecap: round; opacity: .72; }
.vine-leaf { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); transition: transform .6s cubic-bezier(.3, 1.6, .5, 1); }
.vine-leaf.on { transform: scale(1); }
.vine-ball { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .7s cubic-bezier(.3, 1.6, .5, 1); }
.vine-ball.on { transform: scale(1); }

/* ---------- Шапка ---------- */
.bar {
  position: fixed; top: 10px; left: 50%; z-index: 30; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; width: min(1220px, 100% - 20px); min-height: 62px; padding: 6px 10px 6px 14px;
  background: rgba(255, 253, 248, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 8px 26px rgba(76, 74, 40, .1);
}
.bar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; margin-right: auto; color: var(--forest); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.05; }
.bar-brand img { width: 56px; height: auto; flex: none; }
.bar-brand span { max-width: 190px; }
.bar-nav { display: flex; align-items: center; gap: 2px; }
.bar-nav a { padding: 8px 11px; border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .2s, color .2s; white-space: nowrap; }
.bar-nav a:hover { background: var(--sage); }
.bar-nav a.is-active { background: var(--forest); color: #fff; }
.bar-lang { display: grid; place-items: center; min-width: 46px; height: 44px; border-radius: 999px; background: var(--cream); color: var(--forest); font-weight: 800; font-size: .86rem; text-decoration: none; }
.bar-call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.bar-call:hover { background: var(--leaf); }
.bar-menu { display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--cream); color: var(--forest); cursor: pointer; }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100svh; padding: calc(var(--bar-h) + 30px) 0 170px; overflow: hidden; display: flex; align-items: center; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
h1 { font-size: clamp(2.3rem, 1.4rem + 3.4vw, 4.1rem); line-height: 1.04; text-wrap: balance; }
.hero-name { display: block; margin-bottom: 12px; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--leaf-text); }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 700; font-size: .96rem; }
.hero-facts .ico { color: var(--leaf); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; font-size: 1.05rem; text-decoration: none; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: var(--leaf-text); color: #fff; box-shadow: 0 10px 24px rgba(11, 116, 49, .28); }
.btn-main:hover { background: var(--forest); }
.btn-line { background: rgba(255, 253, 248, .8); border-color: var(--leaf-text); color: var(--leaf-text); }
.btn-line:hover { background: var(--leaf-text); color: #fff; }

.hero-logo { position: relative; justify-self: center; width: min(100%, 520px, calc((100svh - var(--bar-h) - 150px) * .964)); }
.hero-halo { position: absolute; left: 50%; top: 38%; width: 118%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, #fffdf6 0 44%, #fff3cf 60%, #fff3cf00 72%); }

/* Луг: трава и цветы качаются */
.meadow { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 240px; z-index: 1; }
.meadow .stem { fill: none; stroke: #7fa33a; stroke-width: 2; stroke-linecap: round; }
.tuft { transform-box: fill-box; transform-origin: 50% 100%; }

/* Бабочки */
.bfly { position: absolute; z-index: 2; left: 0; top: 0; width: 34px; height: 26px; offset-rotate: 0deg; }
.bfly i { position: absolute; top: 0; width: 17px; height: 26px; border-radius: 80% 20% 60% 40%; background: var(--olive); transform-origin: 100% 50%; }
.bfly i:last-child { left: 17px; border-radius: 20% 80% 40% 60%; transform-origin: 0 50%; }
.bfly-b { width: 26px; height: 20px; }
.bfly-b i { width: 13px; height: 20px; background: var(--sky); }
.bfly-b i:last-child { left: 13px; }

/* ---------- Живой логотип ---------- */
.ll { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ll-stage { position: relative; display: block; width: 100%; aspect-ratio: 1928 / 2000; }
.ll-tree, .ll-word { position: absolute; inset: 0; display: block; }
.ll-tree { transform-origin: 49.66% 55.37%; }
.ll-part { position: absolute; display: block; }
.ll-part img { width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.ll-fall { position: absolute; width: 2.6%; color: var(--olive); opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Сборка: горизонт раскрывается, дерево растёт, крона появляется по шару, дети прибегают, буквы встают */
  .ll-arc { animation: ll-open 1.1s cubic-bezier(.3, .8, .3, 1) both; }
  .ll-arc2 { animation-delay: .25s; }
  .ll-trunk { animation: ll-grow 1.1s .55s cubic-bezier(.3, .7, .3, 1) both; }
  .ll-ball { animation: ll-pop .85s calc(1.15s + var(--i) * 140ms) cubic-bezier(.3, 1.7, .5, 1) both; }
  .ll-kid { animation: ll-run .85s calc(1.75s + var(--i) * 180ms) cubic-bezier(.3, 1.45, .5, 1) both; }
  .ll-letter { animation: ll-rise .65s calc(2.05s + var(--i) * 55ms) cubic-bezier(.3, 1.5, .5, 1) both; }
  .ll-line2 { animation: ll-line 1s 2.6s ease-out both; }

  /* Живёт: дерево качается на ветру, шары дышат, дети подпрыгивают, листья падают */
  .ll-tree { animation: ll-sway 6.5s 3s ease-in-out infinite; }
  .ll-ball img { animation: ll-breathe calc(4.2s + var(--i) * .7s) 3s ease-in-out infinite alternate; }
  .ll-kid img { animation: ll-hop 7s calc(4s + var(--i) * 1.1s) ease-in-out infinite; transform-origin: 50% 100%; }
  .ll-letter img { animation: ll-wave 9s calc(5s + var(--i) * 90ms) ease-in-out infinite; }
  .ll-fall { animation: ll-fall 8s calc(3.5s + var(--i) * 2.6s) linear infinite; }
  .ll.is-paused, .ll.is-paused * { animation-play-state: paused; }

  .tuft { animation: sway 4.6s calc(var(--d) * -1) ease-in-out infinite alternate; }
  .bfly i { animation: flap .22s ease-in-out infinite alternate; }
  .bfly i:last-child { animation-name: flap2; }
  .bfly-a { offset-path: path("M60 520C240 360 380 640 620 470S960 300 1180 470 1500 640 1700 380"); animation: fly 34s linear infinite; }
  .bfly-b { offset-path: path("M1600 300C1300 520 1120 260 880 430S520 650 320 450-60 330-120 560"); animation: fly 46s -14s linear infinite; }
  .hero-halo { animation: halo 7s ease-in-out infinite alternate; }
  .fruit-ball { animation: bob calc(5s + var(--i) * .35s) calc(var(--i) * -.6s) ease-in-out infinite alternate; }
  .sphere { animation: bob 6s ease-in-out infinite alternate; }
  .sphere-d { animation-duration: 7.4s; animation-delay: -2s; }

  /* Ступени роста рисуются, когда карточка на экране */
  .js .grow-stem { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .grow-leaf, .js .grow-ball { transform: scale(0); }
  .js .stage.is-in .grow-stem { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s .15s ease-out; }
  .js .stage.is-in .grow-leaf, .js .stage.is-in .grow-ball { transform: scale(1); transition: transform .7s var(--d) cubic-bezier(.3, 1.7, .5, 1); }

  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .3, 1); transition-delay: var(--delay, 0ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@keyframes ll-open { from { clip-path: inset(0 50% 0 50%); opacity: 0; } to { clip-path: inset(0 -2% 0 -2%); opacity: 1; } }
@keyframes ll-grow { from { clip-path: inset(100% -20% -2% -20%); } to { clip-path: inset(-2% -20% -2% -20%); } }
@keyframes ll-pop { from { transform: scale(0); } to { transform: none; } }
@keyframes ll-run { from { transform: translateY(26%) scale(.5); opacity: 0; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes ll-rise { from { transform: translateY(46%) rotate(-5deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ll-line { from { clip-path: inset(-5% 100% -5% 0); } to { clip-path: inset(-5% -1% -5% 0); } }
@keyframes ll-sway { 0%, 100% { transform: rotate(-.7deg); } 50% { transform: rotate(.9deg); } }
@keyframes ll-breathe { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes ll-hop { 0%, 13%, 100% { transform: none; } 2% { transform: scale(1.05, .93); } 6% { transform: translateY(-13%) scale(.97, 1.04); } 11% { transform: scale(1.05, .95); } }
@keyframes ll-wave { 0%, 8%, 100% { transform: none; } 3.5% { transform: translateY(-9%); } }
@keyframes ll-fall {
  0% { opacity: 0; transform: translate(0, 0) rotate(0); }
  8% { opacity: .95; }
  50% { transform: translate(190%, 620%) rotate(170deg); }
  84% { opacity: .9; }
  100% { opacity: 0; transform: translate(-60%, 1240%) rotate(330deg); }
}
@keyframes sway { from { transform: rotate(-5deg); } to { transform: rotate(6deg); } }
@keyframes flap { from { transform: rotateY(10deg); } to { transform: rotateY(70deg); } }
@keyframes flap2 { from { transform: rotateY(-10deg); } to { transform: rotateY(-70deg); } }
@keyframes fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes halo { to { transform: translate(-50%, -50%) scale(1.06); } }
@keyframes bob { to { transform: translateY(-9px); } }
.ll-spark { position: fixed; z-index: 50; width: 20px; pointer-events: none; }

/* ---------- Разделы ---------- */
.section { position: relative; padding: 96px 0; }
.band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: -2;
  background: rgba(240, 231, 212, .78); border-radius: 50% 50% 50% 50% / 76px 76px 76px 76px;
}
.band::after {
  content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 120px; z-index: -2;
  border-top: 5px solid var(--sky); border-radius: 50% 50% 0 0 / 80px 80px 0 0; opacity: .75;
  mask: linear-gradient(90deg, #0000, #000 18%, #000 82%, #0000); -webkit-mask: linear-gradient(90deg, #0000, #000 18%, #000 82%, #0000);
}

/* Об Академии */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
.spheres { display: flex; gap: 18px; margin-top: 30px; }
.sphere { display: grid; place-content: center; justify-items: center; width: clamp(120px, 15vw, 164px); aspect-ratio: 1; border-radius: 50%; color: #fff; text-align: center; line-height: 1.1; }
.sphere strong { font-family: var(--display); font-weight: 900; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1; }
.sphere span { font-weight: 800; }
.sphere-g { background: var(--ball-g); }
.sphere-d { background: var(--ball-d); margin-top: 22px; }
.info-card { padding: 30px 32px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); border: 1px solid var(--line); }
.info-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin-top: 10px; }
.info-card dl > div { padding: 13px 0; border-bottom: 1px dashed var(--line); min-width: 0; }
.info-card dl > div.wide { grid-column: 1 / -1; }
.info-card dl > div:last-child { border-bottom: 0; }
.info-card dt { font-size: .85rem; font-weight: 800; color: var(--ink-soft); }
.info-card dd { font-weight: 800; overflow-wrap: anywhere; }
.info-card a { text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.info-card a.inline { display: inline-block; margin-left: 6px; font-weight: 700; font-size: .92rem; text-decoration: underline; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-top: 40px; }
.about-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px 28px 110px 28px; box-shadow: var(--soft); }
.about-photos img:nth-child(2) { border-radius: 110px 28px 28px 28px; }
.about-photos img:nth-child(3) { border-radius: 28px 110px 28px 28px; }
.director { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 34px; align-items: center; margin-top: 56px; padding: 30px 36px; background: var(--paper); border: 1px solid var(--line); border-radius: 34px; box-shadow: var(--soft); }
.director-photo { aspect-ratio: 1; overflow: hidden; border-radius: 47% 53% 44% 56% / 55% 46% 54% 45%; background: var(--sage); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-photo img.director-mark { object-fit: contain; padding: 18%; }
.director-name { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.director-role { margin-top: 4px; font-weight: 800; color: var(--leaf-text); }
.director p + p { margin-top: 8px; }
.director .kicker { margin-bottom: 4px; }

/* Группы: ступени роста */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: end; }
.stage { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 24px 28px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.stage:nth-child(2) { transform: translateY(-14px); }
.stage:nth-child(3) { transform: translateY(-28px); }
.js .stage.reveal.is-in:nth-child(2) { transform: translateY(-14px); }
.js .stage.reveal.is-in:nth-child(3) { transform: translateY(-28px); }
.grow-art { width: min(100%, 230px); }
.grow-hill { fill: var(--sage); }
.grow-stem { fill: none; stroke: var(--bark); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.grow-leaf { fill: var(--olive); transform-box: fill-box; transform-origin: 50% 100%; }
.grow-ball { transform-box: fill-box; transform-origin: center; }
.stage-age { margin-top: 12px; padding: 3px 14px; border-radius: 999px; background: var(--sage); color: var(--forest); font-weight: 800; }
.stage h3 { margin-top: 8px; font-size: 1.7rem; }
.stage p:not(.stage-age) { margin-top: 6px; color: var(--ink-soft); }
.stage a { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; }

/* Кружки: фруктовый сад */
.orchard { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.fruit { display: flex; flex-direction: column; align-items: center; text-align: center; }
.fruit:nth-child(even) { margin-top: 34px; }
.fruit-ball { display: grid; place-items: center; width: clamp(112px, 12vw, 150px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; color: #fff; box-shadow: 0 16px 28px rgba(12, 91, 66, .2); transition: scale .35s cubic-bezier(.3, 1.6, .5, 1); }
.fruit:hover .fruit-ball { scale: 1.08; }
.fruit-ball img { width: 100%; height: 100%; object-fit: cover; }
.ball-g { background: var(--ball-g); }
.ball-o { background: var(--ball-o); }
.ball-d { background: var(--ball-d); }
.extra-ico { width: 52%; height: 52%; }
.fruit h3 { margin-top: 14px; font-size: 1.32rem; }
.fruit p { margin-top: 4px; font-size: .96rem; color: var(--ink-soft); }
.fruit-meta { font-weight: 800; }

/* Фото */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-weight: 800; }
.tab.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }
.album { columns: 3 280px; column-gap: 18px; }
.album figure { break-inside: avoid; margin-bottom: 18px; }
.album figure[hidden] { display: none; }
.photo-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--beige); cursor: zoom-in; box-shadow: var(--soft); }
.photo-btn img { width: 100%; height: auto; transition: transform .6s; }
.photo-btn:hover img { transform: scale(1.04); }
.photo-btn figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 5px 12px; border-radius: 14px; background: rgba(255, 253, 248, .92); font-weight: 700; font-size: .92rem; text-align: left; }
.album-more { display: flex; margin: 8px auto 0; }
.album-more[hidden] { display: none; }
.album-empty { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; columns: auto; }
.album-empty figure { margin: 0; }
.album-slot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; aspect-ratio: 4 / 5; padding: 14px; text-align: center; background: var(--paper); border-radius: 999px 999px 30px 30px; box-shadow: var(--soft); }
.album-slot .ico { width: 40px; height: 40px; color: var(--olive); }
.album-slot b { font-family: var(--display); font-size: 1.2rem; color: var(--forest); line-height: 1.15; }
.album-slot small { color: var(--ink-soft); }

/* Новости */
.note { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; color: var(--ink-soft); }
.note .ico { color: var(--olive); }
.stories { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story { background: var(--paper); border-radius: 30px; overflow: hidden; box-shadow: var(--soft); }
.story:first-child:not(:only-child) { grid-column: span 3; }
.story-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.story-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sage); }
.story-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.story:hover .story-img img { transform: scale(1.04); }
.story-img-empty img { object-fit: contain; padding: 14% 26%; }
.story-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: rgba(12, 91, 66, .88); color: #fff; font-weight: 800; font-size: .88rem; }
.story-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px 22px; flex: 1; }
.story-body time { font-weight: 800; font-size: .88rem; color: var(--ink-soft); }
.story-title { font-family: var(--display); font-weight: 800; font-size: 1.4rem; line-height: 1.15; color: var(--forest); }
.story-excerpt { color: var(--ink-soft); }
.story-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 6px; font-weight: 800; color: var(--leaf-text); }
@media (min-width: 861px) {
  .story:first-child:not(:only-child) .story-open { flex-direction: row; }
  .story:first-child:not(:only-child) .story-img { flex: 1.3; aspect-ratio: auto; min-height: 320px; }
  .story:first-child:not(:only-child) .story-body { flex: 1; justify-content: center; padding: 32px; }
  .story:first-child:not(:only-child) .story-title { font-size: 2rem; }
  .story:first-child:not(:only-child) .story-more { margin-top: 8px; }
}
.story:only-child { max-width: 560px; }
.news-dialog { width: min(780px, calc(100% - 24px)); max-height: 90vh; padding: 0; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); overflow: auto; }
.news-dialog::backdrop { background: rgba(38, 54, 42, .62); }
.nd-close { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; cursor: pointer; }
.nd-stage { position: relative; background: #1d2a22; }
.nd-img { width: 100%; height: min(58vh, 470px); object-fit: contain; }
.nd-nav { position: absolute; top: 50%; transform: translateY(-50%); display: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); cursor: pointer; }
.nd-prev { left: 12px; }
.nd-next { right: 12px; }
.nd-counter { position: absolute; left: 12px; bottom: 12px; display: none; padding: 3px 11px; border-radius: 999px; background: rgba(12, 91, 66, .88); color: #fff; font-weight: 800; font-size: .86rem; }
.has-many .nd-nav { display: grid; }
.has-many .nd-counter { display: block; }
.nd-thumbs { display: none; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--cream); }
.has-many .nd-thumbs { display: flex; }
.nd-thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 3px solid #fff0; border-radius: 10px; overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.nd-thumbs button.is-active { border-color: var(--leaf); opacity: 1; }
.nd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nd-body { padding: 24px 26px 32px; }
.nd-gallery[hidden] + .nd-body { padding-top: 56px; }
.nd-body time { font-weight: 800; color: var(--ink-soft); }
.nd-body h3 { font-size: 1.8rem; margin: .25em 0 .5em; }
#ndText { overflow-wrap: anywhere; }

/* Документы и вакансии */
.docs-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.doc-sets { display: grid; gap: 16px; margin-top: 28px; }
.doc-set { padding: 22px 26px; background: var(--paper); border-radius: 28px; box-shadow: var(--soft); }
.doc-set p, .doc-set ul { margin-top: 8px; }
.doc-set li + li { margin-top: 10px; }
.doc-set li a { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 800; }
.doc-set li a .ico { margin-top: .22em; }
.doc-set small { display: block; margin-left: 2em; color: var(--ink-soft); }
.jobs { padding: 28px 30px; background: var(--forest); color: #eef5e4; border-radius: 34px; box-shadow: var(--soft); }
.jobs h3 { color: #fff; font-size: 1.7rem; }
.jobs .muted { margin-top: 10px; color: #cfe0cd; }
.job { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.job summary { cursor: pointer; font-weight: 800; }
.job p { margin-top: 8px; }
.job a { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; color: #fff; font-weight: 800; }

/* Контакты */
.contact { padding-bottom: 40px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.contact-phone { display: block; margin-top: 18px; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); color: var(--forest); text-decoration: none; }
.contact-phone:hover { color: var(--leaf); }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.contact-list .ico { margin-top: .22em; color: var(--leaf); }
.social-label { margin-top: 26px; font-weight: 800; color: var(--ink-soft); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; text-decoration: none; }
.socials a:hover { background: var(--sage); }
.form { padding: 28px 30px; background: var(--paper); border-radius: 34px; box-shadow: var(--soft); }
.form label { display: block; margin: 14px 0 4px; font-size: .92rem; font-weight: 800; }
.form input:not([type="checkbox"]), .form select, .form textarea { width: 100%; padding: 12px 15px; border: 1.5px solid var(--beige); border-radius: 16px; background: #fff; font: inherit; color: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--leaf); outline: 0; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: .88rem; color: var(--ink-soft); }
.form .consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--leaf); }
.form .btn { width: 100%; margin-top: 16px; }
.hp-field { position: absolute; left: -9999px; }
.form-note { display: none; margin-top: 14px; font-weight: 800; color: var(--leaf-text); }
.form-note.show { display: block; }
.form-note.error { color: #a8362b; }
.map { display: block; width: 100%; height: 340px; margin-top: 44px; border: 0; border-radius: 34px; box-shadow: var(--soft); background: var(--beige); }
.foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .95rem; }
.foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; text-decoration: none; }

/* Просмотр фото */
.lightbox { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; background: rgba(24, 36, 28, .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 80vh; max-width: min(1000px, 78vw); border-radius: 12px; }
.lightbox figcaption { margin-top: 10px; color: #fff; text-align: center; font-weight: 700; }
.lb-close, .lb-nav { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.lb-close { position: absolute; top: 16px; right: 16px; }

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

/* ---------- Планшет и телефон ---------- */
@media (max-width: 1180px) {
  .bar-brand span { display: none; }
  .bar-call span { display: none; }
  .bar-call { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 980px) {
  .bar-menu { display: grid; }
  .bar-brand span { display: inline; }
  .bar-nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--soft);
  }
  .bar-nav.open { display: flex; }
  .bar-nav a { padding: 12px 16px; font-size: 1.05rem; }
  .hero { display: block; padding-bottom: 130px; }
  .hero-grid, .about-grid, .docs-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 14px; }
  .hero-logo { order: -1; width: min(82%, 420px, 44svh); }
  .hero-text { text-align: center; }
  .hero-facts, .hero-actions { justify-content: center; }
  .hero-text .kicker { justify-content: center; }
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stage:nth-child(n), .js .stage.reveal.is-in:nth-child(n) { transform: none; }
  .stage { display: grid; grid-template-columns: 124px minmax(0, 1fr); column-gap: 18px; align-items: center; text-align: left; padding: 16px 22px 22px; }
  .grow-art { grid-row: 1 / span 2; width: 124px; }
  .stage-age { justify-self: start; align-self: end; margin-top: 0; }
  .stage h3 { align-self: start; margin-top: 4px; }
  .stage p:not(.stage-age), .stage a { grid-column: 1 / -1; }
  .orchard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story:first-child:not(:only-child) { grid-column: span 2; }
  .album-empty { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  :root { --bar-h: 64px; }
  .wrap { width: calc(100% - 44px); }
  .section { padding: 68px 0; }
  .band::before { border-radius: 50% 50% 50% 50% / 38px 38px 38px 38px; }
  .band::after { display: none; }
  .bar-brand { font-size: .94rem; }
  .bar-brand img { width: 46px; }
  .bar-brand span { max-width: 120px; }
  .hero-logo { width: min(68%, 33svh); }
  .hero-text .kicker { display: none; }
  h1 { font-size: 1.85rem; margin-top: 4px; }
  .hero-name { margin-bottom: 6px; font-size: 1.05rem; }
  .hero-facts { margin-top: 14px; gap: 6px; }
  .hero-facts li { padding: 4px 11px; font-size: .88rem; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .btn { min-height: 50px; }
  .hero-actions .btn { width: 100%; }
  .meadow { height: 130px; }
  .hero { padding-top: calc(var(--bar-h) + 18px); padding-bottom: 90px; }
  .bfly { display: none; }
  .info-card { padding: 22px 20px; }
  .info-card dl { grid-template-columns: minmax(0, 1fr); }
  .director { grid-template-columns: minmax(0, 1fr); padding: 22px 20px; gap: 16px; justify-items: start; }
  .director-photo { width: 140px; }
  .orchard { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .stories { grid-template-columns: minmax(0, 1fr); }
  .story:first-child:not(:only-child) { grid-column: auto; }
  .about-photos { grid-template-columns: minmax(0, 1fr); }
  .form, .doc-set, .jobs { padding: 22px 20px; }
  .map { height: 260px; border-radius: 24px; }
  .vine-line { stroke-width: 3; }
  .lightbox { padding: 12px; gap: 4px; }
  .lightbox img { max-width: 72vw; }
}
