/* Цвета и размеры — меняйте здесь, чтобы поменять весь сайт */
:root {
  --text: #1c1917;
  --muted: #78716c;
  --body: #44403c;
  --bg: #ffffff;
  --bg-soft: #faf6f1;
  --line: #ece5dc;
  --accent: #8b5e3c;
  --accent-dark: #6f4a2f;
  --accent-soft: #f6ede4;
  --green: #15803d;
  --radius: 12px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { max-width: 100%; }

/* Кнопки */
.btn {
  display: inline-block; background: var(--accent); color: #fff; padding: 12px 28px;
  border-radius: 8px; font-weight: 600; font-size: 14px; transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn--dark { background: var(--text); }
.btn--wide { display: block; text-align: center; margin-top: 24px; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; }
.btn--full { width: 100%; }
.btn--outline { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn--outline:hover { background: var(--bg-soft); }
.icon-btn { font-size: 20px; padding: 6px; }
.ico { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent); }

/* Полоска акций */
.promo-bar { background: var(--accent-dark); color: #fff; font-size: 13px; text-align: center; height: 36px; position: relative; overflow: hidden; }
.promo-bar__item { position: absolute; inset: 0; line-height: 36px; opacity: 0; transition: opacity .5s; }
.promo-bar__item.active { opacity: 1; }

/* Шапка */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 32px; padding: 18px 48px;
}
.logo { font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.nav { display: flex; gap: 28px; margin: 0 auto; font-size: 14px; }
.nav a:hover, .nav__accent { color: var(--accent); font-weight: 600; }
.nav__close, .burger { display: none; }
.cart-btn { position: relative; display: flex; }
.cart-btn .ico { width: 26px; height: 26px; color: var(--text); }
.cart-count {
  position: absolute; top: -2px; right: -6px; background: var(--accent); color: #fff;
  font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center;
}

/* Баннер: фото img/hero.jpg, пока его нет — тёплый градиент */
.hero {
  min-height: 460px; display: flex; align-items: center; padding: 48px 8%;
  background: url(img/hero.jpg) center / cover, linear-gradient(100deg, #f3e9dd 0%, #e8d6c3 55%, #d9bfa4 100%);
}
.hero__text { max-width: 480px; }
.hero h1 { font-size: 40px; line-height: 1.2; font-weight: 600; margin-bottom: 16px; }
.hero p { margin-bottom: 28px; color: var(--body); }

/* Секции */
.section { max-width: var(--max); margin: 0 auto; padding: 80px 24px; }
.section h2, .block h2 { font-size: 30px; font-weight: 600; line-height: 1.25; }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 14px; margin: 8px 0 32px; max-width: 520px; }
.lead.center { margin-left: auto; margin-right: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: 11px; font-weight: 600; color: var(--accent); text-align: center; margin-bottom: 10px; }
.eyebrow.left { text-align: left; }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }

/* 3 шага */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.step { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; }
.step__num { position: absolute; top: 20px; right: 20px; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; }
.step__icon { margin-bottom: 24px; }
.step__icon .ico { width: 40px; height: 40px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); }

/* Слайдеры */
.slider { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 8px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider-arrows { display: flex; gap: 8px; margin-bottom: 32px; }
.arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; }
.arrow:hover { background: var(--bg-soft); }

/* Карточка товара в списках */
.card { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; }
.card__media { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.card__img { aspect-ratio: 1; width: 100%; display: block; object-fit: cover; transition: transform .4s; }
.card__media:hover .card__img { transform: scale(1.04); }
.card__cat { font-size: 10px; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card__name { font-size: 14px; font-weight: 600; margin: 4px 0; }
.card__name:hover { color: var(--accent); }
.card__price { font-weight: 600; }
.old { font-size: 12px; color: var(--muted); margin-left: 6px; font-weight: 400; }
.card select { margin: 12px 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }
.card .btn { margin-top: auto; }
.card__spacer { margin-top: 12px; }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 6px; }

/* Заглушки вместо фото: значок свечи + подпись внизу */
.placeholder {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b89a7c' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M3 12h18a9 9 0 0 1-18 0z'/%3E%3Cpath d='M12 12V8'/%3E%3Cpath d='M12 7c-1-1.2-1-2.6 0-4.2 1 1.6 1 3 0 4.2z'/%3E%3C/svg%3E") center / 56px no-repeat,
    linear-gradient(160deg, #f6efe6, #eadccb);
  color: #a08770; font-size: 12px; letter-spacing: .05em;
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px;
  border-radius: var(--radius); width: 100%;
}
.cart-item__img.placeholder, .addon__img.placeholder, .pg__thumb .placeholder { background-size: 26px, auto; padding-bottom: 4px; font-size: 11px; }

/* Блок «без туннелирования» */
.feature { background: var(--bg-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 80px max(24px, calc((100% - var(--max)) / 2 + 24px)); }
.feature__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.feature h2 { font-size: 30px; font-weight: 600; line-height: 1.25; margin-bottom: 18px; }
.feature p { color: var(--body); font-size: 15px; }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 32px; }
.gallery img, .gallery .placeholder { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; border-radius: var(--radius); display: block; }

/* Подвал */
.footer { max-width: var(--max); margin: 0 auto; padding: 64px 24px 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; border-top: 1px solid var(--line); font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer h4 { font-weight: 600; margin-bottom: 4px; }
.footer__col a:hover { color: var(--accent); }

/* Общее для внутренних страниц */
section[id] { scroll-margin-top: 80px; }
.page { max-width: var(--max); margin: 0 auto; padding: 0 24px 80px; }
.page h1 { font-size: 32px; font-weight: 600; line-height: 1.25; }
.muted { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 28px; }
.crumbs a { text-decoration: underline; }
.crumbs a:hover { color: var(--text); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.grid .card { flex: none; }
.block { margin-top: 80px; }
.block .section__head { align-items: center; margin-bottom: 24px; }
.block .section__head .lead { margin-bottom: 0; }
.block .slider-arrows { margin-bottom: 0; }

/* Кнопки-«таблетки» (категории, ароматы) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 16px; border: 1px solid var(--line); border-radius: 20px; font-size: 13px; background: #fff; transition: all .2s; }
.chip:hover { border-color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Страница категории */
.cat-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.cat-bar select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: #fff; }

/* ===== Страница товара ===== */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.product__gallery { position: sticky; top: 90px; min-width: 0; }
.product__info { min-width: 0; }

/* Галерея: листаемая лента + стрелки + счётчик + миниатюры */
.pg { position: relative; margin-bottom: 12px; }
.pg__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.pg__track::-webkit-scrollbar { display: none; }
.pg__slide { flex: 0 0 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; border-radius: 0; }
.pg__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  background: #ffffffd9; font-size: 22px; line-height: 1; box-shadow: 0 2px 10px #0001;
}
.pg__arrow--prev { left: 12px; }
.pg__arrow--next { right: 12px; }
.pg__count { position: absolute; right: 12px; bottom: 12px; background: #ffffffd9; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 12px; }
.pg__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pg__thumb { border-radius: 10px; overflow: hidden; border: 2px solid transparent; aspect-ratio: 1; opacity: .7; transition: all .2s; }
.pg__thumb.active, .pg__thumb:hover { border-color: var(--accent); opacity: 1; }
.pg__thumb img, .pg__thumb .placeholder { width: 100%; height: 100%; object-fit: cover; display: flex; border-radius: 0; }

/* Информация о товаре */
.proof { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.stars { color: #d4a24c; letter-spacing: 1px; }
.product__info h1 { margin-bottom: 16px; }
.benefits { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.benefits li { display: flex; align-items: center; gap: 12px; }
.product__desc { margin-bottom: 24px; color: var(--body); }
.scent-info { background: var(--bg-soft); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 13px; color: var(--body); }
.scent-info__notes { font-weight: 600; color: var(--text); font-size: 14px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; margin-bottom: 10px; }
.label-row span { color: var(--muted); font-size: 12px; }
.scent-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.scent-grid .chip { border-radius: 8px; padding: 10px 6px; font-size: 12px; line-height: 1.3; }
.scent-grid .chip.active { background: var(--accent-soft); color: var(--accent-dark); border-color: var(--accent); font-weight: 600; }

.price-box { margin-bottom: 16px; }
.product__price { font-size: 30px; font-weight: 600; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.product__price .old { font-size: 16px; margin: 0; }
.badge--inline { position: static; font-size: 13px; }
.omnibus { font-size: 12px; color: var(--muted); margin-top: 4px; }

.product__buy { display: flex; gap: 12px; margin-bottom: 20px; }
.product__buy .btn { flex: 1; font-size: 15px; }
.qty--big { margin: 0; }
.qty--big button { width: 42px; height: 50px; font-size: 18px; }
.qty--big span { min-width: 30px; }

.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.perks div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }

.addons { display: grid; gap: 10px; }
.addons__title { font-size: 15px; }
.addons__title b { color: var(--accent-dark); }
.addons__title span { color: var(--muted); font-size: 13px; }
.addon { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s; }
.addon:hover, .addon:has(input:checked) { border-color: var(--accent); }
.addon:has(input:checked) { background: var(--accent-soft); }
.addon input { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.addon__img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.addon__text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.addon__text small { color: var(--muted); font-size: 12px; }
.addon__price { font-weight: 600; font-size: 14px; white-space: nowrap; }

/* «Co jest w zestawie?» */
.contents { margin-top: 80px; }
.contents h2 { font-size: 28px; font-weight: 600; margin-bottom: 28px; }
.contents__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.contents__item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contents__item .ico { width: 40px; height: 40px; }
.contents__label { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.contents__item h3 { font-size: 17px; font-weight: 600; margin: 2px 0 4px; }
.contents__item p:last-child { font-size: 14px; color: var(--body); }

/* Раскрывающиеся блоки */
.faq { margin-top: 48px; }
details { border-bottom: 1px solid var(--line); padding: 18px 0; font-size: 15px; }
details summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--accent); }
details[open] summary::after { content: '−'; }
details p, details ul { margin-top: 10px; color: var(--body); font-size: 14px; max-width: 760px; }
details ul { padding-left: 18px; }

/* «Zainspiruj się» */
.inspo__img { flex: 0 0 calc((100% - 100px) / 6); aspect-ratio: 9 / 14; object-fit: cover; border-radius: var(--radius); scroll-snap-align: start; }

/* Текстовые страницы */
.text-page { max-width: 760px; }
.text-page h1 { margin-bottom: 24px; }
.text-page h2 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.text-page p, .text-page li { color: var(--body); font-size: 15px; margin-bottom: 8px; }
.text-page ul, .text-page ol { padding-left: 20px; }
.note { background: #fef3c7; padding: 10px 14px; border-radius: 8px; font-size: 13px !important; }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.form { display: grid; gap: 12px; }
.form input, .form textarea, .promo input {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; width: 100%;
}

/* Промокод в корзине */
.promo { display: flex; gap: 8px; }
.promo .btn { padding: 10px 16px; }
.promo__msg { font-size: 12px; color: var(--accent); min-height: 18px; margin: 4px 0 8px; }
.cart__row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.cart__discount { color: var(--green); }

/* Корзина */
.overlay { position: fixed; inset: 0; background: #0006; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 30; }
.overlay.show { opacity: 1; pointer-events: auto; }
.cart {
  position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 100%; background: #fff; z-index: 31;
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s;
}
.cart.show { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cart__shipping { padding: 16px 24px; background: var(--bg-soft); font-size: 13px; }
.progress { height: 6px; background: var(--line); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.cart__items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.cart__empty { color: var(--muted); text-align: center; padding: 48px 0; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.cart-item__img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; display: block; }
.cart-item__name { font-weight: 600; }
.cart-item__variant { color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; }
.qty span { min-width: 22px; text-align: center; }
.cart-item__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; }
.cart-item__remove { color: var(--muted); font-size: 12px; text-decoration: underline; }
.cart__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }

/* Cookies и уведомление */
.cookies { position: fixed; left: 16px; bottom: 16px; width: 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: 0 8px 30px #0002; z-index: 25; font-size: 13px; }
.cookies p { margin-bottom: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 100px); background: var(--text); color: #fff; padding: 12px 22px; border-radius: 8px; font-size: 14px; transition: transform .3s; z-index: 40; }
.toast.show { transform: translate(-50%, 0); }

/* Планшет */
@media (max-width: 1000px) {
  .card { flex-basis: calc((100% - 40px) / 3); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { gap: 32px; }
  .inspo__img { flex-basis: calc((100% - 60px) / 4); }
}

/* Телефон */
@media (max-width: 760px) {
  .header { padding: 14px 16px; gap: 12px; }
  .logo { margin-right: auto; }
  .burger, .nav__close { display: block; }
  .nav {
    position: fixed; inset: 0; background: #fff; flex-direction: column; padding: 64px 24px; gap: 20px; font-size: 18px;
    transform: translateX(-100%); transition: transform .3s; z-index: 40;
  }
  .nav.show { transform: none; }
  .nav__close { position: absolute; top: 14px; right: 16px; }
  .hero { min-height: 420px; padding: 40px 16px; align-items: flex-start; background-position: 75% center, center; }
  .hero h1 { font-size: 28px; }
  .section { padding: 56px 16px; }
  .section h2, .feature h2, .block h2, .contents h2 { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
  .card { flex-basis: 70%; }
  .slider-arrows { display: none; }
  .feature { grid-template-columns: 1fr; gap: 28px; padding: 56px 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr 1fr; padding: 48px 16px 24px; }
  .footer__col:first-child { grid-column: 1 / -1; }
  .cookies { right: 16px; width: auto; }
  .page { padding: 0 16px 56px; }
  .page h1 { font-size: 24px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .grid select { font-size: 12px; padding: 8px; }
  .grid .btn--outline { padding: 10px 8px; font-size: 12px; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product__gallery { position: static; }
  .scent-grid { grid-template-columns: repeat(2, 1fr); }
  .product__price { font-size: 26px; }
  .contents, .block { margin-top: 56px; }
  .contents__grid { grid-template-columns: 1fr; }
  .inspo__img { flex-basis: 45%; }
  .contact { grid-template-columns: 1fr; }
}
