/* KREJÉ — общие стили */
:root {
  --cream: #F4F0E8;
  --paper: #FBF9F5;
  --ink: #1E1C1A;
  --graphite: #3A3734;
  --muted: #7D7770;
  --line: #DDD6C9;
  --accent: #A08A6B;
  --radius: 14px;
  --wrap: 1120px;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --logo: 'Marcellus', 'Cormorant Garamond', serif;
  --sans: 'Manrope', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(32px, 4.2vw, 46px); }
h3 { font-size: 26px; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--logo);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.lead { font-size: 18px; color: var(--graphite); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Заглушки, которые нужно заполнить до запуска */
.todo { background: #FFF2B8; outline: 1px dashed #C9A400; padding: 0 3px; border-radius: 3px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid var(--line);
}
/* Размытие вынесено в подложку: иначе мобильное меню (position: fixed) «запирается» внутри шапки */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo {
  font-family: var(--logo);
  font-size: 24px;
  letter-spacing: .32em;
  margin-right: -.32em;
  text-decoration: none;
}
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { text-decoration: none; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--accent); }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.burger span { display: block; height: 1.5px; background: var(--ink); margin: 7px 0; transition: transform .25s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  font: 500 15px/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--graphite); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-small { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ---------- Секции ---------- */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--cream); }
.section-head { margin-bottom: 48px; max-width: 640px; }

/* ---------- Главный экран ---------- */
.hero { padding-top: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 18px; }
.price-line { color: var(--muted); font-size: 14px; letter-spacing: .02em; }
.hero-visual {
  background: var(--cream);
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  display: grid; place-items: center;
  padding: 40px;
}
.hero-visual svg { width: min(62%, 280px); height: auto; filter: drop-shadow(0 22px 30px rgba(30, 28, 26, .14)); }

/* ---------- Сетки карточек ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.section-alt .card { background: var(--paper); }
.card .num { font-family: var(--logo); letter-spacing: .18em; font-size: 13px; color: var(--accent); margin-bottom: 14px; display: block; }
.card p:last-child { margin-bottom: 0; }
.card-soon { background: transparent !important; border-style: dashed; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 20px; }
.steps li::before { content: "0" counter(step); font-family: var(--logo); letter-spacing: .18em; font-size: 13px; color: var(--muted); display: block; margin-bottom: 10px; }
.steps strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 500; margin-bottom: 6px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }

/* ---------- Страница изделия ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.gallery-main { background: var(--cream); border-radius: 24px; aspect-ratio: 1; display: grid; place-items: center; padding: 40px; }
.gallery-main svg { width: min(55%, 260px); height: auto; filter: drop-shadow(0 22px 30px rgba(30, 28, 26, .14)); }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery-thumbs button {
  width: 84px; height: 84px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream); cursor: pointer; padding: 12px; display: grid; place-items: center;
}
.gallery-thumbs button[aria-pressed="true"] { border-color: var(--ink); }
.gallery-thumbs svg { height: 100%; width: auto; }
[data-view][hidden] { display: none; }

.product-info { position: sticky; top: 100px; }
.price { font-family: var(--serif); font-size: 34px; margin: 4px 0 28px; }
.label { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; }
.scent-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.scent-picker button {
  border: 1px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: 11px 20px; font: 500 15px var(--sans); color: var(--ink); cursor: pointer;
}
.scent-picker button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.scent-picker button:disabled { opacity: .45; cursor: default; }
.buy-note { font-size: 14px; color: var(--muted); margin-top: 14px; }

.specs { margin: 36px 0 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.ritual { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--muted); color: var(--muted); border-radius: 999px; padding: 6px 14px; }

/* ---------- Лист ожидания ---------- */
.waitlist { background: var(--ink); color: var(--paper); }
.waitlist .eyebrow { color: #B9B1A5; }
.waitlist .lead { color: #D8D1C5; }
.form { display: grid; gap: 14px; margin-top: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form input, .form select {
  width: 100%; min-height: 54px; padding: 0 18px;
  border-radius: 12px; border: 1px solid #4A4642;
  background: #2A2826; color: var(--paper);
  font: 400 16px var(--sans);
}
.form input::placeholder { color: #9A9389; }
.form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #C9C1B5; line-height: 1.5; }
.check input { width: 18px; min-height: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check a { color: var(--paper); }
.waitlist .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.waitlist .btn:hover { background: var(--cream); }
.form-status { min-height: 1.5em; font-size: 15px; color: #E6DCC8; margin: 0; }
.form.sent .form-fields { display: none; }

/* ---------- Текстовые страницы ---------- */
.page-head { padding-bottom: 24px; }
.prose h2 { font-size: 30px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose { padding-top: 0; }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14px; color: var(--graphite); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font: 500 12px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--accent); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* ---------- Продающие элементы (в стиле сайта) ---------- */
.trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--graphite); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.trust-dark { color: #D8D1C5; margin: 4px 0 8px; }

.card-link { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: color .2s, border-color .2s; }
.card-link:hover { color: var(--accent); border-color: var(--accent); }
.card p.muted { margin-bottom: 18px; }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 700px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--logo); font-weight: 400; letter-spacing: .14em; font-size: 13px; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 500; color: var(--graphite); }
.compare td { color: var(--muted); }
.compare td:nth-child(2), .compare thead th:nth-child(2) { background: var(--cream); color: var(--ink); font-weight: 500; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-weight: 400; font-size: 22px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 40em; }

.product-sub { color: var(--graphite); font-size: 17px; margin: -4px 0 6px; }
.stock-note { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 5px 12px; margin: -14px 0 26px; }

/* Полоса-анонс над шапкой */
.announce { display: block; background: var(--ink); color: var(--paper); text-align: center; text-decoration: none; font-size: 13px; letter-spacing: .04em; padding: 9px 16px; line-height: 1.4; }
.announce:hover { color: #E6DCC8; }

/* Блок «Знакомо?» — вопросы */
.questions { counter-reset: q; list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.questions li { counter-increment: q; font-family: var(--serif); font-size: 24px; line-height: 1.3; padding: 22px 0 26px; border-top: 1px solid var(--ink); }
.questions li::before { content: "0" counter(q); display: block; font-family: var(--logo); letter-spacing: .18em; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.questions-answer { font-size: 18px; color: var(--graphite); max-width: 42em; margin: 0 0 48px; }
.questions-answer strong { color: var(--ink); font-weight: 600; }

.section-cta { margin: 32px 0 0; }
.card-accent { border-color: var(--accent); }
.notes { font-size: 14px; line-height: 1.7; color: var(--graphite); border-top: 1px solid var(--line); padding-top: 14px; margin: 0 0 20px; }
.notes span { display: inline-block; min-width: 64px; font-family: var(--logo); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.split .price { margin: 8px 0 0; }
.form-alt { margin: 4px 0 0; color: #B9B1A5; text-align: center; }
.form-alt a { color: var(--paper); }
.form-alt a.todo { color: var(--ink); }
.form select option { color: var(--ink); background: var(--paper); }

/* Выделение текста: подсвечивается только сам текст, без пустых полей слева и справа
   (Safari закрашивает «пустоту» цветом выделения родительского блока — делаем её прозрачной) */
::selection { background: transparent; }
p::selection, h1::selection, h2::selection, h3::selection, h4::selection, li::selection,
a::selection, strong::selection, span::selection, em::selection, b::selection,
summary::selection, td::selection, th::selection, dt::selection, dd::selection,
label::selection, button::selection, text::selection {
  background: rgba(160, 138, 107, .3); color: inherit;
}
.waitlist ::selection, .announce::selection { color: inherit; }
.waitlist p::selection, .waitlist h2::selection, .waitlist li::selection, .waitlist span::selection,
.waitlist a::selection, .announce::selection { background: rgba(230, 220, 200, .35); }
.scent-desc { font-size: 14px; margin: -12px 0 22px; min-height: 1.5em; }
.perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--muted); }
.perks li { display: flex; gap: 10px; align-items: baseline; }
.perks li::before { content: "✓"; color: var(--accent); flex: none; }
.perks strong { color: var(--ink); font-weight: 500; }

.sticky-buy { display: none; }


/* ---------- Тематические фоны ароматов ---------- */
.theme-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.theme-bg i { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .7s ease; }
.theme-bg i.on { opacity: 1; }
.theme-bg .bg-cotton { background-image: url(images/bg-cotton.jpg); background-position: center 70%; }
.theme-bg .bg-forest { background-image: url(images/bg-forest.jpg); background-position: 70% center; }
.theme-bg .bg-silk { background-image: url(images/bg-silk.jpg); background-position: center; }

.scent-tabs { margin-bottom: 20px; }
[data-scent-stage], .scent-stage { overflow-anchor: none; }
.scent-stage {
  position: relative; overflow: hidden; border-radius: 28px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 40px;
  min-height: 540px; padding: 48px;
  background: var(--cream);
}
.scent-panels { position: relative; z-index: 1; }
.scent-panel {
  background: rgba(251, 249, 245, .95);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .6); border-radius: var(--radius);
  padding: 36px; max-width: 520px;
  animation: scentIn .5s ease;
}
.scent-panel[hidden] { display: none; }
.scent-panel .num { font-family: var(--logo); letter-spacing: .18em; font-size: 13px; color: var(--accent); margin-bottom: 14px; display: block; }
.scent-panel p:last-child { margin-bottom: 0; }
.scent-panel .muted { margin-bottom: 18px; }
.scent-visual { position: relative; z-index: 1; display: grid; place-items: center; }
.scent-visual svg { width: min(52%, 210px); height: auto; filter: drop-shadow(0 26px 34px rgba(20, 18, 16, .28)); }
@keyframes scentIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .scent-panel { animation: none; } .theme-bg i { transition: none; } }

.gallery-main { position: relative; overflow: hidden; }
.gallery-main [data-view] { position: relative; z-index: 1; }

@media (max-width: 900px) {
  .scent-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -20px; padding: 0 20px 4px; }
  .scent-tabs::-webkit-scrollbar { display: none; }
  .scent-tabs button { flex: none; padding: 10px 16px; font-size: 14px; }
  .scent-stage { grid-template-columns: 1fr; min-height: 0; padding: 20px; gap: 0; }
  .scent-visual { height: 230px; }
  .scent-visual svg { width: auto; height: 190px; }
  .scent-panel { padding: 26px; max-width: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hero-grid, .product-grid, .split { grid-template-columns: 1fr; }
  .hero-visual { aspect-ratio: 1; order: -1; }
  .grid-3, .steps, .questions { grid-template-columns: 1fr; }
  .questions li { font-size: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .product-info { position: static; }
  .sticky-buy {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 16px;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: rgba(251, 249, 245, .96);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .sticky-buy.show { transform: none; }
  .sticky-buy > div { display: grid; line-height: 1.3; }
  .sticky-buy strong { font-family: var(--serif); font-size: 22px; font-weight: 500; }
}
@media (max-width: 760px) {
  .burger { display: block; position: relative; z-index: 60; }
  .nav {
    position: fixed; inset: 72px 0 0 0;
    flex-direction: column; align-items: flex-start; gap: 22px;
    padding: 32px 20px;
    background: var(--paper);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 22px; font-family: var(--serif); }
  .nav .btn { font-family: var(--sans); font-size: 15px; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .specs div { grid-template-columns: 1fr; gap: 2px; }
  .card { padding: 26px; }
}
