:root {
  --ink: #17211d;
  --forest: #19342b;
  --forest-2: #24463a;
  --sage: #7c9276;
  --sage-deep: #5b7653;
  --sage-soft: #cdd7c8;
  --mint: #e7eee2;
  --cream: #f4f1e9;
  --paper: #fbfaf6;
  --line: rgba(23, 33, 29, .14);
  --white-line: rgba(255, 255, 255, .16);
  --muted: #646d67;
  --radius: 28px;
  --container: min(1280px, calc(100vw - 64px));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-swap: cubic-bezier(.7, 0, .2, 1);
  --focus: #3f6b52;
  --on-dark: #cfe0c6;
  --forest-deep: #10261e;
  --font-body: "Helvetica Neue", Arial, Helvetica, sans-serif;
  --font-accent: Georgia, 'Times New Roman', serif;
  --btn-radius: 999px;
  --chip-radius: 50%;
  --btn-h: 56px;
  --btn-weight: 700;
  --btn-case: none;
  --btn-ls: .01em;
  --space: 1;
  --h-weight: 400;
  --h-scale: 1;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary, select { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--sage) 55%, #fff); color: #10241c; }

:where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.hero, .scene-section, .process, .contact, .footer, .legal-hero, .error-page, .site-header:not(.scrolled) { --focus: var(--on-dark); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 9999;
  left: 16px;
  top: -80px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: inherit;
  --btn-line: transparent;
  --chip-bg: currentColor;
  --chip-fg: #fff;
  --chip-out: translate(160%, -160%);
  --chip-in: translate(-160%, 160%);
  position: relative;
  min-height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 6px 6px 6px 26px;
  border: 1px solid var(--btn-line);
  border-radius: var(--btn-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 13px;
  font-weight: var(--btn-weight);
  text-transform: var(--btn-case);
  letter-spacing: var(--btn-ls);
  line-height: 1.2;
  text-align: left;
  transition: transform .35s var(--ease-out), background-color .3s ease, color .3s ease, border-color .3s ease, box-shadow .35s ease;
}
.btn-chip {
  position: relative;
  flex: 0 0 auto;
  width: calc(var(--btn-h) - 12px);
  height: calc(var(--btn-h) - 12px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--chip-radius);
  background: var(--chip-bg);
  color: var(--chip-fg);
  transition: background-color .3s ease, color .3s ease;
}
.btn-chip .i { grid-area: 1 / 1; transition: transform .5s var(--ease-swap); }
.btn-chip .i + .i { transform: var(--chip-in); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.985); transition-duration: .1s; }
.btn:hover .btn-chip .i:first-child:not(:only-child) { transform: var(--chip-out); }
.btn:hover .btn-chip .i + .i { transform: none; }
.btn-down { --chip-out: translateY(160%); --chip-in: translateY(-160%); }

.btn-primary { --btn-bg: var(--btn1-bg, var(--mint)); --btn-fg: var(--btn1-fg, var(--forest-deep)); --chip-bg: var(--btn1-fg, var(--forest)); --chip-fg: var(--btn1-bg, var(--mint)); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .5); }
.btn-primary:hover { --btn-bg: var(--btn1-hover, #fff); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .55); }
.btn-ghost { --btn-fg: #fff; --btn-line: rgba(255, 255, 255, .3); --chip-bg: rgba(255, 255, 255, .1); --chip-fg: #fff; }
.btn-ghost:hover { --btn-bg: rgba(255, 255, 255, .07); --btn-line: rgba(255, 255, 255, .6); --chip-bg: var(--mint); --chip-fg: var(--forest-deep); }
.btn-light { width: 100%; --btn-bg: var(--btn1-bg, #f6f4ed); --btn-fg: var(--btn1-fg, var(--forest-deep)); --chip-bg: var(--btn1-fg, var(--forest)); --chip-fg: var(--btn1-bg, #f6f4ed); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .6); }
.btn-light:hover { --btn-bg: var(--btn1-hover, #fff); }
.btn-dark { --btn-bg: var(--btn2-bg, var(--forest)); --btn-fg: var(--btn2-fg, #fff); --chip-bg: rgba(255, 255, 255, .12); --chip-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--btn2-hover, var(--forest-2)); --chip-bg: var(--mint); --chip-fg: var(--btn2-bg, var(--forest)); }
.btn-sm { min-height: calc(var(--btn-h) - 10px); gap: 16px; padding: 4px 4px 4px 20px; font-size: 12px; }
.btn-sm .btn-chip { width: calc(var(--btn-h) - 20px); height: calc(var(--btn-h) - 20px); }
.btn-sm .i { width: 16px; height: 16px; }

.btn[disabled], .btn[aria-busy="true"] { cursor: progress; transform: none; }
.btn[aria-busy="true"] .btn-chip .i { opacity: 0; }
.btn[aria-busy="true"] .btn-chip::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Small round link chips used inside text links and cards */
.link-chip {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--chip-radius);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .4s var(--ease-out);
}
.link-chip .i { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .4s var(--ease-out); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 88px;
  color: #fff;
  transition: background .35s ease, color .35s ease, height .35s ease, box-shadow .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled,
html[data-header="light"] .site-header {
  height: 74px;
  color: var(--ink);
  background: rgba(251, 250, 246, .86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(23, 33, 29, .08);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 220px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; transition: transform .5s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-8deg); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.has-logo { display: flex; align-items: center; width: auto; height: auto; }
.brand-mark.has-logo img { width: auto; height: 40px; max-width: 150px; object-fit: contain; }
.brand:hover .brand-mark.has-logo { transform: none; }
.brand-logo-only .brand-copy { display: none; }
.brand-logo-only .brand-mark.has-logo img { height: 46px; max-width: 200px; }
.brand-footer .brand-mark.has-logo img { height: 38px; }
.brand-copy { display: grid; line-height: 1.05; gap: 5px; }
.brand-copy strong { font-size: 15px; letter-spacing: .13em; font-weight: 700; }
.brand-copy small { font-size: 9px; letter-spacing: .12em; text-transform: uppercase; opacity: .64; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.main-nav a { position: relative; font-size: 13px; opacity: .82; transition: opacity .2s ease; }
.main-nav a:hover { opacity: 1; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -7px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.main-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-contact {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: var(--btn-radius);
  font-size: 12px;
  font-weight: var(--btn-weight);
  text-transform: var(--btn-case);
  letter-spacing: var(--btn-ls);
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--ease-out);
}
.header-contact:hover { background: #fff; border-color: #fff; color: var(--forest); transform: translateY(-1px); }
.site-header.scrolled .header-contact, html[data-header="light"] .site-header .header-contact { background: var(--btn2-bg, var(--forest)); border-color: var(--btn2-bg, var(--forest)); color: var(--btn2-fg, #fff); }
.site-header.scrolled .header-contact:hover, html[data-header="light"] .site-header .header-contact:hover { background: var(--btn2-hover, var(--forest-2)); border-color: var(--btn2-hover, var(--forest-2)); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform .25s ease; }
.nav-toggle.open span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

html[data-header="dark"] .site-header { background: color-mix(in srgb, var(--forest-deep) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--white-line); height: 74px; }

/* Анимации можно выключить в дизайн-конструкторе */
html.no-motion [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #f8fbf8;
  background: var(--forest-deep);
  isolation: isolate;
  overflow: hidden;
  padding: 132px 0 92px;
}
.hero::before, .legal-hero::before, .error-page::before { content: ""; position: absolute; inset: 0; z-index: -4; background: radial-gradient(circle at 15% 18%, color-mix(in srgb, var(--sage) 16%, transparent), transparent 28%), linear-gradient(135deg, var(--forest) 0%, color-mix(in srgb, var(--forest) 65%, var(--forest-deep)) 60%, var(--forest-deep) 100%); }
.hero-grid { position: absolute; inset: 0; z-index: -3; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 78%, transparent); }
.hero-orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(2px); border: 1px solid rgba(255,255,255,.08); }
.hero-orb-a { width: 540px; height: 540px; right: -120px; top: -220px; background: color-mix(in srgb, var(--sage) 8%, transparent); }
.hero-orb-b { width: 310px; height: 310px; left: 38%; bottom: -210px; background: rgba(255,255,255,.035); }
.hero-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(42px, 6vw, 100px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; opacity: .72; }
.eyebrow > span { width: 34px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--forest); opacity: .76; }
.eyebrow.light { color: #fff; opacity: .7; }
.hero h1, .section h2, .scene-copy h2, .contact h2, .process h2 { margin: 0; letter-spacing: -.045em; font-weight: var(--h-weight); }
.hero h1 { max-width: 660px; font-size: calc(clamp(46px, 6vw, 86px) * var(--h-scale)); line-height: .98; }
h1 em, h2 em { color: var(--on-dark); font-family: var(--font-accent); font-weight: 400; }
.hero-lead { max-width: 590px; margin: 28px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.65; color: rgba(255,255,255,.74); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-meta { margin-top: 54px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: grid; grid-template-columns: repeat(3, 1fr); max-width: 500px; }
.hero-meta div { display: grid; gap: 4px; }
.hero-meta strong { font-size: 10px; opacity: .45; letter-spacing: .12em; }
.hero-meta span { font-size: 12px; opacity: .78; }
.hero-visual-wrap { align-self: stretch; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
/* Кадр в пропорциях картинки (3:2): подписи плана по краям не обрезаются */
.hero-visual { position: relative; aspect-ratio: 3 / 2; border-radius: 2px 2px 160px 2px; overflow: hidden; background: #e9ece4; transform-style: preserve-3d; box-shadow: 0 32px 80px rgba(5,15,11,.24); transition: transform .5s var(--ease-out); }
.hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.hero-visual:hover img { transform: scale(1.02); }
.visual-note { margin: 12px 0 0; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.marquee { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; border-top: 1px solid rgba(255,255,255,.08); background: rgba(5,20,15,.14); }
.marquee-track { width: max-content; display: flex; align-items: center; gap: 28px; padding: 12px 0; animation: marquee 28s linear infinite; font-size: 10px; letter-spacing: .18em; color: rgba(255,255,255,.52); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--on-dark); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: calc(120px * var(--space)) 0; }
.section-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-bottom: 64px; }
.section h2 { font-size: calc(clamp(40px, 5.1vw, 72px) * var(--h-scale)); line-height: 1.02; }
.section-intro { max-width: 540px; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.services { background: var(--cream); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 430px; display: flex; flex-direction: column; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.18); transition: background .3s ease, transform .3s ease; }
.service-card:hover { background: rgba(255,255,255,.62); transform: translateY(-3px); }
.service-card.service-featured { background: var(--mint); }
.service-card.service-featured:hover { background: #eef2ea; }
.service-no { font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.service-icon { width: 62px; height: 62px; margin-top: 52px; color: var(--forest); transition: transform .5s var(--ease-out); }
.service-card:hover .service-icon { transform: translateY(-4px); }
.service-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 28px 0 10px; font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 500; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.service-card a { margin-top: auto; padding-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .02em; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.service-card a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.service-card a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.service-card:hover .link-chip { background: var(--forest); border-color: var(--forest); color: #fff; }
.service-card:hover .link-chip .i { transform: rotate(45deg); }

.scene-section { position: relative; background: var(--forest-deep); color: #fff; }
.scene-scroll { height: 280vh; position: relative; }
.scene-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.scene-media { position: absolute; inset: 0; overflow: hidden; background: #f2f1eb; }
/* Рамка в пропорциях фото, заполняющая экран как cover. Фото и метки лежат в двух таких рамках
   с одинаковым transform, поэтому метки держатся за нужные точки снимка при приближении. */
.scene-frame { position: absolute; left: 50%; top: 50%; width: max(100%, calc(100vh * var(--rw, 1671) / var(--rh, 941))); aspect-ratio: var(--rw, 1671) / var(--rh, 941); translate: -50% -50%; transform: scale(1.02); will-change: transform; }
.scene-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scene-pins { z-index: 1; pointer-events: none; }
.scene-wash { position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--forest-deep) 88%, transparent) 0%, color-mix(in srgb, var(--forest-deep) 68%, transparent) 32%, color-mix(in srgb, var(--forest-deep) 12%, transparent) 66%, color-mix(in srgb, var(--forest-deep) 5%, transparent) 100%); }
.scene-overlay { position: relative; z-index: 2; height: 100%; display: flex; align-items: center; }
.scene-copy { width: min(560px, 45vw); padding-top: 48px; }
.scene-copy h2 { font-size: calc(clamp(48px, 6vw, 86px) * var(--h-scale)); line-height: .98; }
.scene-description { max-width: 520px; min-height: 84px; margin: 26px 0 0; color: rgba(255,255,255,.74); line-height: 1.7; font-size: 14px; }
.scene-steps { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.18); }
.scene-step { position: relative; width: 100%; display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); background: transparent; color: rgba(255,255,255,.5); text-align: left; padding: 15px 0; transition: color .25s ease, padding-left .25s ease; }
.scene-step::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: var(--on-dark); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.scene-step:hover { color: rgba(255,255,255,.85); }
.scene-step span { font-size: 10px; letter-spacing: .1em; }
.scene-step b { font-size: 13px; font-weight: 500; }
.scene-step.active { color: #fff; padding-left: 8px; }
.scene-step.active::before { transform: scaleX(1); }
.scene-marker { position: absolute; display: flex; align-items: center; gap: 8px; color: var(--forest-deep); font-size: 10px; font-weight: 700; letter-spacing: .03em; opacity: 0; transition: opacity .35s ease, transform .35s ease; transform: translateY(6px); }
.scene-marker span { width: 12px; height: 12px; border-radius: 50%; background: #2d684f; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 0 0 6px rgba(45,104,79,.16); }
.scene-marker b { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 999px; padding: 6px 9px; }
.scene-marker.visible { opacity: 1; transform: translateY(0); }
.scene-marker { margin: -12px 0 0 -6px; }
/* Положение меток задаётся в процентах снимка (style у .scene-marker) */

.directions { background: var(--paper); }
.direction-stack { display: grid; gap: 80px; }
.direction-card { display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: center; }
.direction-card-reverse { grid-template-columns: .75fr 1.25fr; }
.direction-card-reverse .direction-media { order: 2; }
.direction-card-reverse .direction-copy { order: 1; }
.direction-media { position: relative; overflow: hidden; border-radius: var(--radius); background: #edf0e9; }
.direction-media::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(to top, color-mix(in srgb, var(--forest-deep) 18%, transparent), transparent); pointer-events: none; }
.direction-media img { width: 100%; height: auto; aspect-ratio: 1.55 / 1; object-fit: cover; transition: transform .7s var(--ease-out); }
.direction-card:hover .direction-media img { transform: scale(1.035); }
.media-badge { position: absolute; z-index: 2; top: 20px; left: 20px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--forest); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.direction-copy { max-width: 470px; }
.direction-index { margin: 0 0 24px; font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--sage-deep); font-weight: 700; }
.direction-copy h3 { margin: 0; font-size: clamp(31px, 3vw, 46px); line-height: 1.08; letter-spacing: -.04em; font-weight: 400; }
.direction-copy > p:not(.direction-index) { margin: 22px 0 0; color: var(--muted); line-height: 1.75; font-size: 14px; }
.direction-copy ul { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.direction-copy li { position: relative; padding: 11px 0 11px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: #38433e; }
.direction-copy li::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

/* ---------- Projects: before / after carousel ---------- */
.projects { background: var(--cream); }
.works-track {
  position: relative;
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.works-track::-webkit-scrollbar { display: none; }
.work-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; display: grid; grid-template-columns: 1.45fr .55fr; gap: 56px; align-items: center; }

.compare {
  --p: 50;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: #e6e1d6;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  isolation: isolate;
}
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.compare .compare-before { z-index: 1; clip-path: inset(0 calc(100% - var(--p) * 1%) 0 0); }
.compare-handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: calc(var(--p) * 1%); width: 2px; margin-left: -1px; background: rgba(255,255,255,.95); box-shadow: 0 0 22px color-mix(in srgb, var(--forest-deep) 25%, transparent); pointer-events: none; }
.compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--forest);
  box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--forest-deep) 50%, transparent);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease-out), background-color .3s ease, color .3s ease;
}
.compare-knob .i { width: 22px; height: 22px; }
.compare:hover .compare-knob, .compare.is-dragging .compare-knob { background: var(--forest); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.compare:has(.compare-range:focus-visible) .compare-knob { outline: 2px solid #fff; outline-offset: 4px; background: var(--forest); color: #fff; }
.compare-range { position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.compare-tag {
  position: absolute;
  z-index: 3;
  top: 20px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity .2s ease;
}
.compare-tag-before { left: 20px; background: rgba(255,255,255,.88); color: var(--forest); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: clamp(0, calc((var(--p) - 10) / 12), 1); }
.compare-tag-after { right: 20px; background: var(--forest); color: #fff; opacity: clamp(0, calc((90 - var(--p)) / 12), 1); }

.work-info { max-width: 440px; }
.work-meta { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.work-info h3 { margin: 0; font-size: clamp(30px, 2.8vw, 42px); line-height: 1.08; letter-spacing: -.04em; font-weight: 400; }
.work-info > p:not(.work-meta) { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.work-facts { margin: 26px 0 0; border-top: 1px solid var(--line); }
.work-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.work-facts dt { color: var(--muted); }
.work-facts dd { margin: 0; font-weight: 700; text-align: right; color: var(--ink); }

.works-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.works-progress { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 22px; }
.works-count { margin: 0; font-family: var(--font-accent); font-size: 22px; line-height: 1; color: var(--sage-deep); white-space: nowrap; }
.works-count b { font-weight: 400; color: var(--ink); }
.works-bar { position: relative; flex: 1; height: 2px; overflow: hidden; border-radius: 2px; background: var(--line); }
.works-bar i { position: absolute; inset: 0 auto 0 0; width: var(--progress, 33.33%); background: var(--forest); transition: width .5s var(--ease-out); }
.works-arrows { display: flex; gap: 10px; }
.works-arrow {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--forest) 25%, transparent);
  border-radius: var(--chip-radius);
  background: transparent;
  color: var(--forest);
  transition: background-color .3s ease, border-color .3s ease, color .3s ease, opacity .3s ease;
}
.works-arrow .i { width: 20px; height: 20px; transition: transform .35s var(--ease-out); }
.works-arrow:hover:not(:disabled) { background: var(--btn2-bg, var(--forest)); border-color: var(--btn2-bg, var(--forest)); color: var(--btn2-fg, #fff); }
.works-prev:hover:not(:disabled) .i { transform: translateX(-3px); }
.works-next:hover:not(:disabled) .i { transform: translateX(3px); }
.works-arrow:disabled { opacity: .32; cursor: default; }
.works.is-single .works-nav { display: none; }

.process { background: var(--forest); color: #fff; }
.process-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: end; margin-bottom: 62px; }
.process-head p:last-child { max-width: 520px; margin: 0 0 4px; color: rgba(255,255,255,.66); line-height: 1.75; font-size: 14px; }
.process-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--white-line); }
.process-list li { display: grid; grid-template-columns: 100px 1fr; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--white-line); transition: background .25s ease, padding-inline .25s ease; }
.process-list li:hover { padding-inline: 14px; background: rgba(255,255,255,.025); }
.process-list > li > span { font-family: var(--font-accent); font-size: 30px; color: var(--on-dark); }
.process-list div { display: grid; grid-template-columns: .65fr 1fr; gap: 40px; align-items: baseline; }
.process-list h3 { margin: 0; font-size: 23px; font-weight: 400; letter-spacing: -.025em; }
.process-list p { margin: 0; max-width: 560px; color: rgba(255,255,255,.62); font-size: 13px; line-height: 1.7; }

.principles { background: var(--mint); }
.principles-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; }
.principles-title { position: sticky; top: 120px; align-self: start; }
.principles-title h2 { font-size: calc(clamp(40px, 4.8vw, 67px) * var(--h-scale)); }
.principles-title h2 em { color: var(--sage-deep); }
.principles-list { border-top: 1px solid var(--line); }
.principles-list article { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.principles-list article > span { font-family: var(--font-accent); color: var(--sage-deep); font-size: 24px; }
.principles-list h3 { margin: 0 0 7px; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.principles-list p { margin: 0; max-width: 560px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; align-items: start; }
.faq-title { position: sticky; top: 120px; }
.faq-title h2 { font-size: calc(clamp(40px, 4.6vw, 64px) * var(--h-scale)); }
.text-link { text-transform: var(--btn-case); display: inline-flex; align-items: center; gap: 14px; margin-top: 26px; padding: 4px 4px 4px 0; font-size: 13px; font-weight: 700; color: var(--forest); transition: gap .35s var(--ease-out); }
.text-link .link-chip { border-color: color-mix(in srgb, var(--forest) 30%, transparent); }
.text-link .link-chip .i { transform: rotate(45deg); }
.text-link:hover { gap: 18px; }
.text-link:hover .link-chip { background: var(--btn2-bg, var(--forest)); border-color: var(--btn2-bg, var(--forest)); color: var(--btn2-fg, #fff); }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 0; font-size: 20px; letter-spacing: -.025em; transition: color .2s ease; }
.accordion summary:hover { color: var(--forest-2); }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { position: relative; width: 36px; height: 36px; flex: 0 0 36px; border: 1px solid var(--line); border-radius: var(--chip-radius); transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.accordion summary:hover span { border-color: color-mix(in srgb, var(--forest) 35%, transparent); }
.accordion details[open] summary span { background: var(--forest); border-color: var(--forest); color: #fff; }
.accordion summary span::before, .accordion summary span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; background: currentColor; transform: translate(-50%,-50%); }
.accordion summary span::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform .25s ease; }
.accordion details[open] summary span::after { transform: translate(-50%,-50%) rotate(0); }
.accordion details > div { overflow: hidden; }
.accordion details p { margin: -6px 0 26px; max-width: 720px; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ---------- Contact & form ---------- */
.contact { position: relative; isolation: isolate; color: #fff; background: var(--forest-deep); padding: calc(120px * var(--space)) 0; overflow: hidden; }
.contact-backdrop { position: absolute; z-index: -2; inset: 0; opacity: .16; }
.contact-backdrop img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(.8); }
.contact::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(14,43,32,.98) 0%, rgba(14,43,32,.93) 45%, rgba(14,43,32,.77) 100%); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.contact h2 { font-size: calc(clamp(52px, 6vw, 82px) * var(--h-scale)); line-height: .98; }
.contact-copy > p:not(.eyebrow) { max-width: 490px; margin: 24px 0 0; color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.7; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.contact-links a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px 0 15px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--btn-radius);
  background: rgba(255,255,255,.04);
  font-size: 13px;
  font-weight: 700;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s var(--ease-out);
}
.contact-links a .i { color: var(--on-dark); transition: color .3s ease; }
.contact-links a:hover { background: #f6f4ed; border-color: #f6f4ed; color: var(--forest); transform: translateY(-2px); }
.contact-links a:hover .i { color: var(--forest); }

.lead-form { position: relative; padding: 34px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form label:not(.check-field) { display: grid; gap: 7px; margin-bottom: 18px; }
.lead-form label > span { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.lead-form :is(input:not([type="checkbox"]), textarea, select) { width: 100%; min-height: 52px; color: #fff; background-color: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.17); border-radius: 12px; outline: 0; padding: 14px 15px; transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.lead-form textarea { resize: vertical; min-height: 118px; }
.lead-form select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, rgba(255,255,255,.6) 50%), linear-gradient(135deg, rgba(255,255,255,.6) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.lead-form select:invalid { color: rgba(255,255,255,.42); }
.lead-form select option { color: #111; }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(255,255,255,.36); }
.lead-form :is(input:not([type="checkbox"]), textarea, select):hover { border-color: rgba(255,255,255,.3); }
.lead-form :is(input:not([type="checkbox"]), textarea, select):focus { border-color: rgba(207,224,198,.75); background-color: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(207,224,198,.12); }
.lead-form :is(input, textarea, select):focus-visible { outline: none; }
.field-error { display: none; font-size: 12px; line-height: 1.4; color: #ffc4b4; }
.is-invalid .field-error { display: block; }
.is-invalid :is(input:not([type="checkbox"]), textarea, select) { border-color: rgba(255,170,150,.8); }
.is-invalid .check-field input { border-color: rgba(255,170,150,.9); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 4px 0 22px; }
.consent .field-error { margin: 6px 0 0 32px; }
.check-field { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check-field input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  flex: 0 0 auto;
  border: 1.5px solid rgba(255,255,255,.42);
  border-radius: 6px;
  background: rgba(255,255,255,.05) center / 14px no-repeat;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.check-field input:hover { border-color: rgba(255,255,255,.75); }
.check-field input:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(207,224,198,.25); border-color: var(--on-dark); }
.check-field input:checked {
  background-color: var(--on-dark);
  border-color: var(--on-dark);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173126' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.lead-form .check-field > span { font-size: 13px; line-height: 1.5; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,.82); }
.check-field a, .form-note a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.check-field a:hover, .form-note a:hover { text-decoration-color: #fff; }
.form-note { margin: 14px 0 0; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.56); }
.form-status { min-height: 0; margin: 10px 0 0; font-size: 13px; color: var(--on-dark); }
.form-status:empty { margin: 0; }
.form-status.error { color: #ffc4b4; }

.form-success {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 34px;
  text-align: center;
  border-radius: inherit;
  opacity: 0;
  visibility: hidden;
  transform: scale(.98);
  transition: opacity .4s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
}
.lead-form.is-sent .form-success { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.lead-form.is-sent > :not(.form-success) { visibility: hidden; }
.form-success-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--on-dark); color: var(--forest); }
.form-success-icon .i { width: 28px; height: 28px; stroke-width: 2.2; }
.form-success .form-success-title { margin: 6px 0 0; color: #fff; font-size: 30px; font-weight: 400; letter-spacing: -.035em; outline: none; }
.form-success p { max-width: 380px; margin: 0 0 8px; color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.65; }

/* ---------- Footer ---------- */
.footer { background: #0f1f19; color: rgba(255,255,255,.78); padding: 42px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.brand-footer { color: #fff; }
.footer-nav { display: flex; gap: 24px; font-size: 12px; }
.footer-nav a { opacity: .62; transition: opacity .2s ease; }
.footer-nav a:hover { opacity: 1; }
.to-top { justify-self: end; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--chip-radius); color: #fff; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.to-top .i { transition: transform .4s var(--ease-out); }
.to-top:hover { background: var(--mint); border-color: var(--mint); color: var(--forest); }
.to-top:hover .i { transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px 40px; margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.5); }
.footer-entity { display: grid; gap: 4px; }
.footer-docs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 24px; }
.footer-docs a { color: rgba(255,255,255,.62); transition: color .2s ease; }
.footer-docs a:hover, .footer-docs a[aria-current="page"] { color: #fff; }

/* ---------- Cookie notice ---------- */
.cookie {
  position: fixed;
  z-index: 400;
  right: 22px;
  bottom: 22px;
  width: min(420px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 16px 16px 20px;
  border: 1px solid rgba(23, 33, 29, .08);
  border-radius: 20px;
  background: rgba(251, 250, 246, .96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--ink);
  box-shadow: 0 24px 60px -20px color-mix(in srgb, var(--forest-deep) 45%, transparent);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .4s ease, transform .5s var(--ease-out);
}
.cookie.show { opacity: 1; transform: none; }
.cookie p { margin: 0; font-size: 12px; line-height: 1.55; color: #4a544f; }
.cookie a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--forest) 35%, transparent); }
.cookie a:hover { text-decoration-color: var(--forest); }
.cookie .btn { flex: 0 0 auto; --btn-bg: var(--btn2-bg, var(--forest)); --btn-fg: var(--btn2-fg, #fff); --chip-bg: rgba(255,255,255,.14); --chip-fg: #fff; box-shadow: none; }
.cookie .btn:hover { --btn-bg: var(--btn2-hover, var(--forest-2)); --chip-bg: var(--mint); --chip-fg: var(--forest); }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Legal pages ---------- */
.legal-hero { position: relative; isolation: isolate; overflow: hidden; color: #f8fbf8; background: var(--forest-deep); padding: 168px 0 76px; }
.page-lead { max-width: 640px; margin: 24px 0 0; color: rgba(255, 255, 255, .74); font-size: 17px; line-height: 1.7; white-space: pre-line; }
.page-hero { padding-bottom: 92px; }
.legal-hero h1 { max-width: 920px; margin: 0; font-size: clamp(38px, 5vw, 70px); line-height: 1.02; letter-spacing: -.045em; font-weight: 400; }
.legal-meta { margin: 22px 0 0; color: rgba(255,255,255,.64); font-size: 14px; }
.doc-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 38px; }
.doc-tabs a { min-height: 42px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--btn-radius); font-size: 12px; font-weight: 700; color: rgba(255,255,255,.8); transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.doc-tabs a:hover { border-color: rgba(255,255,255,.55); color: #fff; }
.doc-tabs a[aria-current="page"] { background: var(--mint); border-color: var(--mint); color: var(--forest-deep); }
.legal-body { padding: 84px 0 120px; background: var(--paper); }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(40px, 7vw, 100px); align-items: start; }
.legal-toc { position: sticky; top: 104px; }
.legal-toc-title { margin: 0 0 14px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--sage-deep); }
.legal-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.legal-toc a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.4; color: var(--muted); transition: color .2s ease, padding-left .3s var(--ease-out); }
.legal-toc a:hover { color: var(--forest); }
.legal-toc a.active { color: var(--forest); padding-left: 8px; font-weight: 700; }
.legal-doc { max-width: 780px; font-size: 16px; line-height: 1.75; color: #2b3530; }
.legal-doc section { scroll-margin-top: 24px; }
.legal-doc section + section { margin-top: 52px; padding-top: 44px; border-top: 1px solid var(--line); }
.legal-doc h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; font-size: clamp(24px, 2.4vw, 31px); line-height: 1.2; letter-spacing: -.03em; font-weight: 500; color: var(--ink); }
.legal-doc h2 > span { flex: 0 0 auto; font-family: var(--font-accent); font-weight: 400; color: var(--sage-deep); }
.legal-doc h3 { margin: 28px 0 10px; font-size: 18px; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }
.legal-doc p { margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 16px; padding: 0; list-style: none; }
.legal-doc li { position: relative; margin-bottom: 8px; padding-left: 22px; }
.legal-doc li::before { content: ""; position: absolute; left: 3px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); }
.legal-doc a { color: var(--forest); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--forest) 35%, transparent); text-underline-offset: 3px; transition: text-decoration-color .2s ease; }
.legal-doc a:hover { text-decoration-color: var(--forest); }
.legal-lead { font-size: 18px; line-height: 1.7; color: var(--ink); }
.legal-card { margin: 8px 0 18px; padding: 8px 26px; border-radius: 20px; background: #eef2ea; border: 1px solid color-mix(in srgb, var(--forest) 8%, transparent); }
.legal-card dl { margin: 0; }
.legal-card dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.legal-card dl > div:last-child { border-bottom: 0; }
.legal-card dt { font-size: 13px; color: var(--muted); }
.legal-card dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.purpose { margin: 18px 0; padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.purpose h3 { margin-top: 0; }
.purpose dl { margin: 0; }
.purpose dl > div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.purpose dt { color: var(--muted); font-size: 13px; }
.purpose dd { margin: 0; }
.legal-note { margin-top: 18px; padding: 16px 20px; border-left: 2px solid var(--sage); background: #f1f4ee; border-radius: 0 14px 14px 0; font-size: 15px; }
.legal-end { margin-top: 56px; padding: 28px; border-radius: 22px; background: var(--forest); color: #fff; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; --focus: var(--on-dark); }
.legal-end p { margin: 0; max-width: 460px; color: rgba(255,255,255,.76); font-size: 15px; line-height: 1.6; }
.ph { padding: 0 .25em; border-radius: 4px; background: rgba(214, 170, 60, .2); box-shadow: inset 0 -1px 0 #b58a1d; color: #6b5210; font-weight: 600; }
.legal-card .ph, .purpose .ph { font-weight: 600; }

/* ---------- 404 ---------- */
.error-page { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center; color: #f8fbf8; background: var(--forest-deep); padding: 140px 0 80px; }
.error-code { margin: 0 0 18px; font-family: var(--font-accent); font-size: clamp(96px, 16vw, 200px); line-height: .9; color: var(--on-dark); letter-spacing: -.04em; }
.error-page h1 { margin: 0; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; letter-spacing: -.045em; font-weight: 400; }
.error-page p:not(.error-code):not(.eyebrow) { max-width: 520px; margin: 22px 0 34px; color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.65; }

/* ---------- Seasons, events, villages: карточки направлений с фото и подробностями ---------- */
.seasons, .villages { background: var(--paper); }
.events { background: var(--cream); }
.seasons h2 em, .events h2 em, .villages h2 em { color: var(--sage-deep); }

.seasons-cover { margin-bottom: 72px; }
.shots-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.shots-strip .shot { aspect-ratio: 4 / 3; }

.season-tabs { display: grid; grid-template-columns: repeat(var(--tabs, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.season-tab { position: relative; display: grid; gap: 8px; align-content: start; padding: 24px 24px 24px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--muted); text-align: left; transition: color .25s ease; }
.season-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--forest); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
.season-tab:hover, .season-tab[aria-selected="true"] { color: var(--ink); }
.season-tab[aria-selected="true"]::after { transform: scaleX(1); }
.season-tab-no { font-size: 10px; letter-spacing: .14em; font-weight: 700; color: var(--sage-deep); }
.season-tab-name { font-family: var(--font-accent); font-size: clamp(28px, 3.2vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.season-tab-note { max-width: 240px; font-size: 12px; line-height: 1.55; }
/* Без JS вкладок нет: все сезоны идут подряд, у каждого виден свой заголовок */
.seasons:not(.has-tabs) .season-tabs { display: none; }
.season-title { margin: 72px 0 0; font-family: var(--font-accent); font-size: clamp(34px, 4vw, 54px); font-weight: 400; letter-spacing: -.03em; }
.seasons.has-tabs .season-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Лист: фото слева, текст справа (через один — наоборот), как в «Направлениях» */
.sheet { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 5vw, 72px); align-items: start; padding: 72px 0; border-top: 1px solid var(--line); }
.sheet:nth-of-type(even) .sheet-gallery { order: 2; }
.sheet:nth-of-type(even) .sheet-copy { order: 1; }
.season-panel > .sheet:first-of-type { border-top: 0; }
.seasons.has-tabs .season-panel > .sheet:first-of-type { padding-top: 56px; }
.season-panel > .sheet:last-child { padding-bottom: 8px; }
.events .sheet, .villages .sheet { padding: 0; border-top: 0; }

.sheet-gallery { display: grid; gap: 12px; min-width: 0; }
.shot { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--mint); cursor: zoom-in; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.shot:hover img { transform: scale(1.04); }
.sheet-main { aspect-ratio: 4 / 3; }
.sheet-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sheet-thumbs .shot { aspect-ratio: 1; border-radius: 18px; }
.sheet-thumbs.thumbs-2 { grid-template-columns: repeat(2, 1fr); }
.sheet-thumbs.thumbs-2 .shot { aspect-ratio: 4 / 3; }
.sheet-thumbs.thumbs-1 { grid-template-columns: 1fr; }
.sheet-thumbs.thumbs-1 .shot { aspect-ratio: 16 / 7; }
.shots-strip .shot { border-radius: 18px; }
.shot-more { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--forest-deep) 55%, transparent); color: #fff; font-family: var(--font-accent); font-size: 28px; letter-spacing: -.02em; transition: background-color .3s ease; }
.shot:hover .shot-more { background: color-mix(in srgb, var(--forest-deep) 70%, transparent); }
.shot-badge { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--forest); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.sheet-copy { min-width: 0; max-width: 520px; }
.sheet-index { margin: 0 0 22px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.sheet-copy .sheet-title { margin: 0; font-size: clamp(27px, 2.7vw, 40px); line-height: 1.1; letter-spacing: -.04em; font-weight: 400; }
.sheet-short { margin: 20px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.sheet-points { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.sheet-points li { position: relative; padding: 11px 0 11px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: #38433e; }
.sheet-points li::before { content: ""; position: absolute; left: 0; top: 19px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }

.sheet-more { margin-top: 26px; }
.sheet-more summary { text-transform: var(--btn-case); display: inline-flex; align-items: center; gap: 14px; list-style: none; font-size: 13px; font-weight: 700; color: var(--forest); transition: gap .35s var(--ease-out); }
.sheet-more summary::-webkit-details-marker { display: none; }
.sheet-more summary:hover { gap: 18px; }
.more-chip { position: relative; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid color-mix(in srgb, var(--forest) 30%, transparent); border-radius: var(--chip-radius); transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.sheet-more summary:hover .more-chip, .sheet-more[open] .more-chip { background: var(--forest); border-color: var(--forest); color: #fff; }
.more-chip::before, .more-chip::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.more-chip::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s ease; }
.sheet-more[open] .more-chip::after { transform: translate(-50%, -50%) rotate(0); }
.sheet-more-body { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.sheet-lead { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.sheet-blocks { display: grid; gap: 30px; margin-top: 26px; }
.sheet-lead + .sheet-blocks { margin-top: 26px; }
.sheet-block .sheet-block-title { margin: 0 0 12px; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.sheet-block ul, .sheet-block ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sheet-block ol { counter-reset: step; }
.sheet-block li { position: relative; padding: 10px 0 10px 18px; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.6; color: #38433e; }
.sheet-block li::before { content: ""; position: absolute; left: 0; top: 18px; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); }
.sheet-block ol li { padding-left: 32px; counter-increment: step; }
.sheet-block ol li::before { content: counter(step); top: 10px; width: auto; height: auto; border-radius: 0; background: none; font-family: var(--font-accent); font-size: 15px; line-height: 1.6; color: var(--sage-deep); }
.sheet-block li b { font-weight: 700; color: var(--ink); }
.sheet-block p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.sheet-block p + p { margin-top: 12px; }
.sheet-quote { margin: 28px 0 0; padding-left: 18px; border-left: 2px solid color-mix(in srgb, var(--sage) 60%, #fff); font-family: var(--font-accent); font-size: 19px; line-height: 1.45; letter-spacing: -.01em; color: var(--forest); }
.sheet-copy .text-link { margin-top: 30px; }

/* Просмотр фотографии */
.lightbox { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: hidden; --focus: var(--on-dark); }
.lightbox::backdrop { background: rgba(8, 20, 15, .93); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.lightbox-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 72px 88px 88px; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lightbox-btn { position: absolute; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.28); border-radius: var(--chip-radius); background: rgba(255,255,255,.06); color: #fff; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.lightbox-btn:hover { background: var(--mint); border-color: var(--mint); color: var(--forest); }
.lightbox-close { top: 20px; right: 20px; }
.lightbox-prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox-next { right: 20px; top: 50%; margin-top: -24px; }
.lightbox.is-single .lightbox-prev, .lightbox.is-single .lightbox-next, .lightbox.is-single .lightbox-count { display: none; }
.lightbox-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 28px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.8); }
.lightbox-caption, .lightbox-count { margin: 0; }
.lightbox-count { flex: 0 0 auto; font-family: var(--font-accent); font-size: 18px; color: var(--on-dark); }

@media (max-width: 1100px) {
  .sheet { gap: 40px; }
}

@media (max-width: 800px) {
  .seasons-cover { margin-bottom: 52px; }
  .shots-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .season-tabs { grid-template-columns: 1fr 1fr; }
  .season-tab { padding: 20px 16px 20px 0; }
  .sheet { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .sheet:nth-of-type(even) .sheet-gallery, .sheet:nth-of-type(even) .sheet-copy { order: initial; }
  .seasons.has-tabs .season-panel > .sheet:first-of-type { padding-top: 40px; }
  .sheet-copy { max-width: none; }
  .sheet-gallery { gap: 10px; }
  .sheet-thumbs { gap: 10px; }
  .lightbox-stage { padding: 68px 16px 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 14px; margin-top: 0; }
  .lightbox-prev { left: auto; right: 78px; }
  .lightbox-next { right: 20px; }
  .lightbox-bar { padding: 18px 150px 18px 20px; justify-content: flex-start; }
  .lightbox.is-single .lightbox-bar { padding-right: 20px; }
}

@media (max-width: 560px) {
  .season-tab-name { font-size: 30px; }
  .season-tab-note { font-size: 11px; }
  .sheet-copy .sheet-title { font-size: 29px; }
  .shot-more { font-size: 22px; }
  .shot-badge { top: 8px; left: 8px; padding: 5px 8px; font-size: 8px; letter-spacing: .06em; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --container: min(100% - 40px, 960px); }
  .main-nav { gap: 18px; }
  .hero-layout { grid-template-columns: 1fr; gap: 52px; }
  .hero { padding-top: 140px; }
  .hero-copy { max-width: 760px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card { min-height: 380px; }
  .scene-copy { width: min(560px, 52vw); }
  .direction-card, .direction-card-reverse { gap: 38px; }
  .work-slide { grid-template-columns: 1.3fr .7fr; gap: 36px; }
  .principles-grid, .faq-grid, .contact-grid { gap: 56px; }
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { display: none; }
  .footer-bottom { flex-direction: column; }
  .footer-docs { justify-content: flex-start; }
}

@media (max-width: 960px) {
  .brand { min-width: 0; }
  .header-contact { white-space: nowrap; }
  .nav-toggle { display: block; }
  .main-nav { position: absolute; top: calc(100% - 6px); left: 16px; right: 16px; display: grid; justify-content: stretch; gap: 0; padding: 12px; color: var(--ink); background: rgba(251,250,246,.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 18px; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; visibility: hidden; box-shadow: 0 18px 50px rgba(14,30,23,.12); --focus: #3f6b52; }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .main-nav a { padding: 14px 10px; border-bottom: 1px solid var(--line); font-size: 15px; opacity: 1; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
}

@media (max-width: 800px) {
  :root { --container: min(100% - 32px, 720px); --radius: 22px; }
  html { scroll-padding-top: 70px; }
  .site-header { height: 74px; }
  .site-header.scrolled { height: 66px; }
  .brand-copy small { display: none; }
  .header-contact { display: none; }
  .hero { min-height: auto; padding: 118px 0 78px; }
  .hero h1 { font-size: calc(clamp(44px, 12vw, 72px) * var(--h-scale)); }
  .hero-lead { font-size: 15px; }
  .hero-meta { margin-top: 36px; }
  .hero-visual { border-radius: 2px 2px 90px 2px; }
  .section { padding: calc(88px * var(--space)) 0; }
  .section-head, .process-head { grid-template-columns: 1fr; gap: 28px; margin-bottom: 42px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card { min-height: 360px; padding: 22px; }
  .service-icon { margin-top: 32px; }
  .scene-scroll { height: auto; }
  .scene-sticky { position: relative; height: auto; min-height: 880px; padding: 88px 0 0; display: flex; flex-direction: column; }
  .scene-media { position: relative; order: 2; height: 54vw; min-height: 360px; margin-top: 50px; }
  .scene-frame { inset: 0; width: auto; aspect-ratio: auto; translate: none; transform: none !important; }
  .scene-wash { background: linear-gradient(to bottom, color-mix(in srgb, var(--forest-deep) 18%, transparent), color-mix(in srgb, var(--forest-deep) 4%, transparent)); }
  .scene-overlay { height: auto; order: 1; }
  .scene-copy { width: 100%; padding-top: 0; }
  .scene-description { min-height: 0; }
  .scene-marker { display: none; }
  .direction-card, .direction-card-reverse { grid-template-columns: 1fr; gap: 28px; }
  .direction-card-reverse .direction-media, .direction-card-reverse .direction-copy { order: initial; }
  .direction-copy { max-width: 100%; }
  .direction-stack { gap: 64px; }
  .works-track { gap: 24px; }
  .work-slide { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .work-info { max-width: none; }
  .works-nav { margin-top: 32px; }
  .process-list li { grid-template-columns: 60px 1fr; }
  .process-list div { grid-template-columns: 1fr; gap: 10px; }
  .principles-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .principles-title, .faq-title { position: static; }
  .contact { padding: calc(88px * var(--space)) 0; }
  .footer-top { grid-template-columns: 1fr auto; }
  .footer-nav { display: none; }
  .legal-hero { padding: 132px 0 56px; }
  .legal-body { padding: 56px 0 88px; }
  .legal-card dl > div, .purpose dl > div { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 560px) {
  :root { --container: calc(100% - 28px); }
  body { font-size: 15px; }
  .brand-copy strong { font-size: 13px; }
  .hero { padding-top: 104px; }
  .hero h1 { font-size: 45px; }
  .hero-lead { margin-top: 22px; }
  .hero-cta { display: grid; }
  .btn { width: 100%; }
  .hero-meta { max-width: none; }
  .hero-meta span { font-size: 11px; }
  .hero-visual { border-radius: 2px 2px 64px 2px; }
  .section { padding: calc(74px * var(--space)) 0; }
  .section h2 { font-size: 39px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 330px; }
  .scene-sticky { padding-top: 74px; min-height: 780px; }
  .scene-copy h2 { font-size: 45px; }
  .scene-media { min-height: 300px; height: 76vw; }
  .scene-steps { margin-top: 22px; }
  .direction-media img { aspect-ratio: 1.15 / 1; }
  .direction-copy h3 { font-size: 34px; }
  .compare { aspect-ratio: 4 / 3; }
  .compare-knob { width: 46px; height: 46px; }
  .compare-tag { top: 14px; }
  .compare-tag-before { left: 14px; }
  .compare-tag-after { right: 14px; }
  .work-info h3 { font-size: 32px; }
  .works-progress { gap: 14px; }
  .works-arrow { width: 50px; height: 50px; }
  .process-list li { grid-template-columns: 46px 1fr; padding: 24px 0; }
  .process-list > li > span { font-size: 24px; }
  .principles-grid { gap: 36px; }
  .principles-title h2, .faq-title h2 { font-size: 39px; }
  .principles-list article { grid-template-columns: 44px 1fr; }
  .accordion summary { font-size: 18px; }
  .contact h2 { font-size: 47px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lead-form { padding: 22px; }
  .form-success { padding: 22px; }
  .cookie { left: 16px; right: 16px; bottom: 16px; width: auto; flex-direction: column; align-items: stretch; gap: 12px; }
  .legal-hero h1 { font-size: 36px; }
  .legal-doc { font-size: 15px; }
  .legal-card { padding: 4px 18px; }
  .purpose { padding: 20px; }
  .legal-end { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scene-frame { transform: none !important; }
  .btn[aria-busy="true"] .btn-chip::after { animation-duration: 1.4s !important; animation-iteration-count: infinite !important; }
}

/* ---------- Блоки редактора ---------- */
.section.bg-paper { background: var(--paper); color: var(--ink); }
.section.bg-cream { background: var(--cream); color: var(--ink); }
.section.bg-mint { background: var(--mint); color: var(--ink); }
.section.bg-dark { background: var(--forest); color: #fff; }
.bg-dark .section-intro { color: rgba(255,255,255,.7); }
.bg-dark h2 em { color: var(--on-dark); }
.bg-dark .text-link { color: #fff; }
.bg-dark .text-link .link-chip { border-color: rgba(255,255,255,.4); }
.bg-dark .text-link:hover .link-chip { background: #fff; border-color: #fff; color: var(--forest); }

.sheets { background: var(--paper); }
.sheets h2 em { color: var(--sage-deep); }
.sheets .sheet { padding: 0; border-top: 0; }
.sheets .sheet + .sheet { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }

.text-block { padding: calc(96px * var(--space)) 0; }
.text-block .section-head { margin-bottom: 40px; }
.text-grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.text-grid.has-image { grid-template-columns: 1.1fr .9fr; }
.text-grid.has-image.img-left .text-media { order: -1; }
.text-body { max-width: 760px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.text-body > :first-child { margin-top: 0; }
.text-body p { margin: 0 0 1.1em; }
.text-body h3, .text-body h4 { margin: 1.6em 0 .6em; color: var(--ink); font-weight: 500; letter-spacing: -.02em; line-height: 1.2; }
.text-body h3 { font-size: 26px; }
.text-body h4 { font-size: 20px; }
.text-body ul, .text-body ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.text-body li { margin: .35em 0; padding-left: .2em; }
.text-body li::marker { color: var(--sage-deep); }
.text-body a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--forest) 35%, transparent); }
.text-body a:hover { text-decoration-color: currentColor; }
.text-body b, .text-body strong { color: var(--ink); font-weight: 700; }
.text-body blockquote { margin: 1.4em 0; padding-left: 20px; border-left: 2px solid color-mix(in srgb, var(--sage) 60%, #fff); font-family: var(--font-accent); font-size: 21px; line-height: 1.45; color: var(--ink); }
.bg-dark .text-body { color: rgba(255,255,255,.78); }
.bg-dark .text-body h3, .bg-dark .text-body h4, .bg-dark .text-body b, .bg-dark .text-body strong, .bg-dark .text-body blockquote { color: #fff; }
.bg-dark .text-body a { color: #fff; text-decoration-color: rgba(255,255,255,.4); }
.text-media { margin: 0; }
.text-media img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.image-block { padding: calc(72px * var(--space)) 0; }
.image-figure { margin: 0; }
.image-figure img { width: 100%; height: auto; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.image-figure.is-orig img { aspect-ratio: auto; height: auto; }
.image-figure figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.bg-dark .image-figure figcaption { color: rgba(255,255,255,.6); }

.gallery-block .section-head { margin-bottom: 40px; }
.gallery-grid { display: grid; gap: 12px; }
.gallery-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-grid .shot { aspect-ratio: 4 / 3; border-radius: 18px; }

.video-block .section-head { margin-bottom: 40px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: #0d1a15; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.banner { padding: calc(88px * var(--space)) 0; background: var(--forest); color: #fff; }
.banner.bg-paper, .banner.bg-cream, .banner.bg-mint { color: var(--ink); }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.banner h2 { max-width: 760px; font-size: calc(clamp(32px, 4vw, 56px) * var(--h-scale)); line-height: 1.05; }
.banner p { max-width: 560px; margin: 18px 0 0; color: rgba(255,255,255,.72); line-height: 1.7; }
.banner.bg-paper p, .banner.bg-cream p, .banner.bg-mint p { color: var(--muted); }
.banner .btn { flex: none; width: auto; }

.spacer { display: flex; align-items: center; }
.spacer-sm { min-height: 32px; }
.spacer-md { min-height: 72px; }
.spacer-lg { min-height: 128px; }
.spacer .container { width: var(--container); }
.spacer hr { margin: 0; border: 0; border-top: 1px solid var(--line); }
.custom-html { padding: 48px 0; }
.empty-note { margin: 0; padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); font-size: 14px; }

@media (min-width: 1101px) {
  .service-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .text-grid.has-image { grid-template-columns: 1fr; }
  .text-grid.has-image.img-left .text-media { order: 0; }
  .banner-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 800px) {
  .text-block { padding: calc(64px * var(--space)) 0; }
  .gallery-grid.cols-3, .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { gap: 10px; }
  .banner { padding: calc(64px * var(--space)) 0; }
}
@media (max-width: 560px) {
  .gallery-grid.cols-2 { grid-template-columns: 1fr; }
}

/* ---------- Блоки для бизнеса ---------- */
.pricing .section-head, .reviews .section-head, .team .section-head, .timeline-block .section-head, .map-block .section-head { margin-bottom: 48px; }

.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 20px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-card.is-featured { background: var(--forest); border-color: var(--forest); color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45); }
.price-card h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.price-value { margin: 0; display: grid; gap: 6px; }
.price-value b { font-family: var(--font-accent); font-size: clamp(32px, 3.2vw, 44px); font-weight: 400; letter-spacing: -.03em; line-height: 1.05; }
.price-value span { font-size: 13px; color: var(--muted); }
.price-card ul { flex: 1; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.price-card li { position: relative; padding: 11px 0 11px 24px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 10px; height: 5px; border-left: 2px solid var(--sage-deep); border-bottom: 2px solid var(--sage-deep); transform: rotate(-45deg); }
.price-card.is-featured .price-value span { color: rgba(255, 255, 255, .66); }
.price-card.is-featured ul, .price-card.is-featured li { border-color: var(--white-line); }
.price-card.is-featured li::before { border-color: var(--on-dark); }
.price-card .btn { width: 100%; }
.bg-dark .price-card:not(.is-featured) { color: var(--ink); }

.review-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.review-card { display: flex; flex-direction: column; gap: 26px; margin: 0; padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.review-card blockquote { margin: 0; }
.review-card blockquote p { margin: 0; font-family: var(--font-accent); font-size: 19px; line-height: 1.55; letter-spacing: -.01em; }
.review-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.review-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.review-card figcaption b { display: block; font-size: 14px; }
.review-card figcaption small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

.team-grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.team-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--mint); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { margin: 18px 0 0; font-size: 21px; font-weight: 500; letter-spacing: -.02em; }
.team-role { margin: 6px 0 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); }
.team-card p:not(.team-role) { margin: 12px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

.stats { padding: calc(88px * var(--space)) 0; }
.stats .section-head { margin-bottom: 36px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 8px 0; display: grid; gap: 8px; align-content: start; }
.stat b { font-family: var(--font-accent); font-weight: 400; font-size: clamp(46px, 6vw, 84px); line-height: 1; letter-spacing: -.04em; color: var(--sage-deep); }
.stat span { font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 220px; }
.bg-dark .stats-grid { border-color: var(--white-line); }
.bg-dark .stat b { color: var(--on-dark); }
.bg-dark .stat span { color: rgba(255, 255, 255, .7); }

.logos { padding: calc(80px * var(--space)) 0; }
.logos .section-head { margin-bottom: 36px; }
.logos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 12px; }
.logo-item { display: grid; place-items: center; height: 96px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); background: #fff; transition: border-color .25s ease; }
a.logo-item:hover { border-color: var(--sage-deep); }
.logo-item img { max-width: 100%; max-height: 56px; width: auto; height: auto; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s ease, opacity .3s ease; }
.logo-item:hover img { filter: none; opacity: 1; }

.map-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.map-grid.map-left { grid-template-columns: 1.2fr .8fr; }
.map-grid.map-left .map-info { order: 2; }
.map-info dl { margin: 0; border-top: 1px solid var(--line); }
.map-info dl > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.map-info dt { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.map-info dd { margin: 6px 0 0; font-size: 16px; line-height: 1.5; }
.map-frame { position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; background: var(--mint); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-frame .empty-note { position: absolute; inset: 0; display: grid; place-items: center; border: 0; }

.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.tl-date { font-family: var(--font-accent); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; color: var(--sage-deep); }
.timeline h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.timeline p { margin: 10px 0 0; max-width: 620px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.bg-dark .timeline, .bg-dark .timeline li { border-color: var(--white-line); }
.bg-dark .tl-date { color: var(--on-dark); }
.bg-dark .timeline p { color: rgba(255, 255, 255, .7); }

.messengers { padding: calc(88px * var(--space)) 0; background: var(--forest); color: #fff; }
.messengers.bg-paper, .messengers.bg-cream, .messengers.bg-mint { color: var(--ink); }
.messengers-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.messengers h2 { max-width: 640px; font-size: calc(clamp(30px, 3.6vw, 50px) * var(--h-scale)); line-height: 1.05; }
.messengers p { margin: 16px 0 0; max-width: 520px; color: rgba(255, 255, 255, .72); line-height: 1.7; }
.messengers.bg-paper p, .messengers.bg-cream p, .messengers.bg-mint p { color: var(--muted); }
.messenger-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.messenger { text-transform: var(--btn-case); display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px 14px 18px; border-radius: var(--btn-radius); border: 1px solid rgba(255, 255, 255, .28); font-size: 14px; font-weight: 700; transition: background .25s ease, color .25s ease, border-color .25s ease; }
.messenger span { display: grid; line-height: 1.2; }
.messenger small { font-size: 11px; font-weight: 400; opacity: .72; }
.messenger:hover { background: #fff; color: var(--forest); border-color: #fff; }
.messengers.bg-paper .messenger, .messengers.bg-cream .messenger, .messengers.bg-mint .messenger { border-color: var(--line); background: #fff; }
.messengers.bg-paper .messenger:hover, .messengers.bg-cream .messenger:hover, .messengers.bg-mint .messenger:hover { background: var(--forest); color: #fff; border-color: var(--forest); }

@media (max-width: 960px) {
  .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-grid, .map-grid.map-left { grid-template-columns: 1fr; }
  .map-grid.map-left .map-info { order: 0; }
  .map-frame { min-height: 320px; }
  .messengers-inner { grid-template-columns: 1fr; }
  .messenger-links { justify-content: flex-start; }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-card { padding: 26px; }
  .timeline li { grid-template-columns: 1fr; gap: 8px; padding: 22px 0; }
  .stats, .logos, .messengers { padding: calc(64px * var(--space)) 0; }
}

/* ---------- Настройки блоков и подвал ---------- */
.section.pt-none { padding-top: 0; }
.section.pt-sm { padding-top: 48px; }
.section.pt-lg { padding-top: 180px; }
.section.pb-none { padding-bottom: 0; }
.section.pb-sm { padding-bottom: 48px; }
.section.pb-lg { padding-bottom: 180px; }
@media (max-width: 800px) {
  .section.pt-lg { padding-top: 110px; }
  .section.pb-lg { padding-bottom: 110px; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 801px) {
  .hide-desktop { display: none !important; }
}
.footer-extra { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-bottom: 30px; }
.footer-text { margin: 0; max-width: 520px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .62); white-space: pre-line; }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social a { text-transform: var(--btn-case); padding: 8px 14px; border: 1px solid var(--white-line); border-radius: var(--btn-radius); font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .86); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.footer-social a:hover { background: #fff; border-color: #fff; color: var(--forest); }

/* ---------- Меню: подменю, кнопка, телефон ---------- */
.nav-group { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.sub-toggle { position: relative; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: .7; }
.sub-toggle::before { content: ""; position: absolute; left: 6px; top: 6px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; }
.nav-group.open .sub-toggle::before { transform: rotate(-135deg) translate(-2px, -2px); }
.sub-menu { position: absolute; top: calc(100% + 14px); left: -16px; z-index: 5; min-width: 230px; display: grid; gap: 2px; padding: 10px; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 22px 50px -18px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sub-menu a { padding: 9px 12px; border-radius: 10px; font-size: 13px; opacity: 1; white-space: nowrap; }
.sub-menu a::after { display: none; }
.sub-menu a:hover { background: var(--mint); }
.nav-group:hover .sub-menu, .nav-group:focus-within .sub-menu, .nav-group.open .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav a.nav-btn { padding: 8px 16px; border: 1px solid currentColor; border-radius: var(--btn-radius); font-weight: 700; opacity: 1; }
.main-nav a.nav-btn::after { display: none; }
.main-nav a.nav-btn:hover { background: #fff; border-color: #fff; color: var(--forest); }
.header-phone { font-size: 13px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; opacity: .92; }
.header-phone:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.site-header.header-static { position: absolute; }
.site-header.header-landing .header-inner { justify-content: space-between; }
@media (max-width: 1060px) { .header-phone { display: none; } .header-landing .header-phone { display: inline; } }
@media (max-width: 960px) {
  .nav-group { display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .sub-menu { position: static; grid-column: 1 / -1; min-width: 0; padding: 0 0 6px 14px; background: transparent; color: inherit; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-group.open .sub-menu { display: grid; }
  .sub-menu a:hover { background: transparent; }
  .sub-toggle { width: 32px; height: 32px; }
  .sub-toggle::before { left: 11px; top: 10px; }
}

@media print {
  .site-header, .footer, .cookie, .legal-toc, .doc-tabs, .legal-end, .skip-link { display: none !important; }
  .legal-hero { padding: 0 0 20px; color: #000; background: none; }
  .legal-hero::before, .legal-hero .hero-grid { display: none; }
  .legal-meta { color: #333; }
  .legal-layout { display: block; }
  .legal-body { padding: 0; }
  .legal-doc { max-width: none; font-size: 11pt; }
}


/* ---------- Блок «Участок оживает при прокрутке» (alive) ---------- */
.alive-section {
  --alive-progress: 0;
  position: relative;
  background: #10261e;
  color: #fff;
  isolation: isolate;
}
.alive-scroll { height: 360vh; position: relative; }
.alive-sticky { position: sticky; top: 0; height: 100vh; min-height: 620px; overflow: hidden; }
.alive-media { position: absolute; inset: 0; overflow: hidden; background: #ebe7dd; touch-action: pan-y; }
.alive-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; user-select: none; -webkit-user-drag: none; }
.alive-base { z-index: 0; }
.alive-reveal {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  clip-path: polygon(0 0, 0 0, 0 0);
  will-change: clip-path;
  contain: paint;
  transform: translateZ(0);
  backface-visibility: hidden;
}
.alive-after { z-index: 1; }
.alive-shade {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,26,19,.88) 0%, rgba(8,26,19,.70) 29%, rgba(8,26,19,.25) 55%, rgba(8,26,19,.04) 75%);
  pointer-events: none;
}
.alive-overlay-copy { position: relative; z-index: 5; height: 100%; display: flex; align-items: center; pointer-events: none; }

.alive-copy { width: min(560px, 45vw); padding-top: 48px; pointer-events: auto; }
.alive-copy h2 { margin: 0; font-size: clamp(48px, 6vw, 86px); line-height: .98; letter-spacing: -.045em; font-weight: 400; }
.alive-description { max-width: 520px; min-height: 84px; margin: 26px 0 0; color: rgba(255,255,255,.76); line-height: 1.72; font-size: 14px; }
.alive-status { margin-top: 28px; max-width: 420px; }
.alive-status-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.70); }
.alive-status-row strong { font-size: 12px; color: #fff; letter-spacing: .03em; }
.alive-progress { margin-top: 12px; width: 100%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.14); overflow: hidden; }
.alive-progress span { display: block; width: 0%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #d6e2d1, #8db08e); will-change: width; }
.alive-steps { margin-top: 30px; border-top: 1px solid rgba(255,255,255,.18); max-width: 500px; }
.alive-step { width: 100%; display: grid; grid-template-columns: 50px 1fr; grid-template-areas: 'n t' 'n d'; gap: 4px 10px; align-items: start; border: 0; border-bottom: 1px solid rgba(255,255,255,.18); background: transparent; color: rgba(255,255,255,.46); text-align: left; padding: 15px 0; transition: color .2s ease, padding-left .2s ease; cursor: pointer; }
.alive-step span { grid-area: n; font-size: 9px; letter-spacing: .1em; align-self: center; }
.alive-step b { grid-area: t; font-size: 12px; font-weight: 500; }
.alive-step small { grid-area: d; font-size: 11px; line-height: 1.5; color: rgba(255,255,255,.48); }
.alive-step.active { color: #fff; padding-left: 8px; }
.alive-step.active small { color: rgba(255,255,255,.76); }
.alive-legal { margin: 18px 0 0; max-width: 470px; color: rgba(255,255,255,.42); font-size: 9px; line-height: 1.55; text-transform: uppercase; letter-spacing: .06em; }
.alive-badge { position: absolute; z-index: 4; border-radius: 999px; padding: 9px 14px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.28); transition: opacity .16s linear; pointer-events: none; }
.alive-badge-after { top: max(86px, 7vh); left: 4%; background: rgba(225,237,224,.15); color: #f3f7f0; opacity: 0; }
.alive-badge-before { right: 3.8%; bottom: 5.4%; background: rgba(9,25,19,.30); color: rgba(255,255,255,.9); opacity: 1; }
.alive-divider { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.alive-divider line { stroke: rgba(255,255,255,.94); stroke-width: 1.4; vector-effect: non-scaling-stroke; filter: drop-shadow(0 2px 7px rgba(0,0,0,.28)); }
.alive-control { position: absolute; z-index: 7; left: 0; top: 0; transform: translate3d(0,0,0) translate(-50%, -50%); display: grid; justify-items: center; gap: 10px; pointer-events: auto; will-change: transform; }
.alive-handle { width: 52px; height: 52px; border-radius: 50%; background: rgba(250,250,246,.96); border: 1px solid rgba(18,46,34,.16); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(6,18,13,.26); cursor: grab; touch-action: none; }
.alive-handle svg { width: 18px; height: 18px; stroke: #476d54; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.alive-grip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; background: rgba(18,46,34,.84); color: #fff; padding: 8px 12px; font: inherit; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(12px); box-shadow: 0 8px 22px rgba(6,18,13,.22); cursor: grab; touch-action: none; }
.alive-grip:focus-visible { outline: 2px solid rgba(255,255,255,.74); outline-offset: 2px; }
.alive-grip-dot { width: 7px; height: 7px; border-radius: 50%; background: #b7d2b2; box-shadow: 0 0 0 6px rgba(183,210,178,.12); }
.alive-scroll-hint { position: absolute; z-index: 4; right: 4%; top: 50%; display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.72); font-size: 9px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; transition: opacity .25s ease; pointer-events: none; }
.alive-scroll-hint span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; font-size: 13px; }


@media (max-width: 1120px) { .alive-copy { width: min(560px, 52vw); } }

@media (max-width: 980px) {
  .alive-scroll { height: 285vh; }
  .alive-sticky { min-height: 560px; }
  .alive-copy { width: min(520px, 58vw); padding-top: 66px; }
  .alive-copy h2 { font-size: clamp(43px, 7vw, 68px); }
  .alive-description { font-size: 13px; }
  .alive-badge-after { top: 78px; }
  .alive-scroll-hint { display: none; }
  .alive-grip { font-size: 9px; padding: 7px 10px; }
}

@media (max-width: 720px) {
  .alive-scroll { height: 230vh; }
  .alive-sticky { min-height: 540px; }
  .alive-media::after { content: ''; position: absolute; z-index: 2; inset: 0; background: linear-gradient(to bottom, rgba(8,26,19,.68) 0%, rgba(8,26,19,.30) 48%, rgba(8,26,19,.08) 100%); pointer-events: none; }
  .alive-shade { background: linear-gradient(90deg, rgba(8,26,19,.58), rgba(8,26,19,.10) 82%); }
  .alive-overlay-copy { align-items: flex-start; padding-top: 72px; }
  .alive-copy { width: 100%; padding-top: 0; }
  .alive-copy h2 { font-size: 44px; max-width: 390px; }
  .alive-description { max-width: 410px; min-height: 0; margin-top: 18px; font-size: 12px; }
  .alive-status { margin-top: 18px; max-width: 360px; }
  .alive-steps { display: none; }
  .alive-legal { display: none; }
  .alive-badge { font-size: 8px; padding: 7px 10px; }
  .alive-badge-after { top: auto; bottom: 20px; left: 18px; }
  .alive-badge-before { right: 18px; bottom: 20px; }
  .alive-control { gap: 8px; }
  .alive-handle { width: 44px; height: 44px; }
  .alive-handle svg { width: 16px; height: 16px; }
  .alive-grip { padding: 7px 10px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .alive-event,
  .alive-step,
  .alive-option-ui,
  .alive-option-ui::after { transition: none !important; }
  .alive-scroll-hint { display: none; }
  .alive-grip { font-size: 9px; padding: 7px 10px; }
}


/* --- v5: draggable compare + event toggle --- */
.alive-media { user-select: none; -webkit-user-select: none; }
.alive-event { z-index: 2; opacity: 0; transition: opacity .28s ease; }
.alive-media.event-mode .alive-event { opacity: 1; }
.alive-media.event-mode .alive-after { opacity: 0; }
.alive-control.is-scrubbing .alive-handle, .alive-control.is-scrubbing .alive-grip { cursor: grabbing; }
.alive-divider { z-index: 6; }
.alive-copy { position: relative; z-index: 5; }
.alive-option { margin-top: 18px; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; -webkit-user-select: none; max-width: 430px; }
.alive-option input { position: absolute; opacity: 0; pointer-events: none; }
.alive-option-ui { width: 50px; height: 30px; border-radius: 999px; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.12); position: relative; flex: 0 0 auto; transition: background .22s ease, border-color .22s ease; }
.alive-option-ui::after { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.22); transition: transform .22s ease; }
.alive-option-copy { display: grid; gap: 2px; }
.alive-option-copy strong { font-size: 12px; font-weight: 600; color: #fff; letter-spacing: .02em; }
.alive-option-copy small { font-size: 11px; line-height: 1.45; color: rgba(255,255,255,.64); }
.alive-option input:checked + .alive-option-ui { background: rgba(141,176,142,.34); border-color: rgba(196,226,197,.55); }
.alive-option input:checked + .alive-option-ui::after { transform: translateX(20px); }
body.is-alive-scrubbing, body.is-alive-scrubbing * { user-select: none !important; -webkit-user-select: none !important; }
body.is-alive-scrubbing { cursor: grabbing; }
@media (max-width: 900px) { .alive-option { margin-top: 14px; max-width: 360px; } }
@media (max-width: 720px) { .alive-option { max-width: 330px; } .alive-option-copy small { font-size: 10px; } }

.alive-media.is-ready .alive-control { opacity: 1; }


/* --- v9: time-based inertial compare motion --- */
.alive-divider,
.alive-reveal,
.alive-control { backface-visibility: hidden; }
.alive-control { user-select: none; -webkit-user-select: none; }
.alive-grip, .alive-handle { -webkit-tap-highlight-color: transparent; }
.alive-section { background: var(--forest-deep, #10261e); }
.alive-copy h2 { font-weight: var(--h-weight, 400); font-size: calc(clamp(48px, 6vw, 86px) * var(--h-scale, 1)); }
@media (max-width: 980px) { .alive-copy h2 { font-size: calc(clamp(43px, 7vw, 68px) * var(--h-scale, 1)); } }
@media (max-width: 720px) { .alive-copy h2 { font-size: calc(44px * var(--h-scale, 1)); } }
.alive-copy .eyebrow { margin-bottom: 26px; }
.alive-section.no-event .alive-option { display: none; }
.alive-copy { padding-top: 78px; }
@media (min-width: 981px) and (max-height: 900px) {
  .alive-copy { padding-top: 84px; }
  .alive-copy h2 { font-size: calc(clamp(44px, 8vh, 86px) * var(--h-scale, 1)); }
  .alive-copy .eyebrow { margin-bottom: 16px; }
  .alive-description { min-height: 0; margin-top: 16px; }
  .alive-status { margin-top: 16px; }
  .alive-option { margin-top: 12px; }
  .alive-steps { margin-top: 16px; }
  .alive-step { padding: 10px 0; }
  .alive-legal { margin-top: 12px; }
}
@media (max-width: 980px) { .alive-copy { padding-top: 66px; } }
@media (max-width: 720px) { .alive-copy { padding-top: 0; } }

/* ---------- Блок «Направления на фото» (panels → арки) ---------- */
.arches { overflow: hidden; }
.arch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px); }
.arch-card { display: flex; flex-direction: column; min-width: 0; }

.arch-media { position: relative; margin: 10px 10px 0; }
.arch-media::before { content: ''; position: absolute; inset: -9px; border: 1px solid color-mix(in srgb, var(--forest) 26%, transparent); border-radius: 999px 999px 30px 30px; pointer-events: none; transition: inset .7s var(--ease-out), border-color .5s ease; }
.arch-card:hover .arch-media::before, .arch-card:focus-within .arch-media::before { inset: -14px; border-color: color-mix(in srgb, var(--forest) 48%, transparent); }
.arch-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 22px 22px; background: #dfe6dc; }
.arch-photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.001); transition: transform 1.4s var(--ease-out); }
.arch-card:hover .arch-photo img, .arch-card:focus-within .arch-photo img { transform: scale(1.05); }
.arch-icon { position: absolute; left: 50%; bottom: 0; z-index: 1; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 26px -14px rgba(16, 38, 30, .5); transform: translate(-50%, 50%); }
.arch-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.arch-copy { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 50px 6px 0; text-align: center; }
.arch-copy h3 { margin: 0; max-width: 12em; font-family: var(--font-accent); font-weight: 400; font-size: calc(clamp(28px, 2.5vw, 36px) * var(--h-scale, 1)); line-height: 1.1; letter-spacing: -.012em; color: var(--forest); text-wrap: balance; }
.arch-copy p { margin: 14px 0 0; max-width: 34ch; color: var(--muted); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.arch-tags { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.arch-tag { display: inline-block; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: 12.5px; line-height: 1.2; transition: background-color .25s ease, border-color .25s ease, color .25s ease; }
.arch-tag:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.arch-tag:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.arch-cta { margin-top: auto; padding-top: 30px; }
.panel-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.arches.bg-dark .arch-media::before { border-color: rgba(255, 255, 255, .26); }
.arches.bg-dark .arch-card:hover .arch-media::before { border-color: rgba(255, 255, 255, .5); }
.arches.bg-dark .arch-icon { color: var(--on-dark); background: var(--forest-deep); border-color: var(--white-line); }
.arches.bg-dark .arch-copy h3 { color: #fff; }
.arches.bg-dark .arch-copy p { color: rgba(255, 255, 255, .72); }
.arches.bg-dark .arch-tag { color: rgba(255, 255, 255, .88); border-color: rgba(255, 255, 255, .26); }
.arches.bg-dark .arch-tag:hover { background: #fff; border-color: #fff; color: var(--forest-deep); }
.arches.bg-dark .arch-cta .btn { --btn-bg: #fff; --btn-fg: var(--forest-deep); --chip-bg: var(--forest-deep); --chip-fg: #fff; }

@media (max-width: 1100px) { .arch-copy p { font-size: 14.5px; } .arch-tag { padding: 7px 13px; font-size: 12px; } }
@media (max-width: 860px) {
  .arch-grid { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin-inline: calc(50% - 50vw); padding-inline: max(20px, calc((100vw - var(--container)) / 2)); scroll-padding-inline: max(20px, calc((100vw - var(--container)) / 2)); padding-bottom: 6px; }
  .arch-grid::-webkit-scrollbar { display: none; }
  .arch-card { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) {
  .arch-photo img, .arch-media::before { transition: none; }
  .arch-card:hover .arch-photo img, .arch-card:focus-within .arch-photo img { transform: none; }
}

/* Светлый раздел в самом начале страницы: место под фиксированную шапку */
main > .section:first-child { padding-top: calc(74px + 56px * var(--space)); }
@media (min-width: 861px) { main > .section:first-child { padding-top: calc(74px + 84px * var(--space)); } }

/* Переключаемая середина страницы (варианты по аркам направлений) */
.switch-region { transition: opacity .2s ease; }
.switch-region.is-switching { opacity: 0; }
.arch-card.is-active .arch-media::before { inset: -14px; border-color: var(--forest); border-width: 1.5px; }
.arch-card.is-active .arch-copy h3::after { content: ''; display: block; width: 36px; height: 2px; margin: 14px auto 0; border-radius: 2px; background: var(--forest); }
.arches.bg-dark .arch-card.is-active .arch-media::before { border-color: #fff; }
.arches.bg-dark .arch-card.is-active .arch-copy h3::after { background: #fff; }
@media (prefers-reduced-motion: reduce) { .switch-region { transition: none; } }
html.switch-pending .switch-region { visibility: hidden; }
