/* Гадалка ВуВу — дизайн-система. Светлая, спокойная, mobile-first.
   Палитра: тёплая бумага + глубокий сливово-индиговый + приглушённое золото и лаванда.
   Лёгкий намёк на ночь/сны, без перегруза мистикой. */

:root {
  /* Поверхности */
  --bg: #FAF7F2;            /* тёплая бумага */
  --bg-soft: #F4EEF6;       /* мягкий лавандовый для секций */
  --surface: #FFFFFF;
  --surface-2: #FBF8F4;

  /* Чернила / текст */
  --ink: #2B2540;           /* основной текст — глубокий сливово-индиговый */
  --ink-soft: #6E677F;      /* приглушённый */
  --heading: #2E2747;       /* заголовки */

  /* Акценты */
  --primary: #3A2E5C;       /* кнопки, важные элементы */
  --primary-press: #2E2449;
  --gold: #C2A04F;          /* приглушённое золото */
  --lilac: #8E7CC3;         /* пыльная лаванда */

  /* Линии и тени */
  --border: #ECE4DA;
  --border-soft: #F0EAE2;
  --ring: rgba(58, 46, 92, .35);
  --shadow-sm: 0 1px 3px rgba(43, 37, 64, .06), 0 1px 2px rgba(43, 37, 64, .04);
  --shadow-md: 0 6px 24px rgba(58, 46, 92, .08);
  --shadow-lg: 0 14px 44px rgba(58, 46, 92, .12);

  /* Геометрия и ритм */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --maxw: 1120px;
  --gap: clamp(1rem, 3vw, 1.5rem);

  --grad-hero: linear-gradient(160deg, #F3ECFA 0%, #FCF1F3 55%, #FAF7F2 100%);
  --grad-cta: linear-gradient(135deg, #3A2E5C 0%, #5B4790 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15121E;
    --bg-soft: #1B1726;
    --surface: #201B2E;
    --surface-2: #1C1828;
    --ink: #ECE7F4;
    --ink-soft: #A59CBC;
    --heading: #F1ECF8;
    --primary: #8E7CC3;
    --primary-press: #7C6AB2;
    --gold: #D8B978;
    --lilac: #A493D6;
    --border: #2C2740;
    --border-soft: #262135;
    --ring: rgba(164, 147, 214, .45);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .4);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, .45);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, .55);
    --grad-hero: linear-gradient(160deg, #221C33 0%, #1B1726 60%, #15121E 100%);
    --grad-cta: linear-gradient(135deg, #4B3B79 0%, #6A55A6 100%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--heading);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1rem; }
a { color: var(--primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
strong { color: var(--heading); }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 28px); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem; color: var(--heading); white-space: nowrap; }
.logo-mark { width: 28px; height: 28px; color: var(--primary); flex-shrink: 0; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { font-size: .96rem; color: var(--ink-soft); padding: 8px 13px; border-radius: var(--radius-sm); font-weight: 500; white-space: nowrap; }
.nav a:hover { color: var(--heading); background: var(--bg-soft); }
.nav .btn { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; font-size: 1.3rem; cursor: pointer; color: var(--heading); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius-pill); font-weight: 600; font-family: inherit;
  font-size: 1rem; line-height: 1; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-hero, .btn-gold { background: var(--grad-cta); color: #fff; box-shadow: var(--shadow-md); }
.btn-hero:hover, .btn-gold:hover { color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--heading); }
.btn-outline:hover { border-color: var(--lilac); color: var(--heading); background: var(--bg-soft); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-hero); padding: clamp(40px, 8vw, 76px) 0 clamp(36px, 6vw, 60px); border-bottom: 1px solid var(--border-soft); }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 48px); align-items: center; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); margin-bottom: .4em; }
.hero .accent { color: var(--primary); }
.hero p.lead { font-size: clamp(1.05rem, 2.4vw, 1.25rem); color: var(--ink-soft); margin-bottom: 1.6rem; max-width: 40ch; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { max-width: min(360px, 80%); filter: drop-shadow(0 18px 36px rgba(58, 46, 92, .18)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* «Поиск по сну» — CTA в виде строки поиска */
.dream-bar {
  display: flex; align-items: center; gap: 8px; width: 100%; max-width: 460px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 7px 7px 7px 20px; box-shadow: var(--shadow-md); transition: box-shadow .2s ease, border-color .2s ease;
}
.dream-bar:hover { box-shadow: var(--shadow-lg); border-color: var(--lilac); }
.dream-bar .ph { flex: 1; color: var(--ink-soft); font-size: 1rem; text-align: left; }
.dream-bar .dream-go { background: var(--grad-cta); color: #fff; border-radius: var(--radius-pill); padding: 12px 22px; font-weight: 600; white-space: nowrap; }
.hero-note { margin-top: .9rem; font-size: .88rem; color: var(--ink-soft); }
.hero-note b { color: var(--heading); font-weight: 600; }

/* ---------- Sections ---------- */
section.block { padding: clamp(44px, 8vw, 72px) 0; }
section.tint { background: var(--bg-soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 5vw, 44px); text-align: center; }
.section-head h1, .section-head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.section-head p { color: var(--ink-soft); font-size: 1.08rem; margin: 0; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card { color: inherit; display: block; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border); }
a.card:hover { border-color: var(--lilac); }
.card h3 { font-size: 1.25rem; margin-bottom: .4em; }
.card .eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); font-weight: 700; font-family: 'Manrope', sans-serif; display: block; margin-bottom: .5em; }
.icon-circle { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; background: linear-gradient(140deg, var(--bg-soft), #fff); border: 1px solid var(--border-soft); margin-bottom: 14px; }
.step-num { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-weight: 700; font-family: 'Manrope', sans-serif; font-size: .95rem; margin-bottom: 12px; }

/* ---------- Symbol chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); font-weight: 500; font-size: .96rem;
  box-shadow: var(--shadow-sm); transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.chip:hover { transform: translateY(-2px); border-color: var(--lilac); color: var(--heading); }

/* ---------- Interpretation blocks ---------- */
.interp { background: var(--surface-2); border: 1px solid var(--border-soft); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 16px; }
.interp .tag { font-family: 'Manrope', sans-serif; font-weight: 700; color: var(--heading); display: block; margin-bottom: 4px; }
.interp p { margin: 0; }

/* ---------- Article ---------- */
.article { max-width: 740px; margin: 0 auto; }
.article h1 { font-size: clamp(1.8rem, 4.4vw, 2.6rem); margin-bottom: .3em; }
.article .lead { font-size: clamp(1.08rem, 2.4vw, 1.22rem); color: var(--ink-soft); margin-bottom: 1.8rem; }
.article h2 { font-size: clamp(1.4rem, 3vw, 1.7rem); margin: 1.8em 0 .5em; }
.article h3 { font-size: 1.2rem; margin: 1.4em 0 .3em; }
.article ul { padding-left: 1.3em; margin: 0 0 1.1rem; }
.article li { margin-bottom: .5em; }
.article li::marker { color: var(--gold); }

/* ---------- CTA box ---------- */
.cta { background: var(--grad-cta); color: #fff; border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px); text-align: center; box-shadow: var(--shadow-lg); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0 auto 1.5rem; }
.cta .btn-hero { background: #fff; color: var(--primary); }
.cta .btn-hero:hover { background: #fff; color: var(--primary-press); }
.cta-inline { margin: 2rem 0; }

/* ---------- FAQ (native details) ---------- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; margin-bottom: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details[open] { border-color: var(--lilac); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.1rem; color: var(--heading); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.5rem; line-height: 1; flex-shrink: 0; transition: transform .2s ease; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .86rem; color: var(--ink-soft); padding-top: 18px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--primary); }

/* ---------- Trust quote ---------- */
.quote { max-width: 740px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: 'Playfair Display', serif; font-size: clamp(1.3rem, 3.4vw, 1.9rem); font-style: italic; color: var(--heading); margin: 0 0 1rem; line-height: 1.4; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 14px 26px; justify-content: center; margin-top: 1.6rem; font-size: .92rem; color: var(--ink-soft); }
.trust-badges span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Related ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: clamp(36px, 6vw, 52px) 0 28px; margin-top: clamp(40px, 8vw, 64px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(24px, 4vw, 40px); margin-bottom: 28px; }
.footer-grid h4 { font-size: 1.05rem; margin-bottom: .8em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5em; font-size: .94rem; }
.footer-grid a { color: var(--ink-soft); }
.footer-grid a:hover { color: var(--primary); }
.footer-seo { font-size: .82rem; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 22px; line-height: 1.7; }
.copyright { text-align: center; font-size: .82rem; color: var(--ink-soft); margin-top: 1.2rem; }

/* ---------- Адаптив ---------- */
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 200px; }
  .dream-bar { margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 12px 16px 18px; box-shadow: var(--shadow-md); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero .container { gap: 18px; }
  .dream-bar { flex-direction: column; align-items: stretch; padding: 14px; border-radius: var(--radius); gap: 12px; }
  .dream-bar .ph { text-align: center; }
  .dream-bar .dream-go { justify-content: center; text-align: center; padding: 14px; }
  .trust-badges { gap: 10px 18px; }
}

/* Чуть плотнее карточки символов на узких экранах, но не одна колонка */
@media (min-width: 421px) and (max-width: 560px) {
  .symbols-grid { grid-template-columns: 1fr 1fr; }
}
