/*
Theme Name: IT-Prime Design
Author: Iuliia Miliaeva
Version: 1.0
*/

:root {
  --hero-font: 'Golos Text', sans-serif;
  --hero-accent: #248aff;
  --hero-accent-dark: #1b5fb1; 
  --hero-gradient: linear-gradient(180deg, rgba(27, 31, 39, 0.2) 0%, rgba(10, 14, 21, 0.9) 100%);
  --hero-badge-bg: rgba(255, 255, 255, 0.8);
  --hero-badge-border: rgba(45, 142, 252, 0.5);
  --hero-label-bg:rgba(36, 138, 255, 0.12);
  --hero-label-border:rgba(36, 138, 255, 0.3);

}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ===================================================
   ШАПКА — ИТ-Прайм
   Добавить в начало style.css (до остальных блоков)
   =================================================== */

/* ── Отступ страницы под шапку ── */
body {
  padding-top: 96px;
}

/* ================================================== */
/*  ШАПКА-ОБЁРТКА                                     */
/* ================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  font-family: var(--hero-font);
  transition: box-shadow 0.35s ease;
}

.site-header.is-sticky {
  box-shadow: 0 4px 28px rgba(15, 28, 46, 0.1);
}

/* ================================================== */
/*  ВЕРХНЯЯ ПОЛОСА (TOPBAR)                           */
/* ================================================== */
.topbar {
  background: rgba(240, 247, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(210, 230, 248, 0.7);
  height: 38px;
  overflow: hidden;
  transition: height 0.35s ease, opacity 0.25s ease;
}

.site-header.is-sticky .topbar {
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.topbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.topbar__left,
.topbar__center {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #5a6a7c;
  font-weight: 400;
}

.topbar__left svg,
.topbar__center svg {
  color: var(--hero-accent);
  flex-shrink: 0;
}

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

.topbar__phone {
  font-size: 13px;
  font-weight: 600;
  color: #0f1c2e;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar__phone:hover {
  color: var(--hero-accent);
}

/* ================================================== */
/*  ОСНОВНАЯ ПАНЕЛЬ (MAINBAR)                         */
/* ================================================== */
.mainbar {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(220, 232, 245, 0.7);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.is-sticky .mainbar {
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: rgba(200, 220, 240, 0.8);
}

.mainbar__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  height: 58px;
  display: flex;
  align-items: center;
  transition: height 0.3s ease;
}

.site-header.is-sticky .mainbar__inner {
  height: 54px;
}

/* ── Логотип ── */
.mainbar__logo {
  flex-shrink: 0;
  margin-right: 40px;
  display: flex;
  align-items: center;
}

.mainbar__logo-img {
  height: 45px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.site-header.is-sticky .mainbar__logo-img {
  height: 36px;
}

/* ── Навигация ── */
.mainbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.mainbar__nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #2d3d50;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease;
}

.mainbar__nav-link:hover,
.mainbar__nav-link.is-active {
  color: var(--hero-accent);
  background: rgba(36, 138, 255, 0.07);
}

/* ── Правая часть: переключение normal / sticky ── */
.mainbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.mainbar__actions--normal { display: flex; }
.mainbar__actions--sticky { display: none; }

.site-header.is-sticky .mainbar__actions--normal { display: none; }
.site-header.is-sticky .mainbar__actions--sticky { display: flex; }

/* ── Поиск ── */
.mainbar__search {
  display: flex;
  align-items: center;
  background: rgba(244, 247, 251, 0.8);
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mainbar__search:focus-within {
  border-color: var(--hero-accent);
  box-shadow: 0 0 0 3px rgba(36, 138, 255, 0.1);
}

.mainbar__search-input {
  border: none;
  background: transparent;
  padding: 7px 12px;
  font-family: var(--hero-font);
  font-size: 14px;
  color: #0f1c2e;
  outline: none;
  width: 160px;
  transition: width 0.3s ease;
}

.mainbar__search-input:focus {
  width: 200px;
}

.mainbar__search-input::placeholder {
  color: #a0b4c8;
}

.mainbar__search-btn {
  background: transparent;
  border: none;
  padding: 7px 10px;
  cursor: pointer;
  color: #7a8799;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.mainbar__search-btn:hover {
  color: var(--hero-accent);
}

/* ── Иконка + подпись «Ваша заявка» (обычная шапка) ── */
.mainbar__cart {
  position: relative;
}

.mainbar__cart-icon {
  background: rgba(244, 247, 251, 0.8);
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #5a6a7c;
  position: relative;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.mainbar__cart-icon:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
  background: rgba(36, 138, 255, 0.06);
}

.mainbar__cart-label {
  font-family: var(--hero-font);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.mainbar__cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--hero-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Кнопка «Подать заявку» ── */
.mainbar__submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hero-accent);
  color: #ffffff !important;
  font-family: var(--hero-font);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(36, 138, 255, 0.3);
}

.mainbar__submit-btn:hover {
  background: var(--hero-accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(36, 138, 255, 0.4);
  text-decoration: none;
}

/* ================================================== */
/*  STICKY-ДРОПДАУНЫ                                  */
/* ================================================== */
.sticky-dropdown {
  position: relative;
}

/* ── Кнопка-иконка (базовый) ── */
.sticky-icon-btn {
  background: rgba(244, 247, 251, 0.8);
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  min-width: 40px;
  height: 40px;
  padding: 0 14px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #5a6a7c;
  position: relative;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.sticky-icon-btn:hover,
.sticky-dropdown:hover .sticky-icon-btn {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
  background: rgba(36, 138, 255, 0.06);
}

/* Подпись на кнопке заявки */
.sticky-icon-btn__label {
  font-family: var(--hero-font);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

/* Телефон — квадратная без подписи */
.sticky-dropdown--contacts .sticky-icon-btn {
  width: 40px;
  min-width: 40px;
  padding: 0;
  justify-content: center;
}

/* Счётчик на кнопке заявки */
.sticky-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--hero-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* ── Панель дропдауна ── */
.sticky-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid #dde8f5;
  border-radius: 16px;
  padding: 20px;
  min-width: 280px;
  box-shadow: 0 12px 40px rgba(15, 28, 46, 0.12);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.sticky-dropdown:hover .sticky-dropdown__panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-dropdown__panel::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 14px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-left: 1px solid #dde8f5;
  border-top: 1px solid #dde8f5;
  transform: rotate(45deg);
}

/* ── Строки контактного дропдауна ── */
.sticky-dropdown__row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f5fb;
}

.sticky-dropdown__row:last-of-type {
  border-bottom: none;
}

.sticky-dropdown__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticky-dropdown__icon-wrap--blue {
  background: rgba(36, 138, 255, 0.08);
  color: var(--hero-accent);
}

.sticky-dropdown__label {
  font-size: 11px;
  color: #a0b4c8;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.sticky-dropdown__value {
  font-size: 14px;
  font-weight: 600;
  color: #0f1c2e;
  text-decoration: none;
  display: block;
  transition: color 0.2s;
}

.sticky-dropdown__value:hover {
  color: var(--hero-accent);
}

.sticky-dropdown__value--text {
  font-size: 13.5px;
  font-weight: 400;
  color: #5a6a7c;
}

.sticky-dropdown__call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 14px;
  background: var(--hero-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.sticky-dropdown__call-btn:hover {
  background: var(--hero-accent-dark);
  color: #ffffff;
  text-decoration: none;
}

/* ── Дропдаун заявки ── */
.sticky-dropdown__panel--cart {
  min-width: 240px;
}

.sticky-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: #a0b4c8;
}

.sticky-cart-empty span {
  font-size: 14px;
  color: #7a8799;
  font-weight: 500;
}

.sticky-cart-catalog-btn {
  display: inline-flex;
  align-items: center;
  background: #f4f7fb;
  border: 1px solid #dde8f5;
  color: var(--hero-accent);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 8px;
  margin-top: 4px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sticky-cart-catalog-btn:hover {
  background: rgba(36, 138, 255, 0.07);
  border-color: var(--hero-accent);
  text-decoration: none;
}

/* ── Мобильная кнопка «Ваша заявка» (перед бургером) ── */
.mainbar__mobile-cart {
  display: none; /* на десктопе все еще скрыто */
  align-items: center;
  gap: 6px;
  background: rgba(244, 247, 251, 0.8);
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  height: 36px;
  padding: 0 12px 0 10px;
  color: #5a6a7c;
  font-family: var(--hero-font);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-left: auto; /* Толкает кнопку вправо к бургеру */
  margin-right: 12px; /* Небольшой отступ от самого бургера, чтобы не слипались */
  position: relative;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.mainbar__mobile-cart:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
  text-decoration: none;
}

.mainbar__mobile-cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--hero-accent);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ================================================== */
/*  БУРГЕР                                            */
/* ================================================== */
.mainbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.mainbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #2d3d50;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.mainbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mainbar__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mainbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================== */
/*  МОБИЛЬНОЕ МЕНЮ                                    */
/* ================================================== */
.mobile-menu {
  position: fixed;
  top: 58px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid #e0e8f2;
  padding: 20px 20px 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 8px 24px rgba(15, 28, 46, 0.08);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.25s ease;
}

.mobile-menu.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu__link {
  font-size: 16px;
  font-weight: 500;
  color: #2d3d50;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-menu__link:hover {
  background: rgba(36, 138, 255, 0.07);
  color: var(--hero-accent);
}

.mobile-menu__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f5fb;
}

.mobile-menu__phone {
  font-size: 20px;
  font-weight: 700;
  color: var(--hero-accent);
  text-decoration: none;
}

/* ================================================== */
/*  АДАПТИВ                                           */
/* ================================================== */
@media (max-width: 1100px) {
  .mainbar__inner { padding: 0 32px; }
  .topbar__inner  { padding: 0 32px; }

  .mainbar__nav-link {
    font-size: 13px;
    padding: 6px 7px;
  }

  .mainbar__logo { margin-right: 24px; }
}

@media (max-width: 900px) {
  body { padding-top: 58px; }
  .topbar { display: none; }

  /* Прячем всё лишнее */
  .mainbar__nav,
  .mainbar__actions--normal,
  .mainbar__actions--sticky {
    display: none !important;
  }

  /* Логотип влево, а Mobile-right вправо */
  .mainbar__inner { 
    display: flex !important;
    justify-content: space-between !important;
    align-items: center;
    padding: 0 20px;
    height: 58px;
  }

  /* Сама обертка, которую мы создали в HTML */
  .mainbar__mobile-right {
    display: flex;
    align-items: center;
    gap: 12px; /* Расстояние между иконкой заявки и бургером */
  }

  /* Показываем кнопку заявки */
  .mainbar__mobile-cart { 
    display: flex;
    margin-left: 0; /* Обнуляем старые отступы */
  }

  /* Показываем бургер */
  .mainbar__burger { 
    display: flex; 
    margin-left: 0;
  }

  .mainbar__logo { margin-right: 0; }
}

.hero-block {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://итпрайм.рф/upload/iblock/bae/k1918hyzj0olokcb99d10ebpr24at0ch.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  font-family: var(--hero-font);
  transition: background-image 0.6s ease-in-out;
  overflow: hidden;
}

.hero-block__overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 1;
}

.hero-block__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* На десктопе все прижато к низу */
  gap: 40px;
  flex-wrap: wrap; /* Позволяет правой колонке съехать вниз */
}

.hero-block__content {
  flex: 1;
  max-width: 720px;
}

.hero-block__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hero-badge-bg);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50px;
  padding: 8px 18px;
  margin-bottom: 25px;
  color: var(--hero-accent);
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(12px);
}

/* ОБНОВЛЕННЫЙ ЗАГОЛОВОК: меньше жирность и размер */
.hero-block__title {
  font-size: clamp(30px, 4vw, 42px); /* Было 56px */
  font-weight: 600; /* Было 800 */
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 35px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* КОМПАКТНЫЕ ПЛАШКИ UTP */
.hero-block__utp {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
  align-items: center;
}

.hero-block__utp-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-block__utp-icon {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.8); 
  border: 1px solid rgba(255, 255, 255, 0.9); 
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-accent); 
  backdrop-filter: blur(10px); 
  flex-shrink: 0;
}

.hero-block__utp-label {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.hero-block__utp-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.2);
}

/* Основные стили кнопки CTA*/
.hero-block__cta {
  display: inline-flex;
  align-items: center;
  background: var(--hero-accent);
  color: #ffffff;
  padding: 16px 36px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  /* ОБЯЗАТЕЛЬНО: плавность анимации */
  transition: all 0.3s ease; 
  box-shadow: 0 10px 25px rgba(37, 125, 227, 0.3);
}

.hero-block__cta:hover {
  background: var(--hero-accent-dark); /* Чуть темнее при наведении */
  transform: translateY(-4px); /* Поднимаем кнопку вверх на 4px */
  /* Усиливаем тень, чтобы создать эффект высоты */
  box-shadow: 0 15px 35px rgba(37, 125, 227, 0.45); 
}

/* ВИДЖЕТ СПРАВА */
.hero-projects {
  width: 380px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-projects__number { 
  color: #ffffff; 
  font-weight: 500; 
  font-size: 14px;
  opacity: 0.9; /* Можно добавить небольшую прозрачность, чтобы смотрелось мягче */
}

.hero-projects__list { display: flex; gap: 10px; }

.hero-projects__item {
  width: 90px;
  height: 120px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: 0.3s;
}

.hero-projects__item.active {
  border-color: var(--hero-accent);
  transform: translateY(-5px);
}

.hero-projects__line {
  flex-grow: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  position: relative;
  margin: 10px 0;
}

.hero-projects__line-inner {
  position: absolute;
  width: 33%;
  height: 100%;
  background: var(--hero-accent);
  transition: 0.4s;
}

/* Адаптив: когда экран меньше 1100px (планшеты и телефоны) */
@media (max-width: 1100px) {
  .hero-block__inner {
    flex-direction: column !important; /* Принудительно в столбик */
    align-items: flex-start !important;
    justify-content: flex-start !important;
    padding: 80px 20px 40px !important;
    gap: 40px !important; /* Расстояние между кнопкой и виджетом */
  }

  .hero-block__content {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  .hero-projects {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    flex: none !important;
  }

  /* Чтобы заголовок не был слишком огромным на телефоне */
  .hero-block__title {
    font-size: 28px !important; 
    line-height: 1.2 !important;
    margin-bottom: 25px !important;
  }

  /* Выстраиваем иконки УТП в столбик на узких экранах */
  .hero-block__utp {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
  }

  .hero-block__utp-divider {
    display: none !important; /* Убираем палочки-разделители */
  }
}

.hero-projects__text { color: #fff; font-size: 14px; line-height: 1.4; opacity: 0.9; }

.hero-projects__link { color: var(--hero-accent); text-decoration: none; font-size: 13px; font-weight: 600; }

/* ===================================================
   БЛОК #2 — Оснащение по образовательным направлениям
   =================================================== */

/* ── Основная секция ── */
.directions-block {
  background: #F8FAFC;
  padding: 96px 0 80px;
  font-family: var(--hero-font);
}

.directions-block__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ── Заголовок блока ── */
.directions-block__head {
  text-align: left; /* Было center, теперь прижимаем к левому краю */
  margin-bottom: 56px;
  display: block;   /* Убеждаемся, что это блочный элемент */
}

.directions-block__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
  background:var(--hero-label-bg);
  border: 1px solid var(--hero-label-border);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.directions-block__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: #0f1c2e;
  margin-bottom: 12px;
  text-align: left; /* Гарантируем левый край для текста */
}

.directions-block__subtitle {
  font-size: 16px;
  color: #7a8799;
  font-weight: 400;
  text-align: left; /* Гарантируем левый край для текста */
  margin-left: 0;   /* Убираем центровку, если была */
  max-width: 600px; /* Ограничиваем ширину, чтобы текст не растягивался на весь экран */
}

/* ── Сетка карточек ── */
.directions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Базовая карточка ── */
.dir-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1.5px solid #e8edf3;
  border-radius: 24px;
  padding: 32px 28px 28px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s ease,
              border-color 0.28s ease,
              box-shadow 0.28s ease;
  overflow: hidden;
}

/* Тонкая линия-акцент сверху (появляется при наведении) */
.dir-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--hero-accent);
  border-radius: 24px 24px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.dir-card:hover {
  transform: translateY(-8px);
  border-color: #257DE3;
  box-shadow: 0 20px 50px rgba(36, 138, 255, 0.1);
  color: inherit;
  text-decoration: none;
}

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

/* ── Иконка-подложка ── */
.dir-card__icon-wrap {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.dir-card:hover .dir-card__icon-wrap {
  transform: scale(1.08);
}

/* Цветовые варианты иконок */
.dir-card__icon-wrap--yellow { background: #FFF8E6; color: #E8960A; }
.dir-card__icon-wrap--green  { background: #EDFAF3; color: #17A868; }
.dir-card__icon-wrap--blue   { background: #EAF2FF; color: #257DE3; }
.dir-card__icon-wrap--purple { background: #F2EEFF; color: #7B52D3; }
.dir-card__icon-wrap--rose   { background: #FEEEF2; color: #D94070; }

/* ── Заголовок карточки ── */
.dir-card__title {
  font-size: 19px;
  font-weight: 700;
  color: #0f1c2e;
  line-height: 1.25;
  margin-bottom: 14px;
}

/* ── Маркированный список ── */
.dir-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dir-card__list li {
  font-size: 14px;
  color: #5a6a7c;
  font-weight: 400;
  padding-left: 16px;
  position: relative;
  line-height: 1.4;
}

.dir-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8d4e0;
  transition: background 0.25s ease;
}

.dir-card:hover .dir-card__list li::before {
  background: var(--hero-accent);
}

/* ── Стрелка в углу карточки ── */
.dir-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F0F4FA;
  color: #7a8799;
  margin-top: 22px;
  align-self: flex-end;
  transition: background 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
  flex-shrink: 0;
}

.dir-card:hover .dir-card__arrow {
  background: var(--hero-accent);
  color: #ffffff;
  transform: translateX(4px);
}

/* ── CTA-карточка (шестая, с градиентом) ── */
.dir-card--cta {
  background: linear-gradient(140deg, #1a5fd4 0%, #257DE3 60%, #3b9bff 100%);
  border-color: transparent;
  justify-content: center;
  align-items: flex-start;
  min-height: 220px;
}

.dir-card--cta::before {
  background: rgba(255,255,255,0.3);
}

.dir-card--cta:hover {
  border-color: transparent;
  box-shadow: 0 20px 50px rgba(36, 138, 255, 0.3);
}

.dir-card__cta-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dir-card__cta-num {
  font-size: 52px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.dir-card__cta-text {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  margin-bottom: 12px;
}

.dir-card__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s ease;
}

.dir-card--cta:hover .dir-card__cta-link {
  border-color: #ffffff;
}

/*бейдж «Нацпроекты» на CTA-карточке*/

.dir-card__cta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  width: fit-content;
}

/* ── Подвал блока (ссылка на каталог) ── */
.directions-block__footer {
  text-align: center;
  margin-top: 48px;
}

.directions-block__catalog-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--hero-accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(36, 138, 255, 0.3);
  padding-bottom: 3px;
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.directions-block__catalog-link:hover {
  gap: 16px;
  border-color: var(--hero-accent);
  color: var(--hero-accent);
  text-decoration: none;
}

/* ── Адаптив: планшет (2 колонки) ── */
@media (max-width: 1024px) {
  .directions-block {
    padding: 72px 0 64px;
  }

  .directions-block__inner {
    padding: 0 32px;
  }

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

  .dir-card--cta {
    grid-column: span 2;
    min-height: 160px;
  }

  .dir-card__cta-num {
    font-size: 42px;
  }
}

/* ── Адаптив: мобильный (1 колонка) ── */
@media (max-width: 640px) {
  .directions-block {
    padding: 56px 0 48px;
  }

  .directions-block__inner {
    padding: 0 20px;
  }

  .directions-block__head {
    margin-bottom: 40px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dir-card--cta {
    grid-column: span 1;
  }

  .dir-card {
    padding: 24px 22px 22px;
    border-radius: 18px;
  }

  .dir-card__title {
    font-size: 17px;
  }

  .directions-block__catalog-link {
    font-size: 15px;
  }
}

/* ===================================================
   БЛОК #4 — О компании
   =================================================== */

.about-section {
    background: #ffffff;
    padding: 100px 0;
    font-family: var(--hero-font);
}

.about-section__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.about-container {
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* Левая часть */
.about-content {
    flex: 0 0 40%;
}

.about-content__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: #0f1c2e;
    margin-top: 24px;
    margin-bottom: 24px;
}

.about-content__text {
    font-size: 16px;
    line-height: 1.6;
    color: #5a6a7c;
    margin-bottom: 32px;
}

.about-content__text p {
    margin-bottom: 16px;
}

/* Фотография и бейдж */
.about-image {
    position: relative;
    margin-bottom: 32px;
    border-radius: 24px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.about-image__experience {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--hero-accent);
    color: white;
    padding: 15px 20px;
    border-radius: 16px;
    text-align: center;
}

.about-image__experience span {
    font-size: 24px;
    font-weight: 800;
    display: block;
}

.about-image__experience p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
}

/* Кнопка "Познакомиться с командой" — копия логики блока каталога */
.about-content__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px; /* Изначальный отступ */
  margin: 0 auto;
  font-size: 16px;
  font-weight: 600;
  color: var(--hero-accent);
  text-decoration: none;
  border-bottom: 1.5px solid rgba(36, 138, 255, 0.3);
  padding-bottom: 3px;
  /* Важно: анимируем именно gap */
  transition: gap 0.2s ease, border-color 0.2s ease;
}

.about-content__btn:hover {
  gap: 16px; /* Раздвигаем текст и стрелочку */
  border-color: var(--hero-accent);
  color: var(--hero-accent);
  text-decoration: none;
}


/* Правая часть: Сетка преимуществ */
.benefits-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #F8FAFC;
    padding: 30px;
    border-radius: 24px;
    border: 1.5px solid #e8edf3;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background: #ffffff;
    border-color: var(--hero-accent);
    box-shadow: 0 15px 40px rgba(36, 138, 255, 0.08);
}

.benefit-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(36, 138, 255, 0.1);
    color: var(--hero-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.benefit-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #0f1c2e;
    margin-bottom: 12px;
}

.benefit-card__text {
    font-size: 14px;
    line-height: 1.5;
    color: #5a6a7c;
}

/* Адаптив */
@media (max-width: 1200px) {
    .about-container { gap: 40px; }
    .about-content__title { font-size: 28px; }
}

@media (max-width: 1024px) {
    .about-container { flex-direction: column; }
    .about-content { width: 100%; flex: none; }
    .benefits-grid { width: 100%; }
}

@media (max-width: 640px) {
    .about-section__inner { padding: 0 20px; }
    .benefits-grid { grid-template-columns: 1fr; }
    .about-section { padding: 60px 0; }
}

/* ===================================================
   БЛОК #4 — Проекты
   =================================================== */
.projects-slider {
    padding: 100px 0;
    background: #F8FAFC; /* Светлый фон, чтобы выделить блоки */
    font-family: var(--hero-font);
}

.projects-slider__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.projects-slider__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
}

.projects-slider__label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--hero-accent);
    background: var(--hero-label-bg); 
    border: 1px solid var(--hero-label-border);
    border-radius: 50px;
    padding: 5px 16px;
    margin-bottom: 20px;
}

/* Карточки проекта */
.slider-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 40px;
    scrollbar-width: none;
}

.slider-container::-webkit-scrollbar { display: none; }

.project-card {
    flex: 0 0 400px;
    height: 520px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    background: #0f1c2e;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Смена фото при наведении */
.project-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.project-card__bg.hover-bg {
    opacity: 0;
    transform: scale(1.1);
}

.project-card:hover .project-card__bg.main-bg {
    opacity: 0;
}

.project-card:hover .project-card__bg.hover-bg {
    opacity: 1;
    transform: scale(1);
}

/* Инфо-слой */
.project-card__info {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 30px;
    background: linear-gradient(0deg, rgba(15, 28, 46, 0.95) 0%, rgba(15, 28, 46, 0.4) 60%, transparent 100%);
    color: #fff;
    z-index: 2;
}

.project-card__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff !important;
}

.project-card__year {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.project-card__link {
    color: var(--hero-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.project-card:hover .project-card__link {
    transform: translateX(5px);
}

/* Финальная карточка */
.project-card--final {
    background: #ffffff;
    border: 1.5px solid #e8edf3;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.project-card__cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: rgba(36, 138, 255, 0.05);
    color: var(--hero-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.project-card--final h3 {
    font-size: 24px;
    color: #0f1c2e;
    margin-bottom: 16px;
}

.project-card--final p {
    color: #5a6a7c;
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Кнопки навигации — Снова круглые и стильные */
.projects-slider__nav {
    display: flex;
    gap: 12px;
}

.slider-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%; /* Делаем идеально круглыми */
    border: 1.5px solid #e8edf3;
    background: #ffffff;
    color: #0f1c2e;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.slider-btn:hover {
    background: #ffffff;
    border-color: var(--hero-accent);
    color: var(--hero-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(36, 138, 255, 0.15);
}

.slider-btn:active {
    transform: translateY(0);
}

/* Финальная карточка — Обновленный стиль без пунктира */
.project-card--final {
    background: #ffffff;
    border: 1.5px solid #e8edf3; /* Обычная сплошная линия */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    transition: border-color 0.3s ease;
}

.project-card--final:hover {
    border-color: var(--hero-accent);
}

.project-final-btn {
    background: var(--hero-accent);
    color: #fff;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.project-final-btn:hover {
    background: var(--hero-accent-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(36, 138, 255, 0.2);
}

/* ── Блок популярных товаров (Обновленный) ── */
.popular-products {
    padding: 100px 0;
    background: #ffffff;
    font-family: var(--hero-font);
}

.popular-products__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.popular-products__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 48px;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: #ffffff;
    border: 1.5px solid #e8edf3;
    border-radius: 24px; /* Большое скругление как у блоков выше */
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--hero-accent);
    box-shadow: 0 15px 40px rgba(36, 138, 255, 0.08);
    transform: translateY(-4px);
}

.product-card__img {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    border-radius: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card__img img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Сливает белый фон картинки с фоном блока */
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #0f1c2e;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 44px;
}

.product-card__art {
    font-size: 13px;
    color: #7a8799;
    margin-bottom: 16px;
}

.product-card__price {
    font-size: 22px;
    font-weight: 800;
    color: #0f1c2e;
    margin-bottom: 24px;
}

/* Группа действий (Кнопка + Кол-во) */
.product-card__actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: auto;
}

/* Кнопка "В заявку" в фирменном стиле */
.add-to-cart {
    background: var(--hero-accent);
    color: #ffffff;
    border: none;
    border-radius: 12px; /* Скругление как у главных кнопок */
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-grow: 1;
    white-space: nowrap;
}

.add-to-cart:hover {
    background: var(--hero-accent-dark);
    box-shadow: 0 8px 20px rgba(36, 138, 255, 0.25);
}

/* Область выбора количества (Светло-голубая) */
.quantity-control {
    display: flex;
    align-items: center;
    background: #f0f7ff; /* Твой светло-голубой цвет */
    border: 1px solid rgba(36, 138, 255, 0.15);
    border-radius: 12px;
    padding: 4px;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: var(--hero-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    border-radius: 8px;
}

.qty-btn:hover {
    background: rgba(36, 138, 255, 0.1);
}

.qty-input {
    width: 32px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #0f1c2e;
    font-family: var(--hero-font);
}

/* Адаптив под планшеты и телефоны */
@media (max-width: 1200px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .popular-products__inner { padding: 0 30px; }
}

@media (max-width: 640px) {
    .products-grid { grid-template-columns: 1fr; }
    .product-card__actions { flex-direction: column; align-items: stretch; }
    .quantity-control { justify-content: center; }
}

/* ===================================================
   БЛОК #6 — Как мы работаем
   =================================================== */

.howwe-block {
  background: #ecf5ff;
  padding: 96px 0 80px;
  font-family: var(--hero-font);
}

.howwe-block__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
}

/* ── Шапка ── */
.howwe-block__head {
  text-align: left; /* Возвращаем левый край */
  margin-bottom: 64px;
  display: block; /* Убираем flex-column, который центрировал всё */
}

.howwe-block__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
  background: var(--hero-label-bg);
  border: 1px solid var(--hero-label-border);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 20px;
}

.howwe-block__title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: #0f1c2e;
  margin-bottom: 16px;
  max-width: 800px;
  text-align: left; /* Текст заголовка влево */
  margin-left: 0;   /* Убираем auto центровку */
}

.howwe-block__subtitle {
  font-size: 16px;
  color: #5a6a7c;
  max-width: 600px;
  margin-left: 0;   /* Убираем auto центровку */
  text-align: left; /* Текст подзаголовка влево */
}

/* ── Сетка этапов ── */
.howwe-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Линия-коннектор */
.howwe-connector {
  position: absolute;
  top: 45px;
  left: 50px;
  right: 50px;
  height: 2px;
  background: rgba(36, 138, 255, 0.1);
  z-index: 1;
}

.howwe-connector__line {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, 
    var(--hero-accent) 0%, 
    rgba(36, 138, 255, 0.1) 100%);
  opacity: 0.6;
}

/* Карточка этапа */
.howwe-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

.howwe-step__num-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.howwe-step__num {
  font-size: 14px;
  font-weight: 700;
  color: var(--hero-accent);
  margin-bottom: 8px;
}

.howwe-step__dot {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 2px solid var(--hero-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px #f0f7ff;
}

.howwe-step__card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: 24px;
  border: 1.5px solid #e8edf3;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* Подсветка 1 и 4 шага */
.howwe-step--first .howwe-step__card,
.howwe-step--last .howwe-step__card {
  border-color: var(--hero-accent);
  box-shadow: 0 12px 30px rgba(36, 138, 255, 0.08);
}

.howwe-step__icon-wrap {
  width: 48px;
  height: 48px;
  background: rgba(36, 138, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-accent);
  margin-bottom: 20px;
}

.howwe-step__title {
  font-size: 18px;
  font-weight: 700;
  color: #0f1c2e;
  margin-bottom: 12px;
}

.howwe-step__text {
  font-size: 14px;
  line-height: 1.6;
  color: #5a6a7c;
  margin-bottom: 20px;
}

/* Заметки в карточках */
.howwe-step__note {
  margin-top: auto;
  padding: 12px;
  background: rgba(36, 138, 255, 0.04);
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--hero-accent);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.howwe-step__note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.howwe-step__note--alt {
  background: #f8fafc;
  color: #5a6a7c;
  border: 1px dashed #e8edf3;
}

.howwe-step__note--success {
  background: #ecfdf5;
  color: #10b981;
}

/* ── Кнопка подвала ── */
.howwe-block__footer {
    text-align: left; /* Было center, теперь прижимаем к левому краю */
    margin-top: 52px;
    padding-left: 0;   /* Убеждаемся, что нет лишних отступов */
}

.howwe-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--hero-accent);
  color: #ffffff;
  padding: 16px 32px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(36, 138, 255, 0.3);
  transition: all 0.25s ease;
}

.howwe-cta:hover {
  background: var(--hero-accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(36, 138, 255, 0.4);
}

.howwe-cta svg {
  transition: transform 0.2s ease;
}

.howwe-cta:hover svg {
  transform: translateX(5px);
}

/* ── Адаптив ── */
@media (max-width: 1024px) {
  .howwe-steps { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .howwe-connector { display: none; }
}

@media (max-width: 640px) {
  .howwe-steps { grid-template-columns: 1fr; }
  .howwe-block__inner { padding: 0 20px; }
}

/* Стили для смены текста на номер телефона */
.phone-flip {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    min-height: 38px; /* Фиксируем высоту, чтобы карточка не прыгала */
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-flip__number {
    position: absolute;
    opacity: 0;
    transform: translateY(20px); /* Номер прячется чуть ниже */
    transition: all 0.3s ease;
    color: var(--hero-accent);
    font-weight: 700;
}

.phone-flip__text {
    transition: all 0.3s ease;
}

/* Эффект при наведении на плашку */
.phone-flip:hover .phone-flip__text {
    opacity: 0;
    transform: translateY(-20px); /* Текст уходит вверх */
}

.phone-flip:hover .phone-flip__number {
    opacity: 1;
    transform: translateY(0); /* Номер встает на место текста */
}

/* ===================================================
   БЛОК #7 — Финальный CTA
   =================================================== */

.cta-block {
  background: #ecf5ff;
  padding: 96px 0 88px;
  font-family: var(--hero-font);
  position: relative;
  overflow: hidden;
}

/* Декоративный круг за правой частью */
.cta-block::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(36, 138, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 50px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: center;
}

/* ── ЛЕВАЯ ЧАСТЬ ── */
.cta-block__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-accent);
  background: var(--hero-label-bg);
  border: 1px solid var(--hero-label-border);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 24px;
}

.cta-block__title {
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 700;
  line-height: 1.22;
  color: #0f1c2e;
  margin-bottom: 24px;
  max-width: 600px;
}

.cta-block__phone {
  display: inline-block;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: var(--hero-accent);
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 20px;
  transition: color 0.2s ease;
}

.cta-block__phone:hover {
  color: var(--hero-accent-dark);
}

.cta-block__utp {
  font-size: 16px;
  color: #5a6a7c;
  line-height: 1.6;
  max-width: 520px;
  margin-bottom: 36px;
}

/* Кнопка + email */
.cta-block__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-block__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hero-accent);
  color: #ffffff;
  font-family: var(--hero-font);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  padding: 15px 32px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(36, 138, 255, 0.35);
  transition: background 0.25s ease,
              transform 0.2s ease,
              box-shadow 0.25s ease;
  white-space: nowrap;
}

.cta-block__btn:hover {
  background: var(--hero-accent-dark);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(36, 138, 255, 0.45);
  text-decoration: none;
}

.cta-block__btn svg {
  transition: transform 0.2s ease;
}

.cta-block__btn:hover svg {
  transform: translateX(4px);
}

.cta-block__email {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 500;
  color: #5a6a7c;
  text-decoration: none;
  transition: color 0.2s ease;
}

.cta-block__email:hover {
  color: #0f1c2e;
  text-decoration: none;
}

.cta-block__email-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(36, 138, 255, 0.08);
  border: 1px solid rgba(36, 138, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hero-accent);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}

.cta-block__email:hover .cta-block__email-icon {
  background: rgba(36, 138, 255, 0.15);
  color: var(--hero-accent-dark);
}

/* ── ПРАВАЯ ЧАСТЬ ── */
.cta-block__person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* Фото */
.cta-block__photo-wrap {
  position: relative;
  width: 100%;
}

.cta-block__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  border-radius: 24px;
  border: 2px solid rgba(36, 138, 255, 0.2);
  display: block;
}

/* Заглушка если нет фото */
.cta-block__photo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background: rgba(36, 138, 255, 0.05);
  border: 2px dashed rgba(36, 138, 255, 0.2);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: #a0b4c8;
  font-size: 14px;
}

/* Бейдж "На связи" */
.cta-block__photo-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(29, 191, 115, 0.92);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  backdrop-filter: blur(6px);
}

.cta-block__photo-badge svg {
  flex-shrink: 0;
}

/* Имя и должность */
.cta-block__person-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cta-block__person-name {
  font-size: 20px;
  font-weight: 700;
  color: #0f1c2e;
}

.cta-block__person-role {
  font-size: 14px;
  color: #7a8799;
  font-weight: 400;
}

/* Мини-статистика */
.cta-block__trust {
  display: flex;
  align-items: center;
  gap: 0;
  background: #ffffff;
  border: 1px solid #d8e8f8;
  border-radius: 16px;
  padding: 16px 20px;
  width: 100%;
}

.cta-block__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  gap: 3px;
}

.cta-block__trust-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--hero-accent);
  line-height: 1;
  letter-spacing: -0.02em;
}

.cta-block__trust-label {
  font-size: 11px;
  color: #7a8799;
  font-weight: 400;
  text-align: center;
  line-height: 1.3;
}

.cta-block__trust-divider {
  width: 1px;
  height: 32px;
  background: #d8e8f8;
  flex-shrink: 0;
}

/* ── Адаптив: планшет (≤ 1100px) ── */
@media (max-width: 1100px) {
  .cta-block__inner {
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 0 32px;
  }
}

/* ── Адаптив: мобильный (≤ 768px) ── */
@media (max-width: 768px) {
  .cta-block {
    padding: 64px 0 56px;
  }

  .cta-block__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 20px;
  }

  /* На мобильном фото идёт ПОСЛЕ текста */
  .cta-block__content { order: 1; }
  .cta-block__person  { order: 2; }

  .cta-block__person {
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
  }

  .cta-block__photo-wrap {
    width: 140px;
    flex-shrink: 0;
  }

  .cta-block__person-info {
    flex: 1;
    min-width: 120px;
    padding-top: 8px;
  }

  .cta-block__trust {
    width: 100%;
    flex-basis: 100%;
  }

  .cta-block__phone {
    font-size: 32px;
  }

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

  .cta-block__actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ================================================== */
/* ФИНАЛЬНОЕ ВЫРАВНИВАНИЕ ОТСТУПОВ (МОБИЛКИ)         */
/* ================================================== */
@media (max-width: 640px) {
    .projects-slider__inner,
    .popular-products__inner {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* ===================================================
   FOOTER — ИТ-Прайм (ТЁМНАЯ ТЕМА)
   Добавить в конец style.css
   =================================================== */

/* ── Основной блок ── */
.footer {
  background: #1e2a3a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--hero-font);
}

.footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 72px 50px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: 48px;
}

/* ── Колонка 1: О компании ── */
.footer__logo {
  display: inline-flex;
  margin-bottom: 20px;
}

.footer__logo-img {
  height: 45px;
  width: auto;
  display: block;
  /* Инвертируем логотип для тёмного фона */
  filter: brightness(0) invert(1);
}

.footer__about-text {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  margin-bottom: 20px;
  max-width: 240px;
}

.footer__requisites {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__req-item {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

/* ── Общие стили колонок ── */
.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__col-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

/* ── Навигация ── */
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__nav-link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease, padding-left 0.2s ease;
  width: fit-content;
}

.footer__nav-link:hover {
  color: var(--hero-accent);
  padding-left: 4px;
}

/* ── Колонка контактов ── */
.footer__phone {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  margin-bottom: 20px;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer__phone:hover {
  color: var(--hero-accent);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer__contact-item:hover {
  color: var(--hero-accent);
}

.footer__contact-item--addr {
  cursor: default;
}

.footer__contact-item--addr:hover {
  color: rgba(255, 255, 255, 0.5);
}

.footer__contact-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.footer__contact-item:hover .footer__contact-icon {
  background: rgba(36, 138, 255, 0.15);
  color: var(--hero-accent);
}

.footer__contact-item--addr:hover .footer__contact-icon {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
}

/* ── Мессенджер ── */
.footer__social {
  display: flex;
  gap: 10px;
}

.footer__social-link {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease,
              border-color 0.2s ease,
              transform 0.15s ease;
}

.footer__social-link:hover {
  background: rgba(36, 138, 255, 0.15);
  border-color: rgba(36, 138, 255, 0.4);
  transform: translateY(-2px);
}

/* Новое свойство для иконки Max (делаем её светлой для темной темы) */
.footer__social-max {
  width: 20px;
  height: 20px;
  background: url('https://maxicons.ru/icons/Max_logo.svg') center/contain no-repeat;
  filter: brightness(0) invert(1); /* Делает иконку белой под стиль темы */
  transition: opacity 0.2s ease;
}

.footer__social-link:hover .footer__social-max {
  opacity: 0.8;
}

/* ── Нижняя полоса ── */
.footer__sub {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__sub-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.footer__privacy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.2s ease;
}

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

/* ================================================== */
/* АДАПТИВ — планшет (≤ 1024px) → 2 колонки          */
/* ================================================== */
@media (max-width: 1024px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 32px 48px;
  }

  .footer__sub-inner {
    padding: 18px 32px;
  }

  .footer__about-text {
    max-width: 100%;
  }
}

/* ================================================== */
/* АДАПТИВ — мобильный (≤ 640px) → 1 колонка         */
/* ================================================== */
@media (max-width: 640px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 40px 20px;
  }

  .footer__sub-inner {
    padding: 16px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .footer__phone {
    font-size: 20px;
  }
}