:root {
  --page-bg: #f7faff;
  --content-max: 1440px;
  --shell-pad-x: 24px;
  --faq-column-max: 1248px;

  --blue-ui: #4d7cfa;
  --blue-ui-dark: #3d66d4;
  --blue-strip: #c4d2f8;
  --slider-track-inactive: #a2bbfd;
  --step-card-bg: #e2ebf5;
  --btn-black: #1e1e1e;
  --text-dark: #1e1e1e;
  --text-body: #4a4f59;
  --text-muted: #6b7280;
  --font: "Inter", system-ui, -apple-system, sans-serif;

  --fs-h1-card: 32px;
  --lh-h1-card: 39px;
  --fs-section-title: 48px;
  --lh-section-title: 58px;
  --fs-faq-title: 64px;
  --lh-faq-title: 77px;
  --fs-body: 16px;
  --fs-hero-desc: 16px;
  --lh-hero-desc: 19px;
  --fs-calc-20: 20px;
  --lh-calc-20: 24px;
  --fs-price-strong: 24px;
  --lh-price-strong: 29px;
  --fs-cta: 32px;
  --lh-cta: 39px;
  --fs-benefit-title: 24px;
  --lh-benefit-title: 29px;
  --fs-benefit-body: 16px;
  --lh-benefit-body: 19px;
  --fs-step-body: 20px;
  --lh-step-body: 24px;
  --fs-step-badge: 24px;
  --lh-step-badge: 29px;
  --fs-faq-row: 24px;
  --lh-faq-row: 29px;
  --fs-footer-link: 20px;
  --lh-footer-link: 24px;
  --fs-footer-legal: 16px;
  --lh-footer-legal: 19px;
  --fs-lang-btn: 20px;
  --lh-lang-btn: 24px;

  --space-header-y: 20px;
  --header-ctrl-size: 64px;
  --logo-img-height: 62px;
  /* Макет: фото top 169 − полоса 160 = 9px; Frame 123 top 224 − 160 = 64px */
  --hero-strip-inset-top: 9px;
  --hero-content-offset: 55px; /* 64px − 9px — только левый столбец */
  /* Отступ до блока «Преимущества» — только padding-top у .benefits */
  --space-after-hero: 96px;
  --space-section-y: 80px;
  --space-h2-bottom: 40px;

  --section-blue: var(--blue-strip);
  --faq-answer-bg: var(--blue-strip);
  --faq-footer-text: #4d7cfa;
  --faq-footer-legal: #4d7cfa;
  --faq-answer-text: #0c1429;

  --shadow-hero-strip: 0 10px 53.4px rgba(57, 83, 168, 0.5);
  --shadow-calc: 0 14px 39.5px #4d7cfa;
  --shadow-cta: 0 4px 12.3px #1e1e1e;
  --shadow-benefit-card: 0 4px 17.8px #c8c8c8;
  /* Шаги: глубже, чем сухой экспорт Figma — ближе к визуалу макета */
  --shadow-step-card:
    0 18px 42px rgba(25, 38, 95, 0.22),
    0 8px 20px rgba(57, 66, 168, 0.32),
    0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-step-badge:
    0 4px 17.1px #4d7cfa,
    0 12px 32px rgba(77, 124, 250, 0.42);
  --shadow-partners: 0 4px 26px rgba(0, 0, 0, 0.25);
  --shadow-faq-q: 0 4px 22.7px rgba(57, 88, 168, 0.51);
  --shadow-faq-a: 0 4px 22.7px rgba(57, 105, 168, 0.25);
  --radius-card: 20px;
  --radius-calc: 45px;
  --radius-cta: 20px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

/* Hero: Rectangle 46 — макет */
.hero-band {
  width: 100%;
  background: var(--blue-strip);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.38),
    inset 0 20px 40px -18px rgba(45, 65, 130, 0.1),
    var(--shadow-hero-strip);
}

/* Шапка на фоне страницы #F7FAFF, не на полосе hero */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-header-y) var(--shell-pad-x);
  background: var(--page-bg);
}

.logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo__img {
  display: block;
  height: var(--logo-img-height);
  width: auto;
  max-width: min(100%, 420px);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn {
  box-sizing: border-box;
  width: var(--header-ctrl-size);
  height: var(--header-ctrl-size);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
}

.icon-btn svg {
  width: 26px;
  height: 26px;
}

/* Та же палитра и тень, что у переключателя языка */
.icon-btn--call {
  border: 1px solid rgba(30, 30, 30, 0.1);
  background: #eef1f8;
  color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.icon-btn--call:hover {
  background: #e2e8f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.icon-btn--call:focus-visible {
  outline: 2px solid var(--blue-ui);
  outline-offset: 2px;
}

.lang-switch {
  display: inline-flex;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(30, 30, 30, 0.1);
}

.lang-switch__btn {
  box-sizing: border-box;
  min-width: 52px;
  height: var(--header-ctrl-size);
  padding: 0 20px;
  border: none;
  background: #eef1f8;
  color: var(--text-dark);
  font-family: var(--font);
  font-weight: 900;
  font-size: var(--fs-lang-btn);
  line-height: var(--lh-lang-btn);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.lang-switch__btn.is-active {
  background: var(--blue-ui);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.lang-switch__btn:not(.is-active):hover {
  background: #e2e8f5;
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--blue-ui);
  outline-offset: 2px;
  z-index: 1;
}

/* Hero */
.hero {
  width: 100%;
}

.hero__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: var(--hero-strip-inset-top) var(--shell-pad-x) 0;
}

/* Десктоп: одна строка сетки — слева hero__content (колонка), справа фото на всю высоту.
   ≤900px: .hero__content { display: contents } — дети попадают в сетку hero (см. медиазапрос). */
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 743px) minmax(0, 337px);
  justify-content: space-between;
  align-items: stretch;
  align-content: stretch;
  width: 100%;
  min-height: 590px;
}

.hero__content {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  padding-top: var(--hero-content-offset);
  padding-bottom: 0;
  max-width: 743px;
}

.hero__copy {
  margin: 16px 0 0;
  padding: 0;
  max-width: 743px;
  min-width: 0;
}

.hero__desc-line {
  margin: 0;
  font-size: var(--fs-hero-desc);
  line-height: var(--lh-hero-desc);
  font-weight: 400;
  color: var(--text-body);
}

.hero__desc-line + .hero__desc-line {
  margin-top: 10px;
}

.hero__desc-line--lead {
  font-weight: 800;
  color: var(--text-dark);
}

.calc-card {
  background: var(--blue-ui);
  border-radius: var(--radius-calc);
  padding: 16px 64px;
  box-shadow: var(--shadow-calc);
  margin-bottom: 32px;
  max-width: 633px;
  width: 100%;
}

.calc-card__title {
  margin: 0 0 16px;
  font-size: var(--fs-h1-card);
  line-height: var(--lh-h1-card);
  font-weight: 900;
  color: #fff;
  text-align: left;
}

.calc-card__slider-wrap {
  margin-bottom: 16px;
}

.calc-card__range {
  --range-pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 7px;
  border-radius: 3.5px;
  background: transparent;
  outline: none;
}

.calc-card__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  border: none;
  margin-top: -11px;
}

.calc-card__range::-webkit-slider-runnable-track {
  height: 7px;
  border-radius: 3.5px;
  background: linear-gradient(
    to right,
    #fff 0%,
    #fff var(--range-pct),
    var(--slider-track-inactive) var(--range-pct),
    var(--slider-track-inactive) 100%
  );
}

.calc-card__range::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.calc-card__range::-moz-range-track {
  height: 7px;
  border-radius: 3.5px;
  background: var(--slider-track-inactive);
}

.calc-card__range::-moz-range-progress {
  height: 7px;
  border-radius: 3.5px;
  background: #fff;
}

.calc-card__row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.calc-card__label {
  color: #fff;
  font-size: var(--fs-calc-20);
  line-height: var(--lh-calc-20);
  font-weight: 400;
}

.calc-card__field {
  width: 49px;
  height: 49px;
  min-width: 49px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--blue-ui);
  font-weight: 900;
  font-size: var(--fs-calc-20);
  line-height: var(--lh-calc-20);
  border-radius: 12px;
}

.calc-card__price {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 6px;
  color: #fff;
  font-size: var(--fs-calc-20);
  line-height: var(--lh-calc-20);
  font-weight: 400;
  text-align: left;
}

.calc-card__price-value {
  font-size: var(--fs-price-strong);
  line-height: var(--lh-price-strong);
  font-weight: 900;
  text-decoration: none;
  border-bottom: 1px solid #f7faff;
  padding-bottom: 2px;
  margin-left: 0;
}

.calc-card__hint {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: var(--fs-calc-20);
  line-height: var(--lh-calc-20);
  font-weight: 500;
  text-align: left;
}

.cta-btn {
  width: 100%;
  max-width: 491px;
  min-height: 63px;
  border: none;
  border-radius: var(--radius-cta);
  background: var(--btn-black);
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  font-size: var(--fs-cta);
  line-height: var(--lh-cta);
  letter-spacing: 0;
  padding: 0 48px;
  cursor: pointer;
  margin-bottom: 0;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

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

body.lead-modal-open {
  overflow: hidden;
}

.lead-modal[hidden] {
  display: none !important;
}

.lead-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
    max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.72);
  cursor: pointer;
}

.lead-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: min(90vh, 720px);
  overflow-y: auto;
  box-sizing: border-box;
  padding: 40px 28px 36px;
  border-radius: var(--radius-calc);
  background: var(--blue-ui);
  box-shadow: var(--shadow-calc), 0 24px 48px rgba(25, 38, 95, 0.35);
}

.lead-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.lead-modal__close:hover {
  background: rgba(255, 255, 255, 0.32);
}

.lead-modal__close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lead-modal__title {
  margin: 0 0 24px;
  font-size: clamp(22px, 4.5vw, 28px);
  line-height: 1.2;
  font-weight: 900;
  color: #fff;
  text-align: center;
}

.lead-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.lead-modal__input {
  box-sizing: border-box;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 16px 22px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.15s ease;
}

.lead-modal__input::placeholder {
  color: #8a9bb8;
  font-weight: 500;
}

.lead-modal__input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 2px 12px rgba(0, 0, 0, 0.1);
}

.lead-modal__server-error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  color: #fecaca;
  text-align: center;
}

.lead-modal__submit {
  margin-top: 8px;
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: 999px;
  background: var(--btn-black);
  color: #fff;
  font-family: var(--font);
  font-weight: 900;
  font-size: clamp(18px, 3.5vw, 24px);
  line-height: 1.2;
  padding: 14px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lead-modal__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.lead-modal__submit:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lead-modal__done {
  text-align: center;
  padding: 8px 0 0;
}

.lead-modal__done-text {
  margin: 0 0 20px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #fff;
}

.hero__visual {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  position: relative;
  align-self: stretch;
  min-height: 0;
  max-width: 337px;
  justify-self: end;
  width: 100%;
}

/* Мягкое свечение за вырезом врача — визуально «сидит» в полосе hero */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% 0 18%;
  background: radial-gradient(
    65% 55% at 50% 88%,
    rgba(255, 255, 255, 0.38) 0%,
    rgba(196, 210, 248, 0.2) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__img {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 337px;
  height: auto;
  max-height: 590px;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 18px 40px rgba(40, 62, 130, 0.22))
    drop-shadow(0 6px 16px rgba(77, 124, 250, 0.18));
}

/* Benefits */
.benefits {
  background: var(--page-bg);
  padding: var(--space-after-hero) 0 var(--space-section-y);
}

.benefits__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--shell-pad-x);
}

.benefits__title {
  margin: 0 0 var(--space-h2-bottom);
  text-align: center;
  font-size: var(--fs-section-title);
  line-height: var(--lh-section-title);
  font-weight: 900;
  color: var(--text-dark);
  text-transform: capitalize;
  letter-spacing: -0.02em;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.benefit-card {
  background: var(--page-bg);
  border: none;
  border-radius: var(--radius-card);
  padding: 16px 32px;
  min-height: 302px;
  box-shadow: var(--shadow-benefit-card);
}

.benefit-card__icon {
  box-sizing: border-box;
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue-ui);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-card__icon-img {
  display: block;
  max-width: 34px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.benefit-card__title {
  margin: 0 0 10px;
  font-size: var(--fs-benefit-title);
  line-height: var(--lh-benefit-title);
  font-weight: 900;
  color: var(--text-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.benefit-card__text {
  margin: 0;
  font-size: var(--fs-benefit-body);
  line-height: var(--lh-benefit-body);
  font-weight: 500;
  color: var(--text-dark);
}

/* Как оформить полис — Rectangle 48 */
.how-policy {
  background: var(--section-blue);
  padding: var(--space-section-y) 0 88px;
  box-shadow: 0 10px 53.4px rgba(57, 79, 168, 0.5);
}

.how-policy__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--shell-pad-x);
}

.how-policy__title {
  margin: 0 0 var(--space-h2-bottom);
  text-align: center;
  font-size: var(--fs-section-title);
  line-height: var(--lh-section-title);
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

/* Макет (Group 84): между карточками ~16px, Ellipse 50×50 перекрывает края */
.how-policy__steps {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 1175px;
  margin: 0 auto 32px;
  padding-top: 22px;
}

.step-card {
  position: relative;
  z-index: 1;
  flex: 1 1 260px;
  min-width: 0;
  max-width: 381px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 230px;
  background: var(--step-card-bg);
  border: none;
  border-radius: var(--radius-card);
  padding: 48px 32px 24px;
  box-shadow: var(--shadow-step-card);
}

.step-card__badge {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  background: var(--blue-ui);
  color: #fff;
  font-size: var(--fs-step-badge);
  line-height: var(--lh-step-badge);
  font-weight: 900;
  letter-spacing: 0;
  min-width: 101px;
  min-height: 56px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  box-shadow: var(--shadow-step-badge);
  white-space: nowrap;
  text-transform: capitalize;
}

.step-card__text {
  margin: 0;
  max-width: 32ch;
  font-size: var(--fs-step-body);
  line-height: var(--lh-step-body);
  font-weight: 500;
  color: var(--text-dark);
  text-align: center;
}

.step-arrow {
  position: relative;
  z-index: 2;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  margin-right: -25px;
  align-self: center;
  border-radius: 50%;
  background: #1e1e1e;
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.32))
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.step-arrow__glyph {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1;
  transform: translateX(1px);
}

.partners-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 12px 20px;
  width: 100%;
  max-width: min(1000px, 100%);
  margin: 0 auto;
  padding: 15px 30px;
  background: #fff;
  border: none;
  border-radius: 999px;
  box-shadow: var(--shadow-partners);
}

.partners-bar__item {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.partner-logo-img {
  display: block;
  height: 56px;
  width: auto;
  max-width: min(220px, 20vw);
  object-fit: contain;
  object-position: center;
}

/* FAQ */
.faq {
  background: var(--page-bg);
  padding: var(--space-section-y) 0 88px;
}

.faq__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--shell-pad-x);
}

.faq__title {
  margin: 0 0 var(--space-h2-bottom);
  font-size: var(--fs-faq-title);
  line-height: var(--lh-faq-title);
  font-weight: 900;
  color: #2d2d2d;
  text-align: center;
  letter-spacing: -0.02em;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: var(--faq-column-max);
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 83px;
  padding: 27px 32px 27px 64px;
  border: none;
  border-radius: 12px;
  background: var(--blue-ui);
  color: #fff;
  font-family: var(--font);
  font-size: var(--fs-faq-row);
  line-height: var(--lh-faq-row);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-faq-q);
  transition:
    box-shadow 0.28s ease,
    transform 0.2s ease;
}

.faq-item__question:hover {
  box-shadow: 0 8px 28px rgba(57, 88, 168, 0.48);
}

.faq-item__question:active {
  transform: scale(0.997);
}

.faq-item__question:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.faq-item__question-text {
  flex: 1;
}

.faq-item__chevron {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-right: 4px solid #fff;
  border-bottom: 4px solid #fff;
  transform: rotate(-135deg);
  margin-top: 2px;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), margin 0.35s ease;
}

.faq-item:not(.is-open) .faq-item__chevron {
  transform: rotate(45deg);
  margin-top: -6px;
}

/* Ответ — отдельная «плашка» под вопросом, с зазором как в макете */
.faq-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}

.faq-item.is-open .faq-item__panel {
  grid-template-rows: 1fr;
}

.faq-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.faq-item__answer {
  margin-top: 10px;
  padding: 27px 32px 27px 64px;
  border-radius: 12px;
  background: var(--faq-answer-bg);
  box-shadow: var(--shadow-faq-a);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.35s ease 0.05s,
    transform 0.45s cubic-bezier(0.32, 0.72, 0, 1) 0.04s;
}

.faq-item.is-open .faq-item__answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-item:not(.is-open) .faq-item__answer {
  transition:
    opacity 0.22s ease,
    transform 0.3s ease;
}

.faq-item__answer p {
  margin: 0;
  font-size: var(--fs-faq-row);
  line-height: var(--lh-faq-row);
  font-weight: 700;
  color: var(--faq-answer-text);
}

/* Юридические страницы (privacy, complaints, cookies) */
.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.legal-page__main {
  flex: 1 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 28px var(--shell-pad-x) 72px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 20px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--blue-ui);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.legal-back:hover {
  opacity: 0.88;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-back:focus-visible {
  outline: 2px solid var(--blue-ui);
  outline-offset: 3px;
  border-radius: 4px;
}

.legal-title {
  margin: 0 0 28px;
  font-size: clamp(26px, 4.5vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.legal-body {
  max-width: 900px;
}

.legal-pre {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text-body);
  white-space: pre-wrap;
  word-wrap: break-word;
}

a.lang-switch__btn {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--section-blue);
  padding: 48px 0 40px;
}

.site-footer__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--shell-pad-x);
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.site-footer__link {
  font-size: var(--fs-footer-link);
  line-height: var(--lh-footer-link);
  font-weight: 700;
  color: var(--faq-footer-text);
  text-decoration: none;
  text-align: center;
  transition: opacity 0.15s ease;
}

.site-footer__link:hover {
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal {
  margin: 0;
  text-align: center;
  font-size: var(--fs-footer-legal);
  line-height: var(--lh-footer-legal);
  font-weight: 400;
  color: var(--faq-footer-legal);
}

/* Cookie consent banner */
body.cookie-banner-open {
  padding-bottom: max(120px, calc(100px + env(safe-area-inset-bottom, 0px)));
}

.cookie-banner {
  position: fixed;
  z-index: 1500;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  box-sizing: border-box;
  pointer-events: none;
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  pointer-events: auto;
  box-sizing: border-box;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 18px var(--shell-pad-x) 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--slider-track-inactive);
  box-shadow: 0 -10px 40px rgba(57, 83, 168, 0.12);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.cookie-banner__text {
  margin: 0;
  flex: 1 1 280px;
  max-width: 52rem;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.45;
  font-weight: 500;
  color: var(--text-body);
}

.cookie-banner__link {
  color: var(--blue-ui);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.cookie-banner__link:hover {
  color: var(--blue-ui-dark);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.cookie-banner__btn:focus-visible {
  outline: 2px solid var(--blue-ui);
  outline-offset: 2px;
}

.cookie-banner__btn--primary {
  border-color: var(--btn-black);
  background: var(--btn-black);
  color: #fff;
  box-shadow: var(--shadow-cta);
}

.cookie-banner__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.cookie-banner__btn--secondary {
  border-color: var(--btn-black);
  background: transparent;
  color: var(--text-dark);
}

.cookie-banner__btn--secondary:hover {
  background: rgba(30, 30, 30, 0.06);
}

@media (max-width: 768px) {
  .benefits__title,
  .how-policy__title {
    font-size: clamp(28px, 8vw, 48px);
    line-height: 1.15;
  }

  .faq__title {
    font-size: clamp(28px, 10vw, 64px);
    line-height: 1.12;
  }

  .faq-item__question,
  .faq-item__answer {
    padding: 20px 20px 20px 28px;
  }

  .faq-item__answer p {
    font-size: 18px;
    line-height: 1.35;
  }

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

  .cookie-banner__actions {
    width: 100%;
    justify-content: stretch;
  }

  .cookie-banner__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (max-width: 960px) {
  .benefits__grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .how-policy__steps {
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    max-width: 420px;
    padding-top: 28px;
    margin-bottom: 28px;
  }

  .step-card {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    min-height: auto;
    padding: 44px 22px 28px;
    flex: 0 1 auto;
    background: #fff;
    box-shadow: var(--shadow-benefit-card);
  }

  .step-arrow {
    display: none;
  }

  .partners-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    max-width: 100%;
    border-radius: 12px;
    padding: 8px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .partners-bar__item {
    flex: 0 0 auto;
    max-width: none;
  }

  .partner-logo-img {
    height: 34px;
    max-width: 88px;
    width: auto;
  }

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

@media (max-width: 900px) {
  .hero-band {
    background: linear-gradient(
      180deg,
      #e4ebfc 0%,
      var(--blue-strip) 42%,
      #d8e2fa 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 8px 36px rgba(57, 83, 168, 0.2);
  }

  /* Логотип крупнее; звонок и язык компактнее; заметный зазор от лого */
  .header {
    gap: clamp(24px, 9vw, 48px);
  }

  .header .logo {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header .logo__img {
    height: clamp(52px, 15vw, 76px);
    max-width: min(100%, 520px);
  }

  .header__actions {
    flex-shrink: 0;
    gap: 6px;
    margin-left: clamp(8px, 2vw, 16px);
  }

  .header .icon-btn {
    width: 32px;
    height: 32px;
  }

  .header .icon-btn svg {
    width: 15px;
    height: 15px;
  }

  .header .lang-switch__btn {
    min-width: 30px;
    height: 32px;
    padding: 0 6px;
    font-size: 11px;
    line-height: 1.2;
  }

  .hero__inner {
    padding-top: var(--shell-pad-x);
    padding-bottom: 0;
    overflow: visible;
  }

  /* Сетка (мобиль): дети .hero__content — прямые ячейки сетки (display: contents) */
  .hero__content {
    display: contents;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 48%;
    grid-template-rows: auto auto auto;
    column-gap: 0;
    row-gap: 0;
    min-height: unset;
    align-items: stretch;
  }

  .hero__grid .calc-card {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-top: 0;
    margin-bottom: 0;
    padding: 18px 20px 20px;
    max-width: none;
  }

  .hero__grid .cta-btn {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 20px;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 32px);
    max-width: min(100%, 400px);
  }

  .hero__grid .hero__copy {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin: 0;
    padding: 16px 10px 20px 0;
    max-width: none;
  }

  .hero__desc-line {
    font-size: 14px;
    line-height: 1.48;
  }

  .hero__desc-line + .hero__desc-line {
    margin-top: 12px;
  }

  .hero__visual {
    grid-column: 2;
    grid-row: 3;
    align-self: stretch;
    justify-content: flex-end;
    justify-self: end;
    align-items: stretch;
    max-width: none;
    /* уходит к правому краю экрана, за shell-pad-x */
    width: calc(100% + var(--shell-pad-x));
    margin-right: calc(-1 * var(--shell-pad-x));
    margin-left: 0;
    min-height: 240px;
    z-index: 1;
    overflow: hidden;
  }

  .hero__visual::before {
    display: none;
  }

  .hero__img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    /* показываем верхнюю часть врача — лицо и плечи */
    object-position: 40% 5%;
    -webkit-mask-image: none;
    mask-image: none;
    filter: none;
  }

  .calc-card__title {
    text-align: center;
    font-size: clamp(21px, 5.2vw, 27px);
    line-height: 1.2;
  }

  .calc-card__slider-wrap {
    margin-bottom: 14px;
  }

  .calc-card__range {
    height: 11px;
  }

  .calc-card__range::-webkit-slider-runnable-track {
    height: 11px;
    border-radius: 5.5px;
  }

  .calc-card__range::-webkit-slider-thumb {
    width: 36px;
    height: 36px;
    margin-top: -12px;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.18);
  }

  .calc-card__range::-moz-range-track {
    height: 11px;
    border-radius: 5.5px;
  }

  .calc-card__range::-moz-range-progress {
    height: 11px;
    border-radius: 5.5px;
  }

  .calc-card__range::-moz-range-thumb {
    width: 36px;
    height: 36px;
  }

  .calc-card__row {
    justify-content: space-between;
    width: 100%;
  }

  .cta-btn {
    min-height: 48px;
    font-size: clamp(17px, 4.2vw, 22px);
    line-height: 1.2;
    padding: 0 20px;
    border-radius: 16px;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 28px;
  }

  .site-footer__link {
    text-align: center;
  }
}

@media (max-width: 520px) {
  .site-footer__nav {
    grid-template-columns: 1fr;
  }

  .legal-page__main {
    padding-top: 20px;
    padding-bottom: 48px;
  }

  .legal-pre {
    font-size: 14px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn,
  .cta-btn,
  .lang-switch__btn,
  .lead-modal__submit,
  .cookie-banner__btn {
    transition: none;
  }

  .icon-btn:hover,
  .cta-btn:hover,
  .lead-modal__submit:hover,
  .cookie-banner__btn:hover {
    transform: none;
  }

  .faq-item__panel,
  .faq-item__answer,
  .faq-item__chevron,
  .faq-item__question {
    transition: none;
  }

  .faq-item__question:active {
    transform: none;
  }

  .faq-item:not(.is-open) .faq-item__answer,
  .faq-item.is-open .faq-item__answer {
    opacity: 1;
    transform: none;
  }

  .faq-item:not(.is-open) .faq-item__panel {
    grid-template-rows: 0fr;
  }

  .faq-item.is-open .faq-item__panel {
    grid-template-rows: 1fr;
  }
}
