/**
 * Базовые стили проекта и дизайн-система
 * Шрифт: Jost (Variable Font, 100..900)
 */

/* --- CSS-переменные (Токены дизайн-системы) --- */
:root {
  /* Цветовая палитра */
  --color-dark-bg: #0B265F;             /* Темный фон */
  --color-white-text: #000;             /* Белый текст (согласно тз: #000 — возможно, это акцент/контраст, фиксируем точное значение) */
  --color-light-text: #b1ddfd;           /* Светлый текст */
  
  --color-light-bg: #F6FBFF;            /* Светлый фон секций */
  --color-block-bg: #D3E7F0;            /* Светлый фон блоков */
  --color-border: #D3E7F0;              /* Цвет границ */
  --color-dark-text: #25293D;           /* Темный текст */

  /* Сетка и контейнер */
  --container-max-width: 1440px;
  --container-padding-desktop: 20px;
  --container-padding-mobile: 10px;

  /* Шрифты */
  --font-main: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Переходы */
  --transition-normal: 0.3s ease;
}

/* --- Сброс стилей (Reset) --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 20px;
  -webkit-text-size-adjust: 100%;
}
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

body {
  font-family: var(--font-main);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  min-height: 100vh;
  line-height: 1.5;
  color: var(--color-dark-text);
  background-color: var(--color-light-bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

/* --- Компоненты UI (Дизайн-система) --- */

.bigtext {font-size: 1.25rem !important;}
/* Кнопка с уголками и шторками при наведении (.btn-cornered) */
.btn-cornered {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 0.9rem; /* 18px (18 / 20 = 0.9rem) */
  font-weight: 500;
  text-transform: uppercase;
  color: #ffffff;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--transition-normal);
  cursor: pointer;
  text-decoration: none !important;
}

/* Левая и правая шторки */
.btn-cornered::before,
.btn-cornered::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  background-color: #ffffff;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

/* Левая шторка выдвигается от левого края */
.btn-cornered::before {
  left: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

/* Правая шторка выдвигается от правого края с легким опережением/задержкой */
.btn-cornered::after {
  right: 0;
  transform: scaleX(0);
  transform-origin: right center;
  transition-delay: 0.05s;
}

/* Hover: раскрываем шторки */
.btn-cornered:hover::before,
.btn-cornered:hover::after {
  transform: scaleX(1);
}

/* Текст кнопки поверх шторок */
.btn-cornered__text {
  position: relative;
  z-index: 2;
  transition: color var(--transition-normal);
}

.btn-cornered:hover .btn-cornered__text {
  color: var(--color-dark-text); /* #25293D */
}

/* Уголки кнопки */
.btn-cornered__corner {
  position: absolute;
  width: 0.75rem; /* 15px */
  height: 0.75rem;
  border-color: #ffffff;
  border-style: solid;
  pointer-events: none;
  z-index: 3;
  transition: border-color var(--transition-normal);
}

.btn-cornered__corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.btn-cornered__corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.btn-cornered__corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.btn-cornered__corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

/* Вариант кнопки для светлых секций */
.btn-cornered--dark {
  color: var(--color-dark-text);
}

.btn-cornered--dark::before,
.btn-cornered--dark::after {
  background-color: var(--color-dark-bg);
}

.btn-cornered--dark .btn-cornered__corner {
  border-color: var(--color-dark-text);
}

.btn-cornered--dark:hover .btn-cornered__text {
  color: #ffffff;
}

.btn-cornered--dark:hover .btn-cornered__corner {
  border-color: var(--color-dark-bg);
}

/* --- Базовые компоненты сетки --- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-mobile);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }
}

/* --- Глобальные стили для секций (кроме Хиро) --- */
.section {
  padding-top: 7.5rem;   /* 150px при 20px */
  padding-bottom: 10rem; /* 200px при 20px */
  width: 100%;
  overflow:hidden;
}
.section-bordered {border-top: 1px solid var(--color-border);}

/* Адаптивные отступы секций для мобильных устройств */
@media (max-width: 768px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 5rem;
  }
}

/* --- Секция Hero --- */
.hero {
  position: relative;
  background-color: var(--color-dark-bg);
  color: #ffffff;
  padding: 2rem 0 4rem;
  box-sizing: border-box;
  overflow: hidden; /* Скрывает выезжающую за экран часть картинки */
}

/* Градиентный интерактивный блик за курсором */
.hero__spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  height: 1000px;
  margin-top: -500px;
  margin-left: -500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(78, 177, 239, 0.22) 0%,
    rgba(30, 90, 180, 0.1) 40%,
    rgba(11, 38, 95, 0) 70%
  );
  pointer-events: none;
  z-index: 2; /* Поверх картинки (z-index: 1), но под контентом (z-index: 4) */
  opacity: 0;
  mix-blend-mode: screen;
  filter: blur(40px);
  will-change: transform, opacity;
}

/* Сканирующий неоновый луч */
.hero__scanline {
  position: absolute;
  left: 0;
  top: -10px;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(78, 177, 239, 0) 0%,
    rgba(78, 177, 239, 0.4) 15%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(78, 177, 239, 0.4) 85%,
    rgba(78, 177, 239, 0) 100%
  );
  box-shadow: 0 0 15px rgba(78, 177, 239, 0.8), 0 0 30px rgba(78, 177, 239, 0.5);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  will-change: transform, opacity;
}

/* Абсолютно спозиционированный контейнер под картинку */
.hero__bg-wrap {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  transition: transform 0.3s ease;
}

/* Сама картинка: всегда 100% высоты блока */
.hero__bg-img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: right center;
  display: block;
}

.hero__container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 4;
}

.hero__content {
  max-width: 48rem; /* 960px */
  font-size: 1.2rem; /* 24px базовый шрифт секции (24 / 20 = 1.2rem) */
  position: relative;
}
.hero__content a {text-decoration: underline;}

.hero__subtitle {
  font-size: 1.2rem; /* 24px */
  font-weight: 500;
  color: var(--color-light-text);
  margin-bottom: 1rem;
}

.hero__title {
  font-size: 6.4rem; /* 128px (128 / 20 = 6.4rem) */
  font-weight: 500;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 2.5rem;
}

.hero__title-sub {
  display: block;
  font-size: 3rem; /* 60px (60 / 20 = 3rem) */
  font-weight: 400;
  line-height: 1.1;
  color: #ffffff;
}

.hero__author-info {
  font-size: 1.2rem; /* 24px */
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-light-text);
  margin-bottom: 3.5rem;
}

.hero__author-info strong {
  font-weight: 600;
  color: #ffffff;
}

/* --- Адаптивность Hero --- */

/* На экранах <= 1440px сдвигаем блок с картинкой вправо на 30% его собственной ширины */
@media (max-width: 1440px) {
  .hero__bg-wrap {
    transform: translateX(10%);
  }
  .hero__title {
    font-size: 5rem; /* 100px */
  }
  .hero__title-sub {
    font-size: 2.4rem; /* 48px */
  }
}

/* Планшеты горизонтальные и средние экраны (992px - 1199px) */
@media (max-width: 1200px) {
  .hero__content {
    max-width: 38rem; /* 760px */
  }
  .hero__title {
    font-size: 4rem; /* 80px */
    margin-bottom: 2rem;
  }
  .hero__title-sub {
    font-size: 2rem; /* 40px */
  }
  .hero__subtitle,
  .hero__author-info {
    font-size: 1.1rem; /* 22px */
  }
  .hero__author-info {
    margin-bottom: 2.5rem;
  }
}

/* Планшеты вертикальные (768px - 991px) */
@media (max-width: 991px) {
  .hero__bg-wrap {
    transform: translateX(20%);
  }
  .hero {
    padding: 3rem 0;
  }
  .hero__content {
    max-width: 70%; /* 600px */
  }
  .hero__title {
    font-size: 4rem; /* 64px */
  }
  .hero__title-sub {
    font-size: 1.7rem; /* 34px */
  }
  .hero__subtitle,
  .hero__author-info {
    font-size: 1rem; /* 20px */
  }
}

/* Мобильные экраны (< 768px) */
@media (max-width: 767px) {
  html {
    font-size: 16px; /* Базовый масштаб для мобильных */
  }

  .hero {
    padding: 3rem 0;
  }

  /* Полупрозрачная подложка слева для идеальной читаемости текста */
  /* .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
      90deg,
      rgba(11, 38, 95, 0.95) 0%,
      rgba(11, 38, 95, 0.85) 55%,
      rgba(11, 38, 95, 0.3) 100%
    );
    pointer-events: none;
    z-index: 2;
  } */

  .hero__container {
    position: relative;
    z-index: 3;
  }

  .hero__content {
    max-width: 80%;
    text-align: left;
    text-shadow: -1px 0px 12px #0b265f;
  }

  .hero__subtitle {
    font-size: 3vw;
    margin-bottom: 0.8rem;
    line-height: 1.4;
  }

  .hero__title {
    font-size: 8vw;
    line-height: 1;
    margin-bottom: 10rem;
  }

  .hero__title-sub {
    font-size: 5vw;
    margin-top: 0.5rem;
  }

  .hero__author-info {
    font-size: 3vw;
    line-height: 1.4;
    margin-bottom: 2rem;
  }

  .btn-cornered {
    /* width: 100%; */
    /* max-width: 20rem; */
    text-align: center;
  }
}

/* Компактные смартфоны (< 420px) */
@media (max-width: 420px) {
  .hero__content {max-width: none;}
  .hero__bg-wrap {
    transform: translateX(25%);
  }
  .hero__title {
    font-size: 12vw;
  }

  .hero__title-sub {
    font-size: 6vw;
  }
  .hero__subtitle {
    font-size: 4vw;
  }
  .hero__author-info {
    font-size: 4vw;
    font-weight: 400;
  }

  .btn-cornered {
    max-width: 100%;
  }
  .hero__author-info { color: #fff; }
}


/* --- Секция О компании / Интегратор (.about) --- */
.about {
  background-color: var(--color-light-bg);
  color: var(--color-dark-text);
}

.about__header {
  margin-bottom: 3.5rem;
}

.about__title {
  font-size: 4rem; /* 80px при html 20px */
  font-weight: 500;
  line-height: 1;
  color: var(--color-dark-text);
}

.about__subtitle {
  font-size: 3rem; /* 60  px */
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark-text);
}

/* 12-колоночный грид блока статистики */
.about__stats-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 4rem;
}

/* Портрет (колонки 1-3, занимает 1 строку в макете, соразмерно первой карточке) */
.about__author-card {
  grid-column: span 3;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
}

.about__author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Базовая карточка со статистикой */
.about__stat-card {
  background-color: var(--color-block-bg);
  border-radius: 12px;
  padding: 2.2rem 2.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Карточка 200+ (колонки 4-9) */
.about__stat-card--large {
  grid-column: 4 / span 6;
}

/* Карточка 15 (колонки 4-6, второй ряд под 200+) */
.about__stat-card--small {
  grid-column: 4 / span 3;
}

/* Карточка 300% (колонки 7-12) */
.about__stat-card--medium {
  grid-column: 7 / span 6;
}

.about__stat-num {
  font-size: 4.8rem; /* ~96px */
  font-weight: 400;
  line-height: 1;
  color: var(--color-dark-text);
  margin-bottom: 1.5rem;
}

.about__stat-desc {
  font-size: 1.2rem; /* 24px */
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-dark-text);
}

/* Блок Партнеры: 12-колоночная сетка */
.about__partners-block {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}

/* Информационная колонка слева: 3 колонки (1-3) */
.about__partners-info {
  grid-column: span 3;
  padding-right: 1rem;
}

.about__partners-title {
  font-size: 2.8rem; /* 44px */
  font-weight: 500;
  color: var(--color-dark-text);
  margin-bottom: 1rem;
}

.about__partners-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-dark-text);
}

/* Сетка карточек партнеров: 9 колонок (4-12), внутри 3 колонки */
.about__partners-grid {
  grid-column: 4 / span 9;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Белая карточка партнера */
.about__partner-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  min-height: 150px;
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.about__partner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 38, 95, 0.06);
}

/* Логотипы загружены в 2x (retina), ограничиваем размеры для аккуратного 1x отображения */
.about__partner-logo {
  max-width: 90%;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* --- Адаптивность второй секции --- */

/* Ноутбуки и горизонтальные планшеты (до 1200px) */
@media (max-width: 1200px) {
  .about__title {
    font-size: 3rem;
  }
  .about__subtitle {
    font-size: 2rem;
  }
  .about__partners-title {font-size: 2rem;}
  .about__stat-num {
    font-size: 3.8rem;
  }
  .about__stat-desc {
    font-size: 1.1rem;
  }
  .about__stat-card {
    padding: 1.8rem 1.8rem;
  }
}

/* Планшеты вертикальные (до 991px) */
@media (max-width: 991px) {
  .about__header {
    margin-bottom: 2.5rem;
  }
  .about__title {
    font-size: 2.1rem;
  }
  .about__subtitle {
    font-size: 1.25rem;
  }

  /* Перестроение верхнего блока */
  .about__stats-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 3rem;
  }

  .about__author-card {
    grid-column: span 3;
    max-height: 320px;
  }

  .about__stat-card--large {
    grid-column: span 3;
  }

  .about__stat-card--small {
    grid-column: span 3;
  }

  .about__stat-card--medium {
    grid-column: span 3;
  }

  .about__stat-num {
    font-size: 3.2rem;
  }

  /* Перестроение блока партнеров */
  .about__partners-block {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .about__partners-info {
    grid-column: auto;
    padding-right: 0;
    max-width: 100%;
  }

  .about__partners-grid {
    grid-column: auto;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
}

/* Мобильные экраны (до 767px) */
@media (max-width: 767px) {
  .about__header {
    margin-bottom: 2rem;
  }
  /* .about__title {
    font-size: 1.8rem;
  }
  .about__subtitle {
    font-size: 1.1rem;
  } */

  .about__stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2.5rem;
  }

  .about__author-card {
    width: 340px;
    height: 340px;
    /* margin: 0 auto; */
  }

  .about__author-img {
    height: 100%;
    object-position: center top;
  }

  .about__stat-card {
    padding: 1.5rem;
  }

  .about__stat-num {
    font-size: 3rem;
    margin-bottom: 0.8rem;
  }

  .about__stat-desc {
    font-size: 1rem;
  }

  .about__partners-title {
    font-size: 2rem;
  }

  .about__partners-text {
    line-height: 1.4;
  }

  .about__partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .about__partner-card {
    min-height: 80px;
    padding: 1rem;
  }

  .about__partner-logo {
    max-height: 36px;
  }
}


  /* --- Секция: Электронный документооборот и архивное хранение --- */

  /* Фон секции */
  .services {
    background-color: #ffffff;
    position: relative;
    /* padding-bottom: 100px; */
  }

  /* Заголовок секции */
  .services__title {
    font-size: 2.7rem;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--color-dark-text);
    margin-bottom: 2rem;
    text-align: left;
  }

  /* Цветные полосы внутри колонок */
  .services__feature-line {
    display: block;
    height: 10px;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .services__feature-line--light {
    background-color: #cecece;
  }

  .services__feature-line--medium {
    background-color: #A5CAE0;
  }

  .services__feature-line--bold {
    background-color: #4EB1EF;
  }

  /* Сетка для трех колонок (Проблема, Решение, Результат) */
  .services__features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    margin-bottom: 4rem;
  }

  .services__feature {
    grid-column: span 4;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .services_wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 20px;
  }

  /* Иконка и заголовок колонки */
  .services__feature-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 1rem;
    flex-shrink: 0;
  }

  .services__icon-img {
    width: 100%;
    height: 100%;
  }

  .services__feature-title {
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--color-dark-text);
    margin-bottom: 0.5rem;
    line-height: 1;
  }

  .services__feature-text {
    font-size: 1rem;
    line-height: 1.2;
    color: var(--color-dark-text);
  }

  /* Блок с предложением и картинкой */
  .services__offer-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: center;
    position: relative;
      z-index: 1;
  }

  .services__offer {
    grid-column: span 8;
    background-color: var(--color-dark-bg);
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
  }

  .services__offer-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1;
  }

  .services__offer-text {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .services__offer-text strong {
    font-weight: 600;
  }

  .services__offer-btn {
    margin-top: 1.5rem;
  }

  /* Картинка с папкой (абсолютно спозиционирована) */
  .services__image {
    position: absolute;
    bottom: -50px;
    /* right: calc(50% - 900px);
    max-width: 644px; */
    right: calc(50% - 48vw);
    max-width: 35vw;
    height: auto;
    object-fit: contain;
    z-index: 0;
  }

  /* --- Адаптивность секции services --- */

  /* Ноутбуки и горизонтальные планшеты (до 1200px) */
  @media (max-width: 1200px) {
    .services__title {
      font-size: 2.2rem;
    }

    .services__features-grid {
      gap: 15px;
    }

    .services__feature {
      grid-column: span 4;
    }

    .services__offer-grid {
      gap: 15px;
    }

    .services__offer {
      grid-column: span 8;
      padding: 2rem;
    }

    .services__image {
      right: calc(50% - 55vw);
      max-width: 40vw;
    }
  }

  /* Планшеты вертикальные (до 991px) */
  @media (max-width: 991px) {
    .services__title {
      font-size: 1.8rem;
    }

    .services__features-grid {
      display: block;
      width: 70%;
      position: relative;
      z-index: 1;
    }

    .services__feature {
      margin-bottom: 50px;
    }

    .services__feature-line {margin-bottom: 1rem;}

    .services__feature-icon {
      margin-bottom: 0.75rem;
    }

    .services__offer-grid {
      display: block;
    }

    .services__image {
      bottom: auto;
      top: 30%;
    }
  }

  /* Мобильные экраны (до 767px) */
  @media (max-width: 767px) {
    .services__title {
      font-size: 1.75rem;
    }

    .services__divider {
      margin-bottom: 2rem;
    }

    .services__features-grid {
      grid-template-columns: repeat(12, 1fr);
      gap: 15px;
    }

    .services__feature {
      grid-column: span 12;
      text-align: left;
      align-items: flex-start;
    }

    .services__feature-title {
      font-size: 1.75rem;
    }

    .services__offer {
      padding: 1.5rem;
    }

  }

  @media (max-width: 767px) {
    .services__features-grid {width: 100%;}
    .services__image {top: 40%;}
  }

  /* --- Секция: Защита информации --- */

  .protection {
    background-color: #ffffff;
    background-color: var(--color-light-bg);
    border-top: 1px solid var(--color-border);
  }

  /* Нижний блок с информацией и предложением */
  .protection__content-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: stretch;
  }

  /* Левая часть (5 колонок): Текст о квалификации + Сертификаты */
  .protection__info {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .protection__info-text {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--color-dark-text);
    margin-bottom: 1.5rem;
  }

  .protection__certificates {
    display: flex;
    gap: 15px;
    align-items: flex-end;
  }

  .protection__certificate-link {
    display: block;
    flex: 1;
  }

  .protection__certificate {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .protection__certificate:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  /* Правая часть (6 колонок): Синий блок специальных предложений, прижатый к правому краю */
  .protection__offer {
    grid-column: 7 / span 6;
  }

  /* --- Адаптивность секции protection --- */

  /* Планшеты (до 991px) */
  @media (max-width: 991px) {
    .protection__content-grid {
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .protection__info {
      width: 100%;
    }

    .protection__offer {
      width: 100%;
    }

    .protection__certificates {
      justify-content: flex-start;
    }

    .protection__certificate-link {
      max-width: 200px;
      flex: initial;
    }
  }

  /* Мобильные (до 767px) */
  @media (max-width: 767px) {

    .protection__certificates {
      flex-direction: row;
      gap: 10px;
    }

    .protection__certificate-link {
      max-width: 160px;
    }
  }


  /* --- Секция: Контакты / Заявка на консультацию --- */

  .consultation {
    position: relative;
    background-color: var(--color-dark-bg);
    color: #ffffff;
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
  }

  /* Градиентный интерактивный блик за курсором в контактах */
  .consultation__spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 1000px;
    height: 1000px;
    margin-top: -500px;
    margin-left: -500px;
    border-radius: 50%;
    background: radial-gradient(
      circle,
      rgba(78, 177, 239, 0.22) 0%,
      rgba(30, 90, 180, 0.1) 40%,
      rgba(11, 38, 95, 0) 70%
    );
    pointer-events: none;
    z-index: 2; /* Поверх фонового рисунка (z-index: 1), но под контентом (z-index: 3) */
    opacity: 0;
    mix-blend-mode: screen;
    filter: blur(40px);
    will-change: transform, opacity;
  }

  .consultation .container {
    position: relative;
    z-index: 3;
  }

  /* Фоновое декоративное изображение (отражено по горизонтали, высовывается слева) */
  .consultation__bg-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
  }

  .consultation__bg-img {
    position: absolute;
    top: 35%;
    left: -700px;
    /* height: 130%; */
    width: auto;
    max-width: none;
    transform: translateY(-50%) scaleX(-1);
    opacity: 0.35;
    mix-blend-mode: lighten;
    user-select: none;
  }

  /* Заголовок и подзаголовок */
  .consultation__header {
    margin-bottom: 3.5rem;
  }

  .consultation__title {
    font-size: 2.2rem;
    font-weight: 500;
    line-height: 1.25;
    color: #ffffff;
    margin-bottom: 1rem;
  }

  .consultation__subtitle {
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    /* max-width: 900px; */
  }

  /* Сетка 12 колонок */
  .consultation__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
    align-items: start;
  }

  /* Левая часть: Логотип и Контакты (5 колонок) */
  .consultation__contacts {
    grid-column: span 5;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .consultation__logo-wrap {
    max-width: 320px;
    background-color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: inline-block;
  }

  .consultation__logo {
    width: 100%;
    height: auto;
    display: block;
  }

  .consultation__contacts-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .consultation__contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 400;
    transition: opacity var(--transition-normal);
  }

  a.consultation__contact-item:hover {
    opacity: 0.8;
  }

  .consultation__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .consultation__contact-icon img {
    max-width: 100%;
    max-height: 100%;
    display: block;
  }

  .consultation__contact-text {
    font-size: 1.2rem;
  }

  /* Правая часть: Форма заявки (6 колонок, прижата вправо) - Светлый вариант */
  .consultation__form-wrap {
    grid-column: 7 / span 6;
  }

  .consultation__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2.25rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    color: var(--color-dark-text);
  }

  .consultation__form-badge {
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    display: inline-block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Поля формы */
  .consultation__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
  }

  .consultation__field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .consultation__label {
    font-size: 0.85rem;
    color: #64748B;
    font-weight: 500;
  }

  /* Селект с кастомной стрелочкой */
  .consultation__select-wrap {
    position: relative;
  }

  .consultation__select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--color-dark-text);
    pointer-events: none;
    opacity: 0.8;
  }

  .consultation__select,
  .consultation__input,
  .consultation__textarea {
    width: 100%;
    background: #F1F5F9;
    border: 1.5px solid #64748B;
    border-radius: 6px;
    color: var(--color-dark-text);
    font-family: var(--font-main);
    font-size: 1rem;
    padding: 0.75rem 0.9rem;
    outline: none;
    transition: all var(--transition-normal);
  }

  .consultation__select {
    appearance: none;
    padding-right: 2rem;
    cursor: pointer;
    font-weight: 500;
  }

  .consultation__select option {
    background-color: #ffffff;
    color: var(--color-dark-text);
  }

  .consultation__input::placeholder,
  .consultation__textarea::placeholder {
    color: #475569;
    font-weight: 400;
  }

  .consultation__input:focus,
  .consultation__textarea:focus,
  .consultation__select:focus {
    border-color: #1E3E6A;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 62, 106, 0.12);
  }

  .consultation__textarea {
    resize: vertical;
    min-height: 80px;
  }

  /* Чекбокс согласия на обработку данных */
  .consultation__agreement {
    margin-top: 0.25rem;
  }

  .consultation__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
  }

  .consultation__checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .consultation__checkbox-custom {
    width: 1.15rem;
    height: 1.15rem;
    min-width: 1.15rem;
    border: 1.5px solid #64748B;
    border-radius: 4px;
    background-color: #F1F5F9;
    position: relative;
    margin-top: 0.1rem;
    transition: all var(--transition-normal);
  }

  .consultation__checkbox:checked + .consultation__checkbox-custom {
    background-color: var(--color-dark-bg);
    border-color: var(--color-dark-bg);
  }

  .consultation__checkbox:checked + .consultation__checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }

  .consultation__checkbox:focus + .consultation__checkbox-custom {
    box-shadow: 0 0 0 3px rgba(30, 62, 106, 0.15);
  }

  .consultation__agreement-text {
    font-size: 0.82rem;
    line-height: 1.35;
    color: #475569;
  }

  .consultation__policy-link {
    color: var(--color-dark-bg);
    text-decoration: underline;
    transition: opacity var(--transition-normal);
  }

  .consultation__policy-link:hover {
    opacity: 0.8;
  }

  .consultation__submit-wrap {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
  }

  /* Адаптивность секции консультации */

  @media (max-width: 991px) {
    .consultation__bg-img {top: 28%}
    .consultation__grid {
      display: flex;
      flex-direction: column;
      gap: 3rem;
    }

    .consultation__contacts,
    .consultation__form-wrap {
      width: 100%;
    }

    .consultation__title {
      font-size: 1.8rem;
    }
  }

  @media (max-width: 767px) {
    .consultation {
      padding-top: 3.5rem;
      padding-bottom: 3.5rem;
    }

    .consultation__header {
      margin-bottom: 2rem;
    }

    .consultation__field-row {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }

    .consultation__contact-item {
      font-size: 1rem;
    }

    .consultation__submit-wrap {
      justify-content: stretch;
    }

    .consultation__submit-wrap .btn-cornered {
      width: 100%;
    }

    .consultation__form {
      padding: 2rem 1rem;
    }
  }
