/* ==========================================================================
   ТПЭ-Тяжпромэлектро — фирменный слой поверх Bootstrap 5
   Цвета, типографика и правила — см. BRANDBOOK.md
   ========================================================================== */

:root {
  /* Основные фирменные цвета */
  --tpe-green:        #059548;
  --tpe-green-dark:   #038843;
  --tpe-green-head:   #3C8F5B;
  --tpe-green-deep:   #2A5A3F;
  --tpe-green-tint:   #E8F4EC;

  /* Нейтрали */
  --tpe-ink:          #14201A;
  --tpe-muted:        #5C6B62;
  --tpe-bg:           #F6F7F4;
  --tpe-line:         #E2E6DF;
  --tpe-white:        #FFFFFF;

  /* Сигнальный */
  --tpe-accent:       #FE4A41;

  /* Геометрия */
  --tpe-radius:       1rem;
  --tpe-radius-sm:    0.65rem;
  --tpe-shadow:       0 6px 24px rgba(20, 32, 26, .07);
  --tpe-shadow-lg:    0 18px 48px rgba(20, 32, 26, .12);

  /* Переопределение Bootstrap-переменных */
  --bs-primary:          #059548;
  --bs-primary-rgb:      5, 149, 72;
  --bs-link-color:       #059548;
  --bs-link-hover-color: #038843;
  --bs-body-color:       #14201A;
  --bs-body-bg:          #F6F7F4;
  --bs-border-color:     #E2E6DF;
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                         "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--tpe-ink);
  background: var(--tpe-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Изображения никогда не выходят за пределы своего контейнера */
img { max-width: 100%; height: auto; }

/* Отступ под фиксированную шапку при переходах по якорям */
[id] { scroll-margin-top: 92px; }

/* --- Ссылки и кнопки ---------------------------------------------------- */

a { text-decoration: none; transition: color .18s ease; }

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--tpe-green);
  --bs-btn-border-color: var(--tpe-green);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tpe-green-dark);
  --bs-btn-hover-border-color: var(--tpe-green-dark);
  --bs-btn-active-bg: var(--tpe-green-dark);
  --bs-btn-active-border-color: var(--tpe-green-dark);
  --bs-btn-focus-shadow-rgb: 5, 149, 72;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: var(--tpe-radius-sm);
}

.btn-outline-brand {
  --bs-btn-color: var(--tpe-green-dark);
  --bs-btn-border-color: rgba(5, 149, 72, .35);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--tpe-green);
  --bs-btn-hover-border-color: var(--tpe-green);
  --bs-btn-active-bg: var(--tpe-green-dark);
  --bs-btn-active-border-color: var(--tpe-green-dark);
  --bs-btn-focus-shadow-rgb: 5, 149, 72;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: var(--tpe-radius-sm);
  background: #fff;
}

.btn-ghost-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: rgba(255, 255, 255, .38);
  --bs-btn-hover-color: var(--tpe-green-deep);
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-border-color: #fff;
  --bs-btn-active-color: var(--tpe-green-deep);
  --bs-btn-active-bg: #fff;
  --bs-btn-active-border-color: #fff;
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
  font-weight: 600;
  padding: .7rem 1.4rem;
  border-radius: var(--tpe-radius-sm);
}

/* --- Верхняя информационная полоса -------------------------------------- */

.topbar {
  background: var(--tpe-green-deep);
  color: rgba(255, 255, 255, .78);
  font-size: .82rem;
}
.topbar a { color: rgba(255, 255, 255, .88); }
.topbar a:hover { color: #fff; }
.topbar .topbar-sep { opacity: .35; }
.topbar .topbar-addr { color: rgba(255, 255, 255, .72); }

/* --- Шапка -------------------------------------------------------------- */

.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--tpe-line);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: 0 4px 24px rgba(20, 32, 26, .08); }

.brand-lockup { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.brand-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border-radius: .8rem;
  background: linear-gradient(150deg, #08A752 0%, var(--tpe-green) 45%, var(--tpe-green-dark) 100%);
  box-shadow: 0 6px 16px rgba(5, 149, 72, .28);
  padding: .5rem .35rem;
  overflow: hidden;
}
.brand-tile img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.brand-text { line-height: 1.15; min-width: 0; flex: 0 0 auto; }
/* Меню прижимается вправо; отступ от логотипа задаётся бренд-блоку,
   иначе пункты меню встают вплотную к тексту логотипа */
.site-nav { margin-left: auto; padding-inline: .5rem; flex: 0 0 auto; }
.site-header .brand-lockup { margin-right: .75rem; flex: 0 0 auto; }
/* Логотип + меню + телефон + кнопка помещаются «впритык» в диапазоне
   примерно 1200–1499px. На 1200–1279px подпись логотипа физически не
   помещается рядом с меню, поэтому там остаётся только знак ТПЭ. */
@media (max-width: 1279.98px) {
  .site-header .brand-text { display: none; }
}
@media (min-width: 1280px) and (max-width: 1499.98px) {
  .site-header .brand-lockup { margin-right: .5rem; }
  .site-nav .nav { gap: .8rem !important; }
  .site-header .header-actions { margin-left: .75rem; }
  .brand-sub { font-size: .68rem; }
  .site-nav .nav-link { font-size: .87rem; }
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--tpe-green-deep);
  white-space: nowrap;
}
.brand-sub {
  display: block;
  font-size: .74rem;
  letter-spacing: .02em;
  color: var(--tpe-muted);
  margin-top: .18rem;
}

/* зазор между меню и блоком телефона на широких экранах */
.header-phone {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--tpe-ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--tpe-green); }
.header-note { font-size: .74rem; color: var(--tpe-muted); line-height: 1.3; }
.site-header .header-actions { margin-left: 1.25rem; }

/* Навигация */
.site-nav { min-width: 0; }
.site-nav .nav { flex-wrap: nowrap; }
.site-nav .nav-link {
  position: relative;
  font-weight: 600;
  font-size: .9rem;
  color: var(--tpe-ink);
  padding: .55rem .2rem;
  white-space: nowrap;
}
/* Планшеты и ноутбуки (992–1199px): полный текст логотипа + меню + кнопка
   не помещаются, поэтому скрываем текстовую часть логотипа — знак остаётся
   узнаваемым. С 1200px подпись возвращается. */
@media (max-width: 1199.98px) {
  .site-header .brand-text { display: none; }
  .site-nav .nav { gap: .9rem !important; }
  .site-nav .nav-link { font-size: .86rem; }
}
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: .2rem;
  right: .2rem;
  bottom: .2rem;
  height: 2px;
  border-radius: 2px;
  background: var(--tpe-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link:focus-visible,
.site-nav .nav-link.active { color: var(--tpe-green-dark); }
.site-nav .nav-link:hover::after,
.site-nav .nav-link:focus-visible::after,
.site-nav .nav-link.active::after { transform: scaleX(1); }

/* Мобильное меню (offcanvas) */
/* Bootstrap задаёт ширину через .offcanvas-end{width:var(--bs-offcanvas-width)},
   поэтому переопределяем переменную, а не width. Закрытая панель уезжает за
   правый край (translateX(100%)) и увеличивает scrollWidth документа —
   ограничиваем её вьюпортом, чтобы не появлялся горизонтальный скролл. */
.offcanvas.offcanvas-nav {
  --bs-offcanvas-width: min(20rem, 86vw);
}
.offcanvas-nav .nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--tpe-ink);
  padding: .85rem .25rem;
  border-bottom: 1px solid var(--tpe-line);
}
.offcanvas-nav .nav-link.active { color: var(--tpe-green-dark); }
.offcanvas-nav .nav-link-sub {
  font-weight: 500;
  font-size: .95rem;
  padding-left: 1.1rem;
  color: var(--tpe-muted);
}

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 520px at 88% -10%, rgba(56, 189, 118, .45), transparent 60%),
    linear-gradient(135deg, #12341F 0%, #1C5636 48%, #067A3E 100%);
}
.hero::before {
  /* фирменная «световая» диагональ — отсылка к молнии знака */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 62%, rgba(5, 149, 72, .22) 62%, rgba(5, 149, 72, .22) 70%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 20% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .38rem .85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #5BE39A;
  box-shadow: 0 0 0 4px rgba(91, 227, 154, .22);
}

.hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  margin: 1.1rem 0;
}
.hero h1 .accent { color: #7BEBAE; }
.hero-lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, .84);
  max-width: 34rem;
}

/* Показатели */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
  margin-top: 2rem;
}
/* 4 плитки в ряд — только когда под них достаточно места */
@media (min-width: 992px) { .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.stat {
  border-radius: var(--tpe-radius-sm);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .07);
  padding: .85rem .9rem;
  backdrop-filter: blur(4px);
  min-width: 0;
}
.stat-value {
  display: block;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
}
.stat-label {
  display: block;
  margin-top: .25rem;
  font-size: .76rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, .72);
  overflow-wrap: anywhere;
}

/* Визуальная коллажная группа в hero */
.hero-visual { position: relative; }
.hero-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--tpe-shadow-lg);
  border: 1px solid rgba(255, 255, 255, .18);
  background: #fff;
}
.hero-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-card-main { aspect-ratio: 4 / 3; }
/* Главная карточка растягивается по высоте правой колонки,
   пропорция 4:3 работает как минимальная */
.hero-visual .hero-col {
  display: flex;
  flex-direction: column;
}
.hero-visual .hero-col > .hero-card-main {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}
/* Правая колонка коллажа растягивается на высоту главной карточки,
   чтобы сетка выглядела цельно на любых экранах */
.hero-visual .row { align-items: stretch; }
.hero-visual .hero-side {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.hero-visual .hero-side > .hero-card {
  flex: 1 1 0;
  min-height: 0;
}
/* Минимальная высота коллажа, чтобы сетка не «схлопывалась» */
@media (min-width: 576px) and (max-width: 991.98px) {
  .hero-visual .hero-side > .hero-card { min-height: 8rem; }
}
.hero-card-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  padding: .7rem .9rem;
  border-radius: .75rem;
  background: rgba(10, 30, 19, .62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  font-size: .82rem;
  line-height: 1.35;
}
.hero-card-badge strong { display: block; font-size: .92rem; }

/* Мобильный hero: меньше отступы */
@media (max-width: 767.98px) {
  .hero { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
}

/* --- Полоса доверия / отрасли ------------------------------------------- */

.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--tpe-line);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .88rem;
  font-weight: 500;
  color: var(--tpe-muted);
  padding: .5rem 0;
}
.trust-item svg { flex: 0 0 auto; color: var(--tpe-green); }

/* --- Общие секции ------------------------------------------------------- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tpe-green-head);
  margin-bottom: .6rem;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--tpe-green);
}
.section-title {
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.01em;
  color: var(--tpe-ink);
  margin: 0 0 .75rem;
}
.section-lead {
  color: var(--tpe-muted);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 46rem;
}

/* --- Карточка «О компании» ---------------------------------------------- */

.about-media {
  position: relative;
  border-radius: var(--tpe-radius);
  overflow: hidden;
  box-shadow: var(--tpe-shadow);
  aspect-ratio: 16 / 11;
  background: #dfe4dc;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.about-year {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: .5rem .8rem;
  border-radius: .6rem;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  font-weight: 800;
  font-size: .84rem;
  color: var(--tpe-green-deep);
  letter-spacing: .03em;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .85rem;
  color: var(--tpe-muted);
  line-height: 1.65;
}
.check-list li strong { color: var(--tpe-ink); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .32rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--tpe-green-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059548'%3E%3Cpath d='M13.485 3.515a.75.75 0 0 0-1.06 0L6 9.94 3.545 7.485a.75.75 0 0 0-1.06 1.06l3 3a.75.75 0 0 0 1.06 0l7-7a.75.75 0 0 0 0-1.06z'/%3E%3C/svg%3E") center / .85rem no-repeat;
}

/* --- Карточки продукции ------------------------------------------------- */

.product-card {
  position: relative;
  height: 100%;
  border-radius: var(--tpe-radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tpe-line);
  box-shadow: var(--tpe-shadow);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--tpe-shadow-lg);
  border-color: rgba(5, 149, 72, .35);
}
.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--tpe-green-tint);
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tpe-green-dark);
  background: var(--tpe-green-tint);
  border-radius: 999px;
  padding: .2rem .6rem;
  margin-bottom: .55rem;
}
.product-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .4rem;
  color: var(--tpe-ink);
}
.product-title a { color: inherit; }
.product-title a::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.product-desc {
  font-size: .88rem;
  line-height: 1.6;
  color: var(--tpe-muted);
  margin: 0 0 1rem;
}
.product-more {
  margin-top: auto;
  font-size: .88rem;
  font-weight: 600;
  color: var(--tpe-green-dark);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.product-more svg { transition: transform .2s ease; }
.product-card:hover .product-more svg { transform: translateX(3px); }

/* --- Полный перечень продукции (аккордеон) ------------------------------ */

.catalog-accordion .accordion-item {
  border: 1px solid var(--tpe-line);
  border-radius: var(--tpe-radius-sm) !important;
  margin-bottom: .65rem;
  overflow: hidden;
  background: #fff;
}
.catalog-accordion .accordion-button {
  font-weight: 650;
  font-size: .97rem;
  color: var(--tpe-ink);
  background: #fff;
  padding: .95rem 1.1rem;
  box-shadow: none;
}
.catalog-accordion .accordion-button:not(.collapsed) {
  color: var(--tpe-green-dark);
  background: var(--tpe-green-tint);
}
.catalog-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(5, 149, 72, .18); }
.catalog-accordion .accordion-body { font-size: .93rem; line-height: 1.7; color: var(--tpe-muted); }
.catalog-accordion .accordion-body code {
  color: var(--tpe-green-deep);
  background: var(--tpe-green-tint);
  padding: .05rem .35rem;
  border-radius: .3rem;
  font-size: .86em;
}

/* --- Преимущества / почему мы ------------------------------------------- */

.feature-card {
  height: 100%;
  padding: 1.5rem 1.4rem;
  border-radius: var(--tpe-radius);
  background: #fff;
  border: 1px solid var(--tpe-line);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: rgba(5, 149, 72, .3); box-shadow: var(--tpe-shadow); }
.feature-icon {
  width: 3rem;
  height: 3rem;
  border-radius: .85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tpe-green-tint);
  color: var(--tpe-green-dark);
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 .45rem; }
.feature-card p { font-size: .9rem; line-height: 1.65; color: var(--tpe-muted); margin: 0; }

/* --- Сертификация (тёмная секция) --------------------------------------- */

.cert-section {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(5, 149, 72, .22), transparent 60%),
    linear-gradient(135deg, #10291A 0%, #173D27 100%);
  color: #fff;
}
.cert-section .section-title { color: #fff; }
.cert-section .section-lead { color: rgba(255, 255, 255, .76); }
.cert-card {
  height: 100%;
  border-radius: var(--tpe-radius);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .05);
  padding: 1.4rem;
}
.cert-code {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: #7BEBAE;
  margin-bottom: .5rem;
}
.cert-card h3 { font-size: 1rem; font-weight: 700; margin: 0 0 .4rem; }
.cert-card p { font-size: .88rem; line-height: 1.6; color: rgba(255, 255, 255, .72); margin: 0; }

/* --- Документы ---------------------------------------------------------- */

.doc-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.15rem 1.2rem;
  border-radius: var(--tpe-radius-sm);
  background: #fff;
  border: 1px solid var(--tpe-line);
  transition: border-color .2s ease, transform .2s ease;
}
.doc-card:hover { border-color: rgba(5, 149, 72, .35); transform: translateY(-2px); }
.doc-icon {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tpe-green-tint);
  color: var(--tpe-green-dark);
}
.doc-card .doc-name { font-weight: 650; font-size: .95rem; color: var(--tpe-ink); line-height: 1.35; }
.doc-card .doc-meta { font-size: .8rem; color: var(--tpe-muted); margin-top: .15rem; }

/* --- Блок «Заказать оборудование» (CTA) --------------------------------- */

.cta-band {
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    radial-gradient(700px 320px at 92% 10%, rgba(91, 227, 154, .28), transparent 62%),
    linear-gradient(128deg, #067A3E 0%, #059548 45%, #2A5A3F 130%);
  color: #fff;
  position: relative;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 55%, rgba(255, 255, 255, .07) 55%, rgba(255, 255, 255, .07) 63%, transparent 63%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 0 0 .7rem;
}
.cta-band p { color: rgba(255, 255, 255, .82); line-height: 1.65; margin: 0; }

/* --- Проекты / география ------------------------------------------------ */

.project-tile {
  position: relative;
  display: block;
  border-radius: var(--tpe-radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #dfe4dc;
}
.project-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project-tile:hover img { transform: scale(1.06); }
.project-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 30, 19, .72), transparent 55%);
}
.project-cap {
  position: absolute;
  left: .8rem;
  right: .8rem;
  bottom: .75rem;
  z-index: 1;
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
}

/* --- Подвал ------------------------------------------------------------- */

.site-footer {
  background: #0F2418;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}
.site-footer h2, .site-footer h3 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
}
.site-footer a { color: rgba(255, 255, 255, .74); }
.site-footer a:hover { color: #7BEBAE; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: rgba(255, 255, 255, .55); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .8rem;
  color: rgba(255, 255, 255, .5);
}

/* --- Кнопка «наверх» ---------------------------------------------------- */

.to-top {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 1030;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tpe-green);
  color: #fff;
  box-shadow: 0 8px 22px rgba(5, 149, 72, .38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--tpe-green-dark); }

/* --- Плавное появление при скролле -------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* --- Доступность -------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 2000;
  background: var(--tpe-green);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 0 0 .5rem 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid rgba(5, 149, 72, .45); outline-offset: 2px; border-radius: .25rem; }

/* --- Мелкие адаптивные правки ------------------------------------------- */

@media (max-width: 991.98px) {
  .brand-name { font-size: .92rem; }
  .brand-sub { font-size: .68rem; }
}

@media (max-width: 575.98px) {
  .brand-tile { width: 46px; height: 46px; flex-basis: 46px; border-radius: .65rem; }
  .brand-name { font-size: .84rem; white-space: normal; }
  .brand-sub { display: none; }
  .hero-card-main { aspect-ratio: 16 / 11; }
  .hero h1 { font-size: 1.75rem; }
  .hero .btn-lg { font-size: 1rem; padding: .6rem 1.1rem; }
  /* кнопки hero — на всю ширину для удобного тапа */
  .hero .btn-lg { width: 100%; justify-content: center; }
}

/* Печать */
@media print {
  .topbar, .site-nav, .to-top, .cta-band, .hero { display: none !important; }
  body { background: #fff; }
  a { color: #000; text-decoration: underline; }
  .reveal { opacity: 1; transform: none; }
}

/* =======================================================================
   Каталог продукции: раздел /lve
   Страница раздела, страница изделия, таблицы характеристик, документы.
   ======================================================================= */

/* --- Шапка внутренней страницы ----------------------------------------- */

.page-head {
  padding: 2.25rem 0 1.5rem;
  background:
    radial-gradient(680px 300px at 88% 0%, rgba(5, 149, 72, .09), transparent 60%),
    var(--tpe-bg);
  border-bottom: 1px solid var(--tpe-line);
}
.page-head h1 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--tpe-ink);
  margin: .35rem 0 .9rem;
}
.page-head .section-lead { max-width: 62ch; }

.breadcrumb {
  --bs-breadcrumb-divider-color: var(--tpe-muted);
  --bs-breadcrumb-item-padding-x: .45rem;
  font-size: .84rem;
  margin-bottom: .85rem;
  flex-wrap: wrap;
}
.breadcrumb-item a {
  color: var(--tpe-green-dark);
  text-decoration: none;
}
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--tpe-muted); }

/* --- Карточка раздела каталога ----------------------------------------- */

.catalog-section-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* Карточки в ряду выравниваются по высоте самой высокой. */
  background: #fff;
  border: 1px solid var(--tpe-line);
  border-radius: var(--tpe-radius);
  padding: 1.4rem 1.4rem 1.25rem;
  box-shadow: var(--tpe-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.catalog-section-card:hover {
  transform: translateY(-3px);
  border-color: rgba(5, 149, 72, .32);
  box-shadow: var(--tpe-shadow-lg);
}
.catalog-section-head {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: .7rem;
}
.catalog-section-icon {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--tpe-radius-sm);
  background: var(--tpe-green-tint);
  color: var(--tpe-green-dark);
}
.catalog-section-icon svg { width: 24px; height: 24px; }
.catalog-section-title {
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: var(--tpe-ink);
}
.catalog-section-title a { color: inherit; text-decoration: none; }
.catalog-section-title a:hover { color: var(--tpe-green-dark); }
.catalog-section-desc {
  color: var(--tpe-muted);
  font-size: .94rem;
  line-height: 1.62;
  margin: 0 0 .85rem;
}
.catalog-section-list {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  display: grid;
  gap: .32rem;
  font-size: .92rem;
  /* Длинный перечень не растягивает карточку сильнее соседних. */
  max-height: 11.5rem;
  overflow: hidden;
}
.catalog-section-list li { position: relative; padding-left: 1rem; }
.catalog-section-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tpe-green);
}
.catalog-section-list a {
  color: var(--tpe-ink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.catalog-section-list a:hover {
  color: var(--tpe-green-dark);
  border-bottom-color: rgba(5, 149, 72, .45);
}
.catalog-section-more {
  font-size: .86rem;
  color: var(--tpe-muted);
  margin: 0 0 .9rem;
}
.catalog-section-foot { margin-top: auto; }

/* Ряд карточек раздела: одинаковая высота блоков. */
.catalog-sections-row > [class*="col-"] { display: flex; }

/* --- Боковая колонка каталога ----------------------------------------- */

.catalog-aside {
  position: sticky;
  top: 6rem;
  background: #fff;
  border: 1px solid var(--tpe-line);
  border-radius: var(--tpe-radius);
  padding: 1.25rem 1.25rem 1.4rem;
  box-shadow: var(--tpe-shadow);
}
.catalog-aside-title {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--tpe-green-head);
  margin: 0 0 .85rem;
}
.catalog-aside-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: .94rem;
}
.catalog-aside-list > li {
  border-bottom: 1px solid var(--tpe-line);
  padding: .55rem 0;
}
.catalog-aside-list > li:last-child { border-bottom: 0; }
.catalog-aside-list a {
  color: var(--tpe-ink);
  text-decoration: none;
  display: block;
  transition: color .18s ease;
}
.catalog-aside-list a:hover { color: var(--tpe-green-dark); }
.catalog-aside-list .is-current > a {
  color: var(--tpe-green-dark);
  font-weight: 600;
}
.catalog-aside-sublist {
  list-style: none;
  margin: .45rem 0 .1rem;
  padding: 0 0 0 .85rem;
  border-left: 2px solid var(--tpe-green-tint);
  display: grid;
  gap: .3rem;
  font-size: .88rem;
}
.catalog-aside-sublist a { color: var(--tpe-muted); }
.catalog-aside-sublist a:hover { color: var(--tpe-green-dark); }
.catalog-aside-cta {
  border-top: 1px solid var(--tpe-line);
  padding-top: 1.1rem;
  margin-top: .3rem;
  font-size: .92rem;
  color: var(--tpe-muted);
  line-height: 1.6;
}

/* --- Контент страницы изделия ------------------------------------------ */

.content-section { margin-bottom: 2.4rem; }
.content-section:last-child { margin-bottom: 0; }
.content-heading {
  font-size: clamp(1.14rem, 1.9vw, 1.42rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--tpe-ink);
  margin: 0 0 .85rem;
  padding-bottom: .55rem;
  border-bottom: 2px solid var(--tpe-green-tint);
}
.prose {
  color: #2C3A33;
  font-size: 1rem;
  line-height: 1.72;
}
.prose p { margin: 0 0 .95rem; }
.prose p:last-child { margin-bottom: 0; }

/* --- Таблицы характеристик --------------------------------------------- */

.spec-block { margin-bottom: 1.6rem; }
.spec-block:last-child { margin-bottom: 0; }
.spec-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tpe-ink);
  margin: 0 0 .55rem;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.55;
  background: #fff;
}
.spec-table th,
.spec-table td {
  border: 1px solid var(--tpe-line);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}
.spec-table thead th {
  background: var(--tpe-green-tint);
  color: var(--tpe-green-deep);
  font-weight: 600;
}
.spec-table tbody th {
  font-weight: 500;
  color: var(--tpe-ink);
  background: #FBFCFA;
  width: 42%;
}
.spec-table tbody tr:nth-child(even) td { background: #FCFDFC; }

/* --- Файлы для скачивания ---------------------------------------------- */

.download-list {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.download-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .7rem .8rem;
  border: 1px solid var(--tpe-line);
  border-radius: var(--tpe-radius-sm);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.download-item:hover {
  border-color: rgba(5, 149, 72, .38);
  background: var(--tpe-green-tint);
  transform: translateY(-1px);
}
.download-icon {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: .5rem;
  background: var(--tpe-green-tint);
  color: var(--tpe-green-dark);
}
.download-item:hover .download-icon { background: #fff; }
.download-body { display: grid; gap: .18rem; }
.download-title {
  font-size: .9rem;
  font-weight: 500;
  color: var(--tpe-ink);
  line-height: 1.45;
}
.download-format {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  color: var(--tpe-green-head);
}
.download-note {
  font-size: .84rem;
  color: var(--tpe-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Галерея изделия ---------------------------------------------------- */

.gallery-tile {
  border-radius: var(--tpe-radius-sm);
  overflow: hidden;
  background: #dfe4dc;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--tpe-line);
}
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.gallery-tile:hover img { transform: scale(1.05); }

/* --- Документы ---------------------------------------------------------- */

.doc-body { min-width: 0; }
.doc-title {
  font-size: .98rem !important;
  font-weight: 600;
  line-height: 1.35;
  margin: 0 0 .3rem !important;
}

/* --- Адаптив каталога --------------------------------------------------- */

@media (max-width: 991.98px) {
  .catalog-aside { position: static; }
  .page-head { padding: 1.75rem 0 1.25rem; }
  .content-section { margin-bottom: 1.9rem; }
}

@media (max-width: 575.98px) {
  .spec-table { font-size: .86rem; }
  .spec-table th,
  .spec-table td { padding: .48rem .55rem; }
  .spec-table tbody th { width: 50%; }
  .catalog-section-card { padding: 1.15rem; }
  .catalog-aside { padding: 1.1rem; }
}

/* =======================================================================
   Раздел «Заказать оборудование» (/zakaz)
   ======================================================================= */

/* --- Номенклатура ------------------------------------------------------- */

.order-nomenclature-title {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--tpe-ink);
  background: var(--tpe-green-tint);
  border-left: 3px solid var(--tpe-green);
  border-radius: 0 var(--tpe-radius-sm) var(--tpe-radius-sm) 0;
  padding: .85rem 1.1rem;
  margin: 0 0 1.1rem;
}

.check-list-tight { gap: .35rem; }
.check-list-tight li { font-size: .95rem; line-height: 1.6; }

/* --- Шаги оформления заказа --------------------------------------------- */

.order-steps {
  list-style: none;
  counter-reset: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.order-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--tpe-line);
  border-radius: var(--tpe-radius-sm);
  padding: 1.05rem 1.15rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.order-step:hover {
  border-color: rgba(5, 149, 72, .3);
  box-shadow: var(--tpe-shadow);
}

.order-step-num {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--tpe-green);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1;
}

.order-step-body { min-width: 0; }

.order-step-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tpe-ink);
  margin: 0 0 .3rem;
  line-height: 1.35;
}

.order-step-text {
  font-size: .93rem;
  line-height: 1.65;
  color: var(--tpe-muted);
}

/* --- Контакты для заявки ------------------------------------------------ */

.order-contact {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem .9rem;
  border: 1px solid var(--tpe-line);
  border-radius: var(--tpe-radius-sm);
  background: #fff;
  text-decoration: none;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}
.order-contact:hover {
  border-color: rgba(5, 149, 72, .38);
  background: var(--tpe-green-tint);
  transform: translateY(-1px);
}
.order-contact-primary { margin-bottom: .85rem; }

.order-contact-icon {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: .55rem;
  background: var(--tpe-green-tint);
  color: var(--tpe-green-dark);
}
.order-contact:hover .order-contact-icon { background: #fff; }

.order-contact-body { display: grid; gap: .12rem; min-width: 0; }

.order-contact-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--tpe-green-head);
}

.order-contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--tpe-ink);
  word-break: break-word;
}

.order-phones {
  list-style: none;
  margin: 0 0 .5rem;
  padding: 0;
  display: grid;
  gap: .3rem;
}
.order-phones a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  padding: .5rem .2rem;
  border-bottom: 1px solid var(--tpe-line);
  text-decoration: none;
  transition: color .18s ease;
}
.order-phones li:last-child a { border-bottom: 0; }
.order-phones a:hover .order-phone-number { color: var(--tpe-green-dark); }

.order-phone-number {
  font-size: .98rem;
  font-weight: 600;
  color: var(--tpe-ink);
  white-space: nowrap;
}

.order-phone-label {
  font-size: .82rem;
  color: var(--tpe-muted);
}

/* --- Подпись ------------------------------------------------------------ */

.order-signature {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tpe-green);
  background: var(--tpe-green-tint);
  border-radius: 0 var(--tpe-radius-sm) var(--tpe-radius-sm) 0;
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--tpe-green-deep);
}
.order-signature p { margin: 0; }

/* --- Адаптив ------------------------------------------------------------ */

@media (max-width: 575.98px) {
  .order-step { padding: .9rem; gap: .8rem; }
  .order-step-num { width: 30px; height: 30px; font-size: .88rem; }
  .order-nomenclature-title { padding: .75rem .9rem; font-size: .96rem; }
  .order-signature { padding: 1rem 1.1rem; font-size: .96rem; }
}

/* =======================================================================
   Нормативные документы (/documents)
   ======================================================================= */

.document-count {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tpe-green-head);
  margin: 0 0 .7rem;
}

/* --- Таблица документов -------------------------------------------------- */

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
  line-height: 1.55;
  background: #fff;
}
.doc-table th,
.doc-table td {
  border: 1px solid var(--tpe-line);
  padding: .6rem .75rem;
  text-align: left;
  vertical-align: top;
}
.doc-table thead th {
  background: var(--tpe-green-tint);
  color: var(--tpe-green-deep);
  font-weight: 600;
  white-space: nowrap;
}
.doc-table tbody th {
  font-weight: 600;
  color: var(--tpe-ink);
  background: #FBFCFA;
  white-space: nowrap;
  width: 1%;
}
.doc-table tbody tr:nth-child(even) td { background: #FCFDFC; }
.doc-table tbody tr:hover td,
.doc-table tbody tr:hover th { background: var(--tpe-green-tint); }

.doc-table-file {
  width: 1%;
  white-space: nowrap;
  text-align: center;
}

.doc-file-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .6rem;
  border: 1px solid var(--tpe-line);
  border-radius: .45rem;
  background: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--tpe-green-dark);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.doc-file-link:hover {
  border-color: rgba(5, 149, 72, .45);
  background: var(--tpe-green-tint);
  transform: translateY(-1px);
}
.doc-file-icon {
  display: inline-grid;
  place-items: center;
  color: var(--tpe-accent);
}

/* --- Адаптив ------------------------------------------------------------- */

@media (max-width: 767.98px) {
  .doc-table { font-size: .86rem; }
  .doc-table th,
  .doc-table td { padding: .5rem .55rem; }
  .doc-table tbody th { white-space: normal; }
}
