/* ==========================================================================
   Детский сад «Изумрудный город»
   Палитра — с макета интерьера и логотипа:
   шалфейно-зелёный, хаки, светлое дерево, песочный, кремовый + изумруд и золото логотипа.
   ========================================================================== */

/* ---------- Шрифты (локально) ---------- */
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/lora-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/lora-latin-600-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/lora-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/lora-latin-700-normal.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+2074, 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-style: normal; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-400-normal.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-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-400-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-600-normal.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: 600; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-600-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 700; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-700-normal.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-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-700-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-weight: 800; font-style: normal; font-display: swap; src: url("../assets/fonts/nunito-cyrillic-800-normal.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-style: normal; font-display: swap; src: url("../assets/fonts/nunito-latin-800-normal.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+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
  --emerald: #0f4a22;
  --emerald-2: #1a6a34;
  --emerald-deep: #0a3418;
  --sage: #7b8a5c;
  --sage-d: #566439;
  --khaki: #b4ac88;
  --beige: #dbd3c0;
  --sand: #ebd3a8;
  --sand-l: #f5e8cb;
  --wood: #b3824a;
  --gold: #d9a31f;
  --gold-l: #f0c75a;
  --cream: #f7f3e8;
  --paper: #fffdf7;
  --ink: #26311f;
  --muted: #5e6a52;
  --line: rgba(86, 100, 57, .2);

  --font-head: "Lora", "Georgia", "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px rgba(38, 49, 31, .09);
  --shadow-lg: 0 24px 60px rgba(15, 74, 34, .18);
  --ease: cubic-bezier(.22, .8, .28, 1);
  --header-h: 76px;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--emerald-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--emerald); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--emerald); margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--emerald); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 200; }
.skip-link:focus { left: 8px; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.note { color: var(--muted); background: rgba(255, 253, 247, .7); border: 1px dashed var(--khaki); border-radius: var(--radius-sm); padding: 18px 22px; }
.note-light { color: var(--cream); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .3); }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Фон: плавающие пятна и листья ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; will-change: transform; }
.blob.b1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle, #cfd9b0, transparent 70%); animation: drift-a 26s ease-in-out infinite alternate; }
.blob.b2 { width: 40vw; height: 40vw; right: -10vw; top: 25vh; background: radial-gradient(circle, #f1dcae, transparent 70%); animation: drift-b 30s ease-in-out infinite alternate; }
.blob.b3 { width: 38vw; height: 38vw; left: 20vw; bottom: -18vw; background: radial-gradient(circle, #bfd0a3, transparent 70%); animation: drift-a 34s ease-in-out infinite alternate-reverse; }
@keyframes drift-a { to { transform: translate3d(8vw, 6vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-9vw, -8vh, 0) scale(1.1); } }

.leaf-p { position: absolute; top: -12vh; color: var(--sage); opacity: 0; will-change: transform; animation: leaf-fall var(--dur, 22s) linear var(--delay, 0s) infinite; }
.leaf-p svg { display: block; width: 100%; height: 100%; animation: leaf-sway var(--sway, 5s) ease-in-out var(--delay, 0s) infinite alternate; }
.leaf-p.is-gold { color: var(--gold); }
.leaf-p.is-em { color: var(--emerald-2); }
@keyframes leaf-fall {
  0% { transform: translate3d(0, 0, 0) rotate(var(--r0, 0deg)); opacity: 0; }
  8% { opacity: var(--o, .35); }
  92% { opacity: var(--o, .35); }
  100% { transform: translate3d(var(--dx, 8vw), 120vh, 0) rotate(var(--r1, 280deg)); opacity: 0; }
}
@keyframes leaf-sway { from { transform: rotate(-14deg) translateX(-8px); } to { transform: rotate(14deg) translateX(8px); } }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Кнопки ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: .55em 1.1em; font-size: .93rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--emerald); color: #fff; box-shadow: 0 8px 22px rgba(15, 74, 34, .28); }
.btn-primary:hover { background: var(--emerald-2); color: #fff; box-shadow: 0 12px 28px rgba(15, 74, 34, .34); }
.btn-gold { background: var(--gold); color: #2a2208; box-shadow: 0 8px 22px rgba(217, 163, 31, .35); }
.btn-gold:hover { background: var(--gold-l); color: #2a2208; }
.btn-ghost { background: rgba(255, 253, 247, .75); color: var(--emerald); border-color: var(--emerald); }
.btn-ghost:hover { background: var(--emerald); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost-light:hover { background: #fff; color: var(--emerald); }

.link-arrow { display: inline-flex; align-items: center; gap: .45em; font-weight: 700; color: var(--emerald); text-decoration: none; }
.link-arrow .ico { transition: transform .25s var(--ease); }
.link-arrow:hover .ico { transform: translateX(5px); }
.link-sm { font-size: .97rem; }

.eyebrow { display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--wood); margin-bottom: .8em; }
.eyebrow::before { content: ""; display: inline-block; width: 26px; height: 2px; background: var(--gold); vertical-align: middle; margin-right: 10px; border-radius: 2px; }
.eyebrow-light { color: var(--gold-l); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: rgba(247, 243, 232, .78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s, background .3s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px rgba(38, 49, 31, .07); background: rgba(247, 243, 232, .92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand-mark { width: 52px; height: auto; transition: transform .5s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-4deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.25rem; color: var(--emerald); }
.brand-text small { font-size: .78rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--wood); margin-top: 3px; }

.site-nav ul { display: flex; align-items: center; gap: 2px; }
.site-nav a:not(.btn) { position: relative; display: block; white-space: nowrap; padding: 8px 12px; font-weight: 700; font-size: .96rem; color: var(--ink); text-decoration: none; border-radius: 999px; transition: color .2s, background .2s; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:not(.btn):hover, .site-nav a.is-active { color: var(--emerald); }
.site-nav a:not(.btn):hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--emerald); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 29px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 0; overflow-x: clip; }
.hero-sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-castle { position: absolute; left: 50%; bottom: 0; width: min(1100px, 130%); height: 340px; transform: translateX(-50%); color: var(--emerald); opacity: .07; }
.spark { position: absolute; color: var(--gold); opacity: .8; animation: twinkle var(--t, 3.4s) ease-in-out var(--d, 0s) infinite; }
.spark-ico { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.spark.s1 { left: 6%; top: 16%; width: 26px; height: 26px; --t: 3.2s; }
.spark.s2 { left: 46%; top: 8%; width: 18px; height: 18px; --d: .8s; }
.spark.s3 { right: 7%; top: 14%; width: 30px; height: 30px; --t: 4s; --d: 1.2s; }
.spark.s4 { left: 38%; top: 58%; width: 14px; height: 14px; --d: 2s; }
.spark.s5 { right: 36%; top: 48%; width: 20px; height: 20px; --t: 3.6s; --d: .4s; }
.spark.s6 { left: 3%; top: 62%; width: 16px; height: 16px; --d: 1.6s; }
@keyframes twinkle { 0%, 100% { transform: scale(.4) rotate(0deg); opacity: .15; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }

.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 7px 16px 7px 12px; border-radius: 999px; background: rgba(255, 253, 247, .85); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--sage-d); }
.hero-eyebrow .ico { color: var(--emerald-2); width: 1.1em; height: 1.1em; }
.hero h1 { margin-bottom: .45em; }
.h1-accent { position: relative; display: inline-block; color: var(--emerald-2); font-style: italic; }
.h1-accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; border-radius: 99px; background: linear-gradient(90deg, var(--gold-l), var(--gold)); opacity: .55; z-index: -1; transform-origin: left; animation: underline-draw 1.2s var(--ease) .5s both; }
@keyframes underline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: .92rem; color: var(--sage-d); background: rgba(219, 211, 192, .5); }
.hero-chips .ico { color: var(--wood); }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .1s; }
.hero-copy > *:nth-child(3) { animation-delay: .2s; }
.hero-copy > *:nth-child(4) { animation-delay: .3s; }
.hero-copy > *:nth-child(5) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-visual { position: relative; display: grid; place-items: center; padding: 28px 0; will-change: transform; }
.ring { position: absolute; border-radius: 50%; pointer-events: none; }
.ring-1 { width: min(560px, 118%); aspect-ratio: 1; border: 2px dashed rgba(217, 163, 31, .55); animation: spin 60s linear infinite; }
.ring-2 { width: min(480px, 100%); aspect-ratio: 1; border: 1px solid rgba(86, 100, 57, .25); animation: spin 90s linear infinite reverse; }
.ring-1::after { content: ""; position: absolute; top: 8%; left: 14%; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(217, 163, 31, .2); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-arch { position: relative; width: min(400px, 82%); aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; background: linear-gradient(170deg, #fffdf7, #efe8d2); border: 8px solid var(--paper); box-shadow: var(--shadow-lg), 0 0 0 2px var(--gold); overflow: hidden; display: grid; place-items: center; animation: float 7s ease-in-out infinite; }
.hero-arch.has-photo { background: var(--beige); }
.hero-arch > img:not(.arch-badge):not(.arch-logo) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.arch-logo { width: 112%; max-width: none; height: auto; margin-top: 4%; filter: drop-shadow(0 8px 14px rgba(15, 74, 34, .2)); }
.arch-badge { position: absolute; left: 50%; bottom: 14px; width: 74px; height: auto; transform: translateX(-50%); background: rgba(255, 253, 247, .94); padding: 8px 10px; border-radius: 20px; box-shadow: var(--shadow); }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

.hero-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 6vw, 64px); transform: translateY(46px); }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stat-card > .ico { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: linear-gradient(145deg, #e7edd3, #d3ddb5); color: var(--emerald); stroke-width: 1.7; }
.stat-card strong { display: block; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.15; color: var(--emerald); }
.stat-card span { font-size: .88rem; color: var(--muted); font-weight: 600; }

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
#about { padding-top: clamp(108px, 12vw, 150px); }
.head-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px 48px; align-items: end; margin-bottom: clamp(30px, 5vw, 52px); }
.head-split h2, .head-split .lead { margin-bottom: 0; }
.head-center { text-align: center; max-width: 720px; margin: 0 auto clamp(30px, 5vw, 52px); }
.h2-sm { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.panel { margin-inline: clamp(8px, 2vw, 28px); border-radius: clamp(32px, 5vw, 64px); overflow: hidden; }
.panel-emerald { background: radial-gradient(circle at 12% 0%, rgba(26, 106, 52, .9), transparent 55%), linear-gradient(160deg, #0f4a22, #0a3418); color: #eaf0dc; }
.panel-emerald h2, .panel-emerald h3 { color: #fff; }
.panel-emerald .lead { color: rgba(234, 240, 220, .85); }
.panel-emerald::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: radial-gradient(rgba(240, 199, 90, .22) 1.2px, transparent 1.6px); background-size: 38px 38px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.panel > .container { position: relative; }
.section-sage { margin-inline: clamp(8px, 2vw, 28px); border-radius: clamp(32px, 5vw, 64px); background: linear-gradient(150deg, #8b9a6c, #6c7b4d); }
.section-sand { margin-inline: clamp(8px, 2vw, 28px); border-radius: clamp(32px, 5vw, 64px); background: linear-gradient(160deg, var(--sand-l), #ecd9ae); }
.section + .section-sage, .section + .section-sand, .section + .panel { margin-top: clamp(20px, 3vw, 40px); }
.section-sage + .section, .section-sand + .section, .panel + .section { margin-top: clamp(0px, 1vw, 12px); }

.branch { position: absolute; width: 130px; height: auto; color: var(--sage); opacity: .22; pointer-events: none; animation: sway 8s ease-in-out infinite alternate; transform-origin: 50% 100%; }
.branch-l { left: 1%; top: 6%; transform: rotate(-12deg); }
.branch-r { right: 1%; top: 8%; transform: rotate(12deg); animation-delay: -3s; }
.panel-emerald .branch { color: var(--gold-l); opacity: .18; }
@keyframes sway { from { rotate: -4deg; } to { rotate: 5deg; } }

/* О саде */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-copy .lead { color: var(--ink); }
.about-copy p { color: var(--muted); }
.collage { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; grid-template-rows: 190px 190px; gap: 16px; }
.tile { position: relative; margin: 0; overflow: hidden; border-radius: 26px; background: linear-gradient(150deg, #dfe6c8, #bccaa0); box-shadow: var(--shadow); transition: transform .5s var(--ease); }
.tile:hover { transform: translateY(-6px) rotate(-.6deg); }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.07); }
.tile-1 { grid-row: span 2; border-radius: 200px 200px 26px 26px; }
.tile-2 { border-radius: 26px 26px 26px 100px; background: linear-gradient(150deg, #f2e2b8, #e4c98d); }
.tile-3 { border-radius: 100px 26px 26px 26px; background: linear-gradient(150deg, #d9d0b6, #b9ae88); }
.tile-branch { position: absolute; width: 60%; left: 20%; bottom: -8%; color: #fff; opacity: .55; }
.tile figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-radius: 16px; background: rgba(255, 253, 247, .92); font-weight: 700; font-size: .88rem; color: var(--emerald); backdrop-filter: blur(6px); }
.tile figcaption span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: #2a2208; font-size: .75rem; }

/* Паспорт сада */
.passport { margin-top: clamp(48px, 7vw, 84px); padding: clamp(24px, 4vw, 44px); border-radius: 32px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.passport-head { margin-bottom: 26px; }
.passport-head h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border-radius: 20px; background: linear-gradient(160deg, #faf6e8, #f3edd8); border: 1px solid rgba(180, 172, 136, .35); transition: transform .3s var(--ease), border-color .3s; }
.fact:hover { transform: translateY(-3px); border-color: var(--gold); }
.fact > div { display: flex; flex-direction: column; min-width: 0; }
.fact-label { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wood); }
.fact strong, .fact a { font-size: 1.05rem; font-weight: 700; color: var(--emerald); overflow-wrap: anywhere; text-decoration: none; }
.fact a:hover { text-decoration: underline; }
.ico-bubble { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(145deg, #e7edd3, #cfdaae); color: var(--emerald); }
.ico-bubble .ico { width: 22px; height: 22px; }

/* Лесенка ценностей */
.values { overflow: hidden; }
.stairs { display: flex; align-items: flex-end; gap: 10px; min-height: 380px; }
.stairs li { --h: calc(78px + var(--i) * 40px); flex: 1; height: var(--h); position: relative; padding: 14px 10px; border-radius: 22px 22px 8px 8px; display: flex; align-items: flex-start; justify-content: center; text-align: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: clamp(.95rem, 1.5vw, 1.25rem); background: color-mix(in srgb, var(--emerald) calc(14% + var(--i) * 12%), var(--sage)); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .28), var(--shadow); transform-origin: bottom; }
.stairs li::after { content: ""; position: absolute; top: -11px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.stairs.reveal-stairs li { transform: scaleY(0); opacity: 0; transition: transform .8s var(--ease), opacity .5s; transition-delay: calc(var(--i) * 90ms); }
.stairs.reveal-stairs.is-in li { transform: none; opacity: 1; }

/* Руководитель */
.director-card { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(20px, 4vw, 44px); border-radius: 40px; background: var(--paper); box-shadow: var(--shadow-lg); }
.director-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 28px 28px; overflow: hidden; background: linear-gradient(160deg, #dfe6c8, #a9b987); box-shadow: 0 0 0 6px var(--paper), 0 0 0 8px var(--gold); }
.director-photo img { width: 100%; height: 100%; object-fit: cover; }
.director-photo.is-empty { display: grid; place-items: center; }
.director-branch { position: absolute; bottom: -6%; width: 70%; color: #fff; opacity: .4; }
.initials { position: relative; font-family: var(--font-head); font-size: 6rem; font-weight: 700; color: #fff; text-shadow: 0 6px 20px rgba(15, 74, 34, .3); }
.director-copy h2 { margin-bottom: .2em; }
.director-copy .eyebrow-light { color: var(--wood); }
.director-role { font-weight: 800; color: var(--wood); font-size: 1.05rem; }
.director-copy p { color: var(--muted); }
.director-copy .btn { margin-top: 10px; }

/* Кружки */
.extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.extra-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.extra-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.extra-media { position: relative; height: 176px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, #dfe6c8, #b6c48f); }
.extra-card:nth-child(4n+2) .extra-media { background: linear-gradient(150deg, #f4e4bb, #e2c58a); }
.extra-card:nth-child(4n+3) .extra-media { background: linear-gradient(150deg, #e3dcc6, #bfb590); }
.extra-card:nth-child(4n+4) .extra-media { background: linear-gradient(150deg, #cfe0c4, #9bb487); }
.extra-media::before { content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%; right: -60px; top: -70px; background: rgba(255, 255, 255, .28); }
.extra-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.extra-card:hover .extra-media img { transform: scale(1.07); }
.extra-badge { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 28px; background: rgba(255, 253, 247, .92); color: var(--emerald); box-shadow: 0 10px 24px rgba(15, 74, 34, .18); transition: transform .5s var(--ease); }
.extra-card:hover .extra-badge { transform: rotate(-6deg) scale(1.06); }
.extra-ico { width: 54px; height: 54px; }
.extra-media.has-photo .extra-badge { position: absolute; left: 14px; bottom: 14px; width: 56px; height: 56px; border-radius: 18px; }
.extra-media.has-photo .extra-ico { width: 32px; height: 32px; }
.extra-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.extra-body h3 { margin-bottom: .35em; }
.extra-body p { color: var(--muted); font-size: .98rem; }
.extra-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.extra-meta li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; color: var(--sage-d); background: #eef0df; }
.extra-meta .meta-price { background: var(--sand-l); color: #7a5a1a; }
.extra-body .link-arrow { margin-top: auto; }

/* Галерея */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.chip { padding: 8px 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #eaf0dc; font-weight: 700; font-size: .93rem; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.chip:hover { transform: translateY(-2px); border-color: var(--gold-l); }
.chip.is-on { background: var(--gold); border-color: var(--gold); color: #2a2208; }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; grid-auto-flow: dense; gap: 14px; }
.m-item { position: relative; margin: 0; overflow: hidden; border-radius: 22px; background: rgba(255, 255, 255, .1); }
.m-item.m-big { grid-column: span 2; grid-row: span 2; }
.m-item[hidden] { display: none; }
.m-btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; }
.m-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.m-item:hover .m-btn img { transform: scale(1.08); }
.m-item figcaption { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 7px 12px; border-radius: 14px; background: rgba(10, 52, 24, .72); backdrop-filter: blur(6px); color: #fff; font-size: .85rem; font-weight: 600; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.m-item:hover figcaption, .m-btn:focus-visible + figcaption { opacity: 1; transform: none; }
.mosaic-empty .m-item { display: grid; place-items: center; animation: pulse-soft 3.6s ease-in-out infinite; }
.mosaic-empty .m-item:nth-child(even) { animation-delay: -1.8s; }
.mosaic-empty .m-item.m-big { grid-column: span 2; grid-row: span 2; }
.mosaic-empty .tile-branch { position: static; width: 34%; color: var(--gold-l); opacity: .5; }
@keyframes pulse-soft { 50% { background: rgba(255, 255, 255, .17); } }
.more-wrap { text-align: center; margin: 30px 0 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; background: rgba(8, 28, 14, .94); animation: fade .25s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(92vw, 1100px); text-align: center; }
.lightbox img { max-height: 82vh; width: auto; margin-inline: auto; border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox figcaption { margin-top: 14px; color: #eaf0dc; font-weight: 600; }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s, transform .2s; }
.lb-close:hover, .lb-nav:hover { background: var(--gold); color: #2a2208; transform: scale(1.08); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
@keyframes fade { from { opacity: 0; } }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.news-open { display: flex; flex-direction: column; width: 100%; height: 100%; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.news-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, #dfe6c8, #b6c48f); }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.06); }
.news-img-empty { display: grid; place-items: center; }
.news-img-empty .tile-branch { position: static; width: 24%; opacity: .6; }
.news-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 24px 24px; }
.news-body time { font-size: .83rem; font-weight: 800; letter-spacing: .08em; color: var(--wood); }
.news-title { font-family: var(--font-head); font-size: 1.22rem; line-height: 1.25; color: var(--emerald); }
.news-excerpt { color: var(--muted); font-size: .96rem; }
.news-body .link-arrow { margin-top: auto; padding-top: 6px; }

.news-dialog { width: min(720px, calc(100% - 28px)); max-height: 90vh; padding: 0; border: 0; border-radius: 30px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 90px rgba(0, 0, 0, .4); overflow: auto; }
.news-dialog::backdrop { background: rgba(8, 28, 14, .7); backdrop-filter: blur(4px); }
.news-dialog[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.nd-close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(255, 253, 247, .92); color: var(--emerald); box-shadow: var(--shadow); }
.nd-img { width: 100%; max-height: 380px; object-fit: cover; }
.nd-body { padding: 28px clamp(22px, 5vw, 40px) 36px; }
.nd-body time { font-weight: 800; font-size: .85rem; letter-spacing: .08em; color: var(--wood); }
.nd-body h3 { font-size: 1.7rem; margin: .3em 0 .6em; }
.nd-body #ndText { color: var(--ink); overflow-wrap: anywhere; }

/* Вакансии */
.jobs { display: grid; gap: 14px; max-width: 860px; }
.job { border-radius: 22px; background: var(--paper); border: 1px solid rgba(179, 130, 74, .25); box-shadow: var(--shadow); overflow: hidden; }
.job summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer; list-style: none; }
.job summary::-webkit-details-marker { display: none; }
.job-title { flex: 1; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--emerald); }
.job summary time { font-size: .85rem; font-weight: 700; color: var(--wood); }
.job-plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--sand-l); }
.job-plus::before, .job-plus::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; border-radius: 2px; background: var(--emerald); transition: transform .3s var(--ease); }
.job-plus::after { transform: rotate(90deg); }
.job[open] .job-plus::after { transform: rotate(0); }
.job-body { padding: 0 24px 24px; color: var(--muted); animation: fade .4s; }

/* Документы */
.docs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.docs-col { padding: 28px; }
.docs-col h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; padding-bottom: 14px; border-bottom: 2px solid var(--sand); }
.docs-col h3 .ico { width: 1.4em; height: 1.4em; color: var(--wood); }
.doc-list { display: grid; gap: 10px; margin-top: 4px; }
.doc-list li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border-radius: 16px; background: #f6f2e3; transition: background .25s, transform .25s var(--ease); }
.doc-list li:hover { background: #ecefd9; transform: translateX(4px); }
.doc-list a { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; color: var(--emerald); text-decoration: none; }
.doc-list a .ico { margin-top: 3px; color: var(--wood); }
.doc-list small { padding-left: 33px; color: var(--muted); font-weight: 600; }
.docs-col .note { margin-top: 16px; }

/* Соцсети */
.social { padding-block: clamp(48px, 7vw, 80px); }
.social-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px 48px; align-items: center; }
.social-grid .lead { margin-bottom: 0; }
.social-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }

/* Контакты */
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 16px; margin: 28px 0; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list li > div { display: flex; flex-direction: column; }
.contact-label { font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--wood); }
.contact-list a:not(.addr-map) { font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.contact-list a:not(.addr-map):hover { text-decoration: underline; }
.contact-list span:not(.contact-label):not(.ico-bubble) { font-weight: 700; font-size: 1.1rem; color: var(--emerald); }
.addr-map { font-size: .93rem; font-weight: 700; color: var(--wood); }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); color: var(--emerald); font-weight: 700; font-size: .95rem; text-decoration: none; transition: background .25s, color .25s, transform .25s var(--ease); }
.chip-link:hover { background: var(--emerald); color: #fff; transform: translateY(-2px); }
.map-frame { overflow: hidden; border-radius: 26px; border: 4px solid var(--paper); box-shadow: var(--shadow); aspect-ratio: 16 / 10; background: var(--beige); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { display: flex; flex-direction: column; padding: clamp(24px, 4vw, 40px); position: sticky; top: calc(var(--header-h) + 20px); border-radius: 32px; box-shadow: var(--shadow-lg); }
.form::before { content: ""; position: absolute; left: 30px; right: 30px; top: -1px; height: 5px; border-radius: 0 0 8px 8px; background: linear-gradient(90deg, var(--emerald), var(--gold), var(--sage)); }
.form h3 { margin-bottom: .2em; }
.form-lead { color: var(--muted); margin-bottom: 14px; }
.form label { font-weight: 700; font-size: .92rem; margin: 12px 0 6px; color: var(--emerald); }
.form input:not([type="checkbox"]), .form textarea { width: 100%; padding: 13px 16px; border: 1.5px solid var(--khaki); border-radius: 16px; background: #fffef9; font: inherit; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.form textarea { resize: vertical; min-height: 96px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--emerald-2); box-shadow: 0 0 0 4px rgba(26, 106, 52, .14); }
.form input.is-bad { border-color: #b3382c; }
.check-line { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 600 !important; color: var(--muted) !important; font-size: .9rem !important; margin: 16px 0 18px !important; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--emerald); flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { min-height: 1.5em; margin: 12px 0 0; font-weight: 700; text-align: center; }
.form-note.ok { color: var(--emerald-2); }
.form-note.err { color: #b3382c; }
.form .btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Подвал ---------- */
.site-footer { position: relative; margin-top: clamp(60px, 8vw, 110px); padding-top: 120px; background: linear-gradient(180deg, #0f4a22, #0a3418); color: #d6e0c4; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 60px; background: var(--cream); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.footer-castle { position: absolute; right: -2%; bottom: 0; width: min(760px, 90%); height: 320px; color: #fff; opacity: .06; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.1fr .8fr 1.1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand img { width: min(300px, 100%); height: auto; padding: 14px; border-radius: 24px; background: var(--cream); }
.site-footer h3 { color: var(--gold-l); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--font-body); font-weight: 800; }
.site-footer ul { display: grid; gap: 8px; }
.site-footer a { color: #eaf0dc; text-decoration: none; }
.site-footer a:hover { color: var(--gold-l); text-decoration: underline; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .92rem; }
.footer-bottom p { margin: 0; }
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 10px 28px rgba(15, 74, 34, .4); transition: transform .3s var(--ease); }
.fab-wa .ico { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #1fa855; animation: ping 2.6s ease-out infinite; }
.fab-wa:hover { transform: scale(1.1) rotate(-6deg); color: #fff; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Появление при прокрутке ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + 6px); padding: 14px; border-radius: 26px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98); transition: opacity .25s, transform .3s var(--ease), visibility .25s; max-height: calc(100vh - var(--header-h) - 24px); overflow: auto; }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { padding: 13px 16px; font-size: 1.05rem; border-radius: 14px; }
  .site-nav a:not(.btn)::after { display: none; }
  .site-nav a:not(.btn):hover, .site-nav a.is-active { background: #eef0df; }
  .nav-cta { display: block; margin-top: 8px; }
  .nav-cta .btn { width: 100%; }
}
@media (max-width: 980px) {
  .hero-grid, .about-grid, .contact-grid, .head-split, .social-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; padding: 8px 0 0; }
  .hero-arch { width: min(300px, 70%); }
  .ring-1 { width: min(380px, 100%); }
  .ring-2 { width: min(330px, 86%); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .director-card { grid-template-columns: 1fr; text-align: center; }
  .director-photo { width: min(280px, 78%); margin-inline: auto; }
  .social-buttons { justify-content: flex-start; }
  .form { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stairs { align-items: flex-start; min-height: 0; gap: 8px; }
  .stairs li { --h: auto; flex: none; width: calc(46% + var(--i) * 7.5%); height: auto; min-height: 48px; padding: 12px 18px; border-radius: 14px; justify-content: flex-start; transform-origin: left; }
  .stairs li::after { top: 50%; left: auto; right: 14px; margin: -10px 0 0; }
  .stairs { flex-direction: column-reverse; }
  .stairs.reveal-stairs li { transform: scaleX(0); }
  .stairs.reveal-stairs.is-in li { transform: none; }
  .branch { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-call span { display: none; }
  .header-call { padding: .6em .75em; }
  .brand-text strong { font-size: 1.08rem; }
  .brand-mark { width: 44px; }
  .hero-stats { transform: translateY(32px); gap: 10px; }
  .stat-card { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .stat-card > .ico { width: 38px; height: 38px; padding: 8px; }
  .stat-card strong { font-size: 1.15rem; }
  .facts { grid-template-columns: 1fr; }
  .collage { grid-template-rows: 150px 150px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .job summary { flex-wrap: wrap; gap: 6px 12px; padding: 16px 18px; }
  .job-title { flex-basis: calc(100% - 50px); }
  .job summary time { order: 3; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lb-nav { top: auto; bottom: 20px; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
  .fab-wa { width: 54px; height: 54px; right: 14px; bottom: 14px; }
}

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