/* Центр автоматизации торговли · rk-11 · школа Retail counter.
   Шрифт: IBM Plex Sans (локальные woff2, кириллица + латиница). */

@font-face { font-family: "Plex LP"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("./fonts/ibm-plex-sans-cyrillic-400.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex LP"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("./fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex LP"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("./fonts/ibm-plex-sans-cyrillic-600.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex LP"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("./fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex LP"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("./fonts/ibm-plex-sans-cyrillic-700.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex LP"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("./fonts/ibm-plex-sans-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --accent: #1F4E79;
  --accent-deep: #173B5C;
  --accent-mist: #E3ECF4;
  --counter: #F6F2EA;        /* тёплая поверхность прилавка */
  --counter-2: #EDE6D9;
  --white: #FFFFFF;
  --ink: #1B2430;
  --ink-soft: #4B5566;
  --rule: #D9D1C2;
  --err: #B42318;
  --ok: #1E6B4F;
  --r: 10px;
  --wrap: 1180px;
  --bar: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip; background: var(--counter); color: var(--ink);
  font-family: "Plex LP", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
[id] { scroll-margin-top: calc(var(--bar) + 12px); }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
.lead-text { font-size: clamp(17px, 2vw, 19px); color: var(--ink-soft); max-width: 36em; }
.eyebrow { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 108px) 0; }
.section__head { display: grid; gap: 12px; max-width: 40em; margin-bottom: clamp(32px, 4.5vw, 52px); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 24px; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; border: 2px solid var(--accent);
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--ghost { background: transparent; color: var(--accent); }
.btn--ghost:hover { background: var(--accent-mist); }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* ───────── шапка: sticky, без белой дыры под ней ───────── */
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--bar);
  background: var(--white); border-bottom: 1px solid var(--rule);
}
.topbar__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; line-height: 1.25; }
.brand small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-soft); }
.topbar__tel {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 600; color: var(--accent); text-decoration: none; white-space: nowrap;
}

/* ───────── 1. первый экран: оффер + форма + фото ───────── */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 88px); }
.hero__grid { display: grid; gap: clamp(32px, 4.5vw, 56px); align-items: start; }
.hero__copy { display: grid; gap: 20px; }
.hero__gift {
  display: grid; gap: 6px; padding: 18px 20px;
  background: var(--white); border: 1px solid var(--rule); border-left: 4px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
}
.hero__gift-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.hero__gift-text { font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__geo { font-size: 15px; color: var(--ink-soft); }
.hero__photo { margin: 0; }
.hero__photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r); border: 1px solid var(--rule);
}

/* форма */
.card-form {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
  padding: clamp(22px, 3.4vw, 32px); display: grid; gap: 18px;
  box-shadow: 0 1px 2px rgba(27, 36, 48, .06);
}
.card-form__head { display: grid; gap: 6px; }
.card-form__head p { color: var(--ink-soft); font-size: 15px; }
.field { display: grid; gap: 6px; position: relative; }
.field label, .field__label { font-size: 15px; font-weight: 600; }
.field__req { color: var(--ink-soft); font-weight: 400; }
.field input, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--white); border: 1px solid #8D99A9; border-radius: 8px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input:user-invalid, .field textarea:user-invalid { border-color: var(--err); }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 15px; color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.form-submit { width: 100%; }
.lp-error { padding: 12px 14px; border-radius: 8px; background: #FDECEA; color: var(--err); font-size: 15px; }
[data-lp-success] { display: grid; gap: 8px; }
[data-lp-success] h3 { color: var(--ok); }
[data-lp-success] p { color: var(--ink-soft); }

/* ловушка для ботов: скрыта через clip, не уводится за экран */
.hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  border: 0; white-space: nowrap;
}

/* ───────── 2. «сейчас» / «после» ───────── */
.compare-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--rule); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.compare thead th { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); background: var(--counter); }
.compare thead th.compare__after { color: var(--accent); background: var(--accent-mist); }
.compare tbody th { width: 22%; font-weight: 600; color: var(--ink); }
.compare td { color: var(--ink-soft); width: 39%; }
.compare td.compare__after { color: var(--ink); background: #F4F8FB; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* ───────── 3. фото-полоса ───────── */
.band-photo { margin: 0; position: relative; }
.band-photo img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.band-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--white); padding: 10px 16px; font-size: 14px; color: var(--ink-soft); }

/* ───────── 4. комплекты: открытая сетка 2×2 ───────── */
.kits { display: grid; gap: 20px; }
.kit {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--r);
  padding: clamp(22px, 3vw, 30px); display: grid; gap: 16px; align-content: start;
}
.kit__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.kit__index { font-size: 13px; font-weight: 600; color: var(--accent); }
.kit h3 { font-size: 21px; }
.kit__label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); margin-bottom: 6px; }
.kit ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink); }
.kit__solution { background: var(--accent-mist); border-radius: 8px; padding: 14px 16px; color: var(--ink); }

/* ───────── 5. этапы: горизонтальный таймлайн ───────── */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline__step { display: grid; grid-template-columns: 44px 1fr; gap: 0 18px; padding-bottom: 32px; position: relative; }
.timeline__step:last-child { padding-bottom: 0; }
.timeline__step::before {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--accent);
}
.timeline__step:last-child::before { display: none; }
.timeline__dot {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: grid; place-items: center; font-weight: 700; font-size: 17px; position: relative; z-index: 1;
}
.timeline__body { display: grid; gap: 8px; padding-top: 4px; }
.timeline__body p { color: var(--ink-soft); }
.timeline__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.timeline__tags span { font-size: 14px; padding: 4px 10px; border: 1px solid var(--rule); border-radius: 999px; background: var(--white); color: var(--ink-soft); }

/* ───────── 6. возражения: 2×2 без аккордеонов ───────── */
.objections { display: grid; gap: 0; }
.objection { display: grid; gap: 8px; padding: 22px 0; border-top: 2px solid var(--accent); }
.objection dt { font-weight: 700; font-size: 18px; color: var(--ink); }
.objection dd { margin: 0; color: var(--ink-soft); }

/* ───────── факты компании ───────── */
.facts { display: grid; gap: 0; border-top: 2px solid var(--accent); }
.facts__item { padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.facts__value { font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: var(--accent); line-height: 1.1; letter-spacing: -0.01em; }
.facts__text { color: var(--ink-soft); }

/* ───────── подвал ───────── */
.site-footer { background: var(--accent-deep); color: #DCE5EE; padding: 60px 0 36px; }
.site-footer a { color: var(--white); }
.footer__grid { display: grid; gap: 36px; }
.footer__name { font-size: 18px; font-weight: 700; color: var(--white); }
.footer__contacts { display: grid; gap: 10px; font-size: 16px; }
.footer__contacts p { margin: 0; }
.footer__tel { font-size: 22px; font-weight: 700; text-decoration: none; }
.footer__form { background: var(--white); color: var(--ink); border-radius: var(--r); padding: 24px; display: grid; gap: 14px; }
.footer__form h3 { font-size: 19px; }
.footer__form .consent { color: var(--ink-soft); }
.footer__form .consent a { color: var(--accent); }
.footer__legal {
  grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .2);
  display: grid; gap: 6px; font-size: 14px; color: #C4D2DF;
}
.footer__legal a { color: var(--white); }

/* ───────── брейкпоинты ───────── */
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; }
  .hero__photo img { aspect-ratio: 16 / 9; }
  .kits { grid-template-columns: 1fr 1fr; }
  .objections { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}
@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 28px; }
  .facts__item { border-bottom: 0; border-right: 1px solid var(--rule); padding: 24px 22px 0 0; }
  .facts__item:last-child { border-right: 0; }
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 28px; }
  .timeline__step { grid-template-columns: 1fr; gap: 18px; padding-bottom: 0; }
  .timeline__step::before { top: 22px; left: 44px; right: -14px; bottom: auto; width: auto; height: 2px; }
  .timeline__step:last-child::before { display: none; }
}

/* таблица «сейчас / после» на узких экранах: строки в колонку */
@media (max-width: 719px) {
  .compare-wrap { overflow: visible; border: 0; background: none; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border: 1px solid var(--rule); border-radius: var(--r); background: var(--white); margin-bottom: 14px; overflow: hidden; }
  .compare th { padding-bottom: 6px; border-bottom: 0; }
  .compare td { padding: 10px 18px; border-bottom: 0; }
  .compare td::before { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
  .compare td:not(.compare__after)::before { content: "Сейчас"; color: var(--ink-soft); }
  .compare td.compare__after::before { content: "После внедрения"; color: var(--accent); }
  .compare td.compare__after { border-top: 1px solid var(--rule); }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap;
}

@media (max-width: 359px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 28px, var(--wrap)); }
  .btn { width: 100%; }
  .topbar__tel { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
