:root {
  --font-ui: "Manrope", "Inter", "Segoe UI", sans-serif;

  --bg: #f5f7f9;
  --bg-elev: #eef2f5;
  --surface: #ffffff;
  --surface-muted: #f8fafc;

  --text: #0f1720;
  --text-muted: #586572;

  --line: #d8e1e8;
  --line-strong: #c6d2dc;

  --primary: #102433;
  --primary-hover: #0b1d2a;

  --accent: #2b6a68;
  --accent-soft: #e7f1f0;

  --ok: #2e7d4f;
  --warn: #9a6a17;
  --danger: #a64040;

  --radius-control: 0.4rem;
  --radius-card: 0.8rem;
  --radius-sm: var(--radius-control);
  --radius-md: var(--radius-card);
  --radius-lg: var(--radius-card);

  --shadow-sm: 0 2px 8px rgba(15, 23, 32, 0.05);
  --shadow-md: 0 10px 28px rgba(15, 23, 32, 0.08);

  --h-btn: 48px;
  --h-input: 48px;

  --container: 1200px;
  --section-pad: clamp(34px, 4.5vw, 68px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

body.modal-open {
  overflow: hidden;
}

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

.cms-icon {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.cms-card-icon {
  display: inline-grid;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-control);
}

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

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

h1,
h2,
h3 {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(36px, 4vw, 42px);
}

h2 {
  font-size: clamp(28px, 3vw, 32px);
}

h3 {
  font-size: clamp(20px, 2.2vw, 22px);
}

p {
  margin: 0 0 12px;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

small,
.muted {
  color: var(--text-muted);
  font-size: 14px;
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.surface,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.3vw, 28px);
}

.muted-surface {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.3vw, 28px);
}

.modal,
.panel {
  border-radius: var(--radius-card);
}

.section-head {
  max-width: 780px;
  margin-bottom: 24px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  color: #234847;
  font-size: 12px;
  font-weight: 600;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43, 106, 104, 0.16);
}

button {
  min-height: var(--h-btn);
  border-radius: var(--radius-control);
}

.btn {
  min-height: var(--h-btn);
  height: var(--h-btn);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0 18px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

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

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

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

.btn-secondary:hover {
  color: #fff;
  background: #245d5b;
}

.btn-outline {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--line-strong);
}

.btn-outline:hover {
  background: var(--surface-muted);
}

.btn-small {
  min-height: var(--h-btn);
  height: var(--h-btn);
  padding: 0 12px;
  border-radius: var(--radius-control);
  font-size: 12px;
}

:where(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    select,
    textarea
  ) {
  width: 100%;
  min-height: var(--h-input);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

:where(
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    input[type="date"],
    select
  ) {
  height: var(--h-input);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

:where(input, select, textarea)::placeholder {
  color: #80909d;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.simple-list li + li {
  margin-top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(245, 247, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.site-header.is-compact .header-shell {
  min-height: 68px;
}

.site-header.is-compact .brand-line-main,
.site-header.is-compact .brand-line-sub {
  font-size: 12px;
}

.header-shell {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
}

.brand-logo-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 6px;
}

.brand-logo {
  width: auto;
  height: 30px;
  object-fit: contain;
  filter: grayscale(1) contrast(1.15) brightness(0.25);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
}

.brand-line-main {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--primary);
}

.brand-line-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.2;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-phone,
.header-telegram {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-weight: 600;
}

.header-phone svg,
.header-telegram svg,
.contact-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-telegram {
  width: 44px;
  padding: 0;
}

.hero,
.segments,
.risk-map,
.suitable,
.self-check,
.workflow,
.result,
.expert,
.license,
.team-exp,
.why-us,
.case,
.not-for,
.faq,
.pdf,
.lead-form-wrap {
  padding: var(--section-pad) 0;
}

.hero {
  padding-top: clamp(42px, 7vw, 86px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 30px;
  align-items: center;
}

.hero-copy {
  max-width: 700px;
}

.hero-kicker {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.hero-subtitle {
  font-size: 18px;
  color: #263540;
  max-width: 640px;
}

.trust-list {
  margin: 0 0 16px;
}

.trust-list li + li {
  margin-top: 6px;
}

.hero-expert-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  padding: 14px 16px;
  margin: 0;
  font-weight: 600;
}

.hero-ctas {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-small-note {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.hero-image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
}

.segment-grid,
.risk-grid {
  display: grid;
  gap: 14px;
}

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

.segment-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.segment-card ul {
  margin: 0;
  padding-left: 18px;
}

.segment-main {
  grid-column: span 2;
  background: var(--accent-soft);
  border-color: #c7dfdd;
}

.proof {
  color: var(--text-muted);
  font-size: 14px;
}

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

.risk-grid .surface {
  min-height: 160px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.self-check .muted-surface,
.faq .muted-surface,
.not-for .muted-surface,
.team-exp .muted-surface,
.suitable .muted-surface {
  background: var(--surface-muted);
}

.self-check-object {
  margin-bottom: 14px;
}

.check-grid {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.check-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.self-check .result {
  margin-top: 12px;
  font-weight: 600;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px 14px;
}

.faq details + details {
  margin-top: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

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

.lead-form-wrap .container {
  display: grid;
  gap: 16px;
}

.before-form {
  border-color: var(--line);
}

.lead-form-card {
  border-color: var(--line-strong);
}

.wizard-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.wizard-head h2,
.wizard-head p {
  margin: 0;
}

.progress-wrap {
  height: 8px;
  border-radius: 999px;
  background: #e8eef2;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar {
  height: 100%;
  background: var(--accent);
  transition: width 0.2s ease;
}

#form-progress-text {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.wizard-step-area {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  padding: 10px;
}

.wizard-step-scroller {
  max-height: min(68vh, 660px);
  overflow-y: auto;
}

.form-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-layout label,
.form-layout fieldset {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-layout label {
  font-size: 14px;
  color: #2a3844;
  font-weight: 600;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.area-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 10px;
}

.area-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.area-option {
  min-height: var(--h-btn);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.area-option:hover {
  background: var(--surface-muted);
}

.area-option-priority {
  border-color: #a9cfc9;
  background: #f4faf9;
}

.area-option.active {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.form-step,
.diag-step {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 12px;
}

.diag-progress {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.diag-step > p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
}

.diag-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.wizard-native-nav {
  margin-top: 10px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 10px 0;
}

.prequalification {
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
}

.wizard-final-block {
  margin-top: 10px;
}

.wizard-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.submit-btn {
  margin-top: 0;
}

.contacts {
  border: 1px solid var(--line);
}

.contacts p:last-child {
  margin-bottom: 0;
}

.expert-name {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.expert-title {
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.site-footer {
  margin-top: 18px;
  padding: 30px 0 98px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.site-footer p {
  margin-bottom: 8px;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 98px;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--primary);
  display: none;
  z-index: 85;
}

.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 86;
  display: none;
  min-height: var(--h-btn);
  border-radius: var(--radius-control);
  box-shadow: var(--shadow-sm);
}

.floating-prompt,
.floating-call {
  position: fixed;
  right: 16px;
  width: min(340px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  padding: 14px;
  z-index: 88;
}

.floating-prompt {
  bottom: 96px;
}

.floating-call {
  bottom: 176px;
}

.floating-prompt p,
.floating-call p {
  margin: 0 0 10px;
}

.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 32, 0.48);
}

.exit-popup-content {
  width: min(500px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
  padding: 22px;
  position: relative;
}

.close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #5b6b77;
  cursor: pointer;
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 12px;
}

.lead-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 32, 0.5);
}

.lead-modal-dialog {
  position: relative;
  width: min(940px, calc(100vw - 40px));
  height: min(760px, 90vh);
  min-height: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.lead-modal-header,
.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lead-modal-close {
  position: static;
  border: 0;
  background: transparent;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-control);
  font-size: 26px;
  line-height: 1;
  color: #5b6b77;
  cursor: pointer;
  flex: 0 0 auto;
}

.lead-modal-head {
  margin: 0;
}

.lead-modal-kicker {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

#lead-modal-title {
  margin-bottom: 8px;
}

#lead-modal-subtitle {
  margin: 0;
  color: var(--text-muted);
}

.lead-modal-form,
#lead-modal-form {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lead-modal-body,
.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 24px;
}

.lead-modal-step {
  display: grid;
  gap: 14px;
}

.lead-modal-step label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2a3844;
}

.lead-modal-step textarea {
  min-height: 160px;
  resize: vertical;
}

.lead-modal-step[data-step="2"] {
  gap: 14px;
}

.step2-grid,
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.modal-grid .col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.step2-right {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.step2-right label {
  height: 100%;
  min-height: 0;
  flex: 1 1 auto;
}

.step2-right textarea {
  flex: 1 1 auto;
  height: 100%;
  min-height: 100%;
  resize: none;
}

.step2-checkboxes {
  display: grid;
  width: 100%;
  max-width: 760px;
  gap: 4px;
}

.checkbox-group {
  border: 0;
  background: transparent;
  padding: 0;
}

.check-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.check-row input {
  margin-top: 4px;
  flex: 0 0 auto;
}

.check-row span {
  max-width: 100%;
}

.checkbox-group.is-invalid .check-row {
  color: #8b3434;
}

.checkbox-error {
  margin: 0;
  color: #8b3434;
  font-size: 13px;
  font-weight: 600;
}

.lead-modal-footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
}

#lead-modal-next,
#lead-modal-submit {
  margin-left: auto;
}

#lead-modal-back.hidden,
#lead-modal-next.hidden,
#lead-modal-submit.hidden {
  display: none;
}

.admin-login-page,
.thanks-page,
.privacy-page {
  padding: var(--section-pad) 0;
}

.admin-login-card,
.privacy-content,
.thanks-page .card {
  max-width: 900px;
  margin: 0 auto;
}

.auth-methods {
  display: grid;
  gap: 14px;
}

.email-login-form,
.local-login-form {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
  padding: 14px;
}

.flash {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 10px 12px;
  font-size: 14px;
}

.flash-success {
  background: #eaf6ef;
  border-color: #c9e6d4;
  color: #235b3a;
}

.flash-error {
  background: #fdeeee;
  border-color: #f1cdcd;
  color: #8a3939;
}

.flash-warning {
  background: #fff5de;
  border-color: #ebdbb0;
  color: #7a5a18;
}

.fade-in {
  animation: fade-in 0.28s ease both;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .hero-grid,
  .segment-grid,
  .risk-grid,
  .form-layout {
    grid-template-columns: 1fr;
  }

  .segment-main {
    grid-column: span 1;
  }

  .header-actions .btn {
    min-width: 220px;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(var(--container), calc(100% - 30px));
  }

  .header-shell {
    min-height: 72px;
    gap: 12px;
  }

  .brand-copy {
    gap: 1px;
  }

  .brand-line-main {
    font-size: 14px;
  }

  .brand-line-sub {
    font-size: 12px;
  }

  .header-phone span {
    display: none;
  }

  .header-phone,
  .header-telegram {
    width: 44px;
    padding: 0;
  }

  .header-actions .btn {
    min-width: 0;
  }

  .area-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-modal-dialog {
    width: min(620px, calc(100vw - 24px));
  }

  .lead-modal-body,
  .modal-body {
    max-height: 75vh;
  }

  .step2-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .step2-right textarea {
    min-height: 160px;
    height: auto;
    resize: vertical;
  }
}

@media (max-width: 760px) {
  textarea {
    min-height: 120px;
  }

  .step2-right textarea {
    min-height: 120px;
  }

  .site-header {
    position: sticky;
  }

  .header-shell {
    align-items: flex-start;
    min-height: 0;
    padding: 10px 0;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-logo-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-logo {
    height: 28px;
  }

  .brand-line-main {
    font-size: 13px;
  }

  .brand-line-sub {
    display: none;
  }

  .header-actions {
    flex-direction: row;
    gap: 8px;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-ctas,
  .diag-actions,
  .wizard-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .sticky-cta {
    display: block;
  }

  .back-to-top {
    bottom: 90px;
  }

  .floating-prompt {
    bottom: 92px;
  }

  .floating-call {
    bottom: 172px;
  }

  .area-options {
    grid-template-columns: 1fr;
  }

  .wizard-step-scroller {
    max-height: none;
  }

  .lead-form-wrap .contacts {
    margin-top: 2px;
  }

  .lead-modal {
    padding: 0;
  }

  .lead-modal-dialog {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .lead-modal-header,
  .modal-header {
    padding: 16px 16px 12px;
  }

  .lead-modal-body,
  .modal-body {
    padding: 16px;
  }

  .lead-modal-footer,
  .modal-footer {
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
  }

  .lead-modal-footer .btn,
  .modal-footer .btn {
    width: 100%;
  }
}

/* CMS preview foundation: intentionally scoped so the legacy landing remains unchanged. */
.cms-site {
  --radius-control: 5px;
  --radius-card: 5px;
  --radius-sm: 5px;
  --radius-md: 5px;
  --radius-lg: 5px;
  --cms-space-1: 8px;
  --cms-space-2: 12px;
  --cms-space-3: 16px;
  --cms-space-4: 20px;
  --cms-space-5: 24px;
  --cms-space-6: 32px;
  --cms-container: 1360px;
  --cms-prose: 720px;
  --cms-page-inline: 48px;
  --cms-section-gap: clamp(56px, 5.4vw, 72px);
  --cms-section-pad: clamp(32px, 4.2vw, 48px);
  --cms-focus: var(--accent);
  --cms-hero-text: #f4f8f8;
  --cms-hero-muted: #d8efec;
  --cms-hero-action: #edf6f5;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.cms-site .container {
  width: min(var(--cms-container), calc(100% - var(--cms-page-inline)));
}

.cms-site h1,
.cms-site h2,
.cms-site h3 {
  color: var(--primary);
  font-weight: 800;
  text-wrap: balance;
}

.cms-site h1 {
  max-width: 19ch;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.cms-site h2 {
  max-width: 28ch;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.cms-site h3 {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
}

.cms-site :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--cms-focus);
}

.cms-skip-link {
  position: fixed;
  top: var(--cms-space-2);
  left: var(--cms-space-2);
  z-index: 120;
  padding: var(--cms-space-2) var(--cms-space-3);
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-control);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(calc(-100% - var(--cms-space-5)));
}

.cms-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

.cms-preview-banner {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 9px 0;
  color: #402a04;
  background: #f6c94e;
  border-bottom: 1px solid #c69b1d;
  font-size: 13px;
}

.cms-preview-banner .container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.cms-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.cms-preview-mode .cms-header {
  top: 38px;
}

.cms-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: var(--cms-space-4);
  min-height: 88px;
  padding: var(--cms-space-2) 0 var(--cms-space-1);
  transition: min-height 160ms ease, padding-top 160ms ease, padding-bottom 160ms ease;
}

.cms-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.cms-brand img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cms-brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cms-brand strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
}

.cms-brand-mobile-name {
  display: none;
}

.cms-brand-descriptor {
  max-width: 520px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.cms-brand-region {
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.cms-header-compact .cms-header-inner {
  min-height: 72px;
  padding-top: var(--cms-space-1);
  padding-bottom: 4px;
}

.cms-header-compact .cms-brand-region {
  display: none;
}

.cms-nav-layer {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.cms-nav-backdrop,
.cms-nav-mobile-head,
.cms-nav-mobile-actions,
.cms-menu-toggle,
.cms-mobile-phone {
  display: none;
}

.cms-nav {
  min-width: 0;
  padding-bottom: var(--cms-space-2);
}

.cms-nav-list,
.cms-nav-sublist {
  display: flex;
  gap: var(--cms-space-1) var(--cms-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-nav-item {
  position: relative;
}

.cms-nav-link-row {
  display: flex;
  align-items: center;
}

.cms-nav-link-row > a,
.cms-nav-sublist a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.cms-nav-link-row > a:hover,
.cms-nav-sublist a:hover,
.cms-nav-item-active > .cms-nav-link-row > a {
  color: var(--accent);
}

.cms-submenu-toggle {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  color: var(--primary);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cms-submenu-toggle span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.cms-submenu-toggle[aria-expanded="true"] span {
  transform: translateY(2px) rotate(225deg);
}

.cms-nav-sublist {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 2;
  display: grid;
  width: max-content;
  min-width: 260px;
  max-width: min(360px, 80vw);
  gap: 0;
  padding: var(--cms-space-1);
  visibility: hidden;
  opacity: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
  transform: translateY(6px);
  transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
}

.cms-nav-sublist a {
  width: 100%;
  min-height: 44px;
  padding: 0 var(--cms-space-2);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-control);
}

.cms-nav-sublist a:hover {
  background: var(--accent-soft);
}

.cms-nav-item-parent[data-cms-nav-open="true"] > .cms-nav-sublist {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.cms-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.cms-header-contacts {
  display: flex;
  align-items: center;
  gap: var(--cms-space-3);
  font-size: 14px;
  white-space: nowrap;
}

.cms-header-contacts a {
  font-weight: 700;
  text-decoration: none;
}

.cms-header-phone {
  display: inline-flex;
  align-items: center;
  gap: var(--cms-space-1);
}

.cms-header-phone .cms-icon {
  width: 20px;
  height: 20px;
}

.cms-header-cta {
  min-height: 46px;
  padding-right: var(--cms-space-3);
  padding-left: var(--cms-space-3);
  text-decoration: none;
  white-space: nowrap;
}

.cms-header-cta-short {
  display: none;
}

.cms-main {
  min-height: 55vh;
  scroll-margin-top: 120px;
}

.cms-page-shell {
  width: min(var(--cms-container), calc(100% - var(--cms-page-inline)));
  margin: 0 auto;
  padding: var(--cms-space-4) 0 var(--cms-section-gap);
}

.cms-page-shell > :last-child {
  margin-bottom: 0;
}

.cms-flash-stack {
  display: grid;
  gap: var(--cms-space-1);
  margin: var(--cms-space-3) auto 0;
  padding: var(--cms-space-3);
  color: #7d2c2c;
  background: #fdeeee;
  border: 1px solid #e6bcbc;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-card);
}

.cms-flash-stack > strong {
  color: var(--danger);
  font-size: 15px;
}

.cms-flash-stack ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: var(--cms-space-4);
}

.cms-flash {
  font-size: 15px;
}

.cms-flash-error {
  color: #7d2c2c;
}

.cms-flash-info {
  color: #1f4b4a;
}

.cms-page-title {
  margin: var(--cms-space-1) 0 var(--cms-section-gap);
}

.cms-breadcrumbs {
  padding: 8px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.cms-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-breadcrumbs li {
  display: inline-flex;
  min-width: 0;
  gap: 6px;
  overflow-wrap: anywhere;
}

.cms-breadcrumb-separator {
  color: #96a2ad;
}

.cms-breadcrumbs a,
.cms-breadcrumbs li > span:not(.cms-breadcrumb-separator) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cms-preview-warnings,
.cms-section-warning {
  margin: 0 0 22px;
  padding: 15px 17px;
  color: #6a4510;
  background: #fff7e3;
  border: 1px solid #efcf85;
  border-radius: var(--radius-card);
  font-size: 14px;
}

.cms-preview-warnings ul {
  margin-top: 6px;
}

.cms-section {
  margin: 0 0 var(--cms-section-gap);
  padding: 0;
}

.cms-text,
.cms-legal-details,
.cms-faq {
  width: 100%;
  max-width: var(--cms-prose);
}

.cms-section > p,
.cms-section > .cms-prose,
.cms-section > .cms-lead {
  max-width: var(--cms-prose);
}

.cms-section > h2 {
  max-width: 28ch;
}

.cms-eyebrow {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.cms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.55fr);
  align-items: center;
  gap: clamp(26px, 5vw, 72px);
  min-height: 390px;
  padding: var(--cms-section-pad);
  background: linear-gradient(135deg, #102433, #1c4c4b);
  border-radius: var(--radius-card);
}

.cms-hero:not(.cms-hero-with-media) {
  grid-template-columns: minmax(0, 1fr);
}

.cms-hero h1,
.cms-hero p,
.cms-hero li {
  color: var(--cms-hero-text);
}

.cms-hero .cms-eyebrow {
  color: var(--cms-hero-muted);
}

.cms-hero h1 {
  max-width: 18ch;
}

.cms-hero-subtitle {
  max-width: 650px;
  color: var(--cms-hero-text);
  font-size: 18px;
  line-height: 1.55;
  opacity: 1;
}

.cms-check-list {
  display: grid;
  gap: var(--cms-space-2);
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.cms-check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: var(--cms-space-1);
}

.cms-check-icon {
  color: #8ed5c9;
}

.cms-check-icon .cms-icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.cms-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.cms-hero .btn-primary {
  color: var(--primary);
  background: var(--cms-hero-action);
  border-color: var(--cms-hero-action);
}

.cms-hero .btn-primary:hover {
  color: var(--primary);
  background: var(--cms-hero-muted);
  border-color: var(--cms-hero-muted);
}

.cms-hero .btn-outline {
  color: var(--cms-hero-text);
  background: transparent;
  border-color: var(--cms-hero-text);
}

.cms-hero .btn-outline:hover {
  color: var(--primary);
  background: var(--cms-hero-action);
  border-color: var(--cms-hero-action);
}

/* Media blocks: width/height stay on the <img> so the browser reserves space. */
.cms-media {
  margin: 0;
  min-width: 0;
}

.cms-media img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--surface-muted);
  border-radius: var(--radius-card);
}

.cms-hero .cms-media img {
  box-shadow: 0 18px 40px rgba(6, 18, 26, 0.28);
}

.cms-image-left .cms-media {
  order: 1;
}

.cms-expert-note-with-photo {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}

.cms-expert-photo {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
}

.cms-document-link {
  align-self: center;
  padding: 8px 14px;
  color: var(--primary);
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
  background: var(--surface-muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 700;
}

.cms-document-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.cms-lead {
  max-width: var(--cms-prose);
  margin-bottom: 20px;
  color: #263b49;
  font-size: 19px;
  font-weight: 600;
}

.cms-prose {
  max-width: var(--cms-prose);
}

.cms-paragraph-lead {
  color: #233c48;
  font-size: 18px;
  font-weight: 600;
}

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

.cms-image-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: var(--cms-section-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-image-text .cms-prose {
  width: 100%;
}

.cms-image-text-no-media {
  grid-template-columns: minmax(0, 1fr);
}

.cms-image-left .cms-prose {
  order: 2;
}

.cms-card-grid,
.cms-risk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--cms-space-3);
}

.cms-card,
.cms-risk-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--cms-space-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-card h2,
.cms-card h3,
.cms-risk-card h2,
.cms-risk-card h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.cms-card p,
.cms-risk-card p {
  margin-bottom: var(--cms-space-3);
  color: var(--text-muted);
  font-size: 15px;
}

.cms-card-link {
  display: inline-block;
  margin-top: auto;
  padding-top: var(--cms-space-1);
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
}

a.cms-card-link {
  text-decoration: none;
}

a.cms-card-link::after {
  content: " →";
}

a.cms-card-link:hover {
  text-decoration: underline;
}

.cms-risk-card {
  border-left: 3px solid #ba7d2d;
}

.cms-risk-marker {
  display: block;
  margin-bottom: 8px;
  color: #8a5a18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-steps {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--cms-space-3);
  align-items: start;
  min-height: 84px;
  padding-bottom: var(--cms-space-5);
}

.cms-steps li:not(:last-child)::after {
  position: absolute;
  top: 42px;
  bottom: 0;
  left: 20px;
  width: 1px;
  background: var(--line-strong);
  content: "";
}

.cms-step-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: #fff;
  background: var(--accent);
  border-radius: var(--radius-control);
  font-size: 14px;
  font-weight: 800;
}

.cms-step-copy {
  padding-top: 6px;
}

.cms-steps h2,
.cms-steps h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.cms-steps p {
  color: var(--text-muted);
  font-size: 14px;
}

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

.cms-document-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--cms-space-3);
  padding: var(--cms-space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.cms-document-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cms-document-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-control);
}

.cms-document-kind {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-document-list p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.cms-expert-note {
  padding: var(--cms-section-pad);
  background: #e8f2f1;
  border: 1px solid #bad7d4;
  border-radius: var(--radius-card);
}

.cms-expert-note blockquote {
  margin: 0 0 16px;
  color: #153b3a;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.cms-expert-note blockquote p {
  margin: 0;
}

.cms-expert-attribution {
  margin: 0;
}

.cms-expert-note span {
  display: block;
  color: #426765;
  font-size: 14px;
}

.cms-faq-list {
  display: grid;
  gap: var(--cms-space-2);
}

.cms-faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.cms-faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: var(--cms-space-3);
  min-height: 56px;
  padding: var(--cms-space-3) var(--cms-space-4);
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

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

.cms-faq summary::after {
  color: var(--accent);
  content: "+";
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

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

.cms-faq-answer {
  padding: 0 var(--cms-space-4) var(--cms-space-4);
}

.cms-faq-answer p {
  max-width: var(--cms-prose);
  margin: 0;
  color: var(--text-muted);
}

.cms-related-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cms-space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-related-list li {
  display: flex;
  min-height: 72px;
  padding: var(--cms-space-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-related-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  font-weight: 700;
  text-decoration: none;
}

.cms-related-list a:hover {
  color: var(--accent);
}

.cms-related-title {
  font-weight: 800;
}

.cms-related-description {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

.cms-related-pages {
  padding: var(--cms-section-pad);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-final-cta {
  padding: var(--cms-section-pad);
  text-align: center;
  color: #fff;
  background: #102433;
  border-radius: var(--radius-card);
}

.cms-final-cta h2,
.cms-final-cta p {
  color: #fff;
}

.cms-final-cta p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  opacity: 0.85;
}

.cms-final-cta .btn {
  margin-top: 12px;
}

/* Section-specific rhythm and accents for the public renderer. */
.cms-text .cms-prose p:last-child,
.cms-legal-details p:last-child {
  margin-bottom: 0;
}

.cms-card-section > h2,
.cms-risk-section > h2,
.cms-benefits > h2,
.cms-process > h2,
.cms-documents > h2,
.cms-contacts > h2,
.cms-legal-details > h2 {
  margin-bottom: 18px;
}

.cms-benefits .cms-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.cms-benefit-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  background: var(--accent-soft);
  border-color: #cfe3e1;
}

.cms-benefit-card h2,
.cms-benefit-card h3 {
  color: #1f4b4a;
}

.cms-benefit-card p {
  margin-bottom: 0;
}

.cms-process .cms-steps {
  margin-bottom: 0;
}

.cms-contacts p {
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
}

.cms-contacts a {
  text-decoration: none;
}

.cms-contacts {
  padding: var(--cms-section-pad);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-contact-list {
  display: grid;
  gap: var(--cms-space-2);
  margin-top: var(--cms-space-5);
  font-style: normal;
}

.cms-contact-list p {
  display: flex;
  align-items: center;
  gap: var(--cms-space-2);
  margin: 0;
}

.cms-contact-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: var(--radius-control);
}

.cms-contact-label {
  min-width: 40px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.cms-contact-list a,
.cms-contact-list span {
  overflow-wrap: anywhere;
}

.cms-documents .cms-document-list {
  margin-bottom: 0;
}

.cms-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;
}

.cms-license-block,
.cms-trust-block,
.cms-form-panel {
  margin: 0 0 var(--cms-section-gap);
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-trust-block {
  background: #f8fbfb;
}

.cms-trust-block ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 24px;
}

.cms-form-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(32px, 5vw, 64px);
  background: #f7fafb;
}

.cms-form-heading {
  align-self: start;
}

.cms-form-heading p {
  max-width: 42ch;
  color: var(--text-muted);
}

.cms-lead-form fieldset {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.cms-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.cms-field > label {
  display: block;
  margin-bottom: 6px;
  color: #30434e;
  font-size: 13px;
  font-weight: 800;
}

.cms-lead-form input,
.cms-lead-form select,
.cms-lead-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px var(--cms-space-2);
  color: var(--text);
  font: inherit;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.cms-lead-form textarea {
  min-height: 144px;
  resize: vertical;
}

.cms-lead-form :where(input, select, textarea)[aria-invalid="true"] {
  background: #fffafa;
  border-color: var(--danger);
}

.cms-field-hint,
.cms-field-error {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

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

.cms-field-error {
  color: var(--danger);
  font-weight: 700;
}

.cms-qualification-grid,
.cms-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cms-space-3);
}

.cms-field-wide,
.cms-field-message,
.cms-form-consents {
  grid-column: 1 / -1;
}

.cms-form-consents {
  display: grid;
  gap: var(--cms-space-1);
  padding-top: var(--cms-space-2);
  border-top: 1px solid var(--line);
}

.cms-lead-form .cms-check {
  display: flex;
  align-items: flex-start;
  gap: var(--cms-space-1);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
  cursor: pointer;
}

.cms-lead-form .cms-check input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  padding: 0;
}

.cms-lead-form .cms-check a,
.cms-form-privacy a {
  color: var(--accent);
  text-underline-offset: 3px;
}

.cms-form-privacy {
  margin: 2px 0 0 28px;
  color: var(--text-muted);
  font-size: 12px;
}

.cms-form-error-summary {
  margin-bottom: var(--cms-space-3);
  padding: var(--cms-space-2) var(--cms-space-3);
  color: #7d2c2c;
  background: #fdeeee;
  border: 1px solid #e6bcbc;
  border-left: 4px solid var(--danger);
  border-radius: var(--radius-control);
}

.cms-form-error-summary strong {
  display: block;
  margin-bottom: 4px;
}

.cms-form-error-summary ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding-left: var(--cms-space-4);
}

.cms-form-error-summary a {
  color: inherit;
  text-underline-offset: 3px;
}

.cms-form-step-heading {
  margin-bottom: var(--cms-space-3);
}

.cms-form-step-heading > span {
  display: block;
  margin-bottom: 3px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cms-form-step-heading h3 {
  margin-bottom: 4px;
}

.cms-form-step-heading p {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.cms-static-form-section + .cms-static-form-section {
  margin-top: var(--cms-space-5);
  padding-top: var(--cms-space-5);
  border-top: 1px solid var(--line);
}

.cms-form-submit-row {
  display: flex;
  align-items: center;
  gap: var(--cms-space-3);
  margin-top: var(--cms-space-4);
}

.cms-form-submit-row .btn {
  flex: 0 0 auto;
}

.cms-form-submit-row > span {
  min-width: 0;
  color: var(--text-muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.cms-form-submitting {
  cursor: wait;
}

.cms-form-submitting .btn[type="submit"] {
  opacity: 0.72;
}

.cms-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.cms-lead-form fieldset:disabled {
  opacity: 0.68;
}

.cms-form-disabled-note {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: #86641d;
  font-size: 13px;
  font-weight: 700;
}

.cms-modal-preview {
  width: min(920px, calc(100% - var(--cms-page-inline)));
  margin: var(--cms-section-gap) auto;
}

[hidden] {
  display: none !important;
}

/* Live modal: header and actions remain available while only its body scrolls. */
.cms-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: clamp(12px, 3vh, 28px) var(--cms-space-3);
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(10, 22, 30, 0.62);
}

.cms-modal .cms-modal-dialog {
  position: relative;
  display: flex;
  width: min(920px, 100%);
  max-height: min(90vh, 820px);
  max-height: min(90dvh, 820px);
  flex-direction: column;
  overflow: hidden;
}

.cms-modal-close {
  position: absolute;
  top: var(--cms-space-3);
  right: var(--cms-space-3);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text-muted);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.cms-modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

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

.cms-modal-dialog {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}

.cms-modal-heading {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  padding: var(--cms-space-4) clamp(24px, 4vw, 40px) var(--cms-space-3);
  padding-right: 76px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.cms-modal-heading h2 {
  max-width: 24ch;
  margin-bottom: 4px;
  font-size: clamp(25px, 3vw, 34px);
}

.cms-modal-heading > div > p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.cms-modal-progress {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cms-space-2);
  margin-top: var(--cms-space-3);
}

.cms-modal-progress span {
  display: flex;
  align-items: center;
  gap: var(--cms-space-1);
  min-height: 36px;
  color: var(--text-muted);
  border-bottom: 2px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.cms-modal-progress b {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--text-muted);
  background: var(--surface-muted);
  border-radius: 50%;
  font-size: 11px;
}

.cms-modal-progress span[aria-current="step"] {
  color: var(--primary);
  border-color: var(--accent);
}

.cms-modal-progress span[aria-current="step"] b {
  color: #fff;
  background: var(--accent);
}

.cms-modal .cms-lead-form {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.cms-modal .cms-lead-form fieldset {
  display: contents;
}

.cms-modal-body {
  min-height: 0;
  flex: 1 1 auto;
  padding: var(--cms-space-4) clamp(24px, 4vw, 40px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.cms-modal-step {
  min-width: 0;
}

.cms-modal .cms-contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.cms-modal .cms-field-company,
.cms-modal .cms-field-phone,
.cms-modal .cms-field-contact {
  grid-column: 1;
}

.cms-modal .cms-field-message {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.cms-modal .cms-field-message textarea {
  min-height: 196px;
  flex: 1 1 auto;
}

.cms-modal .cms-form-consents {
  grid-column: 1 / -1;
}

.cms-modal-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--cms-space-2);
  flex: 0 0 auto;
  padding: var(--cms-space-2) clamp(24px, 4vw, 40px);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cms-modal-actions [data-cms-step-status] {
  grid-column: 2;
  justify-self: center;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.cms-modal-actions .btn {
  min-width: 112px;
}

.cms-modal-actions [data-cms-step-back] {
  grid-column: 1;
}

.cms-modal-actions :is([data-cms-step-next], [type="submit"]) {
  grid-column: 3;
}

.cms-modal-preview:not(.cms-modal) .cms-modal-dialog {
  border: 1px solid var(--line-strong);
}

.cms-modal-preview:not(.cms-modal) .cms-modal-step + .cms-modal-step {
  margin-top: var(--cms-space-5);
  padding-top: var(--cms-space-5);
  border-top: 1px solid var(--line);
}

.cms-modal-preview:not(.cms-modal) .cms-modal-actions {
  grid-template-columns: repeat(2, auto) minmax(0, 1fr) auto;
}

.cms-modal-preview:not(.cms-modal) .cms-modal-actions > * {
  grid-column: auto;
}

.cms-modal-preview:not(.cms-modal) .cms-form-disabled-note {
  padding: 0 clamp(24px, 4vw, 40px) var(--cms-space-3);
}

.cms-footer {
  padding: 48px 0 24px;
  color: var(--text);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.cms-footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 2.1fr);
  gap: var(--cms-space-6) clamp(40px, 6vw, 80px);
}

.cms-footer-grid-compact {
  grid-template-columns: minmax(0, 560px);
}

.cms-footer-brand-link {
  display: inline-block;
  margin-bottom: var(--cms-space-2);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
}

.cms-footer-brand > p {
  max-width: 38ch;
  margin-bottom: var(--cms-space-4);
  color: var(--text-muted);
  font-size: 14px;
}

.cms-footer-contacts {
  display: grid;
  gap: 4px;
  font-style: normal;
}

.cms-footer-contacts a,
.cms-footer-contacts p {
  display: flex;
  align-items: center;
  gap: var(--cms-space-1);
  min-height: 40px;
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  text-decoration: none;
}

.cms-footer-contacts .cms-icon {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.cms-footer-contact-label {
  min-width: 64px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cms-footer-nav-list,
.cms-footer-nav-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-footer-nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px var(--cms-space-5);
}

.cms-footer-nav-list > li {
  min-width: 0;
}

.cms-footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.cms-footer-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cms-footer-nav-list ul {
  display: grid;
  padding: 0 0 var(--cms-space-2) var(--cms-space-2);
}

.cms-footer-nav-list ul a {
  color: var(--text-muted);
  font-size: 12px;
}

.cms-footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--cms-space-4);
  padding-top: var(--cms-space-4);
  border-top: 1px solid var(--line);
}

.cms-footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.cms-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px var(--cms-space-2);
  max-width: 76ch;
}

.cms-footer-cookie-settings {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Fixed outside document flow: showing the consent UI never shifts content. */
.cms-cookie-banner {
  position: fixed;
  right: 0;
  bottom: max(var(--cms-space-3), env(safe-area-inset-bottom));
  left: 0;
  z-index: 80;
  width: min(1120px, calc(100% - 32px));
  max-height: calc(100vh - 112px);
  max-height: calc(100dvh - 112px);
  margin: 0 auto;
  overflow: auto;
  overscroll-behavior: contain;
  pointer-events: none;
  scrollbar-gutter: stable;
}

.cms-cookie-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.3fr);
  gap: var(--cms-space-4);
  padding: var(--cms-space-4);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
}

.cms-cookie-intro {
  min-width: 0;
}

.cms-cookie-intro h2 {
  margin-bottom: var(--cms-space-1);
  font-size: clamp(23px, 3vw, 30px);
}

.cms-cookie-intro > p:not(.cms-eyebrow),
.cms-cookie-settings-heading p {
  max-width: 76ch;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.cms-cookie-intro > a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-top: 4px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.cms-cookie-primary-actions {
  display: grid;
  align-content: center;
  gap: var(--cms-space-1);
}

.cms-cookie-primary-actions .btn,
.cms-cookie-settings-actions .btn {
  min-height: 48px;
}

.cms-cookie-settings {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: var(--cms-space-3) var(--cms-space-4);
  padding-top: var(--cms-space-3);
  border-top: 1px solid var(--line);
}

.cms-cookie-settings-heading h3 {
  margin-bottom: var(--cms-space-1);
  font-size: 20px;
}

.cms-cookie-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--cms-space-1);
}

.cms-cookie-category {
  display: flex;
  min-width: 0;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: var(--cms-space-2);
  padding: var(--cms-space-2);
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

label.cms-cookie-category {
  cursor: pointer;
}

.cms-cookie-category strong,
.cms-cookie-category span {
  display: block;
}

.cms-cookie-category strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.cms-cookie-category span span {
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
}

.cms-cookie-category input {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  margin: 0;
}

.cms-cookie-required {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
}

.cms-cookie-settings-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: var(--cms-space-1);
}

.cms-404-page {
  display: grid;
  min-height: 100vh;
  grid-template-rows: auto 1fr auto;
}

.cms-404-header {
  width: min(var(--cms-container), calc(100% - var(--cms-page-inline)));
  margin: 0 auto;
  padding: var(--cms-space-3) 0;
  border-bottom: 1px solid var(--line);
}

.cms-404-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--cms-space-2);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.cms-404-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.cms-404-main {
  display: grid;
  place-items: center;
  width: 100%;
  padding: var(--cms-space-6) 0;
}

.cms-empty-state {
  width: min(680px, calc(100% - var(--cms-page-inline)));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 56px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.cms-empty-state::before {
  display: block;
  width: 56px;
  height: 4px;
  margin-bottom: var(--cms-space-5);
  background: var(--accent);
  content: "";
}

.cms-empty-state h1 {
  max-width: 13ch;
}

.cms-empty-state > p:not(.cms-eyebrow) {
  max-width: 55ch;
  color: var(--text-muted);
}

.cms-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--cms-space-2);
  margin-top: var(--cms-space-5);
}

.cms-404-actions .btn {
  height: auto;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.cms-404-actions .btn-outline {
  background: var(--surface);
}

.cms-404-footer {
  padding: var(--cms-space-3) var(--cms-space-4);
  color: var(--text-muted);
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .cms-site {
    --cms-page-inline: 40px;
    --cms-section-gap: 48px;
    --cms-section-pad: 32px;
  }

  .cms-header {
    backdrop-filter: none;
  }

  .cms-hero,
  .cms-image-text,
  .cms-form-panel {
    grid-template-columns: 1fr;
  }

  .cms-modal {
    padding: var(--cms-space-2);
  }

  .cms-modal .cms-modal-dialog {
    width: 100%;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .cms-modal .cms-contact-grid {
    grid-template-columns: 1fr;
  }

  .cms-modal .cms-field-company,
  .cms-modal .cms-field-phone,
  .cms-modal .cms-field-contact,
  .cms-modal .cms-field-message,
  .cms-modal .cms-form-consents {
    grid-column: 1;
    grid-row: auto;
  }

  .cms-modal .cms-field-message textarea {
    min-height: 140px;
  }

  .cms-header-inner,
  .cms-header-compact .cms-header-inner {
    display: flex;
    min-height: 66px;
    gap: 6px;
    padding: var(--cms-space-1) 0;
  }

  .cms-brand {
    flex: 1 1 auto;
  }

  .cms-brand img {
    width: 40px;
    height: 40px;
  }

  .cms-brand strong {
    display: none;
  }

  .cms-brand-mobile-name {
    display: block;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
  }

  .cms-brand-descriptor,
  .cms-brand-region,
  .cms-header-contacts {
    display: none;
  }

  .cms-mobile-phone,
  .cms-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    place-items: center;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-control);
  }

  .cms-mobile-phone {
    text-decoration: none;
  }

  .cms-mobile-phone .cms-icon {
    width: 22px;
    height: 22px;
  }

  .cms-header-cta {
    width: auto;
    min-height: 44px;
    flex: 0 0 auto;
    padding: 0 var(--cms-space-2);
    font-size: 13px;
  }

  .cms-header-cta-full {
    display: none;
  }

  .cms-header-cta-short {
    display: inline;
  }

  .cms-menu-toggle {
    cursor: pointer;
  }

  .cms-menu-toggle-icon {
    display: grid;
    width: 20px;
    gap: 4px;
  }

  .cms-menu-toggle-icon span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .cms-nav-layer {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
  }

  body.cms-menu-open {
    overflow: hidden;
  }

  .cms-menu-open .cms-nav-layer {
    display: block;
  }

  .cms-nav-backdrop {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(9, 24, 34, 0.56);
    border: 0;
    cursor: pointer;
  }

  .cms-nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    width: min(430px, calc(100% - 24px));
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    padding: max(var(--cms-space-3), env(safe-area-inset-top)) var(--cms-space-3) max(var(--cms-space-3), env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    box-shadow: -14px 0 34px rgba(15, 23, 32, 0.18);
  }

  .cms-nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--cms-space-3);
    min-height: 48px;
    margin-bottom: var(--cms-space-2);
    padding-bottom: var(--cms-space-2);
    border-bottom: 1px solid var(--line);
  }

  .cms-nav-mobile-head strong {
    color: var(--primary);
    font-size: 18px;
  }

  .cms-menu-close {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: var(--primary);
    background: var(--surface-muted);
    border: 1px solid var(--line);
    border-radius: var(--radius-control);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
  }

  .cms-nav-list {
    display: grid;
    gap: 0;
  }

  .cms-nav-item {
    border-bottom: 1px solid var(--line);
  }

  .cms-nav-link-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
  }

  .cms-nav-item:not(.cms-nav-item-parent) .cms-nav-link-row {
    grid-template-columns: 1fr;
  }

  .cms-nav-link-row > a {
    min-height: 52px;
    font-size: 16px;
  }

  .cms-submenu-toggle {
    width: 48px;
    height: 52px;
  }

  .cms-nav-sublist {
    position: static;
    display: none;
    width: auto;
    min-width: 0;
    max-width: none;
    gap: 0;
    padding: 0 0 var(--cms-space-2) var(--cms-space-3);
    visibility: visible;
    opacity: 1;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    transition: none;
  }

  .cms-nav-item-parent[data-cms-nav-open="true"] > .cms-nav-sublist {
    display: grid;
  }

  .cms-nav-sublist a {
    min-height: 48px;
    padding: 0 var(--cms-space-2);
    color: var(--text-muted);
    font-size: 14px;
  }

  .cms-nav-mobile-actions {
    display: grid;
    gap: var(--cms-space-2);
    margin-top: auto;
    padding-top: var(--cms-space-5);
  }

  .cms-nav-phone {
    display: flex;
    align-items: center;
    gap: var(--cms-space-1);
    min-height: 48px;
    color: var(--primary);
    font-weight: 800;
    text-decoration: none;
  }

  .cms-nav-phone .cms-icon {
    width: 22px;
    height: 22px;
  }

  .cms-footer-grid {
    grid-template-columns: 1fr;
    gap: var(--cms-space-6);
  }

  .cms-footer-nav-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-footer-nav a,
  .cms-footer-contacts a,
  .cms-footer-contacts p {
    min-height: 44px;
  }

  .cms-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cms-cookie-card,
  .cms-cookie-settings {
    grid-template-columns: 1fr;
  }

  .cms-cookie-primary-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cms-cookie-categories,
  .cms-cookie-settings-actions {
    grid-column: 1;
  }

  .cms-card-grid,
  .cms-risk-grid,
  .cms-trust-block ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .cms-site {
    --cms-page-inline: 32px;
    --cms-section-gap: 40px;
    --cms-section-pad: 24px;
  }

  .cms-preview-banner .container {
    display: grid;
    gap: 2px;
  }

  .cms-cookie-banner {
    bottom: max(8px, env(safe-area-inset-bottom));
    width: calc(100% - 16px);
    max-height: calc(100vh - 88px);
    max-height: calc(100dvh - 88px);
    scrollbar-gutter: auto;
  }

  .cms-cookie-card {
    gap: var(--cms-space-2);
    padding: var(--cms-space-3);
  }

  .cms-cookie-intro h2 {
    font-size: 22px;
  }

  .cms-cookie-primary-actions,
  .cms-cookie-categories,
  .cms-cookie-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cms-cookie-category {
    min-height: 76px;
  }

  .cms-cookie-settings-actions .btn {
    width: 100%;
  }

  .cms-preview-mode .cms-header {
    top: 57px;
  }

  .cms-page-shell,
  .cms-modal-preview:not(.cms-modal) {
    width: min(var(--cms-container), calc(100% - var(--cms-page-inline)));
  }

  .cms-modal {
    padding: 0;
  }

  .cms-modal .cms-modal-dialog {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .cms-modal-heading {
    padding: max(var(--cms-space-3), env(safe-area-inset-top)) 64px var(--cms-space-2) var(--cms-space-3);
  }

  .cms-modal-heading h2 {
    font-size: 24px;
  }

  .cms-modal-close {
    top: max(var(--cms-space-2), env(safe-area-inset-top));
    right: var(--cms-space-2);
  }

  .cms-modal-body {
    padding: var(--cms-space-3);
    scrollbar-gutter: auto;
  }

  .cms-modal-actions {
    padding: var(--cms-space-2) var(--cms-space-3) max(var(--cms-space-2), env(safe-area-inset-bottom));
  }

  .cms-modal-actions .btn {
    min-width: 96px;
  }

  .cms-qualification-grid,
  .cms-contact-grid {
    grid-template-columns: 1fr;
  }

  .cms-field-wide,
  .cms-field-message,
  .cms-form-consents {
    grid-column: 1;
  }

  .cms-form-submit-row {
    display: grid;
  }

  .cms-form-submit-row .btn {
    width: 100%;
  }

  .cms-modal-preview:not(.cms-modal) .cms-modal-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-modal-preview:not(.cms-modal) .cms-modal-actions [data-cms-step-status] {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cms-modal-preview:not(.cms-modal) .cms-modal-actions [type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
  }

  .cms-brand {
    gap: 7px;
  }

  .cms-brand img {
    width: 38px;
    height: 38px;
  }

  .cms-header-cta {
    padding: 0 10px;
    font-size: 12px;
  }

  .cms-nav {
    width: calc(100% - 16px);
    padding-right: var(--cms-space-2);
    padding-left: var(--cms-space-2);
  }

  .cms-footer {
    padding-top: var(--cms-space-6);
  }

  .cms-footer-nav-list {
    grid-template-columns: 1fr;
  }

  .cms-404-main {
    padding: var(--cms-space-5) 0;
  }

  .cms-empty-state {
    padding: var(--cms-space-5);
  }

  .cms-404-actions {
    display: grid;
  }

  .cms-404-actions .btn {
    width: 100%;
  }

  .cms-card-grid,
  .cms-risk-grid,
  .cms-trust-block ul,
  .cms-expert-note-with-photo {
    grid-template-columns: 1fr;
  }

  .cms-hero,
  .cms-image-text,
  .cms-expert-note,
  .cms-related-pages,
  .cms-final-cta,
  .cms-contacts,
  .cms-form-panel,
  .cms-license-block,
  .cms-trust-block {
    padding: var(--cms-section-pad);
  }

  .cms-hero h1 {
    font-size: clamp(34px, 10.5vw, 42px);
  }

  .cms-document-list li {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .cms-document-link {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .cms-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  .cms-modal.cms-modal-preview .cms-modal-actions [data-cms-step-status] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (max-height: 560px) {
  .cms-modal-heading {
    padding-top: var(--cms-space-2);
    padding-bottom: var(--cms-space-1);
  }

  .cms-modal-heading .cms-eyebrow,
  .cms-modal-heading > div > p:last-child {
    display: none;
  }

  .cms-modal-heading h2 {
    margin: 0;
    font-size: 23px;
  }

  .cms-modal-progress {
    margin-top: var(--cms-space-1);
  }

  .cms-modal-progress span {
    min-height: 30px;
  }

  .cms-modal-body {
    padding-top: var(--cms-space-2);
    padding-bottom: var(--cms-space-2);
  }

  .cms-modal-actions {
    padding-top: var(--cms-space-1);
    padding-bottom: var(--cms-space-1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.cms-root {
    scroll-behavior: auto;
  }

  .cms-site *,
  .cms-site *::before,
  .cms-site *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* T-16: approved public design system. Keep every override scoped to the CMS
   body so the legacy landing and the admin retain their established styles. */
.cms-site {
  --cms-base: #f3f6f7;
  --cms-base-2: #e8eef0;
  --cms-paper: #ffffff;
  --cms-line: #dae1e4;
  --cms-text: #0f1a20;
  --cms-text-muted: #53646c;
  --cms-accent: #0b6e57;
  --cms-accent-strong: #095845;
  --cms-accent-soft: #e4f1ed;
  --cms-accent-line: #bfded4;
  --cms-warning: #845408;
  --cms-wrap: 1240px;
  --cms-prose: 66ch;
  --cms-page-inline: 48px;
  --cms-section-gap: clamp(72px, 8vw, 110px);
  --cms-section-pad: clamp(32px, 5vw, 64px);

  /* Existing public components consume these shared names. Rebinding them
     here applies the approved palette without leaking it into legacy pages. */
  --bg: var(--cms-base);
  --bg-elev: var(--cms-base-2);
  --surface: var(--cms-paper);
  --surface-muted: var(--cms-base-2);
  --text: var(--cms-text);
  --text-muted: var(--cms-text-muted);
  --line: var(--cms-line);
  --line-strong: #c7d1d5;
  --primary: var(--cms-text);
  --primary-hover: var(--cms-accent-strong);
  --accent: var(--cms-accent);
  --accent-soft: var(--cms-accent-soft);
  --warn: var(--cms-warning);
  --radius-control: 4px;
  --radius-card: 4px;
  --radius-sm: 4px;
  --radius-md: 4px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 40, 0.05);
  --shadow-md: 0 8px 24px -12px rgba(16, 32, 40, 0.18);
  --shadow-lg: 0 18px 44px -18px rgba(16, 32, 40, 0.26);
  --cms-container: var(--cms-wrap);
  --cms-focus: var(--cms-accent);

  color: var(--cms-text);
  background: var(--cms-base);
  font-size: 17px;
  line-height: 1.68;
}

.cms-site .container,
.cms-page-shell {
  width: min(var(--cms-wrap), calc(100% - var(--cms-page-inline)));
}

.cms-site h1,
.cms-site h2,
.cms-site h3 {
  color: var(--cms-text);
  font-weight: 800;
}

.cms-site h1 {
  max-width: 19ch;
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.032em;
}

.cms-site h2 {
  max-width: 28ch;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.13;
  letter-spacing: -0.028em;
}

.cms-site h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.012em;
}

.cms-site .btn-primary {
  color: #ffffff;
  background: var(--cms-accent);
  border-color: var(--cms-accent);
}

.cms-site .btn-primary:hover {
  color: #ffffff;
  background: var(--cms-accent-strong);
  border-color: var(--cms-accent-strong);
}

.cms-site .cms-section :where(p, li, blockquote),
.cms-site .cms-section > :where(p, .cms-prose, .cms-lead),
.cms-site .cms-form-heading p,
.cms-site .cms-footer-brand > p {
  max-width: var(--cms-prose);
}

.cms-site .cms-text,
.cms-site .cms-legal-details,
.cms-site .cms-faq,
.cms-site .cms-prose {
  width: 100%;
  max-width: var(--cms-prose);
}

.cms-site .cms-lead {
  max-width: var(--cms-prose);
  color: var(--cms-text);
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.024em;
}

.cms-site .cms-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--cms-accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cms-site .cms-eyebrow::before {
  width: 34px;
  height: 1px;
  flex: 0 0 34px;
  background: currentColor;
  content: "";
}

.cms-site .cms-section {
  margin-bottom: var(--cms-section-gap);
}

/* The process copy may never stretch across the complete wrapper. Three
   columns keep long steps readable and establish the required 3-up rhythm. */
.cms-site .cms-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 36px);
}

.cms-site .cms-steps li {
  display: block;
  min-width: 0;
  min-height: 0;
  padding-bottom: 0;
}

.cms-site .cms-steps li::after {
  display: none;
}

.cms-site .cms-step-copy {
  padding-top: 12px;
}

.cms-site .cms-steps p {
  max-width: 66ch;
  color: var(--cms-text-muted);
  font-size: 15px;
  line-height: 1.62;
}

@media (max-width: 860px) {
  .cms-site {
    --cms-page-inline: 40px;
    --cms-section-gap: clamp(64px, 9vw, 84px);
  }

  .cms-site .cms-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .cms-site {
    --cms-page-inline: 32px;
    --cms-section-gap: 56px;
    --cms-section-pad: 24px;
    font-size: 16px;
  }

  .cms-site .cms-steps {
    grid-template-columns: 1fr;
  }
}

/* Full-bleed backgrounds preserve the 1240px content measure while their
   surface reaches both viewport edges. clip-path contains the large shadow,
   so the technique cannot create horizontal scrolling at narrow widths. */
.cms-site .cms-full-bleed {
  --cms-section-surface: var(--cms-paper);
  position: relative;
  padding-top: clamp(56px, 6vw, 84px);
  padding-bottom: clamp(56px, 6vw, 84px);
  background: var(--cms-section-surface);
  border: 0;
  border-radius: 0;
  box-shadow: 0 0 0 100vmax var(--cms-section-surface);
  clip-path: inset(0 -100vmax);
}

.cms-site .cms-surface-paper {
  --cms-section-surface: var(--cms-paper);
}

.cms-site .cms-surface-muted {
  --cms-section-surface: var(--cms-base-2);
}

.cms-site .cms-surface-accent {
  --cms-section-surface: var(--cms-accent-soft);
}

.cms-site .cms-surface-accent-strong {
  --cms-section-surface: var(--cms-accent-strong);
}

@media (max-width: 580px) {
  .cms-site .cms-full-bleed {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Public navigation shell: a compact white header and a four-column footer
   (brand plus three columns derived from the live footer_main menu). */
.cms-site .cms-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--cms-line);
  backdrop-filter: blur(10px);
}

.cms-site .cms-header-inner,
.cms-site .cms-header-compact .cms-header-inner {
  display: grid;
  /* Колонка меню была `auto` и не сжималась: при шести пунктах она вылезала
     за свою дорожку и «Контакты» наезжали на телефон. Теперь меню отдаёт
     ширину первым, а телефон и кнопка её не отдают. */
  grid-template-columns: minmax(200px, auto) minmax(0, 1fr) auto auto;
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(12px, 1.6vw, 26px);
  min-height: 76px;
  /* Раньше стоял ноль: название бренда прижималось к верхней кромке. */
  padding: 12px 0;
}

.cms-site .cms-nav-list {
  min-width: 0;
  gap: 2px clamp(6px, 0.9vw, 14px);
}

.cms-site .cms-nav-list > li > a {
  white-space: nowrap;
}

.cms-site .cms-brand {
  gap: 10px;
}

.cms-site .cms-brand img {
  width: 42px;
  height: 42px;
}

.cms-site .cms-brand strong {
  color: var(--cms-text);
  /* 11px — нечитаемо для названия компании в шапке. */
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.cms-site .cms-brand-descriptor {
  max-width: 280px;
  margin-top: 3px;
  color: var(--cms-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

/* На средних экранах дескриптор занимает место, которого не хватает меню.
   Название и телефон важнее пояснительной строки. */
@media (max-width: 1500px) {
  .cms-site .cms-brand-descriptor {
    display: none;
  }
}

.cms-site .cms-brand-region {
  display: none;
}

.cms-site .cms-nav-layer {
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
}

.cms-site .cms-nav,
.cms-site .cms-nav-list {
  height: 100%;
  padding: 0;
}

.cms-site .cms-nav-list {
  align-items: center;
  gap: 2px clamp(8px, 1.15vw, 18px);
}

.cms-site .cms-nav-link-row > a,
.cms-site .cms-nav-sublist a {
  color: var(--cms-text-muted);
  font-size: 13px;
  font-weight: 600;
}

.cms-site .cms-nav-link-row > a:hover,
.cms-site .cms-nav-sublist a:hover,
.cms-site .cms-nav-item-active > .cms-nav-link-row > a {
  color: var(--cms-accent);
}

.cms-site .cms-submenu-toggle {
  width: 30px;
}

.cms-site .cms-header-contacts {
  grid-column: 3;
  gap: 10px;
  font-size: 13px;
}

.cms-site .cms-header-contacts > a:not(.cms-header-phone) {
  display: none;
}

.cms-site .cms-header-cta {
  grid-column: 4;
  min-height: 44px;
  height: 44px;
  padding-right: 14px;
  padding-left: 14px;
  font-size: 12px;
}

.cms-site .cms-nav-sublist {
  border-color: var(--cms-line);
  box-shadow: var(--shadow-md);
}

.cms-site .cms-footer {
  padding: clamp(56px, 6vw, 80px) 0 24px;
  color: var(--cms-text-muted);
  background: var(--cms-base-2);
  border-top-color: var(--cms-line);
}

.cms-site .cms-footer-grid {
  grid-template-columns: minmax(240px, 1.05fr) minmax(0, 2.95fr);
  gap: 40px clamp(48px, 6vw, 86px);
}

.cms-site .cms-footer-grid-compact {
  grid-template-columns: minmax(0, 560px);
}

.cms-site .cms-footer-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--cms-text);
  font-size: 12px;
  line-height: 1.35;
}

.cms-site .cms-footer-brand-link img {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
}

.cms-site .cms-footer-brand > p {
  color: var(--cms-text-muted);
  font-size: 13px;
}

.cms-site .cms-footer-nav-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 4vw, 52px);
}

.cms-site .cms-footer-nav-column {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cms-site .cms-footer-nav-column > li + li {
  margin-top: 4px;
}

.cms-site .cms-footer-nav a,
.cms-site .cms-footer-contacts a,
.cms-site .cms-footer-contacts p {
  color: var(--cms-text-muted);
}

.cms-site .cms-footer-nav a:hover {
  color: var(--cms-accent);
}

.cms-site .cms-footer-bottom {
  border-top-color: #cbd5d9;
}

@media (max-width: 1100px) {
  .cms-site .cms-header-inner,
  .cms-site .cms-header-compact .cms-header-inner {
    grid-template-columns: minmax(210px, 1fr) minmax(0, auto) auto;
    gap: 12px;
  }

  .cms-site .cms-header-contacts {
    display: none;
  }

  .cms-site .cms-header-cta {
    grid-column: 3;
  }

  .cms-site .cms-brand-descriptor {
    display: none;
  }
}

@media (max-width: 860px) {
  .cms-site .cms-header-inner,
  .cms-site .cms-header-compact .cms-header-inner {
    display: flex;
    min-height: 66px;
    gap: 6px;
    padding: 8px 0;
  }

  .cms-site .cms-nav-layer {
    position: fixed;
  }

  .cms-site .cms-nav,
  .cms-site .cms-nav-list {
    height: auto;
  }

  .cms-site .cms-nav {
    height: 100vh;
    height: 100dvh;
    padding: max(var(--cms-space-3), env(safe-area-inset-top)) var(--cms-space-3) max(var(--cms-space-3), env(safe-area-inset-bottom));
  }

  .cms-site .cms-nav-list {
    display: grid;
    align-items: stretch;
  }

  .cms-site .cms-submenu-toggle {
    width: 48px;
  }

  .cms-site .cms-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .cms-site .cms-footer-nav-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Hero: a calm, light first screen. Breadcrumbs share this screen without
   consuming extra document height, and the visual slot is ready for T-04. */
.cms-site {
  --cms-header-height: 77px;
}

.cms-site.cms-preview-mode {
  --cms-header-height: 115px;
}

.cms-site .cms-page-shell {
  position: relative;
}

.cms-site .cms-page-shell:has(> .cms-hero) {
  padding-top: 0;
}

/* Крошки стоят в потоке, а не поверх героя: в абсолютном позиционировании
   они прижимались к надзаголовку на 8px и верх страницы читался как каша. */
.cms-site .cms-page-shell:has(> .cms-hero) > .cms-breadcrumbs {
  position: static;
  padding: 14px 0 0;
  margin-bottom: 0;
}

.cms-site .cms-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(36px, 6vw, 84px);
  min-height: calc(100svh - var(--cms-header-height));
  /* Высоту героя задаёт содержимое, а не min-height: на 1440x900 контент
     перерастал первый экран. Вертикальный воздух привязан к vh, поэтому на
     низких ноутбучных экранах он ужимается сам, без медиазапросов. */
  padding: clamp(16px, 2.2vh, 32px) 0 clamp(16px, 2vh, 32px);
  color: var(--cms-text);
  background: var(--cms-paper);
}

.cms-site .cms-hero-copy {
  min-width: 0;
}

.cms-site .cms-hero h1 {
  max-width: 18ch;
  margin-bottom: 22px;
  color: var(--cms-text);
}

.cms-site .cms-hero .cms-eyebrow {
  max-width: 66ch;
  color: var(--cms-accent);
}

.cms-site .cms-hero-subtitle {
  max-width: 66ch;
  margin-bottom: 0;
  color: var(--cms-text-muted);
  font-size: 17px;
  line-height: 1.62;
}

.cms-site .cms-hero .cms-check-list {
  gap: 8px;
  max-width: 66ch;
  margin-top: 22px;
}

.cms-site .cms-hero .cms-check-list li {
  color: var(--cms-text);
  font-size: 15px;
  line-height: 1.5;
}

.cms-site .cms-hero .cms-check-icon {
  color: var(--cms-accent);
}

.cms-site .cms-hero .cms-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 10px;
  max-width: 680px;
  margin-top: 26px;
}

.cms-site .cms-hero .cms-actions .btn {
  width: 100%;
  height: auto;
  min-height: 50px;
  padding: 9px 14px;
  line-height: 1.3;
  text-align: center;
}

.cms-site .cms-hero .btn-primary {
  color: #ffffff;
  background: var(--cms-accent);
  border-color: var(--cms-accent);
}

.cms-site .cms-hero .btn-primary:hover {
  color: #ffffff;
  background: var(--cms-accent-strong);
  border-color: var(--cms-accent-strong);
}

.cms-site .cms-hero .btn-outline {
  color: var(--cms-text);
  background: transparent;
  border-color: var(--cms-line);
}

.cms-site .cms-hero .btn-outline:hover {
  color: var(--cms-text);
  background: var(--cms-base-2);
  border-color: var(--cms-text-muted);
}

.cms-site .cms-hero-media {
  align-self: center;
}

.cms-site .cms-hero .cms-media img,
.cms-site .cms-hero-media-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}

.cms-site .cms-hero .cms-media img {
  height: auto;
  max-height: min(56svh, 560px);
  object-fit: cover;
  box-shadow: none;
}

.cms-site .cms-hero-media-slot {
  position: relative;
  display: grid;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  color: var(--cms-accent);
  background:
    linear-gradient(135deg, transparent 48%, var(--cms-accent-line) 49%, var(--cms-accent-line) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, var(--cms-line) 49%, var(--cms-line) 51%, transparent 52%),
    var(--cms-base-2);
  border: 1px solid var(--cms-line);
}

.cms-site .cms-hero-media-slot::before {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--cms-accent-line);
  content: "";
}

.cms-site .cms-hero-media-slot > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background: var(--cms-paper);
  border: 1px solid var(--cms-accent-line);
  border-radius: 50%;
}

.cms-site .cms-hero-media-slot > span::before,
.cms-site .cms-hero-media-slot > span::after {
  position: absolute;
  background: var(--cms-accent);
  content: "";
}

.cms-site .cms-hero-media-slot > span::before {
  width: 28px;
  height: 2px;
  transform: rotate(45deg);
}

.cms-site .cms-hero-media-slot > span::after {
  width: 2px;
  height: 28px;
  transform: rotate(45deg);
}

@media (min-width: 861px) and (max-height: 820px) {
  .cms-site .cms-hero {
    /* Низкие ноутбучные экраны: воздух сверху и снизу ужимается,
       чтобы герой вместе с крошками уложился в первый экран. */
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .cms-site .cms-page-shell:has(> .cms-hero) > .cms-breadcrumbs {
    padding-top: 8px;
  }

  .cms-site .cms-hero h1 {
    margin-bottom: 16px;
  }

  .cms-site .cms-hero-subtitle {
    font-size: 15px;
    line-height: 1.52;
  }

  .cms-site .cms-hero .cms-check-list {
    margin-top: 16px;
  }

  .cms-site .cms-hero .cms-actions {
    margin-top: 18px;
  }
}

@media (max-width: 860px) {
  .cms-site {
    --cms-header-height: 67px;
  }

  .cms-site.cms-preview-mode {
    --cms-header-height: 124px;
  }

  .cms-site .cms-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 36px;
    padding-top: 76px;
    padding-bottom: 56px;
  }

  .cms-site .cms-hero-media {
    width: 100%;
    max-width: 680px;
  }

  .cms-site .cms-hero .cms-media img,
  .cms-site .cms-hero-media-slot {
    max-height: 380px;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 580px) {
  .cms-site .cms-page-shell:has(> .cms-hero) > .cms-breadcrumbs {
    top: 12px;
  }

  .cms-site .cms-hero {
    gap: 28px;
    padding-top: 68px;
    padding-bottom: 48px;
  }

  .cms-site .cms-hero .cms-actions {
    display: grid;
  }

  .cms-site .cms-hero .btn {
    width: 100%;
    height: auto;
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: center;
  }

  .cms-site .cms-hero-media-slot {
    min-height: 210px;
  }
}

/* Section archetypes ----------------------------------------------------- */
.cms-site .cms-section > h2 {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.cms-site .cms-text .cms-prose > p + p,
.cms-site .cms-legal-details .cms-prose > p + p {
  margin-top: 18px;
}

/* Тезисом набирается ТОЛЬКО первый текстовый блок страницы. Раньше правило
   ловило первый абзац каждой секции `text`, а их на странице услуги пять —
   получалось пять «огромных заголовков» подряд. Явно размеченный
   `.cms-paragraph-lead` остаётся тезисом везде, это выбор редактора. */
.cms-site .cms-hero + .cms-text .cms-prose > p:first-of-type:not(.cms-paragraph-muted),
.cms-site .cms-page-shell > .cms-text:first-child .cms-prose > p:first-of-type:not(.cms-paragraph-muted) {
  color: var(--cms-text);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.022em;
}

.cms-site .cms-text .cms-paragraph-lead {
  color: var(--cms-text);
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.012em;
}


/* Текстовая секция с панелью-чеклистом: слева проза, справа перечисление,
   вынесенное из абзаца со списком через точку с запятой. */

/* В превью кнопки намеренно disabled, чтобы из него не уходило ни одного
   события. Но гасить их до 60% нельзя: владелец видит блёклый шалфей вместо
   фирменного зелёного и судит по нему о цвете сайта. Внешний вид оставляем
   боевым, неинтерактивность держится на самом атрибуте. */
.cms-site .btn:disabled,
.cms-site .btn[disabled] {
  opacity: 1;
  cursor: default;
}


/* Блок, состоящий только из перечисления: нумерованная сетка во всю ширину
   вместо абзаца через точку с запятой. Слова авторские, меняется подача. */
.cms-site .cms-text-listed {
  width: 100%;
  max-width: var(--cms-wrap);
}

.cms-site .cms-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: clamp(24px, 3vw, 48px);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--cms-line);
  counter-reset: cms-list;
  list-style: none;
}

.cms-site .cms-list-grid li {
  position: relative;
  padding: 15px 0 15px 44px;
  border-bottom: 1px solid var(--cms-line);
  color: var(--cms-text);
  font-size: 16px;
  line-height: 1.5;
  counter-increment: cms-list;
}

.cms-site .cms-list-grid li::before {
  position: absolute;
  top: 17px;
  left: 0;
  color: var(--cms-accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  content: counter(cms-list, decimal-leading-zero);
}

.cms-site .cms-text-panel-title {
  margin: 0 0 18px;
  color: var(--cms-text);
  font-weight: 800;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.018em;
}

.cms-site .cms-text-panel-cta {
  width: 100%;
  margin-top: 24px;
}


/* Пустой медиа-слот — инструмент редактора: он показывает, куда встанет
   изображение. Посетителю опубликованного сайта тот же слот читается как
   «картинка не загрузилась», поэтому наружу он не выводится, а разметка
   схлопывается в одну колонку. В превью слот остаётся на месте.
   Признак пустоты уже проставлен шаблонами через aria-hidden. */
.cms-site:not(.cms-preview-mode) .cms-media[aria-hidden="true"],
.cms-site:not(.cms-preview-mode) .cms-card-media-slot[aria-hidden="true"] {
  display: none;
}

.cms-site:not(.cms-preview-mode) .cms-hero:not(.cms-hero-with-media) {
  grid-template-columns: minmax(0, 1fr);
}

.cms-site .cms-text-panelled {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 4.6vw, 72px);
  align-items: start;
  width: 100%;
  max-width: var(--cms-wrap);
}

.cms-site .cms-text-panelled .cms-prose {
  max-width: 62ch;
}

.cms-site .cms-text-panel {
  padding: clamp(24px, 2.4vw, 32px);
  background: var(--cms-paper);
  border: 1px solid var(--cms-line);
  border-radius: 4px;
}

.cms-site .cms-text-panel-list {
  margin: 0;
  padding: 0;
  counter-reset: cms-panel;
  list-style: none;
}

.cms-site .cms-text-panel-list li {
  position: relative;
  padding: 13px 0 13px 44px;
  border-top: 1px solid var(--cms-line);
  color: var(--cms-text);
  font-size: 15.5px;
  line-height: 1.5;
  counter-increment: cms-panel;
}

.cms-site .cms-text-panel-list li:first-child {
  padding-top: 2px;
  border-top: 0;
}

.cms-site .cms-text-panel-list li::before {
  position: absolute;
  top: 13px;
  left: 0;
  color: var(--cms-accent);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  content: counter(cms-panel, decimal-leading-zero);
}

.cms-site .cms-text-panel-list li:first-child::before {
  top: 4px;
}

@media (max-width: 1000px) {
  .cms-site .cms-text-panelled {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cms-site .cms-text-break {
  padding-right: 0;
  padding-left: 0;
}

/* Service/object cards: 4:3 visual slot, solid paper and a stretched link.
   The link remains a real anchor in the document and makes the whole card hit
   area clickable without changing the content contract. */
.cms-site .cms-card-section .cms-card-grid {
  gap: 1px;
  overflow: hidden;
  background: var(--cms-line);
  border: 1px solid var(--cms-line);
  border-radius: 4px;
}

.cms-site .cms-card-section .cms-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: var(--cms-paper);
  border: 0;
  border-radius: 0;
}

.cms-site .cms-card-media-slot {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  color: var(--cms-accent);
  background:
    linear-gradient(145deg, transparent 0 54%, var(--cms-accent-line) 54.4% 54.9%, transparent 55.3%),
    linear-gradient(35deg, transparent 0 62%, var(--cms-line) 62.4% 62.9%, transparent 63.3%),
    var(--cms-base-2);
  border-bottom: 1px solid var(--cms-line);
}

.cms-site .cms-card-media-slot::before {
  position: absolute;
  inset: 14%;
  border: 1px solid var(--cms-accent-line);
  content: "";
}

.cms-site .cms-card-media-slot-with-image {
  display: block;
  background: var(--cms-base-2);
}

.cms-site .cms-card-media-slot-with-image::before {
  content: none;
}

.cms-site .cms-card-media-slot-with-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .cms-site .cms-card-section .cms-card:hover .cms-card-media-slot-with-image img {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cms-site .cms-card-media-slot-with-image img {
    transition: none;
  }
}

.cms-site .cms-card-media-slot .cms-card-icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  margin: 0;
  background: var(--cms-paper);
  border: 1px solid var(--cms-accent-line);
  border-radius: 50%;
}

.cms-site .cms-card-section .cms-card > h2,
.cms-site .cms-card-section .cms-card > h3 {
  margin: 24px 24px 9px;
  font-size: 19px;
}

.cms-site .cms-card-section .cms-card > p {
  margin: 0 24px 22px;
  color: var(--cms-text-muted);
  font-size: 15px;
  line-height: 1.58;
}

.cms-site .cms-card-section .cms-card-link {
  margin: auto 24px 22px;
  padding: 12px 0 0;
  color: var(--cms-accent);
  border-top: 1px solid var(--cms-line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cms-site .cms-card-section a.cms-card-link::after {
  position: absolute;
  inset: 0;
  content: "";
}

.cms-site .cms-card-section .cms-card:has(a.cms-card-link) {
  transition: background-color 150ms ease;
}

.cms-site .cms-card-section .cms-card:has(a.cms-card-link):hover {
  background: #f8fbfa;
}

/* Risk register: warm index labels on a soft-accent hairline grid. */
.cms-site .cms-risk-section {
  color: var(--cms-text);
}

.cms-site .cms-risk-grid {
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--cms-accent-line);
  border-left: 1px solid var(--cms-accent-line);
}

.cms-site .cms-risk-card {
  position: relative;
  display: block;
  min-width: 0;
  padding: clamp(24px, 3vw, 36px);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--cms-accent-line);
  border-bottom: 1px solid var(--cms-accent-line);
  border-radius: 0;
}

.cms-site .cms-risk-card .cms-card-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  color: var(--cms-warning);
  background: #faf1e0;
  border: 1px solid #e8d1a8;
}

.cms-site .cms-risk-marker {
  margin-bottom: 12px;
  color: var(--cms-warning);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.cms-site .cms-risk-card h2,
.cms-site .cms-risk-card h3 {
  margin-bottom: 9px;
  font-size: 19px;
}

.cms-site .cms-risk-card p {
  margin-bottom: 0;
  color: var(--cms-text-muted);
  font-size: 15px;
  line-height: 1.58;
}

.cms-site .cms-risk-card .cms-card-link {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid var(--cms-accent-line);
}

/* Process: a 3 × 2 editorial sequence, not a vertical wizard. */
.cms-site .cms-process .cms-steps {
  gap: clamp(24px, 3vw, 42px);
}

.cms-site .cms-process .cms-steps li {
  position: relative;
  padding: 28px 18px 10px 0;
  border-top: 2px solid var(--cms-line);
}

.cms-site .cms-process .cms-steps li::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 84px;
  height: 2px;
  background: var(--cms-accent);
  content: "";
}

.cms-site .cms-process .cms-step-number {
  display: block;
  width: auto;
  height: auto;
  color: var(--cms-accent);
  background: transparent;
  border-radius: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.cms-site .cms-process .cms-step-copy {
  padding-top: 14px;
}

.cms-site .cms-process .cms-steps h2,
.cms-site .cms-process .cms-steps h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.cms-site .cms-process .cms-steps p {
  margin: 0;
  font-size: 15px;
  line-height: 1.62;
}

/* Image + text: asymmetrical editorial split, with a real edge-reaching slot
   until T-04 connects accepted media to the section records. */
.cms-site .cms-image-text {
  grid-template-columns: minmax(0, 0.82fr) minmax(340px, 1.18fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  padding-right: 0;
  padding-left: 0;
}

.cms-site .cms-image-text .cms-prose {
  max-width: 60ch;
}

.cms-site .cms-image-text .cms-prose p + p {
  margin-top: 16px;
}

.cms-site .cms-image-media {
  min-width: 0;
}

.cms-site .cms-image-right .cms-image-media {
  width: calc(100% + max(0px, (100vw - var(--cms-wrap) - 16px) / 2));
}

.cms-site .cms-image-left .cms-image-media {
  width: calc(100% + max(0px, (100vw - var(--cms-wrap) - 16px) / 2));
  margin-left: calc(-1 * max(0px, (100vw - var(--cms-wrap) - 16px) / 2));
}

.cms-site .cms-image-media img,
.cms-site .cms-image-media-slot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.cms-site .cms-image-media-slot {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background:
    linear-gradient(120deg, transparent 0 48%, var(--cms-accent-line) 48.4% 48.8%, transparent 49.2%),
    linear-gradient(30deg, transparent 0 66%, var(--cms-line) 66.4% 66.8%, transparent 67.2%),
    var(--cms-base-2);
  border: 1px solid var(--cms-line);
}

.cms-site .cms-image-media-slot::before {
  position: absolute;
  inset: 12%;
  border: 1px solid var(--cms-accent-line);
  content: "";
}

.cms-site .cms-image-media-slot > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background: var(--cms-paper);
  border: 1px solid var(--cms-accent-line);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cms-site .cms-image-media figcaption {
  max-width: 66ch;
  margin-top: 10px;
  color: var(--cms-text-muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Benefits: large, scannable statements with minimal supporting copy. */
.cms-site .cms-benefits .cms-card-grid {
  gap: 1px;
  background: var(--cms-line);
  border: 1px solid var(--cms-line);
}

.cms-site .cms-benefit-card {
  min-width: 0;
  padding: clamp(24px, 3vw, 34px);
  background: var(--cms-paper);
  border: 0;
  border-top: 3px solid var(--cms-accent);
  border-radius: 0;
}

.cms-site .cms-benefit-card .cms-card-icon {
  margin-bottom: 28px;
}

.cms-site .cms-benefit-card h2,
.cms-site .cms-benefit-card h3 {
  color: var(--cms-text);
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.18;
}

.cms-site .cms-benefit-card p {
  color: var(--cms-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Documents: compact file/page chips rather than full-size generic cards. */
.cms-site .cms-document-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cms-site .cms-document-list li {
  min-width: 0;
  padding: 14px;
  background: var(--cms-paper);
  border-color: #cbd5d9;
}

.cms-site .cms-document-icon {
  color: var(--cms-accent);
  background: var(--cms-accent-soft);
}

.cms-site .cms-document-link {
  color: var(--cms-accent-strong);
  background: transparent;
  border-color: var(--cms-accent-line);
}

/* Expert note: an editorial quotation with an optional circular portrait. */
.cms-site .cms-expert-note {
  padding: clamp(42px, 6vw, 72px) 0;
  background: var(--cms-section-surface, var(--cms-paper));
  border: 0;
  border-top: 1px solid var(--cms-line);
  border-bottom: 1px solid var(--cms-line);
  border-radius: 0;
}

.cms-site .cms-expert-note-with-photo {
  grid-template-columns: 112px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}

.cms-site .cms-expert-photo {
  width: 112px;
  height: 112px;
  border: 1px solid var(--cms-line);
}

.cms-site .cms-expert-note blockquote {
  max-width: 42ch;
  margin-bottom: 22px;
  color: var(--cms-text);
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.02em;
}

.cms-site .cms-expert-note span {
  color: var(--cms-text-muted);
}

/* FAQ: quiet rules and a CSS chevron; the first answer is open in markup. */
.cms-site .cms-faq-list {
  gap: 0;
  border-top: 1px solid var(--cms-line);
}

.cms-site .cms-faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--cms-line);
  border-radius: 0;
}

.cms-site .cms-faq summary {
  min-height: 68px;
  padding: 18px 2px;
  font-size: 17px;
}

.cms-site .cms-faq summary::after {
  width: 9px;
  height: 9px;
  margin-right: 5px;
  color: transparent;
  border-right: 2px solid var(--cms-accent);
  border-bottom: 2px solid var(--cms-accent);
  content: "";
  transform: translateY(-3px) rotate(45deg);
  transition: transform 150ms ease;
}

.cms-site .cms-faq details[open] summary::after {
  content: "";
  transform: translateY(3px) rotate(225deg);
}

.cms-site .cms-faq-answer {
  padding: 0 40px 22px 2px;
}

.cms-site .cms-faq-answer p {
  color: var(--cms-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Related pages, contacts and legal copy. */
.cms-site .cms-related-pages {
  padding-right: 0;
  padding-left: 0;
}

.cms-site .cms-related-list {
  gap: 1px;
  overflow: hidden;
  background: #cbd5d9;
  border: 1px solid #cbd5d9;
}

.cms-site .cms-related-list li {
  min-height: 96px;
  padding: 20px;
  background: var(--cms-paper);
  border: 0;
  border-radius: 0;
}

.cms-site .cms-related-list li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.cms-site .cms-related-title {
  color: var(--cms-text);
}

.cms-site .cms-related-description {
  max-width: 66ch;
  color: var(--cms-text-muted);
}

.cms-site .cms-contacts {
  padding: clamp(28px, 4vw, 48px);
  background: var(--cms-paper);
  border: 1px solid var(--cms-line);
  border-left: 4px solid var(--cms-accent);
  border-radius: 4px;
}

.cms-site .cms-contact-icon {
  color: var(--cms-accent);
  background: var(--cms-accent-soft);
}

.cms-site .cms-legal-details {
  color: var(--cms-text);
}

.cms-site .cms-legal-details .cms-prose {
  color: var(--cms-text-muted);
}

/* Full-viewport photo break. The main element clips the small scrollbar-unit
   overhang of 100vw, while the inner wrapper keeps the approved 1240px measure. */
.cms-site .cms-main {
  overflow-x: clip;
}

.cms-site .cms-media-band {
  position: relative;
  display: flex;
  width: 100vw;
  max-width: none;
  min-height: clamp(360px, 44vw, 560px);
  margin-left: calc(50% - 50vw);
  align-items: flex-end;
  overflow: hidden;
  color: #ffffff;
  background: #0f1a20;
}

.cms-site .cms-media-band::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 32, 0.62), rgba(15, 26, 32, 0.94));
  content: "";
}

.cms-site .cms-media-band-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cms-site .cms-media-band-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(var(--cms-wrap), calc(100% - var(--cms-page-inline)));
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(60px, 8vw, 120px) 0 clamp(32px, 4vw, 56px);
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
}

.cms-site .cms-media-band h2 {
  max-width: 19ch;
  margin: 0;
  color: #ffffff;
  font-size: clamp(25px, 2.7vw, 38px);
  letter-spacing: -0.026em;
}

.cms-site .cms-media-band-panel {
  width: min(100%, 360px);
  padding: 22px 24px;
  flex: 0 0 auto;
  color: #d8ede6;
  background: rgba(15, 26, 32, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.cms-site .cms-media-band-panel p {
  margin: 0 0 16px;
  color: #d8ede6;
  font-size: 14.5px;
  line-height: 1.55;
}

.cms-site .cms-media-band-panel p:last-child {
  margin-bottom: 0;
}

.cms-site .cms-media-band-panel .btn-primary {
  width: 100%;
  color: var(--cms-accent-strong);
  background: #ffffff;
  border-color: #ffffff;
}

.cms-site .cms-media-band-panel .btn-primary:hover {
  color: var(--cms-accent-strong);
  background: var(--cms-accent-soft);
  border-color: var(--cms-accent-soft);
}

@media (max-width: 680px) {
  .cms-site .cms-media-band-content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
  }

  .cms-site .cms-media-band-panel {
    width: 100%;
  }
}

/* Final CTA: the sole intentionally deep field in the page sequence. */
.cms-site .cms-final-cta {
  padding-right: 0;
  padding-left: 0;
  color: #ffffff;
  background: var(--cms-accent-strong);
  text-align: left;
}

.cms-site .cms-final-cta-background {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 50%;
  display: block;
  width: 100vw;
  max-width: none;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  transform: translateX(-50%);
}

.cms-site .cms-final-cta-with-media::after {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  background: linear-gradient(100deg, var(--cms-accent-strong) 24%, rgba(9, 88, 69, 0.72));
  content: "";
  transform: translateX(-50%);
}

.cms-site .cms-final-cta-content {
  position: relative;
  z-index: 2;
}

.cms-site .cms-final-cta h2 {
  max-width: 22ch;
  color: #ffffff;
}

.cms-site .cms-final-cta p {
  max-width: 66ch;
  margin-right: 0;
  margin-left: 0;
  color: #d8ede6;
  opacity: 1;
}

.cms-site .cms-final-cta .btn-primary {
  color: var(--cms-accent-strong);
  background: #ffffff;
  border-color: #ffffff;
}

.cms-site .cms-final-cta .btn-primary:hover {
  color: var(--cms-accent-strong);
  background: var(--cms-accent-soft);
  border-color: var(--cms-accent-soft);
}

/* Form, trust and licence blocks inherit the same restrained geometry. */
.cms-site .cms-form-panel {
  background: var(--cms-paper);
  border-color: var(--cms-line);
  border-radius: 4px;
}

.cms-site .cms-lead-form input,
.cms-site .cms-lead-form select,
.cms-site .cms-lead-form textarea {
  border-color: #b9c6cb;
  border-radius: 4px;
}

.cms-site .cms-trust-block {
  background: var(--cms-accent-soft);
  border-color: var(--cms-accent-line);
  border-radius: 4px;
}

.cms-site .cms-trust-block ul {
  gap: 12px 32px;
}

.cms-site .cms-trust-block li::marker {
  color: var(--cms-accent);
}

.cms-site .cms-license-block {
  background: var(--cms-base-2);
  border-color: var(--cms-line);
  border-radius: 4px;
}

.cms-site .cms-breadcrumbs,
.cms-site .cms-breadcrumbs a {
  color: var(--cms-text-muted);
}

@media (max-width: 860px) {
  .cms-site .cms-image-text,
  .cms-site .cms-image-text-no-media {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .cms-site .cms-image-right .cms-image-media,
  .cms-site .cms-image-left .cms-image-media {
    width: 100%;
    margin-left: 0;
  }

  .cms-site .cms-document-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .cms-site .cms-card-section .cms-card-grid,
  .cms-site .cms-risk-grid,
  .cms-site .cms-benefits .cms-card-grid {
    grid-template-columns: 1fr;
  }

  .cms-site .cms-process .cms-steps {
    grid-template-columns: 1fr;
  }

  .cms-site .cms-image-media-slot {
    min-height: 230px;
  }

  .cms-site .cms-expert-note-with-photo {
    grid-template-columns: 1fr;
  }

  .cms-site .cms-related-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1350px) and (min-width: 861px) {
  .cms-site .cms-header-inner,
  .cms-site .cms-header-compact .cms-header-inner {
    grid-template-columns: minmax(190px, 1fr) minmax(0, auto) 44px auto;
    gap: 10px;
  }

  .cms-site .cms-brand-descriptor {
    display: none;
  }

  .cms-site .cms-nav-link-row > a {
    white-space: nowrap;
  }

  .cms-site .cms-header-cta-full {
    display: none;
  }

  .cms-site .cms-header-cta-short {
    display: inline;
  }

  .cms-site .cms-header-contacts {
    display: none;
  }

  .cms-site .cms-mobile-phone {
    display: grid;
    grid-column: 3;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: var(--cms-text);
    background: var(--cms-paper);
    border: 1px solid var(--cms-line);
    border-radius: 4px;
  }

  .cms-site .cms-header-cta {
    grid-column: 4;
  }
}

.cms-site :where(a, button, summary, input, select, textarea) {
  touch-action: manipulation;
}

.cms-site .cms-section :where(h2, h3) {
  scroll-margin-top: calc(var(--cms-header-height) + 20px);
}


/* Блок «текст с изображением» без картинки: вторая колонка держала до 62%
   ширины пустой. Пока медиа не привязано, отдаём одну колонку. */
.cms-site .cms-image-text-no-media {
  grid-template-columns: minmax(0, 1fr);
}


/* Заголовок текстовой секции. Ступень между h1 страницы и заголовками
   карточек, чтобы иерархия читалась сверху вниз. */
.cms-site .cms-section-title {
  max-width: 28ch;
  margin: 0 0 20px;
  color: var(--cms-text);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.14;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.cms-site .cms-text-panelled > .cms-section-title,
.cms-site .cms-text-listed > .cms-section-title {
  grid-column: 1 / -1;
  max-width: 34ch;
}


/* Шапка: меню из шести пунктов требует 577px, а свободной дорожки было 444 —
   «Контакты» наезжали на телефон. Освобождаем место, ничего не пряча:
   короткая надпись на кнопке и более узкая колонка бренда. Полная надпись
   возвращается на широких экранах, где место есть. */
@media (max-width: 1700px) {
  .cms-site .cms-header-cta-full {
    display: none;
  }

  .cms-site .cms-header-cta-short {
    display: inline;
  }
}

@media (min-width: 1001px) and (max-width: 1700px) {
  .cms-site .cms-header-inner,
  .cms-site .cms-header-compact .cms-header-inner {
    grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto auto;
    gap: 14px;
  }

  .cms-site .cms-nav-list > li > a {
    font-size: 14px;
  }
}


/* Cookie-баннер был карточкой на 239px по высоте и перекрывал кнопки первого
   экрана на 1440x900 — посетитель не мог нажать главный призыв, пока не
   разберётся с баннером. Делаем узкой полосой у нижней кромки: текст в одну
   строку, кнопки справа. Развёрнутые настройки открываются по «Настроить»
   и там уже могут занимать больше места. */
@media (min-width: 861px) {
  .cms-site .cms-cookie-banner {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: none;
    margin: 0;
  }

  .cms-site .cms-cookie-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    max-width: var(--cms-wrap);
    margin: 0 auto;
    padding: 10px var(--cms-page-inline);
    border-radius: 0;
    border-top: 1px solid var(--cms-line);
  }

  .cms-site .cms-cookie-intro > .cms-eyebrow,
  .cms-site .cms-cookie-intro h2 {
    display: none;
  }

  .cms-site .cms-cookie-intro > p:not(.cms-eyebrow) {
    /* Одна строка вместо трёх: полное описание доступно по ссылке рядом. */
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .cms-site .cms-cookie-primary-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    grid-template-columns: none;
    align-items: center;
    gap: 8px;
  }

  .cms-site .cms-cookie-primary-actions .btn {
    min-height: 38px;
    padding: 8px 15px;
    font-size: 13px;
    white-space: nowrap;
  }

  /* Панель настроек остаётся полноценной: она открывается по кнопке. */
  .cms-site .cms-cookie-settings {
    grid-column: 1 / -1;
  }
}
