/* ─── TaroTatyana — shared styles ─── */
:root {
  --bg: #09080d;
  --bg-2: #0e0c14;
  --panel: #14111c;
  --panel-2: #1a1726;
  --line: rgba(201, 168, 76, 0.22);
  --line-soft: rgba(201, 168, 76, 0.10);
  --gold: #c9a84c;
  --gold-bright: #e0c069;
  --gold-deep: #8a7232;
  --parchment: #e8dcb0;
  --text: #ddd6c1;
  --text-dim: #9b9482;
  --text-faint: #5a5446;
  --display: "Cinzel", "Times New Roman", serif;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-size: 29px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(80, 60, 130, 0.18), transparent 55%),
    radial-gradient(ellipse at 90% 30%, rgba(120, 90, 40, 0.10), transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(60, 40, 90, 0.18), transparent 55%),
    var(--bg);
}

main, nav, footer { position: relative; z-index: 1; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--parchment);
  margin: 0;
}

.eyebrow {
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}
.eyebrow.left::before { display: none; }
.eyebrow.left::after { display: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ─── Nav ─── */
nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(9, 8, 13, 0.72);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.3s ease, border-color 0.3s ease;
}
nav.top.scrolled {
  background: rgba(9, 8, 13, 0.92);
  border-bottom-color: var(--line);
}
nav.top .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--parchment);
}
.logo-mark {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  position: relative;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 10px rgba(201, 168, 76, 0.32));
  transition: transform 0.5s cubic-bezier(.2,.7,.2,1), filter 0.4s ease;
}
.logo:hover .logo-mark {
  transform: rotate(45deg);
  filter: drop-shadow(0 2px 14px rgba(224, 192, 105, 0.55));
}
.logo-mark svg {
  width: 100%; height: 100%; display: block;
}
.logo-text {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 1;
}
.logo-text small {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: none;
  margin-top: 4px;
}
.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%; right: 50%;
  bottom: -6px;
  height: 1px;
  background: var(--gold);
  transition: left 0.25s ease, right 0.25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-bright); }
.nav-links a:hover::after, .nav-links a.active::after { left: 0; right: 0; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 30px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold);
  color: var(--parchment);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(201, 168, 76, 0.18), transparent);
  transform: translateX(-110%);
  transition: transform 0.6s ease;
}
.btn:hover::before { transform: translateX(110%); }
.btn-primary {
  background: linear-gradient(180deg, var(--gold), var(--gold-deep));
  color: #18130a;
  border-color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.2), 0 14px 40px -16px rgba(201, 168, 76, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(201, 168, 76, 0.3), 0 22px 50px -16px rgba(201, 168, 76, 0.7);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
}
.btn-ghost:hover {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
  background: rgba(201, 168, 76, 0.04);
}
.btn-sm { padding: 13px 22px; font-size: 12px; }

/* ─── Sections ─── */
section { padding: 130px 0; position: relative; }
.section-head { text-align: center; margin-bottom: 88px; }
.section-head h2 {
  font-size: clamp(36px, 4.4vw, 56px);
  margin: 24px auto 0;
  max-width: 18ch;
  line-height: 1.15;
  font-weight: 400;
}
.section-head h2 em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}
.section-head .lede {
  font-style: italic;
  color: var(--text-dim);
  margin-top: 22px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-size: 27px;
}

/* ─── Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.12s; }
.reveal.delay-2 { transition-delay: 0.24s; }
.reveal.delay-3 { transition-delay: 0.36s; }
.reveal.delay-4 { transition-delay: 0.48s; }

/* ─── Footer ─── */
footer.site {
  padding: 88px 0 44px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg);
}
footer.site .row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
footer.site .desc {
  font-style: italic;
  color: var(--text-dim);
  margin-top: 22px;
  max-width: 38ch;
  font-size: 25px;
}
footer.site h4 {
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 18px;
}
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { padding: 7px 0; }
footer.site a {
  color: var(--text);
  text-decoration: none;
  font-size: 23px;
  transition: color 0.2s ease;
}
footer.site a:hover { color: var(--gold-bright); }
footer.site .legal {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
footer.site .disclaimer {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-faint);
  font-size: 20px;
  text-align: center;
  margin-top: 20px;
  line-height: 1.65;
}

::selection { background: var(--gold); color: #18130a; }

/* ─── Mobile (shared) ─── */
@media (max-width: 900px) {
  body { font-size: 18px; line-height: 1.55; }
  .wrap { padding: 0 20px; }
  nav.top .inner { padding: 13px 20px; gap: 14px; }
  .nav-links { display: none; }
  .logo-mark { width: 34px; height: 34px; }
  .logo-text { font-size: 14px; letter-spacing: 0.22em; }
  .logo-text small { display: none; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 40px; }
  .section-head h2 { letter-spacing: 0.04em; }
  .section-head .lede { font-size: 17px; margin-top: 16px; }
  .eyebrow { font-size: 11px; letter-spacing: 0.32em; gap: 10px; }
  .eyebrow::before, .eyebrow::after { width: 18px; }
  .btn { padding: 14px 22px; font-size: 12px; letter-spacing: 0.26em; }
  .btn-sm { padding: 11px 18px; font-size: 11px; }
  footer.site { padding: 56px 0 32px; }
  footer.site .row { grid-template-columns: 1fr; gap: 32px; margin-bottom: 36px; }
  footer.site .desc { font-size: 16px; margin-top: 16px; }
  footer.site a { font-size: 16px; }
  footer.site h4 { font-size: 11px; margin-bottom: 14px; }
  footer.site .legal { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12px; }
  footer.site .disclaimer { font-size: 14px; margin-top: 14px; line-height: 1.55; }
}

/* ─── Small phones ─── */
@media (max-width: 520px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 16px; }
  nav.top .inner { padding: 11px 16px; gap: 10px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-text { font-size: 12.5px; letter-spacing: 0.18em; }
  section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head .lede { font-size: 15.5px; }
  .btn { padding: 13px 18px; font-size: 11px; letter-spacing: 0.22em; gap: 8px; }
  footer.site { padding: 44px 0 28px; }
  footer.site .row { gap: 26px; margin-bottom: 28px; }
}

/* ─── Blog: unique view counter (тихий блок внизу страницы) ─── */
.post-stats {
  text-align: center;
  padding: 0 0 48px;
}
.view-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: 0;
  transition: opacity 0.6s ease;
}
.view-counter.is-loaded { opacity: 0.55; }
.view-counter:hover { opacity: 0.9; }
.view-counter .count {
  color: var(--text-dim);
  font-weight: 500;
}
