/* ============================================================
   HARDLINE — landing
   Спокійний темний стиль: чорний, сталь, червоний акцент лише на ціні й кнопках.
   Структура: замовлення одразу зверху → усе інше нижче.
   ============================================================ */
:root {
  --bg: #0b0b0c;
  --panel: #141416;
  --panel-2: #1a1a1d;
  --line: #27272b;
  --line-2: #34343a;
  --text: #ececee;
  --muted: #9a9aa1;
  --steel: #c9c9cc;
  --red: #d0121b;
  --red-2: #ef2b33;
  --radius: 4px;

  --f-display: "Russo One", "Oswald", Impact, sans-serif;
  --f-accent: "Oswald", "Roboto Condensed", sans-serif;
  --f-body: "Roboto Condensed", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.45 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
.red { color: var(--red-2); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: #0e0e10;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 56px;
}
.topbar__logo { height: 40px; width: auto; }
.topbar__note {
  font-family: var(--f-accent);
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   БЛОК ЗАМОВЛЕННЯ (перший екран)
   ============================================================ */
.buy { padding: 16px 0 28px; }
.buy .wrap { display: grid; gap: 18px; }

/* галерея */
.gallery {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  margin: 0 -16px;
}
.gallery__track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  scroll-snap-align: start;
}
.gallery__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px;
  background: var(--red);
  color: #fff;
  font: 700 17px var(--f-accent);
  border-radius: var(--radius);
}
.gallery__nav {
  position: absolute; top: 50%; z-index: 2;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: #fff;
  font-size: 22px; line-height: 1;
  cursor: pointer;
}
.gallery__nav--prev { left: 10px; }
.gallery__nav--next { right: 10px; }
.gallery__dots {
  position: absolute; bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.gallery__dots button {
  width: 7px; height: 7px;
  border: 0; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
}
.gallery__dots button.is-active { background: #fff; }

/* назва і ціна */
.buy__title {
  font-family: var(--f-display);
  font-size: clamp(24px, 6.4vw, 32px);
  line-height: 1.1;
  text-transform: uppercase;
}
.buy__sub { margin-top: 6px; color: var(--muted); }

.price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px;
  margin-top: 14px;
}
.price__new { font: 400 34px/1 var(--f-display); color: var(--red-2); }
.price__old { font-size: 19px; color: var(--muted); text-decoration: line-through; }
.price__badge {
  align-self: center;
  padding: 2px 8px;
  border: 1px solid var(--red);
  color: var(--red-2);
  font: 600 14px var(--f-accent);
  border-radius: var(--radius);
}

.promo {
  margin-top: 12px;
  padding: 9px 12px;
  border-left: 3px solid var(--red);
  background: var(--panel);
  font-size: 15px;
}
.promo b { color: #fff; }

/* таймер і залишок — одним компактним рядком */
.urgency {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
.urgency__timer b {
  color: var(--text);
  font: 600 16px var(--f-accent);
  font-variant-numeric: tabular-nums;
  letter-spacing: .03em;
}
.urgency__stock b { color: var(--text); }
.stock__bar { flex: 1 1 100%; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.stock__fill { height: 100%; width: 22%; background: var(--red); transition: width .6s; }

/* ---------- форма ---------- */
.form { display: grid; gap: 16px; margin-top: 18px; }
.form__group { min-width: 0; }
.form__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-bottom: 8px;
  font: 500 13px var(--f-accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.form__label b { color: var(--text); font-weight: 500; text-transform: none; letter-spacing: 0; }
.form__error { display: none; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--red-2); }
.has-error .form__error, .form__error.is-visible { display: block; }
.form__hint { text-align: center; font-size: 13px; color: var(--muted); margin-top: -6px; }
.form__sep { height: 1px; background: var(--line); margin: 2px 0; }

.field { display: block; min-width: 0; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font: 500 13px var(--f-accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}
.field input, .field select {
  width: 100%; height: 50px;
  padding: 0 14px;
  background: #0f0f11;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  color: #fff;
  font: 17px var(--f-body);
  outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color .15s;
}
.field input::placeholder { color: #5a5a60; }
.field input:focus, .field select:focus { border-color: var(--steel); }
.field.has-error input, .field.has-error select { border-color: var(--red-2); }
.field select {
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field select.is-empty { color: #5a5a60; }
.field select option { color: #fff; background: #0f0f11; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row-np { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }

/* чіпи: колір, розмір, месенджер */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 52px; min-height: 44px;
  padding: 0 14px;
  background: #0f0f11;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  font: 500 15px var(--f-accent);
  transition: border-color .15s, background .15s;
}
.chips input:checked + span { border-color: var(--red); background: rgba(208,18,27,.14); color: #fff; box-shadow: inset 0 0 0 1px var(--red); }
.chips input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.chips--colors span { padding: 0 14px 0 6px; }
.swatch {
  width: 32px; height: 32px; flex: none;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  background-size: cover; background-position: center 20%;
}
.chips--messengers label { flex: 1 1 0; }
.chips--messengers span { padding: 0 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot--tg { background: #2aabee; }
.dot--viber { background: #7360f2; }
.dot--wa { background: #25d366; }

/* підбір розміру: калькулятор — основний спосіб */
.sizecalc {
  padding: 14px;
  border: 1.5px solid var(--red);
  border-radius: var(--radius);
  background: rgba(208,18,27,.07);
}
.sizecalc__head { margin-bottom: 12px; }
.sizecalc__head b { display: block; font: 600 17px var(--f-accent); text-transform: uppercase; letter-spacing: .03em; }
.sizecalc__head small { color: var(--muted); font-size: 14px; }
.sizecalc .field input { background: #0b0b0c; }
.sizecalc__result { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); background: #0b0b0c; border: 1px solid var(--line-2); font-size: 15px; }
.sizecalc__result[hidden] { display: none; }
.sizecalc__result.is-ok { border-color: #2fbf71; }
.sizecalc__result b { font: 400 26px/1 var(--f-display); color: #fff; margin: 0 6px; vertical-align: -3px; }
.sizecalc__result .ok { color: #2fbf71; font-weight: 700; }
.calc__note { display: block; margin-top: 6px; font-size: 13px; color: #ffb3b6; }
.calc-toggle {
  margin-top: 10px;
  border: 0; padding: 0; background: none;
  color: var(--muted);
  font: 14px var(--f-body);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.chips--sizes[data-manual] { margin-top: 10px; }
.chips--sizes[hidden] { display: none; }

/* чекбокси: зв'язок, другий товар */
.check {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; }
.check__box {
  flex: none;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1.5px solid var(--steel);
  border-radius: 3px;
}
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box::after { content: "✓"; font-size: 14px; font-weight: 700; color: #fff; }
.check input:focus-visible + .check__box { outline: 2px solid #fff; outline-offset: 2px; }
.check__text b { display: block; font-weight: 700; }
.check__text small { color: var(--muted); font-size: 14px; }
.check--accent { border-color: rgba(208,18,27,.55); background: rgba(208,18,27,.07); }

.sub {
  display: grid; gap: 14px;
  margin-top: -8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  background: #111113;
}
.sub[hidden] { display: none; }

.edit-banner {
  padding: 12px 14px;
  border: 1px solid #c9a227;
  border-radius: var(--radius);
  background: rgba(201,162,39,.1);
  font-size: 15px;
}
.edit-banner[hidden] { display: none; }

/* довіра під кнопкою */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px; }
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12.5px; line-height: 1.25; color: var(--muted); }
.trust__item svg { width: 24px; height: 24px; fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.trust__item b { display: block; color: var(--text); font-weight: 700; font-size: 13px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font: 400 18px var(--f-display);
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--main { width: 100%; min-height: 58px; padding: 0 18px; background: var(--red); }
.btn--main:hover { background: var(--red-2); }
.btn--main:disabled { opacity: .7; cursor: default; }
.btn--ghost { width: 100%; min-height: 50px; background: #2a2a2f; font-size: 15px; }
.btn--ghost:hover { background: #34343a; }

/* ============================================================
   НИЖНІ БЛОКИ
   ============================================================ */
.section { padding: 36px 0; border-top: 1px solid var(--line); }
.section__title {
  margin-bottom: 18px;
  font: 400 24px/1.15 var(--f-display);
  text-transform: uppercase;
}
.section__lead { margin: -8px 0 18px; color: var(--muted); }
.narrow { max-width: 680px; }

/* про товар */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feature { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.feature__num { display: block; margin-bottom: 6px; font: 600 14px var(--f-accent); color: var(--red-2); }
.feature h3 { margin-bottom: 4px; font: 600 16px var(--f-accent); text-transform: uppercase; }
.feature p { font-size: 14px; color: var(--muted); }

/* характеристики */
.specs { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.specs > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.specs > div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 700; }
.note { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--red); background: var(--panel); font-size: 15px; }

/* таблиця розмірів */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.size-table { width: 100%; border-collapse: collapse; font-size: 15px; text-align: center; }
.size-table th { padding: 10px 6px; background: var(--panel-2); color: var(--muted); font: 500 13px var(--f-accent); text-transform: uppercase; letter-spacing: .05em; }
.size-table td { padding: 10px 6px; border-top: 1px solid var(--line); }
.size-table td:first-child { font-weight: 700; }
.size-table tr.is-hit td { background: rgba(208,18,27,.16); }
.size-note { display: block; margin-top: 2px; font-size: 11px; line-height: 1.2; color: var(--muted); }
.guarantee { margin-top: 12px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.guarantee svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--steel); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.guarantee h3 { font: 600 15px var(--f-accent); text-transform: uppercase; }
.guarantee p { font-size: 14px; color: var(--muted); }

/* відгуки */
.rating { display: flex; gap: 22px; margin-bottom: 16px; }
.rating__item b { display: block; font: 400 22px var(--f-display); }
.rating__item span { font-size: 13px; color: var(--muted); }
.reviews { display: grid; gap: 10px; }
.review { padding: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.review__head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.review__avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #2a2a2f; font-weight: 700; }
.review__name { font-weight: 700; }
.review__meta { font-size: 13px; color: var(--muted); }
.stars { color: #f5b301; letter-spacing: 1px; margin-right: 4px; }
.review p { font-size: 15px; }
.review img { width: 100%; aspect-ratio: 1; object-fit: cover; margin-top: 10px; border-radius: var(--radius); }

/* як замовити */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 12px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--red);
  border-radius: 50%;
  color: var(--red-2);
  font: 600 15px var(--f-accent);
}
.steps b { font-weight: 700; }
.steps span { color: var(--muted); font-size: 15px; }

.to-order { margin-top: 22px; }

/* ---------- футер ---------- */
.footer { padding: 24px 0 100px; border-top: 1px solid var(--line); text-align: center; font-size: 13px; color: #6c6c72; }
.footer__logo { height: 34px; width: auto; margin: 0 auto 10px; opacity: .8; }
.footer__links { display: flex; justify-content: center; gap: 18px; margin-bottom: 10px; }
.footer__links a { color: var(--muted); text-decoration: none; }

/* ---------- липка кнопка ---------- */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,11,12,.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s;
}
.sticky .wrap { display: flex; align-items: center; gap: 14px; padding: 0; }
.sticky.is-visible { transform: none; }
.sticky__price { display: flex; flex-direction: column; line-height: 1.1; }
.sticky__price s { font-size: 13px; color: var(--muted); }
.sticky__price b { font: 400 22px var(--f-display); color: var(--red-2); }
.sticky .btn { flex: 1; min-height: 50px; font-size: 17px; }

/* ---------- сповіщення, модалки ---------- */
.toast {
  position: fixed; left: 12px; bottom: 84px; z-index: 60;
  max-width: 290px;
  display: flex; gap: 10px; align-items: center;
  padding: 8px 12px 8px 8px;
  background: #18181b;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.6);
  font-size: 14px;
  transform: translateX(calc(-100% - 24px));
  visibility: hidden;
  transition: transform .4s, visibility .4s;
}
.toast.is-visible { transform: none; visibility: visible; }
.toast img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }
.toast small { display: block; color: var(--muted); font-size: 12px; }

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.75); }
.modal[hidden] { display: none; }
.modal__box { position: relative; width: 100%; max-width: 440px; max-height: 85vh; overflow-y: auto; padding: 26px 20px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.modal__close { position: absolute; top: 6px; right: 10px; background: none; border: 0; color: var(--muted); font-size: 28px; cursor: pointer; }
.modal h3 { font: 400 20px var(--f-display); margin-bottom: 12px; }
.modal p { color: var(--muted); font-size: 15px; }

/* ---------- сторінка подяки ---------- */
.thanks { padding: 28px 0 40px; }
.thanks .wrap { max-width: 520px; }
.thanks__head { text-align: center; margin-bottom: 22px; }
.thanks__icon { width: 60px; height: 60px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--red); font-size: 30px; }
.thanks__title { font: 400 26px/1.15 var(--f-display); text-transform: uppercase; }
.thanks__num { display: inline-block; margin: 10px 0 10px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: var(--radius); font: 500 15px var(--f-accent); text-transform: uppercase; letter-spacing: .05em; }
.thanks__num b { color: var(--red-2); font-weight: 500; }
.thanks__text { color: var(--muted); }
.thanks-order { padding: 16px; margin-bottom: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.thanks-order[hidden] { display: none; }
.thanks-order__check { font-size: 15px; margin-bottom: 12px; }
.thanks-order .specs { margin-bottom: 12px; background: #111113; }

/* ---------- сторінка-прокладка ---------- */
.pre-body { min-height: 100vh; background: var(--c1, #0b0b0c); }
.pre {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% 105%, var(--c2) 0%, transparent 70%),
    radial-gradient(80% 40% at 50% 0%, rgba(255,255,255,.05) 0%, transparent 70%),
    linear-gradient(180deg, var(--c1) 0%, #000 100%);
  text-align: center;
}
.pre__logo { width: min(200px, 52vw); height: auto; }
.pre__content { width: 100%; max-width: 380px; display: grid; gap: 12px; }
.pre__title { font: 400 clamp(26px, 8vw, 38px)/1.1 var(--f-display); text-transform: uppercase; }
.pre__text { color: #d6d6da; font-size: 17px; }
.pre__btn { min-height: 62px; font-size: 20px; gap: 10px; box-shadow: 0 12px 34px rgba(208,18,27,.35); }

/* пастка для ботів — людина її не бачить */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- десктоп ---------- */
@media (min-width: 900px) {
  .buy { padding-top: 28px; }
  .buy .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
  .gallery { margin: 0; aspect-ratio: 4 / 5; position: sticky; top: 16px; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .sticky { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
