/* ==========================================================
   Плед-худі — основні стилі (mobile-first)
   Палітра: нічний синій / корал / жовтий / зелена кнопка
   ========================================================== */
:root {
  --c-dark: #14213d;
  --c-dark-2: #1f3361;
  --c-dark-3: #0e1730;
  --c-accent: #ff4d5a;
  --c-accent-2: #ff7a59;
  --c-amber: #ffd166;
  --c-amber-2: #ffbf3f;
  --c-cream: #f4f7fc;
  --c-cream-2: #e6ecf7;
  --c-text: #1f2a44;
  --c-muted: #7a8499;
  --c-on-amber: #14213d;
  --c-accent-glow: rgba(255, 77, 90, .45);
  --c-cta: #3ddc84;
  --c-cta-2: #22b866;
  --c-cta-edge: #178a4c;
  --c-cta-glow: rgba(34, 184, 102, .35);
  --c-cta-text: #ffffff;
  --radius: 18px;
  --radius-photo: 12px;
  --shadow: 0 10px 30px rgba(20, 33, 61, .14);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

body {
  min-width: 0;
  margin: 0;
  background: var(--c-dark-3);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  display: block;
  overflow-x: hidden;
}

#page, .container-body { width: 100%; }

.content-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-cream);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

h1, h2, h3, h4 { text-transform: none; font-family: var(--font); margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--c-accent); }

/* ---------- Заголовки секцій ---------- */
.title {
  text-align: center;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 22px;
  padding: 0 0 16px;
  position: relative;
  color: var(--c-dark);
}
.title strong { color: var(--c-accent); font-weight: 800; }
.title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--c-accent), var(--c-amber));
}

/* ---------- HERO ---------- */
.hero-card {
  background: radial-gradient(120% 80% at 50% 0%, var(--c-dark-2) 0%, var(--c-dark) 60%);
  color: #fff;
  padding-bottom: 6px;
}
.hero-head {
  text-align: center;
  padding: 22px 16px 16px;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-on-amber);
  background: var(--c-amber);
  padding: 5px 12px;
  border-radius: 30px;
  margin-bottom: 12px;
}
.product-title {
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  text-transform: uppercase;
  color: #fff;
  padding: 0;
}
.product-title strong { color: var(--c-amber); display: block; font-weight: 800; }
.hero-sub {
  margin: 10px 0 0;
  font-size: 16px;
  color: rgba(255,255,255,.78);
}

.hero-media { position: relative; }
.hero-img { width: 100%; }
.discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--c-accent-2), var(--c-accent));
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 6px 18px var(--c-accent-glow);
  border: 3px solid rgba(255,255,255,.85);
  transform: rotate(-8deg);
}
.discount-badge span { font-size: 12px; text-transform: uppercase; font-weight: 600; letter-spacing: .05em; }
.discount-badge b { font-size: 28px; font-weight: 800; margin-top: 3px; }

/* ---------- ЦІНИ ---------- */
.pricing-block {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 16px 14px 4px;
  height: auto;
  background: none;
  line-height: 1;
}
.pricing-block > * {
  text-align: center;
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  align-content: center;
  max-height: none;
}
.pricing-block span {
  display: block;
  flex: 0 0 auto;
  width: auto;
  font-size: 12px;
  line-height: 1.2;
  margin-bottom: 6px;
}

/* звичайна ціна — менша, приглушена */
.old-price {
  flex: 0 0 38%;
  padding: 12px 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.62);
}
.old-price strong {
  font-size: 24px;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-color: var(--c-accent-2);
  text-decoration-thickness: 2px;
  display: inline;
}
.old-price small { font-size: 14px; font-weight: 500; margin-left: 2px; }

/* акційна ціна — більша, виділена */
.new-price {
  flex: 1 1 auto;
  padding: 12px 8px 14px;
  background: linear-gradient(135deg, var(--c-accent-2) 0%, var(--c-accent) 100%);
  color: #fff;
  box-shadow: 0 8px 24px var(--c-accent-glow), inset 0 0 0 2px rgba(255,255,255,.35);
  position: relative;
  animation: pricePulse 2.2s ease-in-out infinite;
}
.new-price span {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--c-on-amber);
  background: var(--c-amber);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.new-price strong {
  font-size: 50px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 2px 0 rgba(0,0,0,.12);
  display: inline;
}
.new-price small { font-size: 22px; font-weight: 700; margin-left: 4px; }
.old-price span { width: 100%; }
.new-price span { flex-basis: auto; }
.new-price::before { content: ''; flex-basis: 100%; order: 1; height: 0; }
.new-price span { order: 0; }
.new-price strong, .new-price small { order: 2; }

@keyframes pricePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ---------- ТАЙМЕР ---------- */
.countdown { text-align: center; padding: 10px 14px 0; color: #fff; }
.countdown h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 10px 0 10px;
  color: rgba(255,255,255,.8);
}
.countdown__timer { display: flex; justify-content: center; gap: 8px; }
.countdown__item {
  margin: 0;
  min-width: 64px;
  padding: 8px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
}
.countdown__value {
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--c-amber);
}
.countdown__label { margin: 4px 0 0; padding: 0; font-size: 11px; text-transform: uppercase; color: rgba(255,255,255,.7); }

.stock-left { margin: 16px 0 0; font-size: 14px; color: rgba(255,255,255,.85); }
.stock-left span {
  display: inline-block;
  padding: 3px 8px;
  margin: 0 3px;
  border-radius: 6px;
  background: var(--c-amber);
  color: var(--c-on-amber);
  font-weight: 800;
}

/* ---------- КНОПКА ---------- */
.margin20 { margin: 20px 14px; }
.margin30 { margin: 26px 16px 30px; }

.big-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 16px;
  border: none;
  border-radius: 40px;
  background: linear-gradient(180deg, var(--c-cta, var(--c-amber)) 0%, var(--c-cta-2, var(--c-amber-2)) 100%);
  box-shadow: 0 5px 0 var(--c-cta-edge), 0 12px 24px var(--c-cta-glow);
  color: var(--c-cta-text);
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.big-button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--c-cta-edge), 0 6px 14px var(--c-cta-glow); }

/* ---------- ОПИС ---------- */
.product-description { margin: 0; padding: 36px 16px 20px; }
.presentation {
  font-size: 16px;
  line-height: 1.65;
  text-align: center;
  color: var(--c-text);
  padding: 0;
}
.presentation p { margin: 0 0 16px; }
.presentation h3 {
  font-size: 21px;
  font-weight: 800;
  color: var(--c-dark);
  margin: 26px 0 12px;
}
.presentation img,
.presentation video {
  width: 100%;
  border-radius: var(--radius-photo);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 0 22px;
}

/* ---------- ПЕРЕВАГИ ---------- */
.features-block { padding: 30px 14px 14px; background: var(--c-cream-2); }
.feature-item-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow);
  width: auto;
  margin: 0;
  padding: 0 0 14px;
}
.feature-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-text { padding: 12px 10px 0; }
.feature-title { font-size: 16px; font-weight: 800; color: var(--c-accent); margin: 0 0 6px; line-height: 1.25; }
.feature-text p { font-size: 13.5px; line-height: 1.45; color: var(--c-text); margin: 0; }

/* ---------- ТЕМНІ БЛОКИ ---------- */
.dark-block { background: var(--c-dark); color: #fff; padding: 30px 0 0; }
.dark-block .title { color: #fff; margin: 0 16px 20px; }
.dark-block .title strong { color: var(--c-amber); }
.dark-block + .dark-block { padding-top: 10px; }

.swiper-reviews { --swiper-navigation-color: var(--c-on-amber); --swiper-navigation-size: 22px; }
.swiper-reviews .swiper-slide img { width: 100%; }
.dark-block .swiper-button-next,
.dark-block .swiper-button-prev {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
}
.dark-block .swiper-button-next { right: 10px; }
.dark-block .swiper-button-prev { left: 10px; }
.dark-block .swiper-button-next::after,
.dark-block .swiper-button-prev::after { font-size: 18px; font-weight: 800; }

.characteristics__list { padding: 0 16px; margin: 0; list-style: none; }
.characteristics__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255,255,255,.16);
  font-size: 15px;
}
.characteristics__list li b { color: rgba(255,255,255,.7); font-weight: 600; flex: 0 0 auto; }
.characteristics__list li span { color: var(--c-amber); font-weight: 700; text-align: right; }

.full-img { width: 100%; }

/* ---------- ФОРМА ---------- */
.hero-card--order { padding-bottom: 10px; }
.hero-card--order .product-title { font-size: 28px; }

.wpcf7-form {
  margin: 22px 0 18px;
  padding: 0 14px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.wpcf7-form-control-wrap { display: block; width: 100%; margin-bottom: 12px; }
.wpcf7-form input.field {
  width: 100%;
  height: 60px;
  padding: 0 24px;
  border: 2px solid transparent;
  border-radius: 32px;
  background: #fff;
  color: var(--c-dark);
  font-size: 17px; /* >=16px — без авто-зуму на iOS */
  font-weight: 500;
  outline: none;
  transition: border-color .15s;
}
.wpcf7-form input.field::placeholder { color: var(--c-muted); }
.wpcf7-form input.field:focus { border-color: var(--c-amber); }
.button-submit { margin-top: 6px; }

.order-perks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: rgba(255,255,255,.82);
  text-align: center;
}
.order-perks li::before { content: '✓'; color: var(--c-amber); font-weight: 800; margin-right: 8px; }

/* ---------- ФУТЕР ---------- */
.footer_section {
  background: var(--c-dark-3);
  color: rgba(255,255,255,.6);
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  padding: 24px 16px 30px;
}
.footer_section p { margin: 0 0 12px; }
.footer_section a { color: rgba(255,255,255,.8); }
.footer-links { display: flex; flex-direction: column; gap: 4px; }

/* ---------- Адаптив ---------- */
@media (max-width: 380px) {
  .product-title { font-size: 28px; }
  .hero-card--order .product-title { font-size: 24px; }
  .title { font-size: 22px; }
  .discount-badge { width: 80px; height: 80px; }
  .discount-badge b { font-size: 23px; }
  .old-price strong { font-size: 20px; }
  .old-price small { font-size: 12px; }
  .new-price strong { font-size: 40px; }
  .new-price small { font-size: 18px; }
  .new-price span { font-size: 11px; padding: 3px 8px; }
  .pricing-block span { font-size: 11px; }
  .countdown__item { min-width: 56px; }
  .countdown__value { font-size: 24px; }
  .big-button { font-size: 17px; min-height: 58px; }
  .feature-item-wrap { gap: 10px; }
  .feature-title { font-size: 14.5px; }
  .feature-text p { font-size: 12.5px; }
  .characteristics__list li { font-size: 14px; }
}

@media (max-width: 330px) {
  .feature-item-wrap { grid-template-columns: 1fr; }
  .new-price strong { font-size: 36px; }
}

@media (min-width: 481px) {
  body { padding: 0; }
  .content-wrap { box-shadow: 0 0 60px rgba(0,0,0,.45); }
}

/* скидання базових декорацій теми */
.title::before { display: none !important; content: none !important; }
.swiper-reviews { overflow: hidden; width: 100%; }
.swiper-reviews .swiper-slide { width: 100%; }
