/* Натальная карта — «хвойный вечер»: глубокая зелень, слоновая кость, матовый бархатец.
 * Плоско, без свечения и градиентов; характер — из палитры и типографики, не из эффектов. */
:root {
  --bg: #1b2420;
  --bg2: #16201b;
  --panel: #212c27;
  --panel2: #26332d;
  --line: #3a4a42;
  --line-soft: #2e3c35;
  --text: #e9e2d0;
  --head: #f2ecd9;
  --dim: #9aa694;
  --accent: #d9a05b;
  --accent-deep: #b3824a;
  --accent-ink: #232f28;
  --accent-soft: #2e3a30;
  --good: #8fae8a;
  --warn: #c9a86e;
  --bad: #d18778;
  --radius: 8px;
  --display: 'Playfair Display', 'Literata', Georgia, 'Times New Roman', serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --sans: 'Golos Text', 'Segoe UI', system-ui, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 var(--serif);
}
h1, h2, h3, .brand { font-family: var(--display); font-weight: 600; }
.tab, button, select, input, .badge { font-family: var(--sans); }
::selection { background: rgba(217, 160, 91, .28); }

/* ---------- шапка ---------- */
.top { border-bottom: 1px solid var(--line-soft); background: var(--bg); }
.top-inner { max-width: 1080px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; }
.brand { color: var(--head); text-decoration: none; font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.brand:hover .brand-dom { color: var(--accent); }
.brand-dot { margin: 0 6px; color: var(--accent); }
.brand-dom { font-size: 13px; color: var(--dim); font-weight: 400; transition: color .15s; }
.tagline { font-size: 12.5px; color: var(--dim); }

/* ---------- герой ---------- */
.hero { max-width: 860px; margin: 0 auto; padding: 54px 20px 8px; text-align: center; }
.kicker { font-family: var(--sans); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.zodiac-strip { color: #5c6e62; font-size: 17px; letter-spacing: 13px; padding-left: 13px; margin: 0 0 14px; user-select: none; }
.hero h1 { font-family: var(--display); font-size: clamp(29px, 4.6vw, 46px); line-height: 1.12; margin: 0 0 16px; color: var(--head); font-weight: 600; letter-spacing: -0.01em; }
.hero .sub { color: var(--dim); font-size: 17px; max-width: 620px; margin: 0 auto 36px; }
.hero .sub em { color: var(--accent); font-style: normal; }

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: left;
}
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; position: relative; }
.field > span { color: var(--dim); font-family: var(--sans); display: flex; align-items: center; gap: 10px; }
.field-wide { grid-column: 1 / -1; }
input[type="date"], input[type="time"], input[type="text"], select {
  background: #19231e; color: var(--text); border: 1px solid var(--line);
  border-radius: 5px; padding: 11px 12px; font-size: 15px; outline: none;
}
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(217, 160, 91, .16); }
input::placeholder { color: #6d7a6e; }
.mini {
  border: 1px solid var(--line); background: transparent; color: var(--accent);
  font-size: 11.5px; padding: 2px 8px; border-radius: 20px; cursor: pointer;
}
.mini:hover { border-color: var(--accent); background: var(--accent-soft); }
.form-foot { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 20px; }
.check { font-size: 13.5px; color: var(--dim); display: flex; gap: 7px; align-items: center; font-family: var(--sans); }
.check input { accent-color: var(--accent); }
select { cursor: pointer; }
.btn-primary {
  margin-left: auto; background: var(--accent); color: var(--accent-ink);
  border: 1px solid var(--accent-deep); padding: 12px 28px; border-radius: 5px; font-size: 15.5px; font-weight: 650;
  cursor: pointer; letter-spacing: .3px;
}
.btn-primary:hover { background: #c8914e; }
.btn-primary:active { transform: translateY(1px); }
.hint { font-size: 13px; color: var(--warn); margin: 14px 0 0; font-family: var(--sans); }

/* ---------- автодополнение ---------- */
.ac-box {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: #222e28; border: 1px solid var(--line); border-radius: 0 0 5px 5px;
  max-height: 260px; overflow: auto; margin-top: 4px;
}
.ac-item { padding: 9px 12px; cursor: pointer; font-size: 14px; display: flex; justify-content: space-between; gap: 10px; font-family: var(--sans); border-bottom: 1px solid var(--line-soft); }
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item.active { background: var(--accent-soft); }
.ac-item .c-country { color: var(--dim); font-size: 12px; }

/* ---------- результат ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 40px 20px 80px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.tab {
  background: transparent; color: var(--dim); border: none; border-bottom: 2px solid transparent;
  padding: 10px 16px; font-size: 15px; cursor: pointer;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--head); border-bottom-color: var(--accent); }
.panel { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.wheel-wrap { max-width: 720px; margin: 0 auto; }
.wheel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-top: 18px; }
.btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 5px; cursor: pointer; font-size: 14px;
}
.btn:hover { border-color: var(--accent); color: var(--head); }
.btn-ghost { background: transparent; }
.share-note { font-size: 13px; color: var(--good); font-family: var(--sans); }
.fineprint { text-align: center; color: var(--dim); font-size: 12.5px; margin-top: 16px; }

/* ---------- таблицы ---------- */
.tables { display: grid; gap: 20px; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; font-family: var(--sans); }
table.data caption { text-align: left; color: var(--head); font-size: 15px; padding: 4px 0 10px; font-weight: 600; }
table.data th { text-align: left; color: var(--dim); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; }
table.data td { padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line-soft); }
table.data tr:hover td { background: #26332d; }
.glyph-cell { font-size: 18px; color: var(--accent); width: 34px; text-align: center; }
.retro { color: var(--bad); font-weight: 700; font-size: 12px; }
.house-num { color: var(--accent); }
.note { margin-top: 22px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 5px; font-size: 15px; }
.note b { color: var(--head); }

/* ---------- чтение ---------- */
.reading { max-width: 760px; margin: 0 auto; }
.reading h3 { color: var(--head); font-family: var(--display); font-size: 23px; margin: 36px 0 12px; border-bottom: 1px solid var(--line-soft); padding-bottom: 9px; letter-spacing: -0.005em; }
.reading p { margin: 0 0 12px; }
.reading .lead { font-size: 20px; color: var(--head); line-height: 1.55; }
.badge { display: inline-block; font-size: 11.5px; color: var(--accent); border: 1px solid var(--accent-deep); border-radius: 20px; padding: 2px 10px; margin-left: 8px; vertical-align: 2px; letter-spacing: .4px; background: transparent; }

/* ---------- баланс ---------- */
.balance { display: grid; gap: 26px; max-width: 640px; margin: 0 auto; }
.balance h3 { color: var(--head); font-family: var(--display); }
.bal-row { display: grid; grid-template-columns: 130px 1fr 44px; gap: 14px; align-items: center; font-family: var(--sans); }
.bal-bar { height: 12px; border-radius: 3px; background: #16201b; border: 1px solid var(--line-soft); overflow: hidden; }
.bal-fill { height: 100%; }
.bal-fire { background: #b07a63; }
.bal-earth { background: #7f9a68; }
.bal-air { background: #6f8ba6; }
.bal-water { background: #8d7cae; }
.bal-cardinal { background: #c2a061; }
.bal-fixed { background: #a07fa8; }
.bal-mutable { background: #6f9a8d; }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line-soft); padding: 30px 20px 40px; text-align: center; color: var(--dim); font-size: 12.5px; }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--accent); }
.foot p { max-width: 760px; margin: 0 auto 8px; }

/* ---------- адаптив ---------- */
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
  .card { padding: 20px 16px; }
  .btn-primary { margin-left: 0; width: 100%; }
  .bal-row { grid-template-columns: 90px 1fr 36px; }
  .tables { overflow-x: auto; }
  table.data { min-width: 480px; }
  .zodiac-strip { letter-spacing: 9px; padding-left: 9px; font-size: 15px; }
}
