:root{
  /* Base */
  --bg: #f6f4f1;         /* warm light */
  --bg: #f6c86ea6;
  --surface: #ffffff;     /* cards */
  --surface: radial-gradient(circle at top, #fef3c7 0%, #fde68a 38%, #fcd34d 70%, #fbbf24 100%);
  --surface2: #fbfaf8;    /* subtle alt */
  --surface2: radial-gradient(circle at top, #fef3c7 0%, #fde68a 38%, #fcd34d 70%, #fbbf24 100%);
  --text: #131313;
  --text: #6D391A;
  --muted: #5b5b5b;
  --muted: #6D391A;
  --line: rgba(19,19,19,.10);
  --shadow: 0 14px 34px rgba(19,19,19,.10);
  --r: 18px;

  /* Accent (nude/beige) */
  --accent: #c9a48a;
  --accent2:#b88f73;
  --accent-ink:#1a1a1a;

  /* CTA */
  --cta:#1a1a1a;
  --cta:#6d391a;
  --cta-ink:#ffffff;

  /* Status */
  --ok:#16a34a;
  --bad:#ef4444;

  /* Layout */
  --wrap: min(980px, 92vw);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
.wrap{width:var(--wrap);margin:0 auto}
.section{padding:26px 0}
.section--tight{padding:18px 0}
.surface{background:var(--surface); border:1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);}
.surface--soft{background:var(--surface2);}
.h1{
  margin:0 0 10px;
  font-weight:900;
  letter-spacing:-.02em;
  font-size: clamp(28px, 4.6vw, 44px);
  line-height:1.05;
  text-align:center;
}
.h2{
  margin:0 0 14px;
  font-weight:900;
  letter-spacing:-.01em;
  font-size: clamp(20px, 3.2vw, 28px);
  line-height:1.15;
}
.p{margin:0;color:var(--muted)}
.center{display:flex;justify-content:center}
.stack{display:grid;gap:14px}
.hr{height:1px;background:var(--line);margin:8px 0}

/* Hero */
.hero{
  padding: 22px 0 10px;
}
.heroCard{
  padding: 16px;
}
.heroGrid{
  display:grid;
  gap:14px;
}
@media (min-width: 880px){
  .heroGrid{grid-template-columns: 1.08fr .92fr; align-items:start}
}

.heroMedia{
  border-radius: calc(var(--r) + 4px);
  overflow:hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #fff;
}
.badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  margin: 8px 0 0;
}
.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(201,164,138,.16);
  border: 1px solid rgba(201,164,138,.32);
  color: #2a2a2a;
  font-weight: 750;
  font-size: 13px;
}

.priceRow{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width:520px){
  .priceRow{grid-template-columns:1fr}
}
.priceBox{
  border-radius: 16px;
  padding: 12px;
  border:1px solid var(--line);
  background: var(--surface2);
}
.priceCap{font-weight:850;color:var(--muted);font-size:13px;margin-bottom:6px}
.priceVal{font-weight:950;font-size: 26px;letter-spacing:-.02em}
.priceOld .priceVal{
  text-decoration: line-through;
  text-decoration-thickness: 3px;
  text-decoration-color: rgba(19,19,19,.35);
  color: rgba(19,19,19,.70);
}
.priceNow{
  /*background: rgba(201,164,138,.35);*/
  background: rgba(201,164,138,.67);
  border-color: rgba(201,164,138,.35);
}
.metaLine{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
  color: var(--muted);
  font-weight:700;
  font-size: 13px;
}
.metaPill{
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(19,19,19,.04);
  border: 1px solid rgba(19,19,19,.08);
}

/* Form */
.form{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.inp, .sel{
  width:100%;
  padding: 13px 12px;
  border-radius: 14px;
  border: 1px solid rgba(19,19,19,.14);
  background: #fff;
  font-size: 16px;
}
.inp:focus, .sel:focus{outline:2px solid rgba(201,164,138,.35); border-color: rgba(201,164,138,.55)}
.btn{
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 13px 12px;
  border-radius: 14px;
  border: 0;
  cursor:pointer;
  background: var(--cta);
  color: var(--cta-ink);
  font-weight: 900;
  letter-spacing:.02em;
  text-decoration:none;
}
.btn:hover{filter: brightness(1.05)}
.btn--soft{
  background: rgba(201,164,138,.18);
  color: #1a1a1a;
  border: 1px solid rgba(201,164,138,.35);
}
.small{font-size:12px;color:var(--muted);text-align:center}
.msg{font-weight:800;font-size:13px}
.msg.ok{color:var(--ok)}
.msg.bad{color:var(--bad)}

/* Short */
.shortGrid{
  display:grid; gap:14px;
}
@media (min-width: 880px){
  .shortGrid{grid-template-columns: 1fr 1fr; align-items:center}
}
.bullets{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.bullets li{
  display:flex; gap:10px; align-items:flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(19,19,19,.03);
  border: 1px solid rgba(19,19,19,.06);
  color: #2a2a2a;
  color: #6D391A;
  font-weight: 750;
}
.dot{
  width:10px;height:10px;border-radius:999px;background:var(--accent);
  margin-top: 6px; flex: 0 0 10px;
}

/* Video */
.vbox{
  border-radius: var(--r);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.vbox video{width:100%;height:auto;display:block;background:#000}

/* Specs */
.specGrid{
  display:grid; gap:14px;
}
@media (min-width: 880px){
  .specGrid{grid-template-columns: 1fr 1fr; align-items:start}
}
.specList{
  margin:0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 700;
}
.specList li{margin: 8px 0}

/* Reviews */
.reviewsTop{
  text-align:center;
  display:grid;
  gap:8px;
}
.reviewsGrid{
  display:grid;
  gap:14px;
}
@media (min-width: 880px){
  .reviewsGrid{grid-template-columns: 1fr 1fr 1fr}
}
.reviewCard{
  padding: 14px;
}
.reviewPhoto{
  border-radius: 16px;
  overflow:hidden;
  border:1px solid var(--line);
  background: #fff;
}
.reviewText{
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}
.stars{color: var(--accent2); letter-spacing: 1px; font-weight: 900}
.nameRow{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px;font-weight:900}
.date{color: rgba(19,19,19,.55); font-weight: 800; font-size: 12px}

/* How to order */
.howGrid{display:grid;gap:14px}
@media (min-width: 880px){
  .howGrid{grid-template-columns: 1fr 1fr}
}
.howItem{
  display:flex;
  gap:12px;
  padding: 14px;
  align-items:center;
}
.howItem img{
  width:120px;
  height:90px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
}
.howTxt h3{margin:0 0 6px;font-size: 16px}
.howTxt p{margin:0;color:var(--muted);font-weight:700}
.stepNo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;height:28px;border-radius:999px;
  background: rgba(201,164,138,.20);
  border: 1px solid rgba(201,164,138,.35);
  font-weight: 900;
  margin-right: 8px;
}

/* Footer */
.footer{
  padding: 22px 0 70px;
  color: rgba(19,19,19,.70);
}
.legal{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  font-size:12px;
  text-align:center;
}
.legal a{color: rgba(19,19,19,.70); text-decoration:none}
.legal a:hover{text-decoration:underline}
.copy{opacity:.7}

/* Sticky CTA */
.sticky{
  position:fixed; left:0; right:0; bottom:0;
  background: rgba(246,244,241,.92);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(19,19,19,.12);
  z-index: 50;
}
.stickyInner{
  width: var(--wrap);
  margin: 0 auto;
  padding: 10px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}
.stickyPrice{
  font-weight: 950;
  letter-spacing:-.02em;
}
.stickyMeta{
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.stickyBtn{
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--cta);
  color: var(--cta-ink);
  text-decoration:none;
  font-weight: 900;
  white-space:nowrap;
}
@media (max-width:520px){
  .stickyMeta{display:none}
}

/* --- Short carousel (dots over image) --- */
.carousel{
  position:relative;
  width:100%;
}

.carViewport{
  overflow:hidden;
  border-radius:18px;
  position:relative; /* потрібно для позиціонування крапок */
}

.carTrack{
  display:flex;
  transition:transform .28s ease;
  will-change:transform;
}

.carSlide{
  min-width:100%;
}

.carSlide img{
  width:100%;
  height:auto;
  display:block;
  border-radius:18px;
}

/* arrows */
.carBtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:44px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  background:rgba(255,255,255,.92);
  color:#111;
  font-weight:900;
  font-size:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:6;
}
.carBtn--l{left:10px}
.carBtn--r{right:10px}

/* dots overlay */
.carDots{
  position:absolute;
  left:0;
  right:0;
  bottom:10px;
  display:flex;
  justify-content:center;
  gap:8px;
  margin:0;                 /* важливо: прибирає відступи під картинкою */
  z-index:7;
  pointer-events:auto;
}

.carDot{
  width:8px;
  height:8px;
  border-radius:999px;
  border:0;
  padding:0;
  cursor:pointer;
  background:rgba(255,255,255,.55);
  box-shadow:0 1px 3px rgba(0,0,0,.25);
}

.carDot.isActive{
  background:rgba(255,255,255,.95);
}

/* --- Specs stack --- */
.specStack{display:grid; gap:16px; margin-top:14px}
.specText{margin:10px 2px 0; color:var(--muted); font-weight:650}

/* --- Price Card (old + new + discount) --- */
.priceCard{
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(17,24,39,.10);
  border-radius: 22px;
  padding: 18px 18px;
  box-shadow: 0 12px 30px rgba(17,24,39,.10);
}

.priceCard__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17,24,39,.10);
  margin-bottom: 12px;
}

.priceCard__label{
  font-weight: 800;
  opacity: .75;
  font-size: 14px;
}

.oldVal{
  font-weight: 900;
  font-size: 36px;
  opacity: .55;
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.priceCard__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.nowVal{
  font-weight: 1000;
  font-size: 44px;
  line-height: 1;
}

.priceCard__badge{
  flex: 0 0 auto;
  background: rgba(255, 212, 0, 0.95);
  color: #111;
  font-weight: 1000;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}

/* Mobile tweaks */
@media (max-width: 520px){
  .oldVal{ font-size: 32px; }
  .nowVal{ font-size: 40px; }
  .priceCard{ padding: 16px; }
}


.sizeGuide { line-height: 1.45; }

.sizeGuide__title{
  margin: 0 0 10px;
  font-weight: 900;
}

.sizeGuide__desc{
  margin: 0 0 12px;
}

.sizeGuide__stepTitle{
  margin: 14px 0 8px;
  font-weight: 900;
}

.sizeGuide__list{
  margin: 0 0 12px;
  padding-left: 18px;
}

.sizeGuide__list li{ margin: 6px 0; }

.sizeGuide__note{
  margin: 0 0 10px;
}

@media (max-width: 880px){

  .heroCard{
    padding-top: 0;
  }

  .heroGrid > .heroMedia:first-child{
    margin: -16px -16px 12px -16px;
    border-radius: var(--r); /* округлення ВСІХ кутів */
    overflow: hidden;
    box-shadow: none;
    border: 0;
  }

  .heroGrid > .heroMedia:first-child img{
    width: 100%;
    display:block;
  }

}

.legalPopup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}

.legalPopup.active{
  display:flex;
}

.legalPopupBox{
  background:#fff;
  width:100%;
  max-width:900px;
  height:85vh;
  border-radius:14px;
  overflow:hidden;
  position:relative;
}

.legalPopupBox iframe{
  width:100%;
  height:100%;
  border:0;
}

.legalPopupClose{
  position:absolute;
  right:12px;
  top:12px;
  border:0;
  background:#fff;
  font-size:20px;
  cursor:pointer;
  z-index:2;
}