/* GuruYog — джйотиш. Ночное небо + золото. Без внешних шрифтов и библиотек. */
:root {
  --bg: #0b1020;
  --bg2: #10162b;
  --panel: #151c33;
  --panel2: #1a2140;
  --gold: #d9a441;
  --gold-l: #f0d199;
  --gold-d: #8a6a2f;
  --saff: #f0873c;
  --blue: #7aa7ff;
  --text: #e7e9f2;
  --muted: #9aa3bd;
  --line: rgba(217, 164, 65, .22);
  --line-soft: rgba(231, 233, 242, .10);
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --r: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.7 var(--sans);
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(233, 236, 247, .5) 50%, transparent 51%),
    radial-gradient(1px 1px at 68% 8%, rgba(233, 236, 247, .4) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 84% 42%, rgba(233, 236, 247, .35) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 64%, rgba(233, 236, 247, .3) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 52% 30%, rgba(240, 209, 153, .35) 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 82%, rgba(233, 236, 247, .3) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 92% 76%, rgba(233, 236, 247, .3) 50%, transparent 51%),
    radial-gradient(ellipse 90% 60% at 50% -10%, #141b33 0%, var(--bg) 70%);
  background-attachment: fixed;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-l); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.22; color: var(--gold-l); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); letter-spacing: .2px; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #0b1020; padding: 10px 16px; z-index: 99; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

/* прогресс чтения */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--saff), var(--gold)); z-index: 60; }

/* шапка */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 32, .82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.nav-a { padding: 8px 11px; border-radius: 999px; color: var(--muted); font-size: .94rem; white-space: nowrap; }
.nav-a:hover { color: var(--gold-l); background: rgba(217, 164, 65, .10); }
.nav-a.is-active { color: var(--gold-l); background: rgba(217, 164, 65, .16); box-shadow: inset 0 0 0 1px var(--line); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 11px 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--gold-l); border-radius: 2px; }

/* герой */
.hero { padding: 64px 0 30px; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--saff); text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; margin: 0 0 14px; }
.eyebrow a { color: inherit; }
.hero-sub { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-art { width: 100%; max-width: 460px; margin-left: auto; filter: drop-shadow(0 18px 60px rgba(217, 164, 65, .18)); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; background: linear-gradient(180deg, var(--gold-l), var(--gold)); color: #171204; font-weight: 700; padding: 13px 24px; border-radius: 999px; box-shadow: 0 10px 30px rgba(217, 164, 65, .25); }
.btn:hover { color: #171204; filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { background: none; color: var(--gold-l); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { color: var(--gold-l); background: rgba(217, 164, 65, .10); }

/* секции и сетки */
.band { padding: 40px 0; }
.band-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.more { color: var(--gold); font-size: .95rem; white-space: nowrap; }
.h2 { position: relative; padding-left: 16px; margin-bottom: 22px; }
.h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--saff), var(--gold)); }
.h2 a { color: inherit; }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.feat { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px; }
.feat-n { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--gold); margin-bottom: 6px; }
.feat p { margin: 0; color: var(--muted); font-size: .92rem; }

/* карточки */
.card, .sec-card { display: block; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.card:hover, .sec-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: 0 18px 44px rgba(0, 0, 0, .4); }
.card img, .sec-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg2); }
.card-b, .sec-card-b { padding: 18px 18px 20px; }
.kicker { display: inline-block; color: var(--saff); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.card h3, .sec-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p, .sec-card p { color: var(--muted); font-size: .92rem; margin-bottom: 12px; }
.meta { color: var(--muted); font-size: .82rem; }

/* страницы */
.page { padding: 34px 20px 60px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 22px; font-size: .86rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gold-d); }
.crumbs li:last-child { color: var(--text); }
.page-head { max-width: 46em; margin-bottom: 26px; }
.page-sub { color: var(--muted); font-size: 1.06rem; }
.page-art { width: 100%; max-width: 860px; border-radius: var(--r); border: 1px solid var(--line-soft); margin-bottom: 28px; }
.lead { font-size: 1.16rem; color: var(--text); border-left: 3px solid var(--gold); padding-left: 16px; margin-bottom: 30px; }
.meta-line { color: var(--muted); font-size: .88rem; }

/* статья */
.article-grid { display: grid; grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
.toc { position: sticky; top: 92px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px; }
.toc-t { font-family: var(--serif); color: var(--gold-l); font-weight: 700; margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; margin-bottom: 8px; font-size: .9rem; }
.toc li::before { content: counter(t, decimal-leading-zero); color: var(--gold-d); margin-right: 8px; font-size: .8rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--gold-l); }
.prose { max-width: 46em; }
.prose h2 { margin-top: 1.6em; scroll-margin-top: 96px; }
.prose h3 { margin-top: 1.3em; color: var(--text); }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; border-left: 3px solid var(--saff); background: var(--panel); border-radius: 0 var(--r) var(--r) 0; font-family: var(--serif); font-size: 1.06rem; color: var(--gold-l); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .94rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line-soft); padding: 9px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--panel2); color: var(--gold-l); font-family: var(--serif); }
.prose tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.side-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px; }
.side-card ul { margin: 0; padding-left: 1.1em; }
.side-card li { margin-bottom: .5em; color: var(--muted); font-size: .94rem; }
.plain-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 44px; }
.plain-list li { margin-bottom: 10px; break-inside: avoid; padding-bottom: 10px; border-bottom: 1px dashed var(--line-soft); display: flex; justify-content: space-between; gap: 14px; }
.plain-list .meta { white-space: nowrap; }

/* faq */
.faq { margin-top: 44px; max-width: 46em; }
.faq-i { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-i summary { cursor: pointer; padding: 15px 18px; font-weight: 600; color: var(--gold-l); list-style: none; position: relative; padding-right: 46px; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.3rem; transition: transform .18s ease; }
.faq-i[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-i p { padding: 0 18px 16px; margin: 0; color: var(--muted); }

/* контакты */
.contact-grid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 4px; border-bottom: 1px solid var(--line-soft); }
.contact-list li span:first-child { color: var(--muted); }

/* подвал */
.site-foot { border-top: 1px solid var(--line); margin-top: 50px; background: rgba(10, 14, 28, .6); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; padding: 44px 20px 26px; }
.foot-col p { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.foot-col h3 { font-size: 1rem; color: var(--gold); margin-bottom: 12px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 8px; font-size: .92rem; }
.foot-col li a { color: var(--muted); }
.foot-col li a:hover { color: var(--gold-l); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 16px 20px 30px; color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line-soft); }

/* адаптив */
@media (max-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .feats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .article-grid { grid-template-columns: 1fr; }
  .toc { position: static; order: 2; }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--bg2); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; }
  .nav.is-open { display: flex; }
  .nav-a { padding: 12px 14px; border-radius: 10px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { margin: 0 auto; max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .plain-list { columns: 1; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover, .sec-card:hover, .btn:hover { transform: none; }
}
