/* Design tokens — TZ §10 */
:root {
  --color-bg: #f4f6f8;
  --color-hero: #f4f7ff;
  --color-header: #d6e4fe;
  --color-surface: #ffffff;
  --color-text: #1a2332;
  /* Almost-black for section headings, hero title, card titles, quiz questions, etc. */
  --color-heading: #121212;
  --color-text-muted: #5c6570;
  /* Intro copy under section h2 — slightly darker than previous muted-only look */
  --color-text-lead: #4a5562;
  /* Softer body copy (e.g. law-brief lists); tuned closer to lead for readability */
  --color-text-soft: #5c6674;
  --color-accent: #2e5f8a;
  --color-accent-hover: #244a6e;
  --color-btn: #001d6d;
  --color-btn-hover: #001454;
  --gradient-badge-sphere: linear-gradient(90deg, #d6e4fe 0%, #3a85ff 100%);
  --color-teal: #3a7d6f;
  --color-error: #b33a3a;
  --color-border: #e2e6eb;
  /* Primary brand blue scale — см. PALETTE.md */
  --palette-blue-950: #001144;
  --palette-blue-900: #001d6d;
  --palette-blue-800: #022d9a;
  --palette-blue-700: #0142d3;
  --palette-blue-600: #0062ff;
  --palette-blue-500: #3a85ff;
  --palette-blue-400: #6fa3ff;
  --palette-blue-300: #a7c7ff;
  --palette-blue-200: #d6e4fe;
  --palette-blue-100: #edf5ff;
  /* Accent band (mid-cta): animated layer — без blue-100, чтобы не сливаться с белым блоком выше */
  --accent-band-bg: linear-gradient(
    125deg,
    var(--palette-blue-200) 0%,
    var(--palette-blue-300) 45%,
    var(--palette-blue-200) 100%
  );
  --accent-band-edge: var(--palette-blue-200);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 8px 24px rgba(26, 35, 50, 0.08);
  --pad-x: 20px;
  /* Main body copy: 16 default & 768–1023, 18 @1024, 20 @1440, 22 @1920 */
  --text-base: 16px;
  --text-sm: 14px;
  --text-lead: 16px;
  /* H1/H2 — TZ §10.2–10.3; h1 always one step above h2 (4px rhythm) */
  --h1: 20px;
  --h2: 20px;
  --h3: 16px;
  /* Hero H1 on index — separate scale from section H2 */
  --hero-title-size: 24px;
  --header-offset: 100px;
  --header-top-height: 74px;
  /* Section rhythm: pad = inner space; gap = real margin between sections */
  --section-pad-y: 40px;
  --section-gap: 0px;
}

@media (min-width: 480px) {
  :root {
    --h1: 28px;
  }
}

@media (min-width: 768px) {
  :root {
    --pad-x: 40px;
    --h1: 36px;
    --h2: 24px;
    --h3: 20px;
    --hero-title-size: 32px;
    --header-offset: 120px;
    --section-pad-y: 52px;
    --section-gap: 30px;
  }
}

@media (min-width: 1024px) {
  :root {
    --text-base: 18px;
    --text-lead: 18px;
    --h1: 40px;
    --h2: 28px;
    --h3: 22px;
    --hero-title-size: 36px;
    --header-offset: 132px;
  }
}

@media (min-width: 1280px) {
  :root {
    --hero-title-size: 40px;
  }
}

@media (min-width: 1440px) {
  :root {
    --pad-x: 60px;
    --text-base: 20px;
    --text-lead: 20px;
    --h1: 48px;
    --h2: 36px;
    --h3: 24px;
    --hero-title-size: 48px;
    --header-offset: 140px;
    --section-pad-y: 72px;
    --section-gap: 40px;
  }
}

@media (min-width: 1920px) {
  :root {
    --pad-x: 80px;
    --text-base: 22px;
    --text-lead: 22px;
    --h1: 52px;
    --h2: 40px;
    --h3: 28px;
    --hero-title-size: 64px;
    --header-offset: 148px;
    --header-top-height: 84px;
    --section-gap: 40px;
  }
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
}

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--color-accent);
  color: #fff;
}

.skip-link:focus {
  left: var(--pad-x);
  top: 8px;
}

.container {
  width: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* Header */
.site-header {
  position: relative;
  background: var(--color-header);
  padding-top: var(--header-top-height);
}

.header-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px var(--pad-x);
  border-bottom: 1px solid rgba(46, 95, 138, 0.12);
  background: var(--color-header);
  box-shadow: none;
}

/* Same horizontal rhythm as hero (full width + --pad-x); avoid 1760px bar on ultra-wide */
.site-header .container {
  max-width: none;
  width: 100%;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: clamp(15px, 2.5vw, 20px);
  color: var(--color-heading);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-brand img {
  display: block;
  width: auto;
  height: 32px;
}

.header-brand:hover {
  color: var(--color-accent);
}

.header-tagline {
  display: none;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.header-tagline__icon {
  flex-shrink: 0;
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-phone {
  font-weight: 600;
  font-size: clamp(14px, 1.8vw, 18px);
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--color-accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

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

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

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

.btn--ghost:hover {
  background: rgba(0, 29, 109, 0.06);
  color: var(--color-btn-hover);
}

.btn--lg {
  padding: 16px 32px;
  font-size: 17px;
}

@media (min-width: 768px) {
  .btn--lg {
    padding: 18px 36px;
    font-size: 18px;
  }
}

.social-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-bg);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.social:hover {
  background: #dce4ee;
  box-shadow: 0 2px 8px rgba(26, 35, 50, 0.08);
}

.social-row--contacts {
  margin-top: 4px;
}

/* Nav row — horizontal padding only on .container (no double gutter) */
.header-nav-wrap {
  padding: 0;
  border-bottom: 1px solid rgba(46, 95, 138, 0.12);
  background: var(--color-header);
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: none;
  background: var(--color-bg);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-text);
  position: relative;
}

.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

.nav-toggle__bar::before {
  top: -6px;
}

.nav-toggle__bar::after {
  top: 6px;
}

.header-nav-inner {
  display: flex;
  align-items: center;
  min-height: 48px;
}

.nav-desktop {
  display: none;
}

@media (max-width: 767px) {
  :root {
    --header-top-height: 56px;
  }

  .header-top {
    padding-block: 8px;
  }

  .header-brand img {
    height: 32px;
  }
}

@media (max-width: 320px) {
  :root {
    --header-top-height: 52px;
  }

  .header-brand img {
    height: 28px;
  }
}

@media (min-width: 768px) {
  .header-brand img {
    height: clamp(38px, 3.6vw, 48px);
  }
}

@media (min-width: 1024px) {
  .header-tagline {
    display: flex;
  }
}

@media (min-width: 1440px) {
  .header-brand img {
    height: clamp(44px, 3.6vw, 60px);
  }
}

@media (max-width: 768px) {
  .header-nav-inner {
    justify-content: flex-end;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-mobile-panel {
    display: none;
    padding: 16px var(--pad-x) 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
  }

  .nav-mobile-panel.is-open {
    display: block;
  }

  .nav-mobile-panel .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-mobile-panel .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-mobile-panel .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-mobile-panel .nav-list a {
    display: block;
    width: 100%;
    padding: 14px 0;
    box-sizing: border-box;
  }

  .nav-mobile-panel .social-row {
    margin-top: 20px;
    justify-content: center;
  }

  .nav-mobile-panel .header-phone {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 18px;
  }

  .nav-mobile-panel .btn {
    width: 100%;
    margin-top: 12px;
  }

  .header-top .social-row {
    display: none;
  }

  .header-top .btn--primary {
    display: none;
  }
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 12px 0;
  justify-content: center;
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }

  .nav-mobile-panel {
    display: none !important;
  }

  .nav-desktop {
    display: flex;
    width: 100%;
  }

  .nav-desktop .nav-list {
    gap: 10px 32px;
  }
}

.nav-list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--color-btn-hover);
}

@media (min-width: 1440px) {
  .nav-list a {
    font-size: 16px;
  }
}

@media (min-width: 1920px) {
  .nav-list a {
    font-size: 20px;
  }

  .header-phone {
    font-size: 22px;
  }

  .header-top .btn--primary {
    font-size: 20px;
    padding: 13px 24px;
  }

  .btn--lg {
    font-size: 20px;
    padding: 20px 40px;
  }
}

/* Hero — brand vertical + content | photo + decor */
.hero {
  position: relative;
  overflow-x: clip;
  overflow-y: visible;
  isolation: isolate;
  padding: 0;
  background: var(--color-hero);
  /* vertical rhythm: badge → title → subtitle → cards → CTA */
  --hero-gap-badge-title: 20px;
  --hero-gap-title-subtitle: 20px;
  --hero-gap-subtitle-features: 32px;
  --hero-gap-features-cta: 22px;
  /* hero lead / UI (H1 uses global --h1) */
  --hero-subtitle-size: 18px;
  --hero-subtitle-max-width: min(100%, 16.5em);
  --hero-badge-size: 12px;
  --hero-feature-size: 14px;
  /* gap: bottom of nav → hero content */
  --hero-pad-top: 18px;
  --hero-pad-bottom: 28px;
  --hero-inner-gap: 22px;
  --hero-feature-col: minmax(0, 1fr);
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(68vh, 720px);
  min-width: 0;
}

.hero__split > * {
  min-width: 0;
}

.hero__main {
  position: relative;
  z-index: 2;
  overflow: visible;
  background: transparent;
  color: var(--color-text);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--hero-inner-gap);
  min-height: 100%;
  padding: var(--hero-pad-top) var(--pad-x) var(--hero-pad-bottom);
}

.hero__content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.hero__content .hero__badge {
  margin: 0 0 var(--hero-gap-badge-title);
}

.hero__content .hero__title {
  margin: 0 0 var(--hero-gap-title-subtitle);
  font-size: var(--hero-title-size);
}

.hero__content .hero__lead.hero__lead--subtitle {
  margin: 0 0 var(--hero-gap-subtitle-features);
}

.hero__content .hero__cta {
  margin: 0;
}

.hero__features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 0 0 var(--hero-gap-features-cta);
  padding: 0;
  list-style: none;
}

.hero__feature {
  --feature-check-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
  --feature-check-inset: 14px;
  --feature-check-size: 2.05em;
  position: relative;
  margin: 0;
  padding: 12px 14px;
  font-size: max(14px, var(--hero-feature-size));
  line-height: 1.4;
  font-weight: 500;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-btn);
  border-radius: 10px;
}

.hero__feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--feature-check-inset);
  z-index: 1;
  width: var(--feature-check-size);
  height: var(--feature-check-size);
  transform: translate(-50%, -50%);
  pointer-events: none;
  /* Halo matches hero bg so the tick sits on the border line, not inside the card */
  box-shadow: 0 0 0 4px var(--color-hero);
  background-color: var(--palette-blue-600);
  -webkit-mask-image: var(--feature-check-svg);
  mask-image: var(--feature-check-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.hero__cta-btn {
  border-radius: 999px;
  padding-left: 28px;
  padding-right: 28px;
}

.hero__media {
  position: relative;
  z-index: 1;
  background: var(--color-hero);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: visible;
}

.hero__media-inner {
  position: relative;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 280px;
  padding: 24px var(--pad-x) 32px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.hero__decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

/* DevTools: select .hero__decor-dots or .hero__decor-rings — tune --dots-* / --rings-* below */
.hero__decor-dots {
  --dots-top: 0;
  --dots-right: 0;
  --dots-width: min(62%, 340px);
  --dots-shift-x: 0;
  --dots-shift-y: 0;
  position: absolute;
  top: var(--dots-top);
  right: var(--dots-right);
  z-index: 1;
  width: var(--dots-width);
  height: auto;
  object-fit: contain;
  object-position: top right;
  transform: translate(var(--dots-shift-x), var(--dots-shift-y));
  pointer-events: none;
}

.hero__decor-rings {
  /* anchor: center of rings on left edge of portrait (half width sticks out left) */
  --rings-photo-half: 11.875rem;
  --rings-anchor: calc(50% - var(--rings-photo-half));
  --rings-height: 142%;
  --rings-shift-x: -50%;
  --rings-shift-y: clamp(3rem, 6vh, 4.5rem);
  position: absolute;
  z-index: 0;
  left: var(--rings-anchor);
  bottom: 0;
  width: auto;
  height: var(--rings-height);
  transform: translate(var(--rings-shift-x), var(--rings-shift-y));
  object-fit: contain;
  object-position: 50% 100%;
  pointer-events: none;
}

.hero__photo {
  /* DevTools: --photo-max-width, --photo-max-height, --photo-fit, --photo-position */
  --photo-max-width: 380px;
  --photo-max-height: 680px;
  --photo-fit: contain;
  --photo-position: center bottom;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  width: min(100%, var(--photo-max-width));
  align-self: flex-end;
  overflow: visible;
}

.hero__photo picture {
  display: block;
  width: 100%;
  max-height: var(--photo-max-height);
  overflow: hidden;
  line-height: 0;
}

.hero__photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--photo-max-height);
  object-fit: var(--photo-fit);
  object-position: var(--photo-position);
}

.hero__photo-caption {
  flex-shrink: 0;
  width: 100%;
  margin-top: 12px;
  line-height: 1.35;
  text-align: center;
}

.hero__photo-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
}

.hero__photo-role {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.hero__photo-meta {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
}

@media (max-width: 1023px) {
  .hero__media {
    min-height: 0;
  }

  .hero__media-inner {
    min-height: min(52vh, 480px);
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .hero__photo {
    --photo-max-width: 320px;
    --photo-max-height: 520px;
  }

  .hero__photo picture,
  .hero__photo-img {
    max-height: var(--photo-max-height);
  }

  .hero__decor-rings {
    --rings-photo-half: 8rem;
    --rings-height: 128%;
    --rings-shift-y: clamp(1.75rem, 4vh, 2.75rem);
  }

  .hero__decor-dots {
    --dots-width: min(52%, 220px);
    --dots-shift-x: 2%;
  }

  .hero__split {
    min-height: 0;
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .hero__content {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
  }

  .hero__media {
    order: 1;
  }

  .hero__main {
    order: 0;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px 8px 10px;
  width: fit-content;
  max-width: 100%;
  font-size: var(--hero-badge-size);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  background: var(--color-header);
  border: 1px solid rgba(58, 132, 255, 0.18);
  border-radius: 999px;
  letter-spacing: 0.01em;
}

.hero__badge-icon {
  flex: 0 0 auto;
  display: block;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  background: var(--gradient-badge-sphere);
  box-shadow: inset 0 -2px 4px rgba(0, 29, 109, 0.12);
}

.hero__title {
  margin: 0;
  font-size: var(--hero-title-size);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--color-heading);
}

.hero__line {
  display: block;
}

.hero__lead.hero__lead--subtitle {
  margin: 0;
  max-width: var(--hero-subtitle-max-width);
  font-size: var(--hero-subtitle-size);
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero {
    --hero-subtitle-size: 20px;
    --hero-subtitle-max-width: min(100%, 26em);
    --hero-badge-size: 14px;
    --hero-feature-size: 14px;
  }

  .hero__feature {
    padding: 10px 8px;
    --feature-check-inset: 10px;
  }

  .hero__badge-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .hero__badge {
    padding: 10px 18px 10px 12px;
  }
}

.hero__cta {
  margin: 0;
}

@media (max-width: 767px) {
  .hero {
    --hero-pad-top: 16px;
    --hero-pad-bottom: 24px;
    --hero-inner-gap: 0;
    --hero-subtitle-size: 18px;
    --hero-feature-size: 14px;
    --hero-gap-badge-title: 16px;
    --hero-gap-title-subtitle: 16px;
    --hero-gap-subtitle-features: 28px;
    --hero-gap-features-cta: 22px;
  }

  .hero__content .hero__badge {
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
    padding: 6px 12px 6px 8px;
    gap: 6px;
    letter-spacing: 0.02em;
  }

  .hero__content .hero__badge .hero__badge-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }

  .hero__features {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__feature {
    padding: 12px 14px;
    --feature-check-inset: 14px;
  }

  .hero__cta {
    align-self: stretch;
    width: 100%;
  }

  .hero__cta .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .hero__cta .btn--lg {
    font-size: 15px;
  }
}

@media (max-width: 479px) {
  .hero__content .hero__badge {
    max-width: 100%;
  }

  .hero__feature {
    padding: 10px 12px;
    --feature-check-inset: 12px;
  }
}

@media (max-width: 359px) {
  .hero__cta .btn--lg {
    white-space: nowrap;
    font-size: 14px;
    padding: 12px 8px;
    letter-spacing: -0.03em;
  }
}

@media (max-width: 320px) {
  .hero {
    --hero-pad-top: 14px;
  }
}

@media (min-width: 768px) {
  .hero {
    --hero-pad-top: 60px;
    --hero-pad-bottom: 36px;
    --hero-inner-gap: 0;
    --hero-gap-badge-title: 24px;
    --hero-gap-title-subtitle: 24px;
    --hero-gap-subtitle-features: 36px;
    --hero-gap-features-cta: 26px;
  }

  .hero__media-inner {
    padding: 32px var(--pad-x) 48px;
  }

  .hero__features {
    grid-template-columns: repeat(3, var(--hero-feature-col));
    width: fit-content;
    max-width: 100%;
    gap: 10px;
  }

  .hero__feature {
    padding: 12px 10px;
    --feature-check-inset: 12px;
  }
}

/* Tablet 768–1023: smaller decor behind portrait */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__media-inner {
    min-height: min(46vh, 400px);
  }

  .hero__photo {
    --photo-max-width: 280px;
    --photo-max-height: 440px;
    z-index: 2;
  }

  .hero__decor-rings {
    --rings-photo-half: 8.75rem;
    --rings-height: 112%;
    --rings-shift-y: 1.75rem;
  }

  .hero__decor-dots {
    --dots-top: clamp(8px, 2.5vh, 20px);
    --dots-width: min(50%, 270px);
    --dots-shift-x: -26%;
    --dots-shift-y: 0;
    z-index: 1;
  }
}

@media (min-width: 1024px) {
  .hero__title,
  .hero__content .hero__title {
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.035em;
  }

  .hero {
    --hero-subtitle-size: 22px;
    --hero-subtitle-max-width: 28em;
    --hero-badge-size: 12px;
    --hero-feature-size: 14px;
    --hero-gap-badge-title: 20px;
    --hero-gap-title-subtitle: 28px;
    --hero-gap-subtitle-features: 44px;
    --hero-gap-features-cta: 30px;
    --hero-pad-top: 60px;
    --hero-pad-bottom: 28px;
    --hero-inner-gap: 22px;
    --hero-feature-col: minmax(0, 10.5rem);
  }

  .hero__feature {
    --feature-check-size: 2.4em;
  }

  .hero__decor-rings {
    --rings-photo-half: min(13.125rem, 50%);
    --rings-height: calc(100% + clamp(4rem, 10vh, 6rem) + clamp(16px, 2.5vh, 32px));
    --rings-shift-y: clamp(3.5rem, 7vh, 5.5rem);
  }

  .hero__split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
    min-height: min(64vh, 700px);
    width: 100%;
  }

  .hero__main {
    align-self: start;
  }

  .hero__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: var(--hero-inner-gap);
    min-height: 0;
    padding: var(--hero-pad-top) var(--pad-x) var(--hero-pad-bottom);
    overflow: visible;
  }

  .hero__content {
    flex: 1 1 auto;
    align-self: flex-start;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .hero__media {
    min-height: 0;
    align-self: stretch;
  }

  .hero__media-inner {
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    /* Same vertical rhythm as .hero__inner — photo bottom lines up with CTA */
    padding: var(--hero-pad-top) var(--pad-x) var(--hero-pad-bottom);
  }

  .hero__photo {
    --photo-max-width: 100%;
    --photo-fit: cover;
    --photo-position: 50% 38%;
    flex: 1 1 auto;
    min-height: 0;
    width: min(100%, var(--photo-max-width));
    align-self: center;
    margin-inline: auto;
  }

  .hero__photo picture {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(92vh, 1200px);
    width: 100%;
  }

  .hero__photo-img {
    height: 100%;
    max-height: min(92vh, 1200px);
    min-height: 0;
  }
}

/* 1024–1279 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__decor-dots {
    --dots-top: calc(-1 * clamp(4px, 1vh, 8px));
    --dots-width: min(48%, 260px);
    --dots-shift-x: 4%;
  }

  .hero__split {
    /* Lower floor than 1280+ so row height follows text block at 1024px */
    min-height: min(56vh, 540px);
    grid-template-columns: minmax(0, 1.14fr) minmax(0, 0.86fr);
  }

  .hero {
    --hero-subtitle-max-width: min(100%, 28em);
  }

  .hero__photo {
    --photo-max-width: 420px;
    --photo-position: 50% 38%;
  }

  .hero__photo picture,
  .hero__photo-img {
    max-height: min(70vh, 600px);
  }

  .hero__decor-rings {
    --rings-photo-half: 13.125rem;
  }

  .hero__content .hero__badge {
    gap: 6px;
    padding: 6px 12px 6px 8px;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.02em;
  }

  .hero__content .hero__badge .hero__badge-icon {
    width: 16px;
    height: 16px;
    min-width: 16px;
    min-height: 16px;
  }
}

/* 1280–1439 */
@media (min-width: 1280px) {
  .hero {
    --hero-badge-size: 14px;
    --hero-gap-badge-title: 22px;
    --hero-gap-title-subtitle: 28px;
    --hero-gap-subtitle-features: 48px;
    --hero-gap-features-cta: 36px;
    --hero-pad-top: 60px;
    --hero-pad-bottom: 32px;
    --hero-inner-gap: 24px;
    --hero-feature-col: minmax(0, 10.75rem);
  }

  .hero__decor-rings {
    --rings-photo-half: 13.75rem;
    --rings-height: calc(100% + clamp(5.5rem, 12vh, 7rem) + clamp(14px, 2.8vh, 36px));
    --rings-shift-y: clamp(4rem, 7vh, 5.5rem);
  }

  .hero__decor-dots {
    --dots-top: calc(-1 * clamp(6px, 1.2vh, 12px));
    --dots-width: min(52%, 300px);
    --dots-shift-x: 5%;
  }

  .hero__photo {
    --photo-max-width: 440px;
    --photo-position: 50% 30%;
  }

  .hero__content .hero__badge {
    gap: 8px;
    padding: 8px 14px 8px 10px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.01em;
  }

  .hero__content .hero__badge .hero__badge-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .hero {
    --hero-subtitle-size: 26px;
    --hero-subtitle-max-width: 20em;
    --hero-feature-size: 14px;
  }

  .hero__split {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  }

  .hero__photo {
    --photo-max-width: 440px;
  }

  .hero__decor-rings {
    --rings-photo-half: 13.75rem;
  }
}


/* Short viewport: avoid forcing hero taller than the screen (e.g. 1024×480) */
@media (min-width: 1024px) and (max-height: 700px) {
  .hero__split {
    min-height: auto;
  }

  .hero__inner {
    padding-top: var(--hero-pad-top);
    padding-bottom: clamp(16px, 2.5vh, 28px);
    gap: clamp(18px, 2.2vh, 36px);
  }

  .hero {
    --hero-gap-badge-title: 20px;
    --hero-gap-title-subtitle: 24px;
    --hero-gap-subtitle-features: 32px;
    --hero-gap-features-cta: 40px;
  }

  .hero__decor-dots {
    --dots-width: min(44%, 240px);
  }

  .hero__media-inner {
    flex: 0 1 auto;
    height: auto;
    min-height: min(48vh, 400px);
  }

  .hero__photo {
    flex: 0 0 auto;
  }

  .hero__photo picture {
    flex: 0 0 auto;
    height: 480px;
    max-height: 480px;
  }

  .hero__photo-img {
    height: 100%;
    max-height: 480px;
    min-height: 0;
  }
}

@media (min-width: 1440px) and (max-width: 1919px) {
  .hero {
    --hero-subtitle-size: 28px;
    --hero-subtitle-max-width: 22em;
    --hero-feature-size: 14px;
    --hero-gap-badge-title: 22px;
    --hero-gap-title-subtitle: 28px;
    --hero-gap-subtitle-features: 48px;
    --hero-gap-features-cta: 40px;
    --hero-pad-top: 60px;
    --hero-pad-bottom: 36px;
    --hero-inner-gap: 28px;
    --hero-feature-col: minmax(0, 11rem);
  }

  .hero__decor-rings {
    --rings-photo-half: 14.375rem;
    --rings-height: calc(100% + clamp(6rem, 13vh, 8rem) + 32px);
    --rings-shift-y: 4.5rem;
  }

  .hero__decor-dots {
    --dots-width: min(52%, 300px);
    --dots-shift-x: 5%;
  }

  .hero__split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    min-height: min(58vh, 580px);
  }

  .hero__photo {
    --photo-max-width: 440px;
    --photo-position: 50% 24%;
  }
}

@media (min-width: 1920px) {
  .hero {
    --hero-subtitle-size: 32px;
    --hero-subtitle-max-width: 24em;
    --hero-badge-size: 16px;
    --hero-feature-size: 16px;
    --hero-gap-badge-title: 24px;
    --hero-gap-title-subtitle: 32px;
    --hero-gap-subtitle-features: 56px;
    --hero-gap-features-cta: 50px;
    --hero-pad-top: 60px;
    --hero-pad-bottom: 44px;
    --hero-inner-gap: 32px;
    --hero-feature-col: minmax(0, 11.5rem);
  }

  .hero__split {
    grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
    min-height: min(60vh, 620px);
  }

  .hero__photo {
    --photo-max-width: 480px;
    --photo-position: 50% 30%;
  }

  .hero__decor-rings {
    --rings-photo-half: 15rem;
    --rings-height: calc(100% + clamp(7rem, 15vh, 9rem) + clamp(16px, 3vh, 40px));
    --rings-shift-y: clamp(5rem, 8vh, 6.5rem);
  }

  .hero__decor-dots {
    --dots-width: min(56%, 340px);
    --dots-shift-x: 6%;
  }

  .hero__content .hero__badge {
    gap: 8px;
    padding: 10px 18px 10px 12px;
  }

  .hero__content .hero__badge .hero__badge-icon {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .hero__line {
    white-space: nowrap;
  }
}

/* Sections */
section {
  scroll-margin-top: var(--header-offset);
}

.section {
  padding-block: var(--section-pad-y);
}

/* Real gap between sections via bottom rhythm (not top push) */
main > .section {
  position: relative;
  margin-bottom: var(--section-gap);
}

main > .section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--section-gap));
  height: var(--section-gap);
  background: inherit;
  pointer-events: none;
}

main > .section:last-child {
  margin-bottom: 0;
}

main > .section:last-child::after {
  content: none;
}

/* Extra air after hero — keep gap inside hero bg (no gray body strip) */
.hero {
  padding-bottom: 22px;
}

.section--alt {
  background: var(--color-surface);
}

.section__title {
  margin: 0 0 50px;
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-heading);
}

@media (max-width: 767px) {
  .section__title {
    margin-bottom: 30px;
  }
}

@media (min-width: 768px) and (max-width: 1439px) {
  .section__title {
    margin-bottom: 40px;
  }
}

/* Page-level H1 (subpages, checklist) — never same size as section H2 */
h1.section__title,
.checklist-article__title {
  font-size: var(--h1);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

/* Section lead under h2: same size scale as main copy (--text-base) */
.section__subtitle {
  margin: 0 0 28px;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  color: var(--color-text-lead);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.55;
}

/* Section headings — centered (hero excluded) */
.section .section__title {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section .section__subtitle {
  max-width: 40rem;
}

/* Law brief (procedure intro) */
.law-brief .section__subtitle {
  max-width: none;
  font-weight: 400;
  color: var(--color-text-lead);
}

.law-brief .prose-list,
.law-brief .prose-list li {
  color: var(--color-text-soft);
  font-weight: 400;
}

/* Lead quiz — type scale 16 / 20 / 24px (4px rhythm). Panel ignores breakpoint --text-base 18/20 from :root. Brand colors: --palette-blue-*. */
.lead-quiz {
  background: var(--palette-blue-100);
}

.lead-quiz__aside {
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.lead-quiz__aside-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  text-align: left;
  color: var(--color-heading);
}

@media (min-width: 768px) {
  .lead-quiz__aside-title {
    font-size: 15px;
    margin-bottom: 14px;
  }
}

@media (min-width: 1024px) {
  .lead-quiz__aside-title {
    font-size: 16px;
  }
}

@media (min-width: 1440px) {
  .lead-quiz__aside-title {
    font-size: 18px;
    margin-bottom: 16px;
  }
}

.lead-quiz__aside-lead {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--color-text-muted);
}

.lead-quiz__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-soft);
}

.lead-quiz__bullets li {
  margin: 0;
  position: relative;
  padding-left: 28px;
}

.lead-quiz__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--palette-blue-200) 0%, var(--palette-blue-500) 100%);
  box-shadow: inset 0 -2px 4px rgba(0, 17, 68, 0.12);
}

@media (min-width: 768px) {
  .lead-quiz__bullets li::before {
    width: 16px;
    height: 16px;
    top: 0.45em;
  }

  .lead-quiz__bullets li {
    padding-left: 32px;
  }
}

.lead-quiz__bullets strong {
  display: inline;
  font-size: inherit;
  font-weight: 600;
  color: var(--color-heading);
}

.lead-quiz__aside-foot {
  margin: 16px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--palette-blue-200);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  color: var(--color-text);
}

.lead-quiz__aside-foot strong {
  font-weight: 700;
  color: var(--color-heading);
}

@keyframes lead-quiz-arrow-nudge-y {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@keyframes lead-quiz-arrow-nudge-x {
  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(6px);
  }
}

.lead-quiz__aside-arrow {
  display: inline-block;
  margin-left: 8px;
  width: 22px;
  height: 28px;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--palette-blue-200) 0%, var(--palette-blue-500) 100%);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40' fill='none'%3E%3Cpath d='M12 4v28M4 24l8 12 8-12' stroke='%23000' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 40' fill='none'%3E%3Cpath d='M12 4v28M4 24l8 12 8-12' stroke='%23000' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: lead-quiz-arrow-nudge-y 1.6s ease-in-out infinite;
}

.lead-quiz__aside-arrow::before {
  content: none;
}

@media (min-width: 900px) {
  .lead-quiz__aside-arrow {
    display: block;
    margin: 16px 0 0 auto;
    width: 48px;
    height: 28px;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' fill='none'%3E%3Cpath d='M4 12h32M28 4l12 8-12 8' stroke='%23000' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' fill='none'%3E%3Cpath d='M4 12h32M28 4l12 8-12 8' stroke='%23000' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
    animation-name: lead-quiz-arrow-nudge-x;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lead-quiz__aside-arrow {
    animation: none;
  }
}

.lead-quiz__layout {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .lead-quiz__layout {
    /* ~40% / ~60% с учётом gap (доли 2:3) */
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    gap: 32px;
    align-items: start;
  }
}

.lead-quiz__panel {
  font-size: 16px;
  line-height: 1.55;
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 17, 68, 0.06);
  padding: 20px 20px 24px;
}

@media (min-width: 768px) {
  .lead-quiz__panel {
    padding: 28px 28px 32px;
  }
}

.lead-quiz__panel .field label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-muted);
}

.lead-quiz__panel .field input,
.lead-quiz__panel .field textarea {
  font-size: 16px;
}

.lead-quiz__progress {
  height: 8px;
  background: var(--palette-blue-200);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.lead-quiz__progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--palette-blue-700), var(--palette-blue-500));
  transition: width 0.25s ease;
}

.lead-quiz__step-label {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-muted);
}

.quiz-step {
  margin-bottom: 4px;
}

.lead-quiz__q {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
}

@media (min-width: 1024px) {
  .lead-quiz__q {
    font-size: var(--h3);
  }
}

.lead-quiz__hint {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.lead-quiz__hint--thanks {
  line-height: 1.55;
  color: var(--color-text-lead);
}

.lead-quiz__fieldset {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.lead-quiz__legend {
  margin: 0 0 10px;
  padding: 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-heading);
}

.lead-quiz__checks,
.lead-quiz__radios {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lead-quiz__check,
.lead-quiz__radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  background: #fff;
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lead-quiz__check:hover,
.lead-quiz__radio:hover {
  border-color: var(--palette-blue-400);
  box-shadow: 0 0 0 1px rgba(106, 163, 255, 0.25);
}

.lead-quiz__check input,
.lead-quiz__radio input {
  margin-top: 4px;
  flex-shrink: 0;
  accent-color: var(--palette-blue-600);
}

.lead-quiz__softwarn {
  margin-top: 16px;
  padding: 16px 16px 16px 48px;
  font-size: 16px;
  line-height: 1.5;
  color: #5c4a00;
  background: #fff8e6;
  border: 1px solid #e8c84a;
  border-radius: var(--radius);
  position: relative;
}

.lead-quiz__softwarn::before {
  content: "!";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  color: #5c4a00;
  background: #fff;
  border: 1.5px solid #c9a020;
  border-radius: 50%;
}

.lead-quiz__softok {
  margin-top: 16px;
  padding: 16px 16px 16px 48px;
  font-size: 16px;
  line-height: 1.5;
  color: #1a4d3a;
  background: #e8f5ef;
  border: 1px solid #7bc9a8;
  border-radius: var(--radius);
  position: relative;
}

.lead-quiz__softok::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 24px;
  height: 24px;
  background: url("../assets/icons/icon-check-circle.svg") center / contain no-repeat;
}

.lead-quiz__fieldset--amount {
  margin: 0;
}

.lead-quiz__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--palette-blue-200);
}

/* Ensure [hidden] wins over .btn { display: inline-flex } (last step: only «Отправить»). */
.lead-quiz__nav button[hidden] {
  display: none !important;
}

.lead-quiz__panel .checkbox {
  font-size: 16px;
  line-height: 1.45;
}

/* Request callback — regular body weight */
.lead-quiz__panel .checkbox:has(.js-quiz-request-callback) {
  font-weight: 400;
  color: var(--color-text);
}

/* Consent — same tone as .form .checkbox (muted), link stays accent */
.lead-quiz__panel .checkbox:has(.js-quiz-consent) {
  font-weight: 400;
  color: var(--color-text-muted);
}

.lead-quiz__panel .checkbox:has(.js-quiz-consent) a {
  font-weight: 600;
  color: var(--palette-blue-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lead-quiz__panel .checkbox:has(.js-quiz-consent) a:hover {
  color: var(--palette-blue-900);
}

.lead-quiz__panel .checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  accent-color: var(--palette-blue-600);
}

.lead-quiz .form__success {
  background: var(--palette-blue-100);
  color: var(--palette-blue-900);
  border: 1px solid var(--palette-blue-200);
}

.lead-quiz .form__error {
  background: rgba(179, 58, 58, 0.08);
  border: 1px solid rgba(179, 58, 58, 0.22);
}

@media (max-width: 599px) {
  .lead-quiz__nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lead-quiz__nav .btn {
    width: auto;
    flex: 0 1 auto;
    justify-content: center;
  }
}

/* Procedure standalone page */
.procedure-subpage .procedure-subpage__hero {
  padding-top: 32px;
}

@media (min-width: 768px) {
  .procedure-subpage__hero h1.section__title {
    font-size: 28px;
  }
}

@media (min-width: 1024px) {
  .procedure-subpage__hero h1.section__title {
    font-size: 32px;
  }
}

@media (min-width: 1440px) {
  .procedure-subpage__hero h1.section__title {
    font-size: var(--h1);
  }
}

.breadcrumbs {
  margin: 0 0 16px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-soft);
}

.breadcrumbs__item:not(:last-child)::after {
  content: "/";
  color: var(--color-text-muted);
  font-weight: 400;
  pointer-events: none;
}

.breadcrumbs__item a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs__item a:hover {
  text-decoration: underline;
}

.breadcrumbs__item[aria-current="page"] {
  color: var(--color-text);
  font-weight: 500;
}

.procedure-subpage__h2 {
  margin: 28px 0 12px;
  font-size: var(--h3);
  font-weight: 700;
  color: var(--color-heading);
}

.procedure-subpage__note {
  margin-top: 8px;
}

.procedure-subpage__cta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 600px) {
  .procedure-subpage__cta {
    flex-direction: row;
    align-items: center;
  }
}

/* Lists & cards */
.two-col {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.prose-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--color-text);
}

.prose-list li {
  margin-bottom: 10px;
}

.prose-list li::marker {
  color: var(--color-accent);
}

.muted {
  color: var(--color-text-muted);
}

/* Debts types (replaces former services block) */
.section--debts {
  background: var(--palette-blue-100);
}

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

@media (min-width: 640px) {
  .debts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
  }
}

@media (min-width: 1024px) {
  .debts-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 32px;
  }
}

.debts-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.debts-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200);
  box-shadow: var(--shadow-sm);
}

.debts-item__icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.debts-item__label {
  margin: 10px 0 0;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-heading);
}

@media (min-width: 1024px) {
  .debts-item {
    gap: 18px;
  }

  .debts-item__icon {
    width: 56px;
    height: 56px;
  }

  .debts-item__icon img {
    width: 34px;
    height: 34px;
  }

  .debts-item__label {
    margin-top: 12px;
  }
}

@media (min-width: 1440px) {
  .debts-item {
    gap: 20px;
  }

  .debts-item__icon {
    width: 64px;
    height: 64px;
  }

  .debts-item__icon img {
    width: 40px;
    height: 40px;
  }

  .debts-item__label {
    margin-top: 14px;
  }
}

.debts__note {
  margin: 32px auto 0;
  max-width: min(100%, 56rem);
  text-align: center;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-lead);
}

.debts__note strong {
  font-weight: 700;
  color: var(--color-heading);
}

.debts__cta {
  margin: 24px 0 0;
  text-align: center;
}

.debts__cta .btn--lg {
  border-radius: 999px;
}

/* Procedure steps (§10 — 3 cards per row on desktop) */
.procedure-steps {
  display: grid;
  gap: 16px;
  margin-top: 8px;
}

/* Flatten column wrappers: steps 1–6 flow into one grid */
.procedure-steps__col {
  display: contents;
}

@media (min-width: 640px) {
  .procedure-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .procedure-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.procedure-step {
  padding: 16px 20px;
  background: var(--palette-blue-100);
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.section--alt .procedure-step {
  background: var(--palette-blue-100);
}

.procedure-step__title {
  margin: 0 0 8px;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
}

.procedure-step__num {
  color: var(--color-heading);
  font-weight: 700;
}

.procedure-step__text {
  margin: 0;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-muted);
}

@media (min-width: 1440px) {
  .procedure-steps {
    gap: 20px;
  }

  .procedure-step {
    padding: 20px 24px;
  }
}

/* Legacy workflow (removed from markup) */
.workflow-ui {
  display: none;
}

.workflow-mobile-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: workflow-mobile;
}

.workflow-mobile-list li {
  position: relative;
  margin-bottom: 14px;
  padding: 10px 0 10px 48px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.workflow-mobile-list li::before {
  counter-increment: workflow-mobile;
  content: counter(workflow-mobile);
  position: absolute;
  left: 0;
  top: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(46, 95, 138, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-text);
  z-index: 1;
}

.workflow-mobile-list li:nth-child(1)::before { background: #e0eaf3; }
.workflow-mobile-list li:nth-child(2)::before { background: #c3d7e8; }
.workflow-mobile-list li:nth-child(3)::before { background: #a7c3db; }
.workflow-mobile-list li:nth-child(4)::before { background: #89accb; }
.workflow-mobile-list li:nth-child(5)::before { background: #6d96bc; }
.workflow-mobile-list li:nth-child(6)::before { background: #4c7ea9; }

.workflow-mobile-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 40px;
  bottom: -14px;
  width: 2px;
  background: rgba(46, 95, 138, 0.35);
  z-index: 0;
}

@media (max-width: 640px) {
  .workflow-mobile-list li {
    padding-left: 44px;
  }

  .workflow-mobile-list li::before {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .workflow-mobile-list li:not(:last-child)::after {
    left: 14px;
    top: 38px;
  }
}

.workflow-mobile-list strong {
  color: var(--color-text);
}

@media (min-width: 1024px) {
  .workflow-mobile-list {
    display: none;
  }

  .workflow-ui {
    display: block;
    min-height: 760px;
  }
}

.workflow-wheel {
  position: relative;
  width: 373px;
  height: 373px;
  margin: 0 auto;
}

.workflow-wheel__svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 20px rgba(26, 35, 50, 0.18));
}

.workflow-segment {
  opacity: 0.9;
}

.workflow-wheel__svg .workflow-segment:nth-child(1) { fill: #e0eaf3; }
.workflow-wheel__svg .workflow-segment:nth-child(2) { fill: #c3d7e8; }
.workflow-wheel__svg .workflow-segment:nth-child(3) { fill: #a7c3db; }
.workflow-wheel__svg .workflow-segment:nth-child(4) { fill: #89accb; }
.workflow-wheel__svg .workflow-segment:nth-child(5) { fill: #6d96bc; }
.workflow-wheel__svg .workflow-segment:nth-child(6) { fill: #4c7ea9; }

.workflow-wheel__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 480px;
  height: 480px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(46, 95, 138, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.workflow-step-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.workflow-step-btn.step-1 { transform: translate(216px, -154px) translate(-230%, -160%); }
.workflow-step-btn.step-2 { transform: translate(240px, -12px) translate(-50%, -50%); }
.workflow-step-btn.step-3 { transform: translate(158px, 199px) translate(-59%, -90%); }
.workflow-step-btn.step-4 { transform: translate(-158px, 199px) translate(-41%, -90%); }
.workflow-step-btn.step-5 { transform: translate(-240px, -12px) translate(-50%, -50%); }
.workflow-step-btn.step-6 { transform: translate(-216px, -154px) translate(130%, -160%); }

.workflow-constellation {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  min-height: 760px;
}

.workflow-constellation .workflow-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.workflow-note {
  position: absolute;
  z-index: 2;
  max-width: 320px;
  padding: 10px 12px;
}

.workflow-note h3 {
  margin: 0 0 8px;
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-heading);
}

.workflow-note p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.55;
}

.workflow-note.note-1 { left: 68%; top: 17%; }
.workflow-note.note-2 { left: 73%; top: 43%; }
.workflow-note.note-3 { left: 67%; top: 69%; }
.workflow-note.note-4 { left: 11%; top: 69%; }
.workflow-note.note-5 { left: 0; top: 43%; }
.workflow-note.note-6 { left: 8%; top: 17%; }

@media (min-width: 1024px) and (max-width: 1279px) {
  .workflow-ui {
    min-height: 640px;
  }

  .workflow-constellation {
    max-width: 980px;
    min-height: 640px;
  }

  .workflow-wheel {
    width: 260px;
    height: 260px;
  }

  .workflow-wheel__ring {
    width: 335px;
    height: 335px;
  }

  .workflow-step-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  /* Ring / wheel ≈260px: step anchors scaled from 373px base (×260/373) */
  .workflow-step-btn.step-1 {
    transform: translate(151px, -107px) translate(-230%, -160%);
  }

  .workflow-step-btn.step-2 {
    transform: translate(167px, -8px) translate(-50%, -50%);
  }

  .workflow-step-btn.step-3 {
    transform: translate(110px, 139px) translate(-59%, -90%);
  }

  .workflow-step-btn.step-4 {
    transform: translate(-110px, 139px) translate(-41%, -90%);
  }

  .workflow-step-btn.step-5 {
    transform: translate(-167px, -8px) translate(-50%, -50%);
  }

  .workflow-step-btn.step-6 {
    transform: translate(-151px, -107px) translate(130%, -160%);
  }

  .workflow-note {
    max-width: 250px;
    padding: 8px 8px;
  }

  .workflow-note h3 {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .workflow-note p {
    font-size: 16px;
    line-height: 1.45;
  }
}

@media (min-width: 1280px) and (max-width: 1439px) {
  .workflow-ui {
    min-height: 680px;
  }

  .workflow-constellation {
    max-width: 1120px;
    min-height: 680px;
  }

  .workflow-wheel {
    width: 340px;
    height: 340px;
  }

  .workflow-wheel__ring {
    width: 436px;
    height: 436px;
  }

  .workflow-step-btn {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }

  .workflow-step-btn.step-1 { transform: translate(197px, -141px) translate(-230%, -160%); }
  .workflow-step-btn.step-2 { transform: translate(219px, -11px) translate(-50%, -50%); }
  .workflow-step-btn.step-3 { transform: translate(144px, 181px) translate(-59%, -90%); }
  .workflow-step-btn.step-4 { transform: translate(-144px, 181px) translate(-41%, -90%); }
  .workflow-step-btn.step-5 { transform: translate(-219px, -11px) translate(-50%, -50%); }
  .workflow-step-btn.step-6 { transform: translate(-197px, -141px) translate(130%, -160%); }

  .workflow-note {
    max-width: 285px;
    padding: 9px 10px;
  }

  .workflow-note h3 {
    margin-bottom: 6px;
    font-size: 16px;
  }

  .workflow-note p {
    font-size: 16px;
    line-height: 1.5;
  }
}

@media (min-width: 1440px) {
  .workflow-constellation {
    max-width: 1320px;
  }

  .workflow-note {
    max-width: 350px;
  }
}

#steps.section--alt {
  box-shadow: 0 6px 20px -14px rgba(26, 35, 50, 0.12);
}

.section--mid-cta {
  position: relative;
  border-top: 1px solid color-mix(in srgb, var(--palette-blue-300) 40%, var(--palette-blue-200));
  background-color: var(--accent-band-edge);
  background-image:
    linear-gradient(to bottom, var(--accent-band-edge) 0, var(--accent-band-edge) 56px, transparent 56px),
    var(--accent-band-bg);
  background-size: 100% 56px, 220% 220%;
  background-repeat: no-repeat, no-repeat;
  background-position: center top, 0% 55%;
  animation: accent-band-shift 18s ease-in-out infinite alternate;
}

@keyframes accent-band-shift {
  from {
    background-position: center top, 0% 45%;
  }

  to {
    background-position: center top, 100% 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section--mid-cta {
    animation: none;
    background-size: 100% 56px, 100% 100%;
    background-position: center top, 50% 50%;
  }
}

.mid-cta {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.mid-cta__avatar {
  margin: 0 auto 18px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.mid-cta__avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.mid-cta .section__title,
.mid-cta .section__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.mid-cta .section__subtitle {
  max-width: 700px;
}

.mid-cta .btn {
  display: flex;
  width: fit-content;
  margin: 0 auto;
}

.mid-cta .btn--lg {
  white-space: nowrap;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .mid-cta .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .mid-cta .btn--lg {
    font-size: 15px;
  }
}

@media (max-width: 359px) {
  .mid-cta .btn--lg {
    padding: 12px 8px;
    letter-spacing: -0.03em;
  }
}

.mid-cta__messengers {
  margin-top: 22px;
}

.mid-cta__messengers-text {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.35;
}

.mid-cta__messengers-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.mid-cta__social {
  text-decoration: none;
}

@media (min-width: 768px) {
  .mid-cta__avatar {
    width: 96px;
    height: 96px;
    margin-bottom: 22px;
  }
}

/* About team — tune in DevTools on .about-layout: --about-gap, --about-aside-max, --about-text-max */
.about-layout {
  display: block;
  --about-gap: 40px;
  --about-aside-max: min(480px, 100%);
  --about-text-max: 40rem;
}

.about-aside {
  margin-bottom: 22px;
}

.about-aside .section__title {
  max-width: none;
}

@media (min-width: 768px) {
  .about-aside .section__title {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
}

.about-visual {
  position: relative;
  width: 100%;
  max-width: var(--about-aside-max);
  margin: 0 0 22px;
  border-radius: var(--radius);
  overflow: hidden;
  container-type: inline-size;
  --about-visual-copy-width: 65cqi;
  --about-visual-headline-size: 5.833cqi; /* 28px @ 480 */
  --about-visual-pad-top: 7.5cqi; /* 36px @ 480 */
  --about-visual-copy-gap: 3cqi; /* 14px @ 480 */
}

.about-visual__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.about-visual__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: var(--about-visual-copy-gap);
  margin: 0;
  padding: var(--about-visual-pad-top) 0 0;
  color: #fff;
  font-style: normal;
  pointer-events: none;
}

.about-visual__headline {
  width: var(--about-visual-copy-width);
  margin: 0;
  font-family: "Tenor Sans", Georgia, "Times New Roman", serif;
  font-size: var(--about-visual-headline-size);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: left;
}

.about-visual__note {
  width: var(--about-visual-copy-width);
  margin: 0;
  font-family: var(--font);
  font-size: 3.333cqi; /* 16px @ 480 */
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: left;
}

.about-content {
  margin-top: 0;
  max-width: var(--about-text-max);
}

.about-lead {
  max-width: 100%;
  margin: 0 0 22px;
  text-align: left;
  color: var(--color-text-lead);
  font-weight: 500;
  font-size: var(--text-base);
  line-height: 1.55;
}

.about-lead strong {
  font-weight: 700;
  color: var(--color-text);
}

.about-body {
  max-width: 100%;
  margin: 0;
  text-align: left;
}

@media (min-width: 1024px) {
  .about-layout {
    display: flow-root;
    --about-float-gap: 40px;
  }

  .about-aside {
    margin-bottom: 16px;
  }

  .about-visual {
    float: left;
    width: min(var(--about-aside-max), 42%);
    margin: 0 var(--about-float-gap) 24px 0;
  }

  .about-content {
    max-width: none;
  }
}

@media (min-width: 1280px) {
  .about-layout {
    --about-float-gap: 56px;
    --about-text-max: 56rem;
  }
}

.about-body > p {
  margin: 0 0 16px;
  color: var(--color-text-lead);
  line-height: 1.55;
}

.about-tagline {
  margin: 22px 0 0 !important;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.5;
}

/* Free consultation benefits + lead form */
.section--consult {
  background: var(--palette-blue-100);
}

.section--consult .consult-benefits__title {
  max-width: 22em;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

@media (min-width: 640px) {
  .section--consult .consult-benefits__title {
    max-width: 26em;
  }
}

.consult-benefits {
  display: grid;
  gap: 28px;
  align-items: start;
}

@media (min-width: 1024px) {
  .consult-benefits {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    gap: 40px 48px;
  }
}

.consult-benefits__lead {
  margin: 0 0 20px;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  color: var(--color-heading);
}

.consult-benefits__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .consult-benefits__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}

.consult-benefits__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.consult-benefits__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200);
  color: var(--color-btn);
  box-shadow: var(--shadow-sm);
}

.consult-benefits__icon img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.consult-benefits__text {
  margin: 10px 0 0;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-lead);
}

.consult-benefits__form-wrap .form {
  margin: 0;
}

@media (min-width: 1024px) {
  .consult-benefits__item {
    gap: 18px;
  }

  .consult-benefits__icon {
    width: 56px;
    height: 56px;
  }

  .consult-benefits__icon img {
    width: 34px;
    height: 34px;
  }

  .consult-benefits__text {
    margin-top: 12px;
  }
}

@media (min-width: 1440px) {
  .consult-benefits__item {
    gap: 20px;
  }

  .consult-benefits__icon {
    width: 64px;
    height: 64px;
  }

  .consult-benefits__icon img {
    width: 40px;
    height: 40px;
  }

  .consult-benefits__text {
    margin-top: 14px;
  }
}

.form--consult .form__title {
  text-align: center;
}

.form--consult .form__submit {
  width: 100%;
}

.form__hint.form__hint--compact {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.45;
  text-align: center;
}

.docs-layout {
  display: grid;
  gap: 28px;
  align-items: center;
}

.docs-figure {
  margin: 0;
  max-width: 320px;
  justify-self: center;
}

.docs-figure__img {
  display: block;
  width: 100%;
  height: auto;
}

.docs-content__title {
  margin-bottom: 24px;
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.docs-grid {
  display: grid;
  margin-top: 0;
  gap: 20px 44px;
}

@media (min-width: 640px) {
  .docs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
    gap: 40px 48px;
    align-items: center;
  }

  .docs-figure {
    max-width: none;
    justify-self: stretch;
  }
}

@media (min-width: 1024px) {
  .docs-content__title {
    margin-bottom: 28px;
  }
}

.docs-cta {
  margin: 24px 0 0;
  text-align: left;
}

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

.docs-cta__link:hover {
  color: var(--color-accent-hover);
}

/* documents-checklist.html */
.checklist-page__inner {
  max-width: 720px;
}

.checklist-page__back {
  margin: 0 0 16px;
  font-size: 15px;
}

.checklist-page__back a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: none;
}

.checklist-page__back a:hover {
  text-decoration: underline;
}

.checklist-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 28px;
}

.checklist-page__hint {
  flex: 1 1 220px;
  font-size: calc(var(--text-base) - 2px);
  line-height: 1.45;
}

.checklist-article__title {
  margin-bottom: 50px;
}

.checklist-article__lead {
  margin: 0 0 24px;
  line-height: 1.55;
}

.checklist-article__h2 {
  margin: 26px 0 10px;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
}

.checklist-article__h2:first-of-type {
  margin-top: 8px;
}

.checklist-article .prose-list {
  margin-bottom: 0;
}

@media print {
  .no-print {
    display: none !important;
  }

  body.checklist-page {
    background: #fff;
  }

  .checklist-page .section {
    padding: 0;
  }

  .checklist-page__inner {
    max-width: none;
  }

  .checklist-article__title {
    font-size: 18pt;
  }

  .checklist-article__h2 {
    font-size: 12pt;
    page-break-after: avoid;
  }

  .checklist-article .prose-list {
    page-break-inside: avoid;
  }
}

.section-note {
  margin: 16px 0 0;
  padding: 10px 0 10px 12px;
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-lead);
  font-size: calc(var(--text-base) - 2px);
  line-height: 1.45;
}

/* Advantages list (§12 — checkmarks, no flip cards) */
.advantages-list {
  --advantage-check-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath stroke='%23000' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round' d='M5 12.5 10 17.5 19 7'/%3E%3C/svg%3E");
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .advantages-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

.section--advantages {
  background: var(--palette-blue-100);
}

.advantages-list__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.advantages-list__check {
  flex-shrink: 0;
  width: 1.65em;
  height: 1.65em;
  margin-top: 2px;
  background-color: var(--palette-blue-600);
  -webkit-mask-image: var(--advantage-check-svg);
  mask-image: var(--advantage-check-svg);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.advantages-list__body {
  min-width: 0;
}

.advantages-list__title {
  margin: 0 0 8px;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-heading);
}

.advantages-list__text {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* FAQ — intro left, accordion right */
.faq-layout {
  display: grid;
  gap: 28px 40px;
  align-items: start;
}

.faq-intro {
  text-align: left;
}

#faq .faq-intro .section__title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

#faq .faq__subtitle {
  margin: 0;
  max-width: none;
  text-align: left;
}

.faq-list {
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .faq-layout {
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
    gap: 32px 48px;
  }
}

@media (min-width: 1024px) {
  .faq-layout {
    grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
    gap: 40px 56px;
  }
}

@media (min-width: 1440px) {
  .faq-layout {
    column-gap: 80px;
  }
}

.faq__subtitle {
  margin-bottom: 0;
}

#reviews .section__subtitle,
#reviews .muted {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#reviews .muted {
  max-width: 40rem;
}

.faq-item {
  margin-bottom: 10px;
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  background: var(--palette-blue-100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
  font-size: calc(var(--text-base) - 2px);
  color: var(--color-heading);
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--palette-blue-600);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item__answer {
  padding: 0 20px 16px;
  margin: 0;
  color: var(--color-text-muted);
  font-size: calc(var(--text-base) - 2px);
  line-height: 1.55;
  border-top: 1px solid var(--palette-blue-200);
  padding-top: 12px;
}

/* Contacts */
.section--contacts {
  background: var(--palette-blue-100);
}

#contacts .contact-info {
  text-align: left;
}

#contacts .contact-info .section__title {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

#contacts .social-row--contacts {
  justify-content: flex-start;
}

#contacts .form__title,
#contacts .form__hint {
  text-align: left;
}

.contact-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) {
  .contact-list {
    gap: 28px;
  }
}

.contact-list > div {
  margin: 0;
}

.contact-list dt {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
}

.contact-list dd {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 500;
  line-height: 1.45;
  color: var(--color-text-lead);
}

.contact-list dd a.contact-link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  word-break: break-word;
}

.contact-list dd a.contact-link:hover {
  color: var(--color-accent);
}

/* Honeypot: hidden from users, present in HTML for bot traps */
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

.hp-field input {
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
}

.form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0;
  padding: 24px;
}

.form,
.lead-quiz__panel {
  position: relative;
}

.form__title {
  margin: 0 0 12px;
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-heading);
}

.form__hint {
  margin: 0 0 20px;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: var(--text-base);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  color: var(--color-text);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}

/* Neutralize browser autofill highlight — keep fields visually consistent */
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus,
.lead-quiz__panel .field input:-webkit-autofill,
.lead-quiz__panel .field input:-webkit-autofill:hover,
.lead-quiz__panel .field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  -webkit-text-fill-color: var(--color-text);
  caret-color: var(--color-text);
  transition: background-color 99999s ease-out 0s;
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px;
  font-size: 16px;
}

.form__success {
  display: none;
  padding: 16px;
  border-radius: 10px;
  background: rgba(58, 125, 111, 0.12);
  color: var(--color-teal);
  font-weight: 600;
  text-align: center;
}

.form__success.is-visible {
  display: block;
}

.form__error {
  display: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(179, 58, 58, 0.12);
  color: var(--color-error);
  font-weight: 600;
  font-size: 14px;
}

.form__error.is-visible {
  display: block;
}

.form__inner.is-hidden,
.js-form-inner.is-hidden {
  display: none;
}

/* Footer */
.site-footer {
  padding: 40px 0 32px;
  background: var(--color-text);
  color: #c9d0da;
  font-size: 14px;
}

.site-footer a {
  color: #a8c4e4;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .container {
  max-width: 1760px;
  display: grid;
  gap: 14px 40px;
}

@media (min-width: 900px) {
  .site-footer .container {
    grid-template-columns: minmax(260px, 1fr) minmax(280px, 1fr);
    align-items: start;
  }

  .footer__disclaimer {
    grid-column: 1 / -1;
  }
}

.footer__brand {
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin-bottom: 8px;
}

.footer__meta {
  margin: 0 0 20px;
  line-height: 1.5;
}

.footer__links {
  margin-bottom: 24px;
}

.footer__links a {
  margin-right: 16px;
}

.footer__disclaimer {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8a95a3;
  max-width: 900px;
}

@media (min-width: 1920px) {
  .site-footer {
    font-size: 20px;
  }

  .footer__brand {
    font-size: 24px;
  }

  .footer__meta,
  .footer__links a {
    font-size: 20px;
  }

  .footer__disclaimer {
    font-size: 16px;
    max-width: 1200px;
  }
}

.cta-band {
  padding: 40px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: #fff;
}

.cta-band .btn--ghost {
  border-color: #fff;
  color: #fff;
}

.cta-band .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.cta-band__title {
  margin: 0 0 12px;
  font-size: var(--h3);
  color: #fff;
}

.cta-band__text {
  margin: 0 0 20px;
  opacity: 0.92;
  font-size: calc(var(--text-base) - 2px);
}

/* Thank-you page */
.thank-you-header .header-top {
  justify-content: center;
}

.thank-you-page {
  min-height: calc(100vh - var(--header-top-height) - 220px);
  display: flex;
  align-items: center;
  background: var(--palette-blue-100);
}

.thank-you-page__inner {
  max-width: 640px;
  margin: 0 auto;
}

.thank-you-card {
  padding: 32px 24px;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--palette-blue-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .thank-you-card {
    padding: 48px 40px;
  }
}

.thank-you-card__badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(58, 125, 111, 0.12);
  color: var(--color-teal);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.thank-you-card__title {
  margin: 0 0 16px;
  font-size: var(--h1);
  line-height: 1.15;
  color: var(--color-heading);
}

.thank-you-card__lead {
  margin: 0 0 12px;
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text-lead);
}

.thank-you-card__hint {
  margin: 0 0 20px;
  font-size: calc(var(--text-base) - 1px);
  line-height: 1.5;
}

.thank-you-card__gift {
  margin: 0 0 20px;
  padding: 20px 18px;
  text-align: center;
  border-radius: calc(var(--radius) - 2px);
  border: 1px solid var(--palette-blue-200);
  background: var(--palette-blue-100);
}

.thank-you-card__gift-badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--palette-blue-200) 0%, var(--palette-blue-500) 100%);
  color: var(--palette-blue-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.thank-you-card__gift-title {
  margin: 0 0 8px;
  font-size: calc(var(--text-base) + 2px);
  line-height: 1.3;
  color: var(--color-heading);
}

.thank-you-card__gift-lead {
  margin: 0 0 16px;
  font-size: calc(var(--text-base) - 1px);
  line-height: 1.5;
}

.thank-you-card__gift .btn {
  width: 100%;
  max-width: 320px;
}

.thank-you-card__gift-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.thank-you-card__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.thank-you-card__messengers {
  padding-top: 20px;
  border-top: 1px solid var(--palette-blue-200);
}

.thank-you-card__messengers-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.thank-you-card__social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--palette-blue-200);
  background: var(--palette-blue-100);
  color: var(--color-heading);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.thank-you-card__social:hover {
  background: var(--palette-blue-200);
  border-color: var(--palette-blue-300);
}

.thank-you-card__social img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

@media (min-width: 480px) {
  .thank-you-card__actions {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
}
