/* Тема: чорний бренд + насичений синій. Змінюйте кольори тут. */
:root {
  --blue: #1a63ff;
  --blue-rgb: 26, 99, 255;
  --blue-hi: #4d8dff;
  --blue-deep: #0c3fb8;
  --black: #0a0a0a;
  --panel: #131416;
  --panel2: #1b1d21;
  --line: #2a2d33;
  --text: #f1f3f6;
  --muted: #9ba3ae;
  --err: #ff5a5f;
  --head: "Oswald", "Montserrat", Impact, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #000;
  color: var(--text);
  font-family: "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  background: var(--black);
  overflow: hidden;
  padding-bottom: 84px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

/* ---------- таймер ---------- */
.clock { font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .03em; }
.boxes { display: flex; justify-content: center; gap: 8px; }
.boxes div {
  min-width: 68px;
  padding: 9px 6px 7px;
  border: 1px solid rgba(var(--blue-rgb), .55);
  border-radius: 10px;
  background: linear-gradient(180deg, #14213f, #0b1226);
  text-align: center;
}
.boxes b {
  display: block;
  font-family: var(--head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.boxes small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; color: var(--muted); }

.topbar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 10px 12px;
  background: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.topbar .clock { padding: 2px 8px; border-radius: 6px; background: rgba(0, 0, 0, .35); }

/* ---------- кнопка ---------- */
.btn {
  display: block;
  width: 100%;
  padding: 18px 20px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #3b7bff, var(--blue) 55%, var(--blue-deep));
  box-shadow: 0 8px 26px rgba(var(--blue-rgb), .45), inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
  font-family: var(--head);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  animation: pulse 2.4s infinite;
}
.btn:hover { filter: brightness(1.12); }
.btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.btn:disabled { opacity: .7; animation: none; cursor: default; }
.btn--sm { padding: 11px 8px; font-size: 17px; box-shadow: 0 4px 14px rgba(var(--blue-rgb), .35); animation: none; }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .btn { animation: none; } }

/* ---------- перший екран ---------- */
.hero { text-align: center; }
.hero__poster { position: relative; display: block; }
.hero__poster img { width: 100%; }
.hero__poster::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0), var(--black) 92%);
}
.hero__body { position: relative; margin-top: -86px; padding: 0 18px 26px; }
.hero__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 6px;
  background: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero__title {
  margin: 12px 0 8px;
  font-family: var(--head);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero__title span {
  display: block;
  font-size: 78px;
  letter-spacing: .04em;
  line-height: 1;
  background: linear-gradient(180deg, #8fb5ff, var(--blue) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { max-width: 380px; margin: 4px auto 0; font-size: 16px; font-weight: 500; color: var(--muted); }

.bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 0;
  list-style: none;
  text-align: left;
}
.bullets li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.bullets svg, .group__head svg, .delivery__list svg {
  flex: none;
  fill: none;
  stroke: var(--blue-hi);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bullets svg { width: 30px; height: 30px; }

.deal {
  margin-top: 24px;
  padding: 16px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.deal__label { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.price { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 16px 0 16px; }
.price__off {
  padding: 8px 11px;
  border-radius: 8px;
  background: var(--blue);
  font-family: var(--head);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
.price__col { display: flex; flex-direction: column; align-items: flex-start; }
.price__old { font-size: 18px; font-weight: 600; color: #6f7782; text-decoration: line-through; }
.price__new { font-family: var(--head); font-size: 58px; font-weight: 700; line-height: 1; white-space: nowrap; }
.price__new small { font-size: 26px; color: var(--blue-hi); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; list-style: none; font-size: 12.5px; font-weight: 600; }
.chips li { padding: 6px 11px 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.chips li::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--blue-hi); }

/* ---------- блоки ---------- */
.feat { padding: 44px 20px; text-align: center; background: var(--panel); }
.feat--dark { background: var(--black); }
.feat__title {
  font-family: var(--head);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.feat__text { max-width: 410px; margin: 14px auto 0; font-size: 16px; color: var(--muted); }
.feat__img { margin: 22px auto 0; width: 100%; border-radius: 14px; border: 1px solid var(--line); }
.feat .btn { margin-top: 26px; }

.groups { display: grid; gap: 10px; margin-top: 22px; text-align: left; }
.group { padding: 16px 16px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.group__head { display: flex; align-items: center; gap: 12px; font-family: var(--head); font-size: 21px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.group__head svg { width: 38px; height: 38px; padding: 7px; border-radius: 10px; background: rgba(var(--blue-rgb), .16); }
.group__list { margin-top: 8px; list-style: none; }
.group__list li { position: relative; padding: 8px 0 8px 18px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.4; color: var(--muted); }
.group__list li:first-child { border-top: 0; }
.group__list li::before { content: ""; position: absolute; left: 1px; top: 16px; width: 6px; height: 6px; border-radius: 1px; background: var(--blue); }
.group__list b { font-weight: 700; color: var(--text); }

/* ---------- характеристики ---------- */
.specs { padding: 44px 16px; text-align: center; background: var(--panel); }
.specs__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.spec { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--black); text-align: left; }
.spec img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.spec figcaption { padding: 10px 12px 14px; line-height: 1.3; border-top: 2px solid var(--blue); }
.spec figcaption span { display: block; font-size: 12px; font-weight: 700; color: var(--blue-hi); }
.spec figcaption b { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; }

/* ---------- образи: горизонтальна стрічка ---------- */
.uses { padding: 44px 0; text-align: center; background: var(--black); }
.uses .feat__title, .uses__hint { padding: 0 16px; }
.uses__hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.uses__list {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 0 16px 6px;
  overflow-x: auto;
  list-style: none;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}
.uses__list::-webkit-scrollbar { display: none; }
.use {
  position: relative;
  flex: 0 0 68%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  aspect-ratio: 3 / 4.3;
  text-align: left;
  scroll-snap-align: start;
}
.use img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.use::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(180deg, rgba(10, 10, 10, 0), rgba(10, 10, 10, .92)); }
.use .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; }
.use .cap b { display: block; font-family: var(--head); font-size: 24px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.use .cap span { display: block; font-size: 13px; color: #c9d1db; }

/* ---------- кольори й розміри ---------- */
.colors { padding: 44px 16px; text-align: center; background: var(--panel); }
.colors__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.color { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--black); }
.color img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }
.color__body { display: flex; flex: 1; flex-direction: column; padding: 11px 10px 12px; }
.color__name { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 700; }
.color__name i, .swatch i { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.color__price { margin: 4px 0 10px; white-space: nowrap; }
.color__price s { font-size: 13px; color: #6f7782; }
.color__price b { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--blue-hi); }
.color .btn { margin-top: auto; }

.sizes { margin-top: 22px; padding: 18px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--black); }
.sizes__title { font-family: var(--head); font-size: 22px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sizes__note { margin-top: 2px; font-size: 13px; color: var(--muted); }
.chart { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.chart table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.chart th, .chart td { padding: 8px 3px; border-top: 1px solid var(--line); line-height: 1.2; }
.chart thead th { border-top: 0; font-size: 13px; font-weight: 800; white-space: nowrap; color: var(--blue-hi); background: var(--panel2); }
.chart thead th:first-child { padding-left: 10px; color: var(--muted); font-size: 12px; font-weight: 700; text-align: left; }
.chart tbody th { width: 28%; padding-left: 10px; font-size: 12px; font-weight: 600; text-align: left; color: var(--muted); }
.chart td { font-weight: 700; white-space: nowrap; }
.chart tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .025); }
@media (max-width: 360px) {
  .sizes { padding-left: 8px; padding-right: 8px; }
  .chart th, .chart td { padding-left: 1px; padding-right: 1px; }
  .chart thead th, .chart td { font-size: 12px; }
  .chart tbody th, .chart thead th:first-child { padding-left: 6px; font-size: 11px; }
}
.sizes__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- доставка ---------- */
.delivery { padding: 40px 20px; text-align: center; background: var(--black); }
.delivery__list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; list-style: none; }
.delivery__list li { padding: 16px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.delivery__list svg { display: block; width: 32px; height: 32px; margin: 0 auto 8px; }
.steps { counter-reset: step; max-width: 380px; margin: 26px auto 0; list-style: none; text-align: left; }
.steps li { position: relative; padding: 0 0 18px 52px; font-size: 15px; color: var(--muted); }
.steps li b { display: block; color: var(--text); font-size: 16.5px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--head);
  font-size: 20px;
  font-weight: 600;
  line-height: 38px;
  text-align: center;
}

/* ---------- форма ---------- */
.order { padding: 40px 16px 34px; background: linear-gradient(180deg, #0d1a38, var(--black) 70%); text-align: center; }
.order__timer { margin-top: 16px; }
.order__card { margin-top: 20px; padding: 22px 16px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); text-align: left; }
.order_form { margin: 0; }
.field {
  display: block;
  width: 100%;
  margin-bottom: 12px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--black);
  color: var(--text);
  font: inherit;
  font-size: 18px;
}
.field::placeholder { color: #6f7782; }
.field:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .3); }
.field[aria-invalid="true"] { border-color: var(--err); }
.field__err { margin: -6px 0 12px; font-size: 14px; font-weight: 600; color: var(--err); }
.order__hint { margin-top: 14px; font-size: 14px; text-align: center; color: var(--muted); }

.opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; border: 0; }
.opts__label { margin-bottom: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.opts__value { color: var(--text); }
.opts__link { margin-left: 4px; font-weight: 600; color: var(--blue-hi); }
.opts input { position: absolute; opacity: 0; pointer-events: none; }
.swatch, .size {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 2px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--black);
  cursor: pointer;
}
.swatch i { width: 30px; height: 30px; }
.swatch span { font-size: 12px; font-weight: 700; line-height: 1.1; }
.size { padding: 13px 2px; }
.size span { font-size: 15px; font-weight: 800; white-space: nowrap; }
.swatch:has(input:checked), .size:has(input:checked) { border-color: var(--blue); background: rgba(var(--blue-rgb), .18); box-shadow: 0 0 0 1px var(--blue); }
.swatch:has(input:focus-visible), .size:has(input:focus-visible) { outline: 3px solid var(--blue-hi); outline-offset: 2px; }
.size:has(input[aria-invalid="true"]) { border-color: var(--err); }
.opts--size { grid-template-columns: repeat(6, 1fr); gap: 6px; }
.opts--size + .field__err { margin-top: -8px; }
.total { margin-bottom: 16px; font-size: 17px; font-weight: 600; }
.total__old { font-size: 15px; color: #6f7782; }
.total b { font-family: var(--head); font-size: 34px; font-weight: 700; color: var(--blue-hi); white-space: nowrap; }

.footer { padding: 22px 16px; font-size: 13px; text-align: center; color: var(--muted); }
.footer a { text-decoration: none; }

/* ---------- липка панель внизу ---------- */
.sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: 480px;
  margin: 0 auto;
  padding: 8px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(10, 10, 10, .96);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .5);
  transition: transform .25s ease;
}
.sticky.is-hidden { transform: translateY(110%); }
.sticky__timer { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; text-align: center; color: var(--muted); }
.sticky__timer .clock { color: var(--text); }
.sticky .btn { padding: 14px 16px; font-size: 20px; animation: none; }

/* ---------- сторінки «Дякуємо» та «Помилка» ---------- */
.notice-page { background: #000; }
.notice { display: flex; align-items: center; justify-content: center; max-width: 480px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; padding: 24px 16px; background: var(--black); }
.notice__card { width: 100%; padding: 26px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); text-align: center; }
.notice__img { width: 112px; height: 112px; margin: 0 auto 14px; border-radius: 50%; object-fit: cover; background: var(--panel2); }
.notice__title { font-family: var(--head); font-size: 30px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.notice__card--error .notice__title { color: var(--err); }
.notice__text { margin-top: 12px; font-size: 16px; color: var(--muted); }
.notice__info { margin-top: 20px; padding: 6px 16px; border-radius: 12px; background: var(--panel2); text-align: left; }
.notice__info div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.notice__info div:last-child { border-bottom: 0; }
.notice__info dt { flex: none; font-size: 15px; color: var(--muted); }
.notice__info dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.notice__hint { margin: 16px 0 22px; font-size: 14px; color: var(--muted); }
.notice .btn { animation: none; }

/* ---------- калькулятор розміру ---------- */
.fit { margin-top: 22px; padding: 18px 14px 20px; border: 1px solid rgba(var(--blue-rgb), .6); border-radius: 14px; background: linear-gradient(180deg, #0f1a33, var(--black) 80%); text-align: left; }
.fit__title { font-family: var(--head); font-size: 24px; font-weight: 600; letter-spacing: .03em; text-align: center; text-transform: uppercase; }
.fit__note { margin: 2px 0 14px; font-size: 13.5px; text-align: center; color: var(--muted); }
.fit__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fit__f { display: block; margin-bottom: 12px; }
.fit__f span { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fit__f em { font-style: normal; font-weight: 500; }
.fit__f input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--black); color: var(--text); font: inherit; font-size: 18px; }
.fit__f input:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .3); }
.fit__f input[aria-invalid="true"] { border-color: var(--err); }
.fit__pref { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; border: 0; }
.fit__pref legend { margin-bottom: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.fit__pref label { position: relative; }
.fit__pref input { position: absolute; opacity: 0; pointer-events: none; }
.fit__pref span { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--black); font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: center; cursor: pointer; }
.fit__pref input:checked + span { border-color: var(--blue); background: rgba(var(--blue-rgb), .18); box-shadow: 0 0 0 1px var(--blue); }
.fit__pref input:focus-visible + span { outline: 3px solid var(--blue-hi); outline-offset: 2px; }
.fit__go { padding: 15px 10px; font-size: 19px; }
.fit__res { margin-top: 16px; padding: 16px 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); text-align: center; }
.fit__lead { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.fit__size { display: block; margin: 2px 0 6px; font-family: var(--head); font-size: 72px; font-weight: 700; line-height: 1; color: var(--blue-hi); }
.fit__text { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.fit__text b { color: var(--text); }

/* ---------- відправка замовлення ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order__fail { margin: 12px 0 0; text-align: center; }
.order__ok { padding: 18px 8px 8px; text-align: center; }
.order__ok:focus { outline: 0; }
.order__ok b { display: block; font-family: var(--head); font-size: 28px; font-weight: 700; line-height: 1.15; text-transform: uppercase; color: var(--blue-hi); }
.order__ok p { margin-top: 10px; font-size: 15px; color: var(--muted); }
