/* =============================================
   СТИЛИ СЕКЦИЙ
   Каждая секция будет добавляться поэтапно
   ============================================= */

/* ===========================================
   HEADER
   =========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  padding: clamp(16px, 6.82vh, 65px) clamp(20px, 4.89vw, 92px) 0;
  transition: padding 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Scrolled (shrink) ---- */
.header--scrolled {
  padding: 0;
}

.header--scrolled .header__inner {
  height: clamp(48px, min(2.87vw, 5.67vh), 54px);
  padding: 0 clamp(20px, 4.89vw, 92px);
  background: rgba(255, 255, 255, 0.98);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 20px rgba(0, 0, 0, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.1);
}

.header--scrolled .header__logo svg {
  width: clamp(28px, min(1.81vw, 3.57vh), 34px);
  height: clamp(34px, min(2.23vw, 4.41vh), 42px);
}

.header--scrolled .header__theme-toggle,
.header--scrolled .header__language-toggle {
  height: clamp(28px, min(1.70vw, 3.36vh), 32px);
}

.header--scrolled .header__theme-toggle {
  width: clamp(28px, min(1.70vw, 3.36vh), 32px);
}

.header--scrolled .header__language-toggle {
  min-width: 0;
  padding: 0;
}

/* Desktop+Tablet inline nav: сжимаем gap и шрифт при скролле */
@media (min-width: 1024px) {
  .header--scrolled .header__nav-list {
    gap: clamp(56px, min(5.10vw, 10.08vh), 96px);
  }

  .header--scrolled .header__nav-link {
    font-size: clamp(15px, min(0.96vw, 1.89vh), 18px);
  }

  .header--scrolled .header__sout {
    font-size: clamp(15px, min(0.96vw, 1.89vh), 18px);
  }
}


.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  height: clamp(56px, min(3.72vw, 7.35vh), 70px);
  padding: 0 clamp(20px, min(2.13vw, 4.20vh), 40px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  border-radius: clamp(10px, min(0.75vw, 1.47vh), 14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 1px 2px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  will-change: height, padding;
  transition: background 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              border-radius 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.05s,
              height 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.03s,
              padding 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.03s;
}


/* Логотип в хедере */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header__logo svg {
  width: clamp(33px, min(2.23vw, 4.41vh), 42px);
  height: clamp(42px, min(2.77vw, 5.46vh), 52px);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s,
              height 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.04s;
}

/* Навигация */
.header__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: clamp(64px, min(5.85vw, 11.55vh), 110px);
  transition: gap 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

/* Пункт СОУТ внутри бургер-меню — только на мобилке.
   На десктопе скрываем, т.к. СОУТ там живёт отдельной кнопкой .header__sout. */
.header__nav-item--mobile-only {
  display: none;
}

.header__nav-link {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: clamp(16px, min(1.06vw, 2.10vh), 20px);
  line-height: clamp(22px, min(1.49vw, 2.94vh), 28px);
  color: #2a2a2a;
  white-space: nowrap;
  transition: opacity var(--transition-fast),
              color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__nav-link:hover {
  opacity: 0.7;
}

/* СОУТ */
.header__sout {
  flex-shrink: 0;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(16px, min(1.06vw, 2.10vh), 20px);
  line-height: clamp(22px, min(1.49vw, 2.94vh), 28px);
  color: #2a2a2a;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast),
              color 0.45s cubic-bezier(0.22, 1, 0.36, 1),
              font-size 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.header__sout:hover {
  opacity: 0.7;
}

/* Бургер (скрыт на десктопе) */
.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}

.header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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


/* ===========================================
   HERO
   =========================================== */
.hero {
  --hero-white-strip: 0px;
  position: relative;
  width: 100%;
  overflow: hidden;
  background-color: var(--color-white);
  transition: background-color 0.6s ease;
}

/* Тёмная верхняя часть hero (фон + изображение) */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* Покрываем всё кроме белой нижней полоски */
  height: calc(100% - var(--hero-white-strip));
  z-index: 1;
  background-color: var(--color-black);
}


/* Контент поверх фона */
.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: calc(100vh + var(--hero-white-strip));
  min-height: calc(100dvh + var(--hero-white-strip));
  padding: 0 92px 0;
}

/* Слоган справа — в тёмной зоне */
.hero__tagline {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light, 300);
  font-size: clamp(20px, min(1.60vw, 3.15vh), 30px);
  line-height: clamp(26px, min(1.86vw, 3.67vh), 35px);
  color: #ffffff;
  text-align: right;
  align-self: flex-end;
  /* Отрицательный margin тянет слоган к лого */
  margin-bottom: -10em;
  transition: color 0.6s ease;
}

/* Нижняя часть: логотип */
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-bottom: var(--hero-white-strip);
}

/* Большой логотип "Войкан" */
.hero__logo-title {
  display: flex;
  align-items: flex-end;
  position: relative;
  color: #ffffff;
  margin-bottom: -1.2em;
  transition: color 0.6s ease;
}

.hero__logo-svg {
  width: clamp(400px, 62vw, 1191px);
  height: auto;
  display: block;
  color: currentColor;
}

/* --- Theme toggle button (in header, after СОУТ) --- */
.header__theme-toggle {
  flex-shrink: 0;
  width: clamp(32px, min(1.91vw, 3.78vh), 36px);
  height: clamp(32px, min(1.91vw, 3.78vh), 36px);
  margin-left: clamp(20px, min(2.55vw, 5.04vh), 48px);
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-black);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base),
              width 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s,
              height 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.header__theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

.header--dark .header__theme-toggle {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.header--dark .header__theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header__language-toggle {
  flex-shrink: 0;
  min-width: 0;
  height: clamp(32px, min(1.91vw, 3.78vh), 36px);
  margin-left: clamp(20px, min(2.55vw, 5.04vh), 48px);
  padding: 0;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
  color: var(--color-black);
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  line-height: 1;
  transition: color var(--transition-base), opacity var(--transition-base),
              height 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.header__language-toggle:hover {
  opacity: 0.72;
}

.header__language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: rgba(42, 42, 42, 0.58);
  transition: color var(--transition-base);
}

.header__language-option.is-active {
  color: var(--color-black);
}

.header__language-divider {
  width: 1px;
  height: 16px;
  background: rgba(42, 42, 42, 0.38);
}

.header--dark .header__language-toggle {
  color: var(--color-white);
}

.header--dark .header__language-toggle:hover {
  opacity: 0.76;
}

.header--dark .header__language-option {
  color: rgba(255, 255, 255, 0.56);
}

.header--dark .header__language-option.is-active {
  color: var(--color-white);
}

.header--dark .header__language-divider {
  background: rgba(255, 255, 255, 0.46);
}

.header--dark.header--scrolled .header__inner {
  background: rgba(30, 30, 30, 0.98);
  border-top: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

/* Приподнимаем лого/контент от нижнего края hero */
.hero .hero__bottom {
  padding-bottom: clamp(2.8rem, 5.6vw, 5.6rem);
}

/* Главная: опускаем слоган к нижней границе логотипа */
.hero:not(.vacancies-hero) .hero__tagline {
  text-align: left;
  margin-bottom: -10.7em;
}

/* ===========================================
   HERO — DARK VARIANT
   =========================================== */
.hero--dark {
  background-color: var(--color-white);
}

.hero--dark .hero__bg {
  background-color: #0a0a0a;
}

.hero--dark .hero__tagline {
  color: var(--color-white);
}

.hero--dark .hero__logo-title {
  color: var(--color-white);
}

/* ===========================================
   HEADER — DARK VARIANT
   =========================================== */
.header--dark .header__inner {
  background: rgba(30, 30, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 1px 2px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.header--dark .header__nav-link {
  color: var(--color-white);
}

.header--dark .header__sout {
  color: var(--color-white);
}

.header--dark .header__burger span {
  background-color: var(--color-white);
}

/* Mobile nav panel — dark */
@media (max-width: 1023px) {
  .header--dark .header__nav {
    background: #1a1a1a;
    box-shadow: -4px 4px 24px rgba(0, 0, 0, 0.4);
  }

  .header--dark::before {
    background: rgba(0, 0, 0, 0.5);
  }

  .header--dark .header__nav-link {
    color: var(--color-white);
  }

  .header--dark .header__nav-list li:not(:last-child)::after {
    border-color: rgba(255, 255, 255, 0.15);
  }

  .header__theme-toggle {
    width: 32px;
    height: 32px;
  }
}


/* ===========================================
   ABOUT (О компании)
   =========================================== */
.about {
  position: relative;
  background-color: #F7F7F7;
  color: var(--color-black);
  padding: clamp(56px, 8vh, 85px) var(--page-gutter) clamp(48px, 8vh, 85px);
  overflow: hidden;
}

.about__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
}

.about__header {
  position: relative;
  z-index: 2;
  margin-bottom: clamp(20px, 3vh, 40px);
}

.about__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  color: var(--color-red);
  margin-bottom: clamp(16px, min(2.4vw, 2.5vh), 38px);
}

.about__description {
  font-family: var(--font-primary);
  font-size: var(--section-lead-size);
  line-height: 1.17;
  color: #484848;
  max-width: clamp(300px, 38vw, 720px);
}

.about__description-bold {
  font-weight: var(--font-weight-medium);
}

.about__description-light {
  font-weight: var(--font-weight-light);
}

.about__map {
  position: relative;
  width: min(100%, 130vh);
  max-width: 1480px;
  aspect-ratio: 1482 / 833;
  margin: clamp(-180px, -9vw, -40px) auto clamp(64px, 8vh, 120px);
}

.about__map-base {
  width: 100%;
  height: auto;
  aspect-ratio: 1482 / 833;
  display: block;
}

/* Лейбл региона на карте */
.about__map-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: absolute;
  z-index: 2;
  white-space: nowrap;
  pointer-events: none;
  transition: none;
  transform-origin: left center;
}

.about__map-label-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(10px, min(1.37vw, 2vh), 26px);
  line-height: 0.95;
  white-space: nowrap;
}

/* Позиция лейбла: Западно-Сибирский — Figma: 505/1480=34.1%, 492/833=59% */
.about__map-label--siberia {
  left: 41.3%;
  top: 72.2%;
}

.about__map-label--siberia .about__map-label-text {
  color: #fff;
}

/* Позиция лейбла: Северо-Каспийский — Figma: 132/1480=8.9%, 774/833=92.9% */
.about__map-label--caspian {
  left: 14.45%;
  top: 89.95%;
}

.about__map-label--caspian .about__map-label-text {
  color: var(--color-red);
}

.about__map-city {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  pointer-events: none;
}

.about__map-city-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(14px, 1vw, 20px);
  height: clamp(14px, 1vw, 20px);
  max-width: none;
  transform: translate(-50%, -50%);
}

.about__map-city-text {
  position: absolute;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(13px, min(1.12vw, 1.65vh), 20px);
  line-height: 1;
  white-space: nowrap;
}

.about__map-city--kogalym {
  left: 41.4%;
  top: 67.2%;
}

.about__map-city--kogalym .about__map-city-text {
  left: clamp(11px, 0.85vw, 15px);
  top: 50%;
  color: var(--color-white);
  transform: translateY(-50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.about__map-city--astrakhan {
  left: 13.25%;
  top: 85.75%;
}

.about__map-city--astrakhan .about__map-city-text {
  left: clamp(11px, 0.85vw, 15px);
  top: 50%;
  bottom: auto;
  color: var(--color-red);
  transform: translateY(-50%);
}

.about__mission {
  display: grid;
  grid-template-columns: max-content minmax(300px, max-content) minmax(0, 1fr) minmax(520px, clamp(520px, 40vw, 720px));
  align-items: center;
  column-gap: clamp(28px, 3vw, 64px);
  row-gap: clamp(24px, 3vw, 60px);
  margin-top: clamp(10px, 2vh, 30px);
}

@media (min-width: 1280px) {
  .about__mission {
    grid-template-columns: max-content minmax(300px, max-content) minmax(0, 1fr) minmax(620px, clamp(620px, 40vw, 720px));
  }
}

.about__mission-title-block {
  justify-self: start;
}

.about__mission-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(32px, min(3.4vw, 5.5vh), 65px);
  line-height: 1.08;
  color: var(--color-red);
  text-transform: uppercase;
}

.about__mission-values {
  grid-column: 2;
  border-left: 3px solid var(--color-red);
  padding-left: clamp(12px, 1.5vw, 24px);
  justify-self: start;
  margin-left: clamp(12px, 1.2vw, 28px);
}

.about__mission-values-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: clamp(14px, min(1.56vw, 2.6vh), 30px);
  line-height: 1.33;
  color: #353535;
  white-space: nowrap;
}

.about__mission-geo {
  grid-column: 4;
  justify-self: end;
  width: min(100%, clamp(620px, 40vw, 720px));
}

.about__mission-geo-text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: clamp(14px, min(1.56vw, 2.6vh), 30px);
  line-height: 1.33;
  color: #353535;
}

.about__mission-geo-text strong {
  font-weight: var(--font-weight-bold);
}

.about__mission-geo-light {
  font-weight: var(--font-weight-light);
}

.about__mission-geo-light br {
  display: none;
}


/* ===========================================
   MEANING (Значение имени)
   =========================================== */
.meaning {
  position: relative;
  z-index: 2;
  background-color: var(--color-white);
  padding: clamp(180px, 14vh, 240px) var(--page-gutter);
  padding-top: clamp(64px, min(4.2vw, 8.4vh), 80px);
  padding-bottom: 0;
  overflow: visible;
}

.meaning__inner {
  position: relative;
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(620px, 1.08fr);
  align-items: flex-start;
  gap: clamp(24px, 3vw, 60px);
}

.meaning__content {
  flex: 1;
  padding-left: 0;
  padding-bottom: clamp(12px, 1vw, 18px);
  margin-top: clamp(44px, 3.125vw, 60px);
  margin-bottom: clamp(44px, 3.125vw, 60px);
}

.meaning__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  color: #484848;
  margin-bottom: clamp(48px, 3.65vw, 70px);
}

.meaning__texts {
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.5vh, 28px);
  max-width: 620px;
}

.meaning__text {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: clamp(18px, min(1.32vw, 2.2vh), 25px);
  line-height: 1.33;
  color: #484848;
}

.meaning__text--narrow {
  max-width: 620px;
}

.meaning__text--wide {
  max-width: 560px;
}

.meaning__logo {
  align-self: flex-start;
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(24px, 2.5vw, 48px);
  min-width: 0;
  width: 100%;
  outline: none;
  perspective: 1200px;
}

svg.meaning__logo-svg {
  flex: 0 1 auto;
  width: clamp(300px, min(30vw, 49vh), 560px);
  height: auto;
  display: block;
  margin-bottom: clamp(-82px, -3.57vw, -42px);
  margin-right: 0;
  transform: translateZ(0);
  transform-origin: 52% 48%;
  filter: drop-shadow(0 0 0 rgba(224, 47, 18, 0));
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
  will-change: transform, filter;
}

.meaning__logo:hover svg.meaning__logo-svg,
.meaning__logo:focus-visible svg.meaning__logo-svg,
.meaning__logo--open svg.meaning__logo-svg {
  transform: translateY(-8px) rotateY(-10deg) rotateX(4deg) scale(1.075);
  filter:
    drop-shadow(18px 20px 0 rgba(122, 24, 10, 0.18))
    drop-shadow(0 28px 32px rgba(53, 53, 53, 0.2));
}

.meaning__logo-note {
  position: relative;
  flex: 0 0 clamp(280px, 19vw, 380px);
  margin-top: clamp(-8px, 0.8vw, 18px);
  z-index: 4;
  width: auto;
  padding: clamp(16px, 1.35vw, 24px);
  border-left: 3px solid var(--color-red);
  background: rgba(255, 255, 255, 0.92);
  color: #353535;
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.965);
  filter: blur(8px);
  pointer-events: none;
  transition:
    opacity 0.5s ease 0.08s,
    transform 0.72s cubic-bezier(0.16, 1, 0.3, 1) 0.04s,
    filter 0.55s ease 0.08s;
  will-change: opacity, transform, filter;
}

.meaning__logo:hover .meaning__logo-note,
.meaning__logo:focus-visible .meaning__logo-note,
.meaning__logo--open .meaning__logo-note {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.meaning__logo-note-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(18px, 1.3vw, 25px);
  line-height: 1.08;
  color: #353535;
}

.meaning__logo-note-text {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: clamp(13px, 0.9vw, 17px);
  line-height: 1.42;
  color: #353535;
}


/* ===========================================
   SERVICES (Наши услуги)
   =========================================== */
.services {
  background-color: #F7F7F7;
  color: #2a2a2a;
  padding: clamp(48px, min(7.3vw, 9vh), 140px) 92px clamp(60px, min(7vw, 10vh), 134px);
  position: relative;
}

.services__inner {
  max-width: 1736px;
  margin: 0 auto;
  display: flex;
  gap: clamp(20px, min(2.6vw, 5.2vh), 50px);
  align-items: center;
}

/* ===========================================
   CONTACT (Контакты)
   =========================================== */
.contact {
  --contact-accent: #EC3F22;
  background-color: var(--color-white);
  scroll-margin-top: 100px;
  padding: clamp(120px, 10vw, 180px) clamp(16px, 4.8vw, 92px) clamp(48px, 4.5vw, 80px);
  position: relative;
}

/* ── Заголовок секции ── */
.contact__header {
  max-width: 1736px;
  margin: 0 auto;
  margin-bottom: clamp(32px, 3.2vw, 56px);
}

.contact__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  color: #353535;
  margin: 0;
}

/* ── Карточки ── */
.contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.6vw, 28px);
  max-width: 1736px;
  margin: 0 auto clamp(48px, 4.5vw, 80px);
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #F7F7F7;
  border: 0;
  border-radius: 12px;
  padding: clamp(20px, 2vw, 32px);
}

.contact-card__body {
  width: 100%;
  min-width: 0;
}

.contact-card__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(0.95rem, 1.2vw, 1.25rem);
  line-height: 1.2;
  color: var(--contact-accent);
  margin: 0 0 clamp(10px, 1vw, 16px);
}

.contact-card__desc {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: clamp(0.8rem, 0.95vw, 1rem);
  line-height: 1.5;
  color: #333;
  margin: 0 0 clamp(14px, 1.4vw, 24px);
}

.contact-card__email-line {
  font-family: var(--font-primary);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  line-height: 1.4;
  color: #333;
  margin: 0;
  white-space: nowrap;
  padding-top: clamp(14px, 1.4vw, 24px);
  position: relative;
}

.contact-card__email-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--contact-accent);
}

.contact-card__email-label {
  font-weight: var(--font-weight-regular);
}

.contact-card__email {
  color: var(--contact-accent);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  transition: text-decoration-color 0.2s;
}

.contact-card__email:hover {
  text-decoration: underline;
}

.contact-card__email-sep {
  color: #333;
  font-weight: var(--font-weight-regular);
}

.contact-card__icon {
  position: absolute;
  right: clamp(20px, 2vw, 32px);
  bottom: clamp(20px, 2vw, 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--contact-icon-size, 48px);
  height: var(--contact-icon-size, 48px);
}

.contact-card__icon--lowered {
  transform: translateY(6px);
}

.contact-card__icon::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: var(--contact-accent);
  -webkit-mask: var(--contact-icon) center / contain no-repeat;
  mask: var(--contact-icon) center / contain no-repeat;
}

/* ── Блок формы ── */
.contact__form-section {
  position: relative;
  max-width: 1736px;
  margin: 0 auto;
  padding: clamp(24px, 2.5vw, 44px);
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 4vw, 80px);
  background: #F7F7F7;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
}

.contact__form-intro {
  position: relative;
  z-index: 1;
  flex: 0 0 clamp(320px, 32vw, 560px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 28px);
  min-height: clamp(280px, 24vw, 390px);
  padding-bottom: clamp(72px, 7vw, 116px);
}

.contact__form-title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  color: #353535;
  margin: 0;
  white-space: nowrap;
  flex-shrink: 0;
}

.contact__form-text {
  max-width: 430px;
  margin: 0;
  color: #353535;
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.08vw, 20px);
  font-weight: var(--font-weight-regular);
  line-height: 1.45;
}

.contact__form {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 1.4vw, 22px);
  flex: 1;
  max-width: 900px;
  margin-left: auto;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 1.4vw, 22px);
}

.contact__input,
.contact__textarea {
  width: 100%;
  padding: clamp(11px, 0.92vw, 16px) clamp(20px, 1.6vw, 28px);
  font-family: var(--font-primary);
  font-size: clamp(0.875rem, 1vw, 1.0625rem);
  border: 1px solid rgba(236, 63, 34, 0.48);
  border-radius: 0.5rem;
  background: var(--color-white);
  color: var(--color-black);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact__input::placeholder,
.contact__textarea::placeholder {
  color: var(--color-gray-400);
  font-weight: var(--font-weight-light);
}

.contact__input:focus,
.contact__textarea:focus {
  border-color: #EC3F22;
  box-shadow: 0 0 0 2px rgba(236, 63, 34, 0.15);
}

.contact__textarea {
  resize: vertical;
  height: clamp(70px, 7vw, 112px);
  min-height: 56px;
  overflow: auto;
}

.contact__textarea::-webkit-resizer {
  display: none;
}

/* Кастомный уголок ресайза для textarea */
.contact__textarea-wrap {
  position: relative;
}

.contact__textarea-wrap textarea {
  padding-bottom: clamp(24px, 2.1vw, 32px);
}

.contact__textarea-wrap::after {
  content: '';
  position: absolute;
  right: 3px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34' viewBox='0 0 34 34' fill='none'%3E%3Cg clip-path='url(%23clip0_3512_3815)'%3E%3Cpath d='M17.5018 18.2513L6.89521 18.2513C6.69619 18.2513 6.50532 18.1722 6.36458 18.0315C6.22385 17.8908 6.14479 17.6999 6.14479 17.5009C6.14479 17.3018 6.22385 17.111 6.36459 16.9702C6.50532 16.8295 6.69619 16.7504 6.89521 16.7504L16.7521 16.7511L16.7514 6.89426C16.7514 6.69523 16.8305 6.50436 16.9712 6.36363C17.1119 6.2229 17.3028 6.14384 17.5018 6.14384C17.7008 6.14384 17.8917 6.2229 18.0324 6.36363C18.1732 6.50436 18.2522 6.69523 18.2522 6.89426L18.2522 17.5009C18.2523 17.5994 18.2329 17.697 18.1952 17.7881C18.1575 17.8792 18.1023 17.9619 18.0326 18.0316C17.9629 18.1013 17.8801 18.1566 17.789 18.1943C17.698 18.232 17.6004 18.2513 17.5018 18.2513ZM23.5555 22.8042L23.5555 12.1976C23.5555 11.9985 23.4765 11.8077 23.3357 11.6669C23.195 11.5262 23.0041 11.4471 22.8051 11.4471C22.6061 11.4471 22.4152 11.5262 22.2745 11.6669C22.1338 11.8077 22.0547 11.9985 22.0547 12.1976L22.0554 22.0544L12.1985 22.0537C11.9995 22.0537 11.8086 22.1328 11.6679 22.2735C11.5272 22.4143 11.4481 22.6051 11.4481 22.8042C11.4481 23.0032 11.5272 23.1941 11.6679 23.3348C11.8086 23.4755 11.9995 23.5546 12.1985 23.5546H22.8051C22.9037 23.5546 23.0013 23.5353 23.0924 23.4976C23.1834 23.4599 23.2662 23.4046 23.3359 23.3349C23.4056 23.2652 23.4608 23.1825 23.4985 23.0914C23.5362 23.0003 23.5556 22.9027 23.5555 22.8042Z' fill='%23EC3F22'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_3512_3815'%3E%3Crect width='24' height='24' fill='white' transform='translate(16.9706) rotate(45)'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ── Чекбокс согласия ── */
.contact__checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: clamp(10px, 1vw, 14px);
  margin-top: clamp(4px, 0.5vw, 8px);
}

.contact__checkbox {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  appearance: none;
  border: 1px solid var(--contact-accent);
  border-radius: 6px;
  background: var(--color-white);
  accent-color: var(--contact-accent);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.contact__checkbox::before {
  content: '';
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: rotate(-45deg) translate(1px, -1px) scale(0);
  transition: transform var(--transition-fast);
}

.contact__checkbox:checked {
  background: var(--contact-accent);
}

.contact__checkbox:checked::before {
  transform: rotate(-45deg) translate(1px, -1px) scale(1);
}

.contact__checkbox:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(236, 63, 34, 0.16);
}

.contact__checkbox-text {
  font-family: var(--font-primary);
  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  line-height: 1.5;
  color: #333;
}

.contact__link {
  color: #EC3F22;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s;
}

.contact__link:hover {
  text-decoration-color: transparent;
}

.contact__actions {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 22px);
  margin-top: clamp(10px, 1.2vw, 20px);
}

/* ── Кнопка отправки ── */
.contact__submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: clamp(8px, 0.8vw, 14px);
  width: clamp(200px, 15vw, 300px);
  height: clamp(50px, 3.9vw, 75px);
  padding: 0;
  background: #EC3F22;
  color: #FFF;
  border: none;
  border-radius: clamp(6px, 0.53vw, 10px);
  font-family: var(--font-primary);
  font-size: clamp(16px, 1.4vw, 26px);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.019em;
  cursor: pointer;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.contact__submit-btn:hover:not(:disabled) {
  filter: brightness(0.92);
}

.contact__submit-btn:disabled {
  cursor: not-allowed;
}

.contact__submit-btn img {
  width: clamp(24px, 2.2vw, 43px);
  height: clamp(24px, 2.2vw, 43px);
  object-fit: contain;
}

.contact__notice {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: clamp(42px, 3.1vw, 56px);
  max-width: min(100%, 420px);
  padding: clamp(10px, 0.9vw, 14px) clamp(16px, 1.3vw, 22px) clamp(10px, 0.9vw, 14px) clamp(42px, 3.1vw, 54px);
  border-radius: clamp(8px, 0.65vw, 12px);
  background: #fff;
  border: 1px solid rgba(53, 53, 53, 0.1);
  box-shadow: 0 10px 28px rgba(53, 53, 53, 0.08);
  font-family: var(--font-primary);
  font-size: clamp(0.8125rem, 0.88vw, 0.9375rem);
  line-height: 1.32;
  font-weight: var(--font-weight-medium);
  color: #353535;
}

.contact__notice::before {
  content: '';
  position: absolute;
  left: clamp(14px, 1.1vw, 18px);
  top: 50%;
  width: clamp(16px, 1.2vw, 20px);
  height: clamp(16px, 1.2vw, 20px);
  border-radius: 50%;
  transform: translateY(-50%);
}

.contact__notice::after {
  content: '';
  position: absolute;
  left: clamp(19px, 1.43vw, 24px);
  top: 50%;
  width: clamp(7px, 0.52vw, 9px);
  height: clamp(4px, 0.32vw, 6px);
  border-left: 2px solid var(--color-white);
  border-bottom: 2px solid var(--color-white);
  transform: translateY(-64%) rotate(-45deg);
}

.contact__notice--success {
  border-color: rgba(46, 145, 77, 0.2);
}

.contact__notice--success::before {
  background: #2E914D;
}

.contact__notice--error {
  border-color: rgba(236, 63, 34, 0.28);
}

.contact__notice--error::before {
  background: var(--color-red);
}

.contact__notice--error::after {
  width: clamp(8px, 0.6vw, 10px);
  height: 2px;
  border: 0;
  background: var(--color-white);
  transform: translateY(-50%);
}


/* ===========================================
   BLOG (Новостной блог)
   =========================================== */
.blog {
  scroll-margin-top: 20px;
  position: relative;
  padding: clamp(42px, 3.7vw, 72px) 0 clamp(56px, min(6.4vw, 7.8vh), 112px);
  overflow: hidden;
  background: #ECECEC;
}

/* Split background: white top, #ECECEC bottom — граница совпадает с границей фото на карточках */
.blog::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 53.5%;
  background: #FFFFFF;
  z-index: 0;
  pointer-events: none;
}

.blog__inner {
  position: relative;
  z-index: 1;
}

.blog__title {
  --blog-title-gutter: var(--page-gutter);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  color: #EC3F22;
  width: min(calc(100% - var(--blog-title-gutter) - var(--blog-title-gutter)), var(--page-max));
  margin-right: auto;
  margin-left: auto;
  margin-top: clamp(9px, min(0.85vw, 1.7vh), 16px);
  margin-bottom: clamp(4px, min(0.45vw, 0.9vh), 8px);
}

/* ---- Carousel layout ---- */
.blog__carousel {
  position: relative;
  display: flex;
  align-items: center;
}

.blog__viewport {
  flex: 1;
  width: 100%;
  max-width: calc(clamp(273px, 22.8vw, 437px) * 5);
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  min-height: clamp(397px, min(42.6vw, 79.4vh), 838px);
  transform: translateY(clamp(-12px, -1.1vw, -7px));
  margin-bottom: clamp(46px, calc(7vw - 28px), 110px);
}

.blog__track {
  display: flex;
  align-items: center;
  backface-visibility: hidden;
}

.blog__slide {
  --blog-card-height: clamp(397px, min(42.6vw, 79.4vh), 838px);
  --blog-card-scale: 1;
  --blog-card-shift: 0px;
  --blog-card-y-shift: 0px;
  --blog-card-shade-direction: to right;
  --blog-card-shade-opacity: 0;
  flex: 0 0 clamp(273px, 22.8vw, 437px);
  min-width: 0;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(4px, 0.45vw, 8px);
  transition: opacity 0.5s ease, filter 0.5s ease;
}

.blog__slide .blog__card {
  width: 100%;
  flex: 0 0 auto;
}

/* ---- Card base (same proportions as Services cards) ---- */
.blog__card {
  border-radius: 1.25rem;
  overflow: hidden;
  display: grid;
  grid-template-rows: 59fr 41fr;
  height: var(--blog-card-height);
  min-height: 0;
  position: relative;
  transform: translate3d(var(--blog-card-shift), var(--blog-card-y-shift), 0) scale(var(--blog-card-scale));
  transform-origin: center center;
  will-change: transform;
  transition: opacity 0.5s ease;
}

/* Position-based sizing */
.blog__card--pos-center {
  --blog-card-scale: 1;
  --blog-card-shade-opacity: 0;
  z-index: 3;
}

.blog__card--pos-near {
  --blog-card-scale: 0.91;
  --blog-card-shade-opacity: 0.1;
  z-index: 2;
}

.blog__card--pos-far {
  --blog-card-scale: 0.82;
  --blog-card-shade-opacity: 0.28;
  z-index: 1;
}

.blog__card--pos-near-left,
.blog__card--pos-far-left {
  --blog-card-shade-direction: to right;
}

.blog__card--pos-near-right,
.blog__card--pos-far-right {
  --blog-card-shade-direction: to left;
}

.blog__card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: var(--blog-card-shade-opacity);
  background: linear-gradient(var(--blog-card-shade-direction), rgba(26, 26, 26, 0.34), rgba(26, 26, 26, 0.08) 62%, rgba(26, 26, 26, 0));
}

/* ---- Card variant backgrounds ---- */
.blog__card--red {
  background-color: #EC3F22;
  color: var(--color-white);
}

.blog__card--white {
  background-color: #F7F7F7;
  color: #2a2a2a;
}

.blog__card--gray {
  background-color: #9F9F9F;
  color: var(--color-white);
}

/* ---- Illustration / photo area ---- */
/* Единый стиль для ВСЕХ карточек (gray, red, white) */
.blog__card-illustration {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  background-color: #D9D9D9;
  min-height: 0;
}

.blog__card-illustration img {
  width: 100%;
  max-width: 81%;
  height: auto;
  object-fit: contain;
}

/* Placeholder icon */
.blog__card-illustration--photo img.blog__photo-icon {
  width: clamp(40px, 3.6vw, 70px);
  max-width: clamp(40px, 3.6vw, 70px);
  height: clamp(40px, 3.6vw, 70px);
  opacity: 1;
}

/* Real uploaded photo — заполняет всю область без padding */
.blog__card-illustration:has(.blog__card-real-photo) {
  padding: 0;
  width: calc(100% + 2px);
  margin: 0 -1px;
  background-color: #D9D9D9;
  contain: paint;
}

.blog__card-illustration img.blog__card-real-photo {
  width: calc(100% + 2px);
  max-width: calc(100% + 2px);
  height: 100%;
  margin-left: -1px;
  object-fit: cover;
  display: block;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

/* ---- Card bottom content ---- */
.blog__card-bottom {
  padding: clamp(10px, min(1.4vw, 2.7vh), 26px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(8px, min(1.6vw, 3.1vh), 30px);
  overflow: hidden;
  min-height: 0;
}

.blog__card-title {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(14px, min(1.86vw, 3.67vh), 35px);
  line-height: clamp(18px, min(2.13vw, 4.20vh), 40px);
  text-transform: uppercase;
  color: inherit;
}


/* ---- Text action ---- */
.blog__card-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: clamp(4px, min(0.42vw, 0.84vh), 8px);
  position: relative;
  padding: 0;
  border: none;
  color: inherit;
  background: transparent;
  font-family: var(--font-primary);
  font-size: clamp(14px, min(1.60vw, 3.15vh), 30px);
  font-style: normal;
  font-weight: 500;
  line-height: clamp(14px, min(1.60vw, 3.15vh), 30px);
  letter-spacing: 0;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.blog__card-btn:hover {
  opacity: 0.72;
}

.blog__card-btn span {
  display: inline-flex;
  align-items: center;
  color: inherit;
  letter-spacing: 0;
}

.blog__card-btn-icon {
  width: clamp(18px, min(1.8vw, 3.5vh), 34px);
  height: clamp(18px, min(1.8vw, 3.5vh), 34px);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__card-btn-arrow {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog__card--white .blog__card-btn-arrow {
  filter: brightness(0) saturate(100%) invert(15%) sepia(0%) saturate(0%) hue-rotate(189deg) brightness(92%) contrast(88%);
}

/* ---- Navigation arrows ---- */
.blog__arrow {
  position: absolute;
  top: calc(-1 * clamp(19px, min(1.7vw, 3.4vh), 35px));
  transform: translateY(-50%);
  z-index: 10;
  width: clamp(28px, 2.2vw, 42px);
  height: clamp(28px, 2.2vw, 42px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity var(--transition-fast);
  background: none;
  border: none;
  padding: 0;
}

.blog__arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(58%);
  opacity: 0.85;
}

.blog__arrow--prev {
  left: auto;
  right: clamp(56px, 6.5vw, 124px);
}

.blog__arrow--next {
  right: clamp(20px, 3.5vw, 65px);
}

.blog__arrow:hover:not(:disabled) {
  opacity: 0.8;
}

.blog__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.news-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 48px);
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: newsModalFadeIn 0.22s ease both;
}

.news-modal {
  position: relative;
  width: min(1360px, calc(100vw - 48px));
  min-height: min(94vh, 980px);
  max-height: min(94vh, 980px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #F7F7F7;
  color: #2a2a2a;
  font-family: var(--font-primary);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  animation: newsModalSlideIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.news-modal__close {
  position: absolute;
  top: clamp(14px, 1.5vw, 24px);
  right: clamp(14px, 1.5vw, 24px);
  z-index: 3;
  width: clamp(38px, 3vw, 52px);
  height: clamp(38px, 3vw, 52px);
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #B9C0CB;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.news-modal__close:hover {
  background: #F0F2F4;
  color: #2a2a2a;
}

.news-modal__nav {
  position: absolute;
  top: clamp(14px, 1.5vw, 24px);
  right: calc(clamp(14px, 1.5vw, 24px) + clamp(38px, 3vw, 52px) + 14px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: clamp(38px, 3vw, 52px);
  padding: 0 4px;
  color: #8A94A3;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  line-height: 1;
}

.news-modal__nav-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #B9C0CB;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.news-modal__nav-btn:hover {
  background: #F0F2F4;
  color: #2a2a2a;
}

.news-modal__counter {
  min-width: 48px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.news-modal__hero {
  position: relative;
  padding: clamp(22px, 3.1vw, 50px) clamp(64px, 6.5vw, 112px) clamp(17px, 1.8vw, 27px);
  border-bottom: 1px solid rgba(42, 42, 42, 0.12);
  background: #FFFFFF;
}

.news-modal__title {
  max-width: calc(100% - clamp(170px, 18vw, 260px));
  padding-right: 0;
  color: #2a2a2a;
  font-size: clamp(22px, min(2.1vw, 3.65vh), 39px);
  font-weight: var(--font-weight-bold);
  line-height: 1.04;
  letter-spacing: 0;
}

.news-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: clamp(11px, 1.25vw, 20px);
  color: #737373;
  font-size: clamp(13px, 0.95vw, 16px);
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  letter-spacing: 0;
}

.news-modal__layout {
  flex: 1;
  min-height: 0;
  padding: clamp(28px, 3.2vw, 58px) clamp(48px, 6.2vw, 112px) clamp(36px, 4.6vw, 72px);
  overflow-y: auto;
  scrollbar-color: #EC3F22 #E8E8E8;
  scrollbar-width: thin;
}

.news-modal__media {
  float: left;
  width: min(38%, 420px);
  margin: 0 clamp(22px, 3vw, 46px) clamp(18px, 2vw, 30px) 0;
  position: relative;
}

.news-modal__media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 77 / 80;
  overflow: hidden;
  border-radius: 20px;
  background: #D9D9D9;
  isolation: isolate;
}

.news-modal__media-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.news-modal__media-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #111;
}

.news-modal__media-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.44);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(0.96);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.news-modal__media-frame:hover .news-modal__media-nav,
.news-modal__media-frame:focus-within .news-modal__media-nav {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) scale(1);
}

.news-modal__media-nav:hover {
  background: rgba(18, 18, 18, 0.58);
}

.news-modal__media-nav--prev {
  left: 14px;
}

.news-modal__media-nav--next {
  right: 14px;
}

.news-modal__media-expand {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.44);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.news-modal__media-expand svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.news-modal__media-frame:hover .news-modal__media-expand,
.news-modal__media-frame:focus-within .news-modal__media-expand {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.news-modal__media-expand:hover {
  background: rgba(18, 18, 18, 0.58);
}

.news-modal__media-pagination {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
  min-height: 16px;
}

.news-modal__media-pagination::before {
  content: none;
}

.news-modal__media-dot {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #C7C7C7;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease, width 0.2s ease;
}

.news-modal__media-dot.is-active {
  width: 20px;
  background: #8E8E8E;
  transform: scaleY(1.1);
}

.news-lightbox {
  --news-lightbox-y-pad: clamp(16px, 2.5vw, 36px);
  --news-lightbox-x-pad: clamp(42px, 7vw, 96px);
  --news-lightbox-footer-space: 44px;
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal-overlay) + 30);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--news-lightbox-y-pad) var(--news-lightbox-x-pad);
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: newsModalFadeIn 0.18s ease both;
}

.news-lightbox__dialog {
  position: relative;
  width: 100%;
  height: calc(100dvh - var(--news-lightbox-y-pad) - var(--news-lightbox-y-pad));
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.news-lightbox__media {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.news-lightbox__media img,
.news-lightbox__media video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(
    100dvh
    - var(--news-lightbox-y-pad)
    - var(--news-lightbox-y-pad)
    - var(--news-lightbox-footer-space)
  );
  border-radius: 12px;
  background: transparent;
  object-fit: contain;
}

.news-lightbox__media img {
  object-fit: contain;
}

.news-lightbox__media video {
  background: #111;
  object-fit: contain;
}

.news-lightbox__close,
.news-lightbox__nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.34);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.news-lightbox__close {
  top: 0;
  right: 0;
  width: 32px;
  height: 32px;
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
}

.news-lightbox__nav {
  top: 50%;
  width: 32px;
  height: 32px;
  font-size: 21px;
  line-height: 1;
  transform: translateY(-50%);
}

.news-lightbox__nav--prev {
  left: clamp(8px, 1.8vw, 24px);
}

.news-lightbox__nav--next {
  right: clamp(8px, 1.8vw, 24px);
}

.news-lightbox__close:hover,
.news-lightbox__nav:hover {
  background: rgba(18, 18, 18, 0.48);
  color: rgba(255, 255, 255, 0.94);
}

.news-lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
}

.news-lightbox__counter {
  font-variant-numeric: tabular-nums;
}

.news-lightbox__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: min(620px, 70vw);
}

.news-lightbox__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: background-color 0.18s ease, width 0.18s ease;
}

.news-lightbox__dot.is-active {
  width: 20px;
  background: rgba(255, 255, 255, 0.82);
}

.news-modal__content {
  max-width: 100%;
  color: #2a2a2a;
  font-size: clamp(17px, 1.15vw, 22px);
  font-weight: var(--font-weight-regular);
  line-height: 1.62;
  letter-spacing: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.news-modal__text {
  max-width: min(100%, 1120px);
}

.news-modal__text p {
  overflow-wrap: break-word;
}

.news-modal__content::after {
  content: '';
  display: block;
  clear: both;
}

.news-modal__content p + p {
  margin-top: 1.05em;
}

.news-modal__lead {
  margin-bottom: clamp(16px, 1.8vw, 28px);
  color: #1A1A1A;
  font-size: clamp(19px, 1.35vw, 26px);
  font-weight: var(--font-weight-medium);
  line-height: 1.36;
  text-align: left;
}

@keyframes newsModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes newsModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .news-modal {
    min-height: 92vh;
    max-height: 92vh;
    border-radius: 20px;
  }

  .news-modal__hero {
    padding: 18px 24px 14px;
  }

  .news-modal__title {
    max-width: calc(100% - 150px);
  }

  .news-modal__layout {
    padding: 22px 24px 30px;
  }

  .news-modal__media {
    float: none;
    width: min(100%, 360px);
    margin: 0 0 20px;
  }

  .news-modal__text {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .news-modal-backdrop {
    align-items: stretch;
    padding: 0;
  }

  .news-modal {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .news-modal__close {
    top: 12px;
    right: 12px;
  }

  .news-modal__hero {
    padding: 17px 18px 13px 24px;
  }

  .news-modal__title {
    max-width: calc(100% - 34px);
    padding-right: 0;
    font-size: clamp(16px, 4.6vw, 18px);
    line-height: 1.08;
  }

  .news-modal__nav {
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
    min-height: 26px;
    gap: 5px;
    padding: 0;
  }

  .news-modal__nav-btn {
    width: 24px;
    height: 24px;
    color: #8A94A3;
    font-size: 22px;
  }

  .news-modal__counter {
    min-width: 32px;
    font-size: 12px;
  }

  .news-modal__text {
    max-width: 100%;
  }

  .news-modal__meta {
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px 10px;
    padding-right: 0;
    white-space: nowrap;
    font-size: 12px;
  }

  .news-modal__meta > span:not(.news-modal__nav) {
    flex: 0 0 auto;
  }

  .news-modal__layout {
    padding: 20px 18px calc(72px + env(safe-area-inset-bottom, 0px)) 24px;
    gap: 18px;
  }

  .news-modal__media-frame {
    border-radius: 16px;
  }

  .news-modal__media-nav,
  .news-modal__media-expand {
    opacity: 1;
    pointer-events: auto;
  }

  .news-modal__media-nav {
    transform: translateY(-50%) scale(1);
  }

  .news-modal__media-expand {
    transform: none;
  }

  .news-modal__content {
    font-size: 16px;
    line-height: 1.55;
  }

  .news-modal__lead {
    font-size: 18px;
  }
}


/* ===========================================
   FOOTER
   =========================================== */
.footer {
  background-color: #F7F7F7;
  position: relative;
  overflow: hidden;
}

.footer--vacancies,
.footer--contacts {
  background-color: #F7F7F7;
}

.footer__inner {
  margin: 0 auto;
  padding: 60px 60px 40px 92px;
  display: flex;
  align-items: flex-start;
  gap: 40px;
  position: relative;
}

.footer__actions {
  display: flex;
  align-items: center;
  gap: clamp(8px, min(0.85vw, 1.68vh), 16px);
  flex-shrink: 0;
  margin-top: clamp(16px, min(1.7vw, 3.3vh), 32px);
}

.footer__scroll-top {
  width: clamp(44px, min(3.6vw, 7.1vh), 68px);
  height: clamp(44px, min(3.6vw, 7.1vh), 68px);
  border: 2px solid #353535;
  border-radius: clamp(6px, min(0.53vw, 1.05vh), 10px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  cursor: pointer;
  transition: all var(--transition-base);
}

.footer__scroll-top:hover {
  background-color: var(--color-red);
  border-color: var(--color-red);
}

.footer__scroll-top:hover img {
  filter: brightness(0) invert(1);
}

.footer__brand {
  position: absolute;
  left: clamp(16px, min(5.16vw, 10.18vh), 97px);
  bottom: clamp(24px, min(3.62vw, 7.13vh), 68px);
  pointer-events: none;
}

.footer__brand-svg {
  width: clamp(300px, min(61.8vw, 121.9vh), 1162px);
  height: auto;
  opacity: 0.34;
  user-select: none;
  display: block;
}

.footer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  text-align: right;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 0;
}

.footer__nav {
  margin-bottom: 28px;
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5625rem;
  border-right: 4px solid #353535;
  padding-right: 1.75rem;
  margin-top: 2rem;
}

.footer__nav-link {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: 1.5625rem;
  line-height: 1.875rem;
  letter-spacing: -0.02969rem;
  color: #2a2a2a;
  text-transform: uppercase;
  transition: color var(--transition-fast);
}

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

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__address {
  font-family: var(--font-primary);
  font-style: normal;
  font-weight: var(--font-weight-regular);
  font-size: 1.5625rem;
  line-height: 1.875rem;
  letter-spacing: -0.02969rem;
  color: #2a2a2a;
  text-align: right;
}

.footer__phone {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: 2.1875rem;
  line-height: 1.875rem;
  letter-spacing: -0.04156rem;
  color: #2a2a2a;
}

.footer__copyright {
  margin: 0;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: clamp(12px, 0.78vw, 14px);
  line-height: 1.25;
  letter-spacing: 0;
  color: #2a2a2a;
  white-space: nowrap;
}

.footer__bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, auto) minmax(320px, 1fr);
  align-items: center;
  gap: 18px 28px;
  margin: 0 60px 0 92px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(42, 42, 42, 0.22);
}

.footer__requisites {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__requisites li {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.25;
  color: rgba(42, 42, 42, 0.54);
  white-space: nowrap;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  margin: 0;
}

.footer__legal-link {
  display: inline-flex;
  align-items: center;
  color: rgba(42, 42, 42, 0.62);
  font-size: clamp(11px, 0.72vw, 13px);
  line-height: 1.25;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-icon,
.footer__legal-chevron {
  display: none;
}

.footer__legal-link:hover {
  color: var(--color-red);
}

.footer--ru .footer__bottom {
  grid-template-columns: minmax(160px, 0.75fr) minmax(240px, auto) minmax(720px, 1.25fr);
  gap: 18px 22px;
}

.footer--ru .footer__legal {
  flex-wrap: nowrap;
  gap: 8px 20px;
}

.footer--ru .footer__legal-link {
  font-size: clamp(10px, 0.68vw, 12px);
  white-space: nowrap;
}

.legal-page {
  min-height: 100vh;
  background: #F7F7F7;
  padding: 136px var(--page-gutter) 96px;
  color: #252525;
}

.legal-page__inner {
  max-width: 1120px;
  margin: 0 auto;
}

.legal-page__head {
  margin-bottom: 42px;
}

.legal-page__head h1 {
  max-width: 940px;
  margin: 0 0 18px;
  color: #252525;
  font-size: clamp(34px, 4vw, 64px);
  line-height: 1.02;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-page__head > p:last-child {
  max-width: 860px;
  margin: 0;
  font-size: clamp(18px, 1.35vw, 24px);
  line-height: 1.45;
}

.legal-page__body {
  display: grid;
  gap: 18px;
}

.legal-page__section {
  background: #FFFFFF;
  border: 1px solid #E4E4E4;
  border-radius: 8px;
  padding: clamp(20px, 2.4vw, 34px);
}

.legal-page__section h2 {
  margin: 0 0 14px;
  color: #252525;
  font-size: clamp(20px, 1.55vw, 28px);
  line-height: 1.2;
  font-weight: 700;
}

.legal-page__section p,
.legal-page__section li {
  color: #3A3A3A;
  font-size: clamp(15px, 1.04vw, 18px);
  line-height: 1.58;
}

.legal-page__section p {
  margin: 0 0 12px;
}

.legal-page__section p:last-child {
  margin-bottom: 0;
}

.legal-page__section ul {
  margin: 0;
  padding-left: 22px;
}

.legal-page__section li + li {
  margin-top: 8px;
}

.cookie-banner {
  position: fixed;
  right: clamp(16px, 3vw, 48px);
  bottom: clamp(16px, 3vw, 48px);
  z-index: 300;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: min(640px, calc(100vw - 32px));
  padding: 18px 20px;
  background: #FFFFFF;
  border: 1px solid #D9DEE6;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(20, 28, 38, 0.12);
}

.cookie-banner p {
  flex: 1 1 auto;
  max-width: 360px;
  margin: 0;
  color: #4B5563;
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: none;
}

.cookie-banner__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner button {
  flex: 0 0 auto;
  min-width: 96px;
  min-height: 42px;
  margin: 0;
  padding: 0 18px;
  border-radius: 0.25rem;
  font: 700 14px/1 var(--font-primary);
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.cookie-banner__accept {
  border: 1px solid var(--color-red);
  background: var(--color-red);
  color: #FFFFFF;
}

.cookie-banner__accept:hover {
  border-color: var(--color-red-hover);
  background: var(--color-red-hover);
}

.cookie-banner__decline {
  border: 1px solid #D9DEE6;
  background: #FFFFFF;
  color: #4B5563;
}

.cookie-banner__decline:hover {
  border-color: rgba(224, 47, 18, 0.35);
  color: var(--color-red);
  background: var(--color-red-light);
}

.contact-modal__checkbox--legal {
  max-width: 460px;
}

.contact-modal__checkbox--legal a {
  color: #FFFFFF;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 639px) {
  .legal-page {
    padding: 104px var(--page-gutter) 64px;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: auto;
    padding: 20px;
  }

  .cookie-banner p {
    flex-basis: auto;
    max-width: none;
  }

  .cookie-banner__actions {
    width: 100%;
  }

  .cookie-banner button {
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Business directions layout */
.services {
  background-color: #ECECEC;
  color: #353535;
  padding: clamp(48px, min(7.3vw, 9vh), 100px) var(--page-gutter) clamp(60px, min(7vw, 10vh), 100px);
}

.services__inner {
  display: block;
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.services__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  color: #353535;
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  text-align: left;
  margin-bottom: var(--section-heading-margin);
  text-transform: uppercase;
}

.services__business-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--section-card-gap);
}

.services__business-card-wrap {
  position: relative;
  min-height: clamp(264px, 18vw, 360px);
  perspective: 1200px;
}

.services__business-card-wrap--standard {
  grid-column: span 2;
}

.services__business-card-wrap--wide {
  grid-column: span 3;
}

.services__business-flipper {
  position: relative;
  width: 100%;
  height: 100%;
}

.services__business-card {
  position: relative;
  min-height: clamp(264px, 18vw, 360px);
  width: 100%;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(224, 47, 18, 0.08) 0, rgba(224, 47, 18, 0.08) 1px, transparent 1.5px) 100% 22px / 10px 10px no-repeat,
    linear-gradient(180deg, #F8F8F8 0%, #F8F8F8 100%);
  color: #353535;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  padding: clamp(24px, 2vw, 38px);
  box-shadow: none;
  isolation: isolate;
}

.services__business-face {
  position: absolute;
  inset: 0;
  text-align: left;
  cursor: pointer;
}

.services__business-card--accent {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 1px, transparent 1.5px) 100% 20px / 10px 10px no-repeat,
    linear-gradient(135deg, #DE2D1D 0%, #DE2D1D 100%);
  color: var(--color-white);
}

.services__business-face--back {
  justify-content: flex-start;
  overflow: hidden;
}

.services__business-face--front.services__business-card--equipment {
  background:
    radial-gradient(circle at top right, rgba(224, 47, 18, 0.08) 0, rgba(224, 47, 18, 0.08) 1px, transparent 1.5px) 100% 22px / 10px 10px no-repeat,
    linear-gradient(180deg, #F5F4F5 0%, #F5F4F5 100%);
}

.services__business-title {
  position: relative;
  z-index: 1;
  max-width: 100%;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(19px, 1.46vw, 29px);
  line-height: 0.98;
  color: inherit;
  text-transform: uppercase;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.services__business-title--pipe {
  font-size: clamp(18px, 1.42vw, 28px);
  line-height: 1.02;
}

.services__business-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(12px, 0.95vw, 18px);
  width: min(100%, 52%);
}

.services__business-card--wide .services__business-content {
  width: min(100%, 46%);
}

.services__business-card--accent .services__business-content {
  width: min(100%, 44%);
}

.services__business-card--isolation .services__business-content {
  width: min(100%, 60%);
  gap: clamp(8px, 0.58vw, 12px);
}

.services__business-content--back {
  width: min(100%, 52%);
  gap: clamp(12px, 0.95vw, 18px);
}

.services__business-card--equipment .services__business-content--back {
  width: 100%;
}

.services__business-backside {
  position: static;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.92fr);
  align-items: start;
  gap: clamp(22px, 2vw, 40px);
  width: 100%;
  height: 100%;
  min-height: 0;
}

.services__business-card--wide .services__business-backside {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 1.12fr);
}

.services__business-backside--top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: clamp(10px, 0.85vw, 16px);
  min-height: 0;
}

.services__business-backside--top .services__business-content--back {
  width: min(100%, 52%);
}

.services__business-backside--top .services__business-backcopy {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  padding-top: 0;
}

.services__business-backside--top .services__business-desc--back {
  max-width: 100%;
}

.services__business-backside--corner {
  align-items: stretch;
}

.services__business-backside--corner .services__business-backcopy {
  align-self: end;
  justify-self: end;
  align-items: flex-end;
  justify-content: flex-end;
  padding-top: 0;
  padding-bottom: clamp(8px, 0.7vw, 14px);
}

.services__business-backside--corner .services__business-desc--back {
  max-width: 100%;
}

.services__business-backcopy {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: clamp(8px, 0.9vw, 16px);
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(224, 47, 18, 0.48) transparent;
}

.services__business-face--back .services__business-backcopy {
  margin-bottom: clamp(24px, 1.8vw, 34px);
}

.services__business-backside .services__business-link--back {
  color: var(--color-red);
  margin-top: clamp(4px, 0.55vw, 10px);
  padding-top: 0;
  min-height: 26px;
  padding-right: 0;
}

.services__business-face--back .services__business-accent {
  display: none;
}

.services__business-backcopy::-webkit-scrollbar {
  width: 5px;
}

.services__business-backcopy::-webkit-scrollbar-track {
  background: transparent;
}

.services__business-backcopy::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(224, 47, 18, 0.48);
}

.services__business-card--accent .services__business-backcopy {
  scrollbar-color: rgba(255, 255, 255, 0.58) transparent;
}

.services__business-card--accent .services__business-backcopy::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.58);
}

.services__business-accent {
  width: clamp(22px, 2vw, 34px);
  height: 3px;
  flex: 0 0 3px;
  border-radius: 999px;
  background-color: var(--color-red);
}

.services__business-nowrap {
  white-space: nowrap;
}


.services__business-card--accent .services__business-accent {
  background-color: rgba(255, 255, 255, 0.92);
}

.services__business-desc {
  position: relative;
  z-index: 1;
  max-width: 420px;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
  font-size: clamp(12px, 0.82vw, 15px);
  line-height: 1.45;
  color: rgba(53, 53, 53, 0.8);
}

.services__business-desc--front {
  max-width: min(100%, 270px);
  font-size: clamp(13px, 0.88vw, 16px);
  line-height: 1.42;
}

.services__business-card--wide .services__business-desc--front {
  max-width: min(100%, 300px);
}

.services__business-card--accent .services__business-desc--front {
  max-width: min(100%, 245px);
}

.services__business-card--isolation .services__business-desc--front {
  max-width: min(100%, 320px);
  line-height: 1.32;
}

.services__business-desc--marine {
  max-width: min(100%, 205px);
}

.services__business-card--accent .services__business-desc {
  color: rgba(255, 255, 255, 0.88);
}

.services__business-desc--back {
  max-width: 100%;
  font-size: clamp(14px, 0.98vw, 18px);
  line-height: 1.45;
  white-space: pre-line;
}

.services__business-card--accent .services__business-desc--back {
  color: rgba(255, 255, 255, 0.9);
}

.services__business-card--light .services__business-desc--back,
.services__business-face--front.services__business-card--equipment .services__business-desc--back,
.services__business-card--equipment .services__business-desc--back {
  color: rgba(53, 53, 53, 0.82);
}

.services__business-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
  margin-top: auto;
  padding-top: clamp(12px, 1.8vw, 30px);
  padding-right: 16px;
  min-height: 36px;
  font-family: var(--font-primary);
  font-size: clamp(13px, 0.9vw, 16px);
  font-weight: var(--font-weight-semibold);
  color: var(--color-red);
}

.services__business-face--front .services__business-link {
  position: absolute;
  left: clamp(24px, 2vw, 38px);
  bottom: clamp(16px, 1.35vw, 26px);
  min-height: 28px;
  margin-top: 0;
  padding-top: 0;
  padding-right: 0;
}

.services__business-card--isolation .services__business-link {
  padding-top: 0;
}

.services__business-card--accent .services__business-link {
  color: var(--color-white);
}

.services__business-backside .services__business-link--back {
  position: absolute;
  left: clamp(24px, 2vw, 38px);
  right: auto;
  bottom: clamp(16px, 1.35vw, 26px);
  gap: 6px;
  min-height: 26px;
  margin-top: 0;
  padding-top: 0;
  padding-right: 0;
  line-height: 1;
}

.services__business-link--back .services__business-link-icon {
  width: 20px;
  height: 20px;
}

.services__business-backside--top .services__business-link--back {
  align-self: auto;
}

.services__business-backside--corner .services__business-link--back {
  grid-column: auto;
  align-self: auto;
  justify-self: auto;
}

.services__business-card--accent .services__business-link--back {
  color: var(--color-white);
}

.services__business-link-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.services__business-face:hover .services__business-link-icon,
.services__business-face:focus-visible .services__business-link-icon {
  transform: scale(1.12);
}

.services__business-link-icon--back {
  transform: scaleX(-1);
}

.services__business-face:hover .services__business-link-icon--back,
.services__business-face:focus-visible .services__business-link-icon--back {
  transform: scaleX(-1) scale(1.12);
}

.services__business-media {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  object-fit: contain;
  max-width: none;
}

.services__business-media--column {
  right: clamp(-30px, -1.6vw, -14px);
  bottom: clamp(0px, 0vw, 8px);
  width: clamp(165px, 12.87vw, 244px);
}

.services__business-media--truck {
  right: clamp(-18px, -0.9vw, -6px);
  bottom: clamp(4px, 0.2vw, 10px);
  width: clamp(176px, 14.4vw, 278px);
}

.services__business-media--nautical {
  right: clamp(6px, 1.1vw, 22px);
  bottom: clamp(-12px, -0.55vw, -4px);
  width: clamp(171px, 13.56vw, 260px);
}

.services__business-media--repair {
  right: clamp(-34px, -1.8vw, -16px);
  bottom: clamp(-24px, -1.2vw, -10px);
  width: clamp(264px, 23.8vw, 476px);
}

.services__business-media--pipe {
  right: clamp(-22px, -1vw, -8px);
  bottom: clamp(-8px, -0.35vw, 4px);
  width: clamp(262px, 23.38vw, 486px);
}


/* ===========================================
   PARTNERS
   =========================================== */
.partners {
  background-color: var(--color-white);
  color: #353535;
  padding: clamp(56px, min(7.3vw, 9vh), 104px) var(--page-gutter) clamp(28px, min(3.65vw, 4.5vh), 52px);
}

.partners__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.partners__heading,
.achievements__heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-heading-gap);
  margin-bottom: var(--section-heading-margin);
}

.partners__title,
.achievements__title {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: var(--section-title-size);
  line-height: var(--section-title-line);
  color: #353535;
  text-transform: uppercase;
}

.partners__lead {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-light);
  font-size: var(--section-lead-size);
  line-height: var(--section-lead-line);
  color: #484848;
}

.partners__lead {
  max-width: 590px;
}

.partners__logo {
  display: block;
  max-width: min(78%, 286px);
  max-height: 100%;
  object-fit: contain;
}

.partners__logo--lukoil {
  max-width: min(68%, 230px);
  mix-blend-mode: multiply;
}

.partners__carousel {
  --partners-slide-width: clamp(300px, 25vw, 430px);
  position: relative;
  overflow: hidden;
  border-radius: var(--section-card-radius);
  background-color: #ffffff;
}

.partners__viewport {
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.partners__carousel::before,
.partners__carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(18px, 2.6vw, 48px);
  pointer-events: none;
}

.partners__carousel::before {
  left: 0;
  background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners__carousel::after {
  right: 0;
  background: linear-gradient(270deg, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.partners__track {
  display: flex;
  backface-visibility: hidden;
  width: max-content;
  animation: partners-marquee 54s linear infinite !important;
  will-change: transform;
}

.partners__group {
  display: flex;
  flex: 0 0 auto;
}

.partners__slide {
  flex: 0 0 var(--partners-slide-width);
  width: var(--partners-slide-width);
  height: clamp(112px, 9vw, 170px);
  padding: clamp(15px, 1.4vw, 26px) clamp(18px, 1.75vw, 34px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.partners__slide--vpt {
  flex-basis: clamp(220px, 17vw, 300px);
  width: clamp(220px, 17vw, 300px);
}

.partners__slide--meretoyakha {
  flex-basis: clamp(220px, 17vw, 300px);
  width: clamp(220px, 17vw, 300px);
}

@keyframes partners-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.partners__carousel .partners__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}

.partners__carousel .partners__logo--vpt {
  transform: translateY(5%) scale(1.26);
}

.partners__carousel .partners__logo--lukoil {
  transform: translateY(8%);
}

.partners__carousel .partners__logo--education {
  transform: translateY(4%);
}

.partners__carousel .partners__logo--digital {
  transform: translateY(9%) scale(1.33);
}

.partners__carousel .partners__logo--fund-ugry {
  transform: scale(1.21);
}

.partners__carousel .partners__logo--alma {
  transform: translateY(8%);
}

.partners__carousel .partners__logo--lukavto {
  transform: translateY(4%) scale(1.08);
}

.partners__carousel .partners__logo--meretoyakha {
  transform: scale(1.12);
}

.partners__carousel .partners__logo--ritek {
  transform: scale(1.1);
}


/* ===========================================
   ACHIEVEMENTS
   =========================================== */
.achievements {
  background-color: var(--color-white);
  color: #353535;
  padding: clamp(28px, min(3.65vw, 4.5vh), 52px) var(--page-gutter) clamp(56px, min(7.3vw, 9vh), 104px);
}

.achievements__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.achievements__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(18px, 2vw, 32px);
}

.achievements__nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 1.4vw, 26px);
}

.achievements__carousel {
  position: relative;
}

.achievements__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
}

.achievements__viewport::-webkit-scrollbar {
  display: none;
}

.achievements__grid {
  --achievements-gap: var(--section-card-gap);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--achievements-gap) * 3) / 4);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: var(--achievements-gap);
}

.achievements__card {
  scroll-snap-align: start;
  min-height: clamp(420px, 29vw, 558px);
  border-radius: 7px;
  background-color: #F7F7F7;
  padding: clamp(14px, 1.25vw, 24px);
  display: grid;
  grid-template-rows: auto minmax(112px, 1fr);
  gap: clamp(18px, 1.8vw, 32px);
  overflow: hidden;
}

.achievements__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 2.2vw, 42px);
  height: clamp(28px, 2.2vw, 42px);
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity var(--transition-fast), transform var(--transition-base);
}

.achievements__arrow:hover:not(:disabled) {
  opacity: 0.8;
  transform: scale(1.06);
}

.achievements__arrow:disabled {
  cursor: default;
  opacity: 0.3;
}

.achievements__arrow img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(58%);
  opacity: 0.85;
}

.achievements__document {
  position: relative;
  aspect-ratio: 0.72 / 1;
  height: auto;
  min-height: 0;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(236, 63, 34, 0.12) 0 18%, transparent 18%),
    linear-gradient(#ffffff, #ffffff);
  border: 1px solid rgba(53, 53, 53, 0.1);
  padding: clamp(18px, 1.7vw, 34px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.1vw, 20px);
}

.achievements__document--image {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
}

.achievements__document-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.achievements__document-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: auto;
}

.achievements__year {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  font-size: clamp(20px, 1.8vw, 34px);
  line-height: 1;
  color: #353535;
}

.achievements__line {
  display: block;
  height: 2px;
  width: 74%;
  background-color: rgba(53, 53, 53, 0.16);
}

.achievements__line--wide {
  width: 100%;
}

.achievements__line--short {
  width: 48%;
}

.achievements__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(8px, 0.8vw, 14px);
  min-height: 0;
}

.achievements__type {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-medium);
  font-size: clamp(12px, 0.85vw, 16px);
  line-height: 1.2;
  color: #EC3F22;
  text-transform: uppercase;
}

.achievements__name {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-semibold);
  font-size: clamp(15px, 1.04vw, 20px);
  line-height: 1.04;
  color: #353535;
  text-transform: uppercase;
  margin-top: auto;
}

/* Legal documents: quiet text layout */
.legal-page {
  background: #FFFFFF;
  padding: 124px var(--page-gutter) 88px;
  color: #273039;
}

.legal-page__inner {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

.legal-page__head {
  margin-bottom: 40px;
}

.legal-page__head h1 {
  max-width: 980px;
  margin: 0 0 28px;
  color: var(--color-red);
  font-size: clamp(30px, 2.6vw, 50px);
  line-height: 1.1;
  font-weight: 600;
  text-transform: none;
}

.legal-page__head > p:last-child {
  max-width: 1120px;
  color: #273039;
  font-size: clamp(16px, 1.1vw, 21px);
  line-height: 1.45;
}

.legal-page__body {
  display: block;
  max-width: 1180px;
}

.legal-page__section {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.legal-page__section + .legal-page__section {
  margin-top: clamp(26px, 3vw, 44px);
}

.legal-page__section h2 {
  margin: 0 0 16px;
  color: #273039;
  font-size: clamp(21px, 1.55vw, 30px);
  line-height: 1.22;
  font-weight: 700;
}

.legal-page__section p,
.legal-page__section li {
  max-width: 1180px;
  color: #273039;
  font-size: clamp(15px, 0.98vw, 18px);
  line-height: 1.55;
}

.legal-page__section p {
  margin: 0 0 14px;
}

.legal-page__section p:last-child {
  margin-bottom: 0;
}

.legal-page__section ul {
  margin: 8px 0 0;
  padding-left: 1.35em;
  list-style: disc;
}

.legal-page__section li::marker {
  color: #273039;
  font-size: 0.8em;
}

.legal-page__section li + li {
  margin-top: 10px;
}

.legal-page__term {
  display: block;
}

.legal-page__term strong {
  color: #273039;
  font-weight: 700;
}

.legal-page__term span {
  color: #273039;
}

.legal-page__link {
  color: var(--color-red);
  text-decoration: none;
  border-bottom: 1px solid rgba(236, 63, 34, 0.35);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.legal-page__link:hover {
  color: #b92615;
  border-bottom-color: currentColor;
}

@media (max-width: 639px) {
  .legal-page {
    padding: 96px var(--page-gutter) 56px;
  }

  .legal-page__head {
    margin-bottom: 32px;
  }

  .legal-page__head h1 {
    margin-bottom: 22px;
  }

  .cookie-banner p {
    font-size: 14px;
  }
}
