/* ==========================================
   Zepline ZP-00359 — style.css
   Секції нижче першого екрана + службові сторінки.
   База, шапка, hero, CTA і sticky — в assets/critical.css (на index.php вбудований інлайн).
   Тепла кухонна палітра: кремовий фон, оливково-зелений акцент,
   теракотовий другорядний акцент. Індивідуально під hero-фото цього товару.
   ========================================== */

/* ===== Sections ===== */
section { padding: 44px 0; }
#rezhymy, #harakterystyky { scroll-margin-top: 64px; }
#order { scroll-margin-top: 50px; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { margin-bottom: 26px; }
h2 { font-size: clamp(23px, 6vw, 27px); line-height: 1.18; text-wrap: balance; }

/* ===== Hover-підйом карток ===== */
.lift { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
@media (hover: hover) {
  .lift:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(108, 122, 76, 0.4); }
}
.lift:active { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ===== Ken Burns на фото секцій (працює лише в зоні видимості) ===== */
.kb-a img { transform-origin: 50% 45%; animation: kenburnsA 10s ease-in-out infinite alternate paused; }
.kb-b img { transform-origin: 65% 40%; animation: kenburnsB 11s ease-in-out infinite alternate paused; }
.kb-c img { transform-origin: 60% 55%; animation: kenburnsC 9.5s ease-in-out infinite alternate paused; }
.kb.in-view img { animation-play-state: running; }
@keyframes kenburnsA { from { transform: scale(1); } to { transform: scale(1.05) translate(0.5%, -0.5%); } }
@keyframes kenburnsB { from { transform: scale(1.05) translate(-0.5%, 0); } to { transform: scale(1); } }
@keyframes kenburnsC { from { transform: scale(1); } to { transform: scale(1.055) translate(-0.4%, -0.6%); } }

/* ===== Steps ===== */
.steps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.step-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-size: 17px; margin-bottom: 6px; }
.step-card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.stat-chips {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.stat-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--olive-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}
.stat-chip .icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--olive-dark);
}
.stat-chip b { display: block; font-size: 16px; color: var(--olive-dark); }
.stat-chip span span { display: block; font-size: 12.5px; color: var(--ink-soft); }
.stat-chip > span:last-child { text-align: left; }

/* ===== Split (фото + текст) ===== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

/* ===== Режими — інтерактивні таби ===== */
.modes { margin-top: 20px; }
.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.mode-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 12px;
  background: var(--cream);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.mode-tab .mode-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--olive-soft);
  color: var(--olive-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) {
  .mode-tab:hover { border-color: var(--olive); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
}
.mode-tab:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
.mode-tab.is-active {
  background: var(--olive);
  border-color: var(--olive);
  color: #fff;
  box-shadow: 0 8px 20px rgba(82, 96, 58, 0.28);
}
.mode-tab.is-active .mode-ico { background: rgba(255, 255, 255, 0.18); color: #fff; transform: scale(1.06); }

.mode-panels { margin-top: 10px; }
.mode-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-top: 10px;
}
/* з JS усі панелі лежать в одній клітинці сітки — висота блоку не стрибає при перемиканні */
.js .mode-panels { display: grid; grid-template-columns: minmax(0, 1fr); }
.js .mode-panel { grid-area: 1 / 1; margin-top: 0; visibility: hidden; opacity: 0; }
.js .mode-panel.is-active { visibility: visible; opacity: 1; animation: panelIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.mode-panel-ico {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--olive);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(82, 96, 58, 0.25);
}
.js .mode-panel.is-active .mode-panel-ico { animation: icoPop 0.55s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
.mode-panel h3 { font-size: 17.5px; margin-bottom: 6px; }
.mode-panel p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.mode-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.mode-chips li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes icoPop { 0% { transform: scale(0.5) rotate(-14deg); } 100% { transform: none; } }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.tag-row span {
  background: var(--terracotta-soft);
  color: var(--terracotta-deep);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 999px;
}

/* ===== Komplekt ===== */
.checklist { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.checklist li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.checklist .check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist b { display: block; font-size: 15px; }
.checklist div span { display: block; font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.note-card {
  margin-top: 16px;
  background: var(--olive-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--olive-dark);
  font-weight: 600;
}

/* ===== Характеристики: лічильники + таблиця ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.stat {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--olive-dark);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat b small { margin-left: 4px; font-size: 0.47em; font-weight: 700; letter-spacing: 0; color: var(--terracotta-deep); }
.stat > span {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.spec-table {
  margin-top: 16px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spec-table div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
.spec-table div:last-child { border-bottom: none; }
.spec-table b { font-weight: 500; color: var(--ink-soft); min-width: 0; flex-shrink: 0; text-align: left; }
.spec-table span { font-weight: 700; text-align: right; min-width: 0; }

/* ===== Довіра ===== */
.trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.trust-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.trust-ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--olive-soft);
  color: var(--olive-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-alt .trust-card { background: var(--cream); }
.trust-card:nth-child(even) .trust-ico { background: var(--terracotta-soft); color: var(--terracotta-deep); }
.trust-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.trust-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }
.seller-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 18px; margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }
.seller-line p { margin: 0; width: 100%; }
.seller-line a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--olive-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Відгуки — карусель на scroll-snap ===== */
#reviews .section-head { margin-bottom: 18px; }
.reviews-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 6px 9% 22px; /* сусідні картки визирають з боків — видно, що можна гортати */
}
.reviews-track::-webkit-scrollbar { display: none; }
.reviews-track:focus-visible { outline: 3px solid var(--terracotta); outline-offset: -3px; }
.review-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: center;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
  aspect-ratio: 1 / 1;
}
.review-slide img { width: 100%; }
.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.reviews-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--olive-dark);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.reviews-prev svg { transform: rotate(180deg); }
.reviews-btn:active { transform: scale(0.94); background: var(--olive); color: #fff; }
.reviews-btn:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; }
@media (hover: hover) {
  .reviews-btn:hover { background: var(--olive); color: #fff; }
}
.reviews-dots { display: flex; align-items: center; gap: 7px; }
.reviews-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(108, 122, 76, 0.28);
  transition: width 0.3s ease, background 0.3s ease;
}
.reviews-dots span.is-active { width: 22px; background: var(--olive); }

/* ===== Order form ===== */
#order { padding-top: 12px; }
.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px 22px;
  box-shadow: var(--shadow);
}
.form-card .kicker { margin-bottom: 6px; }
.form-card h2 { font-size: 22px; }
.form-card .kb { margin-top: 14px; border-radius: 14px; box-shadow: none; }
.form-card .price-row { margin-top: 14px; }
.form-card form { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form-card label { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.form-card input[type="text"],
.form-card input[type="tel"] {
  display: block;
  width: 100%;
  min-height: 52px;
  margin-top: 6px;
  padding: 13px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 16px; /* ≥16px — iOS не масштабує сторінку при фокусі */
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-card input:focus { outline: none; border-color: var(--olive); box-shadow: 0 0 0 3px rgba(108, 122, 76, 0.22); }
.input-error { border-color: var(--terracotta-deep) !important; box-shadow: 0 0 0 3px rgba(200, 117, 79, 0.25) !important; }
.form-card .cta { margin-top: 4px; }

.order-flow {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  counter-reset: flow;
}
.order-flow li {
  counter-increment: flow;
  background: var(--olive-soft);
  border-radius: var(--radius-sm);
  padding: 10px 6px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.order-flow li::before {
  content: counter(flow);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 auto 6px;
  border-radius: 50%;
  background: var(--olive);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.form-note { margin-top: 12px; font-size: 12.5px; color: var(--ink-soft); }
.form-note a {
  display: inline-block;
  padding: 14px 2px;
  margin: -14px -2px;
  color: var(--olive-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Footer ===== */
footer {
  padding: 36px 16px calc(104px + env(safe-area-inset-bottom, 0px));
  color: var(--ink-soft);
  font-size: 13.5px;
}
footer .brand { margin-bottom: 4px; }
footer p { margin: 8px 0; }
footer > a:not(.brand) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--olive-dark); }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 6px;
  margin: 8px 0;
}
.footer-legal a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-weight: 600;
  color: var(--ink-soft);
}
.footer-legal a:hover { color: var(--olive-dark); }
.footer-copy { font-size: 12px; }

/* ===== Legal pages ===== */
.legal-page { padding: 36px 16px 48px; }
.legal-page h1 { font-size: 28px; margin-bottom: 20px; }
.legal-page h2 { font-size: 19px; margin: 28px 0 12px; text-align: left; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--ink-soft); line-height: 1.7; text-align: left; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page li { margin-bottom: 6px; }
.legal-page a { color: var(--olive-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.page-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-dark); }

/* ===== Thank you page ===== */
.thankyou { display: flex; align-items: center; justify-content: center; min-height: 70vh; padding: 40px 16px; }
.thankyou-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 22px;
  box-shadow: var(--shadow);
}
.product-index { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-dark); }
.thankyou-card h1 { font-size: 26px; margin: 14px 0 10px; }
.thankyou-card p { color: var(--ink-soft); font-size: 15px; margin: 8px 0; }
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 20px;
  background: var(--olive);
  color: #fff;
  font-weight: 700;
  padding: 13px 22px;
  border-radius: 999px;
}
.primary-button:hover { background: var(--olive-dark); }

/* ===== Без анімацій для тих, хто їх вимкнув ===== */
@media (prefers-reduced-motion: reduce) {
  .kb img { animation: none !important; }
  .js .mode-panel.is-active, .js .mode-panel.is-active .mode-panel-ico { animation: none !important; }
  .lift, .mode-tab, .mode-tab .mode-ico, .reviews-btn, .reviews-dots span { transition: none; }
  .lift:hover, .lift:active, .mode-tab:hover { transform: none; }
}
