:root {
  --bg: #f5f2ec;
  --card: #ffffff;
  --ink: #171512;
  --muted: #6d675e;
  --line: #e4ded3;
  --field: #faf8f4;
  --accent: #ec2f5b;
  --accent-soft: color-mix(in srgb, var(--accent) 11%, #fff);
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Unbounded", "Manrope", system-ui, 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(--ink);
  font: 500 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
h1, h2, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
.block { margin-top: 44px; }
.anchor, #order-bottom { scroll-margin-top: 16px; }

/* ── Рядок умов ─────────────────────────── */
.strip { background: var(--ink); color: #fff; overflow: hidden; white-space: nowrap; }
.strip__run { display: inline-flex; animation: strip 28s linear infinite; }
.strip__item {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 0 9px 14px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.strip__item::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
@keyframes strip { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .strip__run { animation: none; } html { scroll-behavior: auto; } }

/* ── Шапка ──────────────────────────────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; }
.top__logo { font: 700 14px/1 var(--display); letter-spacing: .04em; }
.top__cta {
  text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 8px 14px; border: 1.5px solid var(--ink); border-radius: 999px;
  transition: background .15s, color .15s;
}
.top__cta:hover { background: var(--ink); color: #fff; }

/* ── Банер ──────────────────────────────── */
.hero { display: grid; gap: 22px; }
.info { min-width: 0; }

.gallery { min-width: 0; }
.gallery__stage {
  position: relative; aspect-ratio: 4 / 5;
  background: #fff; border-radius: var(--radius); overflow: hidden;
}
.gallery__track {
  display: flex; height: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.gallery__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; cursor: zoom-in; }
.gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery__slide img.is-cover { object-fit: cover; }

.gallery__sale, .gallery__count {
  position: absolute; top: 12px; z-index: 2;
  font-size: 13px; font-weight: 800; line-height: 1; border-radius: 999px; padding: 8px 12px;
}
.gallery__sale { left: 12px; background: var(--accent); color: #fff; }
.gallery__count { right: 12px; background: rgba(23, 21, 18, .72); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }

.gallery__nav {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
  display: none; place-items: center;
  background: rgba(255, 255, 255, .94); box-shadow: 0 4px 16px rgba(23, 21, 18, .16);
}
.gallery__nav svg { width: 18px; height: 18px; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
@media (hover: hover) { .gallery__nav { display: grid; } }

.gallery__thumbs {
  display: flex; gap: 8px; margin-top: 10px; padding: 2px;
  overflow-x: auto; scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 auto; width: 58px; aspect-ratio: 4 / 5; padding: 0; cursor: pointer;
  border: 0; border-radius: 12px; overflow: hidden; background: #fff;
  outline: 2px solid transparent; outline-offset: 0; opacity: .7;
  transition: opacity .15s, outline-color .15s;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { outline-color: var(--ink); opacity: 1; }
.gallery__thumb:hover { opacity: 1; }

.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.title { margin-top: 10px; font: 700 clamp(25px, 6.4vw, 38px)/1.12 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.lead { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 46ch; }

/* ── Ціна ───────────────────────────────── */
.price { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.price__now { font: 700 32px/1 var(--display); white-space: nowrap; }
.price__old { color: var(--muted); font-size: 18px; font-weight: 600; text-decoration: line-through; white-space: nowrap; }
.price__save {
  align-self: center; background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 800; padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.price__stock { flex-basis: 100%; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.price__stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.price--light .price__old { color: rgba(255, 255, 255, .6); }
.price--light .price__save { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Форма замовлення ───────────────────── */
.order {
  margin-top: 18px; padding: 18px; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(23, 21, 18, .06);
}
.order__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.order__title { font-weight: 800; font-size: 17px; }
.order__sub { color: var(--muted); font-size: 13px; font-weight: 600; }

.sizes { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.sizes legend { padding: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.sizes__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; margin-top: 8px; }
.sizes__chip { position: relative; }
.sizes__chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sizes__chip span {
  display: grid; place-items: center; min-width: 48px; height: 44px; padding-inline: 10px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--field);
  font-weight: 700; font-size: 15px; transition: background .12s, border-color .12s, color .12s;
}
.sizes__chip input:hover + span { border-color: var(--ink); }
.sizes__chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.sizes__chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.sizes.is-invalid .sizes__chip span { border-color: var(--accent); }

.field { display: block; margin-top: 12px; }
.field__label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px;
  background: var(--field); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 16px; font-weight: 600; outline: none; transition: border-color .12s, background .12s;
}
.field input::placeholder { color: #a9a297; font-weight: 500; }
.field input:focus { border-color: var(--ink); background: #fff; }
.field.is-invalid input { border-color: var(--accent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 0 22px; width: 100%; margin-top: 16px;
  background: var(--accent); color: #fff; border: 0; border-radius: 16px; cursor: pointer;
  font-weight: 800; font-size: 16px; text-decoration: none; text-align: center;
  transition: filter .15s, transform .08s;
}
.btn:hover { filter: brightness(.93); }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { width: auto; min-height: 46px; margin: 0; padding: 0 20px; border-radius: 13px; font-size: 15px; }

.order__error { margin-top: 10px; color: var(--accent); font-size: 14px; font-weight: 700; }
.order__note { margin-top: 10px; color: var(--muted); font-size: 13px; text-align: center; }

.order__done { text-align: center; padding: 14px 4px; }
.order__done-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-soft); color: var(--accent);
}
.order__done-icon svg { width: 26px; height: 26px; }
.order__done h3 { margin: 0; font: 700 19px/1.2 var(--display); }
.order__done p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.order__demo { margin-top: 12px; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; font-size: 12px; color: var(--muted); }

/* ── Переваги ───────────────────────────── */
.bullets { margin-top: 20px; display: grid; gap: 10px; }
.bullets li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; }
.bullets li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft) center / 12px no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23171512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 6.5l2.6 2.6L10 3.5'/%3E%3C/svg%3E");
}
.bullets b { font-weight: 800; }

.perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.perk { background: var(--card); border-radius: 18px; padding: 16px; }
.perk:last-child:nth-child(odd) { grid-column: 1 / -1; }
.perk__icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 12px;
}
.perk__icon svg { width: 22px; height: 22px; }
.perk__title { font-weight: 800; font-size: 14px; line-height: 1.25; }
.perk__text { margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.35; }

/* ── Секції ─────────────────────────────── */
.h2 { font: 700 clamp(20px, 5vw, 26px)/1.15 var(--display); letter-spacing: -.01em; margin-bottom: 16px; text-wrap: balance; }
.h2--light { color: #fff; margin-bottom: 10px; }

.looks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.looks img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: #fff; cursor: zoom-in; }

.two { display: grid; gap: 44px; }
.specs { background: var(--card); border-radius: 18px; padding: 4px 16px; }
.specs__row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs__row:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { font-weight: 700; text-align: right; }

.chart { background: var(--card); border-radius: 18px; padding: 6px 16px 14px; overflow-x: auto; }
.chart table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.chart th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 0 8px; }
.chart td { padding: 9px 0; border-top: 1px solid var(--line); font-weight: 700; }
.chart th:last-child, .chart td:last-child { text-align: right; }
.chart__note { margin-top: 10px; color: var(--muted); font-size: 13px; }

.steps { display: grid; gap: 10px; }
.step { background: var(--card); border-radius: 18px; padding: 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.step__num { grid-row: span 2; font: 700 26px/1 var(--display); color: var(--accent); min-width: 34px; }
.step__title { font-weight: 800; }
.step__text { color: var(--muted); font-size: 14px; }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--card); border-radius: 16px; padding: 0 16px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 15px 0; font-weight: 800;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 500; line-height: 1; transition: rotate .15s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq p { padding-bottom: 16px; color: var(--muted); font-size: 15px; }

/* ── Нижня форма ────────────────────────── */
.final { margin-top: 52px; background: var(--ink); color: #fff; padding-block: 28px 36px; }
.final__grid { display: grid; gap: 20px; }
.final__photo { border-radius: var(--radius); overflow: hidden; background: #2a2622; }
.final__photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 80%; }
.final__text { color: rgba(255, 255, 255, .72); max-width: 44ch; }
.final .price { margin-top: 16px; }
.final .order { border-color: transparent; box-shadow: none; }

.footer { padding-block: 22px 96px; color: var(--muted); font-size: 13px; text-align: center; }

/* ── Липка кнопка ───────────────────────── */
.sticky {
  position: fixed; inset: auto 0 0 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.sticky__price { display: flex; flex-direction: column; line-height: 1.15; }
.sticky__price b { font: 700 18px/1.15 var(--display); white-space: nowrap; }
.sticky__price s { color: var(--muted); font-size: 13px; }

/* ── Фото на весь екран ─────────────────── */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(15, 13, 11, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.lightbox__close {
  position: fixed; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}

/* ── Планшет і десктоп ──────────────────── */
@media (min-width: 640px) {
  .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .perk:last-child:nth-child(odd) { grid-column: auto; }
  .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { grid-template-columns: 1fr; }
  .step__num { grid-row: auto; margin-bottom: 8px; }
}

@media (min-width: 920px) {
  .wrap { padding-inline: 28px; }
  .block { margin-top: 72px; }
  .top { padding-block: 20px; }
  .hero { grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 52px; align-items: start; }
  .gallery { position: sticky; top: 20px; }
  .gallery__thumb { width: 68px; }
  .info { padding-top: 8px; }
  .price__now { font-size: 38px; }
  .order { padding: 24px; }
  .perks { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .faq { max-width: 760px; }
  .final { margin-top: 88px; padding-block: 64px; }
  .final__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
  .final__photo img { aspect-ratio: 4 / 5; object-position: center; }
  .footer { padding-bottom: 28px; }
  .sticky { display: none !important; }
}
