/* Новая главная astrology.pro (2026-09-24). Всё замкнуто в .hp; старый лендинг — ?design=old. */

.hp {
  --ink: #2d242e;
  --mute: #6b6170;
  --line: #e2dfe6;
  --soft: #f6f5f8;
  --acc: #5976dd;
  --acc2: #8e59dd;
  --sec: #4f6cd3;
  --glow: #7896ff;
  --menu: #37284a;
  --gold: #f6c343;
  --fav: #4f73f0;
  --out: #d23f7a;
  --sh: 8px 7px 0 rgba(79, 108, 211, .3);
  font-family: 'Proxima Nova', 'Open Sans', Arial, sans-serif;
  color: var(--ink);
  background: #f3f3f3;
}

.hp *,
.hp *::before,
.hp *::after { box-sizing: border-box; }

.hp img { max-width: 100%; }
.hp a { color: var(--acc); text-decoration: none; }
.hp a:hover { color: var(--acc2); }
.hp h1, .hp h2, .hp h3, .hp p { margin: 0; }
/* только собственные иконки страницы: у круга карты свой viewBox и свои цвета */
.hp svg[viewBox="0 0 24 24"] { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }

.hp-wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* у сайта main.content{padding-bottom:344px} — под этой страницей он не нужен */
main.content:has(> .hp) { padding-bottom: 0; }

/* ---------- первый экран ---------- */

.hp-hero { position: relative; overflow: hidden; background: var(--sec); }
.hp-glow {
  position: absolute; right: -240px; top: -320px; width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, var(--glow) 0%, rgba(120, 150, 255, 0) 100%); opacity: .8;
}
.hp-hero-grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 372px;
  gap: 48px; align-items: start; padding-top: 48px; padding-bottom: 52px;
}
.hp-hero-main { display: flex; flex-direction: column; gap: 18px; }
.hp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #dfe5ff; }
.hp-hero h1 { font-size: 48px; line-height: 1.06; font-weight: 700; color: #fff; max-width: 720px; }
.hp-hero p { font-size: 18px; line-height: 1.5; color: #eef1ff; max-width: 660px; }
.hp-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 4px; }

.hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px;
  padding: 0 22px; border: 0; background: var(--acc); color: #fff; font: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-align: center;
}
.hp-btn:hover { background: var(--acc2); color: #fff; }
.hp-btn svg { width: 18px; height: 18px; }
.hp-btn-white { background: #fff; color: var(--sec); font-size: 16px; font-weight: 700; }
.hp-btn-white:hover { background: #fff; color: var(--acc2); }
.hp-btn-ghost { background: rgba(32, 44, 105, .38); border: 1px solid rgba(255, 255, 255, .6); color: #fff; }
.hp-btn-ghost:hover { background: rgba(32, 44, 105, .55); color: #fff; }
.hp-btn-line { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hp-btn-line:hover { background: var(--soft); color: var(--ink); }
.hp-btn-soft { background: var(--soft); color: var(--ink); }
.hp-btn-soft:hover { background: #ece9f3; color: var(--ink); }
.hp-btn-full { width: 100%; }

.hp-facts { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 10px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.hp-facts div { display: flex; flex-direction: column; gap: 2px; }
.hp-facts b { font-size: 26px; font-weight: 700; color: #fff; }
.hp-facts span { font-size: 13px; color: #dfe5ff; }

/* ---------- карточки ---------- */

.hp-card { background: #fff; box-shadow: var(--sh); border-top: 3px solid var(--acc); }
.hp-card-pink { border-top-color: var(--out); }
.hp-card-violet { border-top-color: var(--acc2); }
.hp-sky { border-top-color: var(--gold); }
.hp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 0; }
.hp-card-h span { font-size: 17px; font-weight: 700; }
.hp-card-b { padding: 12px 20px 18px; display: flex; flex-direction: column; gap: 12px; }
.hp-card-b p { font-size: 15px; line-height: 1.45; color: var(--mute); }

.hp-sky-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hp-sky-row:first-child { border-top: 0; }
.hp-sky-t { color: var(--mute); }
.hp-sky-row b { font-weight: 600; text-align: right; }
.hp-sky-links { display: flex; gap: 8px; padding-top: 4px; }
.hp-sky-links a { flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 40px; background: var(--soft); font-size: 14px; font-weight: 600; color: var(--ink); }
.hp-sky-links a:hover { background: #ece9f3; color: var(--ink); }

/* ---------- секции ---------- */

.hp-sec { padding: 64px 0; }
.hp-lab, .hp-svc { background: #fff; }
.hp-sec-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.hp-sec-h > div { display: flex; flex-direction: column; gap: 6px; }
.hp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--acc2); }
.hp-sec-h h2 { font-size: 32px; line-height: 1.12; font-weight: 700; }
.hp-sec-h p { font-size: 16px; line-height: 1.45; color: var(--mute); max-width: 640px; }
.hp-more { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.hp-more svg { width: 16px; height: 16px; }
.hp-plate { background: #fff; box-shadow: var(--sh); }
.hp-empty { padding: 24px; font-size: 15px; color: var(--mute); }

/* ---------- матчи ---------- */

.hp-sport-grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 32px; align-items: start; }
.hp-days { display: flex; flex-wrap: wrap; background: #e8e6ee; }
.hp-day { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 54px; padding: 8px 16px; color: var(--ink); }
.hp-day b { font-size: 15px; font-weight: 700; }
.hp-day span { font-size: 12px; color: var(--mute); }
.hp-day.is-now { background: #fff; box-shadow: inset 0 -3px 0 var(--acc); }
.hp-day.is-now b { color: var(--acc); }
.hp-day:hover { color: var(--ink); background: #f2f0f6; }

.hp-match {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) 184px 132px; gap: 16px; align-items: center;
  padding: 13px 20px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.hp-match:last-child { border-bottom: 0; }
.hp-match:hover { background: #fafafc; color: var(--ink); }
.hp-match-time { display: flex; flex-direction: column; gap: 2px; }
.hp-match-time b { font-size: 18px; font-weight: 700; }
.hp-match-time span { font-size: 11px; line-height: 1.2; color: var(--mute); }
.hp-match-teams { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.hp-team { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.hp-team img { width: 24px; height: 24px; object-fit: contain; }
.hp-team-nologo { width: 24px; height: 24px; background: var(--soft); display: inline-block; }
.hp-team-n { font-size: 15px; font-weight: 600; }
.hp-odds { display: flex; gap: 4px; }
.hp-odd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 56px; height: 42px; border: 1px solid var(--line); background: #fff; }
.hp-odd.is-fav { background: #eef1fd; }
.hp-odd i { font-style: normal; font-size: 11px; color: var(--mute); }
.hp-odd b { font-size: 15px; font-weight: 700; }
.hp-odds-none { font-size: 13px; color: var(--mute); }
.hp-match-go { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 600; color: var(--acc); }
.hp-match-go svg { width: 14px; height: 14px; }

.hp-chip { display: inline-flex; align-items: center; padding: 5px 8px; font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; border: 1px solid #8a8290; color: #8a8290; background: #fff; }
.hp-chip.is-fav { border-color: var(--fav); color: var(--fav); }
.hp-chip.is-out { border-color: var(--out); color: var(--out); }
.hp-chip.is-near { background: #efedf1; }
.hp-chip.is-near.is-fav { background: #e8eeff; }
.hp-chip.is-near.is-out { background: #fde8f0; }
.hp-chip.is-exact { background: #8a8290; color: #fff; }
.hp-chip.is-exact.is-fav { background: var(--fav); color: #fff; }
.hp-chip.is-exact.is-out { background: var(--out); color: #fff; }

.hp-under { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; font-size: 14px; color: var(--mute); }
.hp-under a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.hp-under svg { width: 16px; height: 16px; }

.hp-side { display: flex; flex-direction: column; gap: 24px; }
.hp-precise { gap: 0; padding-top: 4px; }
.hp-precise-i { display: flex; flex-direction: column; gap: 6px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink); }
.hp-precise-i:first-child { border-top: 0; }
.hp-precise-i:hover { color: var(--ink); }
.hp-precise-i b { font-size: 15px; font-weight: 600; }
.hp-precise-i > span { font-size: 12px; color: var(--mute); }
.hp-precise-s { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hp-precise-s i { font-style: normal; font-size: 12px; color: var(--mute); }
.hp-legend { gap: 10px; font-size: 14px; color: var(--mute); }
.hp-legend div { display: flex; align-items: center; gap: 10px; }

/* ---------- Лаборатория ---------- */

.hp-lab-grid { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 40px; align-items: start; }
.hp-lab-chart { display: flex; flex-direction: column; }
.hp-lab-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hp-ring { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.hp-lab-head div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hp-lab-head b { font-size: 16px; font-weight: 700; }
.hp-lab-head span { font-size: 12px; color: var(--mute); }
.hp-chart { width: 100%; background: #fff; overflow: hidden; }
.hp-chart svg { position: static !important; display: block; width: 100%; height: auto; }
.hp-chart-wait { display: flex; align-items: center; justify-content: center; min-height: 320px; font-size: 14px; color: var(--mute); }
.hp-lab-tech { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line); }
.hp-lab-tech span { padding: 6px 10px; background: var(--soft); font-size: 12px; font-weight: 600; }
.hp-lab-tech i { margin-left: auto; font-style: normal; font-size: 12px; color: var(--mute); }

.hp-lab-list { display: flex; flex-direction: column; gap: 20px; }
.hp-feat { display: flex; gap: 14px; align-items: flex-start; }
.hp-feat-i { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--soft); color: var(--acc); flex-shrink: 0; }
.hp-feat-i svg { width: 20px; height: 20px; }
.hp-feat div { display: flex; flex-direction: column; gap: 3px; }
.hp-feat b { font-size: 16px; font-weight: 700; }
.hp-feat span { font-size: 14px; line-height: 1.4; color: var(--mute); }
.hp-lab-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hp-note { padding: 16px 18px; background: var(--soft); font-size: 14px; line-height: 1.45; color: var(--mute); }

/* ---------- справочники ---------- */

.hp-refs-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
.hp-wiki { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.hp-wiki-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; }
.hp-wiki-h b { font-size: 22px; font-weight: 700; }
.hp-wiki-h span { font-size: 14px; color: var(--mute); }
.hp-search { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; background: var(--soft); }
.hp-search svg { width: 20px; height: 20px; color: var(--acc); flex-shrink: 0; }
.hp-search input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; color: var(--ink); }
.hp-search button { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--acc); cursor: pointer; }
.hp-terms { display: flex; flex-direction: column; gap: 10px; }
.hp-terms-t { font-size: 13px; font-weight: 600; color: var(--mute); }
.hp-terms-l { display: flex; flex-wrap: wrap; gap: 8px; }
.hp-terms-l a { padding: 8px 12px; background: var(--soft); font-size: 14px; font-weight: 600; color: var(--ink); }
.hp-terms-l a:hover { background: #ece9f3; color: var(--ink); }
.hp-wiki-day { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); color: var(--ink); }
.hp-wiki-day span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--acc2); }
.hp-wiki-day b { font-size: 24px; font-weight: 700; }
.hp-wiki-day i { font-style: normal; font-size: 14px; font-weight: 600; color: var(--acc); }

.hp-gem { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.hp-gem-h { display: flex; align-items: center; gap: 12px; }
.hp-gem-h svg { width: 24px; height: 24px; color: var(--acc); }
.hp-gem-h b { font-size: 22px; font-weight: 700; }
.hp-gem p { font-size: 15px; line-height: 1.45; color: var(--mute); }
.hp-gem-sun { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--soft); }
.hp-gem-sun span { font-size: 13px; color: var(--mute); }
.hp-gem-sun b { font-size: 22px; font-weight: 700; }
.hp-gem-sun i { font-style: normal; font-size: 13px; color: var(--mute); }

/* ---------- сервисы ---------- */

.hp-birth { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding: 20px; background: #f3f3f3; box-shadow: var(--sh); margin-bottom: 24px; }
.hp-birth label { display: flex; flex-direction: column; gap: 6px; width: 180px; }
.hp-birth-city { flex: 1 1 220px; width: auto; }
.hp-birth span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.hp-birth input { height: 46px; padding: 0 14px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.hp-birth .hp-btn { min-height: 46px; }

.hp-svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hp-svc-i { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #fff; box-shadow: var(--sh); color: var(--ink); }
.hp-svc-i:hover { color: var(--ink); }
.hp-svc-i b { font-size: 17px; font-weight: 700; }
.hp-svc-i > span:last-child { font-size: 14px; line-height: 1.4; color: var(--mute); }
.hp-svc-ic { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--soft); color: var(--acc); }
.hp-svc-ic svg { width: 20px; height: 20px; }

/* ---------- обучение ---------- */

.hp-courses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.hp-course { display: flex; flex-direction: column; background: #fff; box-shadow: var(--sh); color: var(--ink); }
.hp-course:hover { color: var(--ink); }
.hp-course-img { height: 140px; overflow: hidden; background: var(--soft); }
.hp-course-img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.hp-course-b { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1 1 auto; }
.hp-course-m { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc2); }
.hp-course-b b { font-size: 18px; font-weight: 700; line-height: 1.2; flex: 1 1 auto; }
.hp-course-p { font-size: 17px; font-weight: 700; }
.hp-demo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 18px 22px; background: #fff; box-shadow: var(--sh); }
.hp-demo div { display: flex; flex-direction: column; gap: 3px; }
.hp-demo b { font-size: 17px; font-weight: 700; }
.hp-demo span { font-size: 14px; color: var(--mute); }

/* ---------- низ ---------- */

.hp-bottom { padding-top: 0; }
.hp-bottom-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.hp-read { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.hp-read-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hp-read-h b { font-size: 20px; font-weight: 700; }
.hp-read-h a { font-size: 14px; font-weight: 600; }
.hp-read-l { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hp-read-i { display: flex; gap: 12px; color: var(--ink); }
.hp-read-i:hover { color: var(--ink); }
.hp-read-img { width: 96px; height: 80px; flex-shrink: 0; overflow: hidden; background: var(--soft); }
.hp-read-img img { width: 96px; height: 80px; object-fit: cover; display: block; }
.hp-read-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hp-read-t i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--acc2); }
.hp-read-t b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.hp-read-t em { font-style: normal; font-size: 13px; color: var(--mute); }
.hp-forum { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; color: var(--ink); }
.hp-forum:hover { color: var(--ink); }
.hp-forum b { font-size: 20px; font-weight: 700; }
.hp-forum span { font-size: 14px; line-height: 1.45; color: var(--mute); }
.hp-forum i { font-style: normal; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--acc); }
.hp-forum svg { width: 15px; height: 15px; }

/* ---------- узкие экраны ---------- */

@media (max-width: 1100px) {
  .hp-hero-grid, .hp-sport-grid, .hp-lab-grid, .hp-refs-grid, .hp-bottom-grid { grid-template-columns: minmax(0, 1fr); }
  .hp-svc-grid, .hp-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-lab-chart { max-width: 560px; }   /* в одну колонку круг не должен расти на всю ширину */
  .hp-hero h1 { font-size: 40px; }
}

@media (max-width: 760px) {
  .hp-wrap { padding: 0 16px; }
  .hp-sec { padding: 40px 0; }
  .hp-hero-grid { padding-top: 32px; padding-bottom: 36px; gap: 24px; }
  .hp-hero h1 { font-size: 30px; }
  .hp-hero p { font-size: 16px; }
  .hp-hero-btns .hp-btn { width: 100%; justify-content: space-between; }
  .hp-facts { gap: 20px; }
  .hp-facts b { font-size: 22px; }
  .hp-sec-h { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hp-sec-h h2 { font-size: 24px; }
  .hp-days { flex-wrap: nowrap; overflow-x: auto; }
  .hp-day { flex: 0 0 auto; }
  .hp-match { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .hp-match-go { justify-content: flex-start; }
  .hp-odd { flex: 1 1 0; width: auto; }
  .hp-odds { width: 100%; }
  .hp-svc-grid, .hp-courses, .hp-read-l { grid-template-columns: minmax(0, 1fr); }
  .hp-birth label { width: 100%; }
  .hp-birth .hp-btn { width: 100%; }
}

/* ---------- приоритет над общими правилами ссылок сайта ---------- */

.hp a.hp-btn { color: #fff; }
.hp a.hp-btn:hover { color: #fff; }
.hp a.hp-btn-white { color: var(--sec); }
.hp a.hp-btn-white:hover { color: var(--acc2); }
.hp a.hp-btn-ghost, .hp a.hp-btn-ghost:hover { color: #fff; }
.hp a.hp-btn-line, .hp a.hp-btn-line:hover, .hp a.hp-btn-soft, .hp a.hp-btn-soft:hover { color: var(--ink); }
.hp a.hp-match, .hp a.hp-match:hover,
.hp a.hp-course, .hp a.hp-course:hover,
.hp a.hp-read-i, .hp a.hp-read-i:hover,
.hp a.hp-forum, .hp a.hp-forum:hover,
.hp a.hp-svc-i, .hp a.hp-svc-i:hover,
.hp a.hp-day, .hp a.hp-day:hover,
.hp a.hp-wiki-day, .hp a.hp-wiki-day:hover,
.hp a.hp-precise-i, .hp a.hp-precise-i:hover,
.hp .hp-terms-l a, .hp .hp-terms-l a:hover,
.hp .hp-sky-links a, .hp .hp-sky-links a:hover { color: var(--ink); }
.hp a.hp-day.is-now b { color: var(--acc); }
.hp .hp-match-go, .hp a.hp-more, .hp .hp-under a, .hp .hp-read-h a, .hp .hp-wiki-day i, .hp .hp-forum i { color: var(--acc); }
