/* ==============================================
   ВЕНТЗАВОД 313 — Premium Landing CSS
   Dark Industrial Theme
   ============================================== */

/* ---------- Mobile Nav Overlay ---------- */
/* Отдельный div на уровне body — обходит баг backdrop-filter containing block */
.mobile-nav-overlay {
  display: none;
}

@media (max-width: 768px) {
  .mobile-nav-overlay {
    display: block;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 13, .97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* ---------- CSS Variables ---------- */
:root {
  --black: #080a0d;
  --dark: #0e1115;
  --dark-2: #141820;
  --dark-3: #1c2230;
  --steel: #2d3748;
  --steel-light: #4a5568;
  --muted: #718096;
  --silver: #a0aec0;
  --white: #f7f9fc;
  --white-20: rgba(247, 249, 252, .12);
  --white-8: rgba(247, 249, 252, .06);
  --orange: #f97316;
  --orange-dk: #ea6500;
  --orange-glow: rgba(249, 115, 22, .18);
  --orange-line: rgba(249, 115, 22, .35);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, .44);
  --shadow-glow: 0 0 40px var(--orange-glow);

  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --font-main: 'Inter', sans-serif;
  --font-head: 'Rajdhani', sans-serif;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-main);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  border: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- Container ---------- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section helpers ---------- */
section {
  padding: 96px 0;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px solid var(--orange-line);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

/* Advantages section: header + CTA button in one row */
.adv-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}

.section-header--left {
  text-align: left;
  margin-bottom: 0;
}

.section-header--left .section-subtitle {
  margin: 0;
}

.adv-header-cta {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .adv-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .adv-header-cta {
    align-self: center;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .08);
  opacity: 0;
  transition: opacity .2s;
}

.btn:hover::after {
  opacity: 1;
}

.btn:active {
  transform: scale(.97);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px var(--orange-glow);
}

/* Ensure anchor tags with btn-primary always show white text */
a.btn-primary,
a.btn-primary:hover,
a.btn-primary:visited {
  color: var(--white) !important;
}

.btn-primary:hover {
  background: var(--orange-dk);
  box-shadow: 0 6px 28px rgba(249, 115, 22, .35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--white-20);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: var(--white-8);
  border-color: rgba(255, 255, 255, .25);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 15px 32px;
  font-size: 15px;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 20px 0;
}

/* backdrop-filter на ::before — НЕ создаёт containing block для position:fixed потомков */
.navbar.scrolled {
  background: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  padding: 12px 0;
}

.navbar.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, .85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: -1;
  pointer-events: none;
}

.navbar__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__logo .logo-img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  transition: var(--transition);
}

.navbar__logo:hover .logo-img {
  opacity: .8;
}

.navbar__nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--white);
}

.nav-link:hover::after {
  left: 14px;
  right: 14px;
}

.navbar__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar__phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}

.navbar__phone svg {
  color: var(--orange);
}

.navbar__phone:hover {
  color: var(--orange);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 0s;
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
      rgba(8, 10, 13, .92) 0%,
      rgba(8, 10, 13, .80) 45%,
      rgba(8, 10, 13, .55) 70%,
      rgba(8, 10, 13, .65) 100%);
}

/* Decorative elements */
.hero__deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero__deco--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(249, 115, 22, .12), transparent 70%);
  top: -100px;
  left: -100px;
}

.hero__deco--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 55, 72, .4), transparent 70%);
  bottom: 0;
  right: 20%;
}

.hero__deco--3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(249, 115, 22, .08), transparent 70%);
  top: 40%;
  left: 40%;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 90px;
  padding-bottom: 44px;
  min-width: 0;
}

/* Hero Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-glow);
  border: 1px solid var(--orange-line);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .5;
    transform: scale(1.3);
  }
}

.hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 12px;
}

.hero__title-accent {
  color: var(--orange);
}

.hero__desc {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.6;
  margin-bottom: 18px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.hero__stat {
  text-align: center;
  flex: 1;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.hero__stat-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
}

.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, .1);
}

/* Hero Slider */
.hero__slider-wrap {
  position: relative;
}

.hero-slider {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--dark-3);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hero-slider__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-slider__slide.is-active img {
  transform: scale(1.05);
}

.slide-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 20px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7));
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, .9);
}

.hero-slider__controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10;
}

.slider-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(8, 10, 13, .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .15);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
}

.slider-dots {
  display: flex;
  gap: 6px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .35);
  transition: var(--transition);
  cursor: pointer;
}

.slider-dot.active {
  width: 20px;
  background: var(--orange);
}

/* Slider corner decorations */
.slider-corner {
  position: absolute;
  width: 32px;
  height: 32px;
  pointer-events: none;
  z-index: 2;
}

.slider-corner--tl {
  top: -8px;
  left: -8px;
  border-top: 2px solid var(--orange);
  border-left: 2px solid var(--orange);
  border-radius: 4px 0 0 0;
}

.slider-corner--br {
  bottom: -8px;
  right: -8px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  border-radius: 0 0 4px 0;
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fadeInUp 1.5s .8s both;
}

.scroll-arrow {
  width: 20px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: .3;
    transform: translateX(-50%) translateY(8px);
  }
}

/* ================================================
   ADVANTAGES
   ================================================ */
.advantages {
  background: var(--dark);
  position: relative;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.adv-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.adv-card:hover {
  border-color: var(--orange-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.adv-card:hover::before {
  opacity: 1;
}

.adv-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  color: var(--orange);
}

.adv-card__icon svg {
  width: 100%;
  height: 100%;
}

.adv-card__num {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

.adv-card__suffix {
  font-size: 16px;
  font-weight: 600;
  color: var(--orange);
  margin: 4px 0 10px;
}

.adv-card__text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* New feature-card styles */
.adv-card__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 12px;
}

.adv-card__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* CTA below the cards */
.adv-cta {
  text-align: center;
  margin-top: 12px;
  padding-bottom: 8px;
}

/* Clients row */
.clients-row {
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding-top: 48px;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}

.clients-row__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--steel-light);
  white-space: nowrap;
}

.clients-row__logos {
  display: flex;
  gap: 32px;
  flex: 1;
  flex-wrap: wrap;
}

.client-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
  transition: color var(--transition);
}

.client-logo:hover {
  color: var(--white);
}

.client-logo__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.client-logo__icon svg {
  width: 100%;
  height: 100%;
}

/* ================================================
   SERVICES
   ================================================ */
.services {
  background: var(--black);
  position: relative;
}

.services__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.service-card:hover {
  border-color: rgba(249, 115, 22, .25);
  box-shadow: 0 8px 40px rgba(0, 0, 0, .35);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--orange-glow) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card__num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 700;
  color: rgba(255, 255, 255, .04);
  line-height: 1;
  pointer-events: none;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  color: var(--orange);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card__text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.service-card--cta {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  border-color: var(--orange-line);
}

.service-cta-btn {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}

/* ================================================
   CONTACT FORM
   ================================================ */
.contact-form-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  /* переопределяем базовый section { padding: 96px } */
}

.contact-form-section .section-header {
  margin-bottom: 36px;
}

/* Parallax background layer (controlled via JS) */
.section-parallax-bg {
  position: absolute !important;
  inset: -20%;
  background: center / cover no-repeat;
  will-change: transform;
  pointer-events: none;
  z-index: 0;
}

.section-parallax-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, .93);
}

/* Only the content container needs z-index lift, NOT the bg div */
.contact-form-section>.container {
  position: relative;
  z-index: 1;
}

.contact-form-section__bg {
  position: absolute !important;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 80% 50%, rgba(249, 115, 22, .06), transparent);
  pointer-events: none;
  z-index: 1;
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  min-width: 0;
  /* prevent grid blowout */
}

.form-layout__left {
  padding-top: 8px;
}

.form-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.form-contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}

.form-contact-item:hover {
  transform: translateX(4px);
}

.form-contact-item__icon {
  width: 44px;
  height: 44px;
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.form-contact-item__label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.form-contact-item__value {
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

/* Form styles */
.application-form {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  position: relative;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
  padding-bottom: 22px; /* reserve space for absolute error message */
}

.form-row .form-group {
  position: relative;
  margin-bottom: 0;
}

.form-label-req {
  color: var(--orange);
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--silver);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.form-label-hint {
  font-weight: 400;
  color: var(--steel-light);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--white);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--steel-light);
}

/* Validation error state */
.form-input--error {
  border-color: #e05252 !important;
  box-shadow: 0 0 0 3px rgba(224, 82, 82, .18) !important;
}

.form-field-error {
  position: absolute;
  left: 0;
  bottom: -20px;
  font-size: 12px;
  color: #e05252;
  white-space: nowrap;
}

.form-textarea {
  resize: vertical;
  min-height: 70px;
}

.select-wrap {
  position: relative;
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.form-select {
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--dark-3);
  color: var(--white);
}

/* File upload */
.file-upload {
  position: relative;
  cursor: pointer;
}

.file-upload__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload__content {
  background: var(--dark-3);
  border: 2px dashed rgba(255, 255, 255, .12);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  text-align: center;
  transition: border-color var(--transition), background var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}

.file-upload:hover .file-upload__content,
.file-upload.dragging .file-upload__content {
  border-color: var(--orange);
  background: rgba(249, 115, 22, .04);
}

.file-upload__content svg {
  color: var(--orange);
}

.file-upload__text {
  font-size: 14px;
}

.file-upload__text em {
  color: var(--orange);
  font-style: normal;
  text-decoration: underline;
}

.file-upload__hint {
  font-size: 11px;
}

.file-upload__name {
  margin-top: 6px;
  font-size: 12px;
  color: var(--orange);
  min-height: 16px;
}

/* Checkbox */
.form-group--checkbox {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.checkbox-input {
  display: none;
}

.checkbox-custom {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, .2);
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkbox-input:checked+.checkbox-custom {
  background: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4 8L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.checkbox-input:checked+.checkbox-custom::after {
  display: none;
}

.checkbox-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.link {
  color: var(--orange);
}

.link:hover {
  text-decoration: underline;
}

/* Submit button disabled state */
#submitBtn:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
}

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: 32px;
  position: absolute;
  inset: 0;
  background: var(--dark-2);
  border-radius: var(--radius-xl);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.form-success.show {
  display: flex;
  animation: fadeIn .4s ease;
}

.form-success__icon {
  width: 72px;
  height: 72px;
  background: rgba(34, 197, 94, .15);
  border: 2px solid rgba(34, 197, 94, .4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  margin-bottom: 8px;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 700;
}

.form-success p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.form-success strong {
  color: var(--orange);
}

/* Sidebar form success overlay */
.sidebar-form__success {
  display: none;
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 10px;
  z-index: 2;
  border-radius: var(--radius-lg);
}

.sidebar-form__success.show {
  display: flex;
  animation: fadeIn .4s ease;
}

.sidebar-form__success .form-success__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 4px;
}

.sidebar-form__success h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}

.sidebar-form__success p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.sidebar-form__success strong {
  color: var(--orange);
}

/* ================================================
   GUARANTEE BANNER
   ================================================ */
.guarantee {
  padding: 56px 0;
  background: var(--black);
}

.guarantee__inner {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  border: 1px solid var(--orange-line);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.guarantee__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse 60% 80% at 0% 50%, var(--orange-glow), transparent);
  pointer-events: none;
}

.guarantee__icon {
  color: var(--orange);
  flex-shrink: 0;
  position: relative;
}

.guarantee__text {
  flex: 1;
  position: relative;
}

.guarantee__text h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.guarantee__text p {
  font-size: 16px;
  color: var(--muted);
}

.guarantee__text strong {
  color: var(--orange);
}

/* ================================================
   CLIENTS SECTION
   ================================================ */
.clients-section {
  background: var(--dark);
}

.big-clients {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.big-client-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-lg);
  padding: 0;
  overflow: hidden;
  text-align: center;
  transition: var(--transition);
}

.big-client-card:hover {
  border-color: var(--orange-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Logo display area — full card width, image-header style */
.big-client-card__icon {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  margin: 0;
  border-radius: 0;
  transition: background 0.35s ease;
}

.big-client-card:hover .big-client-card__icon {
  background: rgba(255, 255, 255, .12);
}

.big-client-card__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 22px 32px;
  filter: grayscale(1) brightness(1.15) contrast(0.9);
  opacity: 0.72;
  transition: filter 0.35s ease, opacity 0.35s ease;
}

.big-client-card:hover .big-client-card__logo {
  filter: grayscale(0);
  opacity: 1;
}

/* Text block below the logo */
.big-client-card__name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  padding: 18px 20px 4px;
  margin: 0;
}

.big-client-card__desc {
  font-size: 12px;
  color: var(--muted);
  padding: 0 20px 20px;
}

/* ================================================
   PORTFOLIO
   ================================================ */
.portfolio {
  background: var(--black);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
}

.portfolio-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  display: block;
}

.portfolio-item:hover img {
  transform: scale(1.07);
}

.portfolio-item--wide {
  grid-column: span 2;
}

.portfolio-item--tall {
  grid-row: span 2;
}

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 13, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}

.portfolio-item:hover .portfolio-item__overlay {
  opacity: 1;
}

.portfolio-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transform: scale(.7);
  transition: transform var(--transition);
}

.portfolio-item:hover .portfolio-item__icon {
  transform: scale(1);
}

/* ================================================
   CONTACTS
   ================================================ */
.contacts {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

/* Only the content container needs z-index lift, NOT the bg div */
.contacts>.container {
  position: relative;
  z-index: 1;
}

.contacts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contacts-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* 2×2 grid of contact blocks */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  flex: 1;
}

/* CTA button below the grid */
.contacts-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
}


.contact-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.contact-block__icon {
  width: 48px;
  height: 48px;
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}

.contact-block__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.contact-block__value {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--silver);
  transition: color var(--transition);
  line-height: 1.6;
}

a.contact-block__value:hover {
  color: var(--orange);
}

.contact-block__value--muted {
  font-size: 13px;
  color: var(--muted);
}

/* Brand card replacing the map */
.contacts-brand {
  display: flex;
  align-items: stretch;
}

.contacts-brand__card {
  position: relative;
  width: 100%;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 52px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  overflow: hidden;
  min-height: 380px;
  justify-content: center;
}

/* Logo-only variant: no text, just logo centered */
.contacts-brand__card--logo-only {
  min-height: unset;
  height: 100%;
  padding: 48px 32px;
}

.contacts-brand__logo--large {
  height: auto;
  width: 72%;
  max-width: 280px;
  margin-bottom: 0;
  opacity: 1;
}

/* Decorative blobs */
.contacts-brand__deco {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.contacts-brand__deco--1 {
  width: 220px;
  height: 220px;
  background: rgba(255, 107, 26, .12);
  top: -60px;
  right: -60px;
}
.contacts-brand__deco--2 {
  width: 160px;
  height: 160px;
  background: rgba(255, 107, 26, .07);
  bottom: -40px;
  left: -40px;
}

.contacts-brand__logo {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
  margin-bottom: 20px;
  position: relative;
}

.contacts-brand__name {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--white);
  margin-bottom: 20px;
  position: relative;
}

.contacts-brand__sep {
  width: 48px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  margin-bottom: 20px;
  position: relative;
}

.contacts-brand__tagline {
  font-size: 15px;
  color: var(--silver);
  margin-bottom: 16px;
  position: relative;
}

.contacts-brand__geo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 32px;
  position: relative;
}

.contacts-brand__btn {
  position: relative;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 64px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.footer__brand {
  flex-shrink: 0;
  max-width: 280px;
}


.footer-logo {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
}

.footer__tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: var(--transition);
}

.footer__social:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}

.footer__social-max-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.footer__nav-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer__nav-link {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__nav-link:hover {
  color: var(--orange);
}

.footer__bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy {
  font-size: 12px;
  color: var(--steel-light);
}

.footer__privacy {
  font-size: 12px;
  color: var(--steel-light);
  transition: color var(--transition);
}

.footer__privacy:hover {
  color: var(--orange);
}

/* ================================================
   LIGHTBOX
   ================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, .92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 16px 80px rgba(0, 0, 0, .7);
  transform: scale(.95);
  transition: transform .3s;
}

.lightbox.open .lightbox__img {
  transform: scale(1);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox__close:hover {
  background: var(--orange);
}

/* ================================================
   AOS — scroll animations
   ================================================ */
[data-aos] {
  opacity: 0;
  transition: opacity .65s ease, transform .65s ease;
}

[data-aos="fade-up"] {
  transform: translateY(32px);
}

[data-aos="fade-right"] {
  transform: translateX(-32px);
}

[data-aos="fade-left"] {
  transform: translateX(32px);
}

[data-aos="zoom-in"] {
  transform: scale(.94);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ================================================
   RESPONSIVE — Large Tablet / Laptop (≤ 1280px)
   ================================================ */
@media (max-width: 1280px) {
  .hero__inner {
    gap: 32px;
  }

  .form-layout {
    gap: 40px;
  }

  .article-layout {
    gap: 32px;
  }
}

/* ================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ================================================ */
@media (max-width: 1024px) {
  .navbar__nav {
    display: none;
  }

  .burger {
    display: flex;
  }

  .navbar__contacts .btn-sm {
    display: none;
  }

  .navbar__contacts .navbar__phone {
    font-size: 13px;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding-top: 110px;
    padding-bottom: 60px;
  }

  .hero__slider-wrap {
    max-width: 560px;
    margin: 0 auto;
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .big-clients {
    grid-template-columns: repeat(2, 1fr);
  }

  .contacts-layout {
    grid-template-columns: 1fr;
  }

  .contacts-map {
    height: 320px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }

  .footer__inner {
    flex-direction: column;
    gap: 40px;
  }

  .footer__brand {
    max-width: 100%;
  }

  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .guarantee__inner {
    flex-direction: column;
    text-align: center;
    padding: 40px 32px;
  }
}

/* ================================================
   RESPONSIVE — Mobile (≤ 768px)
   ================================================ */
@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Mobile nav */
  .navbar {
    padding: 14px 0;
  }

  .navbar__nav {
    display: flex;
    position: fixed;
    top: 88px;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }

  .navbar__nav.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    font-size: 20px;
    padding: 14px 28px;
    color: var(--white);
  }

  .hero__title {
    font-size: clamp(30px, 8vw, 48px);
    margin-top: 35px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  /* Убираем min-height:100vh на мобильном — контент короче экрана, образуется пустота */
  .hero {
    min-height: auto;
  }

  /* Убираем лишние отступы — gap и padding-bottom дают пустоту под слайдером */
  .hero__inner {
    padding-top: 15px;
    padding-bottom: 0;
    gap: 20px;
  }

  /* Статистика — компактная горизонтальная строка */
  .hero__stats {
    display: flex;
    flex-direction: row;
    gap: 0;
    padding: 10px 0 4px;
  }

  .hero__stat-num {
    font-size: 20px;
    margin-bottom: 2px;
  }

  .hero__stat-label {
    font-size: 10px;
    letter-spacing: 0;
  }

  .hero__stat-divider {
    width: 1px;
    height: 28px;
  }

  /* Прячем "Прокрутите вниз" на мобильном — перекрывает слайдер */
  .hero__scroll-hint {
    display: none;
  }

  .hero__slider-wrap {
    max-width: 100%;
  }

  .hero-slider {
    aspect-ratio: 16/10;
  }

  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }

  /* Убираем лишнее пространство между секциями на мобильном */
  .advantages {
    padding-bottom: 40px;
  }

  .services {
    padding: 40px 0;
  }

  .contact-form-section {
    padding-top: 36px;
  }

  .adv-card {
    padding: 24px 16px;
  }

  .adv-card__num {
    font-size: 40px;
  }

  .clients-row {
    flex-direction: column;
    gap: 24px;
  }

  .clients-row__logos {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Big clients — горизонтальный scroll-snap слайдер */
  .big-clients {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    overflow-y: visible;
    /* не обрезать тени и топ карточек */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 6px 0 12px;
    /* 6px сверху — пространство под тень/рамкой */
  }

  .big-clients::-webkit-scrollbar {
    display: none;
  }

  .big-client-card {
    flex: 0 0 78vw;
    scroll-snap-align: center;
    min-width: 0;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }

  .portfolio-item--wide,
  .portfolio-item--tall {
    grid-column: auto;
    grid-row: auto;
  }

  .application-form {
    padding: 24px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .guarantee__inner {
    padding: 32px 24px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contacts-brand {
    display: none;
  }

  .contacts-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .footer__nav {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer__nav-link {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ================================================ */
@media (max-width: 480px) {
  .adv-grid {
    grid-template-columns: 1fr;
  }

  .big-client-card {
    flex: 0 0 82vw;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }

  .footer__nav {
    grid-template-columns: 1fr;
  }

  /* Статы уже скрыты в 768px, убираем лишние правила */
}

/* ================================================
   INNER PAGE — Page Hero / Breadcrumb
   ================================================ */
.page-hero {
  background: var(--black);
  padding: 120px 0 56px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(249, 115, 22, .08), transparent),
    linear-gradient(rgba(8, 10, 13, .87), rgba(8, 10, 13, .93)),
    url('../img/bg-contacts.jpg') center / cover no-repeat;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  font-size: 13px;
}

.breadcrumb__link {
  color: var(--muted);
  transition: color var(--transition);
}

.breadcrumb__link:hover {
  color: var(--orange);
}

.breadcrumb__sep {
  color: var(--steel-light);
}

.breadcrumb__current {
  color: var(--silver);
}

/* Page title */
.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--white);
}

.page-hero__title span {
  color: var(--orange);
}

.page-hero__desc {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 24px;
}

.page-hero__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--steel-light);
}

.page-hero__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-hero__meta-item svg {
  color: var(--orange);
}

/* ================================================
   INNER PAGE — Article Layout
   ================================================ */
.article-section {
  background: var(--dark);
  padding: 64px 0 80px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
}

/* ---- Sidebar ---- */
.article-sidebar {
}

.toc-card {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
}

.toc-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
}

.toc-list li {
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.toc-list li:last-child {
  border-bottom: none;
}

.toc-list a {
  display: block;
  padding: 9px 0;
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition), padding-left var(--transition);
  line-height: 1.4;
}

.toc-list a:hover {
  color: var(--orange);
  padding-left: 4px;
}

.toc-list a.active {
  color: var(--white);
}

.toc-list--sub {
  padding-left: 12px;
}

.toc-list--sub a {
  font-size: 12px;
}

.sidebar-cta {
  background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
  border: 1px solid var(--orange-line);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
  overflow: hidden;
}

.sidebar-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 100% at 0% 0%, rgba(249, 115, 22, .08), transparent);
  pointer-events: none;
}

.sidebar-cta__label {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  position: relative;
}

.sidebar-cta__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  position: relative;
}

.sidebar-cta__desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 20px;
  position: relative;
}

.sidebar-cta .btn {
  position: relative;
  width: 100%;
  justify-content: center;
}

.sidebar-cta__phone {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--silver);
  position: relative;
  transition: color var(--transition);
}

.sidebar-cta__phone:hover {
  color: var(--orange);
}

/* Sidebar mini-form */
.sidebar-form {
  margin-top: 16px;
  position: relative;
}

.sidebar-form .form-group {
  margin-bottom: 24px;
  position: relative;
}

.sidebar-form .form-label {
  font-size: 12px;
  margin-bottom: 5px;
}

.sidebar-form .form-input {
  font-size: 13px;
  padding: 10px 12px;
  background: rgba(8, 10, 13, .6);
  border-color: rgba(255, 255, 255, .1);
}

.sidebar-form .form-input:focus {
  border-color: var(--orange);
}

.sidebar-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

/* ---- Article Content ---- */
.article-content {
  min-width: 0;
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
}

/* --- Типографика заголовков --- */
.article-content h1 {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--orange-line);
}

.article-content h2 {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--white);
  margin: 48px 0 20px;
  padding-left: 16px;
  border-left: 3px solid var(--orange);
  line-height: 1.25;
}

.article-content h2:first-child,
.article-content h1+h2 {
  margin-top: 0;
}

.article-content h3 {
  font-family: var(--font-head);
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 600;
  color: var(--white);
  margin: 36px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-content h3::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--orange);
  flex-shrink: 0;
}

.article-content h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--silver);
  margin: 28px 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 14px;
}

.article-content h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
  margin: 24px 0 10px;
  letter-spacing: .02em;
}

.article-content h6 {
  font-size: 13px;
  font-weight: 600;
  color: var(--steel-light);
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* --- Абзацы и текст --- */
.article-content p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 18px;
}

.article-content p.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--silver);
  margin-bottom: 28px;
  padding: 20px 24px;
  background: rgba(249, 115, 22, .04);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content strong {
  color: var(--white);
  font-weight: 700;
}

.article-content em {
  font-style: italic;
  color: var(--silver);
}

.article-content u {
  text-decoration-color: var(--orange);
}

.article-content a {
  color: var(--orange);
  transition: opacity var(--transition);
}

.article-content a:hover {
  opacity: .8;
  text-decoration: underline;
}

.article-content mark {
  background: rgba(249, 115, 22, .2);
  color: var(--orange);
  padding: 1px 4px;
  border-radius: 2px;
}

.article-content small {
  font-size: 12px;
  color: var(--steel-light);
}

.article-content sub,
.article-content sup {
  font-size: 10px;
  color: var(--muted);
}

/* --- Горизонтальный разделитель --- */
.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, var(--orange-line), rgba(255, 255, 255, .03));
  margin: 40px 0;
}

/* --- Списки --- */
.article-content ul,
.article-content ol {
  margin: 0 0 20px;
  padding-left: 0;
  list-style: none;
}

.article-content ul li,
.article-content ol li {
  position: relative;
  padding: 6px 0 6px 28px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.article-content ul li:last-child,
.article-content ol li:last-child {
  border-bottom: none;
}

/* Маркированный список — оранжевый ромб */
.article-content ul li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Нумерованный список — оранжевые цифры */
.article-content ol {
  counter-reset: ol-counter;
}

.article-content ol li {
  counter-increment: ol-counter;
}

.article-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: rgba(249, 115, 22, .15);
  border: 1px solid var(--orange-line);
  color: var(--orange);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/* Вложенные списки */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
  margin: 4px 0 4px 12px;
}

/* Список определений */
.article-content dl {
  margin: 0 0 20px;
}

.article-content dt {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  padding: 10px 0 4px;
}

.article-content dd {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  padding: 0 0 10px 20px;
  border-left: 2px solid rgba(249, 115, 22, .3);
  margin: 0 0 4px;
}

/* --- Цитата --- */
.article-content blockquote {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--dark-3);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  position: relative;
}

.article-content blockquote::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 24px;
  font-size: 64px;
  line-height: 1;
  color: var(--orange);
  opacity: .4;
  font-family: Georgia, serif;
}

.article-content blockquote p {
  font-size: 16px;
  color: var(--silver);
  font-style: italic;
  margin: 0 0 12px;
  line-height: 1.75;
}

.article-content blockquote p:last-child {
  margin: 0;
}

.article-content blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

.article-content blockquote cite strong {
  color: var(--orange);
  font-weight: 600;
}

/* --- Таблица --- */
.article-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, .08);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 480px;
}

.article-content thead tr {
  background: rgba(249, 115, 22, .1);
  border-bottom: 2px solid var(--orange-line);
}

.article-content th {
  padding: 14px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--orange);
  white-space: nowrap;
}

.article-content td {
  padding: 12px 18px;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  vertical-align: top;
  line-height: 1.5;
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

.article-content tbody tr:hover td {
  background: rgba(255, 255, 255, .02);
  color: var(--silver);
}

.article-content td strong {
  color: var(--white);
}

/* --- Код --- */
.article-content code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background: var(--dark-3);
  color: var(--orange);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, .08);
}

.article-content pre {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-md);
  padding: 24px;
  overflow-x: auto;
  margin: 24px 0;
}

.article-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--silver);
  font-size: 13px;
  line-height: 1.7;
}

/* --- Изображение --- */
.article-content figure {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
}

.article-content figure img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.article-content figcaption {
  background: var(--dark-3);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

/* --- Каллаут блоки --- */
.callout {
  margin: 28px 0;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border-left: 4px solid;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.callout__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.callout__body {
  flex: 1;
  min-width: 0;
}

.callout__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.callout__text {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.callout--info {
  background: rgba(249, 115, 22, .04);
  border-color: rgba(249, 115, 22, .25);
}

.callout--info .callout__icon,
.callout--info .callout__title {
  color: var(--silver);
}

.callout--info .callout__text {
  color: var(--muted);
}

.callout--warning {
  background: rgba(249, 115, 22, .08);
  border-color: var(--orange);
}

.callout--warning .callout__icon,
.callout--warning .callout__title {
  color: var(--orange);
}

.callout--warning .callout__text {
  color: var(--muted);
}

.callout--success {
  background: var(--dark-3);
  border-color: rgba(255, 255, 255, .15);
}

.callout--success .callout__icon,
.callout--success .callout__title {
  color: var(--white);
}

.callout--success .callout__text {
  color: var(--muted);
}

.callout--note {
  background: rgba(255, 255, 255, .025);
  border-color: rgba(255, 255, 255, .1);
}

.callout--note .callout__icon,
.callout--note .callout__title {
  color: var(--muted);
}

.callout--note .callout__text {
  color: var(--steel-light);
}

/* --- Разделитель параграфов --- */
.article-content .section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--steel-light);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.article-content .section-divider::before,
.article-content .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, .07);
}

/* Tags / badges inline */
.article-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid;
  margin: 2px;
}

.article-tag--orange {
  color: var(--orange);
  border-color: var(--orange-line);
  background: rgba(249, 115, 22, .08);
}

.article-tag--grey {
  color: var(--muted);
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
}

/* --- Article nav prev/next --- */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.article-nav__link {
  background: var(--dark-3);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
  display: block;
  text-decoration: none;
}

.article-nav__link:hover {
  border-color: var(--orange-line);
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

/* Override the global .article-content a:hover { text-decoration: underline } */
.article-content .article-nav__link,
.article-content .article-nav__link:hover {
  text-decoration: none;
}

.article-nav__link:hover .article-nav__title,
.article-nav__link:hover .article-nav__dir {
  text-decoration: none;
}

.article-nav__dir {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-nav__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

.article-nav__link--next {
  text-align: right;
  grid-column: 2; /* всегда в правой колонке, даже без кнопки «назад» */
}

.article-nav__link--next .article-nav__dir {
  justify-content: flex-end;
}

/* ================================================
   INNER PAGE — Responsive
   ================================================ */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 260px;
    gap: 32px;
  }

  .article-content {
    padding: 36px 40px;
  }
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 40px;
  }

  .article-section {
    padding: 32px 0 56px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .toc-card {
    display: none;
  }

  /* TOC скрыт на мобильном */
  .article-content {
    padding: 24px 20px;
  }

  .article-content h2 {
    margin-top: 32px;
  }

  .article-content blockquote {
    padding: 20px 20px;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .article-nav__link--next {
    grid-column: auto;
    text-align: left;
  }

  .article-nav__link--next .article-nav__dir {
    justify-content: flex-start;
  }

  .article-nav__link--next .article-nav__dir {
    justify-content: flex-start;
  }
}

/* ================================================
   PRIVACY MODAL
   ================================================ */
.privacy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 13, .85);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}

.privacy-modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity .3s ease, visibility 0s linear 0s;
}

.privacy-modal {
  background: var(--dark-2);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .7);
  transform: translateY(24px);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}

.privacy-modal-overlay.open .privacy-modal {
  transform: translateY(0);
}

.privacy-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  flex-shrink: 0;
}

.privacy-modal__title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}

.privacy-modal__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .10);
  color: var(--silver);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.privacy-modal__close:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.privacy-modal__body {
  overflow-y: auto;
  padding: 28px 28px 32px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}

.privacy-modal__body::-webkit-scrollbar {
  width: 5px;
}

.privacy-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.privacy-modal__body::-webkit-scrollbar-thumb {
  background: var(--steel);
  border-radius: 3px;
}

.privacy-modal__body h2 {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 24px 0 10px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
}

.privacy-modal__body h2:first-child {
  margin-top: 0;
}

.privacy-modal__body p,
.privacy-modal__body li {
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 10px;
}

.privacy-modal__body ul,
.privacy-modal__body ol {
  padding-left: 20px;
  margin-bottom: 14px;
}

.privacy-modal__body ul {
  list-style: disc;
}

.privacy-modal__body ol {
  list-style: decimal;
}

.privacy-modal__body strong {
  color: var(--silver);
}

.privacy-modal__body .privacy-company {
  font-size: 13px;
  color: var(--steel-light);
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .06);
}

/* Privacy link in forms */
.privacy-link {
  color: var(--orange);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity var(--transition);
}

.privacy-link:hover {
  opacity: .8;
}

/* ================================================
   VENTILATION PAGE — Animated Blocks
   ================================================ */

/* --- Intro icon block --- */
.vent-intro {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(249,115,22,.06), rgba(20,24,32,.0));
  border: 1px solid var(--orange-line);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  margin-bottom: 32px;
}

.vent-intro__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--orange-glow);
  border: 1px solid var(--orange-line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.vent-intro__text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--silver);
  margin: 0;
}

/* --- Ventilation Types Cards --- */
.vent-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 28px 0;
}

.vent-type-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.vent-type-card:hover,
.vent-type-card.open {
  border-color: var(--orange-line);
  box-shadow: 0 4px 24px rgba(249,115,22,.08);
}

.vent-type-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.vent-type-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(249,115,22,.1);
  border: 1px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  transition: var(--transition);
}

.vent-type-card:hover .vent-type-card__icon,
.vent-type-card.open .vent-type-card__icon {
  background: var(--orange);
  color: var(--white);
}

.vent-type-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}

.vent-type-card__short {
  font-size: 13px;
  color: var(--muted);
  flex: 2;
}

.vent-type-card__chevron {
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .3s ease;
}

.vent-type-card.open .vent-type-card__chevron {
  transform: rotate(180deg);
}

.vent-type-card__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .35s;
  padding: 0 20px;
}

.vent-type-card.open .vent-type-card__body {
  max-height: 200px;
  padding: 0 20px 20px;
}

.vent-type-card__detail {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* --- Principles block --- */
.vent-principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.vent-principle-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  text-align: center;
  transition: var(--transition);
}

.vent-principle-card:hover {
  border-color: var(--orange-line);
  transform: translateY(-3px);
}

.vent-principle-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(249,115,22,.1);
  border: 1px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  color: var(--orange);
}

.vent-principle-card__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.vent-principle-card__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Interaction Timeline --- */
.vent-timeline {
  margin: 28px 0;
  position: relative;
}

.vent-timeline::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 40px;
  bottom: 20px;
  width: 2px;
  background: linear-gradient(to bottom, var(--orange), rgba(249,115,22,.1));
}

.vent-timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 6px;
  position: relative;
}

.vent-timeline-item__num {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--dark-3);
  border: 2px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--orange);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.vent-timeline-item:hover .vent-timeline-item__num {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.vent-timeline-item__content {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  flex: 1;
  min-width: 0;
  margin-bottom: 16px;
  transition: var(--transition);
}

.vent-timeline-item:hover .vent-timeline-item__content {
  border-color: var(--orange-line);
}

.vent-timeline-item__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.vent-timeline-item__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.vent-timeline-item__list li {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  padding: 3px 0 3px 16px;
  position: relative;
}

.vent-timeline-item__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
}

/* --- Key Principles icons --- */
.vent-key-principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.vent-key-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  transition: var(--transition);
}

.vent-key-item:hover {
  border-color: var(--orange-line);
}

.vent-key-item__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(249,115,22,.1);
  border: 1px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.vent-key-item__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.vent-key-item__text strong {
  display: block;
  color: var(--white);
  font-size: 14px;
  margin-bottom: 2px;
}

/* --- Advantages grid (like main) --- */
.vent-adv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0;
}

.vent-adv-card {
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.vent-adv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.vent-adv-card:hover::before {
  transform: scaleX(1);
}

.vent-adv-card:hover {
  border-color: var(--orange-line);
  transform: translateY(-2px);
}

.vent-adv-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(249,115,22,.1);
  border: 1px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  margin-bottom: 14px;
}

/* Safari SVG stroke fix — currentColor inheritance ненадёжна в Safari */
.vent-adv-card__icon svg {
  stroke: var(--orange);
  fill: none;
  display: block;
}

.vent-adv-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.vent-adv-card__text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- Benefits block --- */
.vent-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.vent-benefit-item {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--dark-3);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  transition: var(--transition);
}

.vent-benefit-item:hover {
  border-color: var(--orange-line);
}

.vent-benefit-item__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(249,115,22,.1);
  border: 1px solid var(--orange-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}

.vent-benefit-item__text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.vent-benefit-item__text strong {
  color: var(--white);
}

/* --- Section CTA summary --- */
.vent-summary {
  background: linear-gradient(135deg, rgba(249,115,22,.08), rgba(20,24,32,0));
  border: 1px solid var(--orange-line);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
}

/* Sidebar form checkbox for privacy */
.sidebar-form .form-group--checkbox {
  margin-top: 10px;
}

.sidebar-form .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.sidebar-form .checkbox-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.sidebar-form .checkbox-custom {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 3px;
  position: relative;
  margin-top: 2px;
  transition: var(--transition);
}

.sidebar-form .checkbox-input:checked + .checkbox-custom {
  background: var(--orange);
  border-color: var(--orange);
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='10' viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5L4 8L11 1' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}

.sidebar-form .checkbox-input:checked + .checkbox-custom::after {
  display: none;
}

.sidebar-form .checkbox-text {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

/* Responsive for ventilation blocks */
@media (max-width: 768px) {
  /* Принципы работы — горизонтальный scroll-snap слайдер */
  .vent-principles {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 12px;
    /* padding-top нужен, чтобы hover transform translateY(-3px) не обрезался
       overflow-x:auto принудительно делает overflow-y:auto, что клипает карточку */
    padding-top: 4px;
    padding-bottom: 16px;
  }

  .vent-principles::-webkit-scrollbar {
    display: none;
  }

  .vent-principles .vent-principle-card {
    flex: 0 0 72vw;
    scroll-snap-align: start;
    min-width: 0;
  }

  .vent-key-principles {
    grid-template-columns: 1fr;
  }

  .vent-adv-grid {
    grid-template-columns: 1fr;
  }

  .vent-timeline::before {
    left: 20px;
  }

  .vent-timeline-item__num {
    width: 42px;
    height: 42px;
    font-size: 14px;
  }

  .vent-type-card__short {
    display: none;
  }
}

/* Кнопка "Оставить заявку" в мобильном меню */
.nav-mobile-cta {
  display: none;
}

@media (max-width: 768px) {
  .nav-mobile-cta {
    display: inline-flex;
    margin-top: 16px;
  }
}