/* Лендинг «Чохол з вашим авто». Лише світла тема. */
:root {
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --ink: #0F1115;
  --ink-2: #454B55;
  --ink-3: #7A808A;
  --line: #E4E7EC;
  --line-strong: #CDD2DA;
  --accent: #0A66FF;
  --accent-2: #0052D6;
  --accent-tint: #E8F0FF;
  --ok: #16A34A;
  --err: #D92D20;
  --err-tint: #FEF1F0;
  --warn: #9A5B00;
  --warn-tint: #FFF6E5;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 Onest, system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.h1 { margin: 0; font-size: clamp(2.2rem, 5.2vw, 3.6rem); line-height: 1.05; font-weight: 800; letter-spacing: -.025em; }
.h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.h3 { margin: 0; font-size: 1.125rem; font-weight: 700; }
.lede { margin: 0; font-size: 1.125rem; color: var(--ink-2); max-width: 32em; }
.sub { margin: 8px 0 0; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.hint { color: var(--ink-3); font-size: .8125rem; }
.center { text-align: center; }
.link-sm { font-size: .875rem; font-weight: 600; text-decoration: none; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-lg { min-height: 54px; padding: 14px 26px; font-size: 1.0625rem; border-radius: 12px; }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: .9375rem; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); cursor: pointer; }

/* Шапка */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand img { height: 36px; width: auto; }
.nav { display: none; gap: 26px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Заглушки фото: показують, яке фото тут буде */
.ph {
  position: relative; display: grid; place-items: center; min-height: 160px; padding: 16px;
  border: 2px dashed var(--line-strong); border-radius: var(--r-m);
  background: repeating-linear-gradient(135deg, #EEF1F5 0 12px, #E8ECF1 12px 24px);
  color: var(--ink-3); font-size: .8125rem; text-align: center;
}
.ph::after { content: '📷 ' attr(data-ph); max-width: 26em; }

/* Перший екран */
.hero { padding: 40px 0 32px; background: linear-gradient(180deg, #fff, var(--bg)); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero-copy { display: grid; gap: 20px; justify-items: start; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink-2); font-size: .9375rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(22, 163, 74, .15); }
.ph-hero, img.ph-hero { aspect-ratio: 8 / 7; width: 100%; object-fit: cover; border-radius: var(--r-l); }
.tip img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 8px; }
@media (min-width: 900px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
}
@media (max-width: 520px) { .hero-actions .btn { flex: 1 1 100%; } }

/* Смуга довіри */
.trust { background: #fff; border-block: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; padding-block: 20px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trust-item b { display: block; font-size: .9375rem; line-height: 1.3; }
.trust-item b span { display: inline; color: inherit; font-size: inherit; }
.trust-item > div > span { display: block; color: var(--ink-3); font-size: .8125rem; line-height: 1.35; }
@media (min-width: 900px) { .trust-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Секції */
.section { padding: 48px 0; }
@media (min-width: 960px) { .section { padding: 64px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }

/* Як це працює */
.steps { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 28px 1fr; align-items: center; column-gap: 12px; row-gap: 0; padding: 12px 16px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.steps b { font-size: .9375rem; grid-column: 2; }
.steps li > span:last-child { color: var(--ink-3); font-size: .8125rem; grid-column: 2; }
.step-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .875rem; font-weight: 700; grid-row: 1 / 3; }
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
  .steps li { grid-template-columns: 1fr; gap: 4px; padding: 20px; }
  .steps b, .steps li > span:last-child { grid-column: auto; }
  .step-n { grid-row: auto; margin-bottom: 6px; }
}

/* Конструктор */
.create { background: #fff; border-block: 1px solid var(--line); }
.builder { display: grid; gap: 28px; }
@media (min-width: 960px) { .builder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; } }
.preview-sticky { display: grid; justify-items: center; gap: 12px; padding: 24px 16px; border-radius: var(--r-l); background: radial-gradient(circle at 50% 35%, #fff, #EDF0F4 70%); }
@media (min-width: 960px) { .preview-sticky { position: sticky; top: 88px; padding: 40px 24px; } }
.preview-frame { width: min(62%, 420px); aspect-ratio: 3 / 4; border-radius: var(--r-m); overflow: hidden; background: #fff; }
@media (min-width: 960px) { .preview-frame { width: 100%; } }
.preview-img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.preview-img.is-product { object-fit: contain; padding: 8%; }
.preview-img.is-loading { opacity: 0; }
.preview-note b { color: var(--ink); font-weight: 600; }
.preview-note { margin: 0; max-width: 22em; color: var(--ink-3); font-size: .8125rem; text-align: center; }

.builder-form { display: grid; gap: 26px; }
.step { display: grid; gap: 12px; }
.step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.0625rem; }
.step-title .step-n { margin: 0; }

.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: .875rem; font-weight: 500; }
.input {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #9AA1AB; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(10, 102, 255, .15); }
.input[aria-invalid="true"] { border-color: var(--err); }
textarea.input { min-height: 88px; resize: vertical; }
.select-wrap { position: relative; }
.select-wrap::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select.input { appearance: none; padding-right: 40px; cursor: pointer; }
.plate-field { display: flex; width: 100%; max-width: 320px; height: 60px; border: 2.5px solid #111; border-radius: 9px; background: #fff; overflow: hidden; }
.plate-field:focus-within { box-shadow: 0 0 0 3px rgba(10, 102, 255, .25); }
.plate-field .plate-ua { width: 40px; font-size: .75rem; gap: 3px; }
.input-plate { min-height: 0; height: 100%; border: 0; border-radius: 0; padding: 0 14px; font-size: 1.75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.input-plate:focus { box-shadow: none; }
.input-plate::placeholder { color: #C3C8CF; }
.create-title { margin-bottom: 24px; }
.field-error { color: var(--err); font-size: .8125rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

/* Картки типів у конструкторі */
.types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .types { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.type { position: relative; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type-body {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 76px;
  padding: 12px 34px 12px 12px; border: 1.5px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.type-body:hover { border-color: var(--line-strong); }
.type input:checked + .type-body { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(10, 102, 255, .12); }
.type input:focus-visible + .type-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.type-name, .type-price { display: block; }
.type-name { font-size: .875rem; font-weight: 600; line-height: 1.25; }
.type-price { font-size: .8125rem; color: var(--ink-3); }
.type-badge { position: absolute; top: -9px; left: 10px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .6875rem; font-weight: 700; }
.type-info-btn {
  position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; color: var(--ink-2);
  font: italic 700 .75rem/1 Georgia, serif; cursor: pointer;
}
.type-info-btn:hover { border-color: var(--accent); color: var(--accent); }
.type-thumb { display: block; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #fff; }
.type-thumb img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.swatch { width: 34px; height: 52px; border-radius: 7px; border: 1px solid rgba(0, 0, 0, .08); position: relative; overflow: hidden; }
.swatch[data-type="silicone"], .swatch[data-type="silicone_ms"] { background: #1B1C1F; }
.swatch[data-type="clear"], .swatch[data-type="clear_ms"] { background: linear-gradient(135deg, #F4F7FB, #DDE4EC); border-color: #C9D1DB; }
.swatch[data-type="plastic_ms"] { background: #4A4E55; box-shadow: inset 0 0 0 3px #16171A; }
.swatch[data-type="leather"] { background: radial-gradient(#2A2A2C 1px, #1D1D1F 1.5px) 0 0 / 4px 4px; }
.swatch[data-type$="_ms"]::after { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .5); }
.swatch[data-type="clear_ms"]::after { border-color: #fff; box-shadow: 0 0 0 1px #C9D1DB; }
.swatch[data-type="silicone_ms"]::after { border-color: rgba(255, 255, 255, .18); }
.swatch[data-type="plastic_ms"]::after { border-color: #111; }

/* Фото авто */
.drop {
  position: relative; display: grid; justify-items: center; gap: 6px; padding: 22px 16px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-m); background: #FAFBFC; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-tint); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.drop-title u { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
@media (hover: none) { .drop-drag { display: none; } }
.files { display: flex; flex-wrap: wrap; gap: 10px; }
.file { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.file img { width: 100%; height: 100%; object-fit: cover; }
.file-name { display: grid; place-items: center; height: 100%; padding: 6px; font-size: .6875rem; color: var(--ink-3); text-align: center; word-break: break-all; }
.file-remove { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(15, 17, 21, .7); color: #fff; cursor: pointer; }
.file-tag { position: absolute; left: 4px; bottom: 4px; padding: 1px 6px; border-radius: 4px; background: var(--accent); color: #fff; font-size: .625rem; font-weight: 700; }
.photo-alt { display: grid; gap: 8px; }
.later { display: flex; align-items: center; gap: 10px; font-size: .9375rem; cursor: pointer; }
.check { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.notes { display: grid; gap: 6px; }
.notes:empty { display: none; }
.note { margin: 0; padding: 8px 12px; border-radius: var(--r-s); font-size: .8125rem; line-height: 1.45; }
.note-warn { background: var(--warn-tint); color: var(--warn); }
.note-err { background: var(--err-tint); color: var(--err); }
.note a { font-weight: 600; }

.buy-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.price-box { display: grid; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ship-date { margin: -12px 0 0; color: var(--ink-3); font-size: .875rem; }
@media (max-width: 520px) { .buy-row .btn { flex: 1 1 100%; } }

.plate-ua { display: grid; align-content: center; justify-items: center; background: #0B4DC1; color: #fff; font-weight: 700; }
.plate-ua i { width: 60%; aspect-ratio: 3 / 2; background: linear-gradient(#1E63E0 50%, #FFD200 50%); }

/* Типи чохлів (секція) */
.type-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
@media (min-width: 720px) { .type-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .type-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.type-card { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.type-card .ph { min-height: 0; aspect-ratio: 1; padding: 8px; font-size: .6875rem; }
.type-card img { aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: 8px; background: var(--bg); }
.type-card h3 { margin: 0; font-size: .9375rem; line-height: 1.25; }
.type-card p { margin: 2px 0 0; color: var(--ink-3); font-size: .8125rem; }
.type-card .from { font-weight: 700; }
.type-card .btn { min-height: 36px; padding: 6px 10px; font-size: .875rem; }
.type-card .type-badge { top: -9px; }

/* Приклади */
.toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.toggle button { min-height: 36px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .875rem; color: var(--ink-2); cursor: pointer; }
.toggle button.is-on { background: var(--accent); color: #fff; }
.examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
@media (min-width: 720px) { .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .examples { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.example { display: grid; gap: 8px; margin: 0; align-content: start; }
.example img, .example .ph { aspect-ratio: 3 / 4; width: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-m); background: #fff; font-size: .6875rem; }
.section-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.more-row + .section-cta { margin-top: 16px; }
.link-btn { justify-self: start; padding: 0; border: 0; background: none; color: var(--accent); cursor: pointer; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hero-facts > span { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .875rem; color: var(--ink-2); }
.hero-facts b { color: var(--ink); }
.tips-dialog { width: min(760px, calc(100% - 32px)); max-height: 92dvh; padding: 22px; border: 0; border-radius: var(--r-l); box-shadow: var(--shadow); }
.tips-dialog[open] { display: grid; gap: 12px; align-content: start; }
.tips-dialog::backdrop { background: rgba(15, 17, 21, .5); }
.tips-dialog .tips { margin-top: 4px; }
.tips-dialog .sub { margin: 0; }
.tips-dialog #tips-ok { width: 100%; }
.more-row { display: flex; justify-content: center; margin-top: 20px; }
.example figcaption { font-size: .875rem; font-weight: 600; }

/* Поради щодо фото */
.tips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
@media (min-width: 900px) { .tips { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tip { margin: 0; display: grid; gap: 10px; padding: 12px; border-radius: var(--r-m); background: #fff; border: 1px solid var(--line); }
.tip .ph { aspect-ratio: 4 / 3; min-height: 0; font-size: .6875rem; }
.tip figcaption { font-size: .875rem; color: var(--ink-2); }
.tip b { display: flex; align-items: center; gap: 6px; color: var(--ink); }
.tip b::before { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: .75rem; }
.tip.good b::before { content: '✓'; background: var(--ok); }
.tip.bad b::before { content: '✕'; background: var(--err); }

/* Чохли наших клієнтів: галерея з гортанням */
.gallery-wrap { position: relative; margin-top: 24px; }
.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 -16px; padding: 0 16px 4px; scroll-padding-inline: 16px;
}
.gallery::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .gallery { grid-auto-columns: 28%; margin: 0; padding: 0 0 4px; scroll-padding-inline: 0; } }
@media (min-width: 1080px) { .gallery { grid-auto-columns: calc((100% - 5 * 12px) / 6); } }
.g-item { margin: 0; display: grid; gap: 8px; align-content: start; scroll-snap-align: start; }
.g-video { position: relative; }
.g-item video, .g-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-m); background: #111; display: block; }
.g-photo { padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-item figcaption { font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.gallery-arrow {
  position: absolute; top: calc(50% - 30px); z-index: 2; display: none; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: 50%; background: #fff; box-shadow: var(--shadow); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.gallery-arrow.prev { left: -18px; }
.gallery-arrow.next { right: -18px; }
.gallery-arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 720px) { .gallery-arrow { display: grid; } }

/* Відео в галереї: обкладинка з кнопкою відтворення */
.g-play {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; border-radius: var(--r-m); cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .35));
}
.g-play svg { width: 56px; height: 56px; padding: 14px 12px 14px 16px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .15s; }
.g-play:hover svg { transform: scale(1.08); }
.g-badge { position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 17, 21, .7); color: #fff; font-size: .75rem; font-weight: 600; pointer-events: none; }
.g-video.is-playing .g-play, .g-video.is-playing .g-badge { display: none; }

/* Відгуки на білому — щоб не зливалися з сірими прикладами й «Як це працює» */
#reviews { background: #fff; border-block: 1px solid var(--line); }

/* Перегляд фото */
.lightbox { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: rgba(10, 11, 13, .94); color: #fff; }
.lightbox[open] { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.lightbox img { max-width: 100%; max-height: 84dvh; border-radius: 10px; }
.lightbox figcaption { font-weight: 600; }
.lightbox-nav { height: 100%; border: 0; background: none; color: #fff; font-size: 2.4rem; cursor: pointer; }
.lightbox-close { position: absolute; top: 14px; right: 14px; z-index: 1; background: rgba(255, 255, 255, .15); color: #fff; }

/* Telegram */
.btn-tg { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-tg svg { width: 20px; height: 20px; color: #229ED9; }
.btn-tg:hover { border-color: #229ED9; }
.tg-alt { margin: -14px 0 0; color: var(--ink-3); font-size: .875rem; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .final-actions .btn, .section-cta .btn { flex: 1 1 100%; } }

/* FAQ */
.faq-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 48px; } }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.faq summary { display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.25rem; line-height: 1; color: var(--ink-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); }

/* Фінальний заклик і футер */
.final { padding: 40px 0; background: var(--accent-tint); }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer { padding: 32px 0 calc(90px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .site-footer { padding-bottom: 32px; } }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.footer-row img { height: 34px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.footer-links a { color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.footer-links a:hover { color: var(--accent); }

/* Мобільна панель з ціною */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(16, 24, 40, .08); transform: translateY(110%); transition: transform .25s;
}
.buybar.is-visible { transform: none; }
.buybar b { display: block; font-size: 1.125rem; }
.buybar .btn { flex: none; padding-inline: 16px; }
.buybar > div { min-width: 0; }
.buybar .small { display: block; max-width: 56vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 960px) { .buybar { display: none; } }

/* Вікно типу чохла */
.type-info { width: min(420px, calc(100% - 32px)); padding: 20px; border: 0; border-radius: var(--r-l); box-shadow: var(--shadow); }
.type-info[open] { display: grid; gap: 14px; align-content: start; }
.type-info::backdrop { background: rgba(15, 17, 21, .5); }
.type-info-close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.type-info-img .ph, .type-info-img img { aspect-ratio: 1; max-height: 42dvh; margin: 0 auto; width: 100%; min-height: 0; object-fit: cover; border-radius: var(--r-m); }
.checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; font-size: .9375rem; color: var(--ink-2); }
.checks li::before { content: '✓'; flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-size: .75rem; font-weight: 700; }
.type-info-price { margin: 0; font-weight: 700; }

/* Оформлення */
.checkout {
  width: min(560px, calc(100% - 32px)); max-height: min(92dvh, 900px); padding: 0; border: 0; border-radius: var(--r-l);
  box-shadow: var(--shadow); overflow: hidden;
}
.checkout[open] { display: flex; flex-direction: column; }
.checkout::backdrop { background: rgba(15, 17, 21, .55); }
.checkout-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.checkout-title { font-size: 1.5rem; }
.checkout-body { display: grid; gap: 24px; padding: 20px 22px 24px; overflow-y: auto; overscroll-behavior: contain; }
.checkout-foot { display: grid; gap: 10px; padding: 14px 22px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
@media (max-width: 560px) {
  .checkout { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
}
.form-block { display: grid; gap: 14px; }
.mini { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-m); background: var(--bg); }
.mini-title { font-weight: 600; }
.mini-total { margin-top: 2px; font-weight: 700; }
.combo { position: relative; }
.combo-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; max-height: 260px; margin: 0; padding: 4px; overflow-y: auto;
  list-style: none; background: #fff; border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow);
}
.combo-opt { padding: 10px 12px; border-radius: 6px; font-size: .9375rem; line-height: 1.35; cursor: pointer; }
.combo-opt:hover, .combo-opt[aria-selected="true"] { background: var(--bg); }
.combo-status { padding: 10px 12px; color: var(--ink-3); font-size: .875rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; font-size: .9375rem; cursor: pointer; }
.chip input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay { display: grid; gap: 8px; }
.option { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--r-m); cursor: pointer; }
.option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.radio { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.opt-title { display: block; font-weight: 600; }
.opt-desc { display: block; margin-top: 2px; color: var(--ink-3); font-size: .875rem; }
.progress { height: 4px; overflow: hidden; border-radius: 2px; background: var(--line); }
.progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: grid; justify-items: start; gap: 14px; }
.done p { margin: 0; }
.done-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); }
