/* ============================================================
   ИП Захаров — doTERRA контент-платформа
   Прототип сайта · mid-fi · wellness editorial
   Дизайн-система: палитра, типографика, компоненты
   ============================================================ */

/* ---------- Шрифты ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Manrope:wght@400;500;600;700&display=swap');

/* ---------- Токены ---------- */
:root {
  /* wellness-палитра */
  --cream:      #F8F4EC;   /* основной фон */
  --cream-2:    #F1EADB;   /* секции-чередование */
  --paper:      #FFFFFF;   /* карточки */
  --sand:       #ECE3D2;   /* мягкие поверхности */
  --ink:        #2A332A;   /* основной текст (тёмно-зелёный) */
  --ink-soft:   #59614F;   /* вторичный текст */
  --muted:      #6E6F60;   /* подписи, мета (WCAG AA на креме) */
  --line:       #E3DACA;   /* границы */

  --sage:       #8B9B7E;   /* основной зелёный */
  --sage-deep:  #5E6E52;   /* тёмный шалфей (хедер/акценты) */
  --sage-soft:  #DCE3D2;   /* фон-плашки */

  --clay:       #C16D4F;   /* терракота — главный CTA */
  --clay-deep:  #A4542F;   /* hover CTA */
  --clay-soft:  #F0DDD0;   /* фон-плашки тёплые */

  --gold:       #C2A05B;   /* тонкий акцент */

  /* типографика */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'Manrope', -apple-system, 'Segoe UI', sans-serif;

  /* радиусы / тени / ритм */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --shadow:    0 6px 24px rgba(42,51,42,.07);
  --shadow-lg: 0 18px 48px rgba(42,51,42,.12);
  --maxw: 1180px;
  --gap: clamp(16px, 3vw, 32px);
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Типографика ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; letter-spacing: -.5px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.2rem; }
p { color: var(--ink-soft); }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--body);
  font-size: .8rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-flex; align-items: center; gap: .5em;
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--clay); display: inline-block; }

/* ---------- Раскладка ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(54px, 8vw, 110px); }
.section--alt { background: var(--cream-2); }
.section--sage { background: var(--sage-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 + p { margin-top: 14px; }

.grid { display: grid; gap: var(--gap); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: .98rem; border: 1.5px solid transparent;
  transition: .25s ease; text-align: center; line-height: 1.2;
}
.btn--clay { background: var(--clay); color: #fff; }
.btn--clay:hover { background: var(--clay-deep); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sage { background: var(--sage-deep); color: #fff; }
.btn--sage:hover { background: #4d5c43; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.btn--light { background: rgba(255,255,255,.9); color: var(--ink); }
.btn--light:hover { background: #fff; }
.btn--lg { padding: 17px 34px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

/* значок воронки */
.vk-dot, .tg-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.vk-dot { background: #2787F5; } .tg-dot { background: #2AABEE; }

/* ---------- Карточки ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: .25s ease; display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--sand); }
.card__media {
  aspect-ratio: 16/10; background: linear-gradient(135deg, var(--sage-soft), var(--sand));
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); position: relative;
}
.card__media .ph-ico { font-size: 2rem; opacity: .55; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--clay); }
.card__title { font-family: var(--display); font-size: 1.32rem; font-weight: 600; line-height: 1.15; }
.card__meta { margin-top: auto; font-size: .82rem; color: var(--muted); display: flex; gap: 14px; }

/* плашка-изображение (плейсхолдер картинки) */
.ph {
  background: linear-gradient(135deg, var(--sage-soft), var(--sand));
  border-radius: var(--r); display: flex; align-items: center; justify-content: center;
  color: var(--sage-deep); font-size: .85rem; text-align: center; padding: 20px;
  border: 1px dashed rgba(94,110,82,.35); min-height: 180px;
}
.ph--tall { min-height: 340px; }
.ph--round { border-radius: 50%; aspect-ratio: 1; min-height: 0; }
.ph__label { opacity: .7; font-weight: 500; }

/* ---------- Аннотации блоков (mid-fi) ---------- */
.anno {
  display: inline-block; font-family: var(--body);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-deep); background: var(--sage-soft);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 18px;
}
.anno::before { content: "▣ "; opacity: .6; }

/* ---------- Хедер ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,244,236,.86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 22px; height: 74px; }
.brand { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: -.2px; display: flex; align-items: center; gap: 9px; line-height: 1.05; flex: none; }
.brand .leaf { color: var(--sage-deep); font-size: 1.2rem; }
.brand small { font-family: var(--body); font-size: .58rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--muted); display: block; line-height: 1; margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 1.6vw, 26px); margin-left: auto; }
.nav__links a { font-size: .94rem; font-weight: 500; color: var(--ink-soft); transition: .2s; position: relative; white-space: nowrap; }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; background: var(--clay); border-radius: 2px; }
.nav__cta { display: flex; gap: 10px; align-items: center; flex: none; }
.nav__burger { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--ink); }
@media (max-width: 1140px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: block; margin-left: auto; }
}
/* мобильное меню */
.mobile-menu { display: none; position: fixed; inset: 74px 0 0; background: var(--cream); z-index: 49; padding: 28px; flex-direction: column; gap: 6px; overflow:auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 8px; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-family: var(--display); }
.mobile-menu .btn { margin-top: 16px; }

/* ---------- Хлебные крошки ---------- */
.crumbs { font-size: .85rem; color: var(--muted); padding-block: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--clay); }
.crumbs span { opacity: .5; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 30ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: nowrap; margin-top: 30px; }
.hero__cta .btn { white-space: nowrap; }
@media (max-width: 560px) { .hero__cta { flex-wrap: wrap; } }
.hero__media { position: relative; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .5; z-index: -1; }
.blob--1 { width: 320px; height: 320px; background: var(--sage-soft); top: -60px; right: -40px; }
.blob--2 { width: 260px; height: 260px; background: var(--clay-soft); bottom: -50px; left: -30px; }

/* двойной маршрут на главной */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }
.route {
  border-radius: var(--r-lg); padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 280px;
}
.route--women { background: linear-gradient(150deg, var(--clay-soft), var(--cream)); }
.route--exp   { background: linear-gradient(150deg, var(--sage-soft), var(--cream)); }
.route h3 { font-size: 1.7rem; }
.route .btn { margin-top: auto; align-self: flex-start; }
.route__num { font-family: var(--display); font-size: 3.4rem; color: rgba(42,51,42,.1); position: absolute; top: 14px; right: 24px; }

/* ---------- Список фич / шагов ---------- */
.steps { counter-reset: s; display: grid; gap: 20px; }
.step { display: flex; gap: 18px; align-items: flex-start; }
.step__n { counter-increment: s; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--sage-deep); color: #fff; display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; }
.step__n::before { content: counter(s); }

.feature { display: flex; flex-direction: column; gap: 10px; padding: 26px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.feature__ico { width: 46px; height: 46px; border-radius: 12px; background: var(--clay-soft); display: grid; place-items: center; font-size: 1.3rem; }

/* ---------- Рубрики (чипы/плитки) ---------- */
.topics { display: flex; flex-wrap: wrap; gap: 12px; }
.topic-chip { padding: 10px 18px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: .92rem; transition: .2s; }
.topic-chip:hover { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); }
.topic-tile { padding: 24px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: .2s; }
.topic-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.topic-tile .n { font-size: .8rem; color: var(--muted); }

/* ---------- Формы ---------- */
.form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); background: var(--cream); color: var(--ink); transition: .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); background: #fff; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }
.form__note { font-size: .8rem; color: var(--muted); }

/* ---------- Отзывы ---------- */
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.quote__text { font-family: var(--display); font-size: 1.35rem; line-height: 1.35; color: var(--ink); }
.quote__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__author .ph--round { width: 46px; height: 46px; min-height: 0; }
.stars { color: var(--gold); letter-spacing: 2px; }

/* ---------- Аккордеон FAQ ---------- */
.acc { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); overflow: hidden; }
.acc__item + .acc__item { border-top: 1px solid var(--line); }
.acc__q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 24px; font-size: 1.08rem; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.acc__q span { color: var(--clay); font-size: 1.4rem; transition: .25s; flex: none; }
.acc__item.open .acc__q span { transform: rotate(45deg); }
.acc__a { padding: 0 24px; max-height: 0; overflow: hidden; transition: .3s ease; }
.acc__item.open .acc__a { padding: 0 24px 22px; max-height: 400px; }
.acc__a p { color: var(--ink-soft); }

/* ---------- CTA полоса ---------- */
.cta-band { background: var(--sage-deep); color: #fff; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 64px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 52ch; margin: 14px auto 0; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Дисклеймер / служебное ---------- */
.disclaimer { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; font-size: .85rem; color: var(--muted); }

/* ---------- Футер ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-block: 56px 30px; margin-top: 40px; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand { color: #fff; }
.footer__brand p { color: rgba(255,255,255,.55); font-size: .9rem; margin-top: 14px; max-width: 36ch; }
.footer__col h4 { color: #fff; font-family: var(--body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; padding: 5px 0; font-size: .92rem; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; font-size: .8rem; transition: .2s; }
.footer__socials a:hover { background: var(--sage); border-color: var(--sage); }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; font-size: .78rem; color: rgba(255,255,255,.45); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
.footer__trademark { font-size: .76rem; color: rgba(255,255,255,.4); margin-top: 14px; line-height: 1.5; }

/* ---------- Pop-up пробников ---------- */
.popup-overlay { position: fixed; inset: 0; background: rgba(42,51,42,.5); backdrop-filter: blur(3px); z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.popup-overlay.show { display: flex; animation: fade .3s ease; }
.popup { background: var(--cream); border-radius: var(--r-lg); max-width: 440px; width: 100%; padding: 38px 34px; position: relative; text-align: center; box-shadow: var(--shadow-lg); }
.popup__close { position: absolute; top: 14px; right: 16px; background: none; border: 0; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.popup .ph--round { width: 64px; height: 64px; min-height: 0; margin: 0 auto 16px; }
.popup h3 { margin-bottom: 10px; }
.popup p { margin-bottom: 22px; }
.popup .stack { display: grid; gap: 10px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Прототип-лента (служебная) ---------- */
.proto-ribbon {
  background: var(--ink); color: #fff; font-size: .78rem; font-weight: 600;
  letter-spacing: .04em; padding: 7px 16px; display: flex; gap: 16px; align-items: center;
  justify-content: center; flex-wrap: wrap;
}
.proto-ribbon a { color: var(--gold); text-decoration: underline; text-underline-offset: 2px; }
.proto-ribbon .tag { background: var(--clay); padding: 2px 9px; border-radius: 999px; letter-spacing: .1em; }

/* ---------- Утилиты ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 26px; } .mt-l { margin-top: 44px; }
.muted { color: var(--muted); }
.stack-sm { display: grid; gap: 10px; }
.flex { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--line); border: 0; margin-block: clamp(40px,6vw,72px); }
.pill { display:inline-block; font-size:.78rem; font-weight:600; color:var(--sage-deep); background:var(--sage-soft); padding:5px 12px; border-radius:999px; }
.reveal { opacity: 0; transform: translateY(18px); animation: rise .7s ease forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Поиск в шапке ---------- */
.search-trigger {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--ink); font-size: 1rem; display: grid; place-items: center;
  transition: .2s;
}
.search-trigger:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.search-overlay {
  position: fixed; inset: 0; background: rgba(42,51,42,.45); backdrop-filter: blur(4px);
  z-index: 90; display: none; justify-content: center; align-items: flex-start; padding: 14vh 20px 20px;
}
.search-overlay.show { display: flex; animation: fade .25s ease; }
.search-panel { background: var(--cream); border-radius: var(--r-lg); max-width: 620px; width: 100%; padding: 26px; box-shadow: var(--shadow-lg); }
.search-panel form { display: flex; gap: 10px; }
.search-panel input { flex: 1; font-family: inherit; font-size: 1.1rem; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: #fff; color: var(--ink); }
.search-panel input:focus { outline: none; border-color: var(--sage); }
.search-panel .hints { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-panel .hints span { font-size: .82rem; color: var(--muted); }

/* ---------- Чекбокс согласия ---------- */
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); line-height: 1.45; }
.consent input { width: 19px; height: 19px; min-width: 19px; margin-top: 2px; accent-color: var(--clay); cursor: pointer; }
.consent a { color: var(--clay); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Тумблер аннотаций (служебный) ---------- */
.anno-toggle { background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; font: inherit; font-size: .72rem; font-weight: 600; padding: 3px 11px; border-radius: 999px; cursor: pointer; transition: .2s; }
.anno-toggle:hover { background: rgba(255,255,255,.12); }
.anno { display: none !important; } /* dev-аннотации прототипа скрыты на боевом сайте */

/* ---------- Кнопка «наверх» ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%; background: var(--sage-deep); color: #fff; border: 0; font-size: 1.2rem; display: none; place-items: center; z-index: 60; box-shadow: var(--shadow); opacity: .92; }
.to-top.show { display: grid; }
.to-top:hover { background: #4d5c43; }

/* ============================================================
   Юридические страницы (Политика, Согласие, Оферта, Соглашение)
   ============================================================ */
.legal-doc { max-width: 820px; margin-inline: auto; }
.legal-doc .doc-meta { font-size: .85rem; color: var(--muted); margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.legal-doc h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 34px 0 12px; }
.legal-doc h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-doc p { margin: 0 0 14px; line-height: 1.72; }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-left: 22px; }
.legal-doc li { margin-bottom: 8px; line-height: 1.7; }
.legal-doc .fillin { background: #fff4d6; color: #7a5a00; padding: 1px 7px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.legal-doc .toc { background: var(--cream-2, #f6f2ea); border-radius: var(--r-lg, 16px); padding: 20px 24px; margin: 0 0 34px; }
.legal-doc .toc ol { margin: 8px 0 0; }
.legal-doc .toc a { color: var(--clay); }
.legal-doc .note { background: var(--sage-soft, #eef1e8); border-left: 3px solid var(--sage-deep, #5a6b4d); padding: 14px 18px; border-radius: 8px; margin: 0 0 18px; font-size: .95rem; }

/* ---------- Cookie-баннер ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--sage-deep, #4d5c43); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.25)); padding: 18px 22px; display: none; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 860px; margin-inline: auto; }
.cookie-bar.show { display: flex; }
.cookie-bar p { margin: 0; font-size: .9rem; line-height: 1.55; flex: 1 1 340px; color: rgba(255,255,255,.9); }
.cookie-bar a { color: #fff; text-decoration: underline; }
.cookie-bar .cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
@media (max-width: 560px) { .cookie-bar { padding: 16px; } .cookie-bar .cookie-actions { width: 100%; } .cookie-bar .btn { flex: 1; } }

/* ---------- Реальные изображения (замена плейсхолдеров) ---------- */
.ph.media { padding: 0; border: 0; background: none; overflow: hidden; }
.ph.media img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; display: block; }
.card__media { overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* монограмма-аватар (пока нет реальных портретов) */
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--sage-soft); color: var(--sage-deep);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: .02em;
  border: 1px solid var(--line);
}
.avatar--lg { width: 120px; height: 120px; font-size: 2.4rem; margin: 0 auto 6px; }


/* ---------- Сетка масел (пробники) ---------- */
.oils-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .oils-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 620px) { .oils-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .oils-grid { grid-template-columns: repeat(2, 1fr); } }
.oil { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 8px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: .2s ease; }
.oil:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sand); }
.oil img { height: 116px; width: auto; max-width: 100%; object-fit: contain; }
.oil figcaption { font-size: .82rem; font-weight: 500; color: var(--ink-soft); text-align: center; }

/* ---------- Карусель фото ---------- */
.carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.carousel__track { display: flex; height: 100%; transition: transform .45s ease; }
.carousel__track img { min-width: 100%; width: 100%; height: 100%; object-fit: cover; flex: none; display: block; }
.carousel__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.85); color: var(--ink); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; transition: opacity .2s, background .2s; z-index: 2; box-shadow: var(--shadow);
}
.carousel:hover .carousel__nav, .carousel:focus-within .carousel__nav { opacity: 1; }
.carousel__nav:hover { background: #fff; }
.carousel__prev { left: 10px; } .carousel__next { right: 10px; }
.carousel__dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  z-index: 2; max-width: calc(100% - 24px); flex-wrap: nowrap;
  padding: 7px 11px; border-radius: 999px;
  background: rgba(42,51,42,.32); backdrop-filter: blur(6px);
}
.carousel__dots button { width: 7px; height: 7px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; flex: none; transition: width .25s ease, background .25s ease; }
.carousel__dots button:hover { background: rgba(255,255,255,.85); }
.carousel__dots button.active { background: #fff; width: 20px; border-radius: 999px; }
.carousel__dots--many { gap: 4px; padding: 6px 9px; }
.carousel__dots--many button { width: 5px; height: 5px; }
.carousel__dots--many button.active { width: 14px; }
/* высота высоких медиа-слотов под карусель/фото */
.ph--tall.media { height: clamp(360px, 42vw, 520px); min-height: 0; padding: 0; border: 0; }
@media (max-width: 620px) { .ph--tall.media { height: 300px; } }
