/* ==========================================================================
   AquaPlatform — единая дизайн-система: сайт оператора, кабинет покупателя,
   админ-панель, панель курьера, маркетинг.

   Шрифты системные: сайт оператора обязан открываться за 2 секунды на 4G
   в небольшом городе, и загрузка веб-шрифта этому только мешает.
   ========================================================================== */

/* ---------------------------------------------------- ТОКЕНЫ */
:root {
  /* Палитра по умолчанию — «океан» */
  --brand:        #0B7FA8;
  --brand-bright: #16B8CE;
  --brand-deep:   #075A78;
  --brand-ink:    #04222E;

  --ground:   #F2F7F9;
  --surface:  #FFFFFF;
  --surface-2:#EDF3F6;
  --line:     #DDE7EC;
  --line-2:   #C6D6DE;

  --ink:      #0C222C;
  --ink-2:    #3B5763;
  --muted:    #6C8794;

  --ok:       #12805A;
  --ok-soft:  #E1F2EB;
  --warn:     #96620A;
  --warn-soft:#FBF0DC;
  --bad:      #B02A20;
  --bad-soft: #FBE7E5;
  --info:     #1E6FA8;
  --info-soft:#E4EFF8;

  --radius:   14px;
  --radius-lg:20px;
  --radius-sm:9px;

  --shadow-sm: 0 1px 2px rgba(12, 34, 44, .06);
  --shadow:    0 6px 20px -6px rgba(12, 34, 44, .14);
  --shadow-lg: 0 24px 50px -18px rgba(8, 30, 40, .30);

  --dark-1: #041A24;
  --dark-2: #072D3E;
  --dark-3: #0A4055;

  --header-h: 66px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto,
          'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
}

/* Палитры white-label. Оператор выбирает пресет или свой цвет. */
[data-palette="forest"] {
  --brand: #16794F; --brand-bright: #2FB57C; --brand-deep: #0D5738; --brand-ink: #052018;
  --dark-1: #04180F; --dark-2: #082A1C; --dark-3: #0C3D28;
}
[data-palette="sun"] {
  --brand: #B5761A; --brand-bright: #E0A343; --brand-deep: #8A5810; --brand-ink: #2A1A03;
  --dark-1: #1A1206; --dark-2: #2C2009; --dark-3: #40300E;
}
[data-palette="berry"] {
  --brand: #9B2C5E; --brand-bright: #D45C90; --brand-deep: #741F45; --brand-ink: #2A0A18;
  --dark-1: #1C0812; --dark-2: #2F0F1F; --dark-3: #45182D;
}
[data-palette="graphite"] {
  --brand: #37505E; --brand-bright: #6E93A6; --brand-deep: #263945; --brand-ink: #0D1519;
  --dark-1: #0B1114; --dark-2: #16232A; --dark-3: #21343E;
}

/* ---------------------------------------------------- СБРОС */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.18; letter-spacing: -0.018em; text-wrap: balance; font-weight: 700; }
h1 { font-size: clamp(30px, 4.4vw, 50px); letter-spacing: -0.028em; }
h2 { font-size: clamp(23px, 2.7vw, 33px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2.5px solid var(--brand-bright); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--brand-bright) 30%, transparent); }

.tabular { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.tiny { font-size: 12.5px; }
.small { font-size: 14px; }
.strong { font-weight: 650; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

/* ---------------------------------------------------- РАСКЛАДКА */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-tight { display: flex; gap: 8px; align-items: center; }
.spread { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.grow { flex: 1; }

/* ---------------------------------------------------- КНОПКИ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 620; line-height: 1.2;
  padding: 12px 20px; border-radius: var(--radius);
  border: 1.5px solid transparent; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  color: #fff; box-shadow: 0 6px 18px -6px color-mix(in srgb, var(--brand) 60%, transparent);
}
.btn-primary:hover { box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-solid { background: var(--brand-deep); color: #fff; }
.btn-ghost { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.34); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.24); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-quiet { color: var(--ink-2); padding: 8px 12px; }
.btn-quiet:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 24%, transparent); }
.btn-lg { padding: 15px 26px; font-size: 16.5px; border-radius: 16px; }
.btn-sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------- КАРТОЧКИ И ПЛАШКИ */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm);
}
.card-tight { padding: 16px; border-radius: var(--radius); }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.card-head h3 { font-size: 17px; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 650; padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-plain::before { display: none; }
.pill.ok     { background: var(--ok-soft);   color: var(--ok); }
.pill.warn   { background: var(--warn-soft); color: var(--warn); }
.pill.bad    { background: var(--bad-soft);  color: var(--bad); }
.pill.info   { background: var(--info-soft); color: var(--info); }
.pill.accent { background: color-mix(in srgb, var(--brand-bright) 16%, transparent); color: var(--brand-deep); }
.pill.muted  { background: var(--surface-2); color: var(--muted); }

.note {
  border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand-bright) 8%, var(--surface));
  padding: 12px 16px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14.5px;
}
.note.warn { border-color: var(--warn); background: var(--warn-soft); }
.note.bad  { border-color: var(--bad);  background: var(--bad-soft); }
.note.ok   { border-color: var(--ok);   background: var(--ok-soft); }

/* ---------------------------------------------------- ФОРМЫ */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label {
  font-size: 13px; font-weight: 620; color: var(--ink-2); letter-spacing: .005em;
}
.input, input[type="text"], input[type="tel"], input[type="email"], input[type="number"],
input[type="password"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 15.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236C8794' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
textarea { min-height: 92px; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright) 22%, transparent);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field-error { font-size: 12.5px; color: var(--bad); font-weight: 600; }
.hint { font-size: 12.5px; color: var(--muted); }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--brand); }

.choice-grid { display: grid; gap: 10px; }
.choice {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1.5px solid var(--line-2); border-radius: var(--radius); padding: 13px 15px;
  background: var(--surface); transition: border-color .15s ease, background-color .15s ease;
}
.choice:hover { border-color: var(--brand); }
.choice input { margin-top: 3px; accent-color: var(--brand); flex: none; width: 18px; height: 18px; }
.choice-body { display: flex; flex-direction: column; gap: 2px; }
.choice-title { font-weight: 620; font-size: 15px; }
.choice:has(input:checked) {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand-bright) 8%, var(--surface));
}

.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.qty button { width: 40px; height: 42px; font-size: 19px; font-weight: 600; color: var(--brand-deep); }
.qty button:hover { background: var(--surface-2); }
.qty span { min-width: 42px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------- ТАБЛИЦЫ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { font-size: 14.5px; min-width: 620px; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 700; background: var(--surface-2); white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: color-mix(in srgb, var(--brand-bright) 6%, transparent); }
.table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.empty h4 { color: var(--ink-2); margin-bottom: 6px; }

/* ---------------------------------------------------- ШАПКА САЙТА
   Прозрачная над тёмным героем, сплошная после прокрутки.
   Раньше здесь был светлый фон под светлым текстом — шапка не читалась. */
.site-header {
  position: sticky; top: 0; z-index: 60;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.site-header.over-hero { background: transparent; }
.site-header.over-hero .brand-name,
.site-header.over-hero .nav-link,
.site-header.over-hero .nav-phone { color: #fff; }
.site-header.over-hero .nav-link:hover { color: #fff; opacity: .82; }
.site-header.over-hero .btn-ghost {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.38); color: #fff;
}
.site-header.pinned {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.6) blur(12px);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 20px -14px rgba(12,34,44,.5);
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-bright));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--brand) 70%, transparent);
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { font-size: 18.5px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); }

.site-nav { display: flex; gap: 20px; margin-left: 6px; }
.nav-link { font-size: 14.5px; font-weight: 550; color: var(--ink-2); }
.nav-link:hover { color: var(--brand-deep); text-decoration: none; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-phone { font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav-phone:hover { text-decoration: none; }
.burger {
  display: none; width: 42px; height: 42px; border-radius: 11px;
  border: 1.5px solid var(--line-2); place-items: center; background: var(--surface);
}
.site-header.over-hero .burger { border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.12); color: #fff; }
.burger i { display: block; width: 17px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.burger i::before, .burger i::after {
  content: ''; position: absolute; left: 0; width: 17px; height: 2px;
  background: currentColor; border-radius: 2px;
}
.burger i::before { top: -5.5px; } .burger i::after { top: 5.5px; }

@media (max-width: 1000px) { .site-nav { display: none; } .burger { display: grid; } }
@media (max-width: 620px) { .nav-phone, .header-right .btn-ghost { display: none; } }

/* Мобильное меню */
.mobile-menu { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.mobile-menu.open { visibility: visible; }
.mobile-menu .backdrop {
  position: absolute; inset: 0; background: rgba(4,20,28,.55); opacity: 0; transition: opacity .25s;
}
.mobile-menu.open .backdrop { opacity: 1; }
.mobile-menu .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(330px, 88vw);
  background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 6px;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.3,.8,.4,1);
  overflow-y: auto;
}
.mobile-menu.open .panel { transform: none; }
.mobile-menu .panel a {
  padding: 13px 12px; border-radius: var(--radius-sm); font-weight: 600; color: var(--ink);
}
.mobile-menu .panel a:hover { background: var(--surface-2); text-decoration: none; }

/* Нижняя панель действия на телефоне */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 10px; align-items: center;
}
.sticky-cta.show { display: flex; }
@media (min-width: 780px) { .sticky-cta { display: none !important; } }

/* ---------------------------------------------------- ГЕРОЙ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 8%, color-mix(in srgb, var(--brand-bright) 26%, transparent), transparent 62%),
    linear-gradient(165deg, var(--dark-1) 0%, var(--dark-2) 58%, var(--dark-3) 100%);
  margin-top: calc(var(--header-h) * -1); padding-top: var(--header-h);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 60px 0 84px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--brand-bright); }
.hero-sub { font-size: 17.5px; color: rgba(226,240,246,.86); max-width: 520px; margin-bottom: 28px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font-size: 13px; font-weight: 620; padding: 7px 13px; border-radius: 999px;
  background: color-mix(in srgb, var(--brand-bright) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-bright) 34%, transparent);
  color: var(--brand-bright);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-facts { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-facts div { border-left: 2px solid color-mix(in srgb, var(--brand-bright) 45%, transparent); padding-left: 13px; }
.hero-facts b { display: block; font-size: 19px; font-weight: 750; }
.hero-facts span { font-size: 12.5px; color: rgba(200,220,230,.72); }

.hero-visual { position: relative; }
.hero-photo {
  border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 4.5;
  border: 1px solid rgba(255,255,255,.16); box-shadow: var(--shadow-lg);
  background: linear-gradient(160deg, var(--dark-2), var(--dark-3));
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.96); color: var(--ink);
  font-size: 13.5px; font-weight: 620; padding: 10px 14px; border-radius: 13px;
  box-shadow: var(--shadow); max-width: 260px;
}
.hero-chip.top { top: 24px; left: -14px; }
.hero-chip.bottom { bottom: 30px; right: -14px; }
.hero-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* Телефон в первом экране: сайт оператора и уведомление о новом заказе.
   Раньше здесь был макет переписки в мессенджере, но заказ приходит
   обычным пуш-уведомлением — картинка не должна обещать другого. */
.hero-phone {
  position: relative; width: 100%; max-width: 316px; margin: 0 auto;
  border-radius: 36px; padding: 9px;
  background: linear-gradient(155deg, #384954, #131c25);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.35);
}
.hero-phone::before {
  content: ''; position: absolute; z-index: 3; top: 18px; left: 50%;
  transform: translateX(-50%); width: 78px; height: 19px;
  border-radius: 999px; background: #0b1218;
}
.hero-screen {
  position: relative; border-radius: 28px; overflow: hidden;
  background: #fff; color: var(--ink);
}
.hero-screen-bar {
  padding: 34px 14px 10px; background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
}
.hero-screen-bar .lock { width: 11px; height: 11px; opacity: .55; }
.hero-screen-body { padding: 15px 14px 17px; }
.hero-mini-brand {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; margin-bottom: 12px;
}
.hero-mini-brand i {
  width: 21px; height: 21px; border-radius: 7px; flex: none;
  background: var(--brand); display: grid; place-items: center; color: #fff;
}
.hero-mini-title { font-size: 16.5px; font-weight: 760; line-height: 1.25; margin-bottom: 12px; }
.hero-mini-card {
  border: 1px solid var(--line); border-radius: 13px; padding: 10px 11px;
  display: flex; align-items: center; gap: 10px; margin-bottom: 9px;
  background: #fff;
}
.hero-mini-card .thumb {
  width: 34px; height: 44px; border-radius: 7px; flex: none;
  background: linear-gradient(170deg, #cfeaf6, #8fcfe8);
}
.hero-mini-card b { display: block; font-size: 12.5px; }
.hero-mini-card span { font-size: 11.5px; color: var(--ink-2); }
.hero-mini-card .price { margin-left: auto; font-size: 13px; font-weight: 750; white-space: nowrap; }
.hero-mini-cta {
  margin-top: 12px; border-radius: 11px; background: var(--brand); color: #fff;
  text-align: center; padding: 10px; font-size: 13px; font-weight: 680;
}

/* Подпись под телефоном. Нарочно в общем потоке, а не наложением:
   на узком экране абсолютная плашка закрывала кнопку в макете сайта. */
.hero-note {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 16px auto 0; max-width: 300px; text-align: center;
  font-size: 12.5px; line-height: 1.45; color: rgba(206,226,236,.78);
}
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }

/* Уведомление поверх экрана — то, что видит владелец, когда оформили заказ */
.hero-push {
  position: absolute; z-index: 4; left: 10px; right: 10px; top: 74px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(9px);
  border-radius: 16px; padding: 11px 12px; color: var(--ink);
  box-shadow: 0 14px 34px rgba(8,20,30,.3);
  border: 1px solid rgba(255,255,255,.7);
}
.hero-push-head {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 640; color: var(--ink-2); margin-bottom: 5px;
}
.hero-push-head i {
  width: 15px; height: 15px; border-radius: 4px; flex: none;
  background: var(--brand); display: grid; place-items: center; color: #fff;
}
.hero-push-head .time { margin-left: auto; }
.hero-push b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.hero-push p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }

@media (prefers-reduced-motion: no-preference) {
  .hero-push { animation: heroPushIn .55s .2s cubic-bezier(.2,.9,.3,1) both; }
  @keyframes heroPushIn {
    from { opacity: 0; transform: translateY(-16px) scale(.96); }
    to   { opacity: 1; transform: none; }
  }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding: 40px 0 64px; }
  .hero-visual { order: -1; max-width: 420px; }
  .hero-phone { max-width: 276px; }
  .hero-chip.top { left: 8px; } .hero-chip.bottom { right: 8px; }
}

/* ---------------------------------------------------- ПОЛОСА «СМОТРЕТЬ ДЕМО» */
.demo-band {
  display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center;
  padding: 30px 32px; border-radius: var(--radius-lg);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  background:
    radial-gradient(520px 220px at 88% 0%, color-mix(in srgb, var(--brand-bright) 13%, transparent), transparent 70%),
    var(--surface-2);
}
.demo-band h2 { margin-bottom: 8px; }
.demo-band p { color: var(--ink-2); max-width: 560px; }
.demo-band .demo-actions { display: flex; flex-direction: column; gap: 10px; min-width: 232px; }
.demo-band .tiny { text-align: center; }

@media (max-width: 860px) {
  .demo-band { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .demo-band .demo-actions { min-width: 0; }
}

/* ---------------------------------------------------- КАТАЛОГ */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.product-photo { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.product-photo img { width: 100%; height: 100%; object-fit: cover; }
.product-photo .placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--dark-2), var(--dark-3)); color: rgba(255,255,255,.55);
}
.product-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-title { font-weight: 680; font-size: 16px; }
.product-desc { font-size: 13.5px; color: var(--muted); flex: 1; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.product-price { font-size: 20px; font-weight: 760; letter-spacing: -.02em; }
.product-price small { font-size: 12.5px; font-weight: 550; color: var(--muted); display: block; }

/* ---------------------------------------------------- ТЁМНАЯ СЕКЦИЯ */
.dark-section {
  color: #fff; border-radius: 28px; padding: 46px 40px; margin: 0 auto;
  background:
    radial-gradient(700px 380px at 82% 0%, color-mix(in srgb, var(--brand-bright) 20%, transparent), transparent 60%),
    linear-gradient(160deg, var(--dark-1), var(--dark-3));
}
.dark-section h2 { color: #fff; }
.dark-section .lead { color: rgba(220,236,242,.82); }
.tile {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px;
  transition: border-color .18s ease, background-color .18s ease;
}
.tile:hover { border-color: color-mix(in srgb, var(--brand-bright) 55%, transparent); background: rgba(255,255,255,.1); }
.tile.featured { border-color: var(--brand-bright); background: color-mix(in srgb, var(--brand-bright) 14%, transparent); }
.tile b { font-size: 17px; }
.tile span { font-size: 13.5px; color: rgba(210,230,238,.78); }
@media (max-width: 680px) { .dark-section { padding: 32px 22px; border-radius: 22px; } }

/* ---------------------------------------------------- ШАГИ, FAQ, ОТЗЫВЫ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding-top: 40px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand-bright) 16%, transparent);
  color: var(--brand-deep); font-weight: 750; font-size: 14px;
}
.step b { display: block; margin-bottom: 5px; font-size: 16px; }
.step span { font-size: 14px; color: var(--muted); }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; padding: 17px 34px 17px 0; font-weight: 620; font-size: 16px;
  position: relative; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 400; color: var(--muted);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding-bottom: 17px; color: var(--ink-2); font-size: 15px; max-width: 68ch; }

.review { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.review .stars { color: #E5A62B; letter-spacing: 2px; font-size: 14px; }
.review p { margin: 9px 0 12px; font-size: 14.5px; color: var(--ink-2); }
.review .who { font-size: 13px; color: var(--muted); }
.review .who b { color: var(--ink); font-size: 14px; }

/* ---------------------------------------------------- ПОДВАЛ */
.site-footer { background: var(--dark-1); color: rgba(214,232,240,.72); padding: 48px 0 28px; margin-top: 60px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
.site-footer a { color: rgba(214,232,240,.82); font-size: 14px; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- УВЕДОМЛЕНИЯ */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 10px; max-width: 350px; }
.toast {
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--brand);
  border-radius: var(--radius); padding: 13px 16px; box-shadow: var(--shadow);
  animation: toast-in .28s cubic-bezier(.2,.9,.3,1);
}
.toast b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.toast span { font-size: 13px; color: var(--muted); }
.toast.ok  { border-left-color: var(--ok); }
.toast.bad { border-left-color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .toasts { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* ---------------------------------------------------- ИКОНКИ */
.ic {
  width: 20px; height: 20px; flex: none;
  stroke: currentColor; fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ic-sm { width: 16px; height: 16px; }
.ic-lg { width: 26px; height: 26px; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------------------------------------------------- ДВЕ КОЛОНКИ
   Основная колонка и боковая. На узком экране складываются в одну:
   раньше это задавалось инлайн-стилем и на телефоне главная колонка
   схлопывалась в ноль. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.split-wide  { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }
.split-even  { grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr); }
.split-order { grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 34px; }
.split-doc   { grid-template-columns: minmax(0, 1fr) 240px; gap: 40px; }

@media (max-width: 980px) {
  .split, .split-wide, .split-even, .split-order, .split-doc {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  /* Боковая колонка не липнет, когда она уже не сбоку */
  .split > aside, .split-order > aside, .split-doc > aside { position: static !important; }
}
