/* «Итого» — общий стиль сайта.
   Фон и синий заголовков взяты из готовых скриншотов для сторов
   (goldie/goldie.design.json, #182F71), градиент фирменного штриха —
   с иконки iOS-приложения, остальные цвета — из mobile/design-system. */

@font-face { font-family: 'Vocal'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/vocal-400.woff2) format('woff2'); }
@font-face { font-family: 'Vocal'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/vocal-500.woff2) format('woff2'); }
@font-face { font-family: 'Vocal'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/vocal-700.woff2) format('woff2'); }
@font-face { font-family: 'Vocal'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/vocal-800.woff2) format('woff2'); }

:root {
  --paper: #F5F9FF;
  --card: #FFFFFF;
  --ink: #182F71;
  --text: #414B60;
  --muted: #57627A;
  --blue: #3A5CB9;
  --blue-dark: #294598;
  --sky: #57BCF2;
  --line: #D7E3F4;
  --line2: #C3D5EE;
  --s1: #FFA300;
  --s2: #D97473;
  --s3: #A93AFE;
  --shadow: 0 1px 2px rgba(24, 47, 113, .06), 0 22px 48px -26px rgba(24, 47, 113, .32);
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: 'Vocal', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.62 var(--sans);
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  background: linear-gradient(160deg, #E7F3FD 0%, #D9E7FA 52%, #F5F9FF 100%);
  background-attachment: fixed;
}

h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.14; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
.doc a, .sub a, .lede a, .legal a, .note a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); }
code { font-family: var(--mono); font-size: .9em; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; position: relative; }
.narrow { max-width: 47rem; }

/* Фирменный штрих — та же линия, что в иконке приложения. */
.stroke { fill: none; stroke: url(#itogoStroke); stroke-linecap: round; stroke-linejoin: round; }
.defs { position: absolute; width: 0; height: 0; }

/* ——— Служебная типографика ——— */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .17em;
  text-transform: uppercase; color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow .dash {
  width: 26px; height: 4px; border-radius: 2px; flex: none;
  background: linear-gradient(90deg, var(--s1), var(--s2), var(--s3));
}
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ——— Шапка ——— */
.site-head { border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .62); position: relative; z-index: 3; }
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 11px; min-height: 44px;
  color: var(--ink); font-weight: 800; font-size: 17px; letter-spacing: -.015em;
}
.brand img { width: 30px; height: 30px; border-radius: 9px; box-shadow: 0 2px 8px -2px rgba(24, 47, 113, .45); }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-head nav a { color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; min-height: 44px; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
.site-head nav a.ghost {
  display: inline-flex; align-items: center; height: 44px; padding: 0 17px;
  border: 1px solid var(--line2); border-radius: 11px;
  color: var(--ink); font-weight: 500; background: var(--card);
}
.site-head nav a.ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ——— Герой ——— */
.hero { position: relative; padding: clamp(48px, 6vw, 92px) 0 clamp(60px, 7vw, 104px); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 60px); align-items: center; }
h1 { font-size: clamp(2.25rem, 1.1rem + 3.6vw, 4.625rem); line-height: 1.02; font-weight: 800; letter-spacing: -.042em; margin-top: 22px; }
h1 .mark { font-style: normal; position: relative; display: inline-block; }
h1 .mark .ul { position: absolute; left: -6px; bottom: -.12em; width: calc(100% + 16px); height: .22em; }
.lede { font-size: clamp(1rem, .95rem + .35vw, 1.1875rem); line-height: 1.58; margin-top: 26px; max-width: 32rem; }
.lede b { color: var(--ink); font-weight: 500; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.badge-link { display: block; border-radius: 10px; transition: transform 120ms cubic-bezier(.22, .61, .36, 1); }
.badge-link img { height: 52px; width: auto; }
.badge-link:hover { transform: translateY(-2px); }
.stores-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ——— Панель поиска: анатомия экрана приложения ——— */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.panel-head { background: linear-gradient(180deg, #57BAF1, #458ED8 62%, #3E76CC); padding: 14px 16px 16px; }
.panel-top { display: flex; align-items: center; gap: 10px; padding: 0 2px 11px; }
.panel-top .mono { color: rgba(255, 255, 255, .82); }
.status {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .82);
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, .55); }
  50% { opacity: .5; box-shadow: 0 0 0 5px rgba(255, 255, 255, 0); }
}
.query {
  display: flex; align-items: center; gap: 11px; height: 48px; padding: 0 15px;
  background: #fff; border-radius: 14px; color: var(--ink); font-size: 15px;
  box-shadow: 0 2px 6px -2px rgba(24, 47, 113, .3); overflow: hidden;
}
.query > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }

/* Запрос печатается и стирается. Без скрипта: ширина открывается шагами,
   каретка — это правая граница обрезающего блока, поэтому она всегда у последней буквы. */
.typer { position: relative; flex: 1; min-width: 0; height: 22px; }
.typer span {
  position: absolute; left: 0; top: 0; white-space: nowrap; overflow: hidden;
  max-width: 0; opacity: 0; padding-right: 3px;
  border-right: 2px solid transparent;
  animation: typeloop 22s infinite both, caret 1.06s steps(1, end) infinite;
}
.typer span:nth-child(1) { --w: 9.8em; animation-delay: 0s, 0s; }
.typer span:nth-child(2) { --w: 10.2em; animation-delay: -16.5s, 0s; }
.typer span:nth-child(3) { --w: 11.35em; animation-delay: -11s, 0s; }
.typer span:nth-child(4) { --w: 8em; animation-delay: -5.5s, 0s; }
@keyframes typeloop {
  0%     { max-width: 0; opacity: 1; animation-timing-function: steps(19, end); }
  7.3%   { max-width: var(--w); opacity: 1; animation-timing-function: linear; }
  18%    { max-width: var(--w); opacity: 1; animation-timing-function: steps(19, end); }
  24.9%  { max-width: 0; opacity: 1; }
  25%    { max-width: 0; opacity: 0; }
  100%   { max-width: 0; opacity: 0; }
}
@keyframes caret {
  0%, 49% { border-right-color: var(--blue); }
  50%, 100% { border-right-color: transparent; }
}

.panel-body { padding: 16px 18px 18px; }
.lanes { display: flex; flex-direction: column; gap: 11px; margin: 0 2px 4px; }
.lane { display: flex; align-items: center; gap: 11px; }
.lane img { width: 22px; height: 22px; border-radius: 7px; flex: none; }
.lane-name { width: 112px; font-size: 13.5px; flex: none; white-space: nowrap; }
.bar { flex: 1; height: 3px; border-radius: 999px; background: #E7EEF9; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--blue); }
.bar.done i { width: 100%; background: #B7C6E6; }
.bar.live i { width: 38%; animation: sweep 1250ms linear infinite; }
@keyframes sweep { from { transform: translateX(-110%); } to { transform: translateX(285%); } }
.lane-n { width: 62px; text-align: right; font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; }
.lane.live .lane-n { color: var(--blue); }

.rowhead { display: flex; align-items: center; gap: 9px; margin: 20px 2px 10px; }
.rowhead .t { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.rowhead .rule { flex: 1; height: 1px; background: var(--line); }
.rowhead .hint { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.offer {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 15px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px;
}
.offer .src { font-size: 14px; }
.offer .tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--blue-dark); background: #E8EFFE; padding: 4px 7px; border-radius: 6px; white-space: nowrap;
}
.offer .price { margin-left: auto; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.offer.best { border-color: var(--blue); box-shadow: 0 10px 24px -16px rgba(58, 92, 185, .9); }
.offer.similar { opacity: .6; }
.panel-foot { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: 12px; color: var(--muted); }
.panel-foot svg { width: 14px; height: 14px; flex: none; }

/* Штрих во всю ширину — граница между героем и остальной страницей. */
.hero-rule { position: absolute; left: 0; right: 0; bottom: -30px; width: 100%; height: 60px; z-index: 2; pointer-events: none; }

/* ——— Секции ——— */
.band { padding: clamp(56px, 6vw, 100px) 0; border-top: 1px solid var(--line); position: relative; }
.hero + .band { border-top: 0; }
.s-head { max-width: 42rem; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.5rem); font-weight: 800; letter-spacing: -.034em; margin-top: 18px; }
.sub { margin-top: 16px; color: var(--muted); max-width: 34rem; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px 28px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; background: #E8EFFE;
}
.card .ico svg { width: 19px; height: 19px; color: var(--blue); }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 9px; }
.card p { font-size: 15px; color: var(--muted); }

.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 0 48px; margin-top: clamp(28px, 3vw, 48px); }
.limits li { display: flex; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.limits .k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--muted); width: 26px; flex: none; padding-top: 5px; }
.limits h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.limits p { font-size: 15px; color: var(--muted); }

/* ——— Финальный блок: пара «синий фон + штрих» из иконки ——— */
.final {
  position: relative; border-radius: 26px; overflow: hidden;
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 56px) clamp(34px, 4vw, 52px);
  background: linear-gradient(135deg, #55B8F0, #4994DB 38%, #3D73C8 66%, #3B4D9E);
}
.final::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(16, 35, 92, .62) 0%, rgba(16, 35, 92, .3) 46%, rgba(16, 35, 92, 0) 74%);
}
.final .mark { position: absolute; right: -40px; top: -70px; width: 520px; height: 520px; opacity: .5; }
.final .in { position: relative; z-index: 1; }
.final .eyebrow { color: rgba(255, 255, 255, .9); }
.final h2 { color: #fff; max-width: 30rem; }
.final .lede { margin-top: 14px; font-size: 16px; max-width: 28rem; color: #E4EEFB; }
.final .stores { align-items: center; }
.mailbtn {
  display: inline-flex; align-items: center; height: 52px; padding: 0 20px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .45); color: #fff; font-weight: 500;
}
.mailbtn:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ——— Правовые страницы ——— */
.doc { padding-block: clamp(40px, 5vw, 72px) 24px; }
.doc h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); line-height: 1.14; letter-spacing: -.02em; margin-top: 0; }
.doc .updated { color: var(--muted); font-size: 15px; margin-top: 12px; }
.doc h2 { margin: 40px 0 12px; font-size: 1.3rem; }
.doc h3 { margin: 24px 0 8px; font-size: 1.0625rem; }
.doc p { margin: 0 0 1em; }
.doc li { margin-bottom: .5em; }
.doc dl { margin: 0 0 1em; }
.doc dt { font-weight: 700; color: var(--ink); margin-top: 14px; }
.doc dd { margin: 4px 0 0; }
.note {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 22px 24px; margin: 28px 0;
}
.note p:last-child, .note ul:last-child { margin-bottom: 0; }
ul.plain { padding-left: 1.15em; margin: 0 0 1em; list-style: disc; }
ul.plain li { margin-bottom: .4em; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 28px 0; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; list-style: decimal; }
.toc li { margin-bottom: .35em; font-size: 15px; break-inside: avoid; }

/* ——— Подвал ——— */
footer { border-top: 1px solid var(--line); padding: 48px 0 60px; position: relative; }
.f-top { display: flex; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
footer .links { display: flex; gap: 26px; flex-wrap: wrap; font-size: 15px; margin-bottom: 16px; }
footer p { font-size: 13px; line-height: 1.62; color: var(--muted); max-width: 48rem; }
footer p + p { margin-top: 8px; }
footer .links a { color: var(--text); }
footer .links a:hover { color: var(--blue); }
.legal { margin-top: 32px; }

@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-in { grid-template-columns: 1fr; }
  .lede { max-width: none; }
  .final .mark { right: -150px; top: -110px; width: 420px; height: 420px; }
  .toc ol { columns: 1; }
}
@media (max-width: 620px) {
  .grid, .grid.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .site-head .wrap { flex-wrap: wrap; gap: 12px; padding-top: 14px; padding-bottom: 14px; min-height: 0; }
  .site-head nav { margin-left: 0; width: 100%; gap: 18px; }
  .site-head nav a.jump { display: none; }
  .badge-link img { height: 46px; }
  .mailbtn { height: 46px; padding: 0 16px; }
  .lane-name { width: 104px; font-size: 13px; }
  .lane-n { width: 42px; }
  .hero-rule { bottom: -22px; height: 44px; }
  .f-top { flex-direction: column; gap: 20px; }
  footer .links { flex-direction: column; gap: 4px; }
  footer .links a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse, .bar.live i { animation: none; }
  .bar.live i { width: 64%; }
  .badge-link { transition: none; }
  .typer span { animation: none; }
  .typer span:nth-child(1) { max-width: var(--w); opacity: 1; border-right-color: var(--blue); }
}
