:root {
  --color-bg: #ffffff;
  --color-text: #111111;
  --color-muted: #6b7280;
  --yellow-50: #fff8da;
  --yellow-100: #fff3bf;
  --ink: #0a0a0a;
  --pattern: rgba(0,0,0,0.03);
  --yellow-500: #ffd700; /* Yandex yellow (per request) */
  --yellow-600: #ffb800;
  --yellow-700: #f5a500;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.55;
}

.container {
  width: min(1120px, 100% - 32px);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 0; /* tighter on mobile */
  backdrop-filter: saturate(180%) blur(6px);
  background: transparent;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding: 8px 10px;
  border-radius: 9999px; /* pill */
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.logo {
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000;
  font-size: 16px;
}

.nav {
  display: none;
  gap: 20px;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 8px;
}

.nav__link:hover {
  color: #000;
  background: rgba(0,0,0,0.04);
}

.header__cta {
  margin-left: 16px;
}

/* Buttons */
.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
  line-height: 1;
  border-radius: 12px;
  padding: 10px 12px; /* tighter */
  transition: transform 0.1s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--yellow-500);
  color: #111;
  box-shadow: 0 6px 14px rgba(255, 211, 0, 0.28);
}

.btn--primary:hover {
  background: var(--yellow-600);
}

.btn--accent {
  background: #111; /* high-contrast on yellow */
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.btn--accent:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn--outline {
  background: #fff;
  color: #111;
  border-color: var(--yellow-600);
}

.btn--outline:hover {
  background: #fff8da;
  transform: translateY(-1px);
}

/* Hero */
.hero {
  padding: 72px 0 88px;
  position: relative;
  background: url('img/main.jpg') center / cover no-repeat;
}

.hero__inner {
  display: grid;
  gap: 20px;
}

.hero__title {
  font-size: clamp(28px, 3.2vw + 10px, 50px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
  font-weight: 800;
  color: var(--ink);
  display: block;
}

.hero__typing {
  border-right: 2px solid transparent; /* caret hidden by default */
  display: inline-block;
  min-width: 12ch; /* fallback: reserve some space */
  white-space: nowrap;
  overflow: hidden;
}

.hero__typing.is-active { border-right-color: var(--yellow-700); }

.hero__static-desktop { display: none; }

/* Desktop: show animated line above static */
@media (min-width: 900px) {
  .hero__title { display: flex; flex-direction: column; gap: 6px; }
  .hero__title > span:first-child { order: 2; }
  .hero__title > span:last-child { order: 1; }
  .hero__typing { display: none; }
  .hero__static-desktop { display: inline; }
}

/* Hero overlay to make the image 20-30% lighter for readability */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.25); /* ~25% white overlay */
}

.hero__inner { position: relative; z-index: 1; }

/* Hero text on image: force white for readability */
.hero .hero__title { color: #fff; }
.hero .hero__subtitle { color: rgba(255,255,255,0.92); }

.nowrap {
  white-space: nowrap;
}

.hero__subtitle {
  font-size: clamp(15px, 1vw + 8px, 18px);
  color: var(--color-muted);
  max-width: 58ch;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 420px) {
  .hero__title { font-size: 26px; line-height: 1.15; }
}

.hero__content {
  display: grid;
  gap: 16px;
}

/* Mobile-first adjustments */
.hero__actions .btn { flex: 1 1 100%; } /* full width on mobile */
.hero__actions { width: 100%; }

/* CTA variations for header */
.header__cta.btn { padding: 10px 16px; }

/* Steps */
.steps {
  padding: 40px 0 72px;
}

.steps__title {
  font-size: clamp(22px, 1.6vw + 14px, 32px);
  margin: 0 0 20px 0;
}

.steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.steps__cta {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.step {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.step__num {
  grid-row: span 2;
  align-self: start;
  font-weight: 800;
  color: #111;
  background: #fff8da;
  border: 1px solid rgba(245,165,0,0.35);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 13px;
}

.step__icon { display: none; }

.step--square {
  grid-template-columns: 1fr;
  padding: 14px;
  position: relative;
}
.step--square .step__num {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}
.step__image {
  width: 130px;
  height: 130px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  margin: 14px auto;
}
.step--square .step__image { margin-top: 32px; }
.step--square .step__heading,
.step--square .step__text {
  padding: 0 14px 14px 14px;
}

.step__heading {
  margin: 0;
  font-size: 16px;
}

.step__text {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.step:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); border-color: rgba(245,165,0,0.35); }

@media (min-width: 700px) {
  .steps__grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

/* Responsive */
@media (min-width: 800px) {
  .nav { display: flex; }
  .logo { font-size: 18px; }
  .header__inner { padding: 12px 18px; }
  .btn { padding: 12px 16px; font-size: 15px; }
  .hero__actions .btn { flex: 0 0 auto; } /* back to inline */
  .steps { padding: 40px 0 72px; }
  .step { padding: 16px; }
  .step__num { padding: 8px 10px; font-size: 14px; }
  .step__heading { font-size: 18px; }
  .step__text { font-size: 15px; }
}

/* Personal Manager Section */
.manager {
  padding: 60px 0;
  background: #f8f9fa;
}

.manager__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.manager__title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 16px 0;
  color: #111;
}

.manager__lead {
  font-size: 18px;
  color: var(--color-muted);
  margin: 0 0 32px 0;
  line-height: 1.5;
}

.manager__features {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.manager__feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.manager__icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.manager__feature p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.manager__cta {
  margin-top: 24px;
}

.manager__image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.manager__image img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (min-width: 800px) {
  .manager__content {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
  
  .manager__title {
    font-size: 40px;
  }
  
  .manager__lead {
    font-size: 20px;
  }
}

/* Contacts Section */
.contacts {
  padding: 60px 0;
  background: #f8f9fa;
}

.contacts__title {
  font-size: 32px;
  font-weight: 800;
  margin: 0 0 40px 0;
  text-align: center;
  color: #111;
}

.contacts__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.contacts__info {
  text-align: center;
}

.contacts__name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #111;
}

.contacts__role {
  font-size: 16px;
  color: var(--color-muted);
  margin: 0 0 12px 0;
}

.contacts__description {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  margin: 0;
}

.contacts__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contacts__btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.contacts__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.contacts__btn-icon {
  font-size: 18px;
}

@media (min-width: 800px) {
  .contacts__content {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
  }
  
  .contacts__info {
    text-align: left;
  }
  
  .contacts__title {
    font-size: 40px;
  }
  
  .contacts__name {
    font-size: 28px;
  }
}

/* Mobile header fixes */
@media (max-width: 799px) {
  .header__inner { gap: 8px; padding: 6px 8px; }
  .logo img { width: 88px; height: 23px; }
  .header__cta.btn { padding: 8px 10px; font-size: 13px; }
  .btn { padding: 8px 10px; font-size: 13px; }
}

/* Documents */
.docs {
  padding: 48px 0 88px;
}

.docs__title {
  font-size: clamp(22px, 1.6vw + 14px, 32px);
  margin: 0 0 16px 0;
}

.docs__tabs {
  display: inline-flex;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.docs__tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.docs__tab.is-active {
  background: #fff8da;
  border: 1px solid rgba(245,165,0,0.35);
}

.docs__panes {
  margin-top: 16px;
}

.docs__lead {
  margin: 0 0 10px 0;
}

.docs__list {
  margin: 0;
  padding-left: 18px;
}

.docs__pane[hidden] { display: none; }

/* Terms */
.terms {
  padding: 48px 0 88px;
}

.terms__title {
  font-size: clamp(22px, 1.6vw + 14px, 32px);
  margin: 0 0 8px 0;
}

.terms__lead {
  margin: 0 0 16px 0;
  color: var(--color-muted);
}

.terms__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.term {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.term__icon { width: 42px; height: 42px; display: grid; place-items: center; background: #fff8da; border: 1px solid rgba(245,165,0,0.35); border-radius: 12px; }
.term__heading {
  margin: 0 0 6px 0;
  font-size: 18px;
}

.term__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 15px;
}

.term:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); border-color: rgba(245,165,0,0.35); }

@media (min-width: 800px) {
  .terms__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

/* Calculator */
.calc {
  padding: 48px 0 96px;
}

.calc__title {
  font-size: clamp(22px, 1.6vw + 14px, 32px);
  margin: 0 0 8px 0;
}

.calc__lead {
  margin: 0 0 16px 0;
  color: var(--color-muted);
  max-width: 68ch;
}

.calc__form { background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 16px 40px rgba(0,0,0,0.08); padding: 18px; }
.calc__grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.field {
  display: grid;
  gap: 8px;
}

.field__label { font-weight: 600; }
.field__control {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04) inset;
}

.field--stack { border: 1px dashed rgba(245,165,0,0.5); background: #fffdf3; border-radius: 14px; padding: 14px; }
.choices { display: grid; gap: 10px; grid-template-columns: 1fr; }
.choice { position: relative; display: block; }
.choice input { position: absolute; inset: 0; opacity: 0; }
.choice span { display: grid; place-items: center; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: #fff; font-weight: 600; transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.choice:hover span { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0,0,0,.06); }
.choice input:checked + span { border-color: rgba(245,165,0,.55); background: linear-gradient(180deg, var(--yellow-600), var(--yellow-700)); color: #111; box-shadow: 0 12px 28px rgba(255,184,0,.28); }

.range { width: 100%; }

/* Pretty range sliders */
.range {
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  border-radius: 9999px;
  background: linear-gradient(var(--yellow-600) 0 0) no-repeat, #e5e7eb;
  background-size: 0% 100%;
  outline: none;
  transition: box-shadow 0.2s ease;
}
.range:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.06) inset; }
.range:focus { box-shadow: 0 0 0 6px rgba(255, 184, 0, 0.15); }

/* WebKit */
.range::-webkit-slider-runnable-track {
  height: 12px;
  background: transparent;
  border-radius: 9999px;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -4px; /* center thumb on 12px track */
  background: #fff;
  border: 2px solid var(--yellow-600);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.range:active::-webkit-slider-thumb { transform: scale(1.04); }

/* Firefox */
.range::-moz-range-track {
  height: 12px;
  background: transparent;
  border-radius: 9999px;
}
.range::-moz-range-progress {
  background-color: var(--yellow-600);
  height: 12px;
  border-radius: 9999px 0 0 9999px;
}
.range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid var(--yellow-600);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* Edge/IE */
.range::-ms-track {
  height: 12px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
.range::-ms-fill-lower { background: var(--yellow-600); border-radius: 9999px; }
.range::-ms-fill-upper { background: #e5e7eb; border-radius: 9999px; }
.range::-ms-thumb {
  width: 20px;
  height: 20px;
  background: #fff;
  border: 2px solid var(--yellow-600);
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
}

.calc__result {
  margin-top: 16px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  background: radial-gradient(200% 120% at 20% -20%, rgba(255,216,76,.45), transparent 50%), #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s ease;
}

.calc__result-title { color: var(--color-muted); }
.calc__result-value { font-weight: 900; font-size: 26px; letter-spacing: -.01em; }

.calc__result:hover { box-shadow: 0 14px 30px rgba(0,0,0,0.08); }

@media (min-width: 800px) {
  .calc__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .choices { grid-template-columns: repeat(3, 1fr); }
}

/* FAQ */
.faq {
  padding: 48px 0 96px;
}

.faq__title {
  font-size: clamp(22px, 1.6vw + 14px, 32px);
  margin: 0 0 12px 0;
}

.faq__list { display: grid; gap: 10px; }

.faq__item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq__question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
}

.faq__icon { font-weight: 800; }

.faq__answer { padding: 0 16px 14px 16px; color: var(--color-muted); }

.faq__answer[hidden] { display: none; }

.faq__item:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.08); border-color: rgba(245,165,0,0.35); }

/* Benefits */
.benefits {
  padding: 56px 0 96px;
}

.benefits__title {
  font-size: clamp(22px, 1.6vw + 14px, 32px);
  margin: 0 0 6px 0;
}

.benefits__subtitle {
  margin: 0 0 16px 0;
  color: var(--color-muted);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

/* Smaller cards without images */
.benefit--extra {
  min-height: auto;
  padding: 16px;
  font-size: 14px;
}

.benefit--extra .benefit__heading {
  font-size: 16px;
  margin-bottom: 8px;
}

.benefit--extra .benefit__text {
  font-size: 14px;
  line-height: 1.4;
}

.benefits__more { margin-top: 10px; display: grid; gap: 10px; justify-items: center; }
.benefits__extrasline { color: var(--color-muted); font-size: 14px; text-align: center; }
.benefits__cta { margin-top: 12px; display: grid; gap: 10px; justify-items: center; }
.cta__messengers { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.proof { display: grid; gap: 8px; justify-items: center; margin: 8px 0 12px 0; }
.proof__badge { background: #fff; border: 1px solid var(--border); border-radius: 9999px; padding: 8px 12px; font-weight: 700; }
.proof__badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.proof__chip { background: #fff; border: 1px solid var(--border); border-radius: 9999px; padding: 6px 10px; font-weight: 600; font-size: 13px; }

.benefit {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 12px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.card__icon { display: none; }
.benefit__heading { margin: 0; font-size: 18px; align-self: center; }
.benefit__text { margin: 0; color: var(--color-muted); font-size: 15px; grid-column: 1 / -1; }

.benefit:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(0,0,0,0.08); border-color: rgba(245,165,0,0.35); }

/* Benefit image blocks */
.benefit__image {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin: 10px auto 6px auto;
  justify-self: center;
}

/* Flip (disabled): render as simple card with heading, text, image centered */
.benefit--flip { perspective: initial; }
.benefit--flip .benefit__flip {
  position: relative;
  transform: none !important;
  transition: none;
  min-height: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.benefit--flip:hover .benefit__flip { transform: none; }
.benefit__face {
  backface-visibility: initial;
  position: static;
  z-index: auto;
  display: grid;
  justify-items: center;
  text-align: center;
  order: 3; /* image at bottom */
}
.benefit__back {
  position: static;
  inset: auto;
  padding: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  transform: none;
  background: transparent;
  border-radius: 0;
  justify-items: center;
  text-align: center;
  order: 2; /* text above image */
}
/* Use heading from back, hide duplicate heading on face */
.benefit--flip .benefit__face .benefit__heading { display: none; }

/* Alternating section backgrounds */
.section--yellow {
  position: relative;
  background: var(--yellow-500);
}

.section--yellow::before { display: none; }

/* Title decorations */
.benefits__title::after,
.steps__title::after,
.docs__title::after,
.terms__title::after,
.calc__title::after,
.faq__title::after,
.apply__title::after {
  content: "";
  display: block;
  width: 120px;
  height: 6px;
  margin: 10px auto 0 auto;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--yellow-600), var(--yellow-700));
}

@media (min-width: 900px) {
  .benefits__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}


/* Apply form */
.apply { padding: 32px 0 80px; }
.apply__title { font-size: clamp(22px, 1.6vw + 14px, 32px); margin: 0 0 12px 0; text-align: center; }
.apply__form { max-width: 860px; margin: 0 auto; }
.apply__grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.choice--inline { display: inline-flex; align-items: center; gap: 8px; }
/* Override .choice input overlay for inline checkboxes */
.choice--inline input[type="checkbox"] { position: static; opacity: 1; margin-right: 2px; width: 18px; height: 18px; border: 1px solid var(--border); border-radius: 4px; appearance: none; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04) inset; }
.choice--inline input[type="checkbox"]:checked { background: linear-gradient(180deg, var(--yellow-600), var(--yellow-700)); border-color: rgba(245,165,0,.6); }
.choice--inline input[type="checkbox"]:checked::after { display: none; }
/* Reset pill styles from .choice for inline checkboxes */
.choice--inline span { display: inline; height: auto; padding: 0; border: 0; background: transparent; box-shadow: none; font-weight: 600; }
.choice--inline:hover span { transform: none; box-shadow: none; }
.choice--inline input:checked + span { background: transparent; color: inherit; border: 0; box-shadow: none; }
.apply__actions { margin-top: 12px; display: flex; justify-content: center; }

.apply__trust { margin: 10px auto 0 auto; padding: 0; list-style: none; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; color: var(--color-muted); font-weight: 600; }
.apply__trust li { background: #fff; border: 1px solid var(--border); border-radius: 9999px; padding: 8px 12px; }

@media (min-width: 800px) {
  .apply__grid { grid-template-columns: repeat(2, 1fr); }
  .apply .field--stack { grid-column: 1 / -1; }
  .apply .choice--inline { grid-column: 1 / -1; }
}
/* Center section titles and leads */
.steps__title,
.docs__title,
.terms__title,
.calc__title,
.faq__title,
.benefits__title { text-align: center; }

.terms__lead,
.calc__lead,
.benefits__subtitle { text-align: center; margin-left: auto; margin-right: auto; }

/* Modal (callback) */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal.is-open { display: flex; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(2px);
}

.modal__dialog {
  position: relative;
  width: min(520px, 100% - 32px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  padding: 22px;
}

.modal__title { margin: 0 0 6px 0; font-size: 24px; text-align: center; }
.modal__lead { margin: 0 0 16px 0; color: var(--color-muted); text-align: center; }

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
}

.modal__close:hover { background: rgba(0,0,0,0.04); }

.modal__form { display: grid; gap: 12px; margin-top: 8px; }
.modal .field__control { width: 100%; }
.modal .btn { width: 100%; padding: 12px 18px; font-size: 16px; }
.modal__consent { margin-top: 8px; font-size: 12px; color: var(--color-muted); }
.modal__consent a { color: inherit; text-decoration: underline; }
