/* =========================================================
   SERT-EXPERT COPY — базовые стили
   Все цвета/шрифты вынесены в переменные :root — меняйте здесь.
   ========================================================= */

:root {
  /* --- Цвета: тёплая пастельная палитра доверия (меняйте под новый бренд здесь) --- */
  --color-accent: #2166b1;
  --color-accent-dark: #124d8d;
  --color-accent-tint: #eaf2fb;
  --color-cta: #cf3f39;
  --color-cta-dark: #b93631;
  --color-bg: #f7f4ef;
  --color-bg-alt: #fffdf9;
  --color-text: #12243a;
  --color-text-muted: #5c6b7d;
  --color-border: #dce5ef;

  /* --- Типографика: тот же шрифт, что у сайта-донора (Google Fonts, свободная лицензия) --- */
  --font-heading: 'Ubuntu', Arial, sans-serif;
  --font-body: 'Ubuntu', Arial, sans-serif;

  /* --- Прочее --- */
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(20,20,20,.06);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: .3px;
  overflow-wrap: anywhere;
}
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container > *, .hero__grid > *, .header__inner > * { min-width: 0; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.eyebrow {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: block;
}
.lead { color: var(--color-text-muted); font-size: 19px; max-width: 640px; }

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 600;
  font-size: 17px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--color-accent); }
.btn--outline {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn--outline:hover { background: var(--color-accent); color: #fff; }
.btn--calc,
.header-main__cta.btn--calc,
.mobile-cta a.btn--calc {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(216,72,63,.25);
}
.btn--calc:hover,
.header-main__cta.btn--calc:hover,
.mobile-cta a.btn--calc:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  color: #fff;
}

/* --- Шапка --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img.logo__image {
  display: block;
  width: auto;
  height: 54px;
  max-width: 240px;
  object-fit: contain;
}
.footer .logo img.logo__image { height: 46px; }
/* Фирменный знак РСЦ: знак принятия документа + полное название центра. */
.logo-mark {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(45,48,50,.2);
}
.footer .logo-mark { box-shadow: none; }
.logo-text {
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text);
  line-height: 1.15;
}
.logo-text .accent { color: var(--color-accent-dark); }
.logo-tagline {
  display: block;
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .35px;
  color: var(--color-text-muted);
  margin-top: 2px;
  padding-top: 2px;
  border-top: 1px solid var(--color-border);
}

/* Пока нет реальных фото — эти блоки показывают зелёный градиент вместо картинки.
   Как только положите файл по указанному в HTML пути (img/...), градиент перекроется фото. */
.placeholder-photo {
  background-color: transparent;
  background-image: linear-gradient(135deg, #f3e9d6 0%, #cfe8d9 100%);
}
.placeholder-photo img { background: linear-gradient(135deg, #f3e9d6 0%, #cfe8d9 100%); width: 100%; height: 100%; object-fit: cover; }
.nav {
  display: flex;
  gap: 24px;
  flex: 1;
  justify-content: center;
  font-size: 17px;
}
.nav a:hover { color: var(--color-accent); }
.header__contacts {
  text-align: right;
  font-size: 16px;
  line-height: 1.4;
}
.header__contacts a { display: block; }
.header__contacts .phone { font-weight: 700; }
.menu-toggle {
  display: none;
  background: var(--color-accent-dark);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

/* --- Главная: корпоративная двухуровневая шапка --- */
.header--home {
  background: #fff;
  border-bottom: 0;
  box-shadow: 0 8px 24px rgba(18, 33, 27, .08);
}
.header-topbar {
  background: #2d3032;
  color: rgba(255,255,255,.78);
  font-size: 13px;
}
.header-topbar__inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-topbar__contacts { display: flex; align-items: center; gap: 24px; }
.header-topbar a { transition: color .2s ease; }
.header-topbar a:hover { color: #fff; }
.header-topbar .phone { color: #fff; font-weight: 700; }
.header-callback {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 700;
}
.header--home .header__inner { min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
.header--home .logo { min-width: 260px; }
.header--home .nav { gap: clamp(14px, 1.5vw, 24px); font-size: 14.5px; font-weight: 600; }
.header--home .nav a { position: relative; padding: 27px 0; }
.header--home .nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 17px;
  height: 2px;
  background: var(--color-accent-dark);
  transition: right .2s ease;
}
.header--home .nav a:hover::after { right: 0; }
.header-main__cta {
  flex-shrink: 0;
  padding: 12px 16px;
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius-sm);
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, color .2s ease;
}
.header-main__cta:hover { background: var(--color-accent-dark); color: #fff; }
.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;
}

.error-page { min-height: 100vh; display: grid; place-items: center; padding: 40px 0; background: var(--color-bg-alt); }
.error-page__inner { max-width: 720px; text-align: center; }
.error-page__inner .logo { justify-content: center; margin-bottom: 46px; }
.error-page__code { margin: 0; color: var(--color-accent); font-size: clamp(72px, 16vw, 150px); font-weight: 800; line-height: .85; }
.error-page h1 { margin: 24px 0 12px; }
.error-page p:not(.error-page__code) { max-width: 620px; margin: 0 auto 28px; color: var(--color-text-muted); }

/* --- Hero --- */
.hero {
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  padding: 64px 0 48px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { font-size: 46px; }
.hero h1 .accent { color: var(--color-accent); }
.hero__art {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

/* --- Главная: первый экран --- */
.hero--home {
  position: relative;
  overflow: hidden;
  padding: 78px 0 70px;
  background:
    radial-gradient(circle at 9% 12%, rgba(88,117,138,.1), transparent 26%),
    linear-gradient(115deg, #f7f4ef 0%, #fffdf9 62%, #f0f1f1 100%);
}
.hero--home::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -230px;
  top: -170px;
  border: 70px solid rgba(88,117,138,.06);
  border-radius: 50%;
}
.hero--home .hero__grid {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  gap: clamp(40px, 5vw, 72px);
}
.hero__content { max-width: 680px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--color-accent-dark);
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 1.15px;
  text-transform: uppercase;
}
.hero__eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.hero--home h1 {
  max-width: 670px;
  margin-bottom: 24px;
  font-size: clamp(38px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -.8px;
}
.hero--home h1 .accent { display: block; color: var(--color-accent-dark); }
.hero--home .lead { max-width: 620px; margin: 0; font-size: 18px; line-height: 1.65; }
.hero__actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.hero--home .btn { min-height: 56px; box-shadow: 0 10px 24px rgba(185,54,49,.2); }
.hero__secondary-link { color: var(--color-text); font-size: 15px; font-weight: 700; }
.hero__secondary-link span { margin-left: 6px; color: var(--color-accent-dark); }
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 13.5px;
  font-weight: 600;
}
.hero__meta span { display: flex; align-items: center; gap: 8px; }
.hero__meta span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
}
.hero__visual { position: relative; padding: 0 0 32px 28px; }
.hero--home .hero__art {
  min-height: 500px;
  border-radius: 4px 4px 70px 4px;
  box-shadow: 0 24px 54px rgba(26,55,42,.18);
}
.hero__visual::before {
  content: "";
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 4px;
  width: 45%;
  border: 2px solid rgba(88,117,138,.2);
  border-radius: 4px 0 0 4px;
}
.hero__visual-card {
  position: absolute;
  left: 0;
  right: 38px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 390px;
  padding: 18px 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(45,48,50,.16);
}
.hero__visual-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-dark);
  color: #fff;
}
.hero__visual-card strong { display: block; font-size: 14px; line-height: 1.3; }
.hero__visual-card small { display: block; margin-top: 4px; color: var(--color-text-muted); font-size: 12.5px; }

.hero--background {
  min-height: 650px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 36%;
  color: #fff;
}
.hero--background::after { display: none; }
.hero--background .hero__grid { display: block; width: 100%; }
.hero--background .hero__content { max-width: 650px; }
.hero--background .hero__eyebrow { color: #8ec5ff; }
.hero--background h1 {
  max-width: 640px;
  font-size: clamp(34px, 3.15vw, 46px);
  line-height: 1.08;
  letter-spacing: -.35px;
}
.hero--background h1 .accent { color: #8ec5ff; }
.hero--background .lead { max-width: 590px; color: rgba(255,255,255,.8); font-size: 17px; }
.hero--background .btn--calc { box-shadow: 0 10px 26px rgba(216,72,63,.34); }
.hero--background .btn--calc span { color: #fff; }
.hero--background .hero__meta { border-top-color: rgba(255,255,255,.2); color: rgba(255,255,255,.76); }
.hero--background .hero__meta span::before { background: #8ec5ff; }
.hero--background .eyebrow { color: #8ec5ff; }
.hero--subpage { min-height: 500px; padding: 64px 0; }
.hero--subpage {
  background-color: #173b63;
  background-blend-mode: normal, soft-light;
}
.hero--subpage h1 { max-width: 680px; font-size: clamp(32px, 3vw, 44px); }
.hero--subpage .hero__content { max-width: 690px; }

/* Все сценарии расчёта на внутренних страницах */
a.btn--outline[href="#form2"],
#form1 .btn,
#form2 .btn {
  background: var(--color-cta);
  border-color: var(--color-cta);
  color: #fff;
  box-shadow: 0 10px 24px rgba(216,72,63,.25);
}
a.btn--outline[href="#form2"]:hover,
#form1 .btn:hover,
#form2 .btn:hover {
  background: var(--color-cta-dark);
  border-color: var(--color-cta-dark);
  color: #fff;
}

/* --- Трастбар / фичи с иконками --- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.features--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}
.advantages-cta { margin-top: 20px; }
.feature-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.feature-card--visual {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}
.feature-card__content {
  padding: 22px 24px 26px;
  flex: 1;
}
.feature-card__content h3 { margin-top: 0; }
.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(45,48,50,.18);
}
.feature-card__icon img { width: 20px; height: 20px; }
.feature-card__icon svg { stroke: #fff !important; }
.feature-card h3 { font-size: 20px; text-transform: none; }
.feature-card p { color: var(--color-text-muted); font-size: 16.5px; margin: 0; }

/* --- Карточки услуг / сегментов --- */
.segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.segment-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-color: rgba(18,77,141,.22);
  background-blend-mode: soft-light;
  box-shadow: var(--shadow);
}
.segment-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,45,72,.18) 0%, rgba(12,28,47,.92) 100%);
}
.segment-card--marketplace::before {
  background: linear-gradient(180deg, rgba(18,45,72,.162) 0%, rgba(12,28,47,.828) 100%);
}
.segment-card > * { position: relative; z-index: 1; }
.segment-card .tag {
  align-self: flex-start;
  background: rgba(255,255,255,.18);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 14px;
  margin-bottom: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,.5);
}
.segment-card h3 { font-size: 22px; text-transform: none; margin: 12px 0 16px; text-shadow: 0 2px 6px rgba(0,0,0,.55); }

/* --- Светлая карточка-опция (для страниц категорий, пока нет фото) --- */
.option-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
}
.option-card .tag {
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 12px;
}
.option-card h3 { font-size: 20px; text-transform: none; margin-bottom: 20px; flex: 1; }

/* --- Список с иконками (вместо голых символов ✓/✕) --- */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; }
.check-list__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.check-list--yes .check-list__icon { background: var(--color-accent-tint); }
.check-list--yes .check-list__icon svg { stroke: var(--color-accent-dark); }
.check-list--no { color: var(--color-text-muted); }
.check-list--no .check-list__icon { background: #f1ece2; }
.check-list--no .check-list__icon svg { stroke: #a89f8c; }

/* --- Процесс (шаги) --- */
.process {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.process__steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 18px; }
.step__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-accent-dark);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(45,48,50,.18);
}
.step h3, .step h4 { font-size: 19px; text-transform: none; margin: 0 0 6px; }
.step p { margin: 0; color: var(--color-text-muted); font-size: 16.5px; }
.process__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.process__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
}

/* --- Кейсы --- */
.cases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.case-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.case-card__image {
  width: calc(100% + 48px);
  max-width: none;
  height: 158px;
  margin: -24px -24px 20px;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease;
}
.case-card:hover .case-card__image { transform: scale(1.035); }
.case-card .tag {
  color: var(--color-accent);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 10px;
}
.case-card h3 { font-size: 19px; text-transform: none; }
.case-card p { color: var(--color-text-muted); font-size: 16px; flex: 1; }
.case-card__action {
  display: block;
  margin-top: 14px;
  color: var(--color-accent-dark);
  font-weight: 700;
}

/* --- Кликабельные фотографии и короткая форма захвата --- */
.lead-card { cursor: pointer; }
.lead-card:focus-visible {
  outline: 3px solid rgba(33,102,177,.45);
  outline-offset: 4px;
}
.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lead-modal.is-open { display: flex; }
.lead-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12,25,42,.74);
  backdrop-filter: blur(5px);
}
.lead-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px;
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  box-shadow: 0 24px 70px rgba(12,25,42,.3);
}
.lead-modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lead-modal__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.lead-modal h2 { margin: 0 42px 10px 0; font-size: 29px; }
.lead-modal__intro { margin-bottom: 22px; color: var(--color-text-muted); }
.lead-modal__form .btn { width: 100%; }
.lead-modal__form small {
  display: block;
  margin-top: 12px;
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
}
body.modal-open { overflow: hidden; }

/* --- Риски --- */
.risks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.risk-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.risk-card .num { font-family: var(--font-heading); font-size: 34px; color: var(--color-accent); }
.risk-card h3, .risk-card h4 { font-size: 17.5px; text-transform: none; }

/* --- FAQ --- */
.faq-item {
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 24px 20px; color: var(--color-text-muted); font-size: 16.5px; }

/* --- Форма --- */
.form-block {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-row { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.form-row input, .form-row textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 16.5px;
}
.form-check { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; color: var(--color-text-muted); margin-bottom: 18px; }
.form-check input { flex: 0 0 auto; margin-top: 3px; }
.form-check a { color: var(--color-accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin-top: 12px; font-size: 14px; line-height: 1.45; }
.form-status--error { padding: 11px 13px; border: 1px solid #e9a7a3; border-radius: 8px; background: #fff1f0; color: #9f2f29; }
button:disabled { cursor: wait; opacity: .7; }

/* --- Футер --- */
.footer { background: var(--color-bg-alt); color: var(--color-text-muted); padding: 48px 0 24px; font-size: 16px; border-top: 1px solid var(--color-border); }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; align-items: center; }
.footer a:hover { color: var(--color-accent); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__bottom { margin-top: 32px; border-top: 1px solid var(--color-border); padding-top: 20px; color: #a89f8c; font-size: 15px; }

/* --- Утилиты --- */
.section-title { font-size: 32px; margin-bottom: 8px; }
.section-title .accent { color: var(--color-accent); }
.section-head { margin-bottom: 40px; }

/* --- SEO-страницы услуг и справочник техрегламентов --- */
.breadcrumbs {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}
.breadcrumbs .container { padding-top: 11px; padding-bottom: 11px; }
.breadcrumbs a { color: var(--color-accent-dark); }
.breadcrumbs span { margin: 0 7px; color: #a89f8c; }
.content-narrow { max-width: 900px; }
.content-copy { font-size: 17px; line-height: 1.7; }
.content-copy p + p { margin-top: 16px; }
.content-copy h2 { margin-top: 38px; margin-bottom: 14px; font-size: 28px; }
.content-copy h3 { margin-top: 26px; margin-bottom: 10px; font-size: 20px; text-transform: none; }
.check-list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--color-accent-dark); font-weight: 700; }
.info-table-wrap { margin-top: 22px; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.info-table { width: 100%; border-collapse: collapse; min-width: 620px; background: var(--color-bg-alt); }
.info-table th, .info-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.info-table th { width: 30%; color: var(--color-text); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.source-note { margin-top: 24px; padding: 18px 20px; border-left: 3px solid var(--color-accent); background: var(--color-accent-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 14.5px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.related-links a { padding: 9px 13px; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-bg-alt); }
.regulations-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.reg-card { display: block; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-alt); text-decoration: none; }
.reg-card:hover { border-color: var(--color-accent); transform: translateY(-1px); }
.reg-card strong { display: block; color: var(--color-accent-dark); margin-bottom: 5px; }
.reg-card span { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.45; }

/* --- Расширенные коммерческие и справочные SEO-страницы --- */
.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: 14px;
}
.page-meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-meta span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
.answer-card {
  margin-bottom: 34px;
  padding: 24px 26px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-accent-dark);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow);
}
.answer-card strong { display: block; margin-bottom: 8px; color: var(--color-text); font-size: 20px; }
.answer-card p { margin: 0; color: var(--color-text-muted); }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 22px; }
.content-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.info-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  box-shadow: var(--shadow);
}
.info-card h3 { margin: 0 0 10px; font-size: 19px; text-transform: none; }
.info-card p { margin: 0; color: var(--color-text-muted); font-size: 15.5px; line-height: 1.55; }
.info-card ul { margin: 10px 0 0; padding-left: 20px; color: var(--color-text-muted); }
.info-card li + li { margin-top: 7px; }
.scheme-badge { display: inline-block; margin-bottom: 12px; padding: 5px 9px; border-radius: 999px; background: var(--color-accent-tint); color: var(--color-accent-dark); font-weight: 700; font-size: 13px; }
.definition-list { display: grid; gap: 0; margin-top: 22px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); overflow: hidden; }
.definition-list > div { display: grid; grid-template-columns: minmax(180px, .75fr) 2fr; gap: 22px; padding: 17px 20px; background: var(--color-bg-alt); }
.definition-list > div + div { border-top: 1px solid var(--color-border); }
.definition-list dt { font-weight: 700; color: var(--color-text); }
.definition-list dd { margin: 0; color: var(--color-text-muted); }
.notice-card { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius-sm); background: #fff4f2; border: 1px solid #f1c7c3; }
.notice-card strong { display: block; margin-bottom: 5px; color: #95342f; }
.editor-note { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); font-size: 14px; }
.editor-note strong { color: var(--color-text); }
.anchor-nav { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 0; }
.anchor-nav a { padding: 8px 12px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-alt); color: var(--color-accent-dark); font-size: 14px; }
.anchor-nav a:hover { border-color: var(--color-accent); }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 32px; padding: 25px 28px; border-radius: var(--radius); background: var(--color-text); color: #fff; }
.inline-cta h2, .inline-cta h3 { margin: 0 0 6px; color: #fff; text-transform: none; }
.inline-cta p { margin: 0; color: #d6dde4; }
.inline-cta .btn { flex: 0 0 auto; }

/* --- Трастбар (цифры доверия) --- */
.trustbar {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.trustbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trustbar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.trustbar__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
}
.trustbar__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--color-accent-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.trustbar__icon text { fill: var(--color-accent-dark); stroke: none; font-family: Arial, sans-serif; font-size: 7.5px; font-weight: 800; letter-spacing: -.25px; }
.trustbar__icon--eac text { font-size: 8px; letter-spacing: -.4px; }
.trustbar__icon--time-money text { font-size: 10px; }
.trustbar__item .label { font-size: 14.5px; color: var(--color-text-muted); }

/* --- Калькулятор стоимости --- */
.calculator {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.calc-row { margin-bottom: 20px; }
.calc-row label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 10px; }
.calc-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-opt {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 15.5px;
  cursor: pointer;
  transition: .15s;
  text-align: center;
}
.calc-opt.active, .calc-opt:hover { border-color: var(--color-accent); color: var(--color-accent); background: var(--color-accent-tint); }
.calc-result {
  margin-top: 8px;
  padding: 22px;
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.calc-result__block .label { font-size: 14.5px; color: var(--color-text-muted); }
.calc-result__block .value { font-family: var(--font-heading); font-size: 26px; color: var(--color-text); }
.calc-result__note { font-size: 13.5px; color: var(--color-accent-dark); margin-top: 10px; }

/* --- Лид-магнит --- */
.leadmagnet {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--color-accent-tint);
  color: var(--color-text);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--color-border);
}
.leadmagnet__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-accent-dark);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 18px rgba(45,48,50,.18);
}
.leadmagnet h3 { text-transform: none; font-size: 21px; margin-bottom: 6px; }
.leadmagnet p { color: var(--color-text-muted); font-size: 16px; margin-bottom: 0; }
.leadmagnet__form { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.leadmagnet__form input {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  min-width: 220px;
  flex: 1;
}

/* --- Липкая мобильная CTA-панель --- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 100;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08);
}
.mobile-cta__inner { display: flex; }
.mobile-cta a {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  font-size: 15.5px;
  font-weight: 600;
}
.mobile-cta a:first-child { background: var(--color-bg); color: var(--color-text); }
.mobile-cta a.max { background: #f0f1f1; color: #405f73; }
.mobile-cta a:last-child { background: var(--color-cta); color: #fff; }

/* --- Cookie-баннер --- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-text);
  color: #f2efe7;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { flex: 1; min-width: 220px; font-size: 14px; margin: 0; color: #d8d4c8; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.cookie-banner__decline { background: transparent; color: #d8d4c8; border: 1px solid #55503f !important; }
.cookie-banner__accept { background: var(--color-accent-dark); color: #fff; }

@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .features, .segments, .process, .cases, .risks, .trustbar__grid { grid-template-columns: 1fr 1fr; }
  .calc-options { grid-template-columns: repeat(3, 1fr); }
  .header--home .header__inner { position: relative; }
  .header--home .header-main__cta { margin-left: auto; }
  .header--home .menu-toggle {
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
  .header--home .menu-toggle > span:not(.visually-hidden) { width: 22px; height: 2px; background: #fff; }
  .header--home .nav.nav--open {
    position: absolute;
    display: flex;
    left: 24px;
    right: 24px;
    top: calc(100% - 2px);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 18px 34px rgba(18,33,27,.15);
  }
  .header--home .nav a { padding: 13px 14px; }
  .header--home .nav a::after { display: none; }
  .hero--home .hero__grid { grid-template-columns: 1fr; }
  .hero__content { max-width: 760px; }
  .hero__visual { max-width: 680px; width: 100%; }
  .hero--background { min-height: 610px; background-position: 62% center; }
  .hero--background .hero__content { max-width: 600px; }
  .hero--subpage { min-height: 480px; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .features, .segments, .process, .cases, .risks { grid-template-columns: 1fr !important; }
  .process__steps[style] { grid-template-columns: 1fr !important; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .calc-options { grid-template-columns: repeat(2, 1fr); }
  .header__contacts { display: none; }
  .form-block { padding: 24px; }
  .lead-modal { padding: 12px; }
  .lead-modal__dialog { padding: 28px 20px 22px; }
  .lead-modal h2 { font-size: 24px; }
  .leadmagnet { flex-direction: column; text-align: center; }
  .mobile-cta { display: block; }
  .mobile-cta { padding-bottom: env(safe-area-inset-bottom); }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-height: calc(100dvh - 84px - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 16px;
  }
  .cookie-banner p { min-width: 0; flex-basis: 100%; font-size: 13px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions button { flex: 1; padding: 10px 8px; }
  .header-topbar__inner > span, .header-topbar__contacts > a:not(.phone) { display: none; }
  .header-topbar__inner { justify-content: center; min-height: 34px; }
  .header-topbar__contacts { gap: 0; }
  .header--home .header__inner { min-height: 68px; }
  .header--home .logo { min-width: 0; }
  .header--home .logo img.logo__image { height: 42px; max-width: 154px; }
  .header--home .logo-mark { width: 34px; height: 34px; }
  .header--home .logo-text { font-size: 18px; }
  .header--home .logo-tagline { display: none; }
  .header--home .header-main__cta { display: none; }
  .header--home .nav.nav--open { left: 16px; right: 16px; }
  .hero--home { padding: 48px 0 42px; }
  .hero--home h1 { font-size: 34px; letter-spacing: -.4px; }
  .hero--home h1 .accent { display: inline; }
  .hero--home .lead { font-size: 16.5px; line-height: 1.55; }
  .hero__actions { align-items: stretch; flex-direction: column; gap: 16px; margin-top: 26px; }
  .hero__secondary-link { text-align: center; }
  .hero__meta { gap: 10px 18px; margin-top: 26px; }
  .hero__visual { padding: 0 0 48px; }
  .hero__visual::before { display: none; }
  .hero--home .hero__art { min-height: 350px; border-radius: 4px 4px 44px 4px; }
  .hero__visual-card { left: 16px; right: 16px; max-width: none; padding: 15px 16px; }
  .hero--background {
    min-height: 590px;
    padding: 54px 0 46px;
    background-position: 68% center;
  }
  .hero--background h1 { font-size: 30px; line-height: 1.1; }
  .hero--background .lead { font-size: 15.5px; }
  .hero--subpage { min-height: 450px; padding: 46px 0; }
  .hero--subpage h1 { font-size: 29px; }
  .info-table-wrap { overflow: visible; border: 0; }
  .info-table { display: block; min-width: 0; background: transparent; }
  .info-table tbody { display: grid; gap: 12px; }
  .info-table tr { display: block; overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-bg-alt); }
  .info-table th, .info-table td { display: block; width: auto; border: 0; }
  .info-table th { padding-bottom: 5px; }
  .info-table td { padding-top: 5px; color: var(--color-text-muted); }
  .regulations-grid { grid-template-columns: 1fr; }
  .content-grid, .content-grid--three { grid-template-columns: 1fr; }
  .definition-list > div { grid-template-columns: 1fr; gap: 5px; }
  .inline-cta { align-items: stretch; flex-direction: column; padding: 22px; }
  .inline-cta .btn { width: 100%; text-align: center; }
  .content-copy { font-size: 16px; }
  .content-copy h2 { font-size: 24px; }
}
@media (max-width: 360px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .trustbar__grid { grid-template-columns: 1fr; gap: 14px; }
  .mobile-cta a { font-size: 13px; padding-left: 5px; padding-right: 5px; }
  .hero--home h1, .hero h1 { font-size: 29px; }
}
