/* MYCENOR. Вид по макету заказчика: кремовый фон, тёмная зелень, один шрифт Commissioner. */
:root {
  --ground: #EFEAE3;
  --ground-2: #E4DDD1;
  --ink: #10261E;
  --deep: #0D211A;
  --moss: #1C3A2A;
  --leaf: #7A9E3E;
  --leaf-soft: #B4CC78;
  --cream: #F1ECE4;
  --rule: rgba(16, 38, 30, .28);
  --rule-light: rgba(241, 236, 228, .3);

  --font-display: 'Commissioner', 'Helvetica Neue', Arial, sans-serif;
  --font-text: 'Commissioner', 'Helvetica Neue', Arial, sans-serif;

  --step-small: 0.8125rem;
  --step-body: clamp(1rem, .97rem + .12vw, 1.0625rem);
  --step-lead: clamp(1.125rem, 1.05rem + .35vw, 1.375rem);
  --step-head: clamp(1.875rem, 1.1rem + 2.6vw, 3.5rem);
  --step-huge: clamp(2.5rem, 1.2rem + 4.2vw, 5rem);

  --m: clamp(16px, 4vw, 56px);
  --gap: clamp(44px, 4.6vw, 64px);
  --hdr: 92px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-expo: cubic-bezier(.16, 1, .3, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hdr); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
::selection { background: var(--leaf); color: var(--deep); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; text-wrap: balance; letter-spacing: -.03em; line-height: 1.06; }
h2 { font-size: var(--step-head); }
p { text-wrap: pretty; }

.skip { position: fixed; left: var(--m); top: -60px; z-index: 60; background: var(--ink); color: var(--cream); padding: 10px 16px; }
.skip:focus { top: 12px; }

/* Разрядка из макета */
.hero-slogan, .spread-num { text-transform: uppercase; }
.caps-title { font-size: var(--step-head); }

.btn {
  display: inline-block;
  background: var(--leaf-soft);
  color: var(--deep);
  text-decoration: none;
  padding: 12px 22px;
  font-size: .9375rem;
  font-weight: 500;
  transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.btn:hover { background: var(--cream); }
.btn:active { transform: scale(.97); }
.btn-light { background: var(--cream); }
.btn-light:hover { background: var(--leaf-soft); }

/* Шапка */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--hdr);
  display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px);
  padding-inline: var(--m);
  color: var(--ink);
  transition: transform 420ms var(--ease-out), background-color 300ms ease, color 300ms ease;
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr.on-dark { color: var(--cream); }
.hdr.is-solid { background: var(--ground); }
.hdr.on-dark.is-solid { background: var(--deep); }
.logo-a { fill: currentColor; }
.logo-b { fill: var(--leaf); }
.hdr.on-dark .logo-b, .ftr .logo-b { fill: var(--leaf-soft); }
.brand { flex: none; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 76px; height: auto; flex: none; }
.brand .is-dark { display: none; }
.hdr.on-dark .brand .is-light, .ftr .brand .is-light { display: none; }
.hdr.on-dark .brand .is-dark, .ftr .brand .is-dark { display: block; }
.brand-text { display: grid; gap: 7px; }
.brand-word { width: 164px; height: 20.5px; }
.brand-sub { width: 164px; height: 7.6px; fill: currentColor; }
.hdr-nav { display: flex; gap: clamp(18px, 2.2vw, 32px); margin-left: clamp(16px, 3vw, 44px); margin-right: auto; }
.hdr-nav a { position: relative; text-decoration: none; font-size: 1.0625rem; padding: 6px 0; }
.hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.hdr-nav a:hover::after { transform: scaleX(1); }
.hdr-cta { display: none; }
.menu-btn, .nav-wa, .wa-fab { display: none; }
.lang { display: flex; gap: 2px; margin-left: auto; }
.hdr-nav + .hdr-cta { margin-left: 0; }
.hdr-nav ~ .lang { margin-left: 0; }
.hdr.on-dark .lang { background: rgba(13, 33, 26, .78); }
.js .lang { visibility: visible; }
html:not(.js) .lang { display: none; }
.lang button {
  appearance: none; border: 0; background: transparent; color: inherit; cursor: pointer;
  font: 500 .8125rem/1 var(--font-text); letter-spacing: .06em; padding: 7px 8px; opacity: .55;
  transition: opacity var(--t-hover) ease, background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.lang button:hover { opacity: 1; }
.lang button:active { transform: scale(.94); }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--leaf-soft); color: var(--deep); }


/* Первый экран */
.hero { background: var(--ground); }
.hero-cover {
  position: relative; height: 100svh; min-height: 600px; background: var(--deep); color: var(--cream); overflow: clip; --tick: 54px;
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto;
}
.hero-cover-img {
  position: absolute; right: 0; top: 0; height: 100%; width: 58vw; max-width: none;
  object-fit: cover; object-position: 100% 34%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .25) 16%, #000 38%);
          mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .25) 16%, #000 38%);
}
.hero-cover-in {
  position: relative; z-index: 2; align-self: center; width: min(62vw, 920px);
  display: flex; flex-direction: column; align-items: flex-start;
  padding: var(--hdr) var(--m) 12px;
}
.hero-cover h1 { font-size: clamp(2.25rem, min(4.6vw, 8.2svh), 4.75rem); font-weight: 300; letter-spacing: -.035em; line-height: 1.04; margin-bottom: 18px; }
.hero-cover h1 [data-line] { white-space: nowrap; }
.hero-name { display: block; font-size: .8125rem; font-weight: 500; letter-spacing: .32em; line-height: 1; margin-bottom: 20px; color: var(--leaf-soft); }
.hero-lead { max-width: 44ch; margin-bottom: clamp(20px, 3.4svh, 32px); font-size: clamp(1.125rem, min(1.55vw, 2.7svh), 1.5rem); font-weight: 300; line-height: 1.35; color: var(--cream); }
.hero-band {
  position: relative; z-index: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px clamp(24px, 3.4vw, 56px);
  padding: clamp(18px, 2.8svh, 30px) var(--m); background: var(--deep); border-top: 1px solid var(--rule-light);
  font-size: 1rem; line-height: 1.55; color: rgba(241, 236, 228, .78);
}
.hero-band b { color: var(--cream); font-weight: 500; }
.ticker { position: relative; z-index: 2; height: var(--tick); display: flex; align-items: center; overflow: clip; background: var(--deep); border-top: 1px solid var(--rule-light); }
.ticker-run { display: flex; flex: none; animation: tick 46s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 44px; padding-right: 44px; font-size: 1.0625rem; font-weight: 300; color: rgba(241, 236, 228, .72); white-space: nowrap; }
.ticker span::after { content: ''; width: 6px; height: 6px; background: var(--leaf-soft); }
@keyframes tick { to { transform: translateX(-50%); } }
.lines .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.lines [data-line] { display: block; }
.line-step { padding-left: 0; }

.hero-m {
  position: relative; min-height: 100svh; background: var(--deep); overflow: clip;
  --mw: min(31vw, 50svh);
  --mgap: clamp(32px, 4vw, 56px);
  --mt: min(560px, 44vw);
  --mx: max(var(--m), calc(50vw - (var(--mw) + var(--mgap) + var(--mt)) / 2));
  --my: calc(50svh - var(--mw) * .435 + 16px);
}
.hero-under { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 50%; }
.veil { position: absolute; left: var(--mx); top: var(--my); width: var(--mw); height: auto; overflow: visible; fill: var(--ground); }
.m-ref { position: absolute; left: var(--mx); top: var(--my); width: var(--mw); aspect-ratio: 932 / 810; visibility: hidden; pointer-events: none; }
.hero-m-text {
  position: absolute; z-index: 2; color: var(--ink);
  left: calc(var(--mx) + var(--mw) + var(--mgap)); width: var(--mt); top: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  padding-top: var(--hdr);
}
.hero-slogan { font-size: var(--step-small); letter-spacing: .24em; line-height: 1.7; }
.hero-m-text h2 { margin-bottom: 4px; }
.hero-about { max-width: 54ch; }

.hero:not(.is-live) .scene-stage { display: flex; flex-direction: column; }
.hero:not(.is-live) .hero-cover { order: -1; }
.hero.is-live .scene-stage { background: transparent; }
.hero.is-live .hero-m { position: absolute; inset: 0; min-height: 0; }
.hero.is-live .hero-cover { position: absolute; inset: 0; height: 100%; min-height: 0; }

/* Пять технологий */
.tech-intro {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: auto minmax(0, 64ch); align-items: end; justify-content: space-between; gap: 12px clamp(24px, 4vw, 64px);
  padding: 22px var(--m); background: var(--deep); color: var(--cream);
}
.tech-label { font-size: .8125rem; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; color: var(--leaf-soft); margin-bottom: 8px; }
.tech-intro h2 { font-size: clamp(1.5rem, 1rem + 1.4vw, 2.25rem); letter-spacing: -.025em; }
.tech-intro p:not(.tech-label) { color: rgba(241, 236, 228, .8); line-height: 1.45; }
.hero.is-live + .tech-intro { margin-top: -19svh; }
.spreads { position: relative; }
.spread { --sp-bg: var(--ground); --sp-ink: var(--ink); position: relative; background: var(--sp-bg); color: var(--sp-ink); overflow: clip; }
.spread-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: min(84svh, 720px); }
.spread-pic { position: relative; overflow: clip; min-height: 100%; }
.spread-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sp-ingredients .spread-pic img { object-position: 50% 80%; }
.spread-text {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 36px clamp(28px, 4.4vw, 64px);
}
.spread-num { font-size: var(--step-small); letter-spacing: .2em; display: flex; align-items: center; gap: 14px; }
.spread-num::before { content: ''; order: 1; width: 40px; height: 1px; background: currentColor; opacity: .5; }
.st { order: 2; display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.st::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid currentColor; }
.st.is-on::before { background: var(--leaf); border-color: var(--leaf); }
.spread h3 { font-size: clamp(1.75rem, 2.9vw, 2.875rem); letter-spacing: -.01em; line-height: 1.08; }
.spread-intro { font-size: 1rem; line-height: 1.55; opacity: .86; }
.spread-sub { font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem); line-height: 1.3; font-weight: 300; }
.spread p { max-width: 62ch; }
.spread .spread-sub { max-width: 40ch; }
.is-flip .spread-pic { order: 2; }
.grps { margin-top: 8px; }
.grps > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.grp-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.grp-tabs label {
  cursor: pointer; padding: 7px 12px; font-size: .8125rem; line-height: 1.2;
  border: 1px solid color-mix(in srgb, currentColor 28%, transparent); opacity: .78;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, opacity var(--t-hover) ease, border-color var(--t-hover) ease;
}
@media (hover: hover) { .grp-tabs label:hover { opacity: 1; border-color: currentColor; } }
.grps > input:nth-of-type(1):checked ~ .grp-tabs label:nth-child(1),
.grps > input:nth-of-type(2):checked ~ .grp-tabs label:nth-child(2),
.grps > input:nth-of-type(3):checked ~ .grp-tabs label:nth-child(3),
.grps > input:nth-of-type(4):checked ~ .grp-tabs label:nth-child(4),
.grps > input:nth-of-type(5):checked ~ .grp-tabs label:nth-child(5),
.grps > input:nth-of-type(6):checked ~ .grp-tabs label:nth-child(6) { opacity: 1; background: var(--ink); border-color: var(--ink); color: var(--cream); }
.is-dark .grps > input:nth-of-type(1):checked ~ .grp-tabs label:nth-child(1),
.is-dark .grps > input:nth-of-type(2):checked ~ .grp-tabs label:nth-child(2),
.is-dark .grps > input:nth-of-type(3):checked ~ .grp-tabs label:nth-child(3),
.is-dark .grps > input:nth-of-type(4):checked ~ .grp-tabs label:nth-child(4),
.is-dark .grps > input:nth-of-type(5):checked ~ .grp-tabs label:nth-child(5),
.is-dark .grps > input:nth-of-type(6):checked ~ .grp-tabs label:nth-child(6) { background: var(--leaf-soft); border-color: var(--leaf-soft); color: var(--deep); }
.grps > input:nth-of-type(1):focus-visible ~ .grp-tabs label:nth-child(1),
.grps > input:nth-of-type(2):focus-visible ~ .grp-tabs label:nth-child(2),
.grps > input:nth-of-type(3):focus-visible ~ .grp-tabs label:nth-child(3),
.grps > input:nth-of-type(4):focus-visible ~ .grp-tabs label:nth-child(4),
.grps > input:nth-of-type(5):focus-visible ~ .grp-tabs label:nth-child(5),
.grps > input:nth-of-type(6):focus-visible ~ .grp-tabs label:nth-child(6) { outline: 2px solid var(--leaf); outline-offset: 2px; }
.grp-lists ul { display: none; margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; font-size: .9375rem; line-height: 1.4; }
.grps > input:nth-of-type(1):checked ~ .grp-lists ul:nth-child(1),
.grps > input:nth-of-type(2):checked ~ .grp-lists ul:nth-child(2),
.grps > input:nth-of-type(3):checked ~ .grp-lists ul:nth-child(3),
.grps > input:nth-of-type(4):checked ~ .grp-lists ul:nth-child(4),
.grps > input:nth-of-type(5):checked ~ .grp-lists ul:nth-child(5),
.grps > input:nth-of-type(6):checked ~ .grp-lists ul:nth-child(6) { display: grid; animation: grp-in 420ms var(--ease-out); }
.grp-lists li { position: relative; padding-left: 16px; }
.grp-lists li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; background: var(--leaf); }
.is-dark .grp-lists li::before { background: var(--leaf-soft); }
@keyframes grp-in { from { opacity: 0; transform: translateY(6px); } }

.sp-ingredients { --sp-bg: #F4EFE8; }
.sp-air { --sp-bg: #EFE9E1; }
.sp-leather { --sp-bg: #F1EBE2; }
.sp-seeds { --sp-bg: var(--deep); --sp-ink: var(--cream); }
.sp-seeds .spread-in { grid-template-columns: minmax(0, 1fr); }
.spread-text > * { min-width: 0; max-width: 100%; }
.sp-seeds .spread-pic { position: absolute; inset: 0; }
.sp-seeds .spread-pic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 26, 19, .92) 0, rgba(9, 26, 19, .78) 44%, rgba(9, 26, 19, 0) 70%); }
.sp-seeds .spread-text { position: relative; width: min(56%, 760px); padding-inline: var(--m); justify-content: center; }
.sp-control { --sp-bg: #EEEDE6; }
.sp-control .spread-pic img { object-position: 62% 60%; }

/* Метод и масштабирование: три цветных блока */
.lab { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3.3fr) minmax(0, 4.7fr); gap: 8px; padding: 8px var(--m) var(--gap); }
.tile { padding: clamp(22px, 2.6vw, 36px); display: grid; gap: 14px; align-content: center; min-height: 340px; }
.tile h2 { font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.375rem); line-height: 1.1; }
.tile-a { background: var(--leaf-soft); color: var(--deep); }
.tile-b { background: var(--deep); color: var(--cream); }
.tile-c { background: var(--moss); color: var(--cream); }
.steps { display: grid; gap: 1px; font-size: clamp(1rem, .95rem + .2vw, 1.125rem); font-weight: 300; }
.steps li { position: relative; padding: 5px 0 5px 16px; color: rgba(241, 236, 228, .5); cursor: default; transition: color 400ms ease; }
.steps li::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; background: var(--leaf-soft); transform: scaleY(0); transition: transform 400ms var(--ease-out); }
.steps li.is-on { color: var(--cream); }
.steps li.is-on::before { transform: scaleY(1); }
html:not(.js) .steps li { color: var(--cream); }
.scale-list { display: grid; gap: 7px; }
.scale-list li { position: relative; padding-left: 16px; line-height: 1.3; }
.scale-list li::before { content: ''; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; background: var(--leaf-soft); }

/* Структура направлений */
.struct { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 8px; padding: var(--gap) var(--m) 0; }
.struct-table { padding: clamp(22px, 2.6vw, 36px); background: var(--ground-2); }
.struct-table h2 { font-size: clamp(1.625rem, 1.1rem + 1.5vw, 2.375rem); margin-bottom: 16px; }
.table-wrap { overflow-x: auto; }
.struct table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.struct th, .struct td { text-align: left; padding: 12px 16px 12px 0; vertical-align: middle; }
.struct thead th { font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; padding-top: 0; }
.struct tbody tr { border-top: 1px solid var(--rule); transition: background-color var(--t-hover) ease; }
.struct tbody tr:hover { background: rgba(16, 38, 30, .05); }
.struct tbody th { font-weight: 400; font-size: clamp(1rem, .9rem + .4vw, 1.25rem); letter-spacing: .01em; }
.struct tbody th a { text-decoration: none; }
.struct tbody th a:hover { text-decoration: underline; text-underline-offset: 4px; }
.struct .st { color: var(--ink); white-space: nowrap; }
.struct-pos { padding: clamp(22px, 2.6vw, 36px); background: var(--deep); color: var(--cream); display: grid; align-content: center; gap: 12px; }
.struct-pos h3 { font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem); color: var(--leaf-soft); }
.struct-pos p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); font-weight: 300; line-height: 1.55; }

/* Отрасли: список слева, одно большое фото справа */
.clients { overflow-x: clip; background: var(--deep); color: var(--cream); padding: clamp(36px, 3.6vw, 52px) var(--m) clamp(40px, 4vw, 56px); }
.clients-head { display: grid; grid-template-columns: auto minmax(0, 40ch); justify-content: start; gap: 8px clamp(28px, 4vw, 56px); align-items: end; margin-bottom: clamp(10px, 1.2vw, 16px); }
.clients-head h2 { font-size: var(--step-head); }
.segs { position: relative; display: grid; grid-template-columns: minmax(230px, 3fr) minmax(0, 8fr); grid-template-rows: repeat(4, 1fr); column-gap: clamp(20px, 3vw, 40px); height: clamp(360px, 48svh, 460px); margin-right: calc(var(--m) * -1); }
.seg { display: contents; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-tab { position: relative; grid-column: 1; display: flex; align-items: center; padding-left: 20px; cursor: pointer; color: rgba(241, 236, 228, .55); transition: color 300ms ease, padding-left 400ms var(--ease-out); }
.seg-tab:hover { color: var(--cream); }
.seg-tab::before, .seg-tab::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; }
.seg-tab::before { background: var(--rule-light); }
.seg-tab::after { background: var(--leaf-soft); transform: scaleY(0); transform-origin: top; transition: transform 400ms var(--ease-out); }
.seg-tab span { font-size: clamp(1.0625rem, .95rem + .4vw, 1.3125rem); font-weight: 300; line-height: 1.2; letter-spacing: -.01em; }
.seg input:checked + .seg-tab { color: var(--cream); padding-left: 26px; }
.seg input:checked + .seg-tab::after { transform: scaleY(1); }
.clients.is-auto .seg input:checked + .seg-tab::after { transform: scaleY(0); transition: none; animation: seg-run var(--seg-time, 6s) linear forwards; }
.clients.is-paused .seg-tab::after { animation-play-state: paused !important; }
@keyframes seg-run { to { transform: scaleY(1); } }
.seg input:focus-visible + .seg-tab { outline: 2px solid var(--leaf-soft); outline-offset: -2px; }
.seg-img {
  grid-column: 2; grid-row: 1 / -1; width: 100%; height: 100%; min-height: 0; max-width: none; object-fit: cover; opacity: 0; transform: scale(1.05);
  transition: opacity 700ms ease, transform 1500ms var(--ease-expo);
  /* фото растворяется в фоне блока: слева, сверху и снизу мягкие края, справа уходит за край экрана */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 14%, #000 34%), linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .55) 14%, #000 34%), linear-gradient(180deg, transparent 0, #000 16%, #000 80%, transparent 100%);
          mask-composite: intersect;
}
.seg:has(input:checked) .seg-img { opacity: 1; transform: scale(1); z-index: 1; }
.seg::after { content: ''; grid-column: 2; grid-row: 1 / -1; z-index: 1; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(13, 33, 26, .96) 0, rgba(13, 33, 26, .82) 26%, rgba(13, 33, 26, .35) 48%, rgba(13, 33, 26, 0) 66%); transition: opacity 500ms ease; }
.seg:has(input:checked)::after { opacity: 1; }
.seg-body { grid-column: 2; grid-row: 1 / -1; align-self: center; justify-self: start; z-index: 2; width: min(44%, 470px); padding: 0 0 0 clamp(8px, 1.6vw, 24px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; visibility: hidden; }
.seg:has(input:checked) .seg-body { visibility: visible; }
.seg-body h3 { font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.625rem); line-height: 1.08; }
.seg-body p { max-width: 42ch; color: rgba(241, 236, 228, .86); line-height: 1.5; }
.seg-tech { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--leaf-soft); font-weight: 500; font-size: .875rem; letter-spacing: .08em; }
.seg-body .btn { justify-self: start; margin-top: 8px; }
.seg-body > * { opacity: 0; transform: translateY(16px); }
.seg:has(input:checked) .seg-body > * { opacity: 1; transform: none; transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-expo); }
.seg:has(input:checked) .seg-body > :nth-child(1) { transition-delay: 120ms; }
.seg:has(input:checked) .seg-body > :nth-child(2) { transition-delay: 190ms; }
.seg:has(input:checked) .seg-body > :nth-child(3) { transition-delay: 260ms; }
.seg:has(input:checked) .seg-body > :nth-child(4) { transition-delay: 330ms; }

/* Линия этапов */
.road { padding: var(--gap) var(--m); }
.road h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.road-line { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; padding-top: 40px; }
.road-line::before, .road-line::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--rule); }
.road-line::after { background: var(--ink); height: 2px; top: 6.5px; transform: scaleX(var(--p, 0)); transform-origin: left; }
.road-line li { position: relative; display: grid; gap: 10px; align-content: start; }
.road-line li::before {
  content: ''; position: absolute; z-index: 1; left: 0; top: -40px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--ground); border: 1.5px solid var(--ink);
  transition: background-color var(--t-ui) ease, transform var(--t-ui) var(--ease-out);
}
.road-line li.is-on::before { background: var(--ink); transform: scale(.8); }
.road-line h3 { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.625rem); }
.road-line p { font-size: 1rem; line-height: 1.45; }
.road-note { margin-top: 24px; max-width: 62ch; }

/* Подвал: контакт и реквизиты */
.ftr { background: var(--deep); color: var(--cream); padding: clamp(32px, 3.6vw, 48px) var(--m) 20px; }
.ftr-top { position: relative; padding-bottom: clamp(24px, 3vw, 36px); }
.ftr-net { position: absolute; top: calc(clamp(32px, 3.6vw, 48px) * -1); right: calc(var(--m) * -1); bottom: 0; left: 0; width: calc(100% + var(--m)); height: calc(100% + clamp(32px, 3.6vw, 48px)); pointer-events: none; }
.ftr-cta { position: relative; z-index: 1; display: grid; gap: 8px; justify-items: start; max-width: 620px; }
.ftr-top h2 { font-size: clamp(1.625rem, 1.1rem + 1.6vw, 2.5rem); }
.ftr-top p { max-width: 48ch; color: rgba(241, 236, 228, .82); }
.ftr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 10px; }
.ftr-bottom { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; font-size: var(--step-small); padding-top: 16px; border-top: 1px solid var(--rule-light); }
.ftr-bottom .brand { margin-right: auto; }
.ftr-bottom .brand-mark { width: 60px; }
.ftr-bottom .brand-word, .ftr-bottom .brand-sub { width: 130px; }
.ftr-bottom .brand-word { height: 16.3px; }
.ftr-bottom .brand-sub { height: 6px; }
.ftr-up { text-underline-offset: 3px; }

/* Развороты держатся и наезжают друг на друга там, где экран вмещает их целиком */
.spread { position: sticky; top: var(--stick, 0px); }

/* Появления */
@media (prefers-reduced-motion: no-preference) {
  .js .hero [data-line] { transform: translateY(108%); animation: rise 900ms var(--ease-expo) forwards; animation-delay: calc(100ms + var(--i) * 90ms); }
  .js .hero [data-load] { opacity: 0; transform: translateY(14px); animation: rise-fade 560ms var(--ease-out) forwards; animation-delay: var(--d); }

  .js [data-rise] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform var(--t-reveal) var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-rise].is-in { opacity: 1; transform: none; }
  .js [data-tile] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-expo); transition-delay: var(--d, 0ms); }
  .js [data-tile].is-in { opacity: 1; transform: none; }
  .js [data-rows] > li { opacity: 0; transform: translateY(18px); transition: opacity 500ms var(--ease-out), transform 700ms var(--ease-expo); transition-delay: calc(var(--i) * 70ms); }
  .js [data-rows].is-in > li { opacity: 1; transform: none; }
  .js .road-line li { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-expo); transition-delay: calc(var(--i) * 90ms); }
  .js .road-line.is-in li { opacity: 1; transform: none; }
}
@keyframes rise { to { transform: none; } }
@keyframes rise-fade { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 1240px) {
  .hdr { background: var(--ground); }
  .hdr.on-dark { background: var(--deep); }
  .hero-cover-in { width: 66vw; }
  .hero-cover-img { width: 56vw; }
}

@media (min-width: 1001px) and (max-height: 720px) {
  .hero-cover h1 { margin-bottom: 10px; }
  .hero-lead { margin-bottom: 14px; }
  .hero-band { font-size: .9375rem; line-height: 1.45; padding-block: 14px; }
  .hero-name { margin-bottom: 12px; }
}

/* Планшет */
@media (max-width: 1100px) {
  .road-line { grid-template-columns: minmax(0, 1fr); padding: 0 0 0 34px; gap: 30px; }
  .road-line::before, .road-line::after { left: 7px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .road-line::after { width: 2px; transform: scaleY(var(--p, 0)); transform-origin: top; }
  .road-line li::before { left: -34px; top: 8px; }
}

@media (max-width: 1000px) {
  .struct { grid-template-columns: minmax(0, 1fr); }
  .tech-intro { grid-template-columns: minmax(0, 1fr); }
  .hdr { background: var(--ground); }
  .hdr.on-dark { background: var(--deep); }
  .hdr-nav a { font-size: .9375rem; }
  .hero-cover-img { top: 0; bottom: auto; right: 0; width: 100%; height: 40svh; object-position: 78% 50%; -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 58%, transparent 100%); }
  .hero-cover-in { align-self: end; width: auto; padding: 0 var(--m) 14px; }
  .hero-cover h1 { font-size: clamp(1.875rem, 6vw, 3rem); }
  .hero-band { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .brand-mark { width: 60px; }
  .brand-word, .brand-sub { width: 126px; }
  .brand-word { height: 15.8px; }
  .brand-sub { height: 5.9px; }
  .lab { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tile-a { grid-column: 1 / -1; min-height: 0; }
  .tile { min-height: 0; }
  .seg-body { width: min(58%, 470px); }
  .hero-m { --mw: min(62vw, 46svh); --mx: var(--m); --my: calc(var(--hdr) + 20px); }
  .hero-m-text { width: auto; left: var(--m); right: var(--m); top: calc(var(--my) + var(--mw) * .87 + 20px); bottom: auto; padding-top: 0; gap: 12px; justify-content: flex-start; }
  .hero-slogan { display: none; }
}

@media (max-width: 899px) {
  .spread-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .spread-pic { aspect-ratio: 4 / 3; min-height: 0; }
  .spread-text { padding: 24px var(--m) 36px; }
  .grp-lists ul { grid-template-columns: minmax(0, 1fr); }
  .struct thead { display: none; }
  .struct tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; }
  .struct th, .struct td { padding: 0; }
  .struct tbody td:last-child { grid-column: 1 / -1; opacity: .8; }
  .sp-seeds .spread-text { width: auto; }
  .is-flip .spread-pic { order: 0; }
  .sp-seeds .spread-pic { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .sp-seeds .spread-pic::after { display: none; }
  .sp-seeds .spread-text { width: auto; padding-top: 24px; }

}

/* Телефон */
@media (max-width: 767px) {
  :root { --hdr: 68px; --gap: 72px; }
  .hdr-nav ~ .lang { margin-left: auto; }
  .lang { order: 2; }
  .menu-btn {
    order: 3; display: inline-flex; align-items: center; gap: 10px; margin-left: 6px; padding: 10px 2px 10px 10px;
    appearance: none; border: 0; background: none; color: inherit; font: 500 .9375rem/1 var(--font-text); cursor: pointer;
  }
  .menu-btn i { position: relative; width: 22px; height: 12px; }
  .menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform 320ms var(--ease-out), top 320ms var(--ease-out); }
  .menu-btn i::before { top: 2px; }
  .menu-btn i::after { top: 9px; }
  .hdr.menu-open .menu-btn i::before { top: 5.5px; transform: rotate(45deg); }
  .hdr.menu-open .menu-btn i::after { top: 5.5px; transform: rotate(-45deg); }
  .hdr-nav {
    position: fixed; z-index: -1; inset: 0; margin: 0; padding: calc(var(--hdr) + 28px) var(--m) 32px;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    background: var(--deep); color: var(--cream);
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    transition: opacity 320ms var(--ease-out), transform 420ms var(--ease-out), visibility 0s 420ms;
  }
  .hdr-nav a { font-size: 2rem; font-weight: 300; letter-spacing: -.02em; padding: 8px 0; opacity: 0; transform: translateY(12px); transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-expo); }
  .hdr-nav a::after { display: none; }
  .hdr-nav .nav-wa { display: inline-block; margin-top: auto; font-size: 1.0625rem; font-weight: 500; padding: 15px 24px; background: var(--leaf-soft); color: var(--deep); letter-spacing: 0; }
  .hdr.menu-open { color: var(--cream); background: var(--deep); transform: none; }
  .hdr.menu-open .brand .is-light { display: none; }
  .hdr.menu-open .brand .is-dark { display: block; }
  .hdr.menu-open .hdr-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .hdr.menu-open .hdr-nav a { opacity: 1; transform: none; }
  .hdr.menu-open .hdr-nav a:nth-child(2) { transition-delay: 50ms; }
  .hdr.menu-open .hdr-nav a:nth-child(3) { transition-delay: 100ms; }
  .hdr.menu-open .hdr-nav a:nth-child(4) { transition-delay: 150ms; }
  .hdr.menu-open .hdr-nav a:nth-child(5) { transition-delay: 200ms; }
  html.menu-lock, html.menu-lock body { overflow: hidden; }

  .wa-fab {
    position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px 13px 14px;
    background: var(--leaf-soft); color: var(--deep); text-decoration: none; font-weight: 500; font-size: .9375rem;
    box-shadow: 0 10px 28px rgba(9, 26, 19, .35);
    transform: translateY(140%); transition: transform 420ms var(--ease-out);
  }
  .wa-fab svg { width: 22px; height: 22px; fill: currentColor; }
  .wa-fab.is-on { transform: none; }
  .wa-fab:active { transform: scale(.96); }

  .grp-tabs { gap: 6px; }
  .grp-tabs label { padding: 9px 11px; font-size: .8125rem; }
  .ftr-net { display: none; }
  .spread-num::before { width: 24px; }
  .st { letter-spacing: .08em; white-space: nowrap; }
  .lang button { padding: 11px 12px; }
  .ftr-up { display: inline-block; padding-block: 10px; }
  .brand-mark { width: 56px; }
  .brand-word, .brand-sub { width: 122px; }
  .brand-word { height: 15.3px; }
  .brand-sub { height: 5.7px; }
  .brand-text { gap: 5px; }

  .line-step { padding-left: 0; }
  .hero-under { object-position: 78% 50%; }

  .hero .scene-stage { display: flex; flex-direction: column; }
  .hero-cover { order: -1; height: auto; min-height: 0; display: flex; flex-direction: column; padding-top: var(--hdr); --tick: 46px; }
  .hero-cover-img { position: static; width: 100%; height: 38svh; min-height: 240px; -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%); mask-image: linear-gradient(180deg, #000 72%, transparent 100%); }
  .hero-cover-in { margin-top: -8px; padding: 0 var(--m) 18px; }
  .hero-lead { font-size: 1.0625rem; }
  .hero-name { margin-bottom: 12px; }
  .hero-cover h1 { margin-bottom: 12px; }
  .ticker { position: relative; flex: none; }
  .hero-m { --mw: min(66vw, 34svh); --my: 24px; min-height: 0; }
  .hero.m-anim .hero-m { --mw: min(74vw, 300px); --my: 20px; }
  .hero.m-anim .hero-m-text { padding-bottom: 20px; }
  .hero-m-text { position: relative; left: auto; right: auto; top: auto; bottom: auto; width: auto; padding: calc(var(--my) + var(--mw) * .87 + 18px) var(--m) 28px; }

  .tech-intro { display: grid; gap: 6px; padding-block: 16px; }
  .tech-intro h2 { flex: auto; }
  .hero.is-live + .tech-intro { margin-top: 0; }
  .lab { grid-template-columns: minmax(0, 1fr); }
  .tile { padding: 22px; }
  .segs { grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(4, auto) 380px; height: auto; margin-inline: calc(var(--m) * -1); }
  .seg-tab { margin-inline: var(--m); }
  .seg-img { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 100%); mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 100%); -webkit-mask-composite: source-over; mask-composite: add; }
  .seg-tab { grid-column: 1; padding-block: 10px; }
  .seg-img, .seg::after, .seg-body { grid-column: 1; grid-row: 5; }
  .seg-body { width: auto; align-self: end; justify-self: stretch; gap: 8px; padding: 18px var(--m) 24px; }
  .seg-body h3 { font-size: 1.375rem; }
  .seg::after { background: linear-gradient(0deg, rgba(13, 33, 26, .95) 0, rgba(13, 33, 26, .8) 46%, rgba(13, 33, 26, 0) 80%); }
  .hero-cover h1 { font-size: clamp(1.75rem, 8.6vw, 2.5rem); }
  .hdr-cta { display: none; }
.menu-btn, .nav-wa, .wa-fab { display: none; }
  .clients-head { grid-template-columns: minmax(0, 1fr); }

  .clients-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .spread h3 { font-size: clamp(1.75rem, 8.4vw, 2.5rem); }

}

