/* =========================================================================
   bess1lie — Editorial Noir · тёмная тема · hairline-система
   ========================================================================= */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/v2/inter-tight-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/v2/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/v2/inter-tight-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/v2/inter-tight-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/v2/cormorant-italic-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 500 600;
  font-display: swap;
  src: url('../fonts/v2/cormorant-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope/manrope-cyrillic-700-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope/manrope-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope/manrope-cyrillic-800-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope/manrope-latin-800-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/v2/jbmono-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/v2/jbmono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #FBFBFD;
  --bg-alt: #F5F5F7;
  --surface: #FFFFFF;
  --fg: #1D1D1F;
  --fg-dim: #55555A;
  --line: rgba(29, 29, 31, 0.10);
  --accent: #FF4D1C;
  --accent-strong: #D63A0C;
  --accent-ink: #FFFFFF;
  --paper: #EDEAE3;
  --paper-ink: #0A0A0B;
  --paper-dim: rgba(10, 10, 11, 0.62);
  --font-sans: 'Inter Tight', 'Manrope', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1440px;
  --header-h: 64px;
  /* отступ заголовка секции от верха окна при переходе по якорю:
     55px шапка в скролле + 32px воздуха */
  --anchor-offset: 87px;
  --ez: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--accent); color: #fff; }

html { scroll-padding-top: 0; overflow-x: clip; }
section { --sec-pt: clamp(72px, 8vw, 120px); }
section[id] { scroll-margin-top: var(--anchor-offset); }
main > section[id] { min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
h2[id], section h2 { scroll-margin-top: var(--anchor-offset); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--surface);
  color: var(--fg);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  z-index: 3000;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-synthesis-weight: none; font-synthesis-style: none; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px;
}
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; }

h1, .h-display, h2, h3 {
  font-family: 'Manrope', var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.h-display {
  font-size: clamp(2.2rem, 1rem + 3vw, 3.5rem);
}
h1 {
  font-size: clamp(2.2rem, 1rem + 3.2vw, 3.8rem);
}
h1 em {
  font-family: var(--font-sans);
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-right: 0.02em;
  color: var(--accent);
}
.h-display em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--accent);
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; }
section { padding: clamp(96px, 12vw, 200px) 0; position: relative; }

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 20px;
}
.kicker-accent { color: var(--accent-strong); }
.lede {
  font-size: clamp(1.05rem, 1rem + 0.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 620px;
  margin-top: 20px;
  font-weight: 500;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 400;
}
.muted { color: var(--fg-dim); font-weight: 400; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  min-height: 48px;
  transition: background 0.25s var(--ez), border-color 0.25s var(--ez), color 0.25s var(--ez), transform 0.25s var(--ez);
}
.btn-sm { padding: 10px 18px; font-size: 15px; min-height: 44px; }
.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-accent { background: var(--accent-strong); color: #fff; }
.btn-accent:hover { background: #B8320A; color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-dim); }
/* magnetic через Motion: CSS-transition transform мешает пружине — глушим только его */
.js .mag-motion, .js .mag-motion:hover { transition: none; }

/* ---------- Intro ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: intro-out 0.7s var(--ez) 0.55s forwards;
}
.intro-word {
  font-weight: 800;
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.04em;
  animation: intro-word 0.9s var(--ez) both;
}
@keyframes intro-word { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Навигация ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(251, 251, 253, 0.86);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav--dark {
  background: rgba(10, 10, 11, 0.78);
  border-bottom-color: rgba(242, 240, 234, 0.12);
}
.nav--dark .wordmark { color: #F2F0EA; }
.nav--dark .nav-links a { color: rgba(242, 240, 234, 0.72); }
.nav--dark .nav-links a:hover,
.nav--dark .nav-links a.is-active { color: #F2F0EA; }
.nav--dark .nav-toggle span { background: #F2F0EA; }
.nav--dark .btn-ghost { border-color: rgba(242,240,234,0.18); color: #F2F0EA; }
.nav--dark .btn-ghost:hover { border-color: rgba(242,240,234,0.36); }
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height 0.3s var(--ez);
}
.nav.is-scrolled .nav-inner { height: 52px; }
.wordmark { font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--fg); display: inline-flex; align-items: center; min-height: 44px; padding: 6px 0; }
.wordmark sup { font-size: 0.7em; color: var(--accent); }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s ease;
  padding: 8px 0;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-progress { height: 2px; background: transparent; }
.nav-progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--sp, 0));
}
@supports (animation-timeline: scroll()) {
  .nav-progress i { animation: nav-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes nav-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 767px) {
  .nav-progress i { animation: none; }
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 1001;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s var(--ez), opacity 0.3s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.mmenu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  padding: calc(var(--header-h) + 32px) 28px 48px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ez);
}
.mmenu.is-open { opacity: 1; pointer-events: auto; }
.mmenu a:not(.btn) {
  min-height:44px;display:flex;align-items:center;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--fg);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ez), transform 0.5s var(--ez), color 0.2s ease;
}
.mmenu.is-open a:not(.btn) { opacity: 1; transform: none; }
.mmenu.is-open a:not(.btn):nth-child(1) { transition-delay: 0.05s; }
.mmenu.is-open a:not(.btn):nth-child(2) { transition-delay: 0.1s; }
.mmenu.is-open a:not(.btn):nth-child(3) { transition-delay: 0.15s; }
.mmenu.is-open a:not(.btn):nth-child(4) { transition-delay: 0.2s; }
.mmenu.is-open a:not(.btn):nth-child(5) { transition-delay: 0.25s; }
.mmenu .btn { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 24px) 0 28px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(60% 60% at 70% 30%, rgba(255, 77, 28, 0.13), transparent 70%);
  pointer-events: none;
  opacity: 0.95;
}
.hero-main { flex: 1; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: clamp(32px,4vw,64px); align-items: center; padding: 8px 0 16px; position: relative; z-index: 2; }
.hero { padding-bottom: clamp(40px, 6svh, 72px); }
.hero-copy { display: flex; flex-direction: column; }
.hero-copy .kicker { margin-bottom: 12px; }
#hero-title {
  font-size: clamp(2.2rem, 1rem + 2vw, 3.2rem);
  line-height: 1.05;
  max-width: 19ch;
  text-wrap: balance;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero-sub {
  margin-top: 14px;
  font-size: 1.06rem;
  line-height: 1.5;
  color: var(--fg-dim);
  max-width: 540px;
  font-weight: 400;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.hero-note { margin-top: 12px; font-size: 0.9rem; color: var(--fg-dim); }
.hero-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.hero-stack {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  max-height: calc(100svh - var(--header-h) - 96px);
  margin: 0 auto;
}
.hero-stack-marquee { display:none; }
@keyframes hero-marquee{ from{transform:translateX(0)} to{transform:translateX(-50%)} }
.booking-card {
  background: #F0FDF4;
  border: 1px solid #86EFAC;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.08);
}
.booking-head,
.booking-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.booking-head .msg-ok-icon,
.booking-card-head .msg-ok-icon,
.booking-card-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #15803D;
  color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.booking-head strong,
.booking-card-title {
  font-size: 13px;
  font-weight: 700;
  color: #15803D;
  line-height: 1.2;
}
.booking-details,
.booking-card-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 28px;
  font-size: 11.5px;
  line-height: 1.4;
  color: #1D1D1F;
}
.booking-card-details span:nth-child(1),
.booking-card-details span:nth-child(2) {
  color: #374151;
  font-size: 11.5px;
}
.booking-price,
.booking-card-price {
  font-size: 15px;
  font-weight: 800;
  color: #15803D;
  margin-top: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-stack, .hero-stack * { animation: none; }
}
.hero-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: auto;
  margin-left: -24px;
  margin-right: -24px;
  width: calc(100% + 48px);
  padding: 0 24px;
  border-top: 1px solid var(--line);
  height: 56px;
  min-height: 56px;
  max-height: 64px;
  align-items: center;
  box-sizing: border-box;
}
.hero-facts--chips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
  margin-left: 0;
  margin-right: 0;
  width: 100%;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  height: auto;
  min-height: 0;
  max-height: none;
  box-sizing: border-box;
}
.hero-facts--chips > div { padding: 6px 12px; border-left: 1px solid var(--line); text-align: center; }
.hero-facts--chips > div:first-child { border-left: none; padding-left: 0; }
.hero-facts--chips dt { font-weight: 700; font-size: 0.92rem; line-height: 1.2; }
.hero-facts--chips dd { margin: 1px 0 0; font-size: 0.72rem; color: var(--fg-dim); line-height: 1.2; }
.hero-facts > div { padding: 10px 16px; border-left: 1px solid var(--line); }
.hero-facts > div:first-child { border-left: none; padding-left: 0; }
.hero-facts dt { font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.hero-facts dd { margin: 1px 0 0; font-size: 0.76rem; color: var(--fg-dim); line-height: 1.2; }

/* Тёмные острова: Работы и AI-админ — full-bleed */
.work[data-theme="dark"],
.aiadmin[data-theme="dark"] {
  --bg: #0E0E10;
  --bg-alt: #151518;
  --surface: #1B1B1F;
  --fg: #F2F0EA;
  --fg-dim: rgba(242, 240, 234, 0.72);
  --line: rgba(242, 240, 234, 0.12);
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  margin: 0;
}
/* fallback если вдруг без data-theme — не затемнять */
.work:not([data-theme]), .aiadmin:not([data-theme]) {
  background: var(--bg);
  color: var(--fg);
}

/* ---------- Работы ---------- */
.work { background: var(--bg); padding: clamp(48px, 6vw, 80px) 0; }
.work-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
  padding-bottom: 16px;
}
.work-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: none;
}
.work-tab {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  transition: border-color 0.22s, background 0.22s;
  font: inherit;
  text-align: left;
  min-height: 0;
}
[data-theme="dark"] .work-tab { background: #151518; border-color: rgba(242,240,234,0.08); }
.work-tab:hover { border-color: rgba(255,77,28,0.25); }
.work-tab.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(255,77,28,.28);
}
[data-theme="dark"] .work-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.work-tab.is-active .work-tab-num,
.work-tab.is-active .work-tab-title { color: rgba(255,255,255,0.85); }
.work-tab-num { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-dim); letter-spacing: 0.06em; }
.work-tab-title { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.work-tab-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--fg-dim); line-height: 1.3; }
.work-scene {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.5fr);
  gap: 32px;
  align-items: center;
  padding-bottom: clamp(40px, 6vh, 88px);
}
.work-panel { display: flex; flex-direction: column; gap: 10px; max-width: 340px; }
.work-panel-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-dim); letter-spacing: 0.08em; }
.work-panel-type { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-dim); letter-spacing: 0.12em; text-transform: uppercase; }
.work-panel h3 { font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin: 4px 0 8px; }
.work-panel p { color: var(--fg-dim); font-size: 1rem; line-height: 1.6; }
.work-panel .tags { flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.work-panel .tags li { font-size: 0.72rem; padding: 6px 12px; }
.work-panel-meta { display: flex; gap: 16px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-dim); margin: 8px 0; }
.work-panel-meta span:first-child { font-weight: 700; color: var(--fg); }
.work-list { display: none; }
.work-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.22s var(--ez), border-color 0.22s var(--ez);
  color: var(--fg);
  width: 100%;
  font: inherit;
}
.work-item:hover { border-color: var(--line); background: rgba(242,240,234,0.06); }
.work-item.is-active { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .work-item.is-active { background: #1B1B1F; border-color: rgba(242,240,234,0.12); }
.work-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--fg-dim); margin-top: 4px; }
.work-item h3 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.work-item .mono { font-size: 0.78rem; color: var(--fg-dim); margin-bottom: 0; display: block; }
.work-item-detail { display: none; margin-top: 12px; }
.work-item.is-active .work-item-detail { display: block; animation: work-detail-in 0.35s var(--ez); }
@keyframes work-detail-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.work-item-detail > p { color: var(--fg-dim); font-size: 0.96rem; line-height: 1.55; margin-bottom: 12px; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tags li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--fg-dim);
}
.work-visual { position: sticky; top: calc(var(--header-h) + 20px); }
.work-mock {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 16 / 10;
  max-height: min(62svh, 560px);
  display: flex;
  flex-direction: column;
}
[data-theme="dark"] .work-mock { background: #1B1B1F; border-color: rgba(242,240,234,0.12); }
.browser-bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(237, 234, 227, 0.22); }
.browser-bar i:first-child { background: #F87171; }
.browser-bar i:nth-child(2) { background: #FBBF24; }
.browser-bar i:last-child { background: #34D399; }
.work-mock { position: relative; }
.work-mock-inner { flex: 1; position: relative; overflow: hidden; background: #0B0B0D; }
.work-mock-inner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: translateY(10px) scale(.985); filter: blur(3px); transition: opacity 0.55s var(--ez), transform 0.55s var(--ez), filter 0.55s var(--ez); }
.work-mock-inner img:not([hidden]) { opacity: 1; transform: none; filter: blur(0); }
.work-mock { transition: transform .35s var(--ez), box-shadow .35s var(--ez); }
.work-mock:hover { transform: translateY(-3px); box-shadow: 0 28px 70px rgba(0,0,0,.35); }
.work-mock:hover .work-mock-inner img:not([hidden]) { transform: scale(1.015); }

@media (prefers-reduced-motion: reduce) {
  .work-mock-inner img { transition: none; transform: none; }
}
/* mobile carousel */
.work-carousel { display: none; }
.work-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 12px;
}
.work-carousel-track::-webkit-scrollbar { display: none; }
.work-carousel-card {
  flex: 0 0 82%;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
}
[data-theme="dark"] .work-carousel-card { background: #1B1B1F; border-color: rgba(242,240,234,0.12); }
.work-carousel-mock { border-radius: 12px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 14px; background: #0B0B0D; }
.work-carousel-mock img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work-carousel-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 6px; }
.work-carousel-card .mono { font-size: 0.78rem; color: var(--fg-dim); display: block; margin-bottom: 8px; }
.work-carousel-card p { color: var(--fg-dim); font-size: 0.95rem; margin-bottom: 12px; }
.work-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.work-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); transition: background 0.2s; }
.work-dots span.is-active { background: var(--accent); }
.browser-mock { display: none; }
.phone-mock { display: none; }

/* ---------- Услуги ---------- */
.services { background: var(--bg-alt); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.bento-tile {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(29,29,31,0.06);
  transition: transform 0.28s var(--ez), border-color 0.22s, box-shadow 0.22s;
  display: flex;
  flex-direction: column;
}
.bento-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%), rgba(214,58,12,.07), transparent 60%);
  transition: opacity 0.25s;
}
.bento-tile:hover { transform: translateY(-2px); border-color: rgba(214,58,12,.28); box-shadow: 0 16px 40px rgba(29,29,31,0.10); }
.bento-tile:hover::after { opacity: 1; }
.bento--lendings { grid-column: 1 / span 5; grid-row: 1; }
.bento--bots { grid-column: 6 / span 7; }
.bento--corp { grid-column: 1 / span 4; }
.bento--auto { grid-column: 5 / span 4; }
.bento--integr { grid-column: 9 / span 4; }
.bento-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  margin-bottom: 18px;
}
.bento-ico svg { width: 28px; height: 28px; stroke-width: 1.5; transition: transform .25s var(--ez); }
.bento-tile:hover .bento-ico svg { transform: translateY(-2px) scale(1.05); }
.bento-tile:hover .bento-ico { border-color: rgba(214,58,12,.3); color: var(--accent-strong); }
.bento-tile h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.bento-tile > p { color: var(--fg-dim); font-size: 1rem; line-height: 1.6; max-width: none; }
.bento-chip { display: block; min-width: 0; max-width: 100%; margin-top: 14px; font-size: 0.92rem; line-height: 1.45; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; color: var(--fg-dim); overflow-wrap: anywhere; word-break: break-word; }
.bento-chip strong { color: var(--fg); }
.more-line { margin-top: 28px; color: var(--fg-dim); }
/* legacy svc-list keep for fallback */
.svc-list { display: none; }

/* ---------- AI-админ ---------- */
.aiadmin { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-big { margin-top: 40px; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.stat-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(4rem, 3rem + 6vw, 8rem);
  line-height: 1;
  color: var(--accent);
}
.stat-big small { color: var(--fg-dim); max-width: 300px; font-size: 0.95rem; }
.ai-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.iphone{
  --w: 300px;
  --rim: calc(var(--w) * 0.012);
  --bezel: calc(var(--w) * 0.033);
  --r-out: calc(var(--w) * 0.155);
  position: relative;
  width: var(--w);
  aspect-ratio: 390 / 844;
  border-radius: var(--r-out);
  background: linear-gradient(160deg,#5a5a5e 0%,#1a1a1d 22%,#08080a 50%,#2e2e32 82%,#4c4c50 100%);
  padding: calc(var(--rim) + var(--bezel));
  box-shadow: 0 34px 68px -24px rgba(0,0,0,.5), 0 10px 24px -12px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.10);
}
.iphone-btn{position:absolute;width:3px;border-radius:2px;background:linear-gradient(90deg,#77777b,#333338);}
.iphone-btn--mute{left:-3px;top:17%;height:3.2%;}
.iphone-btn--volu{left:-3px;top:23%;height:5.4%;}
.iphone-btn--vold{left:-3px;top:30%;height:5.4%;}
.iphone-btn--power{right:-3px;top:25%;height:8.6%;background:linear-gradient(270deg,#77777b,#333338);}
.iphone .phone-screen{
  height:100%; min-height:0; overflow:hidden;
  border-radius: calc(var(--r-out) - var(--rim) - var(--bezel));
  background:#F2F2F7; display:flex; flex-direction:column; padding:0 0 6px;
}
.iphone-statusbar{
  position:relative; flex-shrink:0;
  display:flex; align-items:center; justify-content:space-between;
  height: calc(var(--w) * 0.10);
  padding: calc(var(--w) * 0.03) 20px 0;
  color:#000;
}
.iphone-time{font-family:-apple-system,'Inter Tight',var(--font-sans);font-weight:600;font-size:calc(var(--w)*0.05);letter-spacing:.02em;}
.iphone-icons{display:flex;align-items:center;gap:5px;color:#000;}
.iphone-icons svg{display:block;}
.iphone-island{
  position:absolute; left:50%; top:calc(var(--w)*0.028); transform:translateX(-50%);
  width:calc(var(--w)*0.30); height:calc(var(--w)*0.085);
  background:#000; border-radius:999px;
}
.iphone .chat-scroll{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px;padding:8px 10px 6px;overflow:hidden;}
.iphone .msg{font-size:clamp(14px, calc(var(--w)*0.05), 16px);}
.iphone-home{flex-shrink:0;width:calc(var(--w)*0.38);height:5px;border-radius:999px;background:#000;opacity:.85;margin:6px auto 4px;}
.ai-grid .phone.iphone{ --w: clamp(300px, 26vw, 360px); }
@media (max-width:1024px){ .ai-grid .phone.iphone{ margin-inline:auto; } }
@media (max-width:480px){ .ai-grid .phone.iphone{ --w:min(340px,92%); position:static; } }
html.js .chat-item {
  visibility: hidden;
  opacity: 0;
  transform: translateY(10px);
}
html.js .chat-item.is-shown {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity 0.35s var(--ez), transform 0.35s var(--ez);
}
html.js .phone .typing {
  visibility: hidden;
  opacity: 0;
}
html.js .phone .typing.is-shown,
.phone .typing.is-shown {
  visibility: visible;
  opacity: 1;
}

.phone-header {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  margin: 0 0 6px;
  background: #FFFFFF;
  border-bottom: 1px solid rgba(29,29,31,0.08);
}
.phone-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}
.phone-header strong { font-size: 14px; font-weight: 700; color: #1D1D1F; display: block; }
.phone-online { font-size: 12px; color: #15803D; }
.msg-time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #6B6B71;
  margin-top: 4px;
}
.msg-out .msg-time { color: rgba(255,255,255,0.85); }
.msg-ok .msg-time { color: #15803D; }
.msg-ok-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #15803D;
  color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.chat-meta { text-align: center; font-size: 0.8rem; color: #55555A; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
html.js .msg {
  opacity: 0;
  transform: translateY(10px);
}
.msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1.45;
  max-width: 80%;
  transition: opacity 0.45s var(--ez), transform 0.45s var(--ez);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.msg.show { opacity: 1; transform: none; }
.msg-in { background: #FFFFFF; color: #1D1D1F; align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid rgba(29,29,31,0.08); }
.msg-out { background: #D63A0C; color: #FFFFFF; align-self: flex-end; border-bottom-right-radius: 4px; font-size: 17px; font-weight: 600; line-height: 1.45; }
html.js .msg-ok {
  opacity: 0;
  transform: translateY(10px);
}
.msg-ok {
  align-self: center;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  background: #DCFCE7;
  border: 1px solid #86EFAC;
  color: #15803D;
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.45s var(--ez), transform 0.45s var(--ez);
  max-width: 80%;
  overflow-wrap: anywhere;
}
.msg-ok .msg-time {
  flex-basis: 100%;
  width: 100%;
}
.msg-ok.show { opacity: 1; transform: none; }
.typing { align-self: flex-end; display: none; gap: 5px; padding: 12px 16px; background: #D63A0C; border-radius: 14px; border-bottom-right-radius: 4px; }
.typing.is-shown, .typing.on { display: flex; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); }
.steps { list-style: none; margin: 0 0 28px; font-size: 1.1rem; display: flex; flex-direction: column; gap: 12px; }
.steps li {
  position: relative;
  padding: 18px 20px 18px 78px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s, background .2s;
}
.steps li:hover { border-color: rgba(214,58,12,.35); background: rgba(255,255,255,.05); }
.steps .mono {
  display: grid; place-items: center;
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; margin: 0;
  border: 1px solid rgba(214,58,12,.4); border-radius: 50%;
  color: var(--accent); font-size: .8rem;
}
.compare { margin-bottom: 28px; background: rgba(214,58,12,.06); border: 1px solid rgba(214,58,12,.22); border-radius: 18px; padding: 6px 22px; }
.compare-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  font-size: 1.05rem;
}
.compare-dim { color: var(--fg-dim); }
.compare-old { text-decoration: line-through; }
.compare-hi strong { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; }
.compare-hi { color: var(--fg); }
.ai-grid .btn-lg { width: 100%; padding: 18px 24px; font-size: 1.05rem; box-shadow: 0 14px 34px rgba(214,58,12,.25); }

/* ---------- Тарифы ---------- */
.pricing { background: var(--bg); }
.price-list { border-top: 1px solid var(--line); margin-top: 32px; }
.price-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s, transform 0.25s var(--ez);
}
.price-row:hover { background: rgba(29,29,31,0.02); transform: translateY(-2px); }
.price-row:hover .price { color: var(--accent-strong); }
.price-row .price { transition: color .2s; }
.price-main h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; }
.price-main p { color: var(--fg-dim); font-size: 1rem; line-height: 1.5; }
.price {
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  white-space: nowrap;
  /* standalone prices: proportional figures read evenly (tabular "1" leaves a visible hole) */
  font-variant-numeric: proportional-nums;
}
.price-from {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-right: 6px;
}
.price-meta { text-align: center; }
.price-side .mono { color: var(--fg-dim); font-size: 12px; display: block; margin-bottom: 8px; text-wrap: balance; }
.price-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.price-examples-label { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin-right: 2px; }
.price-example {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(29, 29, 31, 0.03);
  color: var(--fg);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s;
}
.price-example svg { opacity: 0.4; transition: opacity 0.2s, transform 0.2s; }
.price-example:hover { color: var(--accent-strong); border-color: rgba(214, 58, 12, 0.45); background: rgba(255, 77, 28, 0.07); transform: translateY(-1px); }
.price-example:hover svg { opacity: 1; transform: translate(1px, -1px); }
.price-row--accent {
  background: rgba(255,77,28,0.06);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin-left: -22px;
  width: calc(100% + 22px);
}
.flag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-strong);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  vertical-align: middle;
}
.fine { margin-top: 22px; color: var(--paper-dim); font-size: 0.92rem; max-width: 680px; }

/* ---------- Процесс (legacy removed, see below) ---------- */

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-lede { margin-top: 12px; color: var(--fg-dim); font-size: 1.05rem; }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.faq-question {
  cursor: pointer;
  padding: 30px 0;
  font-weight: 650;
  font-family: var(--font-sans);
  font-size: clamp(1.2rem, 1.05rem + 1vw, 1.65rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--fg);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.faq-icon { font-size: 1.6rem; font-weight: 400; color: var(--fg-dim); line-height: 1; transition: transform 0.35s var(--ez), color 0.2s; flex-shrink: 0; }
.faq-question:hover .faq-icon { color: var(--accent); }
.faq-item.is-open .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--ez); overflow: hidden; }
.faq-answer > div { overflow: hidden; }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { padding: 2px 0 34px; color: var(--fg-dim); font-size: 1.02rem; line-height: 1.65; max-width: 64ch; }

/* ---------- Контакты ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 8px; }
.contact-left {
  background: #0A0A0B;
  border: 1px solid rgba(237, 234, 227, 0.12);
  border-radius: 28px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.5);
}
.contact-left .contact-trust { color: rgba(237, 234, 227, 0.58); }
.contact-left .contact-alt { color: rgba(237, 234, 227, 0.58); }
.contact-left .contact-alt a { color: #EDEAE3; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 10px; }
.contact .btn-xl { width: 100%; }
.contact-trust { color: var(--fg-dim); font-size: 0.92rem; margin-top: 16px; }
.contact-alt { color: var(--fg-dim); margin-top: 14px; font-size: 0.95rem; }
.contact-alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.contact-links { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--fg-dim); font-weight: 600; font-size: 0.95rem; min-height: 44px; }
.contact-links a:hover { color: var(--fg); }

/* Тёмная карточка: ghost-кнопка и ссылки под светлый текст (ср. .nav--dark) */
.contact-left .btn-ghost { border-color: rgba(242,240,234,0.22); color: #F2F0EA; }
.contact-left .btn-ghost:hover { border-color: rgba(242,240,234,0.45); color: #fff; background: rgba(242,240,234,0.06); }
.contact-left .contact-trust { display: flex; gap: 10px; }
.contact-left .contact-trust::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 7px; }
.contact-left .contact-alt { border-top: 1px solid rgba(237,234,227,0.12); padding-top: 18px; margin-top: 20px; }
.contact-left .contact-links { border-top: 1px solid rgba(237,234,227,0.12); padding-top: 22px; margin-top: 22px; }
.contact-left .contact-links a { color: rgba(237,234,227,0.72); }
.contact-left .contact-links a:hover { color: #fff; }

/* Форма: ритм, ховер чипов, видимый фокус, акцентная отправка */
.lead-form h3 { font-size: 1.35rem; letter-spacing: -0.01em; }
.lead-form .field input:focus, .lead-form .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,58,12,.15); }
.radio-chip:hover { border-color: var(--fg-dim); }
.lead-form .btn { padding: 16px 24px; font-size: 1rem; box-shadow: 0 14px 34px rgba(214,58,12,.25); }
.lead-form .btn:disabled { opacity: 0.7; box-shadow: none; }
.lead-form .field input::placeholder, .lead-form .field textarea::placeholder { color: #3F3F44; opacity: 1; font-weight: 500; }
.lead-form .field input:hover, .lead-form .field textarea:hover { border-color: var(--fg-dim); }
.radio-chip:has(input:checked) span.radio-chip-title { color: var(--accent-strong); }

/* Интерес: строки во всю ширину с радио-индикатором (SVG — не ломается каскадом) */
.lead-form .radio-group { display: flex; flex-direction: column; gap: 8px; }
.lead-form .radio-chip { flex-direction: row; align-items: center; gap: 12px; border-radius: 12px; padding: 12px 16px; }
.radio-dot { display: block; flex: none; width: 20px; height: 20px; }
.radio-dot .ring { fill: none; stroke: var(--line); stroke-width: 2; }
.radio-dot .pip { fill: transparent; transition: fill .18s; }
.radio-chip:has(input:checked) .ring { stroke: var(--accent); }
.radio-chip:has(input:checked) .pip { fill: var(--accent); }
.radio-chip:has(input:focus-visible) .ring { stroke: var(--accent); }
/* Сброс наследования от .field label (моно+капс) внутрь строк */
.radio-chip-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-family: var(--font-sans); text-transform: none; letter-spacing: normal; }
.radio-chip span.radio-chip-title { font-weight: 600; }
.lead-form .radio-chip small { font-size: 0.82rem; color: var(--fg-dim); line-height: 1.45; }
.lead-form {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
}
.lead-form h3 { margin-bottom: 20px; font-size: 1.2rem; }
.field { margin-bottom: 20px; position: relative; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--fg-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.radio-group { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.radio-group legend {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 8px;
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  min-height: 44px;
  transition: border-color 0.18s, background 0.18s;
}
.radio-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-chip span { font-size: 0.95rem; font-weight: 500; }
.radio-chip:has(input:checked) { border-color: var(--accent); background: rgba(255,77,28,0.08); }
.radio-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
/* disable custom cursor on form — higher specificity, no important */
html body .lead-form, html body .lead-form * { cursor: auto; }
html body.form-hover .cursor, html body.form-hover .cursor-ring { display: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.hp-field input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.lead-form .btn { width: 100%; margin-top: 8px; }
.form-consent { margin-top: 14px; font-size: 0.78rem; line-height: 1.5; color: var(--fg-dim); }
.form-hint { margin-top: 12px; font-size: 0.9rem; color: var(--accent); min-height: 1.2em; }
.form-hint.is-success { color: #287545; font-weight: 600; }
.form-hint.is-success::before { content: "✓"; display: inline-block; margin-right: 6px; color: #287545; font-weight: 700; }
.form-hint.is-error { color: var(--accent); }

/* ---------- Футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; overflow: hidden; }
.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 0.8fr;
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}
.footer-tag { color: var(--fg-dim); font-size: 0.95rem; max-width: 420px; }
.footer-oss { display: flex; flex-direction: column; gap: 8px; }
.footer-oss-title { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-dim); }
.footer-oss-text { font-size: 0.92rem; color: var(--fg-dim); line-height: 1.5; }
.footer-oss-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.footer-oss-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.85rem;
  color: var(--fg-dim);
  min-height: 44px;
}
.footer-oss-links a:hover { border-color: var(--accent); color: var(--fg); }
.footer-social { display: flex; gap: 6px; justify-content: flex-end; }
.footer-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-dim);
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}
.footer-social a:hover { color: var(--fg); background: rgba(29, 29, 31, 0.06); }
.footer-social svg { width: 22px; height: 22px; display: block; }
.footer-word {
  font-weight: 800;
  font-size: clamp(4rem, 21vw, 21rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(29, 29, 31, 0.22);
  text-align: center;
  user-select: none;
  white-space: nowrap;
  margin-bottom: 40px;
}
.footer-meta {
  text-align: center;
  color: var(--fg-dim);
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ---------- Reveal — motion system ---------- */
.reveal { opacity: 1; }
.js .reveal { opacity: 0; }
.js .reveal.is-visible { animation: fade-up 0.7s var(--ez) forwards; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
.js .reveal-scale { opacity: 0; transform: scale(.96) translateY(10px); }
.js .reveal-scale.is-visible { animation: reveal-scale-in 0.65s var(--ez) forwards; }
@keyframes reveal-scale-in { to { opacity: 1; transform: none; } }
.js .reveal-blur { opacity: 0; transform: translateY(14px); filter: blur(8px); }
.js .reveal-blur.is-visible { animation: reveal-blur-in 0.75s var(--ez) forwards; }
@keyframes reveal-blur-in { to { opacity: 1; transform: none; filter: blur(0); } }
.js [data-stagger] > .reveal:not(.is-visible),
.js [data-stagger] > .reveal-scale:not(.is-visible),
.js [data-stagger] > .reveal-blur:not(.is-visible) { opacity: 0; }
.js [data-stagger] > *:nth-child(1) { animation-delay: 0ms; }
.js [data-stagger] > *:nth-child(2) { animation-delay: 80ms; }
.js [data-stagger] > *:nth-child(3) { animation-delay: 160ms; }
.js [data-stagger] > *:nth-child(4) { animation-delay: 240ms; }
.js [data-stagger] > *:nth-child(5) { animation-delay: 320ms; }
.js [data-stagger] > *:nth-child(6) { animation-delay: 400ms; }

h1 .line { display: block; overflow: hidden; }
h1 .line > span { display: block; }
.js h1 .line > span { transform: translateY(110%); }
@media (prefers-reduced-motion: reduce) {
  .js h1 .line > span { transform: none; }
}

/* ---------- prefers-reduced-motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001s;
    animation-iteration-count: 1;
    transition-duration: 0.001s;
  }
  .reveal, h1 .line > span { opacity: 1; transform: none; }
  .hero-marquee-track { animation: none; }
  .typing span { animation: none; opacity: 0.6; }
}

/* Process — single source, see «Процесс — сетка» below */
@media (min-width: 769px) and (max-width: 1100px) {
  .hero-stack { padding: 24px; min-height: 440px; }
  .hero-main { grid-template-columns: minmax(0, 1fr) minmax(380px, .8fr); }
}

/* ---------- AI-админ компакт ---------- */
.aiadmin { padding: clamp(48px, 6vw, 80px) 0; }
.aiadmin .h-display { margin-bottom: 12px; }
.aiadmin .lede { margin-top: 12px; max-width: 64ch; font-size: clamp(1.1rem, 1.05rem + .35vw, 1.3rem); }
.stat-big { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; flex-wrap: nowrap; }
.stat-big .stat-num { font-size: clamp(3.2rem, 2.4rem + 4vw, 5.5rem); }
.stat-big { font-size: 1.05rem; color: var(--fg-dim); }
.ai-grid { gap: 48px; margin-top: 32px; align-items: start; }
.ai-grid .phone { position: sticky; top: calc(var(--header-h) + 24px); }
.ai-grid .phone.iphone { filter: drop-shadow(0 0 44px rgba(214,58,12,.10)); }

/* ---------- Почему мы — панель ---------- */
.why { padding: clamp(48px, 6vw, 80px) 0; }
.why-panel {
  background: var(--surface);
  border-radius: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(29,29,31,0.08);
  padding: 40px;
}
.why-panel .h-display { margin-bottom: 32px; }
.why-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
}
.why-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.why-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.why-card h3 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.why-card p { color: var(--fg-dim); font-size: 1rem; line-height: 1.6; }

/* ---------- Процесс — сетка ---------- */
.process { padding: clamp(48px, 6vw, 80px) 0; }
.process-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.process-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.process-sticky .h-display { margin-bottom: 12px; font-size: clamp(1.8rem, 1rem + 2.2vw, 2.6rem); max-width: 12ch; }
.process-sticky .lede { margin-top: 12px; }
.timeline { margin: 0; padding: 0; list-style: none; position: relative; counter-reset: step; }
.timeline li { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 20px; align-items: start; padding: 0 0 16px; position: relative; counter-increment: step; border-radius: 0; }
.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  width: 2px;
  height: calc(100% - 48px);
  background: var(--line);
  border-radius: 2px;
}
.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 48px;
  width: 2px;
  height: calc(100% - 48px);
  background: var(--accent);
  border-radius: 2px;
  transform-origin: top;
  transform: scaleY(var(--f, 0));
}
.timeline li:last-child::before, .timeline li:last-child::after { display: none; }
.step-num {
  position: static;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600;
  color: var(--fg-dim);
  z-index: 1;
  transition: border-color .25s var(--ez), background .25s var(--ez), color .25s var(--ez), transform .25s var(--ez), box-shadow .25s var(--ez);
}
.step-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 1px 2px rgba(29,29,31,.04);
  transition: transform .25s var(--ez), border-color .2s, box-shadow .25s var(--ez);
}
.step-card::after {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  right: 10px;
  top: -18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 5.2rem;
  line-height: 1;
  letter-spacing: -.04em;
  color: rgba(29,29,31,.06);
  pointer-events: none;
  transition: color .25s;
}
.timeline li:hover .step-card { transform: translateY(-2px); border-color: rgba(214,58,12,.3); box-shadow: 0 12px 30px rgba(29,29,31,.08); }
.timeline li:hover .step-card::after { color: rgba(214,58,12,.10); }
.timeline li:hover .step-num { border-color: var(--accent); color: var(--accent); transform: scale(1.05); }
.timeline li.is-active .step-num, .timeline li.is-done .step-num { border-color: var(--accent); background: var(--accent); color: #fff; transform: scale(1.05); box-shadow: 0 8px 20px rgba(214,58,12,.3); }
.timeline li.is-active .step-card { border-color: rgba(214,58,12,.35); box-shadow: 0 12px 30px rgba(214,58,12,.10); }
.timeline h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; margin-bottom: 6px; }
.timeline p { font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.15rem); color: var(--fg-dim); line-height: 1.6; max-width: 58ch; }

/* ---------- Тарифы, FAQ, контакт, футер ---------- */
.faq-answer { transition: grid-template-rows 0.35s var(--ez); }
.lead-form { background: var(--surface); }
.lead-form .field input, .lead-form .field textarea, .lead-form .field select { background: var(--bg-alt); border-radius: 8px; border: 1px solid var(--line); padding: 12px 14px; }
.lead-form .field input:focus, .lead-form .field textarea:focus, .lead-form .field select:focus { border-color: var(--accent); background: var(--surface); }
.footer-word { opacity: 0.08; color: var(--fg); -webkit-text-stroke: 1px var(--fg); }
.footer-word { font-size: clamp(4rem, 21vw, 21rem); }

/* ---------- Сквозная читаемость ---------- */
p, li { font-weight: 400; }
.lede, .why-card p, .bento-tile > p, .timeline p { font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem); line-height: 1.6; max-width: 62ch; }
h2.h-display { font-size: clamp(2.2rem, 1rem + 2.6vw, 3.4rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); }
section { padding: clamp(72px, 8vw, 120px) 0; }
.mono { font-size: 0.78rem; }

/* ---------- Лоск ---------- */
.bento-tile, .why-card, .price-row, .work-item, .timeline li, .faq-item, .lead-form, .why-panel {
  border-radius: 14px;
}
.bento-tile { border-radius: 20px; }
.why-panel { border-radius: 24px; }
.btn, .bento-tile, .why-panel, .work-mock, .phone { transition: transform 0.25s var(--ez), box-shadow 0.25s var(--ez), border-color 0.22s; }
.btn:hover { transform: translateY(-1px); }
.reveal { will-change: transform, opacity; }
@media (prefers-reduced-motion: reduce) {
  .bento-tile:hover, .btn:hover { transform: none; }
  .reveal { animation: none; opacity: 1; transform: none; } /* motion off */
}

/* =========================================================================
   Адаптивность
   ========================================================================= */
@media (max-width: 1024px) {
  .work-block { grid-template-columns: 1fr; gap: 32px; max-height: none; }
  .work-visual { position: static; }
  .ai-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .price-row { grid-template-columns: 1fr 1fr; row-gap: 12px; }
  .hero-main { gap: 32px; }
}
@media (max-width: 900px) {
  .work-block { display: none; }
  .work-carousel { display: block; margin-top: 28px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: flex; }
  section { padding: 56px 0; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
  .hero-main { grid-template-columns: 1fr; gap: 28px; }
  .booking-card { padding: 14px 16px; }
  .booking-head strong, .booking-card-title { font-size: 14px; }
  .booking-details, .booking-card-details { font-size: 12.5px; padding-left: 0; }
  .booking-price, .booking-card-price { font-size: 17px; font-weight: 800; }
  .hero-facts { grid-template-columns: repeat(2, 1fr); height: auto; max-height: 120px; min-height: 0; }
  .hero-facts--chips { height: auto; max-height: none; min-height: 0; }
  .hero-facts > div { padding: 14px 12px; }
  .phone { margin-inline: auto; }
  .price-row { grid-template-columns: 1fr; gap: 10px; }
  /* Mobile pricing cards: price-first layout, dark inverted accent tier. */
  #pricing .price-row { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 18px; gap: 8px; margin-bottom: 14px; }
  #pricing .price-meta { order: -1; text-align: left; }
  #pricing .price { font-size: 2.6rem; letter-spacing: -.04em; line-height: 1.05; display: flex; align-items: baseline; gap: 10px; }
  #pricing .price-main h3 { font-size: 1.1rem; }
  #pricing .price-main p { font-size: .9rem; }
  #pricing .price-row--accent { margin: 0 0 14px; width: auto; background: #141416; border: 1px solid rgba(255,122,85,.4); border-radius: 20px; padding: 22px 18px; }
  #pricing .price-row--accent h3, #pricing .price-row--accent .price { color: #f2f0ea; }
  #pricing .price-row--accent p, #pricing .price-row--accent .mono, #pricing .price-row--accent .ex { color: rgba(242,240,234,.72); }
  #pricing .price-row--accent .price { color: var(--accent); }
  .svc-arrow { display: none; }
  .bento { grid-template-columns: 1fr; }
  .bento--lendings, .bento--bots, .bento--corp, .bento--auto, .bento--integr { grid-column: auto; }
  .why-cards { grid-template-columns: 1fr; }
  .why-panel { padding: 24px; }
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
  .process-sticky { position: static; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-grid .phone { position: static; }
  .contact-buttons .btn { flex: 1 1 100%; }
  .faq-question { font-size: 1.1rem; padding: 20px 0; min-height: 56px; }
  .field input, .field textarea { font-size: 16px; }
  .footer-word { margin-bottom: 28px; }
}
@media (max-width: 560px) {
  .hero-facts--chips { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
  .hero-facts--chips > div:nth-child(3) { border-left: none; padding-left: 0; }
}
@media (max-width: 360px) {
  .hero-main .hero-cta .btn { flex: 1 1 100%; width: 100%; }
  #hero-title { font-size: 26px; }
}
@media (max-height: 800px) {
  .hero { padding-bottom: 16px; }
  .hero-main { padding: 0 0 8px; }
  #hero-title { font-size: clamp(2.6rem, 1rem + 3.6vw, 4rem); }
  .hero-sub { margin-top: 12px; }
  .hero-cta { margin-top: 16px; }
}
/* Single height formula for the stack panel (beats the 769px twins by
   specificity, no height media step): full size above 900px, compact 520px
   floor at/below 800px, linear ramp between. min-height:0 as before. */
.hero-main .hero-stack { height: min(620px, calc(100svh - 150px), clamp(520px, calc(100svh - 280px), 620px)); min-height: 0; }
@media (max-height: 760px) {
  #hero-title { font-size: clamp(2.2rem, 1rem + 3vw, 3.8rem); }
  .hero-sub { margin-top: 10px; font-size: 0.98rem; }
  .hero-cta { margin-top: 12px; }
  .hero-note { margin-top: 8px; font-size: 0.85rem; }
  .hero-main { gap: 24px; }
}

/* ---------- Production polish overrides ---------- */
:root { --gutter: clamp(20px, 5vw, 32px); --header-h: 64px; }
body { font-family: 'Inter Tight', system-ui, sans-serif; }
h1, h2, h3, .wordmark { font-family: 'Manrope', system-ui, sans-serif; }
.wrap, .nav-inner { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
/* Hero starts at y=0 under the fixed nav (padding-top compensates), so its
   min-height must cover the full viewport; the -64px variant left a 64px
   dark strip of #work visible on F11. Beats `main > section[id]` by order. */
main > section.hero { min-height: 100svh; padding: calc(var(--header-h) + 28px) 0 24px; justify-content: center; }
.hero-main { align-items: center; padding-top: 0; padding-bottom: 0; }
.hero-copy { justify-content: center; }
#hero-title { font-size: clamp(2.1rem, .9rem + 3.4vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; }
.hero-sub { font-size: clamp(1rem, .95rem + .25vw, 1.12rem); max-width: 46ch; }
.hero-cta .btn { min-height: 52px; }
.hero-choice-cards { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.hero-choice-card { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--fg); font-size: .92rem; font-weight: 600; background: rgba(255,255,255,.65); transition: border-color .25s var(--ez), transform .25s var(--ez); }
.hero-choice-card span:first-child { color: var(--accent); font-size: 1.05rem; }
.hero-choice-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.hero-facts--chips { max-width: 620px; min-height: 76px; margin-top: auto; }
.hero-stack { max-width: 500px; width: min(100%, 500px); aspect-ratio: 1 / .92; transform: translate(var(--px, 0), var(--py, 0)); }
.hero h1 .line > span { opacity: 1; transform: none; }
.hero-stack-marquee { display: none; }
.hero-stack, .hero-stack * { animation-play-state: running; }
.hero-stack.is-paused, .hero-stack.is-paused * { animation-play-state: paused; }
.hero-glow { background: radial-gradient(55% 55% at 72% 35%, rgba(255,77,28,.09), transparent 72%); }
/* Work fills the viewport like hero (line 112 deducts the fixed header, which
   leaves a light-services strip on F11 when content < 100svh). ID beats it. */
#work { min-height: 100svh; }
.work-mock, .work-carousel-card, .bento-tile, .why-card, .price-row { contain: layout paint; }
.price, .price-meta, .price-row .price { white-space: nowrap; font-variant-numeric: proportional-nums; }
.reveal { will-change: auto; }
.js .reveal { opacity: 1; transform: none; }
.js .reveal.is-visible { animation: fade-up .65s var(--ez) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms; animation-iteration-count: 1; transition-duration: .001ms; } .hero-stack, .hero-stack * { animation: none; } }
@media (max-width: 768px) {
  section.hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); padding-bottom: 24px; }
  .hero-main { display: flex; flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-copy { display: contents; }
  .hero .kicker { order: 1; }
  .hero h1 { order: 2; }
  .hero-sub { order: 3; }
  .hero-cta { order: 4; }
  .hero-note { order: 6; }
  .hero-choice-cards { order: 5; }
  .hero-choice-card { flex: 1 1 100%; }
  .hero-stack { display: none; }
  .hero-stack-marquee { display: block; order: 7; width: 100%; height: auto; max-height: 128px; }
  .hero-facts { order: 8; }
  .hero-stack-marquee { overflow: hidden; width: 100%; }
  .hero-marquee-track { display: flex; gap: 8px; width: max-content; padding-right: 8px; animation: hero-marquee 48s linear infinite; }
  .hero-marquee-chip { flex: 0 0 auto; min-height: 38px; padding: 8px 12px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; display: flex; align-items: center; }
  .hero-marquee-status { font-size: 13px; margin-top: 6px; text-align: center; color: var(--fg-dim); }
  .hero-marquee-track:hover, .hero-marquee-track:active { animation-play-state: paused; }
  .hero-sub { margin-top: 12px; }
  .hero-cta { margin-top: 16px; gap: 8px; }
  .hero-choice-cards { margin-top: 10px; gap: 8px; }
  .hero-note { margin-top: 10px; font-size: .82rem; }
  .hero-cta .btn { flex: 1 1 100%; width: 100%; }
  .hero-facts--chips { margin-top: 0; min-height: 0; width: 100%; padding: 8px 0; }
  .hero-facts--chips > div { min-width: 0; }
  .ai-grid .phone { position: static; }
  .bento-tile, .bento-chip, .ai-grid, .price-row, .timeline li { min-width: 0; }
  .bento-chip { border-radius: 14px; }
}
@media (min-width: 410px) and (max-width: 768px) {
  .hero-cta .btn { flex: 1 1 calc(50% - 8px); width: auto; min-width: 0; padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 390px) { .hero { padding-top: calc(var(--header-h) + 20px); } #hero-title { font-size: clamp(1.5rem, 7vw, 2.2rem); } .hero-sub { font-size: 1rem; } }

/* Hero — premium editorial composition */
.hero { background: var(--bg); isolation: isolate; }
.hero::before {
  content: "";
  position: absolute;
  inset: 64px 0 0;
  z-index: -2;
  opacity: .34;
  background-image: linear-gradient(rgba(29,29,31,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(29,29,31,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
  pointer-events: none;
  transform: translateY(var(--scroll-y, 0));
}
.hero::after {
  content: "";
  position: absolute;
  width: min(50vw, 760px);
  height: min(50vw, 760px);
  right: -8vw;
  top: 8%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,77,28,.075), transparent 68%);
  pointer-events: none;
}
.hero-main { width: min(100%, 1480px); max-width: 1480px; grid-template-columns: minmax(0, 1.28fr) minmax(460px, .82fr); gap: clamp(32px, 5vw, 80px); }
.hero-copy { padding-left: clamp(0px, 1.2vw, 20px); }
.hero-copy .kicker { display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 8px 13px; margin-bottom: 24px; border: 1px solid rgba(214,58,12,.2); border-radius: 999px; color: var(--accent-strong); background: rgba(255,255,255,.62); }
.hero-copy .kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255,77,28,.1); }
/* Height ramp: replaces the max-height:800px step so F11/resize interpolates
   instead of jumping. Slopes fitted to old endpoints (compact@800 -> base@900). */
#hero-title { max-width: 14ch; font-size: min(clamp(2.4rem, 1rem + 3vw, 4rem), clamp(3.6rem, calc(3.6rem + (100svh - 800px) * 0.064), 4rem)); line-height: 1.02; letter-spacing: -.04em; }
#hero-title em { color: var(--accent-strong); }
.hero-sub { margin-top: clamp(16px, calc(16px + (100svh - 800px) * 0.08), 24px); color: #4e4e53; }
.hero-cta { margin-top: clamp(20px, calc(20px + (100svh - 800px) * 0.08), 28px); gap: 14px; }
.hero-cta .btn-accent { box-shadow: 0 12px 28px rgba(214,58,12,.2); }
.hero-cta .btn-accent::after { content: "→"; font-size: 1.25em; line-height: 0; transition: transform .25s var(--ez); }
.hero-cta .btn-accent:hover::after { transform: translateX(4px); }
.hero-choice-cards { margin-top: 16px; }
.hero-choice-card { background: rgba(255,255,255,.72); border-color: rgba(29,29,31,.12); }
.hero-note { margin-top: 18px; }
.hero-facts--chips { margin-top: 28px; border-top: 1px solid rgba(29,29,31,.11); border-bottom: 1px solid rgba(29,29,31,.11); padding: 14px 0; }
.hero-facts--chips > div { min-height: 48px; }
@media (max-width: 1024px){ .hero-facts--chips{ margin-top: 16px; padding: 10px 0; } .hero-facts--chips dt{ font-size: .88rem; } .hero-facts--chips dd{ font-size: .68rem; } }
@media (max-height: 760px){ .hero-facts--chips{ margin-top: 12px; padding: 8px 0; } .hero-stack{ min-height: 440px; height: min(560px, calc(100svh - 130px)); } }
@media (min-width: 1920px){ html{ font-size: 17px; } .hero-main{ max-width: 1600px; width: min(100%,1600px); } }
@media (min-width: 2560px){ html{ font-size: 18px; } .hero-main{ max-width: 1680px; width: min(100%,1680px); } }
.hero-stack { max-width: 540px; width: min(100%, 540px); aspect-ratio: 1; }
.hero-stack::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(29,29,31,.06); border-radius: 50%; box-shadow: 0 0 0 34px rgba(29,29,31,.018), 0 0 0 70px rgba(29,29,31,.014); }
@media (min-width: 1600px) { .hero-main { width: min(100%, 1480px); max-width: 1480px; grid-template-columns: minmax(0, 1.35fr) minmax(500px, .8fr); } }
@media (max-width: 1024px) { .hero-main { grid-template-columns: minmax(0, 1fr) minmax(410px, .9fr); gap: 24px; } #hero-title { font-size: clamp(2.8rem, 5vw, 4rem); } }
@media (max-width: 768px) {
  .hero::before, .hero::after { display: none; }
  .hero-main { width: 100%; display: flex; gap: 16px; }
  .hero-copy { padding-left: 0; }
  .hero-copy .kicker { margin-bottom: 14px; }
  #hero-title { font-size: clamp(1.75rem, 7.6vw, 2.1rem); line-height: 1.06; letter-spacing: -.035em; }
  .hero-sub { margin-top: 12px; font-size: clamp(.95rem, .9rem + .8vw, 1.05rem); max-width: 32ch; }
  h2.h-display, .h-display { font-size: clamp(1.4rem, 1.1rem + 4vw, 1.6rem); line-height: 1.08; }
  .hero-facts--chips { margin-top: 12px; padding: 8px 0; }
  .hero-stack-marquee{ height: auto; }
  .hero-marquee-chip{ padding: 7px 11px; font-size: 12.5px; min-height: 34px; }
  .hero-choice-card{ font-size: .88rem; padding: 8px 12px; min-height: 40px; }
}

/* ============ Mobile-first 320–430: отдельная композиция ============ */
@media (max-width: 430px) {
  /* шапка: лого + CTA + бургер */
  .nav-inner { gap: 10px; }
  .nav-right { gap: 8px; }
  .nav-right .btn { display: inline-flex; padding: 8px 14px; min-height: 44px; font-size: 13.5px; white-space: nowrap; }
  /* hero-факты 2x2 */
  .hero-facts--chips { grid-template-columns: repeat(2, 1fr); gap: 0; padding: 4px 0 10px; }
  .hero-facts--chips > div { padding: 10px 12px; }
  .hero-facts--chips > div:nth-child(odd) { border-left: none; padding-left: 0; }
  .hero-facts--chips > div:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 12px; }
  .hero-facts--chips dt { font-size: .95rem; text-wrap: balance; }
  .hero-facts--chips dd { font-size: .75rem; text-wrap: balance; }
  .flag { font-size: .75rem; }
  /* работы: один проект на экран */
  .work-carousel-card { flex: 0 0 100%; padding: 20px; }
  .work-carousel-mock { aspect-ratio: 4/3; margin-bottom: 14px; }
  .work-carousel-card h3 { font-size: 1.25rem; }
  .work-carousel-card .btn { width: 100%; }
  /* stat-карточка */
  .stat-big { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; align-items: center; justify-content: center; text-align: center; }
  /* услуги и преимущества компактно */
  .bento { gap: 10px; }
  .bento-tile { padding: 16px; }
  .bento-tile h3 { font-size: 1.05rem; }
  .bento-tile > p { font-size: .92rem; }
  .bento-chip { font-size: .8rem; margin-top: 10px; padding: 6px 12px; }
  .why-panel { padding: 20px; }
  .why-cards { gap: 14px; }
  .why-card { gap: 10px; }
  .why-card h3 { font-size: 1rem; }
  .why-card p { font-size: .88rem; }
  /* цены: крупная цена, кнопка в ширину */
  .price { font-size: 1.8rem; line-height: 1.2; white-space: nowrap; }
  .price-row { padding: 20px 0; }
  .price-side .btn { width: 100%; }
  /* процесс компактно */
  .timeline li { grid-template-columns: 40px minmax(0,1fr); gap: 14px; padding-bottom: 12px; }
  .step-num { width: 40px; height: 40px; }
  .step-card { padding: 16px; }
  .step-card::after { font-size: 4rem; }
  .timeline li:not(:last-child)::before, .timeline li:not(:last-child)::after { left: 19px; top: 44px; height: calc(100% - 44px); }
  /* форма */
  .lead-form { padding: 20px; }
}
@media (max-width: 360px) {
  #hero-title { font-size: clamp(1.625rem, 7.5vw, 1.65rem); line-height: 1.08; }
  .hero-cta .btn { min-height: 52px; padding: 13px 20px; }
  /* чат: компакт под узкий экран, иначе контент не влезает */
  .ai-grid .phone.iphone { aspect-ratio: 2/5; }
  .iphone .chat-scroll { gap: 5px; padding: 6px 10px 4px; }
  .iphone .msg { font-size: 14px; }
  .msg { padding: 8px 11px; font-size: 14px; max-width: 88%; }
  .msg-out { font-size: 15px; }
  .msg-ok { font-size: 13px; padding: 8px 10px; max-width: 92%; }
  .typing { padding: 8px 12px; }
  .phone-header { padding: 6px 12px; }
  .phone-avatar { width: 32px; height: 32px; font-size: 12px; }
  .chat-meta { margin-bottom: 0; font-size: .72rem; letter-spacing: .04em; }
}

/* Final hero art direction: an editorial service index */
/* Fluid type: Manrope leads, Inter Tight supports, Cormorant is a rare accent. */
@font-face { font-family: 'Tenge Fallback'; src: local('Arial'), local('Helvetica'), local('sans-serif'); unicode-range: U+20B8; size-adjust: 100%; ascent-override: 90%; descent-override: 22%; }
@font-face { font-family: 'Manrope Fallback'; src: local('Arial'); size-adjust: 96%; ascent-override: 92%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: 'Inter Tight Fallback'; src: local('Arial'); size-adjust: 100%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
body { font-family: 'Inter Tight', 'Tenge Fallback', 'Inter Tight Fallback', system-ui, sans-serif; }
h1, h2, h3, .wordmark { font-family: 'Manrope', 'Tenge Fallback', 'Manrope Fallback', system-ui, sans-serif; }
@media (min-width: 769px) {
  .hero-stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 0; height: min(620px, calc(100svh - 150px)); min-height: 500px; aspect-ratio: auto; padding: 30px; border-radius: 32px; overflow: hidden; background: #171719; box-shadow: 0 24px 80px rgba(29,29,31,.16); }
  .hero-stack::before { content: "AI-АДМИН · LIVE"; position: absolute; inset: 28px 30px auto; color: rgba(242,240,234,.48); font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; }
  .hero-stack::after { content: ""; position: absolute; width: 340px; height: 340px; right: -130px; top: -100px; border: 1px solid rgba(255,77,28,.35); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,77,28,.06), 0 0 0 68px rgba(255,77,28,.035); pointer-events: none; }
  .hero-live { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; padding-top: 52px; color: #f2f0ea; }
  .live-head { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; color: rgba(242,240,234,.75); }
  .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: live-pulse 2.2s ease-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,28,.45); }
  70% { box-shadow: 0 0 0 9px rgba(255,77,28,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,28,0); }
}
  .live-note { margin-left: auto; letter-spacing: .02em; color: rgba(242,240,234,.45); }
  .live-chat { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; }
  .live-chat p { margin: 0; max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.45; }
  .live-in { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid rgba(242,240,234,.14); border-bottom-left-radius: 4px; color: #f2f0ea; }
  .live-out { align-self: flex-end; background: var(--accent); border-bottom-right-radius: 4px; color: #fff; font-weight: 600; }
  .live-ok { align-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(46,160,67,.14); border: 1px solid rgba(74,222,128,.35); border-radius: 14px; color: #d9f5e3; }
  .live-ok strong { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .live-prices { display: flex; flex-direction: column; margin: 0 0 18px; }
  .live-prices > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(242,240,234,.14); }
  .live-prices > div:last-child { border-bottom: 0; }
  .live-prices dt { font-weight: 600; }
  .live-prices dd { margin: 0; font-family: var(--font-mono); font-size: .82rem; color: rgba(242,240,234,.65); white-space: nowrap; }
  .live-cta { justify-content: center; }
  .live-sub { margin: 10px 0 0; font-size: .85rem; color: rgba(242,240,234,.55); text-align: center; }
  .live-sub a { color: #f2f0ea; }
}

/* reduced motion — после всех marquee-правил, отключает бегущую строку явно */
@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track { animation: none; }
}

/* Final motion budget: keep movement on the compositor and avoid filter-heavy reveals. */
.js .reveal,
.js .reveal-scale,
.js .reveal-blur { opacity: 0; filter: none; transform: translateY(12px); }
.js .reveal.is-visible,
.js .reveal-scale.is-visible,
.js .reveal-blur.is-visible { animation: fade-up .48s var(--ez) both; }
.btn, .bento-tile, .why-panel, .work-mock, .phone, .work-carousel-card { transition: transform .22s var(--ez), border-color .2s ease, box-shadow .22s ease; }
.btn:hover { transform: translateY(-1px); }
.hero-stack::after { transition: transform .3s var(--ez); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .reveal-scale, .js .reveal-blur,
  .js .reveal.is-visible, .js .reveal-scale.is-visible, .js .reveal-blur.is-visible {
    animation: none; opacity: 1; filter: none; transform: none;
  }
  .btn:hover, .bento-tile:hover, .hero-choice-card:hover { transform: none; }
}

/* Юридические ссылки в подвале + чекбокс согласия */
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; }
.footer-legal a { font-size: 0.85rem; color: var(--fg-dim); }
.footer-req { margin-top: 10px; font-size: 0.8rem; color: var(--fg-dim); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line, #e5e0d8); border-radius: 12px; padding: 12px 14px; }
.consent-check input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--accent); }
.consent-check span { font-size: 0.85rem; line-height: 1.55; color: var(--fg-dim); }
.consent-check a { text-decoration: underline; }

/* hero-title: fit 360px in 3 lines (audit fix) */
@media (max-width:390px){#hero-title{font-size:clamp(20px,6.4vw,30px)}}

.work-mock-inner img[hidden]{display:none!important}
