/* Kovdra — м'який світлий дизайн */
:root {
  --bg: #fbf7f1;
  --bg-alt: #f4ece1;
  --surface: #ffffff;
  --ink: #3a3430;
  --ink-soft: #6f655d;
  --ink-mute: #9a8f85;
  --line: #eadfd2;
  --sage: #8fb09f;
  --sage-deep: #5d8573;
  --sage-soft: #e3eee7;
  --peach: #f4d6c4;
  --peach-deep: #d98b64;
  --peach-soft: #fbece2;
  --rose: #b4594f;
  --rose-soft: #fbe9e6;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(120, 90, 60, .22);
  --shadow-sm: 0 2px 10px -4px rgba(120, 90, 60, .18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: 'Lora', Georgia, serif; font-weight: 600; line-height: 1.2; margin: 0; color: var(--ink); letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 4vw, 40px); }
.lead { margin-top: 14px; color: var(--ink-soft); font-size: 17px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1 'Manrope', sans-serif; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn--primary { background: var(--sage-deep); color: #fff; box-shadow: 0 10px 24px -10px rgba(93, 133, 115, .8); }
.btn--primary:hover { background: #4e7362; transform: translateY(-2px); }
.btn--ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--peach-soft); }
.btn--sm { padding: 11px 22px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Топ-бар */
.topbar { background: var(--peach); color: #6b4330; text-align: center; font-size: 14px; font-weight: 600; padding: 9px 16px; }
.topbar b { font-weight: 800; }
.tabular { font-variant-numeric: tabular-nums; }

/* Хедер */
.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 247, 241, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Lora', serif; font-weight: 700; font-size: 21px; }
.logo__mark { width: 34px; height: 34px; border-radius: 11px; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; }
.nav { display: none; gap: 30px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.nav a:hover { color: var(--sage-deep); }
@media (min-width: 820px) { .nav { display: flex; } }

/* Hero */
.hero { padding: 48px 0 72px; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); display: block; }
.hero h1 { font-size: clamp(32px, 5.2vw, 52px); margin: 20px 0 18px; }
.hero h1 em { font-style: italic; color: var(--sage-deep); }
.hero__text { color: var(--ink-soft); font-size: 17px; max-width: 480px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin: 28px 0 6px; }
.price__now { font-size: 40px; font-weight: 800; }
.price__old { font-size: 20px; color: var(--ink-mute); text-decoration: line-through; }
.price__badge { background: var(--rose-soft); color: var(--rose); font-weight: 800; font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.price__save { font-size: 14px; color: var(--sage-deep); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; max-width: 460px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.fact b { display: block; font-family: 'Lora', serif; font-size: 20px; color: var(--sage-deep); }
.fact span { font-size: 12px; color: var(--ink-soft); }

/* Галерея */
.gallery__main { position: relative; background: var(--surface); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery__tag { position: absolute; left: 16px; top: 16px; background: var(--rose); color: #fff; font-weight: 800; font-size: 14px; padding: 6px 14px; border-radius: 999px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface); opacity: .75; transition: .2s; }
.thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.is-active { border-color: var(--sage-deep); opacity: 1; }

/* Довіра */
.trust { padding: 0 0 20px; }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 820px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.trust__item svg { width: 22px; height: 22px; flex: none; color: var(--sage-deep); }

/* Картки переваг */
.grid-4 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card:nth-child(even) .card__icon { background: var(--peach-soft); color: var(--peach-deep); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 15px; }

/* Режими */
.modes { display: grid; gap: 20px; }
@media (min-width: 760px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.mode { border-radius: var(--radius); padding: 34px 30px; border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.mode--1 { background: linear-gradient(160deg, var(--sage-soft), var(--surface) 70%); }
.mode--2 { background: linear-gradient(160deg, var(--peach-soft), var(--surface) 70%); }
.mode__num { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 700 20px 'Lora', serif; color: #fff; background: var(--sage-deep); }
.mode--2 .mode__num { background: var(--peach-deep); }
.mode h3 { margin: 18px 0 6px; font-size: 22px; }
.mode__temp { font-family: 'Lora', serif; font-size: 34px; font-weight: 600; color: var(--sage-deep); }
.mode--2 .mode__temp { color: var(--peach-deep); }
.mode__meta { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.mode p.mode__note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

/* Розмір + де використовувати */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } }
.split__img img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 1/1; object-fit: cover; }
.checks { margin-top: 24px; display: grid; gap: 16px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .ico { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; margin-top: 2px; }
.checks .ico svg { width: 15px; height: 15px; }
.checks h4 { font: 700 16px 'Manrope', sans-serif; margin-bottom: 2px; }
.checks p { color: var(--ink-soft); font-size: 15px; }

/* Характеристики */
.specs { display: grid; gap: 28px; }
@media (min-width: 900px) { .specs { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 15px; }
.table th, .table td { text-align: left; padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child th, .table tr:last-child td { border-bottom: 0; }
.table th { width: 38%; font-weight: 600; color: var(--ink-soft); background: #fdfaf5; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.box h3 { font-size: 20px; margin-bottom: 14px; }
.box--warn { background: var(--peach-soft); border-color: #f0d3c1; margin-top: 18px; }
.box li { padding-left: 24px; position: relative; color: var(--ink-soft); font-size: 15px; margin-bottom: 8px; }
.box li::before { content: ''; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.box--warn li::before { background: var(--peach-deep); }

/* Кроки */
.steps { display: grid; gap: 18px; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step__n { font: 600 44px 'Lora', serif; color: var(--peach); line-height: 1; }
.step h3 { margin: 10px 0 6px; font-size: 19px; }
.step p { color: var(--ink-soft); font-size: 15px; }

/* Замовлення */
.order { display: grid; background: var(--surface); border-radius: 32px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .order { grid-template-columns: 2fr 3fr; } }
.order__offer { padding: 38px 32px; background: linear-gradient(160deg, var(--sage-soft), var(--peach-soft)); }
.order__offer h2 { font-size: 28px; }
.order__offer h2 span { color: var(--sage-deep); }
.order__offer img { margin-top: 22px; border-radius: 18px; aspect-ratio: 4/3; object-fit: cover; width: 100%; border: 1px solid rgba(255,255,255,.7); }
.timer-label { margin-top: 22px; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.timer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.timer__box { background: rgba(255,255,255,.8); border-radius: 14px; padding: 10px 4px; text-align: center; }
.timer__box span { display: block; font: 700 26px 'Lora', serif; font-variant-numeric: tabular-nums; }
.timer__box small { font-size: 11px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .08em; }
.order__form { padding: 38px 32px; }
@media (max-width: 520px) { .order__form, .order__offer { padding: 28px 20px; } }
.form { display: grid; gap: 16px; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: 2fr 1fr; }
.label { display: block; font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.input { width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fffdf9; color: var(--ink); font: 500 16px 'Manrope', sans-serif; transition: border-color .2s, box-shadow .2s; }
.input::placeholder { color: #b8aea4; }
.input:focus { outline: 0; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(143, 176, 159, .25); }
.input.is-invalid { border-color: var(--rose); background: var(--rose-soft); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239a8f85' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.error-text { margin-top: 5px; font-size: 12.5px; color: var(--rose); font-weight: 600; }
.alert { border-radius: 14px; background: var(--rose-soft); border: 1px solid #efc7c2; color: var(--rose); padding: 12px 16px; font-size: 14px; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.qty-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.qty { display: inline-flex; align-items: center; height: 50px; border: 1.5px solid var(--line); border-radius: 14px; background: #fffdf9; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 22px; color: var(--sage-deep); cursor: pointer; }
.qty input { width: 40px; border: 0; background: none; text-align: center; font: 700 17px 'Manrope', sans-serif; color: var(--ink); -moz-appearance: textfield; outline: 0; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.total { text-align: right; }
.total b { display: block; font-size: 26px; font-weight: 800; line-height: 50px; white-space: nowrap; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--ink-mute); text-align: center; }
.secure svg { width: 15px; height: 15px; flex: none; }
.success { text-align: center; padding: 36px 10px; }
.success__ico { width: 72px; height: 72px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-deep); display: grid; place-items: center; margin: 0 auto 22px; }
.success__ico svg { width: 34px; height: 34px; }
.success h3 { font-size: 26px; }
.success p { margin: 12px auto 26px; color: var(--ink-soft); max-width: 340px; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 22px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; flex: none; color: var(--sage-deep); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

/* Футер */
.footer { border-top: 1px solid var(--line); padding: 34px 0 100px; color: var(--ink-mute); font-size: 14px; }
@media (min-width: 820px) { .footer { padding-bottom: 34px; } }
.footer__in { display: flex; flex-direction: column; gap: 10px; justify-content: space-between; }
@media (min-width: 640px) { .footer__in { flex-direction: row; } }

/* Sticky CTA (мобільний) */
.sticky { position: fixed; inset: auto 0 0 0; z-index: 45; padding: 10px 14px; background: rgba(251, 247, 241, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.sticky.is-visible { transform: none; }
@media (min-width: 820px) { .sticky { display: none; } }

/* Каталог (index) */
.catalog { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .catalog { gap: 28px; } }
.pcard .btn { margin-top: auto; }
@media (max-width: 559px) {
  .pcard { padding: 10px; border-radius: 20px; }
  .pcard__img { border-radius: 14px; }
  .pcard h2 { font-size: 15px; margin: 12px 4px 4px; }
  .pcard p { font-size: 12.5px; margin: 0 4px; }
  .pcard .price { margin: 10px 4px 12px; gap: 6px; }
  .pcard .price__now { font-size: 18px; }
  .pcard .price__old { font-size: 13px; }
  .pcard .btn { padding: 12px 10px; font-size: 14px; }
  .pcard__tag { font-size: 11px; padding: 3px 9px; left: 8px; top: 8px; }
}
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard__img { position: relative; display: block; border-radius: 18px; overflow: hidden; }
.pcard__img img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard__img img { transform: scale(1.04); }
.pcard__tag { position: absolute; left: 12px; top: 12px; background: var(--rose); color: #fff; font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.pcard h2 { font-size: 22px; margin: 18px 6px 4px; }
.pcard p { color: var(--ink-soft); font-size: 14.5px; margin: 0 6px; flex: 1; }
.pcard .price { margin: 16px 6px 14px; gap: 10px; }
.pcard .price__now { font-size: 28px; }
.pcard .price__old { font-size: 17px; }

/* Поява при скролі */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
