@font-face{font-family:"Playfair Display";font-style:normal;font-weight:500;src:url(/static/fonts/playfair-500-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:500;src:url(/static/fonts/playfair-500-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:700;src:url(/static/fonts/playfair-700-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:700;src:url(/static/fonts/playfair-700-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:800;src:url(/static/fonts/playfair-800-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Playfair Display";font-style:normal;font-weight:800;src:url(/static/fonts/playfair-800-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;src:url(/static/fonts/inter-400-cyrillic-ext.woff2) format("woff2");unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;src:url(/static/fonts/inter-400-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;src:url(/static/fonts/inter-400-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;src:url(/static/fonts/inter-500-cyrillic-ext.woff2) format("woff2");unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;src:url(/static/fonts/inter-500-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:500;src:url(/static/fonts/inter-500-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;src:url(/static/fonts/inter-600-cyrillic-ext.woff2) format("woff2");unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;src:url(/static/fonts/inter-600-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;src:url(/static/fonts/inter-600-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;src:url(/static/fonts/inter-700-cyrillic-ext.woff2) format("woff2");unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;src:url(/static/fonts/inter-700-cyrillic.woff2) format("woff2");unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;src:url(/static/fonts/inter-700-latin.woff2) format("woff2");unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

:root {
  --paper: #f4efe5;
  --paper2: #efe8d9;
  --card: #fbf7ef;
  --ink: #221e17;
  --ink2: #4a4337;
  --muted: #7d7463;
  --hairline: rgba(34, 30, 23, 0.16);
  --gold: #9c7c31;
  --gold2: #c9a65a;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --shadow: 0 1px 2px rgba(34, 30, 23, 0.05), 0 10px 28px -20px rgba(34, 30, 23, 0.35);
}

* { box-sizing: border-box; }

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

/* Лёгкая бумажная фактура */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.045'/%3E%3C/svg%3E");
}

h1, h2, h3, .logo { font-family: var(--serif); font-weight: 700; }

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* ---------- Скроллбар и выделение ---------- */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: rgba(34, 30, 23, 0.28); border-radius: 8px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: rgba(34, 30, 23, 0.45); }
::selection { background: rgba(156, 124, 49, 0.22); color: var(--ink); }
:focus-visible { outline: 1.5px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

/* ---------- Шапка ---------- */

.site-header {
  background: rgba(244, 239, 229, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 15px;
  padding-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  letter-spacing: 0.5px;
  color: var(--ink);
  text-decoration: none;
}
.logo-star { color: var(--gold); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; }
.nav a {
  color: var(--ink2);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.2px;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- Герой ---------- */

.hero { padding: 56px 0 12px; text-align: center; }
.hero-eyebrow {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 4.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 60px);
  letter-spacing: -0.5px;
  line-height: 1.06;
  color: var(--ink);
}
.hero-sub { color: var(--muted); margin: 0 auto; max-width: 640px; font-size: 17px; line-height: 1.75; }
.hero-medallion { margin: 34px auto 8px; width: min(300px, 66vw); }

/* ---------- Зодиакальный медальон (гравюра) ---------- */

.wheel { animation: wheelFloat 9s ease-in-out infinite; }
.wheel svg { width: 100%; height: auto; display: block; }
.wheel-glyphs {
  animation: wheelSpin 120s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes wheelFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- Карточки знаков ---------- */

.signs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; padding: 26px 0; }
.signs-grid.small { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

.sign-card {
  --el-a: var(--gold);
  --el-b: var(--gold2);
  --el-glow: rgba(156, 124, 49, 0.22);
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 26px 16px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.sign-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0deg, var(--el-a) 55deg, var(--el-b) 130deg, transparent 210deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --ang: 360deg; } }
.sign-card:hover {
  transform: translateY(-3px);
  border-color: var(--el-a);
  box-shadow: 0 2px 4px rgba(34, 30, 23, 0.06), 0 18px 38px -20px var(--el-glow);
}
.sign-card:hover::before { opacity: 1; animation: borderSpin 4s linear infinite; }
.sign-card.full { align-items: flex-start; text-align: left; }

/* Стихийные цвета (приглушённые, чернильные) */
[data-el] { --el-a: var(--gold); --el-b: var(--gold2); --el-glow: rgba(156, 124, 49, 0.22); }
[data-el="fire"]   { --el-a: #b0492d; --el-b: #c87c3e; --el-glow: rgba(176, 73, 45, 0.22); }
[data-el="earth"]  { --el-a: #4f7a36; --el-b: #8aa554; --el-glow: rgba(79, 122, 54, 0.22); }
[data-el="air"]    { --el-a: #3d6d8c; --el-b: #7fa0be; --el-glow: rgba(61, 109, 140, 0.22); }
[data-el="water"]  { --el-a: #4a4a8f; --el-b: #7b7bbf; --el-glow: rgba(74, 74, 143, 0.22); }

.sign-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  color: var(--el-a);
  border: 1px solid var(--el-a);
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, transform 0.25s ease;
}
.sign-card:hover .sign-symbol { background: var(--el-a); color: #fbf7ef; transform: scale(1.06); }
.sign-symbol.big { width: 72px; height: 72px; font-size: 38px; border-width: 1.5px; }

.sign-name { font-weight: 700; font-size: 18px; font-family: var(--serif); letter-spacing: 0.3px; }
.sign-mood { color: var(--muted); font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; }
.sign-card.full h2 { margin: 0; font-size: 20px; }
.sign-card.full p { margin: 4px 0; font-size: 14.5px; }
.mini { color: var(--muted); font-size: 13px !important; }
.mini a { color: var(--gold); }

/* ---------- Совместимость ---------- */

.compat-list { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; }
.compat-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.compat-item:hover { border-color: rgba(34, 30, 23, 0.32); transform: translateX(3px); }
.compat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.compat-head a { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-size: 17px; font-family: var(--serif); }
.compat-head a:hover { color: var(--gold); }
.compat-head .score { font-weight: 700; font-size: 19px; color: var(--gold); letter-spacing: 0.2px; font-family: var(--serif); }
.bar { height: 5px; background: rgba(34, 30, 23, 0.08); border-radius: 3px; margin: 12px 0; overflow: hidden; }
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--el-a, var(--gold)), var(--el-b, var(--gold2)));
  border-radius: 3px;
  animation: growBar 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes growBar { from { width: 0; } }

/* ---------- Секции ---------- */

.section { padding: 30px 0 44px; }
.section h2 {
  font-size: 27px;
  margin: 0 0 8px;
  padding-top: 24px;
  position: relative;
}
.section h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 36px;
  height: 1px;
  background: var(--gold);
}

/* ---------- Новости ---------- */

.news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.news-item {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 17px 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.news-item:hover { transform: translateX(3px); border-color: rgba(34, 30, 23, 0.32); }
.news-link { color: var(--ink); text-decoration: none; font-size: 16.5px; font-weight: 600; line-height: 1.5; }
.news-link:hover { color: var(--gold); }
.news-meta { color: var(--muted); font-size: 12.5px; display: block; margin-top: 4px; letter-spacing: 0.3px; }
.news-desc { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.more-link { color: var(--gold); text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(156, 124, 49, 0.35); }
.more-link:hover { color: #7c5f26; border-color: rgba(124, 95, 38, 0.6); }

/* ---------- Страница знака ---------- */

.sign-page, .article {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 30px 28px;
  margin-top: 26px;
  box-shadow: var(--shadow);
}
.crumbs { color: var(--muted); font-size: 13px; margin-bottom: 20px; letter-spacing: 0.3px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.sign-head { text-align: center; padding: 10px 0 18px; }
.sign-head h1 { margin: 14px 0 4px; font-size: clamp(26px, 4.5vw, 38px); letter-spacing: -0.3px; }
.dates { color: var(--muted); margin: 0; font-size: 13px; letter-spacing: 0.6px; text-transform: uppercase; }
.static-desc { color: var(--muted); font-size: 15px; margin-top: 10px; }
.intro { font-size: 17px; margin-top: 12px; }
.intro strong { color: var(--el-a, var(--gold)); font-weight: 600; }

.blocks { display: grid; gap: 14px; margin-top: 24px; }
.block {
  background: var(--paper2);
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--el-a, var(--gold));
  border-radius: 10px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.block:hover { border-color: rgba(34, 30, 23, 0.3); box-shadow: var(--shadow); }
.block h2 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--el-a, var(--gold));
}
.block p { margin: 0; font-size: 15.5px; line-height: 1.75; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--paper2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--muted);
}
.chip-label {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 700;
}
.chip b { color: var(--ink); font-weight: 600; }

.advice {
  margin-top: 24px;
  font-size: 17px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
  background: var(--paper2);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  padding: 18px 22px;
}
.also-link { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.also-link a { color: var(--gold); text-decoration: none; font-weight: 600; width: fit-content; }
.also-link a:hover { color: #7c5f26; }

.article h1 { font-size: clamp(21px, 3.5vw, 29px); margin: 10px 0 8px; line-height: 1.35; }
.article-text { font-size: 16px; color: var(--muted); line-height: 1.75; }

/* ---------- Подвал ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; margin: 12px 0 0; justify-content: center; }
.footer-links a { color: var(--ink2); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ---------- Появление при скролле ---------- */

.reveal { opacity: 0; }
.reveal.in { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wheel, .wheel-glyphs { animation: none; }
  .reveal { opacity: 1; }
  .reveal.in { animation: none; }
  .bar span { animation: none; }
}

@media (max-width: 480px) {
  .signs-grid { grid-template-columns: repeat(2, 1fr); }
  .signs-grid.small { grid-template-columns: repeat(2, 1fr); }
  .sign-page, .article { padding: 24px 18px; }
  .nav { gap: 14px; }
}
