/*
 * Гороскоп — стили. Все правила ограничены контейнером .horoscope-app,
 * чтобы не конфликтовать со стилями сайта и других сервисов.
 */

.horoscope-app {
  --hs-bg: #0a090d;
  --hs-gold: #c9a961;
  --hs-gold-hi: #e6cf94;
  --hs-line: rgba(201, 169, 97, .28);
  --hs-line-soft: rgba(201, 169, 97, .14);
  --hs-text: #ece6d9;
  --hs-text-2: #cfc8d8;
  --hs-muted: #a39cae;
  --hs-focus: #f0d999;
  --hs-good: #9fd3a8;
  --hs-tense: #e9a594;
  --hs-serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --hs-sans: 'Manrope', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --hs-ease: cubic-bezier(.22, .7, .2, 1);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--hs-text);
  font-family: var(--hs-sans);
  font-size: 16px;
  line-height: 1.65;
  background:
    radial-gradient(800px 480px at 50% -4%, rgba(230, 207, 148, .13), transparent 60%),
    radial-gradient(1200px 700px at 50% 0%, rgba(60, 60, 130, .32), transparent 65%),
    radial-gradient(900px 700px at 0% 70%, rgba(40, 28, 70, .32), transparent 60%),
    linear-gradient(180deg, var(--hs-bg) 0%, #0e0c18 45%, var(--hs-bg) 100%);
  padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 80px);
  -webkit-font-smoothing: antialiased;
}
.horoscope-app *, .horoscope-app *::before, .horoscope-app *::after { box-sizing: border-box; }
.horoscope-app [hidden] { display: none !important; }
.horoscope-app img { max-width: 100%; display: block; }
.horoscope-app button, .horoscope-app input { font: inherit; color: inherit; }
.horoscope-app :focus-visible { outline: 2px solid var(--hs-focus); outline-offset: 3px; }
:where(.horoscope-app) p { margin: 0 0 12px; }
.horoscope-page { margin: 0; background: #0a090d; }

.hs-sky {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .6;
  background-image:
    radial-gradient(1px 1px at 14% 20%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 10%, #fff6 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 38% 46%, #e6cf9480 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 52%, #fff5 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 24% 76%, #e6cf9466 50%, transparent 51%),
    radial-gradient(1px 1px at 60% 86%, #fff5 50%, transparent 51%);
  background-size: 360px 360px;
}

/* ---------- Типографика ---------- */
.hs-hero { text-align: center; max-width: 800px; margin: 0 auto clamp(24px, 4vw, 40px); }
.hs-hero__emblem { width: 240px; height: 120px; max-width: 80%; margin: 0 auto 10px; filter: drop-shadow(0 0 14px rgba(230, 200, 130, .35)); }
.hs-hero__title {
  font-family: var(--hs-serif); font-weight: 600; letter-spacing: .02em;
  font-size: clamp(42px, 7vw, 68px); line-height: 1.05; margin: 0 0 14px;
  background: linear-gradient(180deg, #f3e3b6 0%, var(--hs-gold) 70%, #a88848 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hs-hero__lead { color: var(--hs-muted); font-size: clamp(16px, 2.2vw, 19px); margin: 0 auto !important; max-width: 620px; text-wrap: balance; }
.hs-h2 { font-family: var(--hs-serif); font-weight: 600; color: var(--hs-gold-hi); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; margin: 0 0 16px; }
.hs-h3 { font-family: var(--hs-serif); font-weight: 600; color: var(--hs-gold-hi); font-size: clamp(21px, 2.6vw, 25px); line-height: 1.2; margin: 0 0 8px; }

/* ---------- Панели ---------- */
.hs-panel {
  position: relative; max-width: 1040px; margin: 0 auto clamp(24px, 4vw, 40px);
  padding: clamp(22px, 4vw, 44px);
  background: linear-gradient(180deg, rgba(30, 28, 34, .78), rgba(18, 16, 22, .82));
  border: 1px solid rgba(201, 169, 97, .2); border-radius: 22px;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .03);
}
.hs-panel::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--hs-line-soft); border-radius: 16px; pointer-events: none; }
.hs-panel > * { position: relative; }
.hs-picker > .hs-h2 { text-align: center; }

/* ---------- Кнопки и поля ---------- */
.hs-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 22px; border-radius: 999px; cursor: pointer; text-decoration: none;
  border: 1px solid var(--hs-line); background: rgba(10, 9, 14, .5); color: var(--hs-text) !important;
  font-weight: 600; font-size: 15px; letter-spacing: .02em; line-height: 1.2;
  transition: border-color .2s, background .2s, transform .2s var(--hs-ease);
}
.hs-btn:hover { border-color: var(--hs-gold); background: rgba(201, 169, 97, .08); }
.hs-btn:active { transform: translateY(1px); }
.hs-btn--primary { color: #1a1408 !important; border-color: transparent; background: linear-gradient(180deg, #ecd79f 0%, #c9a961 55%, #a98a48 100%); box-shadow: 0 10px 30px -12px rgba(201, 169, 97, .6), inset 0 1px 0 rgba(255, 255, 255, .45); }
.hs-btn--primary:hover { background: linear-gradient(180deg, #f3e2b2 0%, #d4b56d 55%, #b39350 100%); }
.hs-btn--ghost { border-color: transparent; background: transparent; color: var(--hs-muted) !important; font-weight: 500; }
.hs-btn--ghost:hover { color: var(--hs-text) !important; background: transparent; border-color: var(--hs-line-soft); }
.hs-btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.horoscope-app .hs-btn:focus-visible { outline-offset: 4px; }
.hs-input { min-height: 46px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--hs-line-soft); background: rgba(8, 7, 12, .65); color: var(--hs-text); color-scheme: dark; }
.hs-input:focus { outline: none; border-color: var(--hs-gold); box-shadow: 0 0 0 3px rgba(201, 169, 97, .2); }

/* ---------- Выбор знака ---------- */
.hs-signs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.hs-sign {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 6px 12px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--hs-line-soft); background: rgba(10, 9, 14, .45); text-align: center;
  transition: border-color .2s, background .2s, transform .2s var(--hs-ease), box-shadow .2s;
}
.hs-sign:hover { border-color: var(--hs-line); transform: translateY(-2px); }
.hs-sign[aria-pressed="true"] { border-color: var(--hs-gold); background: linear-gradient(180deg, rgba(201, 169, 97, .14), rgba(10, 9, 14, .4)); box-shadow: 0 0 0 1px rgba(201, 169, 97, .25), 0 12px 30px -16px rgba(201, 169, 97, .5); }
.hs-sign__symbol { font-size: 30px; line-height: 1.2; color: var(--hs-gold); }
.hs-sign__name { font-family: var(--hs-serif); font-size: 20px; font-weight: 600; color: var(--hs-gold-hi); line-height: 1.15; }
.hs-sign__dates { font-size: 11.5px; color: var(--hs-muted); line-height: 1.3; }
.hs-bd { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hs-line-soft); text-align: center; }
.hs-bd__label { display: block; color: var(--hs-text-2); font-size: 15px; margin-bottom: 10px; }
.hs-bd__row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hs-error { margin: 12px auto 0 !important; max-width: 420px; padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(230, 120, 110, .45); background: rgba(230, 120, 110, .08); color: #f1b7ae; font-size: 14px; }

/* ---------- Прогноз ---------- */
.hs-forecast { animation: hs-rise .7s var(--hs-ease) both; }
.hs-head { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 18px; align-items: center; max-width: 860px; margin: 0 auto 22px; }
.hs-head__symbol { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; border: 1px solid var(--hs-line); font-size: 44px; color: var(--hs-gold); background: radial-gradient(circle, rgba(230, 207, 148, .18), transparent 70%); }
.hs-head__name { font-family: var(--hs-serif); font-size: clamp(30px, 4.4vw, 44px); font-weight: 600; color: var(--hs-gold-hi); margin: 0; line-height: 1.1; outline: none; }
.hs-head__meta { color: var(--hs-muted); font-size: 14px; margin: 2px 0 2px !important; }
.hs-head__trait { color: var(--hs-text-2); font-size: 15px; margin: 0 !important; }

.hs-tabs { display: flex; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 24px; padding: 5px; border-radius: 999px; border: 1px solid var(--hs-line); background: rgba(10, 9, 14, .55); }
.hs-tab { min-height: 44px; padding: 9px 22px; border: 0; border-radius: 999px; background: none; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--hs-muted) !important; transition: background .2s, color .2s; }
.hs-tab:hover { color: var(--hs-text) !important; }
.hs-tab[aria-selected="true"] { color: #1a1408 !important; background: linear-gradient(180deg, #ecd79f 0%, #c9a961 55%, #a98a48 100%); }

.hs-body { max-width: 860px; margin: 0 auto; }
.hs-body.is-in { animation: hs-rise .5s var(--hs-ease) both; }
.hs-date { text-align: center; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--hs-gold); margin: 0 0 4px !important; }
.hs-skyline { text-align: center; color: var(--hs-muted); font-size: 14.5px; }
.hs-skyline b { color: var(--hs-text-2); font-weight: 600; }
.hs-day-title { text-align: center; font-family: var(--hs-serif); font-size: clamp(32px, 4.8vw, 46px); font-weight: 600; color: var(--hs-gold-hi); line-height: 1.1; margin: 8px 0 14px; }
.hs-lead { font-size: 17.5px; line-height: 1.7; color: var(--hs-text); }
.hs-tone { color: var(--hs-text-2); }
.hs-note { padding: 10px 16px; border-radius: 12px; border: 1px dashed var(--hs-line); color: var(--hs-text-2); font-size: 14.5px; }

.hs-ratings { list-style: none; margin: 20px 0; padding: 14px 18px; display: flex; flex-wrap: wrap; justify-content: space-around; gap: 10px 24px; border-radius: 14px; border: 1px solid var(--hs-line-soft); background: rgba(10, 9, 14, .45); }
.hs-rating { display: flex; align-items: center; gap: 10px; }
.hs-rating__label { font-size: 14px; color: var(--hs-text-2); }
.hs-stars { display: inline-flex; gap: 3px; }
.hs-stars i { width: 15px; height: 15px; background: rgba(201, 169, 97, .2); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.hs-stars i.is-on { background: linear-gradient(180deg, #f3e2b2, #c9a961); }

.hs-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.hs-card { padding: 18px 20px; border-radius: 16px; border: 1px solid var(--hs-line-soft); background: rgba(10, 9, 14, .5); }
.hs-card p { color: var(--hs-text-2); font-size: 15px; margin: 0 !important; }
.hs-card__kicker { margin: 0 0 6px !important; font-size: 12.5px !important; letter-spacing: .1em; text-transform: uppercase; color: var(--hs-gold) !important; }

.hs-advice { margin: 22px auto 0; text-align: center; padding: 20px 24px; border-radius: 16px; border: 1px solid var(--hs-line); background: radial-gradient(500px 160px at 50% 0, rgba(201, 169, 97, .12), transparent 70%), rgba(10, 9, 14, .5); }
.hs-advice__label { display: block; font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--hs-gold); margin-bottom: 6px; }
.hs-advice p { margin: 0 !important; font-family: var(--hs-serif); font-style: italic; font-size: clamp(20px, 2.6vw, 24px); line-height: 1.35; color: var(--hs-gold-hi); }

.hs-compat { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 16px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--hs-line-soft); background: rgba(10, 9, 14, .5); }
.hs-compat__symbol { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--hs-line); font-size: 28px; color: var(--hs-gold); }
.hs-compat__text { margin: 0 !important; color: var(--hs-text); }

/* Неделя */
.hs-week { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hs-week__day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--hs-line-soft); background: rgba(10, 9, 14, .45); text-align: center; }
.hs-week__day.is-good { border-color: rgba(159, 211, 168, .45); background: rgba(159, 211, 168, .07); }
.hs-week__day.is-tense { border-color: rgba(233, 165, 148, .45); background: rgba(233, 165, 148, .07); }
.hs-week__day.is-today { box-shadow: 0 0 0 2px var(--hs-gold); }
.hs-week__wd { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-muted); }
.hs-week__num { font-family: var(--hs-serif); font-size: 24px; font-weight: 600; color: var(--hs-gold-hi); line-height: 1.1; font-variant-numeric: lining-nums; }
.hs-week__moon { font-size: 18px; color: var(--hs-gold); }
.hs-week__state { font-size: 11px; color: var(--hs-muted); }
.hs-week__day.is-good .hs-week__state { color: var(--hs-good); }
.hs-week__day.is-tense .hs-week__state { color: var(--hs-tense); }
.hs-weeknotes { margin: 0 0 16px; padding: 0 0 0 20px; color: var(--hs-text-2); }
.hs-weeknotes li { margin-bottom: 6px; }
.hs-weeknotes li::marker { color: var(--hs-gold); }
.hs-weeknotes b { color: var(--hs-text); font-weight: 600; }

.hs-disclaimer { font-size: 13px; color: var(--hs-muted); max-width: 860px; margin: 24px auto 0 !important; padding-top: 14px; border-top: 1px solid var(--hs-line-soft); text-align: center; }
.hs-actions { display: flex; justify-content: center; margin-top: 10px; }

.hs-consult { text-align: center; margin: 26px auto 0; max-width: 760px; padding: clamp(24px, 4vw, 40px); border-radius: 18px; border: 1px solid var(--hs-line); background: radial-gradient(600px 220px at 50% 0, rgba(201, 169, 97, .12), transparent 70%), rgba(10, 9, 14, .5); }
.hs-consult__ornament { color: var(--hs-gold); font-size: 20px; }
.hs-consult .hs-h3 { margin-top: 6px; font-size: clamp(24px, 3.2vw, 30px); }
.hs-consult p { color: var(--hs-muted); max-width: 560px; margin: 0 auto 22px; }

/* ---------- Информация ---------- */
.hs-info__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.hs-info p { color: var(--hs-text-2); }
.hs-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.hs-steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; color: var(--hs-text-2); }
.hs-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--hs-line); border-radius: 50%; font-family: var(--hs-serif); color: var(--hs-gold); font-size: 17px; font-variant-numeric: lining-nums; }
.hs-steps b { color: var(--hs-text); }

@keyframes hs-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .hs-signs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hs-areas { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hs-hero__emblem { width: 200px; height: 100px; }
  .hs-signs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hs-sign__name { font-size: 18px; }
  .hs-head { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .hs-head__symbol { width: 64px; height: 64px; font-size: 34px; }
  .hs-tab { padding: 9px 16px; font-size: 14.5px; }
  .hs-info__grid { grid-template-columns: 1fr; }
  .hs-week { gap: 4px; }
  .hs-week__day { padding: 8px 2px; border-radius: 10px; }
  .hs-week__num { font-size: 20px; }
  .hs-week__state { display: none; }
  .hs-compat { grid-template-columns: 48px minmax(0, 1fr); }
  .hs-compat__symbol { width: 48px; height: 48px; font-size: 24px; }
  .hs-compat .hs-btn { grid-column: 1 / -1; }
  .hs-ratings { flex-direction: column; align-items: stretch; }
  .hs-rating { justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .horoscope-app *, .horoscope-app *::before, .horoscope-app *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
