/* ============================================================
   Дизайн-система «Гучний» — затверджена 30.09.2026 (див. DESIGN.md)
   Референси: Zonixx, Kirschberg, Silvana.
   Великі вузькі заголовки капсом, касета перетинає заголовок,
   м'який сутінковий градієнт, чотирикутна зірка як розділювач,
   ціни й формати — великими рядками, чорна пауза з гаслом.
   ============================================================ */

:root {
  --bg: #ececea;
  --surface: #f8f8f6;
  --surface-2: #dcdbd6;
  --line: rgba(15, 15, 15, 0.16);
  --ink: #0f0f0f;
  --ink-2: #3b3b39;
  --ink-3: #5a5955;
  --accent: #f24d17;
  --on-accent: #0f0f0f;
  --dark: #0f0f0f;
  --dusk: linear-gradient(180deg, #b7c4d2 0%, #cdd0d6 45%, #f1cbb6 100%);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-accent: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Onest", system-ui, sans-serif;
  --font-mono: "Onest", system-ui, sans-serif;

  --r-card: 28px;
  --r-inner: 18px;
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.7 6.3 5.7 11.3 12 12-6.3.7-11.3 5.7-12 12-.7-6.3-5.7-11.3-12-12C6.3 11.3 11.3 6.3 12 0z'/%3E%3C/svg%3E");
}

/* Темні поверхні */
.band,
.summary,
.compare__after,
.ftr {
  --bg: #0f0f0f;
  --surface: #1c1c1b;
  --surface-2: #262625;
  --line: rgba(236, 236, 234, 0.16);
  --ink: #f2f2ef;
  --ink-2: #cfcfca;
  --ink-3: #a6a5a0;
  color: var(--ink-2);
}

:is(.band, .summary, .compare__after, .ftr) :focus-visible { outline-color: var(--accent); }

/* ---------- Типографіка: вузький капс ---------- */
.h2,
.hero__title,
.band__title,
.privacy__title,
.volume__title,
.fact__num,
.tier__price,
.tier__qty,
.step__title,
.format__name,
.feat__title,
.qstep__title,
.summary__title,
.why__facts b,
.compare__grid figcaption b {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}

.h2 { font-size: clamp(2.5rem, 7vw, 5.25rem); line-height: 0.96; }
.h2 em,
.hero__title em { font-style: normal; }
.h2 .muted { display: block; margin-top: 0.4rem; font-size: 0.5em; line-height: 1.1; }

/* Зірка-розділювач над головними заголовками */
.intro__title::before,
.band__title::before,
.privacy__title::before {
  content: "";
  display: block;
  width: 36px;
  height: 36px;
  margin: 0 auto 1.25rem;
  background: currentColor;
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

/* ---------- Кнопки ---------- */
.btn { font-weight: 600; }
.btn--primary:hover { background: #2a2a2a; }
.btn--accent:hover { background: #ff6a37; }
.btn--accent .btn__arrow { background: var(--on-accent); color: var(--accent); }
.btn--secondary { border-width: 1.5px; border-color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }

/* ---------- Рядок-оголошення ---------- */
.ticker {
  background: var(--ink);
  color: #f2f2ef;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ticker__item::after {
  width: 14px;
  height: 14px;
  border-radius: 0;
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

/* ---------- Шапка ---------- */
.hdr { background: rgba(236, 236, 234, 0.96); }
.logo__word { font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; font-size: 1.5rem; }
.hdr .btn--primary { background: transparent; border-color: var(--ink); color: var(--ink); }
.hdr .btn--primary:hover { background: var(--ink); color: var(--bg); }
.nav a:hover { background: transparent; text-decoration: underline; text-underline-offset: 6px; }

/* ---------- Перший екран: градієнт, заголовок, касета поверх ---------- */
.hero {
  margin: 0 clamp(8px, 1.2vw, 16px);
  padding-block: 1.5rem 3rem;
  overflow: hidden;
  border-radius: 32px;
  background: var(--dusk);
}

.hero__inner {
  grid-template-columns: 1fr;
  grid-template-areas: none;
  gap: 0;
  justify-items: center;
  text-align: center;
}

/* Дочірні елементи тексту стають рядками сітки, щоб касета лягла на заголовок */
.hero__text { display: contents; }
.crumbs { grid-area: auto; grid-row: 1; }
.crumbs ol { justify-content: center; color: var(--ink-2); }

.hero__title {
  grid-row: 2;
  grid-column: 1;
  z-index: 0;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  line-height: 0.9;
}

.hero__big {
  font-size: clamp(3.5rem, 13vw, 10.5rem);
  letter-spacing: -0.015em;
}

.hero__rest {
  margin-top: clamp(9rem, 22vw, 16rem);
  font-size: clamp(1.375rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
}

.stage {
  grid-area: auto;
  grid-row: 2;
  grid-column: 1;
  align-self: end;
  width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
  max-width: 56rem;
  min-height: clamp(220px, 34vw, 380px);
  pointer-events: none;
}

.hero__lead { grid-row: 3; margin-inline: auto; margin-top: 2rem; color: var(--ink); }
.hero__actions { grid-row: 4; justify-content: center; }
.hero__note { grid-row: 5; color: var(--ink-2); }

.stage__cassette {
  left: 50%;
  bottom: 0;
  width: min(64%, 34rem);
  mix-blend-mode: multiply;
  transform: translateX(-50%) rotate(-9deg);
}

.stage__label {
  position: absolute;
  left: 36%;
  top: 43%;
  padding: 0 10px;
  background: #fffaf0;
  color: #1f2f55;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

/* Мітки-пігулки, як теги в Silvana */
.stage__card {
  left: 0;
  bottom: 12%;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 16rem;
}

.stage__card-row {
  padding: 4px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}

.stage__card-row b { display: none; }
.stage__card-row:nth-child(2) { transform: rotate(-6deg); }
.stage__card-row:nth-child(3) { background: var(--ink); color: var(--bg); }

.stage__file {
  right: 0;
  bottom: 18%;
  padding: 10px 16px 10px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #f2f2ef;
}

.stage__file small { color: #bdbcb7; }
.stage__ok { color: var(--accent); }

/* Кругла наліпка з ціною */
.stage__price {
  left: 6%;
  bottom: 42%;
  display: grid;
  place-items: center;
  place-content: center;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  transform: rotate(12deg);
}

.stage__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; text-transform: none; }
.stage__audio { display: none; }

@media (max-width: 47.99rem) {
  .stage__card,
  .stage__file { display: none; }
  .stage__price { width: 84px; height: 84px; font-size: 1.375rem; left: 0; bottom: 8%; }
  .stage__cassette { width: 86%; }
}

/* ---------- Вступ: по центру, із зіркою ---------- */
.intro__inner { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; text-align: center; }
.intro__title { max-width: 18ch; }
.intro__body { justify-items: center; }
.intro .lead { margin-inline: auto; }

.checks {
  grid-template-columns: 1fr;
  gap: 0.5rem;
  width: 100%;
  max-width: 60rem;
  text-align: left;
}

.checks li {
  align-items: center;
  min-height: 60px;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
}

.checks svg { color: var(--accent); margin: 0; }

@media (min-width: 48rem) {
  .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Факти ---------- */
.fact { justify-items: center; text-align: center; padding-block: 1rem; }
.fact__num { font-size: clamp(3.5rem, 9vw, 7rem); line-height: 0.9; }
.fact__label { color: var(--ink-2); font-weight: 500; }

/* ---------- Було / стане: великі картки з підписом поверх ---------- */
.compare__grid figure {
  position: relative;
  min-height: 22rem;
  padding: 1.5rem;
  border-radius: var(--r-card);
  background: var(--surface-2);
  overflow: hidden;
}

.compare__shelf img { mix-blend-mode: multiply; }
.compare__after { background: var(--dark) !important; }
.compare__grid figcaption b { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.9; }
.compare__grid figcaption { font-weight: 500; }
.device { border-radius: var(--r-inner); background: var(--surface); }
.device__list li { border-radius: 999px; background: var(--surface-2); }
.device__list svg { color: var(--accent); }

/* ---------- Ціни: великі рядки, як «BASIC / PREMIUM / ELITE» ---------- */
.tiers { grid-template-columns: 1fr; gap: 0; }

.tier {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "qty price"
    "unit save";
  align-items: center;
  gap: 0.25rem 1rem;
  padding: 1.5rem 0.25rem;
  border-bottom: 1.5px solid var(--ink);
}

.tier:first-child { border-top: 1.5px solid var(--ink); }
.tier__qty { grid-area: qty; color: var(--ink); font-family: var(--font-display); font-size: clamp(2rem, 6vw, 4.5rem); line-height: 0.95; }
.tier__price { grid-area: price; font-size: clamp(2rem, 6vw, 4.5rem); line-height: 0.95; }
.tier__unit { grid-area: unit; }

.tier__save {
  grid-area: save;
  justify-self: end;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}

.tier__badge { display: none; }

.tier.is-active .tier__qty::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-left: 0.3em;
  vertical-align: 0.12em;
  background: var(--accent);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
}

@media (min-width: 48rem) {
  .tier {
    /* Колонка ціни — за шириною тексту: «299 kr» великим кеглем ширше за 8rem і налазило на «per kassett» */
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-areas: "qty save unit price";
    gap: 2rem;
  }

  .tier__price { justify-self: end; white-space: nowrap; }
  .tier__unit { white-space: nowrap; }
}

/* ---------- Калькулятор ---------- */
.quote__form { gap: 2rem; padding: 1.5rem; border-radius: var(--r-card); background: var(--surface); }
.qstep__title { font-size: 1.75rem; }
.qstep__num { background: var(--accent); color: var(--on-accent); }
.stepper__value { font-family: var(--font-display); font-weight: 600; font-size: 1.625rem; }
.pick__box { border-radius: 999px; padding-inline: 1.25rem; }
.pick input:checked + .pick__box { background: #0f0f0f; --ink: #f2f2ef; --ink-3: #bdbcb7; border-color: #0f0f0f; box-shadow: none; }

/* Телефон: калькулятор компактніший — опис варіантів ховаємо, ціна в тому ж рядку.
   Текст не дрібніший за 17px, кнопки й рядки не нижчі за 44px (аудиторія старша). */
@media (max-width: 39.99rem) {
  .quote .head { margin-bottom: 1.5rem; }
  .quote__form { gap: 1.5rem; padding: 1.25rem 1rem; }
  .qstep { gap: 0.5rem; }
  .qstep__title { font-size: 1.375rem; line-height: 1.1; }
  .qstep__num { width: 32px; height: 32px; }
  .qstep__hint { font-size: 1.0625rem; }
  .stepper { grid-template-columns: 52px minmax(0, 1fr) 52px; width: 100%; margin-top: 0.25rem; }
  .picks { gap: 0.375rem; }
  .pick__box { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 0.75rem; min-height: 56px; padding: 0.5rem 1rem; border-radius: 999px; }
  .pick__icon { grid-row: auto; align-self: center; width: 22px; height: 22px; margin: 0; }
  .pick__price { grid-column: auto; }
  .pick__text small { display: none; }
  .pick__unit { display: none; } /* «/stk» видно з рядка кількості нижче */
  .usb-count { margin-top: 0.25rem; }
  .summary { gap: 0.75rem; padding: 1.25rem 1rem; }
  .summary__title { font-size: 1.375rem; }
  .summary__total { padding-top: 0.75rem; }
  .summary__total output { font-size: 2.5rem; }
}

.summary { padding: 1.5rem; border-radius: var(--r-card); background: var(--dark); }
.summary__title { font-size: 1.75rem; }
.summary__total output { font-weight: 600; font-size: clamp(2.5rem, 6vw, 3.5rem); }

@media (min-width: 64rem) {
  .quote__form,
  .summary { padding: 2rem; }
}

/* ---------- Кроки ---------- */
.step {
  padding: 1.75rem 1.5rem 2rem;
  border-radius: var(--r-card);
  background: var(--surface);
}

.step__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 6rem;
  font-weight: 600;
  line-height: 0.85;
}

.step__icon { display: none; }
.step__title { font-size: 2rem; line-height: 1; }

/* ---------- Відгуки ---------- */
.spot-quote blockquote { font-family: var(--font-body); font-weight: 500; letter-spacing: -0.02em; }

.spot-quote blockquote::before {
  content: "“";
  display: block;
  height: 0.6em;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
}

.review { padding: 1.5rem; border-radius: var(--r-card); background: var(--surface); }

.review__tag {
  align-self: flex-start;
  padding: 2px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 500;
}

.promise { font-weight: 500; }
.promise svg { color: var(--accent); }

/* ---------- Заклик: чорна пауза з гаслом ---------- */
.band { background: var(--dark); }
.band__title { max-width: 14ch; font-size: clamp(3rem, 9vw, 7.5rem); line-height: 0.92; }
.band .btn--secondary { border-color: var(--ink); }

/* ---------- Чому зараз ---------- */
.why__title { line-height: 0.96; }
.why__facts li { padding-top: 1.25rem; border-top: 1.5px solid var(--ink); }
.why__facts b { font-size: clamp(3rem, 7vw, 5.5rem); line-height: 0.9; }

/* ---------- Процес ---------- */
.process__list li { border-top-color: var(--ink); }

.process__n {
  width: 18px;
  height: 18px;
  overflow: hidden;
  color: transparent;
  background: var(--accent);
  -webkit-mask: var(--star) center / contain no-repeat;
  mask: var(--star) center / contain no-repeat;
  /* Зірка по центру першого рядка тексту: (висота рядка − зірка) / 2 */
  align-self: start;
  margin-top: calc((1.125rem * 1.6 - 18px) / 2);
}

.process__list li { grid-template-columns: 1.5rem minmax(0, 1fr); align-items: start; }

/* ---------- Усе включено ---------- */
.feat { padding: 1.5rem; border-radius: var(--r-card); background: var(--surface); }
.feat__title { font-size: 1.75rem; line-height: 1; }
.feat__icon { color: var(--accent); }

.feat--wide {
  align-content: end;
  min-height: 16rem;
  background: var(--dusk);
}

.feat--wide .feat__icon { margin-bottom: auto; color: var(--ink); }
.feat--wide .feat__title { margin-top: 2rem; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 0.92; }
.feat--wide .feat__text { color: var(--ink); }

/* ---------- Конфіденційність: сутінковий градієнт ---------- */
.privacy {
  margin-inline: clamp(8px, 1.2vw, 16px);
  border-radius: 32px;
  background: var(--dusk);
  color: var(--ink);
}

.privacy__icon { display: none; }
.privacy__title { max-width: 16ch; font-size: clamp(2.75rem, 8vw, 6.5rem); line-height: 0.92; }

/* ---------- Питання: рядки з тонким плюсом ---------- */
.faq__list { gap: 0; border-top: 1.5px solid var(--ink); }
.qa { border-bottom: 1.5px solid var(--ink); }
.qa summary { padding-inline: 0; font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; }
.qa__a { padding-inline: 0; }
.qa__icon { background: transparent; }
.qa__icon::before,
.qa__icon::after { width: 22px; height: 1.5px; margin: -0.75px 0 0 -11px; background: var(--ink); }

/* ---------- Знижка: помаранчева картка ---------- */
.volume__inner {
  justify-items: center;
  padding-block: 3rem;
  border-radius: 32px;
  background: var(--accent);
  text-align: center;
  --ink: #0f0f0f;
  --ink-2: #1f1a17;
  color: var(--ink-2);
}

.volume__title { max-width: 14ch; font-size: clamp(2.75rem, 8vw, 6rem); line-height: 0.92; }

@media (min-width: 64rem) {
  .volume__inner { width: calc(100% - var(--gutter) * 2); padding: 4.5rem; }
}

/* ---------- Формати: великі рядки-пігулки ---------- */
.formats__grid { grid-template-columns: 1fr; gap: 0.75rem; }

.format {
  grid-template-columns: 7.5rem minmax(0, 1fr);
  grid-template-areas: "photo name" "photo text";
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.25rem;
  padding: 0.625rem 1.5rem 0.625rem 0.625rem;
  border-radius: 999px;
  background: var(--surface);
}

.format__photo { grid-area: photo; aspect-ratio: 1; border-radius: 50%; background: var(--surface-2); }
.format__name { grid-area: name; align-self: end; margin: 0; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1; }
.format__text { grid-area: text; align-self: start; font-size: 1rem; }

@media (max-width: 39.99rem) {
  .format { grid-template-columns: 5.5rem minmax(0, 1fr); border-radius: var(--r-card); padding-right: 1rem; }
}

@media (min-width: 64rem) {
  .formats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Футер із великим словом ---------- */
.ftr { background: var(--dark); }
.ftr .logo { color: var(--ink); }
.ftr__title { color: var(--ink); text-transform: uppercase; }

.ftr__bottom {
  margin-top: 3rem;
  padding-top: 0;
  color: var(--ink-3);
}

.ftr__bottom::before {
  content: "MEMORIA";
  display: block;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(4rem, 19vw, 17rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.01em;
}

/* ---------- Порівняння: великий кадр, капс, помаранчева ручка ---------- */
.diff__head { max-width: 60rem; }

.diff__frame { border-radius: 32px; }

.diff__tag {
  padding: 0.375rem 1rem;
  border: 1.5px solid #fff;
  /* Тепер це справжнє відео, а не темний «шумний» кадр: підпис потребує підложки, щоб читатись на світлому */
  background: rgba(15, 15, 15, 0.7);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.diff__tag--after { border-color: var(--accent); background: var(--accent); color: var(--on-accent); text-shadow: none; }
.diff__line { width: 4px; margin-left: -2px; }
.diff__handle { width: 72px; height: 72px; background: var(--accent); color: var(--on-accent); }
.diff__play { font-weight: 600; text-transform: uppercase; font-family: var(--font-display); letter-spacing: 0.03em; }

@media (max-width: 47.99rem) {
  .diff__tag { padding: 0.25rem 0.625rem; font-size: 1rem; }
  .diff__handle { width: 56px; height: 56px; }
}
