:root {
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f7f5fc;
  --bg-muted: #f3f0fa;
  --radius: 14px;
  --radius-sm: 12px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --container: 1120px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Unbounded", "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100%;
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  max-width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 28px rgba(139, 92, 246, 0.45);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--accent);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent);
  font-weight: 700;
}

.nav {
  display: none;
  gap: 22px;
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--ink);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 60;
}

.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

.nav-dropdown[open] .nav-dropdown__menu,
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown:focus-within .nav-dropdown__menu {
  display: grid;
}

.nav .nav-dropdown__menu a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
}

.nav .nav-dropdown__menu a:hover {
  background: var(--bg-soft);
  color: var(--ink);
}

.header__phone {
  display: none;
  font-weight: 700;
  white-space: nowrap;
}

.header__cta {
  display: none;
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.burger {
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  display: grid;
  place-content: center;
  gap: 6px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.mobile-nav {
  position: fixed;
  inset: 72px 0 0;
  background: #fff;
  z-index: 40;
  padding: 24px;
}

.mobile-nav nav {
  display: grid;
  gap: 16px;
  font-size: 1.2rem;
  font-weight: 700;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav__label {
  margin: 8px 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.mobile-nav__sub {
  padding-left: 12px;
  font-size: 1.05rem;
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 40px 0 56px;
  background:
    radial-gradient(ellipse 70% 55% at 100% 0%, rgba(139, 92, 246, 0.16), transparent 60%),
    linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
}

.hero__grid {
  display: grid;
  gap: 36px;
}

.hero__content {
  max-width: 40rem;
}

.hero__eyebrow {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__title {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 7.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.hero__title mark {
  background: var(--accent);
  color: #fff;
  padding: 0 0.15em;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lead {
  margin: 0 0 24px;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 20px;
}

.btn--hero {
  min-height: 56px;
  padding: 0 32px;
  font-size: 1.05rem;
  box-shadow: 0 10px 32px rgba(139, 92, 246, 0.35);
}

.hero__cta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.hero__guarantee {
  margin: 0;
  max-width: 36rem;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.stat {
  display: grid;
  gap: 4px;
  padding: 8px 4px;
}

.stat strong {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.stat span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Forms */
.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  min-height: 140px;
  padding: 14px 16px;
  resize: vertical;
  line-height: 1.45;
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.1 0.4L6 5.3 10.9.4 12 1.5 6 7.5 0 1.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid {
  border-color: #e53935;
}

.form__legal {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.form__legal a {
  text-decoration: underline;
}

.form-consents {
  display: grid;
  gap: 10px;
}

.form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  cursor: pointer;
}

.form-consent input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-consent.is-invalid {
  color: #b91c1c;
}

.form-consent.is-invalid input {
  outline: 2px solid #e53935;
  outline-offset: 2px;
  border-radius: 4px;
}

.form__success {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: var(--accent-soft);
  font-weight: 600;
  text-align: center;
}

.form__error {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  text-align: center;
}

/* Sections */
.section {
  padding: 80px 0;
}

.section__head {
  margin-bottom: 40px;
  max-width: 40rem;
}

.section__title {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Mid-page calculator CTA */
.cta-calc {
  padding: 40px 0;
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(139, 92, 246, 0.18), transparent 70%),
    linear-gradient(180deg, #f3f0fa 0%, #ebe6f8 100%);
  border-block: 1px solid rgba(139, 92, 246, 0.12);
}

.cta-calc__inner {
  display: grid;
  gap: 12px;
  justify-items: center;
  text-align: center;
}

.cta-calc__actions {
  display: grid;
  gap: 20px;
  width: min(100%, 720px);
  justify-items: stretch;
}

.cta-calc__action {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.btn--cta-calc {
  min-height: 52px;
  padding: 0 28px;
  font-size: 1.05rem;
  width: 100%;
}

.cta-calc__note {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.cta-calc__note a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-calc__consent {
  margin: 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.cta-calc__consent a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Pricing */
.pricing {
  background: var(--bg-soft);
  position: relative;
}

.pricing::before {
  content: "";
  position: absolute;
  left: 0;
  top: 80px;
  bottom: 80px;
  width: 6px;
  background: var(--accent);
  border-radius: 0 4px 4px 0;
}

.pricing__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.price-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: grid;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.price-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.price-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.price-card__price {
  margin: 0;
  font-size: 1rem;
  color: var(--muted);
}

.price-card__price span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 60%, var(--accent-soft) 60%);
}

.price-card__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.price-card__link {
  margin-top: 8px;
  font-weight: 700;
  color: var(--ink);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.price-card__link:hover {
  color: var(--accent-hover);
}

.pricing__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.pricing__more {
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pricing__extras {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.extra-card {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  min-width: 0;
}

.extra-card > div {
  flex: 1 1 12rem;
  min-width: 0;
}

.extra-card__badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.extra-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.extra-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Guide cheat sheet */
.guide {
  background: var(--bg-soft);
}

.guide-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px 24px 24px;
}

.guide-card__head {
  margin-bottom: 24px;
}

.guide-card__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.guide-card__lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.guide-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 22px;
}

.guide-house {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 18px;
  background: #fff;
}

.guide-house h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
}

.guide-house ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.guide-house li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}

.guide-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.guide-icon--yes {
  color: #22c55e;
}

.guide-icon--maybe {
  color: #f59e0b;
}

.guide-icon--no {
  color: #ef4444;
}

.guide-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guide-topics__btn {
  border: none;
  background: #f0f0f0;
  color: #444;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.guide-topics__btn:hover {
  background: #e4e4e4;
}

.guide-topics__btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-hover);
}

/* Process */
.process {
  background: #0f172a;
  color: #fff;
  overflow: hidden;
}

.process__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.steps-track {
  --progress: 10%;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin: 0 0 48px;
  padding: 0 clamp(8px, 4vw, 48px);
  list-style: none;
  box-sizing: border-box;
}

.steps-track::before,
.steps-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 23px;
  height: 2px;
}

.steps-track::before {
  right: 0;
  background: #334155;
}

.steps-track::after {
  width: var(--progress);
  background: var(--accent);
  transition: width 0.35s ease;
}

.steps-track__item {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.steps-track__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 140px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: center;
}

.steps-track__dot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #475569;
  background: transparent;
  color: #94a3b8;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}

.steps-track__dot svg {
  display: block;
}

.steps-track__item.is-done .steps-track__dot,
.steps-track__item.is-active .steps-track__dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.steps-track__item.is-active .steps-track__dot {
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.3);
}

.steps-track__btn:hover .steps-track__dot {
  transform: scale(1.06);
}

.steps-track__label {
  font-size: clamp(0.58rem, 1.5vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.25;
  color: #64748b;
  transition: color 0.25s ease;
  max-width: 100%;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.steps-track__item.is-done .steps-track__label {
  color: rgba(255, 255, 255, 0.55);
}

.steps-track__item.is-active .steps-track__label {
  color: #fff;
}

.steps-panel {
  display: grid;
  gap: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  min-width: 0;
  max-width: 100%;
}

.steps-panel__counter {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--accent);
}

.steps-panel__counter span:last-child {
  color: rgba(255, 255, 255, 0.25);
}

.steps-panel__body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.5rem;
}

.steps-panel__body p {
  margin: 0 0 16px;
  color: var(--accent);
  font-weight: 700;
}

.steps-panel__body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
}

.steps-panel__body li {
  padding-left: 22px;
  position: relative;
}

.steps-panel__body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.progress {
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 0.4s ease;
}

/* Articles */
.articles__grid {
  display: grid;
  gap: 16px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card__tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.article-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}

.article-card p {
  margin: 0;
  color: var(--muted);
}

.article-card a {
  font-weight: 700;
  margin-top: 4px;
}

.articles__more {
  margin-top: 32px;
  text-align: center;
}

.articles--page {
  padding-top: 48px;
}

.articles--page .article-card h2 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.3;
  font-family: var(--display);
  font-weight: 600;
}

.article-page {
  padding-top: 40px;
  padding-bottom: 72px;
  background: var(--bg-soft);
}

.article-page__inner {
  max-width: 720px;
}

.article-page__back {
  margin: 0 0 24px;
  font-weight: 700;
}

.article-page__back a:hover {
  color: var(--accent);
}

.article-page__title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  font-weight: 600;
}

.article-page__lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.article-page__body {
  margin-top: 28px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article-page__body > *:first-child {
  margin-top: 0;
}

.article-page__body > *:last-child {
  margin-bottom: 0;
}

.article-page__body h2,
.article-page__body h3 {
  margin: 1.4em 0 0.5em;
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.25;
}

.article-page__body h3 {
  font-size: 1.15rem;
}

.article-page__body p,
.article-page__body li {
  color: var(--ink);
}

.article-page__body ul,
.article-page__body ol {
  padding-left: 1.2em;
}

.article-page__body a {
  color: var(--accent, #1a4a6e);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-related {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(15, 39, 68, 0.12);
}

.article-related__title {
  margin: 0 0 14px;
  font-size: 1.15rem;
}

.article-related__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.article-related__list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.article-related__list a::after {
  content: "→";
  margin-left: auto;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.article-related__list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.article-cta {
  padding-top: 0;
}

.article-cta__inner {
  max-width: 40rem;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f7f8fa 0%, #fff 100%);
  border: 1px solid rgba(15, 39, 68, 0.08);
  text-align: center;
}

.article-cta__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.article-cta__text {
  margin: 0 0 18px;
  color: var(--muted);
}

.article-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.region-offer {
  margin-top: 28px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  gap: 12px;
}

.region-offer__label {
  margin: 0;
  font-weight: 700;
}

.region-offer__price {
  margin: 0;
}

.region-faq {
  margin-top: 40px;
}

.guide-card__cta-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
}
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section__eyebrow {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Contract guarantees */
.contract {
  background: var(--bg-soft);
}

.contract__head {
  margin-bottom: 32px;
  max-width: 40rem;
}

.contract__head .section__title {
  margin-bottom: 12px;
}

.contract__head .section__lead {
  margin: 0;
}

.contract__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}

.contract-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.contract-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 700;
}

.contract-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.contract__cta {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.contract__cta .btn {
  border-radius: 12px;
}

.contract__cta p {
  margin: 0;
  max-width: 28rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Contact */
.contact {
  background: var(--bg-soft);
}

.contact__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.contact__promo p {
  color: var(--muted);
  max-width: 28rem;
}

.contact-form {
  background: #0f172a;
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  min-height: 360px;
  display: grid;
  align-items: center;
}

.contact-form__body[hidden],
.contact-form__state[hidden] {
  display: none;
}

.contact-form__state {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
  padding: 12px 0;
}

.contact-form__state p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.contact-form__success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: #c4b5fd;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
}

.contact-form__success-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.contact-form__success-text {
  margin: 0;
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

.contact-form__title {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.35rem;
}

.contact-form .field span {
  color: rgba(255, 255, 255, 0.55);
}

.contact-form .field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contact-form .field input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.contact-form .field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.35);
}

.contact-form .form__legal,
.contact-form .form-consent {
  color: rgba(255, 255, 255, 0.72);
}

.contact-form .form-consent.is-invalid {
  color: #fecaca;
}

.contact-form .form-consent.is-invalid input {
  outline-color: #fca5a5;
}

/* Benefits */
.benefits__grid {
  display: grid;
  gap: 16px;
}

.benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  gap: 12px;
}

.benefit h3 {
  margin: 0;
  font-size: 1.1rem;
}

.benefit p {
  margin: 0;
  color: var(--muted);
}

/* FAQ */
.faq__list {
  display: grid;
  gap: 10px;
  max-width: 800px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 20px;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  font-weight: 700;
  position: relative;
  padding-right: 32px;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--muted);
}

.faq__item[open] summary::after {
  content: "−";
  color: var(--ink);
}

.faq__item p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Reviews */
.reviews {
  background: #fff;
}

.reviews__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 28px;
  margin-bottom: 32px;
}

.reviews__head .section__title {
  margin: 0;
}

.reviews__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.reviews__rating .reviews__stars {
  color: #f5a623;
  letter-spacing: 2px;
}

.reviews__grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.reviews__more {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.reviews--page {
  padding-top: 48px;
  padding-bottom: 48px;
  background: var(--bg-soft);
}

.reviews--page .review {
  background: #fff;
}

.review-form-section {
  background: #fff;
  padding-top: 48px;
}

.review-form-section__grid {
  display: grid;
  gap: 32px;
  align-items: start;
}

.review-form-section__promo p {
  margin: 0;
  color: var(--muted);
  max-width: 28rem;
  font-size: 1.05rem;
}

.review-form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  max-width: 520px;
  min-width: 0;
}

.review {
  margin: 0;
  background: #fff;
  border: 1px dashed #d0d0d0;
  border-radius: 12px;
  padding: 22px 20px;
}

.review__top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.review__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ececec;
  color: #555;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.review__meta {
  flex: 1;
  min-width: 0;
}

.review__meta cite {
  font-style: normal;
  font-weight: 700;
  display: block;
  color: var(--ink);
}

.review__meta span {
  font-size: 0.8rem;
  color: #9a9a9a;
}

.review__stars {
  flex-shrink: 0;
  color: #f5a623;
  font-size: 0.85rem;
  letter-spacing: 1px;
  line-height: 1.4;
}

.review p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Footer */
.footer {
  background: #0f172a;
  color: #fff;
  padding: 64px 0 32px;
  border-top: none;
}

.footer__grid {
  display: grid;
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__col h3 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.footer__col p {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.75);
}

.footer__muted {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45) !important;
}

.footer__socials {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.footer__socials a:hover {
  color: #fff;
}

.footer__socials img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
}

.logo--footer {
  color: #fff;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__links a:hover {
  color: #fff;
}

.footer__regions {
  padding-top: 28px;
}

.footer__regions h3 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.footer__region-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer__region-links a {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.footer__region-links a:hover {
  color: #fff;
}

/* Reveal animation */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content,
.hero__stats,
.price-card,
.benefit,
.article-card {
  animation: rise 0.6s ease both;
}

.hero__stats {
  animation-delay: 0.12s;
}

/* Responsive */
@media (max-width: 639px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .section {
    padding: 56px 0;
  }

  .cta-calc {
    padding: 32px 0;
  }

  .cta-calc__action {
    justify-items: stretch;
  }

  .cta-calc__note {
    justify-self: center;
  }

  .cta-calc__consent {
    justify-self: center;
  }

  .btn--cta-calc {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero {
    padding: 36px 0 48px;
  }

  .hero__stats,
  .contact-form,
  .steps-panel,
  .review-form {
    padding: 20px;
    border-radius: 18px;
  }

  .hero__grid {
    gap: 28px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--hero {
    width: 100%;
  }

  .hero__cta-note {
    text-align: center;
  }

  .hero__grid,
  .contact__grid,
  .pricing__grid,
  .guide-grid,
  .articles__grid,
  .benefits__grid,
  .reviews__grid,
  .contract__grid,
  .footer__grid {
    min-width: 0;
  }

  .price-card,
  .article-card,
  .benefit,
  .contract-card,
  .review,
  .guide-house {
    min-width: 0;
    max-width: 100%;
  }

  /* 5 labels don't fit — dots only; title is in the panel */
  .steps-track {
    width: min(100% - 24px, var(--container));
    margin-inline: auto;
    margin-bottom: 28px;
    padding: 0 4px;
  }

  .steps-track__btn {
    gap: 0;
    max-width: none;
  }

  .steps-track__label {
    display: none;
  }

  .steps-track__dot {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .steps-track__item.is-active .steps-track__dot,
  .steps-track__btn:hover .steps-track__dot {
    transform: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.28);
  }

  .steps-track::before,
  .steps-track::after {
    top: 19px;
  }

  .steps-panel__counter {
    font-size: clamp(2.4rem, 14vw, 3.5rem);
  }

  .steps-panel__body h3 {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
  }

  .process__head {
    margin-bottom: 28px;
  }

  .guide-topics__btn {
    max-width: 100%;
    white-space: normal;
    text-align: left;
    line-height: 1.25;
    padding: 8px 14px;
    min-height: 40px;
  }

  .review__top {
    flex-wrap: wrap;
  }

  .faq__item {
    padding: 0 16px;
  }

  .faq__item summary {
    overflow-wrap: anywhere;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 640px) {

  .header__phone_mobile{
    display: none;
  }
  .cta-calc__actions {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }

  .hero__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .pricing__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing__extras {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-card {
    padding: 36px 36px 28px;
  }

  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .contract__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }

  .review-form-section__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .header__phone_mobile{
    display: none;
  }

  .burger {
    display: none;
  }

  .nav,
  .header__phone,
  .header__cta {
    display: flex;
  }

  .nav {
    gap: 14px;
  }

  .header__inner {
    gap: 16px;
  }

  .hero {
    padding: 72px 0 96px;
  }

  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: center;
  }

  .hero__content {
    max-width: none;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 28px;
  }

  .stat strong {
    font-size: 1.85rem;
  }

  .hero__title {
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__title mark {
    white-space: nowrap;
  }

  .pricing__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .articles__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .steps-panel {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .contact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Calculator modal */
body.calc-modal-open {
  overflow: hidden;
}

.calc-modal[hidden] {
  display: none;
}

.calc-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
}

.calc-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.calc-modal__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  background: #fff;
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.calc-modal__inner {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: max(24px, env(safe-area-inset-top)) 20px max(20px, env(safe-area-inset-bottom));
  overflow: hidden;
}

.calc-modal__close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.calc-modal__close:hover {
  background: var(--accent-soft);
}

.calc-modal__title {
  margin: 0 0 8px;
  padding-right: 40px;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calc-modal__progress {
  margin-bottom: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.calc-modal__content {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  flex: 1 1 0%;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.calc-modal__content[hidden] {
  display: none;
}

.calc-modal__title {
  grid-row: 1;
}

.calc-modal__progress {
  grid-row: 2;
}

.calc-modal__content > .calc-preview {
  grid-row: 3;
  min-height: 0;
}

.calc-preview[hidden] {
  display: none !important;
}

#calc-modal-body {
  grid-row: 4;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overflow-anchor: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 16px;
  scrollbar-gutter: stable;
}

.calc-step {
  animation: calc-step-in 0.22s ease;
}

@keyframes calc-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calc-modal__nav {
  grid-row: 5;
  display: flex;
  gap: 10px;
  margin-top: 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.calc-modal__nav[hidden] {
  display: none;
}

.calc-modal__nav .btn {
  flex: 1;
}

.calc-modal__loading,
.calc-modal__error,
.calc-modal__submitting,
.calc-modal__success {
  text-align: center;
  padding: 48px 16px;
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.calc-modal__loading[hidden],
.calc-modal__error[hidden],
.calc-modal__submitting[hidden],
.calc-modal__success[hidden] {
  display: none;
}

.calc-modal__error p {
  margin: 0 0 16px;
  color: var(--muted);
}

.calc-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: calc-spin 0.8s linear infinite;
}

@keyframes calc-spin {
  to {
    transform: rotate(360deg);
  }
}

.calc-modal__submitting p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.calc-success__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-hover);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
}

.calc-success__title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.calc-success__text {
  margin: 0 0 8px;
  max-width: 22rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.calc-modal__success .btn {
  margin-top: 8px;
  max-width: 280px;
}

.calc-step__title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.calc-step__lead {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.calc-step__note {
  margin: 16px 0 12px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.calc-options {
  display: grid;
  gap: 10px;
}

.calc-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.calc-option input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  pointer-events: none;
}

.calc-option__box {
  display: block;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.calc-option__box strong {
  display: block;
  font-size: 0.98rem;
}

.calc-option__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.calc-option__head strong {
  flex: 1;
}

.calc-option__box small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.calc-hint {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.calc-hint:hover,
.calc-hint:focus-visible,
.calc-hint.is-open {
  border-color: var(--accent);
  color: var(--accent-hover);
  outline: none;
}

.calc-hint__popup {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  display: none;
  width: min(260px, 70vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  white-space: normal;
}

.calc-hint__popup strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
}

.calc-hint__popup span {
  display: block;
  color: var(--muted);
}

.calc-hint:hover .calc-hint__popup,
.calc-hint:focus-visible .calc-hint__popup,
.calc-hint.is-open .calc-hint__popup {
  display: grid;
  gap: 2px;
}

.calc-option input:checked + .calc-option__box {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.calc-option input:focus-visible + .calc-option__box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.calc-checks {
  display: grid;
  gap: 10px;
}

.calc-check {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.calc-check input {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.calc-check__body {
  flex: 1;
  min-width: 0;
}

.calc-check__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.calc-check strong {
  display: block;
  font-size: 0.95rem;
}

.calc-check small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.35;
}

.calc-check--muted {
  opacity: 0.65;
  cursor: not-allowed;
}

.calc-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 0.95rem;
}

.calc-modal__content > .calc-preview {
  margin-top: 0;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.calc-preview strong {
  font-family: var(--display);
  font-size: 1.15rem;
}

.calc-total {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
  padding: 20px;
  border-radius: 16px;
  background: var(--bg-soft);
  text-align: center;
}

.calc-total__label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
}

.calc-total__value {
  font-family: var(--display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: -0.03em;
  color: var(--accent-hover);
}

.calc-total__value--range {
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  line-height: 1.25;
}

.calc-total__note {
  font-size: 0.8rem;
  color: var(--muted);
}

.calc-warning {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 0.9rem;
  line-height: 1.45;
}

.calc-breakdown-accordion {
  margin: 0 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.calc-breakdown-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  padding-right: 40px;
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.calc-breakdown-accordion summary::-webkit-details-marker {
  display: none;
}

.calc-breakdown-accordion summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1;
}

.calc-breakdown-accordion[open] summary::after {
  content: "−";
  color: var(--ink);
}

.calc-breakdown-accordion[open] summary {
  border-bottom: 1px solid var(--line);
}

.calc-breakdown-accordion .calc-breakdown {
  margin: 0;
  padding: 4px 16px 12px;
}

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

.calc-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.calc-breakdown li span:first-child {
  color: var(--muted);
}

.calc-breakdown li span:last-child {
  font-weight: 700;
  white-space: nowrap;
}

.calc-lead-form {
  margin-top: 8px;
}

.calc-lead-form .form__error {
  margin: 0;
  padding: 12px;
  border-radius: 10px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.9rem;
  text-align: center;
}

@media (min-width: 640px) {
  .calc-modal {
    justify-content: center;
    align-items: center;
    padding: 24px;
  }

  .calc-modal__dialog {
    flex: 0 1 auto;
    width: min(100%, 560px);
    height: min(88vh, 720px);
    max-height: 720px;
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .calc-modal__inner {
    padding: 28px 28px 24px;
  }

  .calc-modal__close {
    top: 12px;
    right: 12px;
  }
}

/* Cookies consent bar */
.cookies-bar[hidden] {
  display: none;
}

.cookies-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  width: 100%;
  background:
    radial-gradient(ellipse 60% 120% at 0% 100%, rgba(139, 92, 246, 0.14), transparent 55%),
    #0f172a;
  color: #fff;
  box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.18);
}

.cookies-bar__inner {
  display: grid;
  gap: 16px;
  align-items: center;
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 16px 0;
}

.cookies-bar__content {
  min-width: 0;
}

.cookies-bar__title {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.cookies-bar__text {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookies-bar__text a {
  color: #c4b5fd;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookies-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookies-bar__accept {
  flex: 1;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .cookies-bar__inner {
    grid-template-columns: 1fr auto;
    gap: 24px;
    padding: 18px 0;
  }

  .cookies-bar__accept {
    flex: 0 0 auto;
    min-width: 140px;
  }
}
