@charset "UTF-8";
/* ==========================================================================
   blocks.css — переиспользуемые блоки и компоненты
   ========================================================================== */

/* --------------------------------------------------------------------------
   BLOCK: btn — кнопки
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-base);
  font-size: var(--fs-xs);
  font-weight: 500;
  line-height: 1.55;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--tr), color var(--tr), border-color var(--tr), box-shadow var(--tr);
}

.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-hover); color: var(--c-white); }

.btn--accent { background: var(--c-accent); color: var(--c-white); font-weight: 600; }
.btn--accent:hover { background: var(--c-accent-hover); color: var(--c-white); }

.btn--outline { background: transparent; color: var(--c-white); border-color: var(--c-white); font-weight: 600; }
.btn--outline:hover { background: var(--c-white); color: var(--c-primary); }

.btn--ghost { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-primary); color: var(--c-white); }

.btn--lg { min-height: 50px; padding: 12px 28px; font-size: 18px; font-weight: 600; }
.btn--md { min-height: 50px; padding: 12px 26px; font-size: var(--fs-xs); font-weight: 600; }
.btn--sm { min-height: 34px; padding: 6px 16px; font-size: var(--fs-xxs); }
.btn--block { width: 100%; }
.btn--upper { text-transform: uppercase; letter-spacing: .02em; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-accent);
}
.link-arrow::after {
  content: '';
  width: 7px; height: 7px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--tr);
}
.link-arrow:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* --------------------------------------------------------------------------
   BLOCK: hero — первый экран главной
   -------------------------------------------------------------------------- */
/* Донорская секция первого экрана: padding 120px 0 45px (120 — под фикс. шапку,
   у нас шапка в потоке, поэтому только нижние 45 до блока преимуществ). */
.hero { padding: 0 0 45px; }
/* карточка первого экрана занимает всю ширину контейнера (1200px), без внутренних отступов */
.hero > .container { padding: 0; }
/* Геометрия снята с донора (1440px): карточка 1200x540, текст от левого края +47,
   заголовок сверху +108, подзаголовок +288, кнопка +379 (200x50). */
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 540px;
  padding: 108px 47px 45px;
  border-radius: var(--radius);
  background: var(--c-white) center / cover no-repeat;
  overflow: hidden;
}
.hero__title {
  width: 474px;
  max-width: 100%;
  margin-bottom: 36px;
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: 1;
  color: var(--c-heading);
}
.hero__list {
  display: flex;
  flex-direction: column;
  width: 335px;
  max-width: 100%;
  margin-bottom: 43px;
}
.hero__list li {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: 24px;
  color: var(--c-text-soft);
}
.hero__cta { flex: 0 0 auto; width: 200px; height: 50px; padding: 0; font-size: 18px; font-weight: 600; }

/* --------------------------------------------------------------------------
   BLOCK: features — 4 колонки преимуществ (иконка + заголовок + текст)
   -------------------------------------------------------------------------- */
.features { padding: 0 0 30px; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
/* Карточка донора: 260x269, фон #0038a1, радиус 10, внутренние отступы 30/30/40,
   иконка 50x50 серая (#bebebe), заголовок и текст — белые. */
.feature {
  display: flex;
  flex-direction: column;
  padding: 30px 30px 40px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: var(--c-white);
}
.feature__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}
.feature__icon img,
.feature__icon svg { width: 50px; height: 50px; }
.feature__title {
  margin-bottom: 15px;
  font-size: var(--fs-h4);
  font-weight: 500;
  line-height: 26px;
  color: var(--c-white);
}
.feature__descr {
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.3;
  color: var(--c-white);
}

/* --------------------------------------------------------------------------
   BLOCK: cat-cards — крупные карточки направлений (2 в ряд)
   -------------------------------------------------------------------------- */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px var(--grid-gap);
}
.cat-card { display: flex; flex-direction: column; }
.cat-card__media {
  display: block;
  margin-bottom: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 560 / 280;
  background: var(--c-bg-alt);
}
.cat-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.cat-card__media:hover img { transform: scale(1.03); }
.cat-card__title {
  margin-bottom: 10px;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-primary);
}
.cat-card__title a:hover { color: var(--c-accent); }
.cat-card__descr {
  margin-bottom: 18px;
  font-size: var(--fs-xs);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text-muted);
}
.cat-card__btn { margin-top: auto; align-self: flex-start; }

/* --------------------------------------------------------------------------
   BLOCK: promo — тёмный/синий блок с текстом и кнопкой
   -------------------------------------------------------------------------- */
.promo {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 390px;
  padding: 30px 47px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: var(--c-white);
  overflow: hidden;
}
.promo__body { max-width: 560px; }
/* Кнопка «Получите расчет в течении дня!» у донора 16px, а не 14px как остальные md */
.promo__body .btn { font-size: var(--fs-base); }
.promo__title {
  margin-bottom: 16px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--c-white);
}
.promo__text {
  margin-bottom: 22px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--c-white);
}
.promo__text p + p { margin-top: 14px; }
.promo__media { border-radius: var(--radius); overflow: hidden; }
.promo__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   BLOCK: lead — блок «Инженерный расчёт» (тёмная плашка + форма + эксперт)
   -------------------------------------------------------------------------- */
.lead { position: relative; }
/* Тёмная карточка донора: 1160x400, фон #212121, радиус 10, отступы 55/61/40.
   Фото инженера и подпись — на фиксированных позициях (как в zero-блоке донора). */
.lead__card {
  position: relative;
  min-height: 400px;
  padding: 55px 61px 40px;
  border-radius: var(--radius);
  background: var(--c-dark);
  color: var(--c-white);
  overflow: hidden;
}
.lead__body { position: relative; z-index: 2; max-width: 560px; }
.lead__title {
  max-width: 444px;
  /* 31px, а не 17: у донора текстовый бокс заголовка 90px при тексте в 76px */
  margin-bottom: 31px;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 38px;
  color: var(--c-white);
}
.lead__descr {
  max-width: 560px;
  margin-bottom: 34px;
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: 28px;
  color: var(--c-white);
}
.lead__form { max-width: 300px; gap: 10px; }
.lead__expert-photo {
  position: absolute;
  left: 577px;
  top: 14px;
  z-index: 1;
  width: 324px;
  max-width: none;
}
.lead__expert-info { position: absolute; left: 929px; top: 271px; z-index: 2; }
.lead__expert-name { font-size: var(--fs-h4); font-weight: 400; line-height: 28px; color: var(--c-white); }
.lead__expert-role { margin-top: 11px; font-size: var(--fs-base); font-weight: 500; line-height: 25px; color: var(--c-accent); }
.lead__expert-exp { font-size: var(--fs-xs); font-weight: 400; line-height: 20px; color: var(--c-text-light); }
/* Примечание — ПОД карточкой, выключка по тексту карточки (донор: x=193 при контейнере 133) */
/* Кнопка отправки лид-формы у донора крупнее прочих md-кнопок: 18px, и интерлиньяж
   у неё не задан (normal) — с нашим 1.55 подпись стояла на 3px ниже центра кнопки. */
.lead .btn--block { font-size: 18px; line-height: normal; }
.lead__note {
  margin-top: 17px;
  margin-left: 61px;
  max-width: 909px;
  font-size: var(--fs-xxs);
  line-height: 19px;
  color: var(--c-text-dim);
}
.lead__note a { color: var(--c-accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   BLOCK: projects — «Реализованные проекты» (3 в ряд, слайдер на мобиле)
   -------------------------------------------------------------------------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--grid-gap);
}
.project { display: flex; flex-direction: column; }
.project__media {
  margin-bottom: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 360 / 240;
  background: var(--c-bg-alt);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
.project__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--c-text);
}
.project__descr {
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text);
}

/* --------------------------------------------------------------------------
   BLOCK: brands — логотипы поставщиков (5 в ряд)
   -------------------------------------------------------------------------- */
/* Заголовок блока брендов у донора набран жирнее остальных заголовков секций
   (700 против 600) — это его собственный разнобой, но он заметен, поэтому повторяем. */
.brands .section__title { font-weight: 700; }
.brands__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.brands__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  padding: 20px;
}
.brands__item img {
  width: auto;
  max-width: 140px;
  max-height: 140px;
  filter: grayscale(1);
  opacity: .8;
  transition: filter var(--tr), opacity var(--tr);
}
.brands__item:hover img { filter: grayscale(0); opacity: 1; }
.brands__note {
  padding: 20px 0 30px;
  /* Размер, насыщенность и цвет — с донора (14px / 300 / #bebebe) */
  font-size: var(--fs-xs);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-border);
  text-align: center;
}

/* --------------------------------------------------------------------------
   BLOCK: seo-text — нижние текстовые блоки (SEO), серый фон
   -------------------------------------------------------------------------- */
.seo-text { padding: 50px 0 60px; background: var(--c-bg-alt); }
.seo-text__item + .seo-text__item { margin-top: 34px; }
.seo-text__title {
  margin-bottom: 12px;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.23;
  color: var(--c-primary);
}
.seo-text__item + .seo-text__item .seo-text__title { font-size: var(--fs-h3); line-height: 1.3; }
.seo-text__body { font-size: var(--fs-base); font-weight: 300; line-height: 1.55; color: var(--c-text-soft); }
.seo-text__body p + p { margin-top: 12px; }
.seo-text__body ul { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.seo-text__body li { position: relative; padding-left: 18px; }
.seo-text__body li::before {
  content: '';
  position: absolute; left: 0; top: .6em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}

/* --------------------------------------------------------------------------
   BLOCK: page-head — заголовок внутренней страницы
   -------------------------------------------------------------------------- */
.page-head { padding: 10px 0 30px; }
.page-head__title { margin-bottom: 14px; font-size: 40px; line-height: 1.15; color: var(--c-primary); }
.page-head__lead {
  max-width: 900px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   BLOCK: article — текстовый контент (страницы, юридические документы)
   -------------------------------------------------------------------------- */
/* Типографика текстовых блоков донора (Tilda t1152): 18px / 28.8px / #323232.
   Была 16px/1.65 — сверка с живым донором показала расхождение на всех текстах,
   которые приходят из базы: SEO-блоки главной, описания категорий, тела товаров
   и юридические страницы рисуются одним и тем же .article. */
.article { max-width: 900px; font-size: 18px; font-weight: 300; line-height: 1.6; color: var(--c-text-soft); }
.article--wide { max-width: none; }
.article h2 { margin: 34px 0 14px; font-size: var(--fs-h2); color: var(--c-primary); }
/* h3 текстового блока у донора 22px — так на всех 10 категориях и 68 карточках
   товара. Исключение одно: главная, там 24px (и первый заголовок всё равно 22px).
   Берём 22px как значение 78 страниц против одной. */
.article h3 { margin: 26px 0 12px; font-size: 22px; }
.article h4 { margin: 20px 0 10px; font-size: 18px; }
.article p + p, .article p { margin-bottom: 14px; }
.article ul, .article ol { margin: 14px 0; display: flex; flex-direction: column; gap: 8px; }
.article ul li { position: relative; padding-left: 20px; }
.article ul li::before {
  content: '';
  position: absolute; left: 0; top: .65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
}
.article ol { counter-reset: n; }
.article ol li { position: relative; padding-left: 26px; counter-increment: n; }
.article ol li::before {
  content: counter(n) '.';
  position: absolute; left: 0; top: 0;
  color: var(--c-accent);
  font-weight: 600;
}
.article a { color: var(--c-accent); text-decoration: underline; }
.article strong, .article b { font-weight: 600; color: var(--c-text); }
.article img { margin: 20px 0; border-radius: var(--radius); }
.article figure { margin: 24px 0; }
.article figcaption { margin-top: 8px; font-size: var(--fs-xs); color: var(--c-text-muted); }

/* --------------------------------------------------------------------------
   BLOCK: product — карточка товара
   -------------------------------------------------------------------------- */
.product {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: var(--grid-gap);
  padding-bottom: 50px;
}

/* Галерея */
.gallery__main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-alt);
  aspect-ratio: 3 / 2;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.gallery__thumb {
  flex: 0 0 96px;
  width: 96px;
  aspect-ratio: 3 / 2;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-bg-alt);
  cursor: pointer;
  padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--c-accent); }
.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.gallery__nav:hover { background: var(--c-white); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__nav svg { width: 16px; height: 16px; color: var(--c-primary); }

/* Инфо-панель */
.product__info { display: flex; flex-direction: column; }
.product__title { margin-bottom: 14px; font-size: var(--fs-h2); line-height: 1.2; color: var(--c-primary); }
.product__lead {
  margin-bottom: 22px;
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text-soft);
}
.product__price-box {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
}
.product__price { font-size: 28px; font-weight: 600; color: var(--c-primary); }
.product__price-note { font-size: var(--fs-xs); color: var(--c-text-muted); }

.specs-short { display: flex; flex-direction: column; gap: 0; margin-bottom: 26px; }
.specs-short__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--c-border-soft);
  font-size: var(--fs-xs);
}
.specs-short__key { color: var(--c-text-muted); }
.specs-short__dots { flex: 1 1 auto; border-bottom: 1px dotted var(--c-border); transform: translateY(-3px); }
.specs-short__val { font-weight: 600; color: var(--c-text); text-align: right; }

.product__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; }
.product__usp { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.product__usp li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.product__usp li::before {
  content: '';
  position: absolute; left: 0; top: .3em;
  width: 14px; height: 8px;
  border-left: 2px solid var(--c-success);
  border-bottom: 2px solid var(--c-success);
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   BLOCK: spec-table — таблицы технических характеристик
   -------------------------------------------------------------------------- */
.spec-table-wrap {
  width: 100%;
  margin: 0 0 30px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--c-border-soft);
}
.spec-table {
  width: 100%;
  min-width: 640px;
  font-size: var(--fs-xs);
  line-height: 1.45;
}
.spec-table caption {
  padding: 14px 16px;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--c-primary);
  text-align: left;
  background: var(--c-bg-alt);
}
.spec-table th,
.spec-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-border-soft);
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  background: var(--c-primary);
  color: var(--c-white);
  font-weight: 600;
  border-bottom: 0;
  white-space: nowrap;
}
.spec-table tbody th {
  width: 45%;
  font-weight: 400;
  color: var(--c-text-soft);
  background: var(--c-bg-alt2);
}
.spec-table tbody tr:last-child th,
.spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table tbody tr:hover td,
.spec-table tbody tr:hover th { background: #f3f7ff; }
.spec-table td { color: var(--c-text); }
.spec-table__num { white-space: nowrap; }

/* --------------------------------------------------------------------------
   BLOCK: product-list — карточка товара в списке + сетка
   -------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--grid-gap);
}
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 0 20px;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  background: var(--c-white);
  overflow: hidden;
  transition: box-shadow var(--tr), border-color var(--tr);
}
.product-card:hover { box-shadow: var(--shadow-card); border-color: var(--c-accent); }
.product-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  background: var(--c-bg-alt);
  overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 0; }
.product-card__title {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--c-primary);
}
.product-card__title a:hover { color: var(--c-accent); }
.product-card__descr {
  margin-bottom: 14px;
  font-size: var(--fs-xs);
  font-weight: 300;
  line-height: 1.5;
  color: var(--c-text-muted);
}
.product-card__params { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.product-card__param {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: var(--fs-xxs);
  color: var(--c-text-soft);
}
.product-card__param b { font-weight: 600; color: var(--c-text); }
.product-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 6px;
}
.product-card__price { font-size: 18px; font-weight: 600; color: var(--c-primary); }
.product-card__price span { font-size: var(--fs-xxs); font-weight: 400; color: var(--c-text-muted); }

/* --------------------------------------------------------------------------
   BLOCK: catalog-tiles — плитки каталога (общий каталог)
   -------------------------------------------------------------------------- */
.catalog-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px var(--grid-gap);
}
.catalog-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-alt);
  transition: box-shadow var(--tr);
}
.catalog-tile:hover { box-shadow: var(--shadow-card); }
.catalog-tile__media { aspect-ratio: 3 / 2; overflow: hidden; }
.catalog-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.catalog-tile:hover .catalog-tile__media img { transform: scale(1.04); }
.catalog-tile__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 18px 20px 22px; }
.catalog-tile__title { margin-bottom: 8px; font-size: var(--fs-h4); font-weight: 600; color: var(--c-primary); }
.catalog-tile__descr { margin-bottom: 14px; font-size: var(--fs-xs); font-weight: 300; color: var(--c-text-muted); }
.catalog-tile__link { margin-top: auto; }

/* --------------------------------------------------------------------------
   BLOCK: pagination
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 10px;
}
.pagination__item,
.pagination__gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
  color: var(--c-text-soft);
}
.pagination__item:hover { border-color: var(--c-accent); color: var(--c-accent); }
.pagination__item.is-active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
  font-weight: 600;
  pointer-events: none;
}
.pagination__gap { border-color: transparent; }
.pagination__item--nav svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   BLOCK: accordion — FAQ / раскрывающиеся блоки
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--c-border-soft); }
.accordion__item { border-bottom: 1px solid var(--c-border-soft); }
.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);
}
.accordion__head:hover { color: var(--c-primary); }
.accordion__icon {
  position: relative;
  flex: 0 0 20px;
  width: 20px; height: 20px;
}
.accordion__icon::before,
.accordion__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 20px; height: 2px;
  background: var(--c-accent);
  transform: translateY(-50%);
  transition: transform var(--tr);
}
.accordion__icon::after { transform: translateY(-50%) rotate(90deg); }
.accordion__item.is-open .accordion__icon::after { transform: translateY(-50%) rotate(0); }
.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.accordion__item.is-open .accordion__body { grid-template-rows: 1fr; }
.accordion__body > div { overflow: hidden; }
.accordion__content {
  padding: 0 0 22px;
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.6;
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   BLOCK: tabs
   -------------------------------------------------------------------------- */
.tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--c-border-soft);
}
.tabs__btn {
  padding: 12px 20px;
  border-bottom: 2px solid transparent;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--c-text-muted);
}
.tabs__btn:hover { color: var(--c-primary); }
.tabs__btn.is-active { color: var(--c-primary); border-bottom-color: var(--c-primary); }
.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; }

/* --------------------------------------------------------------------------
   BLOCK: slider — простой слайдер (карусель проектов, галерея)
   -------------------------------------------------------------------------- */
.slider { position: relative; }
.slider__viewport { overflow: hidden; }
.slider__track {
  display: flex;
  gap: var(--grid-gap);
  transition: transform .4s ease;
  will-change: transform;
}
.slider__slide { flex: 0 0 auto; }
.slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.slider__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  color: var(--c-primary);
}
.slider__btn:hover { border-color: var(--c-primary); background: var(--c-primary); color: var(--c-white); }
.slider__btn[disabled] { opacity: .35; pointer-events: none; }
.slider__btn svg { width: 14px; height: 14px; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-border);
}
.slider__dot.is-active { background: var(--c-accent); }

/* --------------------------------------------------------------------------
   BLOCK: form — формы
   -------------------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
/* Отключённое поле: у донора в блоке «Инженерный расчёт» из трёх полей формы
   показано только «Телефон» — «Имя» и «Город» заготовлены, но выключены.
   Разметку сохраняем, включать из CMS снятием класса. */
.form__row--off { display: none; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__label { font-size: var(--fs-xxs); color: var(--c-text-muted); }

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-white);
  font-size: var(--fs-xs);
  color: var(--c-text);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.form__textarea { min-height: 96px; resize: vertical; }
.form__input::placeholder,
.form__textarea::placeholder { color: #9b9b9b; }
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(1, 148, 255, .15);
}
.form__input.has-error,
.form__textarea.has-error { border-color: var(--c-error); }

.form__error {
  display: none;
  font-size: var(--fs-xxs);
  color: var(--c-error);
}
.form__row.has-error .form__error { display: block; }

.form__file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--c-accent);
  cursor: pointer;
}
.form__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form__file-icon {
  display: flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  border: 1px dashed currentColor;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.form__file-name { color: var(--c-text-muted); }

.form__note {
  font-size: var(--fs-xxs);
  line-height: 1.5;
  color: var(--c-text-dim);
}
.form__note a { color: var(--c-accent); text-decoration: underline; }

.form__msg {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-xs);
}
.form__msg.is-ok { display: block; background: rgba(98, 197, 132, .15); color: #1f7a42; }
.form__msg.is-fail { display: block; background: rgba(255, 0, 0, .08); color: #b40000; }

/* Форма на тёмном фоне */
.form--on-dark .form__input,
.form--on-dark .form__textarea {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .35);
  color: var(--c-white);
}
.form--on-dark .form__input::placeholder,
.form--on-dark .form__textarea::placeholder { color: rgba(255, 255, 255, .6); }
.form--on-dark .form__note { color: var(--c-text-dim); }

/* --------------------------------------------------------------------------
   BLOCK: popup — модальные окна
   -------------------------------------------------------------------------- */
.popup {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 20px;
  background: var(--c-overlay);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.popup.is-open { opacity: 1; visibility: visible; }
.popup__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: auto;
  padding: 44px 50px 40px;
  border-radius: var(--radius);
  background: var(--c-white);
  box-shadow: var(--shadow-pop);
  transform: translateY(-16px);
  transition: transform .25s ease;
}
.popup.is-open .popup__dialog { transform: translateY(0); }
.popup__close {
  position: absolute;
  top: 14px; right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  color: var(--c-text-muted);
}
.popup__close:hover { background: var(--c-bg-alt); color: var(--c-text); }
.popup__close svg { width: 16px; height: 16px; }
.popup__title {
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--c-primary);
}
.popup__descr {
  margin-bottom: 24px;
  font-size: var(--fs-xs);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-text-soft);
}

/* --------------------------------------------------------------------------
   BLOCK: contacts
   -------------------------------------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
  align-items: start;
}
.contacts-card {
  padding: 30px 34px;
  border-radius: var(--radius);
  background: var(--c-bg-alt);
}
.contacts-card__title { margin-bottom: 20px; font-size: var(--fs-h3); color: var(--c-primary); }
.contacts-list { display: flex; flex-direction: column; gap: 18px; }
.contacts-list__item { display: flex; flex-direction: column; gap: 4px; }
.contacts-list__label { font-size: var(--fs-xxs); text-transform: uppercase; letter-spacing: .04em; color: var(--c-text-muted); }
.contacts-list__value { font-size: 18px; font-weight: 600; color: var(--c-text); }
.contacts-list__value a:hover { color: var(--c-primary); }
.contacts-list__note { font-size: var(--fs-xs); font-weight: 300; color: var(--c-text-soft); }

.requisites { margin-top: 40px; }
.requisites__table { width: 100%; font-size: var(--fs-xs); }
.requisites__table th,
.requisites__table td { padding: 9px 0; border-bottom: 1px solid var(--c-border-soft); text-align: left; vertical-align: top; }
.requisites__table th { width: 220px; font-weight: 400; color: var(--c-text-muted); }
.requisites__table td { font-weight: 500; }

.map {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-bg-alt);
  aspect-ratio: 16 / 10;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  padding: 20px;
  text-align: center;
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
}

/* --------------------------------------------------------------------------
   BLOCK: docs — список опросных листов / файлов
   -------------------------------------------------------------------------- */
.docs { display: flex; flex-direction: column; gap: 12px; }
.docs__group + .docs__group { margin-top: 34px; }
.docs__group-title { margin-bottom: 16px; font-size: var(--fs-h3); color: var(--c-primary); }
.doc-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 1px solid var(--c-border-soft);
  border-radius: var(--radius);
  background: var(--c-white);
  transition: border-color var(--tr), box-shadow var(--tr);
}
.doc-item:hover { border-color: var(--c-accent); box-shadow: var(--shadow-card); }
.doc-item__icon {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(1, 148, 255, .1);
  color: var(--c-accent);
}
.doc-item__icon svg { width: 22px; height: 22px; }
.doc-item__body { flex: 1 1 auto; min-width: 0; }
.doc-item__title { font-size: var(--fs-base); font-weight: 600; color: var(--c-text); }
.doc-item__meta { margin-top: 3px; font-size: var(--fs-xxs); color: var(--c-text-muted); }
.doc-item__action { flex: 0 0 auto; }

/* --------------------------------------------------------------------------
   BLOCK: cta-band — узкая полоса призыва к действию
   -------------------------------------------------------------------------- */
.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 44px;
  border-radius: var(--radius);
  background: var(--c-primary);
  color: var(--c-white);
}
.cta-band__title { margin-bottom: 8px; font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--c-white); }
.cta-band__text { font-size: var(--fs-xs); font-weight: 300; line-height: 1.55; color: rgba(255, 255, 255, .85); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --------------------------------------------------------------------------
   BLOCK: error-page — 404
   -------------------------------------------------------------------------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52vh;
  padding: 80px 0;
  text-align: center;
}
.error-page__code {
  font-size: 120px;
  font-weight: 700;
  line-height: 1;
  color: var(--c-primary);
  letter-spacing: -.02em;
}
.error-page__title { font-size: var(--fs-h2); color: var(--c-text); }
.error-page__text { max-width: 520px; font-size: var(--fs-base); font-weight: 300; color: var(--c-text-soft); }
.error-page__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.error-page__links { margin-top: 26px; }
.error-page__links-title { margin-bottom: 12px; font-size: var(--fs-xs); color: var(--c-text-muted); }
.error-page__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.error-page__links a { font-size: var(--fs-xs); color: var(--c-accent); }
.error-page__links a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   Классы, появившиеся при натяжке вёрстки на движок
   (в статичной вёрстке этих состояний не было: они возникают от данных —
   пустая цена, обложка страницы, список городов, кнопки на контактах)
   -------------------------------------------------------------------------- */

/* «Цена по запросу»: у донора так на карточках КРУ и КСО — цены нет вовсе */
.product__price--ask,
.product-card__price--ask {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--c-primary);
  white-space: nowrap;
}
.product-card__price--ask { font-size: var(--fs-base); }

/* Обложка текстовой страницы — показывается, только если у страницы задана картинка */
.page-cover {
  overflow: hidden;
  border-radius: var(--radius);
}
.page-cover img { display: block; width: 100%; height: auto; }

/* Кнопки на странице контактов (в вёрстке они шли инлайновым style) */
.contacts-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

/* Список городов в модалке выбора региона */
.regions-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 20px;
  margin-top: 20px;
}
.regions-list__item a {
  font-size: var(--fs-base);
  color: var(--c-text);
}
.regions-list__item a:hover { color: var(--c-accent); }
.regions-list__item.is-current a { font-weight: 600; color: var(--c-primary); }

@media (max-width: 768px) {
  .regions-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .regions-list { grid-template-columns: 1fr; }
}
