:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --panel-accent: rgba(33, 150, 243, 0.08);
  --text: #18233f;
  --text-2: #33415f;
  --text-3: #6f7d96;
  --line: rgba(24, 35, 63, 0.08);
  --line-strong: rgba(33, 150, 243, 0.2);
  --accent: #1184d3;
  --accent-2: #0f6fb2;
  --accent-dim: rgba(17, 132, 211, 0.1);
  --shadow: 0 18px 55px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

html[data-theme="dark"] {
  --bg: #0c1220;
  --bg-soft: #0f1728;
  --panel: rgba(20, 30, 49, 0.84);
  --panel-strong: rgba(19, 29, 47, 0.98);
  --panel-accent: rgba(17, 132, 211, 0.14);
  --text: #edf4ff;
  --text-2: #c6d3eb;
  --text-3: #8ea1c0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(17, 132, 211, 0.32);
  --accent: #38a7e2;
  --accent-2: #7ec9f3;
  --accent-dim: rgba(56, 167, 226, 0.12);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  overflow: hidden;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: fixed;
  top: 28px;
  left: 32px;
  z-index: 30;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 900;
  color: var(--text-2);
}

.theme-toggle {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 30;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-2);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(18, 27, 45, 0.76);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.icon-moon {
  display: none;
}

.icon-sun {
  display: block;
}

html[data-theme="light"] .icon-moon {
  display: block;
}

html[data-theme="light"] .icon-sun {
  display: none;
}

.hero-page {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.95;
}

.bg-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.bg-glow-1 {
  width: 420px;
  height: 420px;
  top: 10%;
  right: 8%;
  background: radial-gradient(circle, rgba(17, 132, 211, 0.12) 0%, transparent 72%);
}

.bg-glow-2 {
  width: 340px;
  height: 340px;
  bottom: 6%;
  left: 8%;
  background: radial-gradient(circle, rgba(17, 132, 211, 0.08) 0%, transparent 74%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 84px 64px 48px;
}

.hero-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(340px, 0.84fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero-kicker,
.compare-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-dim);
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  max-width: 880px;
  font-size: clamp(38px, 4.4vw, 66px);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: var(--text);
}

.hero-title span {
  color: var(--accent);
}

.hero-money-main {
  max-width: 740px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-money-main span,
.hero-money-term span {
  color: var(--accent);
}

.hero-money-term {
  font-size: 15px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-3);
}

.hero-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-points-title {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
}

.hero-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hero-list li {
  position: relative;
  padding-left: 18px;
  font-size: 18px;
  line-height: 1.34;
  color: var(--text-2);
  font-weight: 600;
}

.hero-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0;
  margin-top: -2px;
}

.btn {
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 18px 40px rgba(17, 132, 211, 0.22);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.32;
  color: var(--text-3);
  font-weight: 600;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 14px;
}

.hero-visual-head {
  width: min(430px, 100%);
  font-size: 27px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-align: left;
}

.hero-visual-head span:nth-child(2) {
  color: var(--accent);
}

.card-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-card {
  width: min(430px, 100%);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    linear-gradient(180deg, var(--panel-strong), var(--panel)),
    linear-gradient(180deg, transparent, transparent);
}

.compare-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.compare-top-kicker {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.compare-top-value {
  font-size: 40px;
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.045em;
  color: var(--accent);
}

.compare-top-value span {
  font-size: 80%;
  opacity: 0.82;
}

.compare-divider {
  height: 1px;
  width: 60%;
  background: var(--line);
  margin: 2px 0 2px;
}

.compare-section-title {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.compare-metrics {
  display: grid;
  gap: 10px;
}

.metric-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.metric-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.metric-label {
  font-size: 13px;
  line-height: 1.2;
  color: var(--text-3);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric-value {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--accent);
  white-space: nowrap;
}

.metric-value span {
  font-size: 15px;
  line-height: 1;
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: -0.01em;
}

.compare-note {
  font-size: 14px;
  line-height: 1.34;
  color: var(--text-3);
  font-weight: 600;
}

.compare-bottom {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.compare-mini {
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compare-mini-label {
  font-size: 12px;
  line-height: 1.2;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-mini-main {
  font-size: 16px;
  line-height: 1.28;
  color: var(--text);
  font-weight: 800;
}

.compare-mini-sub {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-2);
  font-weight: 600;
}

.compare-mini-value {
  font-size: 17px;
  line-height: 1.22;
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 1180px) {
  html,
  body {
    overflow: auto;
  }

  .hero-shell {
    min-height: auto;
    padding: 92px 28px 28px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .hero-visual {
    justify-content: flex-start;
    align-items: flex-start;
  }

  .hero-visual-head,
  .compare-card {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 720px) {
  .brand-mark {
    top: 18px;
    left: 18px;
  }

  .theme-toggle {
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
  }

  .hero-shell {
    min-height: auto;
    padding: 84px 16px 24px;
  }

  .grid-lines {
    background-size: 80px 80px;
  }

  .hero-copy {
    gap: 12px;
  }

  .hero-title {
    font-size: clamp(32px, 10vw, 45px);
    line-height: 0.96;
    max-width: none;
  }

  .hero-money-main {
    font-size: 18px;
    line-height: 1.25;
  }

  .hero-money-term {
    font-size: 14px;
  }

  .hero-points-title {
    font-size: 16px;
  }

  .hero-list li {
    font-size: 16px;
    line-height: 1.34;
    padding-left: 16px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
    order: 5;
  }

  .btn {
    width: 100%;
    min-height: 54px;
    font-size: 16px;
  }

  .hero-meta {
    order: 6;
    font-size: 13px;
    gap: 6px;
  }

  .hero-visual {
    order: 7;
  }

  .hero-visual-head {
    font-size: 22px;
    line-height: 1.05;
    max-width: 340px;
    margin-bottom: 2px;
  }

  .compare-card {
    padding: 18px;
    border-radius: 24px;
    gap: 14px;
  }

  .compare-top {
    gap: 6px;
  }

  .compare-top-kicker {
    font-size: 12px;
  }

  .compare-top-value {
    font-size: 34px;
    line-height: 1.04;
  }

  .compare-section-title {
    font-size: 13px;
  }

  .compare-divider {
    width: 62%;
  }

  .metric-row {
    padding-bottom: 8px;
  }

  .metric-label {
    font-size: 12px;
  }

  .metric-value {
    font-size: 32px;
  }

  .metric-value span {
    font-size: 14px;
  }

  .compare-note {
    font-size: 13px;
    line-height: 1.32;
  }

  .compare-mini {
    gap: 6px;
  }

  .compare-mini-main {
    font-size: 15px;
  }

  .compare-mini-sub {
    font-size: 13px;
    line-height: 1.34;
  }

  .compare-mini-value {
    font-size: 16px;
  }
}

/* === PATCH: расширение основной CTA кнопки === */

.hero-actions .btn-primary {
  min-width: 320px;
}

/* === PATCH: усиление secondary кнопки в dark === */

html[data-theme="dark"] .btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #e6edf7;
}

html[data-theme="dark"] .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

/* === MOBILE PATCH: toggle + logo + forced line breaks === */
@media (max-width: 720px) {
  .theme-toggle {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
  }

  .brand-mark {
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    border: 1px solid var(--line) !important;
    background: rgba(255, 255, 255, 0.68) !important;
    box-shadow: var(--shadow-soft) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    display: grid !important;
    place-items: center !important;
    top: 18px !important;
    left: 18px !important;
    font-size: 20px !important;
    font-weight: 900 !important;
    color: var(--text-2) !important;
  }

  html[data-theme="dark"] .brand-mark,
  html[data-theme="dark"] .theme-toggle {
    background: rgba(18, 27, 45, 0.76) !important;
  }

  .hero-money-main {
    max-width: 340px !important;
  }

  .hero-meta {
    max-width: 320px !important;
  }

  .hero-meta > div:first-child {
    max-width: 300px !important;
  }
}
.hero-visual-head .accent {
  color: var(--accent);
}
/* === FIX: mobile spacing between meta and right block === */
@media (max-width: 720px) {
  .hero-visual {
    margin-top: 14px !important;
  }
}