/* ===========================================================================
   Полынь — мыловарня и натуральная косметика. Дизайн-система одного лендинга.
   Пастель: пудровый розово-бежевый, шалфейный, песочный. Тёплый молочный фон.
   Утончённый сериф (заголовки) + лёгкий гротеск (текст). Только локальные файлы.
   =========================================================================== */

:root {
  /* цвет — пастель */
  --milk:      #f7f3ee;   /* основной молочный фон */
  --milk-2:    #efe7dc;   /* кремовые секции */
  --sand:      #e7dccb;   /* песочные плашки, линии */
  --powder:    #d9b8a8;   /* пудрово-розовый акцент */
  --powder-dk: #b88a76;   /* затемнённый пудровый — ховеры */
  --sage:      #8b9a7a;   /* шалфейный — второй акцент */
  --sage-dk:   #5f6e50;   /* глубокий шалфей — тёмные секции */
  --sage-ink:  #424b37;   /* почти-чёрный шалфей — текст на тёмном */
  --ink:       #3b352e;   /* основной текст */
  --ink-soft:  #6b6258;   /* вторичный текст */
  --muted:     #9a8f80;   /* подписи */
  --line:      #ddd0bf;   /* разделители */

  /* типографика */
  --serif: "Cambria", "Hoefler Text", "Constantia", "Georgia", "Times New Roman", serif;
  --sans:  "Avenir Next", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* шкала отступов */
  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-5: 48px; --s-6: 72px; --s-7: 104px; --s-8: 140px;

  --maxw: 1200px;
  --radius: 2px;        /* почти острые углы — аптекарская строгость */
  --radius-pill: 999px;
  --shadow:    0 1px 2px rgba(59,53,46,.04), 0 10px 30px rgba(59,53,46,.06);
  --shadow-lg: 0 22px 60px rgba(59,53,46,.13);
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--milk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--serif); font-weight: 600; line-height: 1.14;
  letter-spacing: -.005em; margin: 0; color: var(--ink);
}
p { margin: 0 0 var(--s-2); }
dl, dd { margin: 0; }
ol, ul { margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-4); }
.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
  background: var(--sage-dk); color: var(--milk); padding: 10px 16px; border-radius: var(--radius); z-index: 999;
}

/* ---------- общие секции ---------- */
.section { padding-block: var(--s-7); }
.section--cream  { background: var(--milk-2); }
.section--accent { background: var(--sage-dk); color: #ecefe4; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--powder-dk);
  margin: 0 0 var(--s-2);
}
.eyebrow--light { color: #cdb6a6; }

.section-head { max-width: 620px; margin: 0 auto var(--s-6); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; max-width: 520px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: var(--s-2); }
.section-head__lead { color: var(--ink-soft); font-size: 18px; margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sage); color: #fff;
  padding: 14px 28px; border: 1px solid var(--sage);
  border-radius: var(--radius-pill); font-weight: 600; font-size: 14.5px;
  letter-spacing: .02em;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--sage-dk); border-color: var(--sage-dk); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--sage-dk); outline-offset: 3px; }
.btn--small { padding: 9px 20px; font-size: 13.5px; }
.btn--ghost { background: transparent; color: var(--sage-dk); border-color: var(--line); }
.btn--ghost:hover { background: rgba(139,154,122,.12); color: var(--sage-dk); border-color: var(--sage); }
.btn--solid-light { background: var(--powder); color: #3b2e28; border-color: var(--powder); }
.btn--solid-light:hover { background: #e8cabb; border-color: #e8cabb; color: #3b2e28; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,238,.86);
  backdrop-filter: saturate(130%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(247,243,238,.95);
  border-bottom-color: var(--line);
  box-shadow: 0 2px 18px rgba(59,53,46,.05);
}
.header-inner { display: flex; align-items: center; gap: var(--s-3); height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); }
.brand__mark { color: var(--sage); flex: none; }
.brand__name { letter-spacing: .02em; }

.nav { display: flex; gap: var(--s-4); margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); position: relative; padding: 6px 0; transition: color .2s var(--ease); }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--powder-dk);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav-cta { flex: none; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }

/* ---------- hero — асимметричный, текст слева, фото справа ---------- */
.hero { padding-block: var(--s-7) var(--s-8); background:
  radial-gradient(120% 90% at 88% 10%, rgba(217,184,168,.20) 0%, rgba(217,184,168,0) 55%),
  radial-gradient(90% 80% at 0% 100%, rgba(139,154,122,.14) 0%, rgba(139,154,122,0) 60%),
  var(--milk);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: var(--s-6); align-items: center; }
.hero__title { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.04; margin-bottom: var(--s-3); }
.hero__lead { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-soft); max-width: 30em; margin-bottom: var(--s-4); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.hero__meta { list-style: none; display: flex; gap: var(--s-5); padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: var(--s-4); }
.hero__meta li { display: flex; flex-direction: column; }
.hero__meta b { font-family: var(--serif); font-size: 34px; color: var(--sage-dk); line-height: 1; }
.hero__meta span { font-size: 13px; color: var(--muted); margin-top: 7px; max-width: 12ch; }
.hero__media { margin: 0; position: relative; }
.hero__media img { border-radius: 140px 140px 8px 8px; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; object-fit: cover; }
.hero__media figcaption { font-size: 12.5px; color: var(--muted); margin-top: 14px; font-style: italic; text-align: center; }

/* ---------- philosophy ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.pillar { padding: var(--s-4) var(--s-3) var(--s-3); border-top: 2px solid var(--powder); }
.pillar__no { font-family: var(--serif); font-size: 14px; color: var(--powder-dk); letter-spacing: .14em; }
.pillar h3 { font-size: 22px; margin: var(--s-2) 0 var(--s-1); }
.pillar p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.philosophy__quote {
  margin: var(--s-7) auto 0; max-width: 760px; text-align: center;
  border: 0; padding: 0;
}
.philosophy__quote blockquote {
  font-family: var(--serif); font-size: clamp(21px, 2.8vw, 31px); line-height: 1.32;
  font-style: italic; color: var(--ink); margin: 0 0 var(--s-3);
}
.philosophy__quote figcaption { font-size: 14px; letter-spacing: .04em; color: var(--powder-dk); }

/* ---------- shelf / products ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-3); }
.product {
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--powder); }
.product__media { overflow: hidden; aspect-ratio: 3/2; background: var(--sand); }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { padding: var(--s-3); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.product__top h3 { font-size: 19px; }
.price { font-family: var(--serif); font-size: 17px; color: var(--sage-dk); white-space: nowrap; }
.product__desc { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.product__comp { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 0; flex: 1; }
.product__comp span { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px; color: var(--powder-dk); margin-bottom: 3px; }
.badge {
  align-self: flex-start; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--sage-dk); background: rgba(139,154,122,.14); padding: 5px 12px; border-radius: var(--radius-pill);
}
.shelf__note { text-align: center; color: var(--ink-soft); max-width: 640px; margin: var(--s-5) auto 0; font-size: 15.5px; }

/* ---------- ingredients — dl поверх ботанического фото ---------- */
.ingredients { position: relative; background-size: cover; background-position: center; color: #f4efe7; padding-block: var(--s-7); }
.ingredients__veil { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(66,75,55,.93) 0%, rgba(66,75,55,.78) 50%, rgba(95,110,80,.66) 100%); }
.ingredients__inner { position: relative; display: grid; grid-template-columns: .92fr 1.08fr; gap: var(--s-6); align-items: start; }
.ingredients__intro h2 { color: #f7f3ec; font-size: clamp(27px, 3.6vw, 40px); margin-bottom: var(--s-2); }
.ingredients__intro p { color: #d6ddca; margin: 0; }
.ingredient-list { display: grid; gap: 0; }
.ingredient { padding: var(--s-3) 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.ingredient:first-child { padding-top: 0; }
.ingredient:last-child { border-bottom: 0; }
.ingredient dt { font-family: var(--serif); font-size: 20px; color: #f7f3ec; margin-bottom: 5px; }
.ingredient dd { color: #d2dac6; font-size: 15px; line-height: 1.6; }

/* ---------- ritual — 2 колонки: текст + нумерованные шаги ---------- */
.ritual__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: var(--s-6); align-items: start; }
.ritual__text h2 { font-size: clamp(27px, 3.4vw, 38px); margin-bottom: var(--s-2); }
.ritual__text p { color: var(--ink-soft); margin-bottom: var(--s-4); }
.steps { list-style: none; padding: 0; display: grid; gap: var(--s-2); }
.step { display: flex; gap: var(--s-3); align-items: flex-start; background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3); transition: border-color .25s var(--ease), transform .25s var(--ease); }
.step:hover { border-color: var(--powder); transform: translateX(4px); }
.step__no {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--serif); font-size: 19px;
  color: #fff; background: var(--powder);
}
.step__body h3 { font-size: 18px; margin-bottom: 4px; }
.step__body p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }

/* ---------- batches / subscription ---------- */
.batches__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-6); align-items: center; }
.batches__text h2 { color: #f6f4ee; font-size: clamp(27px, 3.4vw, 40px); margin-bottom: var(--s-2); }
.batches__text > p { color: #cfd6c5; }
.batches__list { list-style: none; padding: 0; margin: var(--s-3) 0 0; }
.batches__list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: #dde2d4; font-size: 15px; }
.batches__list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--powder); }
.subscribe { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: var(--s-4); }
.subscribe__title { font-size: 22px; color: #f6f4ee; margin-bottom: var(--s-3); }
.subscribe__row { display: flex; gap: 10px; }
.subscribe input {
  flex: 1; min-width: 0; padding: 14px 16px; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.95); color: #3b352e; font-size: 16px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.subscribe input::placeholder { color: #9a8f80; }
.subscribe input:focus { outline: none; border-color: var(--powder); box-shadow: 0 0 0 3px rgba(217,184,168,.4); }
.subscribe input.invalid { border-color: #d98b6f; box-shadow: 0 0 0 3px rgba(217,139,111,.4); }
.subscribe .btn { flex: none; }
.subscribe__hint { font-size: 12.5px; color: #b9c1ad; margin: 14px 0 0; }
.subscribe__error { font-size: 14px; color: #f1c4ab; margin: 14px 0 0; }
.subscribe__ok { font-size: 15px; color: #cfe6c4; margin: 14px 0 0; }

/* ---------- reviews ---------- */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.review { margin: 0; background: var(--milk-2); border-radius: var(--radius); padding: var(--s-4); position: relative; }
.review::before { content: "“"; position: absolute; top: 10px; left: 18px; font-family: var(--serif); font-size: 64px; line-height: 1; color: var(--powder); opacity: .55; }
.review blockquote { margin: var(--s-3) 0 var(--s-3); font-size: 16px; line-height: 1.6; color: var(--ink); position: relative; }
.review figcaption { font-size: 13.5px; color: var(--muted); letter-spacing: .02em; }

/* ---------- faq ---------- */
.faq__inner { display: grid; grid-template-columns: .7fr 1.3fr; gap: var(--s-6); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); padding: var(--s-2) 0; }
.faq__list summary {
  list-style: none; cursor: pointer; font-family: var(--serif); font-size: 19px;
  padding: 10px 40px 10px 0; position: relative; transition: color .2s var(--ease);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 13px; height: 13px;
  margin-top: -6px;
  background:
    linear-gradient(var(--powder-dk), var(--powder-dk)) center/13px 1.5px no-repeat,
    linear-gradient(var(--powder-dk), var(--powder-dk)) center/1.5px 13px no-repeat;
  transition: transform .28s var(--ease);
}
.faq__list details[open] summary::after { transform: rotate(135deg); }
.faq__list summary:hover { color: var(--powder-dk); }
.faq__list details p { color: var(--ink-soft); padding: 0 40px 10px 0; margin: 0; font-size: 15.5px; }

/* ---------- footer ---------- */
.site-footer { background: var(--sage-ink); color: #c9d0bd; padding-top: var(--s-7); }
.footer__grid { display: grid; grid-template-columns: 1.7fr 1fr 1.1fr 1fr; gap: var(--s-5); padding-bottom: var(--s-6); }
.brand--light, .brand--light .brand__name { color: #f1efe7; }
.brand--light .brand__mark { color: var(--powder); }
.footer__brand p { margin-top: var(--s-2); font-size: 14.5px; max-width: 30ch; color: #a9b29a; }
.footer__col h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; color: #9aa388; margin: 0 0 var(--s-2); }
.footer__col a, .footer__col p { display: block; font-size: 14.5px; color: #c9d0bd; margin: 0 0 9px; transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--powder); }
.footer__social a { display: inline; }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--s-2);
  border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-3) var(--s-4); font-size: 13.5px; color: #91997f;
}
.footer__bottom a:hover { color: var(--powder); }

/* ---------- reveal-анимация ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .hero__grid, .ingredients__inner, .ritual__grid, .batches__inner, .faq__inner { grid-template-columns: 1fr; gap: var(--s-5); }
  .hero__media { order: -1; max-width: 460px; }
  .hero__media img { aspect-ratio: 16/11; border-radius: 90px 90px 6px 6px; }
  .pillars { grid-template-columns: 1fr; gap: var(--s-3); }
  .products { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s-4); }
  .faq__inner { gap: var(--s-3); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding-block: var(--s-6); }
  .wrap { padding-inline: var(--s-3); }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--milk); border-bottom: 1px solid var(--line);
    padding: var(--s-2) var(--s-3) var(--s-3); transform: translateY(-135%);
    transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); margin: 0;
  }
  .site-header.menu-open .nav { transform: translateY(0); }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a:last-child { border-bottom: 0; }
  .nav a::after { display: none; }
  .site-header.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .burger span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero__meta { gap: var(--s-4); }
  .hero__meta b { font-size: 28px; }
  .products { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .subscribe__row { flex-direction: column; }
  .subscribe .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
