/* ===========================================================
   Astrolog Valentina - design system
   Deep night blue + gold + ivory. Dry, premium, trustworthy.
   =========================================================== */

:root {
  /* palette */
  --navy-900: #0a1230;
  --navy-800: #0f1c42;
  --navy-700: #17274f;
  --gold: #b98d3e;
  --gold-soft: #cda85f;
  --gold-bright: #e0c079;
  --paper: #f7f2e8;
  --paper-2: #fbf7ee;
  --card: #ffffff;
  --ink: #1a2140;
  --ink-soft: #3e4666;
  --muted: #7b7f95;
  --line: rgba(26, 33, 64, 0.12);
  --line-strong: rgba(26, 33, 64, 0.22);
  --star: rgba(255, 250, 235, 0.9);

  /* type */
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* metrics */
  --wrap: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 22px 55px -32px rgba(10, 18, 48, 0.55);
  --shadow-soft: 0 10px 30px -20px rgba(10, 18, 48, 0.4);
  --t: 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.section { padding: clamp(48px, 8vw, 96px) 0; }

/* eyebrow */
.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.26em;
  font-size: 12px; font-weight: 700; color: var(--gold); margin: 0 0 16px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }

.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all var(--t);
}
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(185,141,62,0.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-light { background: transparent; color: var(--paper); border-color: rgba(255,255,255,0.35); }
.btn-light:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 232, 0.85);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-900); color: var(--gold-bright);
  display: grid; place-items: center; font-size: 22px; font-family: var(--serif);
  box-shadow: var(--shadow-soft);
}
.brand .btext { display: flex; flex-direction: column; gap: 3px; line-height: 1.05; }
.brand .bname { font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.05; }
.brand .brole { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.menu { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.menu a { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); position: relative; padding: 6px 0; white-space: nowrap; transition: color var(--t); }
.menu a::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--gold); transition: width var(--t); }
.menu a:hover, .menu a[aria-current="page"] { color: var(--ink); }
.menu a:hover::after, .menu a[aria-current="page"]::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 24px; }
.head-mail { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); white-space: nowrap; transition: color var(--t); }
.head-mail::before { content: "\2709"; margin-right: 7px; color: var(--gold); }
.head-mail:hover { color: var(--gold); }
@media (max-width: 1040px) {
  .head-mail { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 0; border: 1px solid var(--line-strong); border-radius: 10px; margin-right: 10px; }
  .head-mail::before { margin: 0; font-size: 26px; line-height: 1; color: var(--gold); }
  .head-mail:hover { background: var(--surface); }
}

/* ---------- выпадающее подменю ---------- */
.menu .has-sub { position: relative; }
.caret { font-size: 9px; margin-left: 5px; opacity: 0.55; }
.submenu { list-style: none; margin: 0; padding: 0; }
@media (min-width: 641px) {
  .submenu { position: absolute; top: calc(100% + 4px); left: 0; background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 8px; min-width: 210px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 60; }
  .menu .has-sub:hover .submenu, .menu .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: none; }
  .submenu a { display: block; padding: 9px 14px; border-radius: 8px; white-space: nowrap; }
  .submenu a::after { display: none; }
  .submenu a:hover { background: var(--surface); color: var(--gold); }
}
@media (max-width: 640px) {
  .submenu { margin: 0 26px 8px 40px; padding: 4px 0 4px 14px; border-left: 2px solid var(--gold); }
  .submenu a { display: block; font-size: 14.5px; color: var(--ink-soft); padding: 8px 0; }
  .submenu a::after { display: none; }
  .submenu a:hover, .submenu a[aria-current="page"] { color: var(--gold); }
  .caret { display: none; }
}
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer; }
.burger span, .burger span::before, .burger span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); margin: 0 auto; position: relative; transition: var(--t); }
.burger span::before { top: -6px; } .burger span::after { top: 4px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--paper);
  background:
    radial-gradient(1100px 680px at 80% 18%, rgba(78, 52, 130, 0.28), transparent 55%),
    radial-gradient(900px 620px at 12% 88%, rgba(22, 64, 128, 0.24), transparent 55%),
    radial-gradient(600px 400px at 50% 0%, rgba(185, 141, 62, 0.10), transparent 60%),
    linear-gradient(165deg, #05081a 0%, #080e28 55%, #060a1e 100%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero .wrap { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(24px, 5vw, 60px); align-items: center; padding: clamp(56px, 9vw, 110px) 0; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.6vw, 60px); margin-bottom: 20px; text-wrap: balance; }
.hero .eyebrow { color: var(--gold-bright); }
.hero .eyebrow::before { background: var(--gold-bright); }
.hero p { color: rgba(246, 241, 230, 0.86); max-width: 52ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-portrait { position: relative; justify-self: center; }
.hero-portrait img { position: relative; z-index: 1; width: min(360px, 82vw); border-radius: 22px; border: 1px solid rgba(231, 203, 134, 0.5); box-shadow: 0 30px 70px -26px rgba(0,0,0,0.65); animation: floaty 6s ease-in-out infinite; }
.hero-portrait .dao {
  position: absolute; top: -22px; right: -14px; width: 76px; height: 76px; border-radius: 50%;
  background: var(--paper); color: var(--navy-900); display: grid; place-items: center;
  font-size: 40px; font-family: var(--serif); box-shadow: var(--shadow); z-index: 3;
}
.hero-facts { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-facts .f b { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold-bright); line-height: 1; }
.hero-facts .f span { font-size: 13px; color: rgba(246,241,230,0.7); }

/* ---------- section heading ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 14px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

/* ---------- cards grid ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card .card-img { aspect-ratio: 16 / 10; background: var(--navy-800); overflow: hidden; }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .tag { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card h3 { font-size: 20px; }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.card .more { margin-top: auto; padding-top: 12px; color: var(--gold); font-family: var(--sans); font-weight: 600; font-size: 14px; display: inline-flex; gap: 7px; align-items: center; }
.card:hover .more { gap: 11px; }

/* ---------- about band ---------- */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.about-photo { position: relative; }
.about-photo img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-photo .badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--navy-900); color: var(--paper);
  padding: 16px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); max-width: 220px;
}
.about-photo .badge b { color: var(--gold-bright); font-family: var(--serif); font-size: 15px; }
.about-photo .badge span { font-size: 12px; color: rgba(246,241,230,0.75); }
.creds { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.creds li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.creds li::before { content: "\2726"; color: var(--gold); font-size: 13px; margin-top: 3px; }

/* ---------- certificates strip ---------- */
.certs-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.certs-strip a { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: #fff; padding: 8px; display: grid; place-items: center; transition: transform var(--t), box-shadow var(--t); }
.certs-strip a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.certs-strip img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(246, 241, 230, 0.8); padding: clamp(48px, 7vw, 80px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(246, 241, 230, 0.75); font-size: 14.5px; line-height: 2; transition: color var(--t); }
.site-footer a:hover { color: var(--gold-bright); }
.foot-brand .mark { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,0.06); color: var(--gold-bright); display: grid; place-items: center; font-size: 24px; font-family: var(--serif); margin-bottom: 16px; }
.foot-note { font-size: 13px; line-height: 1.7; color: rgba(246,241,230,0.55); }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 13px; color: rgba(246,241,230,0.55); }
.foot-mark img { display: block; opacity: 0.75; transition: opacity var(--t); }
.foot-mark:hover img { opacity: 1; }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  max-width: 1040px; margin: 0 auto; background: #fff; border: 1px solid var(--line-strong);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 24px;
  transform: translateY(180%); transition: transform 0.5s cubic-bezier(0.2,0.7,0.2,1);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.cookie.show { transform: translateY(0); }
.cookie-text { flex: 1; min-width: 260px; }
.cookie h4 { font-family: var(--serif); font-size: 18px; margin-bottom: 5px; }
.cookie p { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 0; }
.cookie-actions { flex-shrink: 0; }
.cookie p a { color: var(--gold); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) {
  .cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 16px; left: 10px; right: 10px; }
  .cookie-text { min-width: 0; }
  .cookie-actions { width: 100%; flex-direction: column; gap: 8px; }
  .cookie-actions .btn { width: 100%; justify-content: center; }
}
.cookie .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(0.985); transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.2,0.7,0.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow, .hero-cta, .hero-facts { justify-content: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-portrait, .hero-visual { order: -1; margin-bottom: 10px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 460px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .certs-strip { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .menu { display: none; }
  .burger { display: block; }
  .nav-right { gap: 0; }
  /* мобильное меню - аккуратные строки с разделителями */
  .menu.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper-2); padding: 6px 0 12px; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow); z-index: 70; }
  .menu.open > li { border-top: 1px solid var(--line); }
  .menu.open > li:first-child { border-top: 0; }
  .menu.open > li > a { display: block; padding: 15px 26px; font-size: 16px; font-family: var(--sans); color: var(--ink); text-align: left; }
  .menu.open > li > a::after { display: none; }
  .menu.open .has-sub > a { font-weight: 600; }
  .grid-2 { grid-template-columns: 1fr; }
  /* ряды карточек - горизонтальный свайп (видно край следующей) */
  .grid-3 { display: flex; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; margin: 0 calc(-1 * clamp(18px, 4vw, 40px)); padding: 4px clamp(18px, 4vw, 40px) 16px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
  .grid-3 > * { flex: 0 0 82%; scroll-snap-align: center; }
  .grid-3::-webkit-scrollbar { height: 5px; }
  .grid-3::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 999px; }
  .foot-grid { grid-template-columns: 1fr; }
  .certs-strip { grid-template-columns: repeat(3, 1fr); }
  .about-photo .badge { position: static; margin-top: 14px; max-width: none; }
}
/* ---------- entrance + micro animations ---------- */
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

.hero-text > * { opacity: 0; animation: heroUp 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero-text > *:nth-child(1) { animation-delay: 0.05s; }
.hero-text > *:nth-child(2) { animation-delay: 0.16s; }
.hero-text > *:nth-child(3) { animation-delay: 0.3s; }
.hero-text > *:nth-child(4) { animation-delay: 0.44s; }
.hero-text > *:nth-child(5) { animation-delay: 0.58s; }
.hero-portrait { opacity: 0; animation: heroUp 1s 0.35s forwards; }
.hero-portrait .dao { animation: breathe 4.5s ease-in-out infinite; }
.hero-visual { justify-self: center; position: relative; opacity: 0; animation: heroUp 1s 0.35s forwards; }
.hero-visual img { width: min(460px, 86vw); filter: drop-shadow(0 0 42px rgba(231, 203, 134, 0.18)); animation: floaty 7s ease-in-out infinite; }

/* shine sweep on primary buttons */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent); transform: skewX(-20deg); transition: left 0.6s ease; }
.btn-primary:hover::after { left: 140%; }

/* tactile - everything clickable responds to touch */
a, button { -webkit-tap-highlight-color: transparent; }
.card, .btn, .menu a, .certs-strip a { touch-action: manipulation; }
.btn:active { transform: scale(0.95); }
.card:active { transform: translateY(-2px) scale(0.99); }
.menu a:active, .certs-strip a:active { opacity: 0.65; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .hero-text > *, .hero-portrait, .hero-visual { opacity: 1 !important; transform: none !important; }
}

/* ---------- subpage hero ---------- */
.page-hero {
  position: relative; overflow: hidden; text-align: center; color: var(--paper);
  padding: clamp(52px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(900px 500px at 80% 10%, rgba(78, 52, 130, 0.26), transparent 55%),
    radial-gradient(700px 460px at 15% 95%, rgba(22, 64, 128, 0.22), transparent 55%),
    linear-gradient(165deg, #05081a, #080e28 60%, #060a1e);
}
.page-hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.6; }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); margin-bottom: 14px; text-wrap: balance; }
.page-hero .eyebrow { color: var(--gold-bright); justify-content: center; }
.page-hero .eyebrow::before { background: var(--gold-bright); }
.page-hero .lead { color: rgba(246, 241, 230, 0.85); max-width: 56ch; margin: 0 auto; }

/* ---------- breadcrumbs ---------- */
.crumbs { background: var(--paper-2); border-bottom: 1px solid var(--line); font-family: var(--sans); font-size: 13px; }
.crumbs .wrap { padding-top: 12px; padding-bottom: 12px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs .sep { color: var(--line-strong); margin: 0 6px; }
.crumbs span { color: var(--ink-soft); }

/* ---------- gallery + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery a { aspect-ratio: 4/3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; padding: 6px; display: grid; place-items: center; cursor: zoom-in; transition: transform var(--t), box-shadow var(--t); }
.gallery a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 8, 22, 0.94); display: none; place-items: center; padding: 24px; }
.lightbox.open { display: grid; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 12px; box-shadow: var(--shadow); }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; width: 50px; height: 50px; border-radius: 50%; font-size: 22px; cursor: pointer; display: grid; place-items: center; transition: background var(--t); }
.lightbox button:hover { background: var(--gold); border-color: var(--gold); }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.7); font-family: var(--sans); font-size: 13px; }
@media (max-width: 560px) { .lb-prev { left: 10px; } .lb-next { right: 10px; } }

/* ---------- prose (текстовые и юр-страницы) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: clamp(20px, 3vw, 26px); margin: 34px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: clamp(18px, 2.6vw, 22px); margin: 26px 0 10px; }
.prose p { color: var(--ink-soft); margin: 0 0 14px; }
.prose ul, .prose ol { color: var(--ink-soft); margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose a { color: var(--gold); text-decoration: underline; }
.prose b { color: var(--ink); }
.prose img { border-radius: var(--radius-sm); margin: 18px 0; }
.prose-note { margin-top: 30px; padding: 14px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--muted); font-style: italic; }

/* ---------- calendar day cards ---------- */
.day-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 16px; }
.day-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: center; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.day-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.day-visual { position: relative; background: linear-gradient(160deg, #101c42, #0a1230); display: grid; place-items: center; padding: 18px 0 12px; }
.day-visual .phase { width: 92px; height: 92px; transition: filter var(--t), transform 0.5s ease; }
.day-card:hover .phase { filter: drop-shadow(0 0 14px var(--glow)); transform: scale(1.07); }
.day-num { position: absolute; top: 8px; right: 12px; font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--gold-bright); }
.day-body { padding: 12px 10px 15px; }
.day-body h3 { font-size: 15px; margin-bottom: 5px; }
.day-body .more { font-size: 12px; color: var(--gold); font-family: var(--sans); font-weight: 600; }

.day-card.is-hidden { display: none; }
.show-more-wrap { text-align: center; margin-top: 30px; }
@media (min-width: 641px) { .day-card.is-hidden { display: block; } .show-more-wrap { display: none; } }
.self-img { margin: 24px 0; }
.self-img img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-soft); }

/* ---------- новолуния ---------- */
.moon-now { display: flex; align-items: center; gap: clamp(20px, 4vw, 40px); background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); margin-bottom: 40px; flex-wrap: wrap; }
.mn-moon { width: 170px; height: 170px; filter: drop-shadow(0 0 26px var(--glow)); flex: none; }
.mn-info { flex: 1; min-width: 260px; }
.mn-info h2 { font-size: clamp(24px, 4vw, 32px); margin-bottom: 8px; }
.mn-info p { color: var(--ink-soft); margin-bottom: 8px; }
.mn-info b { color: var(--ink); }
.nm-h2 { text-align: center; margin-bottom: 26px; font-size: clamp(22px, 4vw, 30px); }
.nm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.nm-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; transition: border-color var(--t), transform var(--t); }
.nm-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.nm-date b { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); }
.nm-date span { font-family: var(--sans); font-size: 12px; color: var(--muted); }
.nm-sign { font-family: var(--sans); font-size: 13px; color: var(--ink-soft); text-align: right; }
.nm-sign .z { color: var(--gold); font-size: 19px; vertical-align: -2px; }

/* ---------- темы астрологии (карточки) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; max-width: 940px; margin: 0 auto; }
.topic-card { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; transition: border-color var(--t), transform var(--t), box-shadow var(--t); }
.topic-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.tc-ico { color: var(--gold); font-size: 13px; flex: none; }
.tc-name { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--ink); flex: 1; }
.tc-go { color: var(--gold); font-family: var(--sans); transition: transform var(--t); }
.topic-card:hover .tc-go { transform: translateX(4px); }

/* ---------- навигация по дням (prev/next) ---------- */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--sans); font-size: 14px; }
.day-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 17px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-soft); font-weight: 600; text-decoration: none; transition: color var(--t), border-color var(--t), background var(--t); }
.day-nav a:hover { color: var(--gold); border-color: var(--gold); }
.day-nav .dn-all { color: var(--navy-900); background: var(--gold); border-color: var(--gold); white-space: nowrap; }
.day-nav .dn-all:hover { color: var(--navy-900); background: var(--gold-soft); border-color: var(--gold-soft); }
@media (max-width: 560px) { .day-nav { flex-wrap: wrap; justify-content: center; font-size: 13px; gap: 8px; } .day-nav a { padding: 9px 14px; } .day-nav .dn-all { order: -1; width: 100%; justify-content: center; } }

/* ---------- блок "Смотрите также" (кросс-перелинковка) ---------- */
.related { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.related h3 { font-family: var(--sans); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.related-links a { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; text-decoration: none; transition: color var(--t), border-color var(--t); }
.related-links a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- полоска прогресса чтения ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); box-shadow: 0 0 8px rgba(185,141,62,0.6); will-change: width; pointer-events: none; }

/* ---------- страница 404 ---------- */
.page-hero-404 { min-height: 70vh; display: flex; align-items: center; }
.e404-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
@media (max-width: 500px) { .e404-links .btn { width: 100%; text-align: center; } }

/* ---------- астро-разделы: знаки, планеты, дома, глоссарий ---------- */
.card-sym { display: grid; place-items: center; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); }
.card-sym span { font-size: 68px; color: var(--gold-soft); line-height: 1; text-shadow: 0 0 26px rgba(201,172,95,0.35); animation: glyphPulse 5s ease-in-out infinite; }
@keyframes glyphPulse { 0%, 100% { opacity: 0.9; text-shadow: 0 0 22px rgba(201,172,95,0.28); } 50% { opacity: 1; text-shadow: 0 0 34px rgba(201,172,95,0.5); } }
@media (prefers-reduced-motion: reduce) { .card-sym span { animation: none; } }

/* декоративный баннер в темах астрологии */
.topic-illo { margin: 0 auto 28px; max-width: 560px; border-radius: var(--radius-sm); overflow: hidden; }
.topic-illo img { width: 100%; height: auto; display: block; }

/* ---------- виджет: знак по дате рождения ---------- */
.zsign-finder { padding: clamp(6px, 2vw, 14px) 0 clamp(6px, 2vw, 12px); margin-bottom: clamp(20px, 3vw, 30px); text-align: center; }
.zsign-finder h2 { font-size: clamp(20px, 3vw, 24px); margin-bottom: 6px; }
.zsign-finder .zsf-lead { color: var(--ink-soft); margin-bottom: 16px; }
.zsf-row { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 26px); flex-wrap: wrap; }
.zsf-controls { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.zsf-controls select { appearance: none; -webkit-appearance: none; -moz-appearance: none; font-family: var(--sans); font-size: 15px; font-weight: 600; padding: 12px 42px 12px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background-color: var(--paper); color: var(--ink); cursor: pointer; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23b98d3e' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; background-size: 12px; transition: border-color var(--t), box-shadow var(--t); }
.zsf-controls select:hover { border-color: var(--gold); }
.zsf-controls select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,141,62,0.16); }
.zsf-card { display: inline-flex; align-items: center; gap: 18px; background: var(--paper-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 16px 24px; text-align: left; box-shadow: 0 12px 32px -20px rgba(0,0,0,0.35); }
.zsf-glyph { flex: 0 0 auto; width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); color: var(--gold-soft); font-size: 32px; line-height: 1; box-shadow: inset 0 0 18px rgba(201,172,95,0.15); }
.zsf-info { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.zsf-label { font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.zsf-name { font-family: var(--serif); font-size: 21px; line-height: 1; }
.zsf-open { padding: 8px 16px; font-size: 13px; }
@media (max-width: 460px) { .zsf-card { flex-direction: column; text-align: center; gap: 12px; } .zsf-info { align-items: center; } .zsf-controls select { flex: 1 1 40%; } }

/* ---------- виджет: Луна сегодня ---------- */
.section-tight { padding-top: clamp(22px, 3vw, 34px); padding-bottom: clamp(10px, 2vw, 18px); }
.moon-today { position: relative; overflow: hidden; display: flex; align-items: center; gap: clamp(22px, 4vw, 40px); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px);
  background:
    radial-gradient(1.6px 1.6px at 18% 30%, rgba(231,203,134,0.7), transparent),
    radial-gradient(1.4px 1.4px at 42% 72%, rgba(231,203,134,0.55), transparent),
    radial-gradient(1.8px 1.8px at 74% 22%, rgba(231,203,134,0.6), transparent),
    radial-gradient(1.3px 1.3px at 88% 64%, rgba(231,203,134,0.5), transparent),
    radial-gradient(1.5px 1.5px at 62% 44%, rgba(231,203,134,0.45), transparent),
    linear-gradient(150deg, var(--navy-800), var(--navy-900)); }
.moon-today .mt-canvas { flex: 0 0 auto; position: relative; filter: drop-shadow(0 6px 24px rgba(0,0,0,0.4)); }
.mt-info { flex: 1 1 auto; position: relative; }
.mt-eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.mt-day { font-family: var(--serif); font-size: clamp(22px, 4vw, 30px); color: #fff; margin-bottom: 6px; }
.mt-sub { color: rgba(246,241,230,0.82); font-size: 15px; }
.mt-nm { margin-top: 8px; }
.mt-nm b { color: var(--gold-soft); font-weight: 600; }
.mt-btn { flex: 0 0 auto; position: relative; }
@media (max-width: 640px) { .moon-today { flex-direction: column; text-align: center; gap: 18px; } .mt-btn { width: 100%; text-align: center; } }

/* ---------- кнопка "Наверх" ---------- */
.to-top { position: fixed; right: 18px; bottom: 18px; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--gold); background: var(--navy-800); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); box-shadow: 0 8px 22px -8px rgba(0,0,0,0.55); transition: opacity var(--t), transform var(--t), visibility var(--t), background var(--t), color var(--t); z-index: 150; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }

.sym-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sym-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform var(--t), border-color var(--t), box-shadow var(--t); }
.sym-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow); }
.sym-glyph { font-size: 46px; color: var(--gold); line-height: 1; }
.sym-name { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.sym-sub { font-family: var(--sans); font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 860px) { .sym-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .sym-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .sym-glyph { font-size: 40px; } .sym-name { font-size: 16px; } }

.astro-glyph { font-size: 84px; color: var(--gold); line-height: 1; text-align: center; margin: 0 0 18px; text-shadow: 0 0 30px rgba(185,141,62,0.25); }
.fact-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 0 0 30px; }
.fact { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fact .fk { font-family: var(--sans); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.fact .fv { font-size: 16px; color: var(--ink); }
@media (max-width: 400px) { .fact-table { grid-template-columns: 1fr; } .astro-glyph { font-size: 68px; } }

.section-cta { text-align: center; margin-top: clamp(30px, 4vw, 46px); }
.back-link { margin-top: 46px; }
.back-link a { font-family: var(--sans); font-weight: 600; color: var(--gold); text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

.gloss-list { margin: 0; }
.gloss { padding: 16px 0; border-bottom: 1px solid var(--line); }
.gloss:last-child { border-bottom: 0; }
.gloss dt { font-family: var(--serif); font-size: 18px; color: var(--ink); margin-bottom: 4px; }
.gloss dd { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* метки-стикеры в тексте (Рекомендации, Одежда, Приметы...) */
.prose .lbl { display: inline-block; font-family: var(--sans); font-weight: 700; font-size: 0.72em; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); background: rgba(185,141,62,0.1); border: 1px solid rgba(185,141,62,0.28); border-radius: 6px; padding: 2px 9px; margin-right: 7px; vertical-align: 1px; }

/* символы зодиака/планет - текстовое (не эмодзи) начертание, золотом */
.sym-glyph, .astro-glyph, .zsf-glyph, .nm-sign .z, .today-box .z, span.z {
  font-family: "Segoe UI Symbol", "Noto Sans Symbols2", "Apple Symbols", "Noto Sans Symbols", "DejaVu Sans", var(--sans);
  font-variant-emoji: text;
}
.today-box { display: none; }
.today-box.show { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(160deg, var(--surface), var(--surface-2)); border: 1px solid var(--gold); border-radius: var(--radius); padding: 16px 22px; margin-bottom: 28px; box-shadow: var(--shadow-soft); }
.today-box .t-moon { width: 60px; height: 60px; flex: none; }
.today-box .t-text { font-family: var(--sans); font-size: 15px; color: var(--ink-soft); }
.today-box .t-text b { color: var(--ink); }
.today-box .t-text a { color: var(--gold); font-weight: 600; white-space: nowrap; }
