/* ============================================================
   Memoria · редизайн — каркас сторінки.
   Тут: скидання, сітки й поведінка компонентів.
   Кольори, шрифти, форми й характер задає theme.css
   (дизайн-система «Гучний») через токени нижче.
   Мобільна версія — базова, далі @media (min-width).
   ============================================================ */

:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #ecebe7;
  --line: rgba(17, 17, 17, 0.1);
  --ink: #111111;
  --ink-2: #4a4a48;
  --ink-3: #6b6a66;
  --accent: #ffb23f;
  --on-accent: #111111;
  --dark: #141414;
  --on-dark: #f4f3f0;
  --on-dark-2: #b8b6b0;

  --font-display: system-ui, sans-serif;
  --font-body: system-ui, sans-serif;
  --font-mono: ui-monospace, monospace;
  --font-accent: Georgia, serif;

  --r-card: 20px;
  --r-inner: 14px;
  --r-btn: 999px;

  --wrap: 75rem;
  --gutter: 1rem;
  --sec: 4.5rem;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; }
}

@media (min-width: 64rem) {
  :root { --gutter: 2.5rem; --sec: 7rem; }
}

/* ---------- Скидання ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
button, input { font: inherit; color: inherit; }

/* Мобільні: швидкі тапи по «+» і «−» та по полях не повинні приближати сторінку.
   Двойной тап відключено, а щипок двома пальцями лишається (потрібен слабозорим). */
html,
a, button, summary, label, select, textarea,
input:not([type="range"]) { touch-action: manipulation; }

/* iOS приближає сторінку при фокусі в полі, якщо шрифт менший за 16px. Нижня межа для всіх полів. */
input, select, textarea { font-size: max(1rem, 16px); }
[hidden] { display: none !important; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 300;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
}

.skip:focus { top: 8px; }

.muted { color: var(--ink-3); }

/* Позначка для даних, які ще треба вписати (org.nr., адреса). Пошук: class="todo" */
.todo {
  padding: 0 0.25em;
  border-radius: 6px;
  outline: 1.5px dashed var(--accent);
  outline-offset: 1px;
}

@media print { .todo { outline: 0; } }

/* ---------- Типографіка ---------- */
.h2 {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.h2 em { font-family: var(--font-accent); font-style: italic; }

.lead {
  max-width: 38rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.head {
  max-width: 46rem;
  margin-bottom: 2.5rem;
}

.head .lead { margin-top: 1rem; }

@media (min-width: 64rem) {
  .head { margin-bottom: 3.5rem; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.15s ease;
}

.btn:active { transform: scale(0.98); }

.btn--primary { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--on-accent); }
.btn--secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 1.125rem; font-size: 1rem; }
.btn--wide { width: 100%; }

.btn__icon { width: 20px; height: 20px; flex-shrink: 0; }

.btn__arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  margin-right: -0.9rem;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  transition: transform 0.35s var(--ease);
}

.btn__arrow svg { width: 18px; height: 18px; }
.btn:hover .btn__arrow { transform: rotate(45deg); }

/* ---------- Рядок-оголошення ---------- */
.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 40s linear infinite;
}

.ticker__item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.625rem 0 0.625rem 1.5rem;
  white-space: nowrap;
}

.ticker__item::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
}

.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  text-decoration: none;
}

.logo__mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo__mark { --mark-bg: var(--accent); --mark-ink: var(--on-accent); }
.logo__word { font-family: var(--font-display); font-size: 1.3125rem; font-weight: 600; }

.nav { display: none; }

.hdr__actions { display: flex; align-items: center; gap: 0.75rem; }

.hdr__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.hdr__phone svg { width: 20px; height: 20px; }

@media (min-width: 64rem) {
  .nav {
    display: flex;
    gap: 0.25rem;
  }

  .nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 0.875rem;
    border-radius: var(--r-btn);
    color: var(--ink-2);
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
  }

  .nav a:hover { background: var(--surface-2); color: var(--ink); }
  .hdr__phone { display: inline-flex; }
}

/* ---------- Перший екран ---------- */
.hero { padding-block: 1.5rem 4rem; }

.hero__inner {
  display: grid;
  gap: 2.5rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  color: var(--ink-3);
  font-size: 1rem;
}

.crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { color: var(--ink-2); }

.hero__title {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  text-wrap: balance;
}

.hero__big, .hero__rest { display: block; }
.hero__title em { font-family: var(--font-accent); font-style: italic; }

.hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  color: var(--ink-2);
  font-size: 1.1875rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__note {
  margin-top: 1.25rem;
  color: var(--ink-3);
}

.hero__note strong { color: var(--ink); }

/* Сцена: позиції задає кожен варіант */
.stage {
  position: relative;
  min-height: 360px;
}

.stage > * { position: absolute; }

.stage img { width: 100%; height: auto; }

.stage__card-row { display: block; }

.stage__file {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stage__file svg { width: 24px; height: 24px; flex-shrink: 0; }
.stage__file span { display: grid; line-height: 1.3; }
.stage__file small { font-size: 1rem; }

@media (min-width: 64rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-template-areas: "crumbs crumbs" "text stage";
    align-items: center;
    column-gap: 4rem;
  }

  .crumbs { grid-area: crumbs; }
  .hero__text { grid-area: text; }
  .stage { grid-area: stage; min-height: 480px; }
}

/* ---------- Секції ---------- */
main > section:not(.hero) { padding-block: var(--sec); }

/* Вступ */
.intro__inner { display: grid; gap: 2rem; }
.intro__body { display: grid; gap: 2rem; justify-items: start; }

.checks { display: grid; gap: 0.875rem; }

.checks li {
  display: flex;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 1.125rem;
}

.checks svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; color: var(--ink); }

@media (min-width: 64rem) {
  .intro__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 5rem; align-items: start; }
}

/* Факти */
.facts__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.fact { display: grid; gap: 0.25rem; }
.fact__num { color: var(--ink); font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.fact__label { color: var(--ink-3); }

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

/* Було / стане */
.compare__grid { display: grid; gap: 1rem; }
.compare__grid figure { display: grid; gap: 1rem; align-content: space-between; }
.compare__grid figcaption { display: grid; gap: 0.125rem; color: var(--ink-2); }
.compare__grid figcaption b { color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }

.compare__shelf { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; align-items: center; }
.compare__shelf img { width: 100%; height: auto; }

.device { padding: 1.25rem; }
.device__title { margin-bottom: 0.75rem; color: var(--ink); font-weight: 600; }
.device__list { display: grid; gap: 0.5rem; }

.device__list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 52px;
  padding: 0 0.875rem;
  color: var(--ink);
}

.device__list svg { width: 22px; height: 22px; }
.device__list span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device__list small { color: var(--ink-3); font-size: 1rem; }

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

/* Ціни */
.tiers { display: grid; gap: 1rem; }
.tier { position: relative; display: grid; gap: 0.25rem; transition: box-shadow 0.25s ease, background-color 0.25s ease, transform 0.25s var(--ease); }
.tier__qty { color: var(--ink-2); font-size: 1.125rem; }
.tier__price { color: var(--ink); font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.tier__unit { color: var(--ink-3); }
.tier__save { justify-self: start; }
.pricing__note { max-width: 44rem; margin-top: 1.5rem; color: var(--ink-3); }

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

/* Калькулятор */
.quote__grid { display: grid; gap: 1.25rem; align-items: start; }
.quote__form { display: grid; gap: 1.25rem; }
.qstep { display: grid; gap: 0.75rem; }

.qstep__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.2;
}

.qstep__num {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}

.qstep__hint { color: var(--ink-3); }

.stepper { display: inline-grid; grid-template-columns: 52px 6rem 52px; gap: 0.5rem; }
.stepper--sm { grid-template-columns: 48px 4.5rem 48px; }

.stepper__btn {
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.stepper__btn:hover { border-color: var(--ink); }

.stepper__value {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

.stepper__value::-webkit-inner-spin-button,
.stepper__value::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.picks { display: grid; gap: 0.5rem; }
.pick { position: relative; display: block; cursor: pointer; }

.pick input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.pick__box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.25rem 0.875rem;
  align-items: center;
  min-height: 64px;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-inner);
  background: var(--surface);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.pick__icon { width: 24px; height: 24px; color: var(--ink); grid-row: span 2; align-self: start; margin-top: 2px; }
.pick__text { display: grid; color: var(--ink); line-height: 1.35; }
.pick__text small { color: var(--ink-3); font-size: 1rem; }
.pick__price { grid-column: 2; color: var(--ink); font-weight: 600; }

.pick:hover .pick__box { border-color: var(--ink-3); }
.pick input:checked + .pick__box { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick input:focus-visible + .pick__box { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (min-width: 40rem) {
  .pick__box { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .pick__icon { grid-row: auto; align-self: center; margin: 0; }
  .pick__price { grid-column: auto; }
}

.usb-count {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
  font-weight: 500;
}

.summary { display: grid; gap: 1rem; }
.summary__title { color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; }
.summary__rows { display: grid; gap: 0.625rem; }
.summary__rows div { display: flex; justify-content: space-between; gap: 1rem; }
.summary__rows dd { color: var(--ink); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }

.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.summary__total output {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.summary__pay { color: var(--ink-3); }
.summary__free { color: var(--ink); font-weight: 600; }

@media (min-width: 64rem) {
  .quote__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
  .summary { position: sticky; top: 96px; }
}

/* Кроки */
.steps__list { display: grid; gap: 1rem; }
.step { position: relative; display: grid; gap: 0.75rem; align-content: start; }
.step__icon { width: 28px; height: 28px; color: var(--ink); }
.step__title { color: var(--ink); font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; line-height: 1.2; }

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

/* Відгуки */
.spot-quote { max-width: 56rem; margin: 0 auto var(--sec); text-align: center; }

.spot-quote blockquote {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  text-wrap: balance;
}

.spot-quote figcaption { margin-top: 1.5rem; color: var(--ink-3); }
.spot-quote figcaption b { color: var(--ink); }

.reviews__list { display: grid; gap: 1rem; }
.review { display: flex; flex-direction: column; gap: 1rem; }
.review__tag { color: var(--ink-3); }
.review__text { color: var(--ink); font-size: 1.125rem; line-height: 1.55; }
.review__who { margin-top: auto; color: var(--ink-3); }
.review__who b { color: var(--ink); }

.promise {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  max-width: 48rem;
  margin-top: 2rem;
  color: var(--ink);
  font-size: 1.125rem;
}

.promise svg { width: 28px; height: 28px; flex-shrink: 0; }

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

/* Заклик */
.band__inner { display: grid; gap: 1.25rem; justify-items: center; text-align: center; }
.band__title { max-width: 18ch; color: var(--ink); font-family: var(--font-display); font-size: clamp(2.25rem, 6vw, 4rem); font-weight: 500; line-height: 1.05; text-wrap: balance; }
.band__text { color: var(--ink-2); font-size: 1.1875rem; }
.band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 0.5rem; }

/* Чому зараз */
.why__inner { display: grid; gap: 2rem; }
.why__body { display: grid; gap: 1.25rem; max-width: 42rem; font-size: 1.125rem; }
.why__facts { display: grid; gap: 1rem; }
.why__facts li { display: grid; gap: 0.25rem; }
.why__facts b { color: var(--ink); font-family: var(--font-display); font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.why__facts span { color: var(--ink-3); }

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

@media (min-width: 64rem) {
  .why__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 5rem; }
  .why__facts { grid-column: 1 / -1; }
}

/* Процес */
.process__list { display: grid; gap: 0.5rem; counter-reset: none; }
.process__list li { display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: 1.125rem 0; border-top: 1px solid var(--line); }
.process__n { color: var(--ink-3); font-family: var(--font-mono); font-size: 1rem; font-variant-numeric: tabular-nums; }
.process__list p { color: var(--ink); font-size: 1.125rem; }

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

/* Усе включено */
.included__grid { display: grid; gap: 1rem; }
.feat { display: grid; gap: 0.5rem; align-content: start; }
.feat__icon { width: 28px; height: 28px; margin-bottom: 0.5rem; color: var(--ink); }
.feat__title { color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.2; }

@media (min-width: 40rem) {
  .included__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat--wide { grid-column: 1 / -1; }
}

@media (min-width: 64rem) {
  .included__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat--wide { grid-column: span 2; grid-row: span 2; }
}

/* Конфіденційність */
.privacy__inner { display: grid; gap: 1.25rem; justify-items: center; max-width: 52rem; text-align: center; }
.privacy__icon { width: 40px; height: 40px; }
.privacy__title { font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.08; text-wrap: balance; }
.privacy__text { max-width: 40rem; font-size: 1.1875rem; }

/* Питання */
.faq__inner { display: grid; gap: 1rem; }
.faq__head .btn { margin-top: 1.5rem; }
.faq__list { display: grid; gap: 0.5rem; }

.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
  padding: 0.875rem 1.25rem;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.qa summary::-webkit-details-marker { display: none; }

.qa__icon { position: relative; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); }

.qa__icon::before, .qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--bg);
  transition: transform 0.25s var(--ease);
}

.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon::after { transform: rotate(0deg); }
.qa__a { padding: 0 1.25rem 1.25rem; }
.qa__a p { max-width: 42rem; }

@media (min-width: 64rem) {
  .faq__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .faq__head { position: sticky; top: 104px; }
}

/* Знижка */
.volume__inner { display: grid; gap: 1.25rem; justify-items: start; }
.volume__title { max-width: 20ch; color: var(--ink); font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 500; line-height: 1.08; text-wrap: balance; }
.volume__text { max-width: 36rem; font-size: 1.1875rem; }

/* Формати */
.formats__grid { display: grid; gap: 1rem; }
.format { display: grid; gap: 0.5rem; align-content: start; }
.format__photo { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; }
.format__photo img { width: 86%; height: auto; mix-blend-mode: multiply; }
.format__name { margin-top: 0.75rem; color: var(--ink); font-family: var(--font-display); font-size: 1.375rem; font-weight: 500; line-height: 1.2; }

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

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

/* Футер */
.ftr { padding-block: 3.5rem 2rem; }
.ftr__top { display: grid; gap: 2.5rem; }
.ftr__brand p { max-width: 22rem; margin-top: 1rem; }
.ftr__title { margin-bottom: 0.75rem; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.ftr__col ul { display: grid; gap: 0; }
.ftr a { text-underline-offset: 3px; }
.ftr__col a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.ftr__col a:hover { text-decoration: underline; }
.ftr__bottom { margin-top: 2.5rem; padding-top: 1.25rem; font-size: 1rem; }

/* Кнопка «Cookie-innstillinger» виглядає як посилання футера */
.ftr__link-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ftr__link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Реквізити фірми під словесним знаком */
.ftr__company { display: block; margin-top: 0.25rem; }

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

@media (min-width: 64rem) {
  .ftr__top--4 { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

@media print {
  .ticker { display: none; }
}

/* ---------- Менше руху ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker__track { animation: none; }
}

/* ---------- Порівняння «до / після» ---------- */
.diff__head { margin-inline: auto; text-align: center; }
.diff__head .lead { margin-inline: auto; }

/* Запис майже квадратний (4:3 з чорними полями по боках), тому й кадр 5:4, а не широкий */
.diff__frame {
  --pos: 50%;
  position: relative;
  max-width: 46rem;
  margin-inline: auto;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: var(--r-card);
  background: #111;
  isolation: isolate;
  touch-action: pan-y;
}

/* Обидва відео — той самий запис і та сама кадровка: ліворуч оригінал, праворуч покращена версія.
   Збільшення на 5% ховає чорні поля запису (≈4,5% з кожного боку) та шум знизу кадру */
.diff__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}

.diff__before {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.diff__tag {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  pointer-events: none;
}

.diff__tag--before { left: 1rem; background: rgba(20, 20, 20, 0.78); color: #fff; }
.diff__tag--after { right: 1rem; background: var(--accent); color: var(--on-accent); }

.diff__line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 4;
  width: 3px;
  margin-left: -1.5px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.diff__handle {
  position: absolute;
  top: 50%;
  left: var(--pos);
  z-index: 5;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.45);
  color: #111;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease);
  pointer-events: none;
}

.diff__handle svg { width: 26px; height: 26px; }
.diff__frame:hover .diff__handle { transform: translate(-50%, -50%) scale(1.06); }
.diff__frame:has(.diff__range:focus-visible) .diff__handle { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Повзунок — невидимий, на весь кадр: тягнути можна будь-де */
.diff__range {
  position: absolute;
  inset: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}

.diff__play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 7;
  min-height: 44px;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.diff__play:hover { background: rgba(20, 20, 20, 0.9); }
.diff__play:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media (max-width: 47.99rem) {
  .diff__tag {
    top: 0.75rem;
    max-width: calc(50% - 2.25rem);
    padding: 0.25rem 0.625rem;
    line-height: 1.25;
  }

  .diff__tag--before { left: 0.75rem; }
  .diff__tag--after { right: 0.75rem; text-align: right; }
  .diff__handle { width: 52px; height: 52px; }
  .diff__play { right: 0.75rem; bottom: 0.75rem; }
}

/* Безкоштовні опції в підсумку калькулятора */
.summary__rows .summary__free-row dd { color: var(--ink-3); font-weight: 400; }

/* Калькулятор: галочка «є ще диски» під лічильником касет, лічильник дисків під нею */
.pick--discs { margin-top: 1rem; }
[data-discs-row] { margin-top: 0.75rem; }

/* Формати: смуга «оцифровуємо також диски» під сіткою */
.formats__discs {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 1.125rem 1.5rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-card, 28px);
  color: var(--ink);
}
.formats__discs svg { flex: none; width: 2.5rem; height: 2.5rem; }
