/* ═══════════════════════════════════════════════════════════════
   ПАТТЕРН — сайт, версия 2 («Небо»)
   Один файл стилей на все страницы. Одна светлая тема.
   Движение отвечает человеку: появление при прокрутке, наезд
   картинок от прокрутки, наведение. Ничего не крутится само.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ink: #0B1A3A;
  --ink-2: #12275C;
  --text: #2B3550;
  --muted: #69718A;
  --line: rgba(11, 26, 58, .08);
  --line-2: rgba(11, 26, 58, .13);
  --accent: #EA580C;
  --accent-2: #C2410C;
  --accent-soft: #FFF1E8;
  --paper: #F6F3EE;
  --card: #FFFFFF;
  --card-2: #EFEBE4;
  --sky-1: #9DC1E4;
  --sky-2: #BFD3E6;
  --sky-3: #DDE0E2;
  --sand: #EDE3D7;
  --red: #E5484D;
  --amber: #F2A33A;
  --green: #30A46C;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(11, 26, 58, .04), 0 12px 32px -12px rgba(11, 26, 58, .14);
  --shadow-lg: 0 2px 4px rgba(11, 26, 58, .04), 0 40px 80px -24px rgba(11, 26, 58, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: 1200px;
  --gutter: 24px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(234, 88, 12, .18); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: #fff; transition: top .2s; }
.skip:focus { top: 16px; }
.wrap { width: min(100%, var(--wrap)); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--accent); }
.nowrap { white-space: nowrap; }

/* ─── Кнопки ─── */
.btn {
  --h: 50px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
  border: 0; cursor: pointer;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s, color .3s;
}
.btn:active { transform: scale(.97); }
.btn__arrow { width: 16px; height: 16px; flex: none; transition: transform .35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--dark { background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px -8px rgba(11,26,58,.55); }
.btn--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 70%);
  opacity: 0; transition: opacity .3s;
}
.btn--dark:hover { background: var(--ink-2); }
.btn--dark:hover::before { opacity: 1; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(234,88,12,.6); }
.btn--accent:hover { background: var(--accent-2); }
.btn--light { background: rgba(255,255,255,.75); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn--light:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.link-arrow svg { width: 15px; height: 15px; color: var(--accent); transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ─── Шапка ─── */
.nav { position: fixed; inset: 14px var(--gutter) auto; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.nav__bar {
  pointer-events: auto;
  width: min(100%, calc(var(--wrap) - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 10px 0 22px; border-radius: 999px;
  background: rgba(255,255,255,.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.nav.is-scrolled .nav__bar { background: rgba(255,255,255,.84); box-shadow: inset 0 0 0 1px var(--line), 0 12px 32px -14px rgba(11,26,58,.22); }
.nav.is-hidden .nav__bar { transform: translateY(calc(-100% - 24px)); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.03em; color: var(--ink); flex: none; }
.brand__mark { width: 27px; height: 21px; fill: currentColor; transition: transform .5s var(--ease); }
.brand:hover .brand__mark { transform: translateX(2px); }
.nav__links { display: flex; gap: 4px; margin-left: auto; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.nav__links a { position: relative; padding: 8px 12px; border-radius: 999px; opacity: .78; transition: opacity .2s, background-color .2s; }
.nav__links a:hover { opacity: 1; background: rgba(255,255,255,.55); }
.nav__links a[aria-current="page"] { opacity: 1; }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.nav__right { display: flex; align-items: center; gap: 8px; }

.burger { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.sheet { position: fixed; inset: 0; z-index: 55; display: none; }
.sheet.is-open { display: block; }
.sheet__bg { position: absolute; inset: 0; background: rgba(11,26,58,.18); opacity: 0; transition: opacity .4s; }
.sheet__panel {
  position: absolute; inset: 0 0 auto; padding: 96px var(--gutter) 28px;
  background: linear-gradient(180deg, #DCE8F4, var(--paper) 70%);
  border-radius: 0 0 28px 28px; box-shadow: var(--shadow-lg);
  transform: translateY(-16px); opacity: 0;
  transition: transform .5s var(--ease), opacity .35s;
  max-height: 100dvh; overflow-y: auto;
}
.sheet.is-in .sheet__bg { opacity: 1; }
.sheet.is-in .sheet__panel { transform: none; opacity: 1; }
.sheet__links { display: grid; }
.sheet__links a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-size: 22px; font-weight: 600; letter-spacing: -.02em; color: var(--ink);
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms + 80ms);
}
.sheet__links a svg { width: 18px; height: 18px; color: var(--accent); }
.sheet__links a[aria-current="page"] { color: var(--accent); }
.sheet.is-in .sheet__links a { opacity: 1; transform: none; }
.sheet__foot { display: grid; gap: 10px; margin-top: 24px; }
html.menu-open { overflow: hidden; }

/* ─── Небо и облака ─── */
.sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: 420px; height: auto; aspect-ratio: 400 / 220; translate: calc(var(--px, 0) * var(--depth, 20px)) calc(var(--py, 0) * var(--depth, 20px) * .5); transition: translate .9s var(--ease); }
.cloud--flip { scale: -1 1; }

@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .cloud[data-drift] { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .cloud[data-drift="r"] { animation-name: drift-r; }
    .cloud[data-drift="up"] { animation-name: drift-up; }
  }
}
@keyframes drift { to { transform: translate(-140px, -70px); opacity: .6; } }
@keyframes drift-r { to { transform: translate(140px, -50px); opacity: .6; } }
@keyframes drift-up { to { transform: translateY(-60px); opacity: 0; } }

/* ─── Первый экран главной ─── */
.hero {
  position: relative;
  padding: 176px var(--gutter) 0;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 30%, var(--sky-3) 58%, var(--sand) 82%, var(--paper) 100%);
  text-align: center;
}
.hero__copy { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
  font-size: 13.5px; font-weight: 500; color: var(--ink);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(234,88,12,.18); }
.hero h1 { margin-top: 24px; font-size: clamp(46px, 7.6vw, 96px); line-height: 1; letter-spacing: -.05em; }
.hero__lead { margin: 24px auto 0; max-width: 640px; font-size: clamp(16px, 1.5vw, 19px); color: #3C4763; text-wrap: balance; }
.hero__btns { display: flex; justify-content: center; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.cloud--h1 { left: -150px; top: 180px; width: 480px; --depth: 26px; }
.cloud--h2 { right: -180px; top: 250px; width: 520px; --depth: 34px; }
.cloud--h3 { left: 60%; top: 92px; width: 210px; opacity: .55; --depth: 12px; }
.cloud--h4 { left: 14%; top: 64px; width: 150px; opacity: .45; --depth: 8px; }

/* ─── Первый экран внутренних страниц ─── */
.phero {
  position: relative; overflow: hidden;
  padding: 168px var(--gutter) 96px;
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 38%, var(--sand) 78%, var(--paper) 100%);
  text-align: center;
}
.phero__copy { position: relative; z-index: 2; max-width: 880px; margin: 0 auto; }
.phero h1 { margin-top: 22px; font-size: clamp(40px, 6vw, 76px); line-height: 1.03; letter-spacing: -.045em; }
.phero__lead { margin: 22px auto 0; max-width: 680px; font-size: clamp(16px, 1.4vw, 18.5px); color: #3C4763; }
.phero .hero__btns { margin-top: 30px; }
.phero__meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.phero__meta span { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.8); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.cloud--p1 { left: -160px; bottom: 30px; width: 440px; --depth: 22px; }
.cloud--p2 { right: -150px; top: 120px; width: 400px; --depth: 30px; }
.cloud--p3 { left: 66%; top: 70px; width: 170px; opacity: .5; --depth: 10px; }

/* ─── Макет «Карта бизнеса» ─── */
.board-wrap { position: relative; z-index: 1; max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 80px auto 0; perspective: 1400px; }
.board {
  display: grid; grid-template-columns: 228px 1fr;
  text-align: left;
  background: #fff; border-radius: 28px 28px 0 0;
  box-shadow: 0 0 0 8px rgba(255,255,255,.5), var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
  transform-origin: 50% 100%;
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform .8s var(--ease);
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .board-wrap { animation: board-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes board-rise {
  from { transform: translateY(60px) scale(.86); opacity: .4; }
  to { transform: none; opacity: 1; }
}
.board__side { padding: 22px 14px; border-right: 1px solid var(--line); background: #FBFAF8; }
.board__brand { display: flex; align-items: center; gap: 8px; padding: 0 8px 18px; font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.02em; }
.board__brand svg { width: 20px; height: 16px; fill: var(--ink); }
.board__cap { padding: 14px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #9AA0B2; }
.board__menu { display: grid; gap: 2px; }
.board__menu li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: #4A5370; font-weight: 500; }
.board__menu li.is-on { background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 2px 6px -2px rgba(11,26,58,.1); }
.z { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.z--red { background: var(--red); } .z--amber { background: var(--amber); } .z--green { background: var(--green); }
.board__main { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.board__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.board__hi { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.board__sub { color: var(--muted); font-size: 12.5px; }
.board__search { display: flex; align-items: center; gap: 8px; width: 220px; height: 36px; padding: 0 12px; border-radius: 10px; background: #F4F2EE; color: #9AA0B2; }
.board__stages { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.st { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 14px; background: #F7F5F1; color: #8A90A4; font-weight: 500; white-space: nowrap; overflow: hidden; }
.st span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 11px; font-weight: 600; flex: none; }
.st.is-done { color: var(--ink); }
.st.is-done span { background: var(--ink); color: #fff; box-shadow: none; }
.st.is-now { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(234,88,12,.25); }
.st.is-now span { background: var(--accent); color: #fff; box-shadow: none; }
.board__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.panel { border-radius: 18px; padding: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); min-width: 0; }
.panel__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 12px; }
.tag { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #F4F2EE; color: var(--muted); }
.panel--findings { display: flex; flex-direction: column; }
.finds { display: grid; }
.finds li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.finds li:first-child { border-top: 0; }
.finds__more { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--line-2); color: var(--muted); font-size: 12.5px; }
.lvl { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.lvl--hi { background: #FDECEC; color: #C8353A; }
.lvl--mid { background: #FEF3E2; color: #B26B0A; }
.lvl--ok { background: #E7F6EE; color: #1E7A4C; }
.panel--map { background: linear-gradient(180deg, #F7FAFD, #fff); }
.flow { width: 100%; max-width: 380px; height: auto; margin: 8px auto 0; }
.flow__lines path { fill: none; stroke: #C9D3E0; stroke-width: 2; stroke-dasharray: 4 5; }
.flow__nodes rect { fill: #fff; stroke: #D8DEE8; stroke-width: 1.2; }
.flow__nodes rect.bad { fill: #FFF1E8; stroke: var(--accent); }
.flow__txt text { font: 600 10.5px Inter, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; }
.flow__ring { fill: none; stroke: var(--accent); stroke-width: 1.5; opacity: .35; }
.flow__note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; border-radius: 12px; background: #FFF6F0; box-shadow: inset 0 0 0 1px rgba(234,88,12,.18); }
.flow__note .z { margin-top: 5px; }
.flow__note p { display: grid; gap: 2px; line-height: 1.35; }
.flow__note p b { color: var(--ink); font-weight: 600; }
.flow__note p span { color: var(--muted); font-size: 12.5px; }
/* Живые детали макета: строки находок проявляются по очереди, когда макет виден */
.board .finds li, .board .st, .board .flow__note { opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + 200ms); }
.board.is-live .finds li, .board.is-live .st, .board.is-live .flow__note { opacity: 1; transform: none; }
.board .flow__lines path { stroke-dashoffset: 120; transition: stroke-dashoffset 1.4s var(--ease) .5s; }
.board.is-live .flow__lines path { stroke-dashoffset: 0; }
.no-js .board .finds li, .no-js .board .st, .no-js .board .flow__note { opacity: 1; transform: none; }

/* ─── Иконки (маски из одного набора) ─── */
.ic { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic-grid   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='2'/%3E%3Crect x='14' y='3' width='7' height='7' rx='2'/%3E%3Crect x='3' y='14' width='7' height='7' rx='2'/%3E%3Crect x='14' y='14' width='7' height='7' rx='2'/%3E%3C/svg%3E"); }
.ic-list   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4.5' cy='6' r='1'/%3E%3Ccircle cx='4.5' cy='12' r='1'/%3E%3Ccircle cx='4.5' cy='18' r='1'/%3E%3C/svg%3E"); }
.ic-flag   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 21V4h12l-2 4 2 4H5'/%3E%3C/svg%3E"); }
.ic-team   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c.8-3.6 3.4-5.5 6.5-5.5s5.7 1.9 6.5 5.5'/%3E%3Cpath d='M16 4.6a3.5 3.5 0 0 1 0 6.8M18 14.8c1.8.7 3 2.4 3.5 5.2'/%3E%3C/svg%3E"); }
.ic-pulse  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M5 15l4-5 3.5 3L19 5'/%3E%3C/svg%3E"); }
.ic-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M16 16l4.5 4.5'/%3E%3C/svg%3E"); }
.ic-filter { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M7 12h10M10 17h4'/%3E%3C/svg%3E"); }
.ic-cart   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.5l2.2 11h10.6L20.5 8H7'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.3'/%3E%3Ccircle cx='17' cy='19.5' r='1.3'/%3E%3C/svg%3E"); }
.ic-gear   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 2.5v3M12 18.5v3M2.5 12h3M18.5 12h3M5.3 5.3l2.1 2.1M16.6 16.6l2.1 2.1M5.3 18.7l2.1-2.1M16.6 7.4l2.1-2.1'/%3E%3C/svg%3E"); }
.ic-coin   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M10 16V8h3a2.5 2.5 0 0 1 0 5H8.5M8.5 14.5h5'/%3E%3C/svg%3E"); }
.ic-doc    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.ic-check  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.ic-chat   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3C/svg%3E"); }
.ic-home   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3.5 11L12 4l8.5 7M6 9.5V20h12V9.5'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E"); }
.ic-send   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M21 4L3 11l6.5 2.5L12 20z'/%3E%3Cpath d='M9.5 13.5L21 4'/%3E%3C/svg%3E"); }
.ic-phone  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M5 3.5h4l2 5-2.5 1.5a11 11 0 0 0 5.5 5.5L15.5 13l5 2v4a1.5 1.5 0 0 1-1.6 1.5C10.6 20 4 13.4 3.5 5.1A1.5 1.5 0 0 1 5 3.5z'/%3E%3C/svg%3E"); }
.ic-mail   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E"); }
.ic-pin    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }
.ic-star   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3.5l2.6 5.4 5.9.8-4.3 4.1 1 5.8L12 16.8l-5.2 2.8 1-5.8-4.3-4.1 5.9-.8z'/%3E%3C/svg%3E"); }
.ic-eye    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M2.5 12S6 5.5 12 5.5 21.5 12 21.5 12 18 18.5 12 18.5 2.5 12 2.5 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.ic-rocket { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M14 4c3.5 0 6 2.5 6 6-1.5 3-5 6.5-8.5 8L8 14.5C9.5 11 11 5.5 14 4z'/%3E%3Ccircle cx='15' cy='9' r='1.6'/%3E%3Cpath d='M8 14.5L5 13l2-3.5h3M11.5 18L13 21l3.5-2v-3M6.5 17.5L4 20'/%3E%3C/svg%3E"); }
.ic-target { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.5'/%3E%3Ccircle cx='12' cy='12' r='1' fill='black'/%3E%3C/svg%3E"); }
.ic-shield { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.2 8.2-7.5 9.5-4.3-1.3-7.5-4.9-7.5-9.5V6z'/%3E%3Cpath d='M8.5 12l2.5 2.5 4.5-5'/%3E%3C/svg%3E"); }
.ic-camera { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5h3.5L8.5 6h7L17 8.5h3.5V19h-17z'/%3E%3Ccircle cx='12' cy='13.5' r='3.5'/%3E%3C/svg%3E"); }
.ic-palette{ --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 3.5a8.5 8.5 0 1 0 0 17c1.4 0 1.8-1 1.3-2-.6-1.2.1-2.5 1.5-2.5H17a3.5 3.5 0 0 0 3.5-3.5C20.5 7.3 16.7 3.5 12 3.5z'/%3E%3Ccircle cx='8' cy='11' r='1.2' fill='black'/%3E%3Ccircle cx='11' cy='7.5' r='1.2' fill='black'/%3E%3Ccircle cx='15.5' cy='8.5' r='1.2' fill='black'/%3E%3C/svg%3E"); }
.ic-tag    { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M3.5 12.5V4h8.5l8.5 8.5-8.5 8.5z'/%3E%3Ccircle cx='8' cy='8.5' r='1.5'/%3E%3C/svg%3E"); }
.ic-news   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='3.5' y='4.5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M7.5 9h9M7.5 12.5h9M7.5 16h5'/%3E%3C/svg%3E"); }
.ic-reply  { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M9.5 6L4 11.5 9.5 17'/%3E%3Cpath d='M4.5 11.5h9a6.5 6.5 0 0 1 6.5 6.5'/%3E%3C/svg%3E"); }
.ic-card   { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='18' height='13' rx='2.5'/%3E%3Cpath d='M3 10h18M7 15h4'/%3E%3C/svg%3E"); }

/* ─── Общие секции ─── */
.sec { position: relative; padding-top: 128px; }
.sec--tight { padding-top: 96px; }
.head { text-align: center; max-width: 760px; margin: 0 auto 60px; }
.head--left { text-align: left; margin-left: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--ink);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.h2 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.05; letter-spacing: -.042em; }
.h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.head__sub { margin-top: 18px; font-size: 17.5px; color: var(--muted); }
.lead { font-size: 17.5px; color: var(--muted); }
.lead b, .tile p b, .prose b { color: var(--ink); font-weight: 600; }
.prose { display: grid; gap: 16px; font-size: 17px; color: var(--text); }
.prose p { max-width: 68ch; }

/* ─── Анимация появления ─── */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
  .js .rv--scale { transform: translateY(26px) scale(.96); }
  .js .rv--left { transform: translateX(-32px); }
  .js .rv--right { transform: translateX(32px); }
  .js .rv.is-in { opacity: 1; transform: none; }

  /* Заголовок по словам: каждое слово поднимается из размытия */
  .js [data-split] .w { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(.38em); transition: opacity .8s var(--ease), filter .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0s) + var(--wi) * 55ms); }
  .js [data-split].is-in .w { opacity: 1; filter: none; transform: none; }

  /* Картинка мягко наезжает от прокрутки */
  @supports (animation-timeline: view()) {
    .zoom { overflow: hidden; }
    .zoom > img { animation: zoom-out linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
    .lift { animation: lift-in linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  }
}
@keyframes zoom-out { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lift-in { from { transform: translateY(70px) scale(.94); } to { transform: none; } }
[data-split] .w { white-space: nowrap; }

/* ─── Факты ─── */

/* ─── Этапы ─── */
.stagebox {
  position: relative; overflow: hidden;
  min-height: 600px; border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 45%, var(--sand) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  padding: 64px 24px;
}
.cloud--s1 { left: -120px; bottom: -40px; width: 500px; --depth: 18px; }
.cloud--s2 { right: -100px; top: -30px; width: 380px; opacity: .9; --depth: 24px; }
.stagecard {
  position: relative; z-index: 1;
  width: min(100%, 680px);
  display: grid; grid-template-columns: auto 1fr; gap: 30px;
  padding: 38px; border-radius: 28px;
  background: rgba(255,255,255,.88); box-shadow: var(--shadow-lg);
}
.stagecard__num { font-size: 68px; line-height: .9; font-weight: 600; letter-spacing: -.05em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stagecard h3 { font-size: 30px; }
.stagecard p { margin-top: 10px; }
.stagecard__num, .stagecard__body { transition: opacity .3s var(--ease), transform .4s var(--ease), filter .3s; }
.stagecard.is-out .stagecard__num, .stagecard.is-out .stagecard__body { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.stagecard__bar { position: absolute; left: 38px; right: 38px; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.stagecard__bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, .2)); transition: transform .6s var(--ease); }
.ticks { margin-top: 18px; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EA580C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }

.seg {
  position: relative; z-index: 1;
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink); opacity: .7; white-space: nowrap;
  transition: color .35s, opacity .25s;
}
.seg button:hover { opacity: 1; }
.seg button[aria-selected="true"] { color: #fff; opacity: 1; }
/* Плашка лежит под всеми кнопками сразу и открывается только под
   выбранной через clip-path: ни ширина, ни раскладка не анимируются. */
.seg__pill { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: calc(100% - 10px); border-radius: 999px; background: var(--ink); clip-path: inset(0 var(--pr, 100%) 0 var(--pl, 0) round 999px); transition: clip-path .5s var(--ease); }
.no-js .seg button[aria-selected="true"] { background: var(--ink); }
.seg--white { background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.seg-wrap { display: flex; justify-content: center; margin: -20px 0 44px; }

/* ─── Сплиты ─── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split--rev .split__copy { order: 2; }
.split__copy .lead { margin-top: 22px; max-width: 480px; }
.split__copy .btn { margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.chips span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: transform .3s var(--ease), box-shadow .3s; }
.chips span:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.split__vis { position: relative; border-radius: var(--r-xl); padding: 52px 0 0 52px; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; }
.split__vis--sky { background: linear-gradient(170deg, var(--sky-1), var(--sky-2) 55%, var(--sand)); }
.split__vis--warm { background: linear-gradient(190deg, var(--sky-2), var(--sand) 60%, #E8D8C6); padding: 52px 52px 0 0; justify-content: flex-end; }
.mini { width: 100%; background: #fff; border-radius: 22px 0 0 0; padding: 24px; box-shadow: var(--shadow-lg); font-size: 13px; min-height: 450px; }
.split__vis--warm .mini { border-radius: 0 22px 0 0; }
.mini__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mini__h p { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; }
.mini__chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line-2); font-weight: 500; color: var(--ink); font-size: 12.5px; }
.mini__search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line-2); color: #9AA0B2; }
.mini__group { display: flex; align-items: center; gap: 8px; margin: 16px 0 6px; font-weight: 600; color: var(--ink); }
.mini__group span { font-size: 11px; padding: 2px 7px; border-radius: 999px; background: #F4F2EE; color: var(--muted); }
.mini__table { width: 100%; border-collapse: collapse; }
.mini__table th { text-align: left; font-weight: 500; color: #9AA0B2; font-size: 11.5px; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.mini__table td { padding: 12px 6px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
.mini__table td:nth-child(2) { color: var(--muted); }
.mini__table td:first-child { box-shadow: inset 3px 0 0 var(--amber); padding-left: 12px; }
.mini__table tr.is-hi td:first-child { box-shadow: inset 3px 0 0 var(--red); }
.mini__table tbody tr { transition: background-color .2s; }
.mini__table tbody tr:hover { background: #FBFAF8; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpis div { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #FAF8F5; box-shadow: 0 0 0 1px var(--line); }
.kpis .k-ic { position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.kpis p { display: grid; line-height: 1.25; }
.kpis b { color: var(--ink); font-size: 14px; font-weight: 600; }
.kpis span { color: var(--muted); font-size: 12px; }
.mini__label { margin-top: 22px; font-weight: 600; color: var(--ink); font-size: 14px; }
.legend { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 12px; }
.lg { width: 16px; height: 0; border-top: 2px solid; margin-left: 6px; }
.lg--plan { border-color: #9AA6BC; border-top-style: dashed; margin-left: 0; }
.lg--fact { border-color: var(--accent); }
.chart { width: 100%; height: 150px; margin-top: 12px; overflow: visible; }
.chart__grid path { stroke: var(--line); stroke-width: 1; }
.chart__plan { fill: none; stroke: #9AA6BC; stroke-width: 2; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart__fact { fill: none; stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.chart__area { fill: url(#chartFill); opacity: 0; transition: opacity 1s var(--ease) 1.2s; }
.chart__now { stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.is-in .chart__fact { stroke-dashoffset: 0; }
.is-in .chart__area { opacity: 1; }
.no-js .chart__fact { stroke-dashoffset: 0; } .no-js .chart__area { opacity: 1; }

/* ─── Бенто ─── */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  grid-column: span 2; position: relative; overflow: hidden;
  background: var(--card-2); border-radius: var(--r-lg); padding: 30px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: #ECE7DF; }
.tile--wide { grid-column: span 3; }
.tile--full { grid-column: 1 / -1; }
.tile h3 { font-size: 21px; letter-spacing: -.025em; }
.tile p { color: var(--muted); font-size: 15px; }
.tile__vis { min-height: 230px; margin-bottom: 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.tile__ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px var(--line); color: var(--ink); margin-bottom: 26px; transition: transform .5s var(--ease), background-color .3s, color .3s; }
.tile__ic .ic { width: 21px; height: 21px; }
.tile:hover .tile__ic { transform: rotate(-6deg) scale(1.06); background: var(--ink); color: #fff; }
.tile__num { position: absolute; right: 26px; top: 22px; font-size: 13px; font-weight: 600; color: rgba(11,26,58,.32); font-variant-numeric: tabular-nums; }
.zones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: var(--shadow); max-width: 380px; }
.zone { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: #F7F5F1; font-weight: 500; font-size: 14px; color: var(--ink); transition: opacity .35s, transform .35s var(--ease); }
.zone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.zone--red::before { background: var(--red); } .zone--amber::before { background: var(--amber); } .zone--green::before { background: var(--green); }
.zones.only-weak .zone--green { opacity: .25; transform: scale(.92); }
.switch { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 18px 0 8px; border: 0; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-weight: 500; color: var(--ink); font-size: 14px; cursor: pointer; }
.switch__track { width: 44px; height: 26px; border-radius: 999px; background: #D7D3CC; position: relative; transition: background-color .25s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .35s var(--ease); }
.switch[aria-checked="true"] .switch__track { background: var(--green); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(18px); }
.docs { display: grid; grid-template-columns: repeat(3, auto); gap: 10px; }
.docs span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-weight: 500; font-size: 13.5px; color: var(--ink); white-space: nowrap; transition: transform .5s var(--ease); }
.docs span:nth-child(3n+2) { transform: translateY(16px); }
.docs span .ic { color: var(--accent); }
.tile:hover .docs span:nth-child(3n+2) { transform: translateY(4px); }
.tile:hover .docs span:nth-child(3n+1) { transform: translateY(-4px) rotate(-1deg); }
.tile:hover .docs span:nth-child(3n) { transform: translateY(-4px) rotate(1deg); }

/* ─── Цитата, закрашивающаяся от прокрутки ─── */
.say { text-align: center; padding-top: 168px; }
.say blockquote { margin: 0 auto; max-width: 960px; }
.say__text { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.12; font-weight: 600; color: var(--ink); letter-spacing: -.038em; text-wrap: balance; }
.js .say__text .sw { opacity: clamp(.16, calc((var(--p, 0) * (var(--n) + 4) - var(--wi)) / 3), 1); transition: opacity .15s linear; }
@media (prefers-reduced-motion: reduce) { .js .say__text .sw { opacity: 1; } }
.say__who { display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 38px; }
.who p { display: grid; line-height: 1.3; }
.who b { color: var(--ink); font-size: 15px; font-weight: 600; }
.who span { color: var(--muted); font-size: 13.5px; }
.mark-dot { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); flex: none; }
.mark-dot svg { width: 27px; height: 21px; fill: #fff; }
.mark-dot--sm { width: 40px; height: 40px; }
.mark-dot--sm svg { width: 19px; height: 15px; }
.avatar { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; flex: none; box-shadow: 0 0 0 3px #fff, var(--shadow); }

/* ─── Кейс (карточка) ─── */
.case { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.case__main { display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s, transform .5s var(--ease); }
.case__main:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); transform: translateY(-4px); }
.case__photo { background: linear-gradient(180deg, var(--sky-2), var(--sand)); padding: 30px 30px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; min-height: 360px; }
.case__photo img { width: 100%; max-width: 260px; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-lg); transition: transform .7s var(--ease); }
.case__main:hover .case__photo img { transform: translateY(-10px) scale(1.02); }
.case__info { padding: 34px; display: flex; flex-direction: column; gap: 14px; }
.badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.case__info h3 { font-size: 27px; line-height: 1.15; }
.case__info > p { color: var(--muted); }
.case__by { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.case__side { display: grid; gap: 16px; grid-template-rows: auto auto 1fr; }
.fact { background: var(--card-2); border-radius: var(--r-lg); padding: 22px 24px; display: grid; gap: 2px; }
.fact b { font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.035em; }
.fact p { color: var(--muted); font-size: 14px; }
.fact__cap { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.fact--img { background: #fff; box-shadow: 0 0 0 1px var(--line); padding: 14px; gap: 12px; align-content: start; transition: box-shadow .4s; }
.fact--img:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.fact--img img { border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.fact--img p { padding: 0 8px 6px; color: var(--text); }
.fact--img p b { font-size: 15px; letter-spacing: -.01em; }
.arrow { display: inline-block; color: var(--accent); transition: transform .3s var(--ease); }
a:hover .arrow { transform: translateX(4px); }

/* ─── Тарифы ─── */
.pricing { position: relative; }
.pricing::before {
  content: ""; position: absolute; z-index: -1; left: 50%; translate: -50% 0; top: 40px; width: 100vw; height: 960px;
  background: linear-gradient(180deg, var(--paper), #E6EDF5 40%, var(--paper));
}
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans[hidden] { display: none; }
.plans--2 { grid-template-columns: repeat(2, minmax(0, 384px)); justify-content: center; }
.plans.is-entering .plan { animation: plan-in .6s var(--ease) both; }
.plans.is-entering .plan:nth-child(2) { animation-delay: .06s; }
.plans.is-entering .plan:nth-child(3) { animation-delay: .12s; }
@keyframes plan-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.plan { position: relative; background: #fff; border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s; }
.plan:hover { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.plan--pro { background: linear-gradient(180deg, #CFE0F1, #EEF3F8 55%, #fff); box-shadow: 0 0 0 1.5px #A9C6E6, var(--shadow-lg); }
@media (min-width: 901px) { .plan--pro { margin-block: -14px; } }
.plan__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; color: var(--ink); font-size: 15.5px; }
.save { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.plan__price { margin-top: 12px; font-size: 36px; font-weight: 600; color: var(--ink); letter-spacing: -.045em; line-height: 1.1; }
.plan__price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__desc { margin-top: 12px; color: var(--muted); font-size: 14.5px; min-height: 66px; }
.plan ul { margin: 22px 0 28px; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; flex: 1; align-content: start; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--ink); }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent); }
.pricing__foot { text-align: center; margin: 40px auto 0; max-width: 640px; color: var(--muted); font-size: 14px; }

/* ─── Команда (превью) ─── */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.person { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; background: var(--card-2); aspect-ratio: 4 / 5; isolation: isolate; }
.person img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform 1s var(--ease); }
.person:hover img { transform: scale(1.05); }
.person::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(11,26,58,.78)); z-index: 1; }
.person__info { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff; display: grid; gap: 2px; }
.person__info b { font-size: 21px; font-weight: 600; letter-spacing: -.02em; }
.person__info span { font-size: 14px; opacity: .85; }
.person__go { position: absolute; right: 18px; top: 18px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.9); color: var(--ink); transform: scale(.8); opacity: 0; transition: transform .4s var(--ease), opacity .3s; }
.person__go svg { width: 16px; height: 16px; }
.person:hover .person__go, .person:focus-visible .person__go { transform: none; opacity: 1; }

/* ─── Вопросы ─── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.qa { border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s; interpolate-size: allow-keywords; }
.qa[open] { box-shadow: 0 0 0 1px var(--line-2), var(--shadow); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa__plus { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--card-2); flex: none; transition: background-color .3s, transform .5s var(--ease); }
.qa__plus::before, .qa__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), background-color .3s; }
.qa__plus::after { transform: rotate(90deg); }
.qa[open] .qa__plus { background: var(--accent); transform: rotate(180deg); }
.qa[open] .qa__plus::before, .qa[open] .qa__plus::after { background: #fff; }
.qa[open] .qa__plus::after { transform: rotate(0deg); }
.qa__a { padding: 0 24px 22px; color: var(--muted); font-size: 15.5px; max-width: 70ch; }
.qa::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* ─── Контакты и форма ─── */
.contact { display: grid; grid-template-columns: 1fr 1.05fr; gap: 24px; align-items: start; }
.cinfo { display: grid; gap: 16px; }
.cbox { background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.cbox__t { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.clist { display: grid; }
.clist li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.clist li:first-child { border-top: 0; padding-top: 0; }
.clist__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--card-2); color: var(--ink); }
.clist__ic .ic { width: 18px; height: 18px; }
.clist b { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.clist a, .clist strong { font-size: 16.5px; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.clist a:hover { color: var(--accent); }
.clist small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.clist .notice { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: #FEF3E2; color: #8A5300; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills > * { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--card-2); font-size: 14px; font-weight: 500; color: var(--ink); }
.pills a { background: var(--ink); color: #fff; transition: background-color .25s; }
.pills a:hover { background: var(--ink-2); }
.pills--soft > * { background: #F7F5F1; box-shadow: inset 0 0 0 1px var(--line); }
.cbox p { color: var(--muted); font-size: 14.5px; margin-bottom: 12px; }

.form { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 36px; background: linear-gradient(180deg, #D6E5F3 0%, #EEF3F8 40%, #fff 100%); box-shadow: 0 0 0 1px rgba(169,198,230,.7), var(--shadow-lg); }
.form__t { font-size: 28px; line-height: 1.12; letter-spacing: -.035em; }
.form__sub { margin: 10px 0 26px; color: var(--muted); font-size: 15px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field input, .field textarea {
  width: 100%; border: 0; border-radius: 14px; background: #fff;
  padding: 14px 16px; font-size: 15.5px; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition: box-shadow .25s, background-color .25s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #A3A9B9; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1px rgba(11,26,58,.25); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(234,88,12,.12); }
.field.is-bad input { box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 4px rgba(229,72,77,.12); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; cursor: pointer; font-size: 14px; color: var(--text); line-height: 1.45; }
.consent input { appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, box-shadow .2s; }
.consent input::after { content: ""; width: 12px; height: 12px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / contain no-repeat; transform: scale(0); transition: transform .3s var(--ease); }
.consent input:checked { background: var(--accent); box-shadow: none; }
.consent input:checked::after { transform: scale(1); }
.consent__req { color: var(--accent); font-weight: 600; white-space: nowrap; }
.policy { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0 34px; font-size: 13.5px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.policy:hover { text-decoration-color: var(--accent); }
.policy svg { width: 14px; height: 14px; }
.form .btn { margin-top: 22px; }
.status { min-height: 22px; margin-top: 12px; font-size: 14px; text-align: center; }
.status[data-state="err"] { color: #C8353A; }

/* ─── Окно «Заявка отправлена» ─── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(11,26,58,.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .35s; }
.modal__card { position: relative; width: min(100%, 420px); padding: 36px 30px 30px; border-radius: 28px; background: #fff; box-shadow: var(--shadow-lg); text-align: center; transform: translateY(16px) scale(.96); opacity: 0; transition: transform .5s var(--ease), opacity .3s; }
.modal.is-in .modal__bg { opacity: 1; }
.modal.is-in .modal__card { transform: none; opacity: 1; }
.modal__ic { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.modal__ic svg { width: 30px; height: 30px; }
.modal__ic path { stroke-dasharray: 30; stroke-dashoffset: 30; transition: stroke-dashoffset .6s var(--ease) .25s; }
.modal.is-in .modal__ic path { stroke-dashoffset: 0; }
.modal h2 { font-size: 26px; }
.modal p { margin: 10px 0 24px; color: var(--muted); }

/* ─── Финал ─── */
.final {
  position: relative; overflow: hidden; margin-top: 128px;
  padding: 150px var(--gutter) 220px; text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--sky-3) 30%, var(--sky-2) 65%, var(--sky-1) 100%);
}
.cloud--f1 { left: -80px; bottom: -40px; width: 540px; --depth: 24px; }
.cloud--f2 { right: -60px; bottom: 10px; width: 440px; --depth: 30px; }
.cloud--f3 { left: 40%; bottom: 120px; width: 200px; opacity: .6; --depth: 14px; }
.final__copy { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.final h2 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; letter-spacing: -.05em; }
.final p { margin: 20px auto 34px; max-width: 520px; font-size: 17.5px; color: #3C4763; }
.final .hero__btns { margin-top: 0; }

.foot { background: var(--sky-1); padding: 0 var(--gutter) 34px; }
.foot__grid { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; padding: 40px 0 30px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.1fr; gap: 28px; border-top: 1px solid rgba(255,255,255,.5); }
.foot__about p { margin-top: 14px; max-width: 300px; font-size: 14px; color: rgba(11,26,58,.72); }
.foot__col b { display: block; margin-bottom: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(11,26,58,.55); }
.foot__col a, .foot__col span { display: block; padding: 4px 0; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.foot__col a { opacity: .8; transition: opacity .2s; }
.foot__col a:hover { opacity: 1; }
.foot__legal { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.5); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: rgba(11,26,58,.62); }
.foot__legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(11,26,58,.25); }

/* ═══ Внутренние страницы ═══ */

/* История основателя */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.photo { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--card-2); box-shadow: var(--shadow-lg); }
/* --fy — высота, по которой держится кадр: для снимков в полный рост
   ставится ближе к верху, чтобы при обрезке не терялось лицо. */
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% var(--fy, 50%); transform-origin: 50% var(--fy, 50%); }
.photo--tall { aspect-ratio: 4 / 5; }
.photo__tag { position: absolute; left: 18px; bottom: 18px; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.photo__tag b { display: block; font-size: 14px; color: var(--ink); line-height: 1.2; }
.photo__tag span { display: block; font-size: 12.5px; color: var(--muted); }

/* Лента времени */
.timeline { position: relative; display: grid; gap: 22px; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.timeline__fill { position: absolute; left: 27px; top: 10px; width: 2px; height: calc(100% - 20px); background: var(--accent); transform-origin: top; transform: scaleY(var(--tp, 0)); }
.tl { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 24px; }
.tl__dot { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 700; color: var(--ink); transition: background-color .4s, color .4s, box-shadow .4s; }
.tl.is-in .tl__dot { background: var(--accent); color: #fff; box-shadow: 0 0 0 6px rgba(234,88,12,.14); }
.tl__card { background: #fff; border-radius: var(--r-lg); padding: 26px 28px; box-shadow: 0 0 0 1px var(--line); }
.tl__when { font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.tl__card h3 { margin-top: 6px; font-size: 22px; }
.tl__card p { margin-top: 8px; color: var(--muted); }

/* Большая карточка-цитата */
.story { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 64px; background: linear-gradient(160deg, var(--sky-1), var(--sky-2) 50%, var(--sand)); }
.story .cloud { opacity: .9; }
.cloud--st1 { right: -120px; top: -50px; width: 420px; --depth: 20px; }
.cloud--st2 { left: -140px; bottom: -70px; width: 380px; --depth: 16px; }
.story__in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story__q { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; font-weight: 600; color: var(--ink); letter-spacing: -.04em; }
.story__body { display: grid; gap: 14px; padding: 32px; border-radius: var(--r-lg); background: rgba(255,255,255,.88); box-shadow: var(--shadow-lg); font-size: 16px; }

/* Карточки-направления с номером */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.ncard { position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 10px; transition: transform .5s var(--ease), box-shadow .5s; overflow: hidden; }
.ncard:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px var(--line-2), var(--shadow-lg); }
.ncard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ncard__n { font-size: 44px; font-weight: 600; line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px rgba(11,26,58,.22); transition: color .4s, -webkit-text-stroke-color .4s; }
.ncard:hover .ncard__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.ncard h3 { font-size: 21px; }
.ncard p { color: var(--muted); font-size: 15px; }
.ncard--soft { background: var(--card-2); box-shadow: none; }

/* Ряд «на что смотрим» */
.lens { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lens li { background: #fff; border-radius: 20px; padding: 22px; box-shadow: 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; transition: transform .45s var(--ease), background-color .3s, color .3s; }
.lens li:hover { transform: translateY(-4px); background: var(--ink); }
.lens li:hover b, .lens li:hover p { color: #fff; }
.lens li:hover .tile__ic { background: var(--accent); color: #fff; box-shadow: none; }
.lens .tile__ic { margin-bottom: 6px; }
.lens b { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; transition: color .3s; }
.lens p { font-size: 14px; color: var(--muted); transition: color .3s; }

/* Карточка-заметка */
.note { margin-top: 28px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--card-2); color: var(--text); font-size: 16px; max-width: 900px; margin-inline: auto; text-align: center; }

/* Руководство */
.leader { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.leader + .leader { margin-top: 120px; }
.leader--rev .leader__photo { order: 2; }
.leader__photo { position: sticky; top: 104px; }
.leader__role { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.leader h2 { margin-top: 10px; font-size: clamp(34px, 4vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
.leader__pos { margin-top: 8px; font-size: 17px; font-weight: 500; color: var(--ink); }
.leader .pills { margin-top: 20px; }
.leader .prose { margin-top: 28px; }
.focus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 32px; }
.focus li { background: #fff; border-radius: 18px; padding: 18px; box-shadow: 0 0 0 1px var(--line); }
.focus b { display: block; font-size: 15.5px; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.focus p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.focus__cap { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

/* Шаги решения */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; background: #fff; border-radius: var(--r-lg); padding: 30px; box-shadow: 0 0 0 1px var(--line); }
.step__k { font-size: 13px; font-weight: 600; color: var(--accent); }
.step h3 { margin-top: 10px; font-size: 21px; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; z-index: 1; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: translateY(-50%) rotate(45deg); }

/* Кейс: было/стало */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.ba__was { background: #fff; border-radius: var(--r-xl); padding: 40px; box-shadow: 0 0 0 1px var(--line); }
.ba__was h3 { margin: 12px 0 14px; font-size: 26px; }
.ba__was > p { color: var(--muted); }
.crosses { margin-top: 22px; display: grid; gap: 10px; }
.crosses li { position: relative; padding-left: 30px; color: var(--ink); }
.crosses li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #FDECEC url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8353A' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M8 8l8 8M16 8l-8 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.ba__now { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(180deg, var(--sky-2), var(--sand)); padding: 40px 40px 0; display: flex; flex-direction: column; align-items: center; }
.ba__now .badge { align-self: center; background: #E7F6EE; color: #1E7A4C; }
.ba__now figure { margin: 22px 0 0; width: min(100%, 300px); }
.ba__now img { border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); }
.ba__now figcaption { margin-top: 14px; padding-bottom: 24px; font-size: 14px; color: var(--muted); text-align: center; }

/* Кейс: шесть направлений со снимками */
.works { display: grid; gap: 20px; }
.work { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 40px; border-radius: var(--r-xl); background: #fff; box-shadow: 0 0 0 1px var(--line); }
.work:nth-child(even) .work__copy { order: 2; }
.work__n { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; }
.work h3 { margin-top: 18px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.1; }
.work__copy > p { margin-top: 14px; color: var(--muted); font-size: 16px; }
.work__shot { margin: 0; border-radius: 24px; padding: 28px 28px 0; background: linear-gradient(180deg, var(--sky-2), var(--sand)); overflow: hidden; display: flex; flex-direction: column; align-items: center; }
.work__shot img { width: min(100%, 300px); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); }
.work__shot--wide { padding: 28px; }
.work__shot--wide img { width: 100%; border-radius: 16px; }
.work__shot figcaption { align-self: stretch; margin: 0 -28px; padding: 14px 20px; background: rgba(255,255,255,.75); font-size: 13.5px; color: var(--muted); text-align: center; }
.work__shot--wide figcaption { margin: 20px -28px -28px; }
.work__icon { width: 100%; min-height: 280px; display: grid; place-items: center; }
.work__icon .ic { width: 64px; height: 64px; color: var(--ink); opacity: .85; }

/* Кейс: цифры */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: var(--r-lg); padding: 28px; box-shadow: 0 0 0 1px var(--line); }
.stat b { display: block; font-size: clamp(40px, 4.6vw, 60px); font-weight: 600; line-height: 1; letter-spacing: -.05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat p { margin-top: 12px; color: var(--muted); font-size: 14.5px; }
.stat--accent { background: var(--ink); box-shadow: none; }
.stat--accent b { color: #fff; }
.stat--accent p { color: rgba(255,255,255,.7); }
.win { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.win__copy { background: var(--card-2); border-radius: var(--r-xl); padding: 40px; }
.win__copy h3 { font-size: 28px; margin: 12px 0 14px; }
.win__copy > p { color: var(--muted); }
.win__copy .ticks { margin-top: 22px; }
.win__shot { margin: 0; background: #fff; border-radius: var(--r-xl); padding: 24px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.win__shot img { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.win__shot figcaption { font-size: 13.5px; color: var(--muted); }

/* Кейсы: карточка проекта в списке */
.project { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: var(--r-xl); overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .4s, transform .5s var(--ease); }
.project:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow-lg); transform: translateY(-4px); }
.project__shot { position: relative; background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 50%, var(--sand)); padding: 40px 40px 0; display: flex; align-items: flex-end; justify-content: center; min-height: 460px; overflow: hidden; }
.project__shot img { width: min(100%, 290px); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); transition: transform .8s var(--ease); }
.project:hover .project__shot img { transform: translateY(-12px); }
.project__body { padding: 44px; display: flex; flex-direction: column; gap: 16px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.project__meta span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--card-2); color: var(--ink); }
.project__meta span:first-child { background: var(--accent-soft); color: var(--accent); }
.project h3 { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.1; }
.project dl { margin: 6px 0 0; display: grid; gap: 14px; }
.project dt { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project dd { margin: 3px 0 0; color: var(--text); }
.project .link-arrow { margin-top: auto; padding-top: 10px; }

/* ═══ Адаптив ═══ */
@media (max-width: 1180px) {
  .nav__links a { padding: 8px 9px; }
}
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .nav__right { margin-left: auto; }
  .board { grid-template-columns: 1fr; }
  .board__side { display: none; }
  .split, .founder, .leader { gap: 44px; }
  .lens { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .work { gap: 36px; padding: 32px; }
}
@media (max-width: 900px) {
  :root { --gutter: 20px; }
  .sec { padding-top: 104px; }
  .nav__cta { display: none; }
  .board__grid { grid-template-columns: 1fr; }
  .board__stages { display: flex; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .board__stages::-webkit-scrollbar { display: none; }
  .st { flex: none; }
  .split, .split--rev { grid-template-columns: 1fr; }
  .split--rev .split__copy { order: 0; }
  .split__vis { min-height: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile--wide { grid-column: span 2; }
  .tile:not(.tile--wide):not(.tile--full) { grid-column: span 1; }
  .case { grid-template-columns: 1fr; }
  .case__side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .fact--img { grid-column: span 2; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan--pro { order: -1; }
  .team { grid-template-columns: 1fr 1fr; }
  .team .person:last-child { grid-column: span 2; aspect-ratio: 16 / 10; }
  .contact { grid-template-columns: 1fr; }
  .founder, .leader { grid-template-columns: 1fr; }
  .leader--rev .leader__photo { order: 0; }
  .leader__photo { position: relative; top: 0; max-width: 460px; }
  .story { padding: 40px; }
  .story__in { grid-template-columns: 1fr; gap: 28px; }
  .cards--3, .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { right: 50%; top: auto; bottom: -13px; transform: translateX(50%) rotate(135deg); }
  .ba, .win { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .work:nth-child(even) .work__copy { order: 0; }
  .stats { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: 1fr; }
  .project__shot { min-height: 380px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 80px; }
  .nav { inset: 10px var(--gutter) auto; }
  .nav__bar { height: 58px; padding: 0 6px 0 18px; }
  .sec { padding-top: 88px; }
  .head { margin-bottom: 40px; }
  .hero { padding-top: 128px; }
  .pill-note { font-size: 12.5px; }
  .pill-note__city { display: none; }
  .hero__btns .btn { width: 100%; }
  .board-wrap { margin-top: 52px; }
  .board { border-radius: 22px 22px 0 0; box-shadow: 0 0 0 5px rgba(255,255,255,.5), var(--shadow-lg); }
  .board__main { padding: 16px; }
  .board__search { display: none; }
  .cloud--h1 { width: 300px; left: -170px; top: 360px; }
  .cloud--h2 { width: 300px; right: -180px; top: 130px; }
  .cloud--h3, .cloud--h4 { display: none; }
  .phero { padding: 128px var(--gutter) 72px; }
  .cloud--p1 { width: 280px; left: -150px; }
  .cloud--p2 { width: 260px; right: -150px; top: 90px; }
  .cloud--p3 { display: none; }
  .stagebox { min-height: 0; padding: 32px 12px 20px; border-radius: 24px; gap: 22px; }
  .stagecard { grid-template-columns: 1fr; gap: 10px; padding: 26px 24px 30px; }
  .stagecard__bar { left: 24px; right: 24px; }
  .stagecard__num { font-size: 46px; }
  .stagecard h3 { font-size: 25px; }
  .seg { justify-content: flex-start; }
  .split__vis { padding: 28px 0 0 20px; }
  .split__vis--warm { padding: 28px 20px 0 0; }
  .mini { padding: 18px; min-height: 0; }
  .mini__table th:nth-child(2), .mini__table td:nth-child(2) { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile--wide, .tile:not(.tile--wide):not(.tile--full) { grid-column: auto; padding: 24px; }
  .docs { grid-template-columns: repeat(2, auto); }
  .say { padding-top: 120px; }
  .case__main { grid-template-columns: 1fr; }
  .case__photo { min-height: 0; max-height: 340px; align-items: flex-start; }
  .case__info { padding: 24px; }
  .case__side { grid-template-columns: 1fr; }
  .fact--img { grid-column: auto; }
  .team { grid-template-columns: 1fr; }
  .team .person:last-child { grid-column: auto; aspect-ratio: 4 / 5; }
  .qa summary { padding: 18px 18px; font-size: 16px; }
  .qa__a { padding: 0 18px 18px; }
  .cbox { padding: 22px; }
  .form { padding: 26px 20px; border-radius: 26px; }
  .fgrid { grid-template-columns: 1fr; }
  .final { padding: 110px var(--gutter) 170px; margin-top: 96px; }
  .cloud--f1 { width: 340px; left: -120px; }
  .cloud--f2 { width: 280px; right: -120px; }
  .cloud--f3 { display: none; }
  .foot__grid { grid-template-columns: 1fr; gap: 24px; }
  .story { padding: 28px 20px; border-radius: 26px; }
  .story__body { padding: 22px; }
  .cards { grid-template-columns: 1fr; }
  .lens { grid-template-columns: 1fr 1fr; }
  .lens li:last-child { grid-column: span 2; }
  .focus { grid-template-columns: 1fr; }
  .timeline::before, .timeline__fill { left: 21px; }
  .tl { grid-template-columns: 44px 1fr; gap: 14px; }
  .tl__dot { width: 44px; height: 44px; font-size: 10.5px; }
  .tl__card { padding: 20px; }
  .ba__was, .win__copy { padding: 26px; }
  .ba__now { padding: 28px 20px 0; }
  .work { padding: 22px; gap: 24px; border-radius: 26px; }
  .work__shot { padding: 20px 20px 0; }
  .work__shot figcaption { margin: 0 -20px; }
  .work__shot--wide { padding: 18px; }
  .work__shot--wide figcaption { margin: 16px -18px -18px; }
  .stats { gap: 10px; }
  .stat { padding: 20px; }
  .project__shot { padding: 28px 28px 0; min-height: 320px; }
  .project__body { padding: 26px; }
}
@media (max-width: 380px) {
  .stats { grid-template-columns: 1fr; }
  .lens { grid-template-columns: 1fr; }
  .lens li:last-child { grid-column: auto; }
}

/* Экраны, где нельзя навести мышь: эффекты наведения не залипают */
@media (hover: none) {
  .tile:hover, .plan:hover, .ncard:hover, .case__main:hover, .project:hover, .lens li:hover { transform: none; }
  .lens li:hover { background: #fff; }
  .lens li:hover b { color: var(--ink); } .lens li:hover p { color: var(--muted); }
  .person__go { opacity: 1; transform: none; }
}
/* ═══════════════════════════════════════════════════════════════
   Финальная доводка: переходы, мелочи и пасхалки
   ═══════════════════════════════════════════════════════════════ */

/* Плавный переход между страницами сайта (браузер делает сам) */
@view-transition { navigation: auto; }
.nav__bar { view-transition-name: nav; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Полоска прочитанного сверху — от прокрутки, без скрипта */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { transform: scaleX(1); } }

/* Своя полоса прокрутки — как на прежнем сайте, в светлых цветах.
   Стандартная полоса прячется только там, где видна своя. */
.site-scroll { position: fixed; z-index: 65; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: min(40vh, 345px); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.site-scroll__rail {
  position: relative; pointer-events: auto; width: 8px; height: 100%; padding: 0; border: 0; cursor: ns-resize; border-radius: 999px;
  background: linear-gradient(180deg, rgba(11,26,58,.12), rgba(11,26,58,.06));
  box-shadow: inset 0 0 0 1px rgba(11,26,58,.06), 0 0 0 1px rgba(255,255,255,.6), 0 14px 36px -10px rgba(11,26,58,.25);
}
.site-scroll__rail::before { content: ""; position: absolute; inset: -10px; pointer-events: none; border-radius: 999px; background: radial-gradient(circle, rgba(234,88,12,.14), transparent 68%); opacity: 0; transition: opacity .2s; }
.site-scroll__rail:hover::before, .is-dragging-scroll .site-scroll__rail::before { opacity: 1; }
.site-scroll__thumb {
  position: absolute; left: 50%; top: 0; width: 8px; height: 58px; translate: -50% 0; border-radius: 999px;
  background: linear-gradient(180deg, var(--ink), var(--ink-2)); box-shadow: 0 6px 18px -4px rgba(11,26,58,.35);
  transition: transform .1s linear, background-color .2s;
}
.site-scroll__thumb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, var(--ink), var(--accent)); opacity: 0; transition: opacity .2s; }
.site-scroll__rail:hover .site-scroll__thumb::after, .is-dragging-scroll .site-scroll__thumb::after { opacity: 1; }
.is-dragging-scroll .site-scroll__thumb { transition: none; }
html.is-dragging-scroll, html.is-dragging-scroll * { cursor: ns-resize !important; user-select: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 641px) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar { display: none; width: 0; height: 0; }
}
@media (max-width: 900px) { .site-scroll { right: 9px; height: min(34vh, 280px); } }
@media (max-width: 640px), (hover: none), (pointer: coarse) { .site-scroll { display: none; } }

/* Мягкий свет под курсором на карточках */
.tile::after, .plan::after, .ncard::after, .cbox::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(320px circle at var(--sx, 50%) var(--sy, 50%), rgba(234,88,12,.07), transparent 65%);
  opacity: 0; transition: opacity .35s;
}
.tile:hover::after, .plan:hover::after, .ncard:hover::after, .cbox:hover::after { opacity: 1; }
.cbox { position: relative; }

/* Контакты: блок Telegram и копирование почты */
.cbox--tg { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cbox--tg p:last-child { margin: 0; }
.cbox--tg .btn { flex: none; }
.copy { margin-left: 6px; padding: 3px 10px; border: 0; border-radius: 999px; background: var(--card-2); font-size: 12px; font-weight: 600; color: var(--ink); cursor: pointer; vertical-align: 2px; transition: background-color .2s, color .2s; }
.copy:hover { background: var(--ink); color: #fff; }
.copy.is-done { background: #E7F6EE; color: #1E7A4C; }

/* Поиск в макете — настоящий */
.board__search { cursor: text; transition: box-shadow .25s, background-color .25s; }
.board__search:focus-within { background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.board__search input { width: 100%; min-width: 0; border: 0; background: transparent; outline: none; font-size: 13px; color: var(--ink); }
.board__search input::placeholder { color: #9AA0B2; }
.board__search input::-webkit-search-cancel-button { cursor: pointer; }
.finds li.is-off { display: none; }
.finds li mark { background: #FFE4D2; color: inherit; border-radius: 3px; padding: 0 1px; }
.finds__empty { padding: 14px 0 4px; color: var(--muted); font-size: 12.5px; }

/* Узкое место, которое можно починить */
.flow__fix { cursor: pointer; outline: none; }
.flow__fix .bad { fill: #FFF1E8; stroke: var(--accent); stroke-width: 1.2; transition: fill .5s, stroke .5s; }
.flow__fixtxt { font: 600 10.5px Inter, sans-serif; fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.flow__fix:hover .bad, .flow__fix:focus-visible .bad { fill: #FFE4D2; }
.flow__fix:focus-visible .flow__ring { opacity: 1; stroke-width: 2.5; }
.flow__ring { transform-box: fill-box; transform-origin: center; transition: opacity .4s, transform .6s var(--ease); }
.flow__fix:hover .flow__ring { transform: scale(1.12); opacity: .6; }
.board.is-fixed .flow__fix .bad { fill: #E7F6EE; stroke: var(--green); }
.board.is-fixed .flow__ring { opacity: 0; transform: scale(1.6); }
.board.is-fixed .flow__lines path { stroke: var(--green); stroke-dasharray: none; transition: stroke .6s; }
.board.is-fixed .flow__note { background: #EEF8F2; box-shadow: inset 0 0 0 1px rgba(48,164,108,.25); }
.board.is-fixed .flow__note .z { background: var(--green); }
.board.is-fixed .finds li:first-child .lvl { background: #E7F6EE; color: #1E7A4C; }
.board.is-fixed .finds li:first-child .z { background: var(--green); }
.board.is-fixed .finds li:first-child span { text-decoration: line-through; text-decoration-color: rgba(11,26,58,.35); color: var(--muted); }

/* Облака на первом экране можно разогнать */
.hero .cloud, .phero .cloud, .lost .cloud { pointer-events: auto; cursor: pointer; }
.cloud { transition: translate .9s var(--ease), opacity .7s var(--ease), filter .7s var(--ease); }
.cloud.is-puffed { opacity: 0 !important; filter: blur(14px); pointer-events: none; }

/* Подсказка снизу экрана */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 90;
  max-width: min(92vw, 520px); padding: 13px 20px; border-radius: 18px;
  background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; line-height: 1.4; text-align: center;
  box-shadow: 0 18px 40px -12px rgba(11,26,58,.5);
  transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast b { color: #FFB27D; font-weight: 600; }

/* Дождь из шевронов — праздник за найденную пасхалку */
.rain { position: fixed; inset: 0; z-index: 85; pointer-events: none; overflow: hidden; }
.rain svg { position: absolute; top: -40px; width: var(--s, 22px); height: auto; aspect-ratio: 1008 / 783; fill: var(--c, var(--accent)); animation: fall var(--t, 2.4s) cubic-bezier(.3, .1, .6, 1) var(--dl, 0s) forwards; }
@keyframes fall { to { transform: translate(var(--dx, 0), 110vh) rotate(var(--r, 180deg)); opacity: .2; } }

/* Режим диагностики: видны все блоки страницы */
.xray main section, .xray main article, .xray .tile, .xray .plan, .xray .board { outline: 1.5px dashed rgba(234,88,12,.55) !important; outline-offset: -4px; }
.xray main section { position: relative; }
.xray main section::before { content: "блок · " attr(class); position: absolute; left: 10px; top: 10px; z-index: 5; padding: 2px 8px; border-radius: 6px; background: var(--accent); color: #fff; font: 600 11px/1.6 ui-monospace, Consolas, monospace; letter-spacing: 0; pointer-events: none; }

.eggs { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.eggs:hover { color: var(--ink); }
.eggs b { color: var(--ink); }

/* ═══ Входы: CRM для сотрудников и демо карточки по коду ═══ */
.ic-lock { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Crect x='4.5' y='10.5' width='15' height='10' rx='2.5'/%3E%3Cpath d='M8 10.5V7.5a4 4 0 0 1 8 0v3M12 14.5v2'/%3E%3C/svg%3E"); }
.foot__col--access a { display: flex; align-items: center; gap: 8px; }
.foot__col--access .ic { width: 15px; height: 15px; opacity: .7; }
.plan__demo { display: inline-flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--ink); opacity: .75; transition: opacity .2s, color .2s; }
.plan__demo .ic { width: 14px; height: 14px; color: var(--accent); }
.plan__demo:hover { opacity: 1; color: var(--accent); }

.gate { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding-bottom: 64px; }
.gate__card {
  position: relative; z-index: 2; width: min(100%, 420px); padding: 34px 32px 28px; border-radius: 28px;
  background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(255,255,255,.85), var(--shadow-lg);
  text-align: center;
}
.gate__ic { width: 46px; height: 46px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 8px 20px -8px rgba(11,26,58,.5); }
.gate__ic .ic { width: 21px; height: 21px; }
.gate__ic--accent { background: var(--accent); box-shadow: 0 8px 20px -8px rgba(234,88,12,.6); }
.gate .eyebrow { margin-bottom: 8px; font-size: 11.5px; }
/* .gate h1 — сильнее общего правила .phero h1, которое раздувало заголовок */
.gate h1.gate__t { margin: 0; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.03em; text-wrap: balance; }
.gate__sub { margin: 8px auto 0; max-width: 32ch; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.gate__form { display: grid; gap: 14px; margin-top: 24px; text-align: left; }
.gate__form .btn { margin-top: 4px; }
.gate__form .status { margin-top: 0; min-height: 20px; }
.gate__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.gate__foot a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.gate__foot a:hover { text-decoration-color: var(--accent); }
.gate__back { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); opacity: .75; }
.gate__back svg { width: 15px; height: 15px; transform: rotate(180deg); transition: transform .3s var(--ease); }
.gate__back:hover { opacity: 1; }
.gate__back:hover svg { transform: rotate(180deg) translateX(3px); }

.pass { position: relative; }
.pass input { padding-right: 52px; }
.pass__eye { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 40px; height: 40px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.pass__eye:hover { background: var(--card-2); color: var(--ink); }
.pass__eye[aria-pressed="true"] { color: var(--accent); }
.pass__eye .ic { width: 18px; height: 18px; }

.code { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.code input {
  width: 100%; max-width: 54px; height: 64px; padding: 0; border: 0; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--line-2); text-align: center;
  font-size: 26px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; caret-color: var(--accent);
  transition: box-shadow .2s, background-color .2s, transform .25s var(--ease);
}
.code input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px rgba(234,88,12,.12); transform: translateY(-2px); }
.code input.is-filled { background: #FAF8F5; }
.code__dash { flex: none; width: 10px; height: 2px; border-radius: 2px; background: var(--line-2); }
.code.is-bad input, .gate__form.is-bad .field input { box-shadow: inset 0 0 0 1.5px var(--red), 0 0 0 4px rgba(229,72,77,.1); }
.is-shake { animation: shake .45s var(--ease); }
@keyframes shake { 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
.btn.is-wait { pointer-events: none; }
.btn.is-wait span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .gate { padding-top: 112px; }
  .gate__card { padding: 30px 22px 24px; border-radius: 26px; }
  .code { gap: 6px; }
  .code input { height: 56px; font-size: 22px; border-radius: 14px; }
}

/* Страница 404 */
.lost { min-height: 100svh; display: grid; place-items: center; padding: 140px var(--gutter) 80px; }
.lost__code { position: relative; display: grid; place-items: center; width: min(90vw, 560px); aspect-ratio: 2 / 1; margin: 0 auto; }
.lost__code > b { font-size: clamp(110px, 22vw, 230px); line-height: 1; font-weight: 700; letter-spacing: -.06em; color: var(--ink); }
.lost__code .cloud { position: absolute; z-index: 2; width: 70%; left: 15%; top: 18%; }
.lost__found { position: absolute; z-index: 1; bottom: 6%; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: 13px; font-weight: 600; color: var(--ink); opacity: 0; transition: opacity .6s .3s; white-space: nowrap; }
.lost__found svg { width: 20px; height: 16px; fill: var(--accent); }
.lost.is-found .lost__found { opacity: 1; }

@media (max-width: 640px) {
  .board__top { flex-wrap: wrap; }
  .board__search { display: flex; width: 100%; }
  .cbox--tg { flex-direction: column; align-items: flex-start; }
  .foot__legal { flex-direction: column; }
  .toast { bottom: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .rain { display: none; }
}
