/* Экадаши. Шапка и подвал — настоящие, из маркетинговых страниц (Tailwind-утилиты
   из /pages/dharmika.css); здесь только содержимое страницы. Токены берём из
   /pages/theme.css, чтобы раздел выглядел как остальной сайт. */

:root {
  --paper: var(--ds-paper, #fcfbf9);
  --card: #ffffff;
  --alabaster: var(--ds-alabaster, #f5f3ee);
  --linen: var(--ds-linen, #eae6df);
  --linen-strong: #d8d0c3;
  --ink: var(--ds-ink, #1a1a18);
  --graphite: var(--ds-graphite, #5c5c58);
  --muted: var(--ds-stone, #6e6c68);
  --gold: var(--ds-gold, #d4a05b);
  --gold-text: var(--ds-gold-dark, #8a6228);
  --ok: #1f6b4a;
  --bad: #a02a22;
  --night: #2a2a36;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --shadow: 0 24px 60px -46px rgba(42, 42, 40, 0.45);
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  /* Только горизонтальные отступы: `padding: 0 24px` затёр бы padding-top у
     `.pg-main` (отступ под фиксированную шапку из site-chrome.css). */
  padding-left: 24px;
  padding-right: 24px;
}

/* Отступ под фиксированную шапку даёт /panchanga/site-chrome.css (.pg-main).
   Свой `main`-padding здесь перебивал бы его, и заголовок уезжал под шапку. */

h1,
h2,
h3 {
  margin: 0;
}
h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 4.8vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 em {
  font-style: italic;
}
h2 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
}
h3 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
}

.meta {
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 0;
  font-variant-numeric: tabular-nums;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--graphite);
  max-width: 62ch;
  margin: 14px 0 0;
}
.byline {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0 0;
}
.byline a {
  color: var(--graphite);
}
p {
  margin: 0 0 12px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.gold {
  color: var(--gold-text);
}
.tnum {
  font-variant-numeric: tabular-nums;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- хлебные крошки ---------- */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0 0;
}
.crumbs a {
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.crumbs span {
  margin: 0 7px;
}

/* ---------- панель выбора ---------- */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
}
.field label,
.lbl {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 8px;
}
select {
  min-height: 42px;
  border: 1px solid var(--linen-strong);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1 var(--sans);
  padding: 0 12px;
}
.geo {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--linen-strong);
  border-radius: 999px;
  background: var(--paper);
  color: var(--graphite);
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.geo:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--linen-strong);
  border-radius: 999px;
  background: var(--alabaster);
}
.segmented a,
.segmented button,
.segmented span {
  border-radius: 999px;
  padding: 8px 14px;
  font: 600 12px/1 var(--sans);
  letter-spacing: 0.04em;
  color: var(--graphite);
  text-decoration: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.segmented [aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}
.segmented a:hover,
.segmented button:hover {
  color: var(--ink);
}

/* ---------- ответ ---------- */
.answer {
  margin-top: 22px;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--linen);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.answer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 24px;
}
.verdict {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.05;
  margin: 0;
}
.verdict small {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.answer-meta {
  font-size: 14px;
  color: var(--graphite);
  text-align: right;
  margin: 0;
}
.answer-meta b {
  color: var(--ink);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 22px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--linen);
}
.fact dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.fact dd {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.fact dd small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 4px;
}
@media (max-width: 760px) {
  .facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- ведомость трёх дней ---------- */
.daygrid {
  margin: 26px 0 0;
}
.daygrid-title {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.day-row {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--linen);
}
.day-date {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.day-date small {
  display: block;
  font-weight: 500;
  font-size: 11px;
  color: var(--muted);
}
.day-track-wrap {
  position: relative;
  padding-bottom: 16px;
}
.day-ticks {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  line-height: 12px;
}
.day-ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
.day-ticks span.edge {
  transform: translateX(-100%);
}
.day-ticks span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 1px;
  height: 4px;
  background: currentColor;
  opacity: 0.55;
}
.day-ticks span.edge::before {
  left: auto;
  right: 0;
}
.day-track {
  position: relative;
  height: 26px;
  border-radius: 6px;
  background: var(--alabaster);
  border: 1px solid var(--linen);
  overflow: hidden;
}
.day-track .seg {
  position: absolute;
  top: 0;
  bottom: 0;
}
.day-track .seg.fast {
  background: var(--night);
  opacity: 0.92;
}
.day-track .seg.hv {
  background: repeating-linear-gradient(
    135deg,
    rgba(42, 42, 54, 0.85) 0 2px,
    rgba(42, 42, 54, 0.12) 2px 6px
  );
}
.day-track .seg.parana {
  background: rgba(212, 160, 91, 0.4);
  border-left: 1px solid var(--gold);
}
.day-track .sun {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(26, 26, 24, 0.35);
}
.day-summary {
  grid-column: 2;
  font-size: 12px;
  color: var(--graphite);
  margin: -4px 0 0;
}
.day-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  padding-top: 6px;
  font-variant-numeric: tabular-nums;
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--graphite);
  margin: 12px 0 0;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.swatch.fast {
  background: var(--night);
}
.swatch.hv {
  background: repeating-linear-gradient(
    135deg,
    var(--night) 0 2px,
    transparent 2px 5px
  );
  border: 1px solid rgba(42, 42, 54, 0.35);
}
.swatch.parana {
  background: var(--gold);
}
@media (max-width: 620px) {
  .day-row {
    grid-template-columns: 1fr;
  }
  .day-summary {
    grid-column: 1;
  }
}

/* ---------- секции ---------- */
.section {
  padding: 46px 0 0;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.section-head p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.section-note {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0 0;
  max-width: 70ch;
}

/* ---------- списки строк ---------- */
.rows {
  border-top: 1px solid var(--linen);
}
.row {
  display: grid;
  grid-template-columns: 132px 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--linen);
}
.row .date {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.row .name {
  font-size: 15px;
  font-weight: 600;
}
.row .name a {
  text-decoration: none;
}
.row .name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.row .name small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.row .time {
  font-size: 13px;
  color: var(--graphite);
  font-variant-numeric: tabular-nums;
}
.row .time b {
  color: var(--ink);
  font-weight: 600;
}
@media (max-width: 760px) {
  .row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
  }
  .row .date {
    grid-column: 1 / -1;
  }
}

/* ---------- таблица года ---------- */
.table-wrap {
  overflow-x: auto;
}
table.year {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
table.year thead th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 12px 8px 0;
  border-bottom: 1px solid var(--linen-strong);
}
table.year tbody th {
  text-align: left;
  font-weight: 600;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--linen);
  white-space: nowrap;
}
table.year tbody td {
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--linen);
  color: var(--graphite);
  vertical-align: top;
}
table.year tbody td b {
  color: var(--ink);
  font-weight: 600;
}
table.year tbody td small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
table.year .month-row th {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 20px;
  padding: 22px 0 6px;
  border-bottom: 0;
  color: var(--ink);
}
@media (max-width: 820px) {
  table.year thead {
    display: none;
  }
  table.year,
  table.year tbody,
  table.year tr,
  table.year th,
  table.year td {
    display: block;
    width: 100%;
  }
  table.year tbody th {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  table.year tbody td {
    border-bottom: 0;
    padding: 2px 0;
  }
  table.year tbody tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--linen);
  }
  table.year tbody td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--muted);
    font-size: 12px;
  }
  table.year .month-row th {
    padding-top: 26px;
    border-bottom: 1px solid var(--linen-strong);
  }
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  vertical-align: 1px;
}
.tag.ink {
  background: var(--night);
  color: var(--paper);
}
.tag.mid {
  background: var(--alabaster);
  border: 1px solid var(--linen-strong);
  color: var(--graphite);
}

/* ---------- объяснения и глоссарий ---------- */
.explain {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.explain p {
  font-size: 14px;
  color: var(--graphite);
  margin: 6px 0 0;
}
@media (max-width: 760px) {
  .explain {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .glossary {
    grid-template-columns: 1fr;
  }
}
.glossary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: 0;
}
.glossary dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.glossary dd {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--graphite);
}

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--linen);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
}
.faq details[open] summary::after {
  content: "−";
}
.faq p {
  font-size: 14px;
  color: var(--graphite);
  margin: 8px 0 0;
  max-width: 74ch;
}

/* ---------- оффер ---------- */
.offer {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 28px;
  align-items: start;
  margin-top: 46px;
  padding: 26px;
  border: 1px solid var(--linen);
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, var(--alabaster));
}
.offer .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  margin: 0 0 8px;
}
.offer .lead {
  font-size: 15px;
  color: var(--graphite);
  margin-top: 12px;
  max-width: 60ch;
}
.offer-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}
.offer-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--graphite);
  margin-bottom: 10px;
}
.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.offer-list b {
  color: var(--ink);
}
.pricecard {
  padding: 20px;
  border: 1px solid var(--linen-strong);
  border-radius: 12px;
  background: var(--card);
}
.pricecard .amount {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 46px;
  line-height: 1;
}
.pricecard .per {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 16px;
}
.pricecard .alt {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--graphite);
}
.pricecard .risk {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 0;
}
.trustline {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--linen);
  padding-top: 14px;
}
.trustline b {
  color: var(--ink);
}
@media (max-width: 860px) {
  .offer {
    grid-template-columns: 1fr;
  }
}

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font: 600 13px/1 var(--sans);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover {
  opacity: 0.88;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--linen-strong);
}
.btn.ghost:hover {
  border-color: var(--ink);
  opacity: 1;
}
.btn.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}
.answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ---------- метод и города ---------- */
.method {
  margin: 42px 0 0;
  padding: 16px 0 40px;
  border-top: 1px solid var(--linen);
  font-size: 12px;
  color: var(--muted);
  max-width: 80ch;
}
.method a {
  color: var(--graphite);
}
.cities {
  font-size: 13px;
  line-height: 1.95;
}
.cities a {
  color: var(--graphite);
  text-decoration: none;
}
.cities a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media print {
  nav.fixed,
  footer,
  .offer,
  .answer-actions,
  .btn,
  .toolbar,
  .sticky-cta {
    display: none !important;
  }
  body {
    background: #fff;
  }
  .answer {
    box-shadow: none;
    border-color: #ccc;
  }
}

/* ---------- Vrata story ---------- */
.story p {
  max-width: 70ch;
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--graphite);
}
.story p:last-child {
  margin-bottom: 0;
}
