/**
 * Сучасний UI-кіт 2026 для UA TikTok COD лендингів
 * Стиль: чистий бренд-стор рівня Rozetka / Mono / Dyson — м'які тіні, чітка типографіка, висока довіра.
 */
:root {
  --bg-page: #f3e9de;
  --bg-card: #fffdf9;
  --bg-subtle: #faf2e8;
  --text-main: #291c14;
  --text-muted: #695344;
  --text-light: #8c7260;
  --accent: #d95d24;
  --accent-hover: #bc4b17;
  --accent-soft: #ffedd5;
  --accent-dark: #9a3412;
  --np-red: #da291c;
  --danger-soft: #fef2f2;
  --border: #eadbcf;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-card: 0 8px 26px rgba(84, 48, 24, 0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

img, video { max-width: 100%; height: auto; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  background: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ua-shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-card);
  min-height: 100vh;
  padding-bottom: 92px;
  box-shadow: 0 0 40px rgba(15, 23, 42, 0.08);
}

/* Компактна шапка бренд-стору */
.ua-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.ua-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.ua-brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ua-topbar-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
}

.ua-section {
  padding: 22px 16px;
  border-bottom: 8px solid var(--bg-subtle);
}

.ua-badge-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.ua-h1 {
  font-size: 23.5px;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.ua-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.42;
  margin-bottom: 12px;
}

.ua-h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.ua-section-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 4px;
}

.ua-media-frame {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid var(--border);
  margin: 10px 0 14px;
  position: relative;
}

.ua-media-frame img,
.ua-media-frame video {
  width: 100%;
  height: auto;
  display: block;
}

/* Короткі буліти-чіпси під головним фото */
.ua-QuickPills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.ua-pill-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}

.ua-pill-icon {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
}

/* Блок ціни та залишку */
.ua-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 15px;
  margin-bottom: 10px;
}

.ua-price-label {
  font-size: 11.5px;
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 1px;
}

.ua-price-old {
  font-size: 14px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.ua-price-new {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.ua-price-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.ua-discount-pill {
  background: #ef4444;
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
  padding: 4px 10px;
  border-radius: 9px;
}

.ua-stock-line {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.ua-stock-line b {
  display: inline-block;
  color: #dc2626;
  font-weight: 800;
}

.ua-ship-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: #1e293b;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.ua-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px 20px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-size: 16.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.26);
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
  text-align: center;
}

.ua-btn-cta:hover { background: var(--accent-hover); }
.ua-btn-cta:active { transform: scale(0.98); background: var(--accent-hover); }
.ua-btn-cta:disabled { opacity: 0.7; cursor: wait; }

.ua-np-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff5f5;
  border: 1px solid #fecaca;
  font-size: 12.5px;
  color: #7f1d1d;
  line-height: 1.35;
}

.ua-np-badge {
  flex-shrink: 0;
  background: var(--np-red);
  color: #fff;
  font-weight: 800;
  font-size: 10.5px;
  padding: 5px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

/* Екран 2: 3 картки вигоди */
.ua-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ua-benefit-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ua-benefit-media {
  width: 100%;
  background: var(--bg-subtle);
  overflow: hidden;
}

.ua-benefit-media img,
.ua-benefit-media video {
  width: 100%;
  height: auto;
  display: block;
}

.ua-benefit-body {
  padding: 14px 15px 16px;
}

.ua-benefit-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.ua-benefit-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.28;
  margin-bottom: 5px;
}

.ua-benefit-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Екран 3: Характеристики, Комплектація та Порівняння */
.ua-specs-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.ua-specs-img {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.ua-specs-list {
  list-style: none;
}

.ua-specs-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f5f9;
}

.ua-specs-row:nth-child(even) { background: #f8fafc; }
.ua-specs-row:last-child { border-bottom: none; }

.ua-specs-key {
  color: var(--text-light);
  font-weight: 500;
}

.ua-specs-val {
  color: var(--text-main);
  font-weight: 700;
  text-align: right;
}

.ua-kit-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  margin-bottom: 18px;
}

.ua-kit-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.ua-kit-list {
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  color: #334155;
}

.ua-kit-list li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 800;
}

/* Таблиця порівняння Оригінал vs Дешеві аналоги */
.ua-compare {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  font-size: 13px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.ua-compare-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  border-bottom: 1px solid var(--border);
}

.ua-compare-row:last-child { border-bottom: none; }
.ua-compare-row > div { padding: 10px 8px; display: flex; align-items: center; line-height: 1.3; }
.ua-compare-head { background: var(--bg-subtle); font-weight: 800; font-size: 12px; color: #334155; }
.ua-col-good { background: #f0fdf4; font-weight: 700; color: #166534; justify-content: center; text-align: center; border-left: 1px solid #dcfce7; }
.ua-col-bad { background: #fff; color: #64748b; justify-content: center; text-align: center; border-left: 1px solid var(--border); }

/* Екран 4: Живі відгуки + UGC фото */
.ua-reviews-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 14px;
  margin-bottom: 14px;
}

.ua-rev-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ua-rev-big {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

.ua-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 1px;
}

.ua-rev-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ua-rev-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-card);
}

.ua-rev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.ua-rev-author {
  font-weight: 800;
  font-size: 14.5px;
  color: var(--text-main);
}

.ua-rev-city {
  font-size: 12px;
  color: var(--text-light);
  font-weight: 500;
}

.ua-rev-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.ua-rev-text {
  font-size: 14px;
  color: #1e293b;
  line-height: 1.46;
}

.ua-rev-ugc {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.ua-rev-ugc img {
  width: 100%;
  height: auto;
  display: block;
}

/* Екран 5: 3 кроки отримання + Фінальна форма */
.ua-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ua-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
}

.ua-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ua-step-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 2px;
}

.ua-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.38;
}

.ua-order-box {
  background: #ffffff;
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.1);
}

.ua-order-box-head {
  text-align: center;
  margin-bottom: 14px;
}

.ua-order-box-title {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 4px;
}

.ua-order-box-sub {
  font-size: 13px;
  color: var(--text-muted);
}

.ua-field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 5px;
}

.ua-input {
  width: 100%;
  padding: 15px 14px;
  font-size: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  margin-bottom: 11px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ua-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.14);
}

.ua-form-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 10px;
  margin-bottom: 10px;
}

.ua-consent-note {
  margin-top: 10px;
  text-align: center;
  font-size: 11.5px;
  color: var(--text-light);
  line-height: 1.4;
}

.ua-consent-note a {
  color: #475569;
  text-decoration: underline;
}

/* Sticky CTA внизу (з урахуванням панелі TikTok Browser) */
.ua-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.ua-sticky-cta.is-visible { transform: translateY(0); }

.ua-sticky-inner {
  max-width: 452px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ua-sticky-price-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.ua-sticky-price-new {
  font-size: 20px;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.ua-sticky-btn {
  flex: 1;
  padding: 13px 14px;
  font-size: 14.5px;
  border-radius: 12px;
}

/* Bottom Sheet шторка замовлення */
.ua-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.ua-sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

.ua-sheet-panel {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.ua-sheet-backdrop.is-open .ua-sheet-panel { transform: translateY(0); }

.ua-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #cbd5e1;
  margin: 0 auto 12px;
}

.ua-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.ua-sheet-close {
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Футер з робочими політиками */
.ua-footer {
  padding: 24px 16px 34px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  background: var(--bg-subtle);
  line-height: 1.55;
}

.ua-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 12px;
}

.ua-footer-links a {
  color: #695344;
  text-decoration: underline;
  font-weight: 500;
}

/* === ТЕМА 1: ДІМ ТЕПЛА (Теплий беж, м'яка байка, теракотовий акцент) === */
.ua-topbar {
  background: rgba(255, 249, 242, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eadbcf;
}
.ua-topbar-rating {
  background: #fff3e6;
  border-color: #fed7aa;
  color: #9a3412;
}
[data-hero-section] {
  background: linear-gradient(180deg, #fff5eb 0%, #fffdf9 100%);
}
.ua-badge-top {
  background: #ffedd5;
  border: 1px solid #fed7aa;
  color: #9a3412;
}
.ua-pill-item {
  background: #fff8f1;
  border-color: #f3dec8;
  border-radius: 16px;
  color: #432818;
}
.ua-price-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1.5px solid #fdba74;
}
.ua-price-new {
  color: #c2410c;
}
.ua-discount-pill {
  background: #be123c;
  border-radius: 999px;
}
.ua-ship-bar {
  background: #fffbeb;
  border-color: #fde68a;
  color: #78350f;
}
.ua-btn-cta {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(217, 93, 36, 0.3);
}
.ua-btn-cta:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
}
.ua-benefit-card {
  background: #fffdfb;
  border-radius: 22px;
}
.ua-specs-row:nth-child(even) {
  background: #fdf6ef;
}
.ua-kit-card {
  background: #fff8f1;
  border-color: #eadbcf;
}
.ua-col-good {
  background: #fff7ed;
  color: #9a3412;
  border-left-color: #fed7aa;
}
.ua-order-box {
  background: #fffcf8;
  border-color: #ea580c;
  border-radius: 24px;
  box-shadow: 0 12px 32px rgba(217, 93, 36, 0.14);
}
.ua-input:focus {
  border-color: #ea580c;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.16);
}
.ua-sticky-cta {
  background: rgba(255, 250, 245, 0.96);
  border-top-color: #eadbcf;
}


