/* ============================================================
   БАДлаб — дизайн-система и стили главной страницы
   ============================================================ */

/* ---------- Переменные ---------- */
:root {
  /* Цвета */
  --teal:        #14746F;   /* основной бренд */
  --teal-dark:   #0F5A56;   /* hover */
  --teal-deep:   #10302B;   /* тёмный фон, подвал */
  --ink:         #1A2B27;   /* основной текст */
  --grey:        #5A6B67;   /* вторичный текст */
  --bg:          #F4F6F5;   /* светлый фон секций */
  --white:       #FFFFFF;
  --teal-soft:   #7AAEAA;   /* светлый бирюзовый, мягкий акцент */
  --line:        #E2E8E6;   /* рамки, разделители */
  --teal-tint:   #F4F9F8;   /* очень мягкая заливка плашек (облегчено: больше воздуха) */

  /* Типографика */
  --font-head: 'Montserrat', 'Arial', sans-serif;
  --font-body: 'Inter', 'Arial', sans-serif;

  /* Размеры */
  --container: 1180px;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 6px 28px rgba(26, 43, 39, 0.08);
  --shadow-lg: 0 14px 44px rgba(26, 43, 39, 0.13);

  /* Отступы-ритм */
  --section-y: 96px;
}

/* ---------- Сброс / база ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--teal) var(--bg);
  scrollbar-width: thin;
}
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--teal);
  border-radius: 6px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: var(--teal-dark); }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* ---------- Контейнер и секции ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-y) 0; }
.section--bg { background: var(--bg); }

.section__head { max-width: 720px; margin-bottom: 48px; }
.section__title {
  font-size: 38px;
  margin-bottom: 14px;
}
.section__lead {
  font-size: 18px;
  color: var(--grey);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

/* кнопки одинаковые на всех страницах (theme-soft больше не переопределяет) */

.btn--primary {
  background: var(--teal);
  color: var(--white);
}
.btn--primary:hover { background: var(--teal-dark); box-shadow: 0 8px 22px rgba(20,116,111,.30); }

.btn--teal {
  background: var(--teal);
  color: var(--white);
}
.btn--teal:hover { background: var(--teal-dark); }

.btn--ghost {
  background: transparent;
  color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn--ghost:hover { background: var(--teal); color: var(--white); }

.btn--lg { padding: 18px 36px; font-size: 17px; }
.btn--block { width: 100%; }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  max-width: none;
  padding-left: 40px;
  padding-right: 40px;
}
@media (max-width: 720px) {
  .header__inner { padding-left: 18px; padding-right: 18px; }
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--teal);
  letter-spacing: -0.02em;
}
.logo::before {
  content: "";
  width: 4px;
  height: 28px;
  background: var(--teal);
  border-radius: 2px;
}
.nav { display: flex; gap: 42px; margin-left: 60px; }
.nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--ink);
  transition: color .15s;
}
.nav a:hover { color: var(--teal); }

.header__right { display: flex; align-items: center; gap: 22px; }
.header__phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  white-space: nowrap;
}
.header__phone:hover { color: var(--teal); }

.burger {
  display: none;
  background: transparent;
  width: 44px; height: 44px;
  position: relative;
}
.burger span,
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px; height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: .2s;
}
.burger span { top: 21px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 78vh;
  display: flex;
  align-items: center;
}
.hero--full { min-height: calc(100vh - 74px); }
.hero__metrics {
  display: flex;
  gap: 36px;
  margin-top: 44px;
  flex-wrap: wrap;
}
.hero__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: var(--grey);
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.hero__metric b {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--teal);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* мессенджеры в шапке — монохромные иконки (полный логотип в бирюзовом) */
.header__messengers { display: flex; gap: 10px; align-items: center; }
.header__msg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  transition: color .15s, transform .12s;
}
.header__msg:hover { color: var(--teal-dark); transform: translateY(-1px); }
.header__msg svg { width: 38px; height: 38px; fill: currentColor; display: block; }
.hero__inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 {
  font-size: 56px;
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--teal); }
.hero__lead {
  font-size: 20px;
  color: var(--grey);
  margin-bottom: 34px;
  max-width: 820px;
}
.hero__crumbs {
  font-size: 14px;
  color: var(--grey);
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}
.hero__crumbs a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(20,116,111,0.25); text-underline-offset: 3px; }
.hero__crumbs a:hover { text-decoration-color: var(--teal); }
.hero__crumbs span { color: var(--ink); }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 38px; }
.hero__markers {
  display: flex;
  gap: 14px 28px;
  flex-wrap: wrap;
}
.hero__marker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.hero__marker::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal-tint);
  border: 2px solid var(--teal);
  flex-shrink: 0;
}

/* ============================================================
   КОМУ ПОМОГАЕМ
   ============================================================ */
.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.audience__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 32px;
  transition: border-color .15s, box-shadow .15s;
}
.audience__card:hover { border-color: var(--teal); box-shadow: var(--shadow); }
.audience__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  color: var(--teal);
  background: var(--teal-tint);
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.audience__card h3 { font-size: 21px; margin-bottom: 8px; }
.audience__card p { color: var(--grey); font-size: 16px; }

/* ============================================================
   УСЛУГИ
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.service:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service__icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--teal);
}
.service__icon svg { width: 40px; height: 40px; color: inherit; }
.service__icon--3d,
.service--cta .service__icon--3d {
  background: transparent;
  border: none;
}
.service__icon--3d svg { width: 58px; height: 58px; }
.service__icon--3d img {
  width: 80px;
  height: 80px;
  display: block;
}
.service h3 { font-size: 20px; margin-bottom: 10px; }
.service p { color: var(--grey); font-size: 15.5px; flex-grow: 1; }
.service__more {
  margin-top: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-color: var(--teal-soft);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .15s, text-decoration-color .15s, transform .15s;
}
.service__more::after {
  content: " →";
  display: inline-block;
  transition: transform .15s;
}
.service:hover .service__more {
  color: var(--teal-dark);
  text-decoration-color: var(--teal-dark);
}
.service:hover .service__more::after {
  transform: translateX(3px);
}

/* выделенная карточка-консультация */
.service--cta {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--teal-tint);
  border: 1.5px solid #C7DEDB;
  padding: 34px 40px;
}
.service--cta:hover { transform: none; box-shadow: var(--shadow); border-color: var(--teal); }
.service--cta .service__icon { background: var(--white); margin-bottom: 0; flex-shrink: 0; }
.service--cta .service__icon.service__icon--3d { background: transparent; border: none; }
.service--cta .service__icon svg { color: var(--teal); }
.service--cta__text { flex-grow: 1; }
.service--cta h3 { color: var(--ink); font-size: 23px; margin-bottom: 6px; }
.service--cta p { color: var(--grey); font-size: 16px; }
.service--cta .btn { background: var(--teal-deep); color: var(--white); }
.service--cta .btn:hover { background: #1A4843; box-shadow: 0 8px 22px rgba(16,48,43,.30); }

/* ============================================================
   ПОЧЕМУ БАДлаб
   ============================================================ */
.why__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 44px;
}
.stat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 32px;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.stat__label { font-size: 14.5px; color: var(--grey); }

.why__body {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 40px;
  align-items: start;
}
.experts {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.expert {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: center;
  box-shadow: var(--shadow);
}
.expert__photo {
  width: 140px;
  height: 175px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--teal-tint);
  display: block;
  flex-shrink: 0;
}
.expert__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.2;
}
.expert__role {
  font-size: 13.5px;
  color: var(--teal);
  font-weight: 600;
  margin-top: 4px;
  line-height: 1.35;
}
.expert__extra {
  font-size: 13px;
  color: var(--grey);
  margin-top: 6px;
  line-height: 1.4;
}
.expert__skills {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.expert__skills li {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
  padding-left: 14px;
  position: relative;
}
.expert__skills li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.experts__note {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink);
  font-style: italic;
  line-height: 1.45;
  padding-left: 4px;
  border-left: 3px solid var(--teal);
  padding-left: 12px;
}

.why__advantages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}
.advantage__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 7px;
  display: flex;
  gap: 10px;
}
.advantage__title::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  margin-top: 9px;
  flex-shrink: 0;
}
.advantage p { color: var(--grey); font-size: 15.5px; padding-left: 18px; }

/* ============================================================
   КАК МЫ РАБОТАЕМ
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -8px; left: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 64px;
  color: rgba(122, 174, 170, 0.30);
  line-height: 1;
  z-index: 0;
}
.step__inner {
  position: relative;
  z-index: 1;
  border-top: 3px solid var(--teal);
  padding-top: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 7px; }
.step p { font-size: 15px; color: var(--grey); }
.step__term {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .02em;
}
.step__badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ============================================================
   КЕЙСЫ
   ============================================================ */
.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.case__media {
  background: var(--teal-tint);
  border-bottom: 2px dashed var(--teal);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  gap: 8px;
}
.case__media svg { width: 22px; height: 22px; stroke: var(--teal); }
.case__body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.case__row { font-size: 15px; }
.case__row b {
  font-family: var(--font-head);
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 2px;
}
.case__row span { color: var(--grey); }
.case__placeholder-note {
  font-size: 13px;
  color: var(--grey);
  font-style: italic;
}

/* ============================================================
   ОТЗЫВЫ
   ============================================================ */
.reviews__source-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--teal-soft);
  padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.reviews__source-link:hover {
  color: var(--teal-dark);
  border-bottom-color: var(--teal-dark);
}
.reviews__grid {
  column-count: 2;
  column-gap: 24px;
}
.reviews__grid > .review {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 24px;
  width: 100%;
}
.review {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(16, 48, 43, .04);
}
.review__media {
  display: block;
  background: var(--teal-tint);
  border-bottom: 1px solid var(--line);
  padding: 16px;
  text-align: center;
  transition: background .15s;
}
.review__media:hover { background: #DFEAE8; }
.review__media img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}
.review__body {
  padding: 22px 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.review__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.review__author {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--teal-deep);
}
.review__meta {
  font-size: 13px;
  color: var(--grey);
}
.review__text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text, #1A2B27);
  margin: 0;
}
.review__tag {
  font-family: var(--font-head);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 2px;
}
.reviews__footnote {
  margin-top: 22px;
  text-align: center;
  font-size: 13px;
  color: var(--grey);
}
@media (max-width: 860px) {
  .reviews__grid { column-count: 1; }
}

/* ============================================================
   СТРАНИЦА 404
   ============================================================ */
.notfound__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0 60px;
}
.notfound__title {
  font-family: var(--font-head);
  font-size: 36px;
  color: var(--teal-deep);
  margin: 0 0 18px;
}
.notfound__lead {
  font-size: 17px;
  color: var(--grey);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 36px;
}
.notfound__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .notfound__title { font-size: 28px; }
}

/* ============================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (политика ПД и т.п.)
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text, #1A2B27);
}
.legal__head {
  margin-bottom: 36px;
  text-align: center;
}
.legal__head h1 {
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.25;
  color: var(--teal-deep);
  margin: 12px 0 14px;
}
.legal__meta {
  font-size: 14px;
  color: var(--grey);
  margin: 0;
}
.legal h2 {
  font-family: var(--font-head);
  font-size: 21px;
  color: var(--teal-deep);
  margin: 36px 0 14px;
  scroll-margin-top: 90px;
}
.legal p { margin: 0 0 14px; }
.legal ul {
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal ul li { margin-bottom: 6px; }
.legal a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover { color: var(--teal-dark); }
.legal__back {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* стиль чекбокса согласия в форме */
.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--grey);
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}
.form__consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}
.form__consent a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.form__consent a:hover { color: var(--teal-dark); }

/* ============================================================
   КАЛЬКУЛЯТОР
   ============================================================ */
.calc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.calc__field { margin-bottom: 28px; }
.calc__field-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  color: var(--ink);
}
.calc__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: var(--teal-tint);
  color: var(--teal);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.calc__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.calc__tiles--two { grid-template-columns: repeat(2, 1fr); }
.calc__tiles--three { grid-template-columns: repeat(3, 1fr); }

.calc__hint {
  font-weight: 400;
  font-size: 13px;
  color: var(--grey);
  letter-spacing: 0;
}
.calc__or {
  position: relative;
  text-align: center;
  margin: 16px 0;
}
.calc__or::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--line);
}
.calc__or span {
  position: relative;
  background: var(--white);
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
.calc__tile-sub {
  font-size: 12px;
  color: var(--grey);
  font-weight: 400;
  line-height: 1.35;
  margin-top: -2px;
}
.calc__tile input:checked + .calc__tile-inner .calc__tile-sub { color: var(--teal); }

/* ----- БАД под ключ — вариант C (акцентная полоса + цена справа) ----- */
.calc__tile--turnkey { display: block; }
.calc__tile--turnkey .calc__tile-inner {
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 18px;
  padding: 22px 24px 20px;
  min-height: 0;
  height: auto;
  overflow: hidden;
  border-color: #C7DEDB;
  background: var(--white);
}
.calc__tile--turnkey .calc__tile-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--teal);
}
.calc__tile--turnkey .calc__tile-inner svg { width: 52px; height: 52px; flex-shrink: 0; }
.calc__tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.calc__tile--turnkey .calc__tile-text { font-size: 16px; font-weight: 700; }
.calc__tile--turnkey .calc__tile-sub { font-size: 13px; line-height: 1.4; margin-top: 0; }
.calc__tile-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  color: var(--grey);
  text-align: right;
}
.calc__tile-price strong {
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color .18s;
}
.calc__tile-price small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--grey);
  font-weight: 400;
  line-height: 1.3;
  margin-top: 2px;
}
.calc__tile--turnkey:hover .calc__tile-inner { border-color: var(--teal); transform: translateY(-2px); box-shadow: 0 6px 14px rgba(20,116,111,.10); }
.calc__tile--turnkey input:checked + .calc__tile-inner { background: var(--teal-tint); box-shadow: inset 0 0 0 1px var(--teal); border-color: var(--teal); }
.calc__tile--turnkey input:checked + .calc__tile-inner .calc__tile-price strong { color: var(--teal); }

.calc__tile.is-dimmed { opacity: 0.45; transition: opacity .2s; }
.calc__tile.is-dimmed:hover { opacity: 1; }

.calc__tile {
  position: relative;
  cursor: pointer;
}
.calc__tile input { position: absolute; opacity: 0; pointer-events: none; }
.calc__tile-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 18px 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color .18s, background .18s, transform .12s, box-shadow .18s;
  min-height: 138px;
  height: 100%;
}
.calc__tile-inner svg {
  width: 30px; height: 30px;
  stroke: var(--grey);
  transition: stroke .18s;
}
.calc__tile-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.calc__tile:hover .calc__tile-inner {
  border-color: var(--teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(20, 116, 111, 0.10);
}
.calc__tile input:checked + .calc__tile-inner {
  border-color: var(--teal);
  background: var(--teal-tint);
  box-shadow: inset 0 0 0 1px var(--teal);
}
.calc__tile input:checked + .calc__tile-inner svg { stroke: var(--teal); }
.calc__tile input:checked + .calc__tile-inner .calc__tile-text { color: var(--teal); font-weight: 700; }
.calc__tile input:focus-visible + .calc__tile-inner { outline: 2px solid var(--teal); outline-offset: 2px; }

.calc__result {
  background: var(--teal-tint);
  border: 1px solid #C7DEDB;
  border-radius: var(--radius);
  padding: 28px 28px 26px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.calc__result-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid #C7DEDB;
  padding-bottom: 12px;
  margin-bottom: 14px;
  gap: 10px;
}
.calc__result-eyebrow {
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.calc__result-term {
  font-size: 13px;
  color: var(--grey);
  font-weight: 600;
  text-align: right;
}
.calc__breakdown {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 90px;
}
.calc__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  animation: calcLineIn .25s ease;
}
.calc__line-name { color: var(--grey); }
.calc__line-price { font-weight: 600; color: var(--ink); white-space: nowrap; }
@keyframes calcLineIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.calc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-top: 1px solid #C7DEDB;
  padding-top: 14px;
  margin-bottom: 18px;
  gap: 12px;
}
.calc__total-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
}
.calc__total-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: var(--teal);
  line-height: 1.1;
  white-space: nowrap;
}
.calc__line-price { font-size: 13.5px; }
.calc__result .btn--primary { background: var(--teal-deep); color: var(--white); }
.calc__result .btn--primary:hover { background: #1A4843; box-shadow: 0 8px 22px rgba(16,48,43,.30); }
.calc__disclaimer {
  font-size: 12.5px;
  color: var(--grey);
  margin-top: 14px;
  line-height: 1.45;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 820px; }
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  width: 100%;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.faq__icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  position: relative;
}
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  background: var(--teal);
  border-radius: 2px;
  transition: .2s;
}
.faq__icon::before { top: 12px; left: 4px; width: 18px; height: 2.5px; }
.faq__icon::after  { top: 5px; left: 11.75px; width: 2.5px; height: 18px; }
.faq__item.is-open .faq__icon::after { transform: rotate(90deg); opacity: 0; }
.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq__a p {
  padding-bottom: 24px;
  color: var(--grey);
  font-size: 16px;
}

/* ============================================================
   ЗАЯВКА
   ============================================================ */
.lead {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 50px;
  align-items: start;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form input,
.form textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 15px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color .15s;
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--teal); }
.form textarea { resize: vertical; min-height: 96px; }
.form__channel { border: 0; padding: 0; margin: 0; }
.form__channel legend {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 10px;
  padding: 0;
}
.form__channel-options { display: flex; gap: 10px; flex-wrap: wrap; }
.form__channel-opt { position: relative; cursor: pointer; flex: 1; min-width: 90px; }
.form__channel-opt input { position: absolute; opacity: 0; pointer-events: none; }
.form__channel-opt span {
  display: block;
  text-align: center;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  transition: .15s;
}
.form__channel-opt:hover span { border-color: var(--teal); }
.form__channel-opt input:checked + span {
  border-color: var(--teal);
  background: var(--teal-tint);
  color: var(--teal);
  font-weight: 700;
}
.form__channel-opt input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.form__note { font-size: 14px; color: var(--grey); margin-top: 4px; }

.lead__contacts {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
}
.lead__contacts h3 { font-size: 20px; margin-bottom: 20px; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row svg { width: 26px; height: 26px; stroke: var(--teal); fill: none; flex-shrink: 0; }
.contact-row svg.icon--filled { fill: var(--teal); stroke: none; }
.contact-row b { font-family: var(--font-head); }
.lead__magnet {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
}
.lead__magnet svg { width: 20px; height: 20px; stroke: var(--teal); }
.lead__tz {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead__tz-primary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--teal);
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.15s;
}
.lead__tz-primary:hover { background: var(--teal-deep); }
.lead__tz-primary svg { width: 24px; height: 24px; stroke: #fff; flex-shrink: 0; }
.lead__tz-primary span { display: flex; flex-direction: column; line-height: 1.25; }
.lead__tz-primary b {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}
.lead__tz-primary small {
  font-size: 12.5px;
  opacity: 0.85;
  margin-top: 2px;
}
.lead__tz-secondary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--teal-soft);
  border-radius: 10px;
  color: var(--teal);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s;
}
.lead__tz-secondary:hover { background: var(--teal-tint); }
.lead__tz-secondary svg { width: 18px; height: 18px; stroke: var(--teal); flex-shrink: 0; }

/* ============================================================
   ПОДВАЛ
   ============================================================ */
.footer {
  background: var(--teal-deep);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 30px;
  font-size: 15px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.9fr 0.9fr 0.8fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer .logo { color: var(--white); margin-bottom: 14px; line-height: 1; }
.footer .logo::before { background: var(--white); height: 22px; }
.footer__top > div:first-child { padding-top: 0; }
.footer__col h4 { line-height: 1; padding-top: 2px; }
.footer__slogan { max-width: 280px; margin-bottom: 18px; }
.footer__contact-quick { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-quick-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 22px;
  color: var(--white) !important;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.footer__col h4 {
  color: var(--white);
  font-size: 15px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__col a { display: block; padding: 5px 0; transition: color .15s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 26px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
}
/* ============================================================
   ЛЕНДИНГИ УСЛУГ — ЦЕНА (таблица)
   ============================================================ */
.pricing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 28px;
  max-width: 760px;
  margin: 0 auto;
}
.pricing__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.pricing__row:last-child { border-bottom: none; }
.pricing__name {
  font-size: 15.5px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pricing__name small {
  font-size: 12.5px;
  color: var(--grey);
  font-weight: 400;
  line-height: 1.35;
}
.pricing__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.pricing__row--total {
  background: var(--teal-tint);
  margin: 8px -28px 0;
  padding: 18px 28px;
  border-radius: 0 0 var(--radius) var(--radius);
  border-bottom: none;
}
.pricing__row--total .pricing__name { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--ink); }
.pricing__row--total .pricing__value { font-size: 22px; color: var(--teal); }
/* две totals подряд: первая без скруглений снизу + разделитель */
.pricing__row--total + .pricing__row--total {
  margin-top: 0;
  border-top: 1px solid rgba(20, 116, 111, 0.2);
}
.pricing__row--total:has(+ .pricing__row--total) {
  border-radius: 0;
  padding-bottom: 14px;
}
.pricing__row--full {
  background: var(--teal);
}
.pricing__row--full .pricing__name { color: #fff; }
.pricing__row--full .pricing__name small { color: rgba(255,255,255,0.78); display: block; font-weight: 400; font-family: var(--font-body); font-size: 12.5px; margin-top: 4px; }
.pricing__row--full .pricing__value { color: #fff; font-size: 24px; }
.pricing__note {
  max-width: 760px;
  margin: 16px auto 0;
  font-size: 13.5px;
  color: var(--grey);
  text-align: center;
  line-height: 1.5;
}
.pricing__cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ============================================================
   ЛЕНДИНГИ УСЛУГ — ЭТАПЫ (вертикальный timeline)
   ============================================================ */
.process-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 820px;
}
.process-list__summary {
  max-width: 820px;
  margin: 24px auto 0;
  padding: 16px 20px;
  background: var(--teal-tint);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  font-size: 16px;
  color: var(--ink);
}
.process-list__summary b {
  color: var(--teal);
  font-weight: 700;
}

/* ===== Калькулятор лабораторных (registratsiya-bad-sgr) ===== */
.lab-calc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  max-width: 980px;
  margin: 0 auto;
}
.lab-calc__controls {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lab-calc__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lab-calc__label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.lab-calc__field input[type="number"] {
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 120px;
  outline: none;
  transition: border-color 0.15s;
}
.lab-calc__field input[type="number"]:focus {
  border-color: var(--teal);
}
/* Стрелки number-инпута всегда видны */
.lab-calc__field input[type="number"]::-webkit-inner-spin-button,
.lab-calc__field input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: inner-spin-button !important;
  opacity: 1;
  margin-left: 6px;
  height: 30px;
  cursor: pointer;
}
.lab-calc__options {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lab-calc__options legend {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  padding: 0;
  margin-bottom: 4px;
}
.lab-calc__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.lab-calc__option:hover {
  border-color: var(--teal-soft);
  background: var(--teal-tint);
}
.lab-calc__option input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.lab-calc__option-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lab-calc__option-name {
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}
.lab-calc__option-sub {
  font-size: 13px;
  color: var(--grey);
}
.lab-calc__result {
  background: var(--teal-tint);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lab-calc__breakdown {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}
.lab-calc__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.08);
}
.lab-calc__line:last-child {
  border-bottom: none;
}
.lab-calc__line--empty {
  color: var(--grey);
  font-style: italic;
}
.lab-calc__line-value {
  font-weight: 600;
  white-space: nowrap;
  color: var(--teal-deep);
}
.lab-calc__totals {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lab-calc__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}
.lab-calc__total-value {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.lab-calc__total--full {
  font-size: 17px;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.lab-calc__total--full .lab-calc__total-label {
  font-weight: 700;
}
.lab-calc__total--full .lab-calc__total-value {
  color: var(--teal);
  font-size: 19px;
}
.lab-calc__note {
  font-size: 12.5px;
  color: var(--grey);
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 760px) {
  .lab-calc {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 22px;
  }
}
.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.process-item:first-child { padding-top: 0; }
.process-item:last-child { border-bottom: none; padding-bottom: 0; }
.process-item__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  line-height: 1;
  color: var(--teal);
}
.process-item__body h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.process-item__badge {
  display: inline-block;
  padding: 3px 10px;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 4px;
}
.process-item__body p {
  color: var(--grey);
  font-size: 15.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.process-item__term {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: .02em;
}

/* ============================================================
   ЛЕНДИНГИ УСЛУГ — РЕЗУЛЬТАТ (чеклист)
   ============================================================ */
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}
.result-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.result-item__check {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.result-item__check svg { width: 22px; height: 22px; }
.result-item h3 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 6px;
}
.result-item p { color: var(--grey); font-size: 15.5px; line-height: 1.55; }

/* ============================================================
   КОНТАКТНЫЙ ВИДЖЕТ — FAB справа внизу
   ============================================================ */
.contact-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.contact-fab__btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--teal);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(20, 116, 111, 0.35);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
/* Расходящееся кольцо-пульс — привлекает внимание к виджету */
.contact-fab__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(20, 116, 111, 0.55);
  animation: fabPulse 2.6s ease-out infinite;
  pointer-events: none;
}
.contact-fab.is-open .contact-fab__btn::before { animation: none; }
@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(20, 116, 111, 0.55); }
  70%  { box-shadow: 0 0 0 18px rgba(20, 116, 111, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 116, 111, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-fab__btn::before { animation: none; }
}
.contact-fab__btn:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 116, 111, 0.45);
}
.contact-fab__btn svg {
  width: 26px;
  height: 26px;
  position: absolute;
  transition: opacity 0.2s, transform 0.25s;
}
.contact-fab__icon-open { opacity: 0; transform: rotate(-90deg); }
.contact-fab.is-open .contact-fab__icon-closed { opacity: 0; transform: rotate(90deg); }
.contact-fab.is-open .contact-fab__icon-open { opacity: 1; transform: rotate(0); }
.contact-fab__option {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(16, 48, 43, 0.18);
  opacity: 0;
  transform: translateY(20px) scale(0.7);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s, box-shadow 0.18s;
}
.contact-fab__option svg { width: 66%; height: 66%; display: block; }
.contact-fab__option:hover {
  transform: translateY(-2px) scale(1);
  box-shadow: 0 10px 22px rgba(16, 48, 43, 0.28);
}
.contact-fab__option--tg { background: linear-gradient(180deg, #2AABEE 0%, #229ED9 100%); }
.contact-fab__option--max { background: linear-gradient(135deg, #3D5EFF 0%, #8B3FFF 50%, #D8358E 100%); }
.contact-fab.is-open .contact-fab__option {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.contact-fab.is-open .contact-fab__option:nth-child(1) { transition-delay: 0.05s; }
.contact-fab.is-open .contact-fab__option:nth-child(2) { transition-delay: 0.10s; }
@media (max-width: 560px) {
  .contact-fab { right: 16px; bottom: 16px; gap: 10px; }
  .contact-fab__btn { width: 52px; height: 52px; }
  .contact-fab__option { width: 46px; height: 46px; }
}

/* ============================================================
   EXIT-INTENT MODAL (только ПК)
   ============================================================ */
.exit-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(16, 48, 43, 0.55);
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.exit-modal.is-open { display: flex; opacity: 1; }
.exit-modal__card {
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 100%;
  padding: 36px 36px 30px;
  position: relative;
  transform: translateY(8px);
  transition: transform 0.22s ease;
}
.exit-modal.is-open .exit-modal__card { transform: translateY(0); }
.exit-modal__title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.25;
}
.exit-modal__text {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  margin: 0 0 24px;
  opacity: 0.85;
}
.exit-modal__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.exit-modal__form input[type="text"],
.exit-modal__form input[type="tel"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
}
.exit-modal__form input[type="text"]:focus,
.exit-modal__form input[type="tel"]:focus {
  outline: none;
  border-color: var(--teal);
}
.exit-modal__submit { width: 100%; margin-top: 4px; }
.exit-modal__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  opacity: 0.75;
  cursor: pointer;
  margin-top: 6px;
}
.exit-modal__consent input { margin-top: 3px; flex-shrink: 0; accent-color: var(--teal); }
.exit-modal__consent a { color: var(--teal); text-decoration: underline; text-decoration-color: rgba(20,116,111,0.3); }
.exit-modal__consent a:hover { text-decoration-color: var(--teal); }
.exit-modal__form[hidden],
.exit-modal__success[hidden] { display: none; }
.exit-modal__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 12px 0 8px;
}
.exit-modal__success svg {
  width: 56px;
  height: 56px;
  color: var(--teal);
  background: var(--teal-tint);
  border-radius: 50%;
  padding: 12px;
}
.exit-modal__success p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
}
.exit-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  opacity: 0.45;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.15s, background 0.15s;
}
.exit-modal__close:hover { opacity: 1; background: var(--teal-tint); }
.exit-modal__close svg { width: 16px; height: 16px; }

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 980px) {
  :root { --section-y: 70px; }
  .section__title { font-size: 30px; }
  .hero { padding: 70px 0 80px; }
  .hero h1 { font-size: 40px; }
  .hero__lead { font-size: 18px; }
  .hero__metrics { gap: 20px; margin-top: 32px; }
  .hero__metric b { font-size: 20px; }
  .header__messengers { display: none; }
  .nav, .header__phone { display: none; }
  .header__right .btn--primary { display: none; }
  .burger { display: block; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__stats { grid-template-columns: repeat(2, 1fr); }
  .why__body { grid-template-columns: 1fr; }
  .experts { max-width: 480px; }
  .why__advantages { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step::before { font-size: 52px; }
  .cases__grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
  .lead { grid-template-columns: 1fr; gap: 32px; }
  .footer__top { grid-template-columns: 1fr; gap: 30px; }

  /* мобильное меню */
  .nav.is-open {
    display: flex;
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero h1 { font-size: 32px; }
  .section__title { font-size: 26px; }
  .services__grid { grid-template-columns: 1fr; }
  .why__stats { grid-template-columns: 1fr; }
  .service--cta { flex-direction: column; align-items: flex-start; padding: 28px; }
  .audience__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .calc { padding: 22px; }
  .result-grid { grid-template-columns: 1fr; }
  .process-item { grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; }
  .process-item__num { font-size: 30px; }
  .process-item__body h3 { font-size: 17px; }
  .pricing { padding: 8px 18px; }
  .pricing__row--total { margin: 8px -18px 0; padding: 16px 18px; }
  .pricing__value { font-size: 14.5px; }
  .pricing__row--total .pricing__value { font-size: 19px; }
  .calc__tiles--three { grid-template-columns: 1fr; }
  .calc__tile--turnkey .calc__tile-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 12px;
    padding: 18px 18px 16px;
  }
  .calc__tile--turnkey .calc__tile-inner svg { width: 44px; height: 44px; }
  .calc__tile-price { align-items: flex-start; text-align: left; }
}

/* ============================================================
   COOKIE-БАННЕР — плашка согласия слева внизу (не конфликтует с FAB справа)
   ============================================================ */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 950;
  max-width: 430px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--teal-deep);
  color: rgba(255, 255, 255, 0.92);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(16, 48, 43, 0.35);
  font-size: 14px;
  line-height: 1.5;
  animation: cookieUp 0.4s ease-out;
}
/* display:flex перебивает дефолтное [hidden]{display:none} — нужно точечно */
.cookie-banner[hidden] { display: none; }
@keyframes cookieUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
}
.cookie-banner__text { margin: 0; }
.cookie-banner__text a {
  color: var(--teal-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: #fff; }
.cookie-banner__btn {
  flex-shrink: 0;
  background: var(--teal);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 22px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.cookie-banner__btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
@media (max-width: 600px) {
  .cookie-banner {
    left: 12px;
    right: 92px;          /* оставляем место под FAB справа */
    bottom: 16px;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px;
  }
  .cookie-banner__btn { width: 100%; padding: 12px; }
}

/* ============================================================
   БЛОГ — листинг статей и страница статьи
   ============================================================ */
.blog-hero {
  background: var(--white);
  padding: 92px 0 24px;
  text-align: center;
}
.blog-hero__inner { max-width: 720px; margin: 0 auto; }
.blog-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; margin: 0 0 14px; }
.blog-hero__lead { font-size: 18px; color: var(--grey); max-width: 620px; margin: 0 auto; }

/* хлебные крошки */
.crumbs { font-size: 14px; color: var(--grey); margin: 0 0 18px; }
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { color: var(--grey); margin: 0 6px; }
.blog-hero .crumbs { display: flex; justify-content: center; gap: 0; }

/* листинг карточек — плитки по центру, вся карточка кликабельна */
.blog-list { padding: 56px 0 72px; }
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 26px;
  max-width: 1080px;
  margin: 0 auto;
}
.blog-card {
  flex: 1 1 320px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid rgba(20, 116, 111, 0.14);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(20, 116, 111, 0.14);
  border-color: var(--teal-soft);
}
.blog-card__cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--teal-tint);
}
.blog-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card__cover img { transform: scale(1.04); }
.blog-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex-grow: 1; }
.blog-card__meta { font-size: 13px; color: var(--grey); margin-bottom: 12px; display: flex; gap: 14px; justify-content: center; }
.blog-card__title { font-size: 20px; line-height: 1.28; margin: 0 0 10px; color: var(--ink); transition: color 0.2s; }
.blog-card:hover .blog-card__title { color: var(--teal); }
.blog-card__excerpt { font-size: 15px; color: var(--grey); margin: 0; }
.blog-card__date { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--grey); }

/* страница статьи */
.article { padding: 84px 0 72px; }
.article__inner { max-width: 760px; margin: 0 auto; }
.article__inner > h1 { text-align: center; }
.article__meta { font-size: 14px; color: var(--grey); margin: 0 0 28px; display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.article__body { font-size: 17px; line-height: 1.72; color: var(--ink); }
.article__body h2 { font-size: 26px; line-height: 1.2; margin: 40px 0 14px; }
.article__body h3 { font-size: 20px; line-height: 1.25; margin: 28px 0 10px; }
.article__body p { margin: 0 0 18px; }
.article__body ul, .article__body ol { margin: 0 0 18px; padding-left: 24px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
.article__body strong { font-weight: 600; }
.article__body blockquote {
  margin: 24px 0;
  padding: 16px 22px;
  background: var(--teal-tint);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  color: var(--teal-deep);
}
.article__body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
.article__body th, .article__body td {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid rgba(20, 116, 111, 0.16);
  vertical-align: top;
  line-height: 1.5;
}
.article__body thead th {
  background: var(--teal-tint);
  font-weight: 600;
  color: var(--teal-deep);
}
.article__body figure { margin: 24px 0; }
.article__body figure img { width: 100%; height: auto; border-radius: 12px; display: block; }
.article__body figcaption { font-size: 13px; color: var(--grey); margin-top: 8px; text-align: center; }
/* CTA-блок в конце статьи */
.article__cta {
  margin-top: 44px;
  padding: 32px;
  background: var(--teal-deep);
  color: #fff;
  border-radius: 18px;
}
.article__cta h3 { font-size: 22px; margin: 0 0 10px; color: #fff; }
.article__cta p { margin: 0 0 20px; color: rgba(255, 255, 255, 0.85); }
.article__cta .btn { background: var(--teal); }
.article__cta .btn:hover { background: var(--teal-dark); }
/* перелинковка на статьи */
.article__related { margin-top: 48px; }
.article__related h3 { font-size: 18px; margin: 0 0 14px; }
.article__related ul { list-style: none; padding: 0; margin: 0; }
.article__related li { margin-bottom: 8px; }
.article__related a { color: var(--teal); text-decoration: none; }
.article__related a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .blog-grid { gap: 20px; }
  .blog-card { flex: 1 1 100%; max-width: 100%; }
  .article__body { font-size: 16px; }
  .article__cta { padding: 24px; }
}

/* ===== Форма ТЗ (/tz-bad/) ===== */
.tzform {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
.tzform__contact,
.tzform__section,
.tzform__submit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.tzform__contact {
  background: var(--teal-tint);
  border-color: var(--teal-soft);
  position: relative;
}
.tzform__contact-title {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 20px;
  color: var(--teal-deep);
}
.tzform__contact-lead {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--grey);
}
.tzform__section {
  position: relative;
  padding-top: 32px;
}
.tzform__num {
  position: absolute;
  top: 22px;
  right: 28px;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -0.5px;
  opacity: 0.85;
}
.tzform__title {
  margin: 0 0 20px;
  font-family: var(--font-head);
  font-size: 22px;
  color: var(--ink);
}
.tzform__row {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}
.tzform__row--2 { grid-template-columns: 1fr 1fr; }
.tzform__row:last-child { margin-bottom: 0; }
.tzform__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.tzform__field:last-child { margin-bottom: 0; }
.tzform__row .tzform__field { margin-bottom: 0; }
.tzform__label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}
.tzform__label small {
  font-weight: 400;
  color: var(--grey);
  font-size: 13px;
}
.tzform__req {
  color: var(--teal);
  font-weight: 700;
}
.tzform__hint {
  font-size: 13px;
  color: var(--grey);
  margin: 0;
  line-height: 1.4;
}
.tzform__hint--block {
  margin: 4px 0 12px;
  font-size: 14px;
}
.tzform__field input[type="text"],
.tzform__field input[type="tel"],
.tzform__field textarea {
  font: inherit;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  resize: vertical;
  font-family: inherit;
}
.tzform__contact .tzform__field input {
  background: #fff;
}
.tzform__field input:focus,
.tzform__field textarea:focus {
  border-color: var(--teal);
}
.tzform__checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tzform__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 14.5px;
  color: var(--ink);
}
.tzform__check:hover {
  border-color: var(--teal-soft);
  background: var(--teal-tint);
}
.tzform__check input {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.tzform__check small {
  color: var(--grey);
  font-size: 13px;
}
.tzform__check:has(input:checked) {
  border-color: var(--teal);
  background: var(--teal-tint);
}
.tzform__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
  cursor: pointer;
}
.tzform__consent input {
  margin-top: 3px;
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.tzform__consent a { color: var(--teal); }
.tzform__submit {
  text-align: center;
}
.tzform__submit-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--grey);
}
.tzform__submit-note a {
  color: var(--teal);
}
.tzform__success {
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  border-radius: 14px;
  padding: 40px 28px;
  text-align: center;
}
.tzform__success svg {
  width: 56px;
  height: 56px;
  color: var(--teal);
  margin-bottom: 12px;
}
.tzform__success h3 {
  font-family: var(--font-head);
  font-size: 24px;
  color: var(--teal-deep);
  margin: 0 0 10px;
}
.tzform__success p {
  font-size: 15px;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.5;
}
.tzform__success a { color: var(--teal); }
.tzform__success .btn { margin-top: 8px; }

@media (max-width: 720px) {
  .tzform__contact,
  .tzform__section,
  .tzform__submit { padding: 22px 18px; }
  .tzform__row--2 { grid-template-columns: 1fr; }
  .tzform__num {
    top: 18px;
    right: 22px;
    font-size: 30px;
  }
  .tzform__title { font-size: 19px; }
}

/* SUCCESS-СОСТОЯНИЕ ФОРМ */
.form__success {
  padding: 28px 24px;
  background: var(--teal-tint);
  border: 1px solid var(--teal-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  color: var(--ink);
}
.form__success svg { color: var(--teal); }
.form__success p { margin: 0; font-size: 17px; line-height: 1.4; }
