/* =====================================================================
   Cool-Doc landing — 2026-08-08 redesign
   AmoCRM-подобная структура + Monday-color-rhythm, всё inline HTML+CSS.
   Design tokens в :root + prefers-color-scheme dark auto.
   ===================================================================== */

/* ---------- Reset + основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-hero: linear-gradient(180deg, #f6f9ff 0%, #ffffff 100%);
  --bg-card: #ffffff;
  --bg-cta: linear-gradient(135deg, #2b6cd9 0%, #1e40af 100%);
  --fg: #0f172a;
  --fg-muted: #64748b;
  --fg-inverse: #ffffff;
  --brand: #2b6cd9;
  --brand-strong: #1e40af;
  --brand-soft: #eff5ff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --shadow-sm: 0 1px 2px rgba(15, 25, 45, 0.06);
  --shadow: 0 1px 3px rgba(15, 25, 45, 0.05), 0 6px 20px rgba(15, 25, 45, 0.06);
  --shadow-lg: 0 4px 12px rgba(15, 25, 45, 0.08), 0 20px 50px rgba(15, 25, 45, 0.12);
  --radius: 14px;
  --radius-lg: 20px;
  --max-width: 1120px;
  --header-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1218;
    --bg-soft: #161b25;
    --bg-hero: linear-gradient(180deg, #131824 0%, #0f1218 100%);
    --bg-card: #1a1f2c;
    --bg-cta: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    --fg: #e6eaf2;
    --fg-muted: #8896aa;
    --brand: #5a8eef;
    --brand-strong: #7ba4f3;
    --brand-soft: rgba(90, 142, 239, 0.12);
    --border: #232936;
    --border-strong: #313a4c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 6px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.4), 0 20px 50px rgba(0, 0, 0, 0.5);
  }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

/* ---------- Header (sticky) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark { width: 28px; height: 28px; }
.site-header nav {
  display: none;
  gap: clamp(16px, 3vw, 28px);
  font-size: 14px; color: var(--fg-muted);
}
@media (min-width: 720px) { .site-header nav { display: flex; } }
.site-header nav a { transition: color 0.15s; }
.site-header nav a:hover { color: var(--fg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  transition: background 0.15s, transform 0.05s, border-color 0.15s, box-shadow 0.15s;
  cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn.lg  { padding: 13px 24px; font-size: 15px; border-radius: 12px; }
.btn.xl  { padding: 16px 28px; font-size: 16px; border-radius: 14px; }

.btn.primary {
  background: var(--brand); color: white;
  box-shadow: 0 1px 2px rgba(43,108,217,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn.primary:hover {
  background: var(--brand-strong);
  box-shadow: 0 4px 14px rgba(43,108,217,0.4);
}
.btn.ghost {
  background: transparent; color: var(--fg);
  border-color: var(--border-strong);
}
.btn.ghost:hover {
  background: var(--bg-soft);
  border-color: var(--fg-muted);
}
.btn.ghost-inv {
  background: rgba(255, 255, 255, 0.14); color: white;
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}
.btn.ghost-inv:hover {
  background: rgba(255, 255, 255, 0.22);
}
.btn svg { width: 18px; height: 18px; }
.btn.lg svg, .btn.xl svg { width: 20px; height: 20px; }

/* ---------- HERO ---------- */
.hero {
  background: var(--bg-hero);
  padding-block: clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; gap: clamp(32px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.15fr 1fr; }
}

.hero-content { max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(135deg, #2b6cd9 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@media (prefers-color-scheme: dark) {
  .grad {
    background: linear-gradient(135deg, #5a8eef 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    background-clip: text;
  }
}

.lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--fg-muted);
  margin-bottom: 28px;
  max-width: 560px;
}

.cta-row {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-checks {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--fg-muted);
}
.hero-checks li {
  display: flex; align-items: center; gap: 10px;
}
.hero-checks svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  border-radius: 50%; padding: 3px;
}

/* ---------- Hero visual: phone mockup ---------- */
.hero-visual {
  position: relative;
  display: flex; justify-content: center;
  perspective: 1200px;
}
.glow {
  position: absolute; inset: 20% -10% -10% -10%;
  background: radial-gradient(closest-side, rgba(43,108,217,0.35), transparent 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.phone {
  position: relative; z-index: 1;
  width: min(280px, 80vw);
  aspect-ratio: 280 / 560;
  background: linear-gradient(180deg, #1a1f2c, #0f1218);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.06),
    var(--shadow-lg);
  transform: rotate(-4deg);
  transition: transform 0.4s ease;
}
.phone:hover { transform: rotate(-2deg) translateY(-4px); }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #0a0d12; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  position: relative;
  height: 100%; overflow: hidden;
  border-radius: 24px;
  background: #f7f8fa;
  color: #1a1d24;
}

/* Циклическая смена 3 слайдов. Каждый слайд позиционируется absolute,
   виден ~4.5с из 15с цикла (30% × 15s), с плавным fade + slide. */
.phone-slide {
  position: absolute; inset: 0;
  padding: 34px 14px 14px;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0;
  animation: phoneCycle 15s infinite ease-in-out;
}
.phone-slide:nth-child(1) { animation-delay: 0s; }
.phone-slide:nth-child(2) { animation-delay: 5s; }
.phone-slide:nth-child(3) { animation-delay: 10s; }
@keyframes phoneCycle {
  0%   { opacity: 0; transform: translateX(24px); }
  3%   { opacity: 1; transform: translateX(0); }
  30%  { opacity: 1; transform: translateX(0); }
  33%, 100% { opacity: 0; transform: translateX(-24px); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-slide {
    animation: none;
    opacity: 1;
    position: static;
  }
  /* при reduce-motion показываем ТОЛЬКО первый слайд, остальные скрыты */
  .phone-slide:nth-child(n+2) { display: none; }
}

/* Точки-индикаторы под телефоном, тоже синхронизированы с циклом */
.phone-dots {
  position: absolute; bottom: -22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.phone-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: color-mix(in srgb, var(--fg-muted) 30%, transparent);
  animation: phoneDot 15s infinite;
}
.phone-dot:nth-child(1) { animation-delay: 0s; }
.phone-dot:nth-child(2) { animation-delay: 5s; }
.phone-dot:nth-child(3) { animation-delay: 10s; }
@keyframes phoneDot {
  0%, 33%   { background: var(--brand); transform: scale(1.3); }
  34%, 100% { background: color-mix(in srgb, var(--fg-muted) 30%, transparent); transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-dot { animation: none; }
  .phone-dot:nth-child(1) { background: var(--brand); }
}
.phone-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 0 6px;
  font-size: 12px; font-weight: 700; color: #333;
}
.phone-back, .phone-refresh { color: #999; font-size: 14px; }
.phone-chips {
  display: flex; align-items: center; gap: 4px;
  padding-bottom: 6px; font-size: 10px;
  border-bottom: 1px solid #ececec;
}
.phone-chip {
  padding: 3px 8px; border-radius: 999px;
  background: white; border: 1px solid #ddd; color: #555;
}
.phone-chip.on { background: #2b6cd9; color: white; border-color: #2b6cd9; }
.phone-sep { color: #ccc; margin: 0 2px; }
.phone-card {
  background: white; border-radius: 10px; padding: 8px 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 11px;
}
.phone-card-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 3px;
}
.phone-card-row b { font-size: 10px; }
.phone-card-obj { color: #333; margin-bottom: 3px; }
.phone-card-meta { font-size: 9px; color: #999; }
.phone-tag {
  padding: 2px 6px; border-radius: 999px;
  font-size: 8px; font-weight: 700;
}
.phone-tag.new     { background: #e6f0ff; color: #2b6cd9; }
.phone-tag.work    { background: #fff4e0; color: #a86500; }
.phone-tag.done    { background: #e6f7ea; color: #2b8a3e; }
.phone-tag.pending { background: #ffe4e4; color: #b13030; }

/* Слайд 2 (детали заявки) */
.phone-kv {
  display: flex; justify-content: space-between;
  padding: 4px 0; font-size: 10px;
  border-bottom: 1px solid #f2f2f2;
}
.phone-kv span:first-child { color: #888; }
.phone-kv span:last-child { color: #222; font-weight: 500; }
.phone-btn {
  background: #2b6cd9; color: white; font-weight: 600;
  padding: 8px; text-align: center; border-radius: 8px;
  font-size: 11px;
}
.phone-status-list {
  display: flex; flex-direction: column; gap: 4px;
}
.phone-status-item {
  padding: 6px 8px; font-size: 10px;
  background: white; border: 1px solid #ddd;
  border-radius: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.phone-status-item.on {
  border-color: #2b6cd9; background: #eff5ff; color: #2b6cd9; font-weight: 600;
}
.phone-mini { color: #888; font-size: 8px; font-weight: 400; }

/* Слайд 3 (offline) */
.phone-offline {
  display: flex; gap: 8px; align-items: center;
  background: #fff4e0; border: 1px solid #f0d4a0;
  padding: 8px 10px; border-radius: 8px;
  font-size: 10px; color: #a86500;
}
.phone-offline-ico {
  font-size: 18px; flex-shrink: 0;
}
.phone-offline b { font-size: 10px; }

/* ---------- Stats band ---------- */
.stats-band {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding-block: clamp(24px, 4vw, 40px);
}
.stats-inner {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.stat { text-align: left; }
.stat-key {
  font-size: 20px; font-weight: 800;
  color: var(--brand); letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.stat-desc { font-size: 13px; color: var(--fg-muted); }

/* ---------- Sections common ---------- */
main > section:not(.hero):not(.stats-band):not(.cta-finale) {
  padding-block: clamp(56px, 8vw, 96px);
}
.section-eyebrow {
  color: var(--brand); font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center; margin-bottom: 8px;
}
main > section h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 680px;
  margin-inline: auto;
  line-height: 1.15;
}

/* ---------- Showcase (browser-mockups fade-slider с стрелками) ---------- */
.showcase { background: var(--bg-soft); }
.showcase-viewer {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 clamp(40px, 6vw, 68px); /* место под стрелки */
}
.showcase-stage {
  position: relative;
  width: 100%;
  /* min-height подгоняется под самый высокий слайд, чтобы не прыгало */
  min-height: 460px;
}
/* Каждый браузер-слайд позиционируется абсолютно, только .is-active видим */
.showcase-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.showcase-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 1;
}

/* Стрелки навигации — большие клик-зоны по бокам */
.showcase-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(40px, 5vw, 52px);
  height: clamp(40px, 5vw, 52px);
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(15, 25, 45, 0.08), 0 10px 24px rgba(15, 25, 45, 0.12);
  transition: background 0.15s, transform 0.1s, border-color 0.15s, box-shadow 0.15s;
  z-index: 2;
}
.showcase-nav svg { width: 22px; height: 22px; }
.showcase-nav.prev { left: 0; }
.showcase-nav.next { right: 0; }
.showcase-nav:hover {
  background: var(--brand); color: white; border-color: var(--brand);
}
.showcase-nav:active { transform: translateY(-50%) scale(0.95); }
@media (max-width: 600px) {
  .showcase-nav { width: 34px; height: 34px; }
  .showcase-nav svg { width: 16px; height: 16px; }
}

/* Точки-индикаторы под лентой */
.showcase-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 20px;
}
.showcase-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: color-mix(in srgb, var(--fg-muted) 30%, transparent);
  border: 0; padding: 0;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, width 0.15s;
}
.showcase-dot:hover {
  background: var(--fg-muted);
}
.showcase-dot.is-on {
  background: var(--brand);
  width: 24px; border-radius: 999px;
}

.browser {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0;
  display: flex; flex-direction: column;
  transition: transform 0.2s;
}
.browser:hover { transform: translateY(-3px); }

.browser-topbar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: color-mix(in srgb, var(--fg) 4%, var(--bg-card));
  border-bottom: 1px solid var(--border);
}
.browser-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
}
.browser-dot.red    { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green  { background: #28c840; }
.browser-url {
  flex: 1; text-align: center;
  background: var(--bg); padding: 4px 12px; border-radius: 6px;
  font-size: 11px; color: var(--fg-muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-inline: 8px;
}

.browser-screen {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 340px;
  background: var(--bg);
}

.browser-sidebar {
  background: color-mix(in srgb, var(--fg) 3%, var(--bg-card));
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  font-size: 12px;
}
.browser-side-brand {
  font-weight: 700; padding: 6px 8px 10px;
  border-bottom: 1px solid var(--border); margin-bottom: 8px;
  font-size: 13px;
}
.browser-side-item {
  padding: 7px 10px; border-radius: 6px; cursor: default;
  color: var(--fg-muted); font-size: 12px;
}
.browser-side-item.active {
  background: var(--brand-soft); color: var(--brand); font-weight: 600;
}

.browser-main {
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
  color: var(--fg);
  overflow: hidden;
}
.browser-h1 {
  font-size: 15px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}

/* Таблица в browser-мокапе */
.browser-table {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: 8px;
  overflow: hidden;
  font-size: 11px;
}
.browser-tr {
  display: grid; grid-template-columns: 2.5fr 1.5fr 1fr 1fr; gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.browser-tr:last-child { border-bottom: 0; }
.browser-tr.head {
  background: color-mix(in srgb, var(--fg) 3%, transparent);
  font-weight: 700; color: var(--fg-muted); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.browser-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; min-width: 20px; text-align: center;
}
.browser-badge.amber { background: #fff4e0; color: #a86500; }
.browser-badge.red   { background: #ffe4e4; color: #b13030; }
.browser-badge.green { background: #e6f7ea; color: #2b8a3e; }
.browser-badge.inl { display: inline-block; font-size: 11px; padding: 3px 10px; }

/* Форма в browser-мокапе (Browser 2) */
.browser-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
}
.browser-fg { display: flex; flex-direction: column; gap: 3px; }
.browser-fg.full { grid-column: 1 / -1; }
.browser-fg label {
  font-size: 10px; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
}
.browser-inp {
  padding: 6px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}
.browser-inp.tall {
  min-height: 40px; line-height: 1.5;
}
.browser-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.browser-btn {
  padding: 8px 14px; border-radius: 8px;
  background: var(--bg-soft); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600;
  cursor: default;
}
.browser-btn.primary {
  background: var(--brand); color: white; border-color: var(--brand);
}

/* Browser 3: Пример .docx-документа */
.browser-doc {
  display: block; padding: 20px;
  background: color-mix(in srgb, var(--fg) 5%, var(--bg));
  min-height: 340px;
}
.doc-page {
  background: white; color: #1a1d24;
  border: 1px solid #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 22px 28px;
  font-size: 11px; line-height: 1.5;
  border-radius: 4px;
  max-width: 460px; margin: 0 auto;
  font-family: "Cambria", "Georgia", serif;
}
.doc-hdr {
  font-weight: 700; text-align: center; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.doc-sub {
  text-align: center; color: #666; font-size: 10px; margin-top: 4px;
}
.doc-line {
  border-top: 1px solid #ccc; margin: 12px 0;
}
.doc-row { margin: 3px 0; font-size: 11px; }
.doc-h3 { font-weight: 700; margin: 8px 0 6px; font-size: 12px; }
.doc-tbl {
  border: 1px solid #999; font-size: 10px;
  display: flex; flex-direction: column;
}
.doc-tr {
  display: grid; grid-template-columns: 30px 1.6fr 1fr;
  border-bottom: 1px solid #ccc;
}
.doc-tr:last-child { border-bottom: 0; }
.doc-tr > div {
  padding: 4px 8px;
  border-right: 1px solid #ccc;
}
.doc-tr > div:last-child { border-right: 0; }
.doc-tr.head { background: #f3f3f3; font-weight: 700; }
.doc-sign {
  display: flex; justify-content: space-between;
  margin-top: 14px; font-size: 10px; color: #444;
  gap: 12px; flex-wrap: wrap;
}

.browser-caption {
  padding: 10px 16px 14px;
  font-size: 13px; color: var(--fg-muted);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--fg) 2%, var(--bg-card));
}

/* На мобилке — карточки чуть уже, sidebar сжимается */
@media (max-width: 620px) {
  .browsers-scroll { padding-inline: 12px; }
  .browser-screen { grid-template-columns: 110px 1fr; }
  .browser-sidebar { padding: 8px 4px; font-size: 10px; }
  .browser-side-item { font-size: 10px; padding: 6px 6px; }
  .browser-form { grid-template-columns: 1fr; }
}

/* ---------- Features grid ---------- */
.features { background: var(--bg); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.feature-ico {
  width: 32px; height: 32px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--icoc, #2b6cd9) 14%, transparent);
  color: var(--icoc, #2b6cd9);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.feature-ico svg { width: 16px; height: 16px; }
.feature-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px; color: var(--fg-muted); line-height: 1.65;
}

/* ---------- How-it-works steps ---------- */
.how { background: var(--bg-soft); }
.steps {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  position: relative;
}
/* Соединительная линия между шагами на десктопе. */
@media (min-width: 900px) {
  .steps::before {
    content: '';
    position: absolute; top: 30px; left: 6%; right: 6%; height: 2px;
    background: repeating-linear-gradient(
      to right,
      var(--border-strong) 0 8px,
      transparent 8px 16px
    );
    z-index: 0;
  }
}
.step {
  position: relative; z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px 24px;
  text-align: center;
  transition: transform 0.15s, border-color 0.15s;
}
.step:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
}
.step-badge {
  width: 44px; height: 44px;
  margin: -54px auto 12px;
  background: var(--bg-cta);
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  border: 4px solid var(--bg-soft);
  box-shadow: 0 4px 12px rgba(43,108,217,0.3);
}
.step h3 {
  font-size: 17px; font-weight: 700;
  margin-bottom: 8px; letter-spacing: -0.01em;
}
.step p {
  font-size: 14px; color: var(--fg-muted); line-height: 1.65;
}
.step code {
  background: var(--bg-soft);
  padding: 2px 6px; border-radius: 4px;
  font-size: 12px;
  border: 1px solid var(--border);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ---------- CTA finale ---------- */
.cta-finale {
  background: var(--bg-cta);
  color: white;
  padding-block: clamp(64px, 10vw, 96px);
  position: relative;
  overflow: hidden;
}
.cta-finale::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
}
.cta-inner { position: relative; text-align: center; }
.cta-finale h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-finale .lede {
  color: rgba(255,255,255,0.85);
  max-width: 640px; margin: 0 auto 32px;
  font-size: clamp(15px, 1.5vw, 18px);
}
.cta-finale .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 28px;
  background: var(--bg);
}
.footer-inner {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap;
  color: var(--fg-muted); font-size: 13px;
}
.footer-inner .dot { opacity: 0.5; }
.footer-inner a { transition: color 0.15s; }
.footer-inner a:hover { color: var(--fg); }

/* ---------- Demo credentials под CTA ---------- */
.demo-credentials {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(255, 152, 0, 0.08);
  border-left: 3px solid #ff9800;
  line-height: 1.55;
}
.demo-credentials code {
  padding: 0.1rem 0.4rem;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  font-size: 0.88rem;
  color: var(--fg);
}
@media (prefers-color-scheme: dark) {
  .demo-credentials code {
    background: rgba(255, 255, 255, 0.1);
  }
}
.demo-credentials a { color: var(--accent, #2b6cd9); }
.demo-credentials a:hover { text-decoration: underline; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .phone { transform: none; }
}
