:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --ink: #1c1d20;
  --ink-soft: #3c4148;
  --muted: #5c6370;
  --faint: #8b919a;
  --line: #e6e8ec;
  --accent: #ff5a1f;
  --accent-hover: #ff7038;
  --accent-soft: #fff0e8;
  --accent-bubble: #ffd6c2;
  --black: #1c1d20;
  --peach: #fff4e6;
  --peach-line: #f3e0c8;
  --shadow: 0 1px 2px rgba(17, 18, 20, 0.04), 0 16px 40px rgba(17, 18, 20, 0.06);
  --radius: 18px;
  --header: 72px;
  --font: "Golos Text", "Segoe UI", system-ui, sans-serif;
  --font-brand: "Russo One", "Arial Black", sans-serif;
  --container: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-lock { overflow: hidden; }

body.front {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.front .site-header {
  position: relative;
  flex: 0 0 auto;
}

body.front main {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

body.front main::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page-scroll-bar {
  position: fixed;
  top: calc(var(--header) + 14px);
  bottom: 14px;
  right: 8px;
  width: 6px;
  z-index: 28;
}

.page-scroll-bar span {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.28);
  cursor: grab;
  touch-action: none;
}

.page-scroll-bar span:hover,
.page-scroll-bar.is-drag span {
  background: var(--black);
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:hover { color: #111; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: 0;
  transform: translateY(-200%);
  background: var(--accent);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 50;
}

.skip:focus { transform: translateY(12px); }

.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

h1, h2, h3, p { margin: 0; }

h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  text-wrap: balance;
}

h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
  text-wrap: balance;
}

h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.02em; }

.lead { color: var(--ink-soft); font-size: 18px; line-height: 1.55; max-width: 46ch; }

.muted { color: var(--muted); }

.section { padding: 28px 0 48px; }

.section-head { max-width: 680px; margin-bottom: 22px; }

.section-head p { margin-top: 12px; color: var(--muted); font-size: 17px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(17, 18, 20, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 18px;
  flex: 0 0 auto;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.logo-mark.brand-square {
  width: 44px;
  height: 44px;
  border-radius: 0;
  background: transparent;
  color: var(--black);
}

.logo-mark.brand-square svg,
.rail-btn.logo-btn svg {
  width: 100%;
  height: 100%;
}

.logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.logo-word {
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font);
  font-weight: 500;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: var(--muted);
  white-space: nowrap;
}

.logo-sub b { font-weight: 800; color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current] { color: var(--accent); }

.nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .nav a {
    --nav-base: var(--ink-soft);
    background-image: linear-gradient(to right, var(--accent) 50%, var(--nav-base) 50%);
    background-size: 200% 100%;
    background-position: 100% 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--nav-base);
    transition: background-position 0.4s ease;
  }
  .nav a:hover,
  .nav a:focus-visible,
  .nav a[aria-current] { background-position: 0 0; color: var(--accent); }
}

@media (prefers-reduced-motion: reduce) {
  .nav a { transition: none; }
}

.header-phone {
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-lime { background: var(--accent); color: #fff; font-weight: 700; }
.btn-lime:hover { background: var(--accent-hover); color: #fff; }

.btn-ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover { background: #fafafa; }

.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2b2e; color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.hero { padding: 36px 0 20px; }

.front .hero {
  min-height: calc(100svh - var(--header));
  display: flex;
  align-items: center;
  padding: 32px 0 72px;
}

.hero-statement {
  width: min(1080px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-statement h1 {
  font-size: clamp(36px, 5.5vw, 76px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  margin: 0;
}

.hero-statement h1 .dim { color: #c4c9d1; font-weight: 500; }
.hero-statement h1 .accent { color: var(--ink); font-weight: 700; }

.hero-statement h1 .hw { display: inline-block; }
.hero-statement h1 .br-m { display: none; }

@media (max-width: 860px) {
  .hero-statement h1 .br-m { display: inline; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-words #hero-title:not(.is-split),
  .hero-words .hero-statement .hero-actions { opacity: 0; }

  .hero-words #hero-title.is-split .hw {
    transform-origin: 50% 100%;
    animation:
      hero-word-drop 640ms cubic-bezier(.2, .9, .3, 1.2) both,
      hero-word-fade 360ms ease-out both;
    animation-delay: calc(var(--i, 0) * 80ms);
  }

  .hero-words #hero-title.is-split ~ .hero-actions {
    animation: hero-actions-in 520ms ease-out both;
    animation-delay: calc(var(--words, 9) * 80ms + 280ms);
  }
}

@keyframes hero-word-drop {
  from { transform: translateY(-0.5em) rotate(-3deg) scale(1.05); }
  to { transform: none; }
}

@keyframes hero-word-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hero-actions-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.hero-statement .lead {
  margin: 28px auto 0;
  max-width: 34em;
  text-align: center;
  color: #8d949e;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-statement .hero-actions {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 36px 0 0;
  gap: 12px;
}

.hero-chat-hook {
  margin: 0;
  max-width: 22em;
  text-align: center;
  color: #8d949e;
  font-size: 14px;
  line-height: 1.4;
}

.btn-ai {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 58px;
  padding: 0 26px 0 10px;
  border-radius: 999px;
  background: var(--black);
  color: #fff;
  font-size: 16px;
  letter-spacing: -0.02em;
  gap: 12px;
}

.btn-ai > * { position: relative; z-index: 1; }

.btn-ai:hover { background: #2a2c31; color: #fff; }

/* Kill global :focus-visible black ring (outline-offset: 3px) — looks like a detached outer pill. */
.btn-ai:focus { outline: none; }
.btn-ai:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-ai:visited { color: #fff; }

.btn-ai-mark {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.btn-ai-mark::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(-1px, -1px);
}

.caret {
  display: inline-block;
  width: 2px;
  height: 0.78em;
  margin-left: 4px;
  background: var(--ink);
  vertical-align: -0.06em;
  animation: caret-blink 1.05s steps(1) infinite;
}

@keyframes caret-blink { 50% { opacity: 0; } }

.header-inner .header-cta { margin-left: auto; }
.front .nav { margin-left: auto; }
.front .header-inner .nav + .header-cta { margin-left: 0; }

@media (min-width: 861px) {
  .front .header-inner { gap: 10px; }
  .front .nav { flex: 1 1 auto; justify-content: space-evenly; gap: 0; margin-left: 0; }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 36px;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.kicker i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.hero h1 { margin-bottom: 16px; }

.hero-cases {
  list-style: none;
  margin: 22px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-cases li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
}

.hero-cases span {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-top: 2px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }

.chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.chip:hover { background: var(--accent-soft); border-color: transparent; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }

.hero-meta { color: var(--muted); font-size: 14.5px; }
.hero-meta a { font-weight: 600; color: var(--ink); text-decoration: none; }

.console {
  display: grid;
  grid-template-columns: 52px 214px minmax(0, 1fr);
  background: #fff;
  border-radius: 22px;
  min-height: 520px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.console-rail {
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.rail-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #8d9096;
}

.rail-btn.is-on { background: #2a2c31; color: #fff; }
.rail-btn.logo-btn {
  width: 32px;
  height: 32px;
  padding: 5px;
  border-radius: 0;
  background: var(--accent);
  color: var(--black);
}
.rail-spacer { flex: 1; }

.console-list { border-right: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; min-width: 0; }

.console-list header,
.chat-top {
  padding: 14px 14px 10px;
}

.console-list h2,
.chat-top strong {
  font-size: 14px;
  letter-spacing: -0.02em;
}

.console-list header p,
.subline {
  color: var(--faint);
  font-size: 12px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-tools { padding: 0 12px 8px; }

.fake-select {
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: #fafafa;
}

.dialog {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  margin: 2px 8px;
  padding: 8px;
  border-radius: 12px;
}

.dialog.is-active { background: var(--accent-soft); }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--black);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.dialog b { display: block; font-size: 13px; font-weight: 600; }
.dialog small { display: block; color: var(--faint); font-size: 11px; margin: 1px 0; }
.dialog em { display: block; font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.console-chat { background: #f5f6f8; display: flex; flex-direction: column; min-width: 0; }

.chat-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.chat-top-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.chat-top-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.mini {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.mini.lime { background: var(--accent); border-color: transparent; }

.thread { padding: 14px; display: flex; flex-direction: column; gap: 10px; }

.bubble {
  width: fit-content;
  max-width: 92%;
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: 0 1px 1px rgba(17, 18, 20, 0.04);
}

.bubble span,
.alert span { display: block; color: var(--faint); font-size: 11px; margin-bottom: 4px; }

.bubble.bot { margin-left: auto; background: var(--accent-bubble); }
.alert {
  margin-left: auto;
  width: fit-content;
  max-width: 94%;
  background: var(--peach);
  border: 1px solid var(--peach-line);
  color: #6d5132;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.card, .soft-card, .case-card, .quote, .price-card, .faq-item, .step, .table-wrap {
  background: var(--surface);
  border: 1px solid rgba(17, 18, 20, 0.06);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.03);
}

.card, .soft-card { padding: 22px; }

.card .index {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}

.card h3, .soft-card h3, .case-card h3 { margin-bottom: 8px; }
.card p, .soft-card p, .case-card p { color: var(--ink-soft); }

.card a, .text-link { font-weight: 600; color: var(--ink); }

.service-grid, .case-grid, .solution-grid, .step-grid { display: grid; gap: 14px; }

.service-grid { grid-template-columns: repeat(3, 1fr); }
.solution-grid { grid-template-columns: repeat(3, 1fr); }
.case-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(5, 1fr); }

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.price-row b { font-weight: 700; }

.service-card .price-row:first-of-type { margin-top: 16px; }

.tag {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 12px;
}

.band {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  background: var(--black);
  color: #fff;
  border-radius: 24px;
  padding: 32px;
}

.band p { color: #c8cdd4; margin: 12px 0 20px; max-width: 62ch; }
.band .btn-lime:hover { color: var(--black); }

.band-stat {
  background: #1c1e22;
  border-radius: 18px;
  padding: 18px;
}

.band-stat strong { display: block; font-size: 28px; letter-spacing: -0.04em; margin-bottom: 6px; }
.band-stat span { color: #c8cdd4; font-size: 14px; }

.table-wrap { overflow: auto; max-width: 100%; contain: inline-size; }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
caption { text-align: left; padding: 18px 18px 0; font-weight: 700; letter-spacing: -0.02em; }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 600; }
td a { font-weight: 700; }

.step { padding: 16px; }
.step span { display: block; color: var(--faint); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; margin-top: 6px; }

.prose { display: flex; flex-direction: column; gap: 14px; color: var(--ink-soft); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 18px; }
.prose li + li { margin-top: 6px; }

.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.price-card { padding: 20px; position: sticky; top: 90px; }
.price-card .sum { font-size: 32px; letter-spacing: -0.04em; font-weight: 700; margin: 8px 0; }
.price-card .btn { width: 100%; margin-top: 12px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 14px; margin: 22px 0 18px; }
.crumbs a { color: var(--muted); }

.page-hero { margin-bottom: 26px; max-width: 760px; }
.page-hero .lead { margin-top: 12px; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0 18px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 16px 28px 16px 0; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  background: currentColor;
  color: var(--muted);
  pointer-events: none;
}
.faq-item summary::before {
  width: 12px;
  height: 2px;
  margin-top: -1px;
}
.faq-item summary::after {
  width: 2px;
  height: 12px;
  right: 5px;
  margin-top: -6px;
  transform: scaleY(1);
  transform-origin: center;
}
.faq-item[open]:not(.is-collapsing) summary::after {
  transform: scaleY(0);
}
.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
}
.faq-item[open] > .faq-panel {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-item.is-collapsing > .faq-panel {
  grid-template-rows: 0fr;
  opacity: 0;
}
.faq-panel__inner {
  overflow: hidden;
  min-height: 0;
}
.faq-item p { color: var(--ink-soft); padding-bottom: 16px; }

@media (prefers-reduced-motion: no-preference) {
  .faq-panel {
    transition:
      grid-template-rows 0.32s ease,
      opacity 0.24s ease;
  }
  .faq-item summary::after {
    transition: transform 0.28s ease;
  }
}

.quote-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quote { padding: 16px; }
.quote b { display: block; margin-bottom: 4px; }
.quote span { color: var(--faint); font-size: 13px; }
.quote p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }

.form { display: flex; flex-direction: column; gap: 12px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px;
  outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #ff9a70; box-shadow: 0 0 0 4px var(--accent-soft); }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; color: var(--ink-soft); }
.check input { width: 18px; height: 18px; margin-top: 2px; }
.form-status { min-height: 1.2em; font-size: 14px; }
.form-status.is-ok { color: #2d6a1f; }
.form-status.is-err { color: #9a3412; }

.split-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

.contact-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.contact-list a { font-weight: 700; font-size: 18px; text-decoration: none; }
address { font-style: normal; }

.site-footer { background: var(--black); color: #d5d8de; padding: 42px 0 22px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 24px; }
.site-footer .logo { color: #fff; }
.site-footer .logo-mark.brand-square { background: transparent; color: #fff; }
.site-footer .logo-sub { color: #aeb4bd; }
.site-footer a { color: #d5d8de; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer p, .site-footer li { color: #aeb4bd; }
.site-footer h2 { font-size: 14px; letter-spacing: 0; color: #fff; margin-bottom: 10px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #2a2c31;
  color: #8d939c;
  font-size: 13.5px;
}
.footer-note { margin-top: 14px; max-width: 36ch; }

.sitemap-list { columns: 2; padding-left: 18px; }
.sitemap-list a { font-weight: 600; }

@media (max-width: 1100px) {
  .hero-grid, .layout-2, .split-form, .band, .footer-grid { grid-template-columns: 1fr; }
  .service-grid, .solution-grid, .case-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .step-grid { grid-template-columns: 1fr 1fr; }
  .console { grid-template-columns: 200px minmax(0, 1fr); }
  .console-rail { display: none; }
  .header-phone { display: none; }
  .price-card { position: static; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta { display: none; }
  .front .header-cta { display: inline-flex; }
  .front .site-header { height: auto; }
  .front .header-inner { gap: 10px; min-height: 64px; padding: 8px 0; }
  .front .logo { flex: 1 1 auto; min-width: 0; gap: 8px; }
  .front .logo-mark.brand-square { width: 32px; height: 32px; flex: 0 0 auto; }
  .front .logo-word { font-size: 15px; letter-spacing: 0.04em; }
  .front .logo-sub { white-space: normal; max-width: 100%; font-size: 9px; line-height: 1.2; }
  .front .header-cta { height: 34px; padding: 0 12px; font-size: 13px; flex: 0 0 auto; }
  .front .nav {
    margin: 0;
    padding: 8px 14px 18px;
    gap: 2px;
    border-bottom: 0;
    box-shadow: 0 18px 36px rgba(28, 29, 32, 0.14);
  }
  .front .nav a { --nav-base: var(--ink); padding: 14px 12px; font-size: 18px; font-weight: 600; color: var(--ink); border-radius: 0; }
  .front .nav a + a { border-top: 1px solid var(--line); }
  .front .nav a:hover,
  .front .nav a:focus-visible,
  .front .nav a[aria-current] { color: var(--accent); }
  .front .nav-toggle {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin-left: 0;
    border: 0;
    border-radius: 999px;
    background: var(--black);
  }
  .front .nav-toggle span,
  .front .nav-toggle span::before,
  .front .nav-toggle span::after { width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform 0.2s ease, top 0.2s ease, background-color 0.2s ease; }
  .front .nav-toggle span::before { top: -6px; }
  .front .nav-toggle span::after { top: 6px; }
  .front .nav-toggle[aria-expanded="true"] span { background-color: transparent; }
  .front .nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
  .front .nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
  .front .header-cta { height: 40px; }
  .hero-statement h1 { font-size: clamp(28px, 8vw, 44px); line-height: 1.28; text-wrap: wrap; }
  .btn-ai-line { display: block; }
  .hero .btn-ai { width: fit-content; white-space: nowrap; }
  .btn-ai {
    height: auto;
    min-height: 58px;
    max-width: 100%;
    padding: 10px 18px 10px 10px;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    font-size: 15px;
  }
  .nav {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.22s ease-out, transform 0.22s ease-out, visibility 0s;
  }
  .nav.no-anim { transition: none; }
  .nav a { padding: 12px; }
  .service-grid, .solution-grid, .case-grid, .quote-grid, .trust, .step-grid, .sitemap-list { grid-template-columns: 1fr; columns: 1; }
  .console { grid-template-columns: 1fr; min-height: 0; }
  .console-list { display: none; }
  .container { width: min(var(--container), calc(100% - 28px)); }
  .band { padding: 22px; }
}

@media (max-width: 360px) {
  .front .header-inner { gap: 8px; }
  .front .logo { gap: 6px; }
  .front .logo-mark.brand-square { width: 28px; height: 28px; }
  .front .logo-sub { font-size: 8px; }
  .front .header-cta { padding: 0 11px; font-size: 12px; }
}

.cases-head {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 20px;
}

.cases-head h2 {
  max-width: 11em;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.cases-head h2 span { color: #c4c9d1; }

@media (max-width: 860px) {
  .front .hero { min-height: 0; padding: 64px 0 28px; }
  .cases-head { width: calc(100% - 24px); padding: 24px 0 12px; }
}

.case-deck {
  --stack-top: 8px;
  --stack-step: 16px;
  position: relative;
  padding: 8px 20px 28px;
}

.case-deck::after {
  content: "";
  display: block;
  height: 24dvh;
}

.case-slide {
  --i: 0;
  min-height: calc(100dvh - var(--header) - var(--i) * var(--stack-step));
  display: flex;
  align-items: flex-start;
  position: sticky;
  top: calc(var(--stack-top) + var(--i) * var(--stack-step));
  scroll-margin-top: 12px;
}

.case-slide:nth-child(1) { z-index: 1; }
.case-slide:nth-child(2) { z-index: 2; --i: 1; }
.case-slide:nth-child(3) { z-index: 3; --i: 2; }

.case-card {
  position: relative;
  width: min(1080px, 100%);
  margin: 0 auto;
  min-height: calc(100svh - var(--header) - var(--stack-top) - 2 * var(--stack-step) - 24px);
  transform: scale(calc(1 - var(--depth, 0) * 0.03));
  transform-origin: 50% 0;
  background: #fff;
  border: none;
  border-radius: 20px;
  box-shadow: 0 0 0 2px var(--edge, transparent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.case-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--black);
  opacity: var(--dim, 0);
  pointer-events: none;
  z-index: 5;
}

.case-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 48px 56px 56px;
  min-height: 0;
}

.case-rail {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  column-gap: 72px;
  row-gap: 0;
  align-items: center;
  min-height: 0;
}

.case-pane--pitch,
.case-pane--results {
  display: contents;
}

.case-more,
.case-back {
  display: none;
}

.case-pane--pitch > .case-kicker,
.case-pane--pitch > h2,
.case-pane--pitch > .case-lead,
.case-stats,
.case-stats-note {
  grid-column: 1;
}

.case-pane--pitch > .cap-list {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: center;
}

#ambartsevo .case-body { padding-top: 40px; }
#ambartsevo .case-rail { align-items: start; }
#ambartsevo .case-pane--pitch > .cap-list { align-self: start; }

.case-kicker {
  margin: 0 0 18px;
  line-height: 1.6;
  color: #9aa1aa;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-body h2 {
  font-size: clamp(56px, 6.4vw, 92px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.case-lead {
  margin-top: 22px;
  max-width: 26em;
  color: #6b7280;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 28px 0 0;
  padding: 0;
  max-width: 28em;
}

.case-stats > div {
  margin: 0;
  padding: 12px 0 0;
  border-top: 1px solid #eceef2;
}

.case-stats dt {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.case-stats dd {
  margin: 6px 0 0;
  color: #9aa1aa;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  max-width: 14em;
}

.case-stats-note {
  margin: 16px 0 0;
  color: #9aa1aa;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

@media (max-width: 860px) {
  .case-stats { grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-top: 22px; }
  .case-stats dt { font-size: 26px; }
}

.cap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.cap-list li {
  background: none;
  border-radius: 0;
  border-bottom: 1px solid #eceef2;
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  gap: 18px;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.cap-list li:first-child { border-top: 1px solid #eceef2; }

.cap-list li span {
  flex: 0 0 28px;
  color: #c5cad1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.case-dots {
  --dot: 34px;
  --pad: 5px;
  --track: calc(var(--dot) + var(--pad) * 2);
  position: fixed;
  top: calc(50dvh + var(--header) / 2);
  right: calc(25vw - 263px - var(--track) / 2);
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--pad);
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.08);
  border-radius: 999px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.case-dots.is-on {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.case-dots a {
  width: var(--dot);
  height: var(--dot);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: transparent;
  border: 0;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.case-dots a:hover { background: var(--bg); }

.case-dots a[aria-current="true"],
.case-dots a[aria-current="true"]:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1240px) {
  .case-dots { display: none; }
}

@media (max-width: 860px) {
  .case-deck { --stack-step: 10px; padding: 8px 12px 20px; }
  .case-card {
    overflow: hidden;
    isolation: isolate;
  }
  /* Horizontal padding lives on panes, not body — overflow clips the padding
     edge, so body padding-right was letting ~20px of the results pane peek. */
  .case-body {
    width: 100%;
    min-width: 0;
    padding: 28px 0 32px;
    overflow: hidden;
    clip-path: inset(0);
  }
  .case-body h2 { font-size: clamp(40px, 14vw, 64px); }
  .case-body h2,
  .case-body p { overflow-wrap: break-word; }
  .case-dots { display: none; }

  .case-rail {
    display: flex;
    width: 200%;
    max-width: none;
    gap: 0;
    align-items: stretch;
    transform: translate3d(0, 0, 0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
  }

  .case-card.is-results .case-rail {
    transform: translate3d(-50%, 0, 0);
  }

  .case-pane--pitch,
  .case-pane--results {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    padding: 0 20px;
    overflow: hidden;
  }

  .case-pane--results {
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Keep vertical scroll chaining so sticky case-deck still pages. */
    overscroll-behavior-x: none;
    gap: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .case-card.is-results .case-pane--results {
    visibility: visible;
    pointer-events: auto;
  }

  .case-card.is-results .case-pane--pitch {
    visibility: hidden;
    pointer-events: none;
  }

  .case-pane--pitch {
    justify-content: flex-start;
    padding-top: 8px;
    /* No nested scrollport on pitch — it was trapping touch vs sticky deck. */
    overflow: hidden;
  }

  .case-pane--pitch > .cap-list {
    grid-column: auto;
    grid-row: auto;
    align-self: stretch;
    margin-top: 20px;
  }

  .case-pane--pitch > .cap-list li {
    font-size: 17px;
    padding: 14px 0;
    gap: 14px;
  }

  .case-more {
    display: inline-flex;
    align-self: flex-start;
    margin-top: 22px;
    height: auto;
    min-height: 44px;
    padding: 12px 18px;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    max-width: 100%;
  }

  .case-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
  }

  .case-back::before {
    content: "←";
    font-weight: 700;
  }

  .case-back:hover { color: var(--accent-hover); }

  .case-pane--results .case-stats { margin-top: 0; }

  @media (prefers-reduced-motion: reduce) {
    .case-rail { transition: none; }
  }
}

@media (max-width: 360px) {
  .case-body { padding: 24px 0 28px; }
  .case-pane--pitch,
  .case-pane--results { padding-left: 16px; padding-right: 16px; }
}

.process {
  min-height: calc(100dvh - var(--header));
  padding: 40px 0 40px;
}

.process-inner { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.process h2 {
  max-width: 11em;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.process h2 span { color: #c4c9d1; }

.process-lead {
  margin-top: 18px;
  max-width: 40em;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.5;
}

.route {
  position: relative;
  margin-top: 36px;
}

.route-svg { display: none; }

.route-stops {
  list-style: none;
  margin: 0;
  padding: 0;
}

.stop { position: relative; }

.stop + .stop { margin-top: 36px; }

.stop + .stop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -36px;
  height: 36px;
  border-left: 2px dashed var(--black);
  transform: translateX(-1px);
}

.stop-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.06);
  border-radius: 18px;
  padding: 20px 22px 22px;
}

.stop-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.stop-top.is-solo { justify-content: flex-end; }

.stop-top > span {
  color: #c5cad1;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.stop-card h3 {
  margin: 8px 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.stop-card p {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.45;
}

.stop-card .btn-ai-sm {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 16px auto 0;
  color: #fff;
}

.stop-card .btn-ai-sm:hover,
.stop-card .btn-ai-sm:visited,
.stop-card .btn-ai-sm:focus-visible {
  color: #fff;
}

.stop-time {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.route-line {
  stroke: var(--black);
  stroke-width: 2;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  stroke-dasharray: 7 8;
}

.is-wide .stop-card { width: 100%; }

.route.is-anim .stop-card {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.route.is-anim .stop.is-on .stop-card,
.route.is-anim .stop:focus-within .stop-card {
  opacity: 1;
  transform: none;
}

.route.is-anim .stop + .stop::before {
  clip-path: inset(0 0 calc((1 - var(--p, 0)) * 100%) 0);
}

.is-end .stop-card {
  background: var(--black);
  border-color: var(--black);
  color: #fff;
  padding: 28px 30px 30px;
}

.is-end .stop-card h3 {
  margin: 14px 0 10px;
  color: #fff;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.04em;
}

.is-end .stop-card p { color: #a4aab3; font-size: 16px; max-width: 34em; }

.is-end .stop-top { justify-content: space-between; align-items: center; }

.is-end .stop-card .stop-flag {
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 981px) {
  .route {
    margin-top: 36px;
    padding-left: 0;
  }

  .stop + .stop::before { display: none; }

  .route-svg {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .stop {
    position: relative;
    z-index: 1;
    width: 340px;
  }
  .stop + .stop { margin-top: 64px; }
  .is-left { margin-left: 48px; }
  .is-right { margin-left: auto; margin-right: 48px; }
  .is-wide { width: 100%; margin-left: 0; margin-right: 0; }

  .stop-card { width: 100%; }

  .s1 .stop-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 32px;
    padding: 26px 30px 28px;
  }
  .s1 .stop-top { grid-column: 1 / -1; }
  .s1 .stop-card h3 { grid-column: 1; font-size: 28px; }
  .s1 .stop-card p { grid-column: 1; max-width: 36em; font-size: 16px; }
  .s1 .btn-ai-sm { width: auto; grid-column: 2; grid-row: 2 / 4; align-self: center; margin-top: 0; }
}

@media (max-width: 860px) {
  .process { padding: 24px 0 28px; }
  .process-inner { width: min(1040px, calc(100% - 28px)); }
  .stop-card { padding: 18px 18px 20px; }
}

.team {
  padding: 40px 0 48px;
}

.team-inner { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.team h2 {
  max-width: 11em;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.team h2 span { color: #c4c9d1; }

.team-lead {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: clamp(320px, 34vw, 440px);
  margin-top: 48px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--black);
  color: #fff;
}

.team-lead-bg {
  position: absolute;
  inset: 0;
  background: var(--dark-lines);
  background-size: cover;
  background-position: center;
}

.team-lead-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(225deg, rgba(28, 29, 32, 0.88) 0%, rgba(28, 29, 32, 0.5) 35%, rgba(28, 29, 32, 0) 70%);
}

.team-ph-label {
  position: absolute;
  bottom: 22px;
  left: 24px;
  padding: 6px 12px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-lead-body {
  position: relative;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  text-align: right;
  gap: 24px;
  padding: 30px;
}

.team-lead h3 {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.04em;
}

.team-lead p {
  margin: 8px 0 0;
  color: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.team-photo {
  flex: none;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e5e7eb center / cover no-repeat;
  color: #9ca3af;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.team-photo:empty::before {
  content: "";
  width: 44%;
  height: 44%;
  border-radius: 50%;
  background: #c5cad1;
  box-shadow: 0 22px 0 6px #c5cad1;
  transform: translateY(-14%);
}

.team-photo:empty { overflow: hidden; }

.team-photo-lg {
  width: clamp(148px, 15vw, 210px);
  height: clamp(148px, 15vw, 210px);
  background-color: #d6d3ce;
  color: #fff;
  font-size: clamp(32px, 3.4vw, 44px);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 12px 32px rgba(0, 0, 0, 0.4);
}

.team-photo-lg picture,
.team-photo-lg img {
  display: block;
  width: 100%;
  height: 100%;
}

.team-photo-lg img {
  object-fit: cover;
  border-radius: 50%;
}

.team-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 20px 0 0;
  padding: 0;
}

.team-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.06);
  border-radius: 18px;
}

.team-card h3 {
  margin: 4px 0 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.team-name {
  margin: 0;
  color: #c5cad1;
  font-size: 15px;
  font-weight: 500;
}

@media (max-width: 860px) {
  .team { padding: 24px 0 32px; }
  .team-inner { width: min(1040px, calc(100% - 28px)); }
  .team-lead { min-height: 340px; margin-top: 32px; }
  .team-lead-body { flex-direction: column; align-items: flex-end; gap: 18px; padding: 22px; }
  .team-grid { grid-template-columns: 1fr; gap: 14px; }
  .team-card { padding: 18px; }
}

.office {
  min-height: calc(100dvh - var(--header));
  padding: 40px 0 40px;
}

.office-inner { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

.office h2 {
  max-width: 11em;
  font-size: clamp(36px, 4.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.office h2 span { color: #c4c9d1; }

.office-lead {
  margin-top: 18px;
  max-width: 40em;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.5;
}

.prices,
.fit,
.faq-block {
  position: relative;
  padding: 40px 0 40px;
  overflow: hidden;
}

.prices {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 90, 31, 0.1) 0%, transparent 55%),
    radial-gradient(70% 55% at 0% 100%, rgba(28, 29, 32, 0.06) 0%, transparent 50%),
    var(--light-lines),
    #eceef1;
}

.fit {
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(255, 90, 31, 0.07) 0%, transparent 50%),
    linear-gradient(180deg, #f7f8fa 0%, #f0f1f4 100%);
}

.faq-block {
  background:
    radial-gradient(70% 55% at 100% 100%, rgba(255, 90, 31, 0.08) 0%, transparent 55%),
    var(--light-lines),
    #f3f4f6;
}

.prices-inner,
.fit-inner,
.faq-inner {
  position: relative;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
}

.prices h2,
.fit h2,
.faq-block h2 {
  max-width: 12em;
  font-size: clamp(40px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.prices h2 span,
.fit h2 span,
.faq-block h2 span { color: #b8bec8; }

.prices-lead,
.fit-lead {
  margin-top: 14px;
  max-width: 36em;
  color: #5c6370;
  font-size: 17px;
  line-height: 1.5;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
  align-items: stretch;
}

.price-tier {
  display: flex;
  flex-direction: column;
  padding: 28px 24px 30px;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.07);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.price-tier.is-accent {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark-lines);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 18px 40px rgba(28, 29, 32, 0.28);
  transform: translateY(-6px);
}

.price-tier.is-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(145deg, rgba(255, 90, 31, 0.18) 0%, transparent 42%);
  pointer-events: none;
}

.price-tier-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.price-tier h3 {
  margin: 0;
  font-size: clamp(22px, 2.2vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.price-tier.is-accent h3 { color: #fff; }

.price-sum {
  margin: 18px 0 0;
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.price-support {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.4;
}

.price-tier.is-accent .price-support { color: #a4aab3; }

.price-tier ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.price-tier li {
  position: relative;
  padding-left: 18px;
  color: #5c6370;
  font-size: 15px;
  line-height: 1.4;
}

.price-tier li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.price-tier.is-accent li { color: #b4b9c1; }

.prices-note {
  margin: 20px auto 8px;
  max-width: 36em;
  color: #5c6370;
  font-size: 15px;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.prices-inner > .btn {
  display: flex;
  width: fit-content;
  margin: 0 auto;
  min-width: 200px;
  height: 46px;
  padding: 0 22px;
  font-size: 15px;
}

.fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.fit-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px 26px 30px;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.07);
  border-radius: 22px;
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.03);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.fit-card.is-yes {
  background: var(--dark-lines);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 16px 36px rgba(28, 29, 32, 0.22);
}

.fit-card.is-yes::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(225deg, rgba(255, 90, 31, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.fit-card.is-no {
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.fit-card h3 {
  margin: 0 0 18px;
  font-size: clamp(22px, 2.4vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.fit-card.is-yes h3 { color: #fff; }
.fit-card.is-no h3 { color: #6b7280; }

.fit-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #5c6370;
  font-size: 16px;
  line-height: 1.45;
}

.fit-card.is-yes li { color: #c8ccd3; }

.fit-card li::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 0.32em;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
}

.fit-card.is-yes li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23ff5a1f' fill-opacity='0.28'/%3E%3Cpath stroke='%23ffffff' stroke-width='1.75' stroke-linecap='square' d='M5 9h8M9 5v8'/%3E%3C/svg%3E");
}

.fit-card.is-no li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18' fill='none'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23eceef2'/%3E%3Cpath stroke='%238b919a' stroke-width='1.75' stroke-linecap='square' d='M5 9h8'/%3E%3C/svg%3E");
}

.faq-block .faq {
  margin-top: 26px;
  gap: 8px;
}

.faq-block .faq-item {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 18, 20, 0.07);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.03);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.faq-block .faq-item summary {
  font-size: 16.5px;
  letter-spacing: -0.02em;
}

.faq-block .faq-item summary::before,
.faq-block .faq-item summary::after {
  color: var(--accent);
}

.faq-block .faq-item[open] {
  border-color: rgba(255, 90, 31, 0.35);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 90, 31, 0.12), 0 10px 28px rgba(28, 29, 32, 0.06);
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .price-tier:not(.is-accent):hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(28, 29, 32, 0.1);
  }

  .price-tier.is-accent:hover {
    transform: translateY(-10px);
    box-shadow: 0 22px 48px rgba(28, 29, 32, 0.34);
  }

  .fit-card:not(.is-yes):hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(28, 29, 32, 0.1);
  }

  .fit-card.is-yes:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(28, 29, 32, 0.28);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .price-tier.is-elevate,
  .fit-card.is-elevate,
  .faq-block .faq-item.is-elevate {
    opacity: 0;
    transform: translateY(18px);
    transition:
      opacity 0.55s ease,
      transform 0.55s ease,
      box-shadow 0.35s ease;
  }

  .price-tier.is-elevate.is-in,
  .fit-card.is-elevate.is-in,
  .faq-block .faq-item.is-elevate.is-in {
    opacity: 1;
    transform: none;
  }

  .price-tier.is-accent.is-elevate { transform: translateY(12px); }
  .price-tier.is-accent.is-elevate.is-in { transform: translateY(-6px); }

  .price-grid .price-tier.is-elevate:nth-child(2) { transition-delay: 0.08s; }
  .price-grid .price-tier.is-elevate:nth-child(3) { transition-delay: 0.16s; }
  .fit-grid .fit-card.is-elevate:nth-child(2) { transition-delay: 0.1s; }
  .faq-block .faq-item.is-elevate:nth-child(2) { transition-delay: 0.05s; }
  .faq-block .faq-item.is-elevate:nth-child(3) { transition-delay: 0.1s; }
  .faq-block .faq-item.is-elevate:nth-child(4) { transition-delay: 0.15s; }
  .faq-block .faq-item.is-elevate:nth-child(5) { transition-delay: 0.2s; }
}

@media (max-width: 860px) {
  .prices,
  .fit,
  .faq-block { padding: 24px 0 28px; }

  .prices-inner,
  .fit-inner,
  .faq-inner { width: min(1040px, calc(100% - 28px)); }

  .price-grid,
  .fit-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }

  .price-tier.is-accent { transform: none; }

  .prices-inner > .btn { width: min(100%, 280px); }

  @media (prefers-reduced-motion: no-preference) {
    .price-tier.is-accent.is-elevate.is-in { transform: none; }
  }
}

.office-map {
  position: relative;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid rgba(17, 18, 20, 0.06);
  border-radius: 20px;
  background: #e5e7eb;
}

/* Yandex Static API terms require the logo/copyright baked into the image's bottom-right corner to stay visible,
   so the view takes the image's aspect ratio and never crops it; the pin is the address position in the image. */
.office-map-view {
  position: relative;
  aspect-ratio: 2080 / 960;
  user-select: none;
}

.office-map-view img {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.office-pin {
  position: absolute;
  left: 45%;
  top: 36%;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--accent);
  box-shadow: 0 6px 16px rgba(17, 18, 20, 0.28);
  transform: translate(-50%, calc(-50% - 21px)) rotate(-45deg);
}

.office-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 8px;
  height: 8px;
  margin: auto;
  border-radius: 50%;
  background: #fff;
}

.office-card {
  position: absolute;
  top: 72px;
  left: 20px;
  width: min(320px, calc(100% - 40px));
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.06);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(17, 18, 20, 0.12);
}

.office-city {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.office-card h3 {
  margin: 10px 0 0;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.office-address {
  margin: 6px 0 20px;
  color: #6b7280;
  font-size: 16px;
}

@media (max-width: 860px) {
  .office { padding: 24px 0 28px; }
  .office-inner { width: min(1040px, calc(100% - 28px)); }
  .office-map { margin-top: 22px; background: #fff; }
  .office-card { position: static; width: auto; border: 0; border-radius: 0; box-shadow: none; padding: 20px; }
  .office-card .btn { width: 100%; }
}

@media (max-width: 599px) {
  .office-map-view { aspect-ratio: 720 / 800; }
  .office-pin { left: 16%; top: 32%; }
}

.site-foot { padding: 0 0 20px; }

.foot-card {
  position: relative;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  border-radius: 24px;
  background: var(--black);
  color: #fff;
  isolation: isolate;
}

.foot-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px 0;
  padding-bottom: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.foot-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-title {
  max-width: 13em;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.foot-title span { color: #6f7680; }

.foot-cta .foot-btn { justify-self: center; align-self: center; }

.foot-btn { flex: none; min-height: 52px; padding: 0 26px; font-size: 16px; }

/* Parent must have isolation: isolate and overflow: hidden so the glow sits above its background and is clipped. */
.btn-glow { position: relative; }

.btn-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 460px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.34), rgba(255, 90, 31, 0.12) 50%, rgba(255, 90, 31, 0) 100%);
  filter: blur(18px);
  transform: translate(-50%, -50%);
  opacity: 0.85;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.btn-glow:hover::before,
.btn-glow:focus-visible::before { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }

@media (prefers-reduced-motion: reduce) {
  .btn-glow::before { transition: none; }
  .btn-glow:hover::before,
  .btn-glow:focus-visible::before { transform: translate(-50%, -50%); }
}

@media (max-width: 860px) {
  .btn-glow::before { width: 150%; height: 200px; opacity: 0.7; }
}

.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 28px 40px;
  padding: clamp(28px, 4vw, 40px) 0 8px;
}

.foot-logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.foot-logo svg { display: block; width: 34px; height: 34px; flex: none; }
.foot-logo-text { display: flex; flex-direction: column; gap: 4px; }

.foot-logo-word {
  font-family: var(--font-brand);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.foot-logo-sub { color: #a4aab3; font-size: 11px; font-weight: 500; line-height: 1.2; }
.foot-logo-sub b { color: var(--accent); font-weight: 800; }

.foot-col h3 {
  margin: 0 0 14px;
  color: #6f7680;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.foot-col ul { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.foot-col li, .foot-col p { margin: 0; color: #a4aab3; font-size: 15px; line-height: 1.45; }

.foot-col a {
  color: #e6e8eb;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot-col a:hover, .foot-top:hover { color: var(--accent); }

.foot-mail { font-size: 17px; font-weight: 600; }

.foot-word {
  position: relative;
  display: block;
  margin: 12px 0 -0.12em;
  font-family: var(--font-brand);
  font-size: clamp(48px, 16vw, 196px);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  pointer-events: none;
}

.foot-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #6f7680;
  font-size: 14px;
}

.foot-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a4aab3;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

@media (max-width: 860px) {
  .site-foot { padding-bottom: 14px; }
  .foot-card { width: calc(100% - 28px); border-radius: 20px; padding: 28px 22px 22px; }
  .foot-cta { display: flex; flex-direction: column; align-items: stretch; }
  .foot-cta .foot-btn { justify-self: auto; align-self: stretch; }
  .foot-btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .foot-grid { grid-template-columns: 1fr; }
}

:root {
  --dark-lines:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 22px),
    radial-gradient(120% 90% at 22% 90%, #4a4d55 0%, #2a2c31 45%, var(--black) 100%);
  --light-lines:
    repeating-linear-gradient(135deg, rgba(28, 29, 32, 0.04) 0 1px, transparent 1px 22px);
}

.is-end .stop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(135deg, rgba(28, 29, 32, 0.85) 0%, rgba(28, 29, 32, 0.35) 40%, rgba(28, 29, 32, 0) 70%),
    var(--dark-lines);
}

.is-end .stop-card p { color: #b4b9c1; }

.stop-cta { align-self: flex-start; height: 48px; margin-top: 22px; padding: 0 26px; font-family: inherit; font-size: 15px; }

@media (min-width: 861px) {
  .is-end .stop-card {
    display: grid;
    grid-template-columns: auto minmax(32px, 2fr) max-content minmax(0, 1fr);
  }
  .is-end .stop-top, .is-end .stop-card h3, .is-end .stop-card p { grid-column: 1; }
  .stop-cta { grid-column: 3; grid-row: 1 / 4; align-self: center; margin-top: 0; }
}

@media (max-width: 560px) {
  .stop-cta { align-self: stretch; }
}

.form-modal {
  width: min(480px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: var(--black);
  font-family: var(--font);
  box-shadow: 0 30px 80px rgba(17, 18, 20, 0.28);
  overflow: auto;
  overscroll-behavior: contain;
}

.form-modal[open] { animation: fm-in 0.22s ease-out; }
.form-modal::backdrop { background: rgba(17, 18, 20, 0.55); }

@keyframes fm-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.fm-open main { overflow: hidden !important; }

.fm-card { position: relative; padding: 32px 30px 26px; }

.fm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--black);
  font: 400 26px/1 var(--font);
  cursor: pointer;
}
.fm-close:hover { background: #e7e9ed; }

.form-modal h2 {
  margin: 0 48px 8px 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.fm-lead, .fm-done p { margin: 0 0 22px; color: #6b7280; font-size: 15px; line-height: 1.45; }
.fm-done a { color: var(--accent); font-weight: 600; }

.fm-form { display: grid; gap: 14px; }

.fm-field { display: grid; gap: 6px; }
.fm-field > span { font-size: 14px; font-weight: 600; }
.fm-field em { margin-left: 4px; color: #9ca3af; font-style: normal; font-weight: 500; }

.fm-field input, .fm-field textarea {
  width: 100%;
  margin: 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--bg);
  color: var(--black);
  font: 400 16px/1.4 var(--font);
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.fm-field textarea { min-height: 104px; resize: vertical; }
.fm-field input::placeholder, .fm-field textarea::placeholder { color: #9ca3af; }

.fm-field input:focus, .fm-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.fm-field [aria-invalid="true"] { border-color: #e5484d; background: #fff5f5; }

.fm-error { margin: 0; color: #d93036; font-size: 14px; }
.fm-error a { color: inherit; font-weight: 600; }

.fm-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.fm-form.is-sending .fm-submit { opacity: 0.65; cursor: progress; }

.fm-submit { width: 100%; height: 52px; margin-top: 4px; font-family: inherit; font-size: 16px; }

.fm-note { margin: 0; color: #9ca3af; font-size: 12px; line-height: 1.4; text-align: center; }

@media (max-width: 560px) {
  .form-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto auto 8px;
  }
  .fm-card { padding: 24px 18px 18px; }
  .form-modal h2 { font-size: 24px; }
  .fm-close { top: 10px; right: 10px; }
  .fm-lead { margin-bottom: 16px; }
}

.chat-modal {
  width: min(540px, calc(100% - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: #fff;
  font-family: var(--font);
  box-shadow: 0 28px 80px rgba(17, 18, 20, 0.45);
  overflow: hidden;
}

.chat-modal[open] { animation: fm-in 0.22s ease-out; }
.chat-modal::backdrop { background: rgba(17, 18, 20, 0.62); }

.cm-open main { overflow: hidden !important; }

.cm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 90, 31, 0.22) 0%, transparent 50%),
    var(--dark-lines);
  color: #fff;
}

.cm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 400 24px/1 var(--font);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cm-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
}

.cm-head {
  flex: none;
  padding: 26px 64px 18px 26px;
}
.cm-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-family: var(--font-brand);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.cm-head h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 32px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}
.cm-lead {
  margin: 0;
  max-width: 34em;
  color: #a4aab3;
  font-size: 14.5px;
  line-height: 1.45;
}

.cm-stage {
  --cm-body-h: min(32vh, 280px);
  position: relative;
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0 12px 12px;
  padding: 12px;
  border-radius: 18px;
  background:
    radial-gradient(80% 50% at 0% 100%, rgba(255, 90, 31, 0.06) 0%, transparent 55%),
    var(--light-lines),
    #f7f8fa;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* Overlay: covers locked .cm-log box — zero layout shift while waiting */
.cm-loading {
  display: none;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  height: var(--cm-body-h);
  z-index: 3;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  background: #fff;
  pointer-events: none;
}
.cm-stage.is-loading .cm-loading {
  display: flex;
}
.cm-stage.is-loading .cm-log {
  visibility: hidden;
  overflow: hidden;
}
.cm-loading[hidden] { display: none !important; }

.cm-spinner {
  box-sizing: border-box;
  display: block;
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 90, 31, 0.18);
  border-top-color: #ff5a1f;
  border-radius: 50%;
  animation: cm-spin 0.75s linear infinite;
}
@keyframes cm-spin {
  to { transform: rotate(360deg); }
}

.cm-log {
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  height: var(--cm-body-h);
  min-height: var(--cm-body-h);
  max-height: var(--cm-body-h);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 2px 6px;
}

.cm-pane {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
  opacity: 1;
  transform: translateY(0);
}
.cm-pane.is-enter {
  opacity: 0;
  transform: translateY(18px);
}
.cm-pane.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 380ms ease, transform 380ms ease;
}
.cm-pane.is-leave {
  opacity: 0;
  transform: translateY(-14px);
  transition: opacity 340ms ease, transform 340ms ease;
  pointer-events: none;
}
.cm-pane-summary {
  gap: 0;
}
.cm-pane-soft {
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  text-align: center;
  gap: 0;
}
.cm-soft-end {
  margin: 0;
  max-width: 18em;
  color: var(--ink);
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.cm-stage.is-done,
.cm-stage.is-soft-end {
  gap: 0;
  padding: 14px 14px 12px;
  background: #fff;
  box-shadow: none;
}
.cm-stage.is-done .cm-log,
.cm-stage.is-soft-end .cm-log {
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 0;
}
.cm-stage.is-soft-end .cm-log {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}
.cm-summary {
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.cm-summary-meta {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 14px;
  line-height: 1.3;
}
.cm-summary-row {
  display: grid;
  grid-template-columns: 6.75em minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid rgba(17, 18, 20, 0.1);
}
.cm-summary-row:first-child {
  padding-top: 0;
}
.cm-summary-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.cm-summary-meta dt {
  margin: 0;
  color: #8b919a;
  font-family: var(--font-brand);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cm-summary-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  word-break: break-word;
}
.cm-summary-blurb {
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(17, 18, 20, 0.1);
  color: #3a3f47;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Question card — wizard screen, not chat bubble */
.cm-qcard {
  width: 100%;
  margin: 0;
  padding: 6px 4px 2px;
  background: transparent;
  border: 0;
}
.cm-qcard-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--font-brand);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cm-qcard-text {
  margin: 0;
  color: var(--ink);
  font-size: clamp(17px, 2.5vw, 20px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
}

.cm-error {
  flex: none;
  margin: 0 0 8px;
  color: #d93036;
  font-size: 13.5px;
}
.cm-error[hidden] { display: none !important; }

/* Answer field under the question — form input, not chat composer */
.cm-form {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  min-height: 0;
  height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.cm-form.is-busy { opacity: 0.7; pointer-events: none; }
.cm-form[hidden] { display: none !important; }

.cm-field {
  display: block;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(17, 18, 20, 0.12);
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.cm-form:focus-within .cm-field {
  border-color: rgba(255, 90, 31, 0.5);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.cm-input-wrap {
  display: block;
  min-width: 0;
  margin: 0;
}
.cm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.cm-form textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 24px;
  min-height: 24px; /* 1 line; grows via JS */
  max-height: 120px; /* ~5 lines @ 20px */
  margin: 0;
  padding: 2px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 400 14.5px/20px var(--font);
  resize: none;
  overflow-x: hidden;
  overflow-y: hidden;
}
.cm-form textarea::placeholder {
  color: #9aa0a8;
  opacity: 1;
}
.cm-form textarea:focus {
  outline: none;
  box-shadow: none;
}

/* Desktop: Enter only — hint outside the white field */
.cm-composer-hint {
  margin: 0;
  padding: 0 2px;
  color: #8b919a;
  font: 400 12px/1.3 var(--font);
  letter-spacing: 0.01em;
  user-select: none;
  pointer-events: none;
}

/* Desktop: no send control (Enter only). Mobile shows full-width tap submit. */
.cm-form .cm-submit {
  display: none;
  box-sizing: border-box;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  opacity: 0.55;
  cursor: default;
  transition: opacity 0.15s ease, background 0.2s ease, transform 0.15s ease;
}
.cm-form.has-text .cm-submit {
  opacity: 1;
  cursor: pointer;
}
.cm-form.has-text .cm-submit:active { transform: scale(0.985); }
.cm-form .cm-submit:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.cm-tg {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: normal;
  line-height: 1.2;
}

.cm-done {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  opacity: 1;
  transform: translateY(0);
}
.cm-stage.is-done .cm-done {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17, 18, 20, 0.1);
}
.cm-done.is-enter {
  opacity: 0;
  transform: translateY(12px);
}
.cm-done.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 400ms ease, transform 400ms ease;
}
.cm-done[hidden] { display: none !important; }
.cm-note {
  margin: 0;
  color: #8b919a;
  font-size: 11.5px;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 560px) {
  .chat-modal {
    width: calc(100% - 16px);
    max-height: calc(100dvh - 16px);
    margin: auto auto 8px;
    border-radius: 20px;
  }
  .cm-card { max-height: calc(100dvh - 16px); }
  .cm-head { padding: 22px 56px 14px 18px; }
  .cm-head h2 { font-size: 24px; }
  .cm-stage {
    --cm-body-h: min(34vh, 240px);
    margin: 0 8px 8px;
    padding: 10px;
    border-radius: 16px;
  }
  .cm-loading {
    top: 10px;
    left: 10px;
    right: 10px;
  }
  .cm-qcard { padding: 4px 2px 0; }
  .cm-qcard-text { font-size: 17px; }
  .cm-form { margin-top: 10px; gap: 10px; }
  .cm-field {
    padding: 11px 12px;
    border-radius: 14px;
  }
  .cm-form textarea {
    height: 22px;
    min-height: 22px;
    max-height: 110px;
    padding: 1px 0 0;
    font: 400 14px/19px var(--font);
  }
  /* Mobile ≤560px: full-width «Отправить»; hide desktop Enter hint */
  .cm-composer-hint { display: none; }
  .cm-form .cm-submit {
    display: inline-flex;
    height: 44px;
    font-size: 15px;
  }
  .cm-stage.is-done,
  .cm-stage.is-soft-end {
    padding: 12px 12px 10px;
  }
  .cm-stage.is-soft-end .cm-log {
    min-height: 132px;
  }
  .cm-soft-end {
    font-size: 16.5px;
  }
  .cm-summary-row {
    grid-template-columns: 6.25em minmax(0, 1fr);
    column-gap: 8px;
    padding: 6px 0;
  }
  .cm-summary-meta dd {
    font-size: 14px;
  }
  .cm-summary-blurb {
    margin-top: 9px;
    padding-top: 9px;
    font-size: 13.5px;
  }
  .cm-tg {
    height: auto;
    min-height: 40px;
    padding: 10px 12px;
    font-size: 13.5px;
  }
  .cm-stage.is-done .cm-done {
    margin-top: 12px;
    padding-top: 10px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .cm-spinner {
    border-color: rgba(255, 90, 31, 0.28);
    border-top-color: #ff5a1f;
    opacity: 0.85;
  }
}

/* Cookie banner + privacy page */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--black);
  color: #e8eaed;
  box-shadow: 0 12px 40px rgba(17, 18, 20, 0.28);
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 14px;
  line-height: 1.45;
  color: #c8ccd3;
}

.cookie-banner a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-ok {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

.foot-bottom a {
  color: #a4aab3;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.foot-bottom a:hover { color: #fff; }

body.legal {
  min-height: 100dvh;
  background:
    radial-gradient(90% 60% at 10% 0%, #fff4e6 0%, transparent 55%),
    var(--bg);
}

.legal-main {
  padding: 40px 0 72px;
}

.legal-card {
  max-width: 720px;
  padding: 36px 40px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-card h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.legal-meta {
  margin: 0 0 28px;
  color: var(--faint);
  font-size: 14px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  font-size: 18px;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.legal-card ul {
  margin: 0;
  padding-left: 1.2em;
}

.legal-card li + li { margin-top: 8px; }

.legal-card a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-card a:hover { text-decoration: underline; }

.legal-back { margin-top: 36px; }

@media (max-width: 560px) {
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .legal-card { padding: 24px 18px 28px; border-radius: 14px; }
}
