/* Базовые стили и сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  -webkit-text-size-adjust: 100%; /* Предотвращает автоматическое изменение размера текста в iOS */
  -ms-text-size-adjust: 100%;
}

body {
  font-family: 'Roboto', 'Open Sans', sans-serif;
  line-height: 1.6;
  color: #fefefe;
  background-color: #1f3661;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Предотвращение overflow для всех изображений и видео */
img, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Защита изображений от скачивания */
img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Предотвращение переполнения текстом */
p, h1, h2, h3, h4, h5, h6, span, div {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Длинные ссылки и email */
a {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  -webkit-tap-highlight-color: rgba(232, 81, 36, 0.2);
  touch-action: manipulation;
}

/* Минимальный размер touch target для доступности на мобильных (44x44px рекомендация Apple/Google) */
@media (max-width: 768px) {
  button:not(.modal-close),
  input[type="submit"],
  input[type="button"],
  .btn,
  .messenger-btn,
  .nav a,
  .mobile-menu-toggle {
    min-height: 44px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

/* Предотвращение overflow для pre и code */
pre, code {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

/* Цветовая палитра */
:root {
  --primary-bg: #1f3661;
  --accent-color: #e85124;
  --text-color: #fefefe;
  --text-secondary: #e0e0e0;
  --overlay: rgba(31, 54, 97, 0.8);
}

/* Контейнер */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Защита от overflow для всех блочных элементов */
div, section, article, aside, header, footer, main, nav {
  max-width: 100%;
  box-sizing: border-box;
}

/* Кнопки */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--text-color);
  text-decoration: none;
  border: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Убирает синюю подсветку при тапе в iOS */
  touch-action: manipulation; /* Улучшает производительность touch событий */
  user-select: none;
}

.btn:hover {
  background-color: #c6411f;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(232, 81, 36, 0.3);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(232, 81, 36, 0.2);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: var(--text-color);
}

/* Заголовки */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 15px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

h3 {
  font-size: 1.5rem;
}

/* Шапка */
/* ============================================================
   ХЕДЕР — Glassmorphism, современный, mobile-first
   ============================================================ */
.header {
  background: rgba(10, 18, 42, 0.62);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Оранжевая линия-акцент снизу — появляется при скролле */
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(232,81,36,0.7) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.header.scrolled {
  background: rgba(6, 12, 30, 0.90);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.45);
}

.header.scrolled::after {
  opacity: 1;
}

.header-content {
  display: flex;
  align-items: center;
  padding: 9px 0;
  gap: 12px;
}

/* --- Логотип --- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-color);
  flex-shrink: 0;
  gap: 10px;
}

.logo img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Расширенный контейнер для шапки — больше места для навигации */
.header .container {
  max-width: 1440px;
  padding: 0 32px;
}

/* --- Навигация (десктоп) --- */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.nav {
  display: flex;
  list-style: none;
  gap: 4px;
  margin: 0; padding: 0;
}

.nav a {
  display: block;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 5px 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

/* Подчёркивание с анимацией */
.nav a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 12px; right: 12px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* --- Правый блок (телефон + мессенджеры + бургер) --- */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(232,81,36,0.12);
  border: 1px solid rgba(232,81,36,0.28);
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.header-phone:hover {
  background: rgba(232,81,36,0.24);
  border-color: rgba(232,81,36,0.55);
  box-shadow: 0 0 14px rgba(232,81,36,0.2);
}

.header-phone svg { flex-shrink: 0; }

.header-msg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.header-msg-btn:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(232,81,36,0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,81,36,0.15);
}

.header-msg-btn img {
  width: 18px; height: 18px;
  display: block;
}

/* --- Бургер --- */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 6px;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  gap: 4px;
  transition: background 0.2s;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.12);
}

.mobile-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fefefe;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  margin: 0 auto;
}

/* Hero блок */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(31, 54, 97, 0.2), rgba(31, 54, 97, 0.2)), 
              url('../images/hero-bg.webp') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(31, 54, 97, 0.9) 0%, rgba(31, 54, 97, 0.7) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

/* Секции */
.section {
  padding: 80px 0;
  position: relative;
}

.section-bg-light {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Карточки */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Нечётный последний элемент — по центру */
.cards-grid .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 15px);
  margin: 0 auto;
}

.card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 24px;
}

.card h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  min-height: 90px;
}

.card-logo img {
  width: auto !important;
  height: auto !important;
  max-width: 200px !important;
  max-height: 100px !important;
  object-fit: contain;
}

@media (max-width: 767px) {
  .card-logo img {
    max-width: 160px !important;
    max-height: 80px !important;
  }
}

/* Мессенджеры */
.messengers {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 50px 0;
}

.messenger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 35px;
  background-color: rgba(255, 255, 255, 0.1);
  /*color: var(--text-color);*/
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.messenger-btn:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.messenger-btn img {
  width: 32px;
  height: 32px;
}

/* Новый класс-модификатор для столбца */
.messengers.is-column {
  flex-direction: column;
    justify-content: center;
  gap: 5px;
  margin: 5px 0;
}

/* Партнеры */
.partners {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  align-items: center;
  margin-top: 50px;
}

.partner-logo {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  transition: all 0.3s ease;
}

.partner-logo:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  /*filter: brightness(0) invert(1);*/
  opacity: 0.8;
  transition: all 0.3s ease;
}

.partner-logo:hover img {
  opacity: 1;
}

/* Команда */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.team-member {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  transition: all 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.team-member img {
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  border: 3px solid var(--accent-color);
}

.team-member h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.team-member p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.team-member .phone {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
}

.team-member .phone:hover {
  text-decoration: underline;
}

/* Контакты */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
}

.contact-card h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.contact-card p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.contact-card a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-card a:hover {
  color: var(--accent-color);
}

/* Формы */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: var(--text-color);
  font-size: 16px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-color);
  background-color: rgba(255, 255, 255, 0.15);
}

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





/* ===== GLASS формы ===== */
:root{
  --glass-bg: rgba(31,54,97,.25);
  --glass-bg-hover: rgba(31,54,97,.35);
  --glass-border: rgba(255,255,255,.25);
}

/* Базовые поля */
.form-group input,
.form-group textarea{
  width:100%;
  padding:12px 14px;
  background: var(--glass-bg);
  color: var(--text-color);
  border:1px solid var(--glass-border);
  border-radius:12px;
  font-size:16px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:.2s ease;
}
.form-group input:hover,
.form-group textarea:hover{
  background: var(--glass-bg-hover);
}
.form-group input:focus,
.form-group textarea:focus{
  outline:none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(232,81,36,.18);
}

/* Скрываем нативный select, но оставляем в DOM для отправки формы и доступности */
.form-group select.visually-hidden{
  position:absolute !important;
  left:-9999px !important;
  width:1px; height:1px;
  overflow:hidden; clip:rect(0 0 0 0);
}

/* ===== Кастомный стеклянный select ===== */
.glass-select{ position:relative; }
.glass-select__button{
  width:100%;
  text-align:left;
  padding:12px 40px 12px 14px;
  background: var(--glass-bg);
  color: var(--text-color);
  border:1px solid var(--glass-border);
  border-radius:12px;
  font-size:16px;
  line-height:1.4;
  cursor:pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:.2s ease;
}
.glass-select__button:hover{ background: var(--glass-bg-hover); }
.glass-select__button:after{
  content:"▾";
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  opacity:.9; pointer-events:none;
}

/* Выпадающее меню */
.glass-select__list{
  position:absolute; left:0; right:0; top:calc(100% + 6px);
  background: var(--glass-bg);
  border:1px solid var(--glass-border);
  border-radius:14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
  max-height:280px; overflow:auto;
  padding:6px; margin:0; list-style:none;
  z-index:50;
  display:none;
}
.glass-select__list.is-open{ display:block; }

.glass-select__option{
  padding:10px 12px; border-radius:10px; cursor:pointer;
  color:var(--text-color); white-space:normal;
}
.glass-select__option:hover{ background: rgba(255,255,255,.08); }
.glass-select__option.is-selected{ outline:2px solid rgba(232,81,36,.35); }

/* Мелочи */
.form-group label{ margin-bottom:8px; color:var(--text-secondary); font-weight:600; }
.form-group textarea{ min-height:120px; resize:vertical; }








/* Подвал */
.footer {
  background-color: rgba(31, 54, 97, 0.95);
  padding: 50px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: var(--accent-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

/* Модальные окна */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--primary-bg);
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideIn 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 30px;
  color: var(--text-color);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-color);
}

/* Услуги — 5 cards: 2 centered top + 3 bottom */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 30px;
  margin-top: 50px;
}

/* Default: each card spans 2 of 6 cols (= 3 per row) */
.services-grid .service-card {
  grid-column: span 2;
}

/* First 2 cards: span 3 of 6 cols, offset to center */
.services-grid .service-card:nth-child(1) {
  grid-column: 1 / 4;
}
.services-grid .service-card:nth-child(2) {
  grid-column: 4 / 7;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 30px;
}

.service-card h3 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.service-card .btn {
  width: 100%;
}

/* Анимации */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

/* Таблицы адаптивные */
table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
}

table img {
  max-width: 100%;
  height: auto !important;
}

/* ─── Адаптивность ─── */

/* Компактный десктоп (≤1400px): скрыть мессенджеры и текст телефона */
@media (max-width: 1400px) {
  .header-msg-btn { display: none; }
  .header-phone-text { display: none; }
  .header-phone { padding: 6px 10px; border-radius: 9px; gap: 0; }
}

/* Планшеты и мобильные (≤1200px): бургер вместо горизонтальной навигации */
@media (max-width: 1200px) {
  .mobile-menu-toggle { display: flex; }
  .header-nav { display: none; }

  /* Логотип — слева, header-right — справа (пока меню закрыто) */
  .header-content { justify-content: space-between; }

  /* ═══ МОБИЛЬНЫЙ OVERLAY ═══
     Хедер разворачивается на весь экран. Это избегает проблемы
     position:fixed внутри backdrop-filter stacking context. */
  .header.menu-open {
    height: 100dvh;
    background: rgba(6, 12, 30, 0.97) !important;
    backdrop-filter: blur(32px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(160%) !important;
    box-shadow: none !important;
    overflow: hidden;
  }

  .header.menu-open .header-content {
    flex-wrap: wrap;
    justify-content: space-between;
    align-content: flex-start;
    height: 100%;
    padding-bottom: 0;
  }

  /* Логотип и кнопки остаются в первой строке */
  .header.menu-open .logo        { order: 1; }
  .header.menu-open .header-right { order: 2; }

  /* Навигация — вторая строка, заполняет оставшееся пространство */
  .header.menu-open .header-nav {
    order: 3;
    display: flex;
    flex: 1 1 100%;   /* flex-basis:100% → перенос на вторую строку; flex-grow:1 → занять всё оставшееся */
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    position: relative;
    padding: 20px 20px 80px;
    overflow: hidden;
  }

  /* Декоративные цветовые orbs */
  .header.menu-open .header-nav::before {
    content: '';
    position: absolute;
    top: 0; right: -40px;
    width: 280px; height: 280px;
    background: radial-gradient(circle, rgba(232,81,36,0.14) 0%, transparent 70%);
    pointer-events: none;
  }
  .header.menu-open .header-nav::after {
    content: '';
    position: absolute;
    bottom: 0; left: -40px;
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(31,54,97,0.45) 0%, transparent 70%);
    pointer-events: none;
  }

  /* Вертикальный список */
  .header.menu-open .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    gap: 6px;
  }

  /* Анимация появления пунктов */
  .header.menu-open .nav li {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    width: 100%;
  }
  .header.menu-open .nav.active li { opacity: 1; transform: translateY(0); }
  .header.menu-open .nav.active li:nth-child(1) { transition-delay: 0.05s; }
  .header.menu-open .nav.active li:nth-child(2) { transition-delay: 0.10s; }
  .header.menu-open .nav.active li:nth-child(3) { transition-delay: 0.15s; }
  .header.menu-open .nav.active li:nth-child(4) { transition-delay: 0.20s; }
  .header.menu-open .nav.active li:nth-child(5) { transition-delay: 0.25s; }
  .header.menu-open .nav.active li:nth-child(6) { transition-delay: 0.30s; }

  /* Стиль ссылок в оверлее */
  .header.menu-open .nav a {
    display: block;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: rgba(255,255,255,0.90);
    padding: 15px 28px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(255,255,255,0.04);
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    white-space: normal; /* разрешить перенос в оверлее */
  }
  .header.menu-open .nav a:hover,
  .header.menu-open .nav a:focus {
    background: rgba(232,81,36,0.14);
    border-color: rgba(232,81,36,0.35);
    color: #fff;
    box-shadow: 0 0 20px rgba(232,81,36,0.12);
  }
  .header.menu-open .nav a::after { display: none; }
}

/* Мобильные (≤900px): глобальный overflow и сетки */
@media (max-width: 900px) {
  html, body {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero h1 { font-size: 2rem; }
  .hero p  { font-size: 1rem; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .section { padding: 60px 0; }

  .cards-grid    { grid-template-columns: 1fr; }
  .partners      { grid-template-columns: repeat(2, 1fr); }
  .team-grid     { grid-template-columns: 1fr; }
  .contact-info  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .messengers    { flex-direction: column; align-items: center; }
  .messenger-btn { width: 200px; justify-content: center; }

  /* Все 2-колоночные inline-grid на мобильном в 1 колонку */
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero {
    min-height: 80vh;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .modal-content {
    padding: 20px;
  }

  .section {
    padding: 40px 0;
  }
}

/* --- Стили для нового Hero блока (Glassmorphism) --- */
.hero-glassmorphism {
    height: 100vh;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Убираем прокрутку на самом блоке */
    position: relative; /* Для позиционирования фона */
    padding: 100px 20px 20px 20px; /* Добавлен padding-top для header */
    box-sizing: border-box;
}

.hero-glassmorphism-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: 1;
    will-change: transform;
}

/* Стили для стеклянной плитки */
.glass-container {
    width: 90%;
    max-width: 700px;
    padding: 30px;
    box-sizing: border-box;
    background: rgba(31, 54, 97, 0.25); /* Используем цвет фона сайта с прозрачностью */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    color: #ffffff;
    text-align: center;
    transition: transform 0.1s ease-out;
    position: relative; /* Чтобы быть поверх фона */
    z-index: 2;
    /* Убраны max-height и overflow-y: auto чтобы избежать внутреннего скролла на мобильных */
}

/* Уникальные стили для заголовков и текста внутри нового Hero блока */
.hero-glassmorphism h1 {
    font-size: 2.5rem; /* Размер как в старом hero */
    margin-top: 0;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-glassmorphism p {
    font-size: 1.2rem; /* Размер как в старом hero */
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--text-secondary); /* Используем переменную цвета из вашего CSS */
}

/* Уникальные стили для кнопки */
.hero-glassmorphism .cta-button {
    display: inline-block;
    text-decoration: none;
    background-color: var(--accent-color); /* Используем ваш акцентный цвет */
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-glassmorphism .cta-button:hover {
    background-color: #c6411f; /* Цвет при наведении из вашего класса .btn:hover */
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 8px 20px rgba(232, 81, 36, 0.3);
}

.hero-glassmorphism .cta-button:active {
    transform: scale(0.98);
}

/* Адаптивность для нового Hero блока */
@media (max-width: 768px) {
    .hero-glassmorphism {
        padding: 90px 20px 20px 20px;
    }
    .hero-glassmorphism h1 {
        font-size: 2rem;
    }
    .hero-glassmorphism p {
        font-size: 1rem;
        line-height: 1.6;
    }
    .glass-container {
        padding: 25px;
        max-height: 78vh;
    }
}

@media (max-width: 480px) {
    .hero-glassmorphism {
        padding: 80px 15px 20px 15px; /* Уменьшаем padding-top для мобильных */
    }
    .hero-glassmorphism h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .glass-container {
        padding: 20px 15px;
        width: 95%;
        max-height: 75vh;
    }
    .hero-glassmorphism p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 20px;
    }
    .hero-glassmorphism .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

/* Улучшения mobile-first для форм и модальных окон */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 30px 20px;
        max-height: 85vh;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Предотвращает автозум на iOS */
    }

    .logo img {
        height: 38px;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .header-content {
        padding: 8px 0;
    }

    /* Улучшение для footer на мобильных */
    .footer-bottom table {
        display: block;
        width: 100% !important;
    }

    .footer-bottom table tbody,
    .footer-bottom table tr {
        display: block;
        width: 100%;
    }

    .footer-bottom td {
        display: block;
        text-align: center !important;
        margin-bottom: 10px;
        width: 100% !important;
    }

    .footer-bottom td:last-child {
        margin-bottom: 0;
    }

    .footer-bottom td span,
    .footer-bottom td img {
        display: inline-block;
        vertical-align: middle;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
    }

    .modal-close {
        font-size: 25px;
        top: 10px;
        right: 10px;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .partners {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .partner-logo {
        max-width: 150px;
        margin: 0 auto;
    }

    /* Адаптация элементов с большими inline padding */
    [style*="padding: 30px"],
    [style*="padding:30px"] {
        padding: 20px !important;
    }

    [style*="padding: 40px"],
    [style*="padding:40px"] {
        padding: 20px !important;
    }

    /* Безопасные margin для мобильных */
    [style*="margin: 50px"],
    [style*="margin:50px"] {
        margin: 30px auto !important;
    }

    /* Адаптация больших размеров шрифта для мобильных */
    [style*="font-size: 1.6rem"],
    [style*="font-size:1.6rem"] {
        font-size: 1.1rem !important;
    }
}

/* Улучшения для очень маленьких экранов */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .glass-container {
        padding: 15px;
    }

    .hero-glassmorphism h1 {
        font-size: 1.5rem;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    /* Уменьшаем отступы для карточек */
    .card {
        padding: 20px;
    }

    .cards-grid {
        gap: 15px;
    }

    /* Кнопки на всю ширину для очень маленьких экранов */
    .btn {
        width: 100%;
        padding: 10px 20px;
    }

    /* Уменьшаем размер иконок */
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    /* Месседжеры */
    .messenger-btn {
        width: 100%;
        font-size: 14px;
        padding: 10px 20px;
    }

    .messenger-btn img {
        width: 28px;
        height: 28px;
    }

    /* Формы */
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 14px;
        padding: 10px;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-section {
        padding: 0 5px;
    }
}
/* ==============================================
   SEO/GEO БЛОК СТИЛИ
   ============================================== */

/* Скрыть SEO/GEO блок для пользователей, оставить для поисковиков */
.seo-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.geo-regions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.geo-region {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.geo-region:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.geo-region h3 {
    color: var(--accent-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.geo-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.geo-tag {
    display: inline-block;
    background: rgba(232, 81, 36, 0.15);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(232, 81, 36, 0.3);
    transition: all 0.3s ease;
    cursor: default;
}

.geo-tag:hover {
    background: rgba(232, 81, 36, 0.25);
    border-color: rgba(232, 81, 36, 0.5);
    transform: scale(1.05);
}

.geo-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.geo-tag-small {
    display: inline-block;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.geo-tag-small:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

/* ==============================================
   FAQ АККОРДЕОН СТИЛИ
   ============================================== */

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(232, 81, 36, 0.3);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(232, 81, 36, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: var(--accent-color);
}

.faq-item.active .faq-icon {
    background: var(--accent-color);
    color: white;
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 25px 25px 25px;
}

.faq-answer-short {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}

.faq-answer-full {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.faq-cta {
    background: rgba(232, 81, 36, 0.1);
    border-left: 3px solid var(--accent-color);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.faq-cta strong {
    color: var(--accent-color);
}

.faq-cta a {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Кликабельный CTA блок */
.faq-cta-clickable {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.faq-cta-clickable:hover {
    background: rgba(232, 81, 36, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 81, 36, 0.3);
}

.faq-cta-clickable:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(232, 81, 36, 0.2);
}

.faq-cta-hint {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.faq-cta-clickable:hover .faq-cta-hint {
    opacity: 1;
}

/* Адаптивность для GEO и FAQ */
@media (max-width: 768px) {
    .geo-regions {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .geo-region {
        padding: 20px;
    }

    .faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 480px) {
    .geo-tag {
        font-size: 0.85rem;
        padding: 5px 10px;
    }

    .geo-tag-small {
        font-size: 0.8rem;
        padding: 4px 10px;
    }

    .faq-question {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .faq-question-text {
        padding-right: 10px;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px 15px;
    }
}

/* Footer-bottom responsive */
@media (max-width: 768px) {
  .footer-bottom p {
    flex-direction: column !important;
    text-align: center !important;
  }
  
  .footer-bottom span {
    justify-content: center !important;
  }
}

/* ===================================================================
   УЛУЧШЕННЫЕ СТИЛИ ДЛЯ SELECT (GLASSMORPHISM)
   Применяется ко всем select элементам на сайте для единообразия
   =================================================================== */

select {
      /* Основные стили */
      width: 100%;
      padding: 15px 20px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 10px;
      font-size: 16px;
      font-family: 'Roboto', 'Open Sans', sans-serif;
      transition: all 0.3s ease;
      cursor: pointer;

      /* Glassmorphism эффект */
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);

      /* Цвет текста */
      color: #fefefe;
  }

/* При наведении и фокусе */
select:hover,
select:focus {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.3);
      outline: none;
      box-shadow: 0 4px 15px rgba(232, 81, 36, 0.2);
  }

/* Стили для option элементов (выпадающий список) */
select option {
      background: #2a3f5f; /* Темный синий фон для опций */
      color: #fefefe; /* Белый текст */
      padding: 10px 15px;
  }

/* При наведении на option */
select option:hover {
      background: #e85124; /* Оранжевый фон при наведении */
      color: #ffffff;
  }

/* Выбранная option */
select option:checked {
      background: #3a5070; /* Чуть светлее для выбранного */
      color: #ffffff;
      font-weight: 500;
  }

/* =============================================
   МОБИЛЬНАЯ ВЕРСИЯ (ФИКСЫ)
   ============================================= */

@media (max-width: 768px) {
    nav h1,
    nav .logo,
    nav a[href="/"] {
        font-size: 1.3rem !important;
    }

    .faq-item.active .faq-answer {
        max-height: none !important;
    }
}

/* ============================================================
   Чекбокс согласия на обработку персональных данных (152-ФЗ)
   Вставляется автоматически перед кнопкой submit во все формы
   ============================================================ */
.consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    border-radius: 6px;
    padding: 2px 0;
    transition: outline 0.2s;
}

.consent-wrapper input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.consent-wrapper label {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    cursor: pointer;
}

.consent-wrapper label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.consent-wrapper label a:hover {
    opacity: 0.85;
}

/* ============================================================
   МОБИЛЬНАЯ STICKY-ПАНЕЛЬ (глобальная, все страницы услуг)
   ============================================================ */
.mobile-sticky {
  display: flex;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1200;
  background: rgba(6, 12, 32, 0.96);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.09);
  height: 58px;
  padding: 0 12px;
  gap: 8px;
  align-items: center;
}

.mobile-sticky__phone {
  flex: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #e85124;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  border-radius: 11px;
  height: 42px;
  transition: background 0.2s;
  white-space: nowrap;
}

.mobile-sticky__phone:hover { background: #c6411f; }

.mobile-sticky__msg {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fefefe;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 11px;
  height: 42px;
  transition: background 0.2s;
  white-space: nowrap;
}

.mobile-sticky__msg:hover { background: rgba(255,255,255,0.14); }

.mobile-sticky__icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: block;
}

@media (min-width: 768px) {
  .mobile-sticky { display: none; }
}

/* Отступ снизу на мобиле под sticky bar */
@media (max-width: 767px) {
  body { padding-bottom: 58px; }
}


/* ================================================================
   MODERN ANIMATIONS & PERFORMANCE (glassmorphism-compatible)
   ================================================================ */

/* ── Scroll-reveal base (JS adds .reveal-item via IO) ─────────── */
.reveal-item {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay for grid children */
.cards-grid .card.reveal-item:nth-child(2),
.services-grid .service-card.reveal-item:nth-child(2),
.products-grid .product-card.reveal-item:nth-child(2) { transition-delay: 0.08s; }
.cards-grid .card.reveal-item:nth-child(3),
.services-grid .service-card.reveal-item:nth-child(3),
.products-grid .product-card.reveal-item:nth-child(3) { transition-delay: 0.16s; }
.cards-grid .card.reveal-item:nth-child(4),
.services-grid .service-card.reveal-item:nth-child(4),
.products-grid .product-card.reveal-item:nth-child(4) { transition-delay: 0.24s; }
.cards-grid .card.reveal-item:nth-child(5),
.products-grid .product-card.reveal-item:nth-child(5) { transition-delay: 0.32s; }
.cards-grid .card.reveal-item:nth-child(6),
.products-grid .product-card.reveal-item:nth-child(6) { transition-delay: 0.40s; }

.steps-list .step.reveal-item:nth-child(2) { transition-delay: 0.1s; }
.steps-list .step.reveal-item:nth-child(3) { transition-delay: 0.2s; }
.steps-list .step.reveal-item:nth-child(4) { transition-delay: 0.3s; }
.steps-list .step.reveal-item:nth-child(5) { transition-delay: 0.4s; }
.steps-list .step.reveal-item:nth-child(6) { transition-delay: 0.5s; }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Stats strip ──────────────────────────────────────────────── */
.section-stats {
  padding: 50px 0;
  background: linear-gradient(135deg, rgba(232,81,36,0.07) 0%, rgba(31,54,97,0.4) 100%);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item {
  padding: 20px 10px;
}
.stat-number {
  display: inline-block;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent-color);
  line-height: 1;
}
.stat-suffix {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-color);
  vertical-align: top;
  margin-top: 4px;
  display: inline-block;
}
.stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.4;
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.2rem; }
}

/* ── Enhanced glassmorphism card hover ────────────────────────── */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.55s ease;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35), 0 0 0 1px rgba(232,81,36,0.25);
  border-color: rgba(232,81,36,0.35);
}
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, opacity 0.55s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(232,81,36,0.2);
}

/* ── Glassmorphism glow on focus/hover for buttons ────────────── */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 0; height: 0;
  background: rgba(255,255,255,0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
  pointer-events: none;
}
.btn:active::before {
  width: 300px;
  height: 300px;
}

/* ── Smooth image loading placeholder ────────────────────────── */
img {
  transition: opacity 0.3s ease;
}
img[loading="lazy"] {
  opacity: 0;
}
img[loading="lazy"].loaded,
img:not([loading]) {
  opacity: 1;
}

/* ── content-visibility for below-fold sections (skip first 3 to protect above-fold) ── */
.section:nth-of-type(n+4) {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ── Product card image: prevent CLS ─────────────────────────── */
.product-card__img-wrap img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: contain;
  height: auto;
}

/* ── Service card image: prevent CLS ─────────────────────────── */
.service-card img {
  aspect-ratio: 16 / 9;
}

/* ── Team member image: prevent CLS ─────────────────────────── */
.team-member img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

/* ── Gradient text accent for h1 on hero pages ───────────────── */
.hero-title-accent {
  background: linear-gradient(135deg, #ff7a4d 0%, #e85124 50%, #ff9965 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Pulse animation for CTA phone numbers ───────────────────── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,81,36,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(232,81,36,0); }
}
.hero-phone, .final-cta__phone {
  animation: pulse-glow 2.5s ease-in-out infinite;
  border-radius: 30px;
  display: inline-block;
}

/* ── Smooth scroll enhancement ───────────────────────────────── */
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Logo dimensions to prevent CLS ─────────────────────────── */
.logo img {
  width: auto;
  height: 48px;
  aspect-ratio: 1;
}

/* ── Form input font-size fix (prevent iOS zoom) ─────────────── */
.form-group input,
.form-group textarea,
.form-group select,
.glass-select__button {
  font-size: 16px;
}

/* ── Mobile: better touch targets ────────────────────────────── */
@media (max-width: 360px) {
  .partner-logo { height: 120px; }
  .stat-number { font-size: 2rem; }
}

/* ── Adv items animation ─────────────────────────────────────── */
.adv-item {
  transition: transform 0.3s ease, opacity 0.55s ease;
}
.adv-item:hover {
  transform: translateY(-4px);
}

/* ── FAQ item hover ──────────────────────────────────────────── */
.faq-item {
  transition: border-color 0.3s ease, opacity 0.55s ease, transform 0.55s ease;
}
.faq-item:hover {
  border-color: rgba(232,81,36,0.4) !important;
}

/* ================================================================
   PREMIUM MOBILE-FIRST UPDATE — glassmorphism photos, messenger
   icons, partners grid, modern dynamics
   ================================================================ */

/* ── 1. Team photos — glassmorphism style ─────────────────────── */
.team-member {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.team-member::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(232,81,36,0.06) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.team-member:hover::before { opacity: 1; }

.team-member:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(232,81,36,0.25);
  border-color: rgba(232,81,36,0.3);
}

.team-member img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center top;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 2px solid rgba(232,81,36,0.5);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 4px rgba(232,81,36,0.08);
  transition: box-shadow 0.4s ease, transform 0.4s cubic-bezier(.2,.8,.2,1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.team-member:hover img {
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 4px rgba(232,81,36,0.2);
  transform: scale(1.03);
}

.team-member h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-color);
}

.team-member p {
  font-size: 0.85rem;
  color: rgba(232,81,36,0.9);
  margin-bottom: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.team-member .phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.25s, color 0.25s;
}

.team-member .phone:hover {
  background: rgba(232,81,36,0.15);
  color: var(--accent-color);
  text-decoration: none;
}

/* ── 2. cards-grid mobile ─────────────────────────────────────── */
@media (max-width: 600px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .cards-grid .card:last-child:nth-child(odd) {
    grid-column: auto;
    max-width: 100%;
  }
}

/* ── 3. Partners grid — 2 columns mobile ──────────────────────── */
@media (max-width: 768px) {
  .partners {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 30px;
  }
  .partner-logo {
    height: 110px;
    padding: 12px;
    border-radius: 12px;
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 400px) {
  .partners {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .partner-logo { height: 90px; }
}

/* ── 4. Messenger buttons — icon-only on mobile ───────────────── */

/* Container — compact pill row on mobile */
@media (max-width: 768px) {
  .messengers {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 30px 0;
  }

  .messenger-btn {
    width: auto;
    min-width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    border: 1.5px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .messenger-btn img {
    width: 28px;
    height: 28px;
  }

  /* Hide text labels on mobile */
  .messenger-btn .msg-label {
    display: none;
  }
}

/* vkv-msg-btn — icon-only on mobile (general rule) */
@media (max-width: 768px) {
  .vkv-msg-btn {
    min-width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }
  .vkv-msg-btn .vkv-msg-ico {
    width: 28px;
    height: 28px;
    margin: 0;
  }

  /* footer messenger grid */
  .vkv-msg-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-start;
  }
}

/* ── 5. Modern premium dynamics ───────────────────────────────── */

/* Glassmorphism card — shimmer sweep on hover */
.card,
.product-card,
.service-card,
.contact-card {
  position: relative;
  overflow: hidden;
}

.card::after,
.product-card::after,
.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -75%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(255,255,255,0.07) 50%,
    transparent 60%
  );
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.card:hover::after,
.product-card:hover::after,
.service-card:hover::after {
  left: 125%;
}

/* Trust band numbers — glow pulse */
.trust-num {
  display: inline-block;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.trust-grid > div:hover .trust-num {
  color: var(--accent-color);
  text-shadow: 0 0 20px rgba(232,81,36,0.5);
}

/* Adv item icon glow on hover */
.adv-item svg {
  transition: filter 0.3s ease, transform 0.3s ease;
}

.adv-item:hover svg {
  filter: drop-shadow(0 0 8px rgba(232,81,36,0.7));
  transform: scale(1.15);
}

/* Step numbers — animated border on scroll reveal */
.step__num {
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.step.is-visible .step__num {
  box-shadow: 0 0 0 4px rgba(232,81,36,0.15), 0 0 20px rgba(232,81,36,0.2);
}

/* Product card image — subtle zoom */
.product-card__img-wrap {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}

.product-card__img-wrap img {
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.3s ease;
}

.product-card:hover .product-card__img-wrap img {
  transform: scale(1.06);
}

/* Hero CTA button — glow trail */
.cta-button,
a.cta-button {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(232,81,36,0.45);
}

/* Section headings — subtle entrance shimmer via IO */
h2 {
  transition: opacity 0.5s ease;
}

/* FAQ question hover */
.faq-question {
  transition: color 0.25s ease, padding-left 0.25s ease;
}

.faq-question:hover {
  color: var(--text-color);
  padding-left: 4px;
}

/* Gradient border on active FAQ */
.faq-item.active {
  border-image: linear-gradient(135deg, rgba(232,81,36,0.6), rgba(232,81,36,0.15)) 1;
  box-shadow: 0 0 0 1px rgba(232,81,36,0.2) inset;
}

/* service-card image zoom */
.service-card img {
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}

.service-card:hover img {
  transform: scale(1.05);
}

/* Floating accent orbs in hero (CSS-only, no JS) */
.hero-glassmorphism::before,
.hero-glassmorphism::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero-glassmorphism::before {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(232,81,36,0.12) 0%, transparent 70%);
  top: -100px;
  right: -80px;
  animation-duration: 14s;
}

.hero-glassmorphism::after {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(31,54,97,0.4) 0%, transparent 70%);
  bottom: -60px;
  left: -60px;
  animation-duration: 10s;
  animation-delay: -5s;
}

@keyframes orb-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glassmorphism::before,
  .hero-glassmorphism::after { animation: none; }
  .card::after, .product-card::after, .service-card::after { display: none; }
}

/* ── 6. Mobile-first overrides ────────────────────────────────── */

/* Team grid — 1 column stacked on mobile, 3 columns on desktop */
@media (max-width: 700px) {
  .team-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
  }
  .team-member img {
    max-width: 180px;
    height: 180px;
  }
}

@media (min-width: 701px) {
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Cards grid mobile already handled by 600px rule above */

/* Better spacing for mobile sections */
@media (max-width: 768px) {
  .section-stats { padding: 32px 0; }
  .stats-grid { gap: 12px; }
  .stat-item { padding: 12px 8px; }
  .stat-number { font-size: 2.2rem; }
  .stat-suffix { font-size: 1.6rem; }
}

/* Product cards 2-column on mobile */
@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .product-card__img-wrap img {
    height: 120px;
  }
  .product-card__name { font-size: 0.85rem; }
  .product-card__features { font-size: 0.78rem; }
  .product-card__price { font-size: 0.9rem; }
  .product-card__cta { font-size: 0.82rem; padding: 8px 12px; }
}

@media (max-width: 400px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   ПРАВКИ АПРЕЛЬ 2026  —  v2 (comprehensive fix)
   ═══════════════════════════════════════════════════════ */

/* ── GLOBAL: Messengers = icon-only EVERYWHERE (except footer) ── */
/* Hide bare text nodes via font-size:0 in ALL viewports */
.vkv-msg-btn,
.messenger-btn,
.hero-messenger-btn {
  font-size: 0 !important;
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  height: 52px;
  max-height: 52px;
  padding: 0 !important;
  border-radius: 50%;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 0;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
  flex-shrink: 0;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
.vkv-msg-btn:hover,
.messenger-btn:hover,
.hero-messenger-btn:hover {
  background: rgba(232, 81, 36, 0.25);
  border-color: rgba(232, 81, 36, 0.5);
  transform: translateY(-2px);
}
.vkv-msg-btn img,
.vkv-msg-btn .vkv-msg-ico,
.messenger-btn img,
.hero-messenger-btn img {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  font-size: 1rem;
  flex-shrink: 0;
  object-fit: contain;
}
.messenger-btn .msg-label {
  display: none !important;
}

/* ── FOOTER OVERRIDE: show text in footer messengers ──────────── */
.footer .vkv-msg-btn {
  font-size: 0.9rem !important;
  width: auto;
  min-width: auto;
  max-width: none;
  height: auto;
  max-height: none;
  padding: 8px 12px !important;
  border-radius: 999px;
  gap: 10px;
  overflow: visible;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
.footer .vkv-msg-btn img,
.footer .vkv-msg-btn .vkv-msg-ico {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
}

/* ── A. Mobile menu — «Кондиционирование» в одну строку ──────── */
@media (max-width: 1200px) {
  .header.menu-open .nav a {
    font-size: 1.05rem;
    white-space: nowrap;
  }
}

/* ── B. Messenger icon‑only on mobile (≤ 768px) ──────────────── */
/*    Works on BARE TEXT NODES via font-size:0                     */
@media (max-width: 768px) {

  /* --- Section .messengers (e.g. kondicionirovanie hero/cta) --- */
  .messengers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 24px 0;
  }

  .messenger-btn {
    font-size: 0 !important;           /* kills bare text nodes */
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    max-height: 56px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: all 0.3s ease;
    overflow: hidden;
    box-sizing: border-box;
    flex-shrink: 0;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }
  .messenger-btn:hover {
    background: rgba(232, 81, 36, 0.25);
    border-color: rgba(232, 81, 36, 0.5);
    transform: translateY(-2px);
  }

  .messenger-btn img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    font-size: 1rem;                   /* reset for alt text */
    flex-shrink: 0;
    object-fit: contain;
  }

  /* Hide .msg-label <span> if it exists (progressive enhancement) */
  .messenger-btn .msg-label {
    display: none !important;
  }

  /* --- Footer .vkv-msg-grid / .vkv-msg-btn ---- */
  .vkv-msg-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
  }

  /* vkv-msg-btn — icon-only on mobile (general) */
  .vkv-msg-btn {
    font-size: 0 !important;
    width: 52px;
    min-width: 52px;
    max-width: 52px;
    height: 52px;
    max-height: 52px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 0;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    overflow: hidden;
  }
  .vkv-msg-btn:hover {
    background: rgba(232, 81, 36, 0.25);
    border-color: rgba(232, 81, 36, 0.5);
    transform: translateY(-2px);
  }

  .vkv-msg-btn .vkv-msg-ico,
  .vkv-msg-btn img {
    width: 26px !important;
    height: 26px !important;
    max-width: 26px !important;
    max-height: 26px !important;
    margin: 0;
    font-size: 1rem;
  }

  /* Footer vkv-msg-btn on mobile — OVERRIDE: keep readable pill layout */
  .footer .vkv-msg-btn {
    font-size: 0.85rem !important;
    width: auto !important;
    min-width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    gap: 8px !important;
    overflow: visible !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  .footer .vkv-msg-btn img,
  .footer .vkv-msg-btn .vkv-msg-ico {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }

  /* --- hero‑messenger‑btn (kondicionirovanie hero) --- */
  .hero-messenger-btn {
    font-size: 0 !important;
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
  }
  .hero-messenger-btn img {
    width: 26px !important;
    height: 26px !important;
  }

  /* --- final-cta__actions (Остались вопросы?) --- */
  .final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .final-cta__actions .vkv-msg-btn {
    font-size: 0 !important;
    width: 52px;
    height: 52px;
    min-width: 52px;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    gap: 0 !important;
  }
}

/* ── C. Desktop services-grid override removed — base rules handle 2+3 ── */
/* Mobile: stack to 1 column (already handled by 600px media query) */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .services-grid .service-card,
  .services-grid .service-card:nth-child(1),
  .services-grid .service-card:nth-child(2) {
    grid-column: auto !important;
  }
}

/* ── D. Premium visual polish ────────────────────────────────── */

/* Accent gradient glow on section headings */
h2 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #e85124, #ff8c42);
  border-radius: 2px;
  margin: 12px auto 0;
}
/* Override for left-aligned h2 */
.section h2.text-left::after {
  margin-left: 0;
}

/* ── Фикс для предотвращения деформации webp-заглушек (убираем "овалы") ── */
img[src*="icons-placeholder"] {
  object-fit: contain !important;
  flex-shrink: 0 !important;
  max-width: 100% !important;
}

.proj-text h2::after,
.mont-text h2::after,
.tech-text h2::after,
.prod-text h2::after {
  margin: 12px 0 0;
}

/* Card glow on hover */
.card:hover,
.service-card:hover,
.contact-card:hover {
  border-color: rgba(232, 81, 36, 0.35);
  box-shadow: 0 0 30px rgba(232, 81, 36, 0.08), 0 8px 32px rgba(0,0,0,0.2);
}

/* Refined glassmorphism borders */
.card,
.service-card,
.contact-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Premium CTA button */
.btn,
.cta-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.btn::before,
.cta-button::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s ease;
}
.btn:hover::before,
.cta-button:hover::before {
  left: 100%;
}

/* Floating accent pulse for mobile sticky bar */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 -2px 20px rgba(232, 81, 36, 0.15); }
  50%      { box-shadow: 0 -2px 30px rgba(232, 81, 36, 0.25); }
}
.mobile-sticky {
  animation: subtle-pulse 3s ease-in-out infinite;
}

/* Footer section headings — accent color */
.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 16px;
}

/* Footer links subtle hover */
.footer-section a {
  transition: color 0.2s ease, opacity 0.2s ease;
}
.footer-section a:hover {
  color: var(--accent-color);
  opacity: 0.9;
}

/* FAQ items — refined glassmorphism */
.faq-item {
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.faq-item:hover {
  border-color: rgba(232, 81, 36, 0.2);
  box-shadow: 0 4px 20px rgba(232, 81, 36, 0.06);
}

/* Form inputs — softer glassmorphism */
input, textarea, select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(232, 81, 36, 0.15);
  outline: none;
}

/* Section separator — subtle gradient divider */
.section + .section-bg-light,
.section-bg-light + .section {
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* Card icon — refined background */
.card-icon {
  background: linear-gradient(135deg, rgba(232, 81, 36, 0.85), rgba(255, 140, 66, 0.85));
  box-shadow: 0 4px 15px rgba(232, 81, 36, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover .card-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 81, 36, 0.3);
}

/* Smooth scroll for all anchor links */
html {
  scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════════
   PREMIUM VISUAL UPGRADE 2026  —  Cinema-Grade Design System
   «Тихая премиальность» — Living Blueprint + Frosted Depth
   ═══════════════════════════════════════════════════════════════════ */

/* ── Extended Palette ────────────────────────────────────────────── */
:root {
  --accent-warm: #ff8c42;
  --accent-glow: rgba(232,81,36,0.15);
  --glass-highlight: rgba(255,255,255,0.08);
  --glass-shadow-deep: rgba(0,0,0,0.45);
  --depth-surface: rgba(255,255,255,0.04);
  --radius-card: 20px;
}

/* ── 0. Body Depth — Ambient Gradient ────────────────────────────── */
body {
  background-image:
    radial-gradient(ellipse at 15% 50%, rgba(31,54,97,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 30%, rgba(232,81,36,0.04) 0%, transparent 45%);
}

/* ── 1. Living Blueprint — Hero Scan-Line (ENHANCED) ─────────────── */
.hero-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(232,81,36,0.5) 10%,
    rgba(255,140,66,0.9) 50%,
    rgba(232,81,36,0.5) 90%,
    transparent 100%
  );
  z-index: 1;
  will-change: transform;
  animation: hero-scan 5s ease-in-out infinite;
  pointer-events: none;
  box-shadow:
    0 0 30px 4px rgba(232,81,36,0.4),
    0 0 80px 8px rgba(232,81,36,0.15);
}

@keyframes hero-scan {
  0% {
    transform: translateY(-2px);
    opacity: 0;
  }
  5%  { opacity: 0.85; }
  95% { opacity: 0.85; }
  100% {
    transform: translateY(100vh);
    opacity: 0;
  }
}

/* ── 2. Living Blueprint — Hero Pulse-Grid (ENHANCED) ────────────── */
.hero-pulse-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  background-image: radial-gradient(
    circle,
    rgba(232,81,36,0.25) 1px,
    transparent 1px
  );
  background-size: 80px 80px;
  animation: pulse-grid 3s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulse-grid {
  0%   { opacity: 0.08; }
  100% { opacity: 0.35; }
}

/* ── 3. Hero — Cinematic Vignette ────────────────────────────────── */
.hero-glassmorphism-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 15%, rgba(8,12,30,0.55) 100%);
  pointer-events: none;
}

/* ── 4. Hero — Glass Container Staggered Entrance ────────────────── */
.glass-container {
  animation: glass-entrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.glass-container h1 {
  animation: glass-child-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.glass-container p {
  animation: glass-child-enter 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}
.glass-container .cta-button {
  animation: glass-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes glass-entrance {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes glass-child-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 5. Hero — Glass Container Pulsing Border Glow ───────────────── */
.glass-container::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1.5px solid rgba(232,81,36,0.2);
  z-index: 3;
  pointer-events: none;
  animation: glow-border 3s ease-in-out 1.2s infinite alternate both;
}

@keyframes glow-border {
  from {
    opacity: 0.3;
    border-color: rgba(232,81,36,0.15);
  }
  to {
    opacity: 1;
    border-color: rgba(232,81,36,0.4);
  }
}

/* ── 6. Frosted Depth — Card Upgrade ─────────────────────────────── */

/* 6a. Modern radius */
.card,
.service-card,
.contact-card {
  border-radius: var(--radius-card);
}

.product-card__img-wrap {
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

/* 6b. Inner highlight reflection (idle state) */
.card,
.service-card,
.contact-card {
  box-shadow: inset 0 1px 0 var(--depth-surface);
}

/* 6c. Dramatic hover — lift + deep shadow + glow ring */
.card:hover,
.service-card:hover,
.contact-card:hover {
  transform: translateY(-8px);
  border-color: rgba(232, 81, 36, 0.4);
  box-shadow:
    0 32px 80px var(--glass-shadow-deep),
    0 0 0 1px rgba(232,81,36,0.3),
    0 0 50px -12px rgba(232,81,36,0.15),
    inset 0 1px 0 var(--glass-highlight);
}

/* ── 7. H2 Accent Line Animation ─────────────────────────────────── */
h2.reveal-item::after {
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}
h2.is-visible::after {
  transform: scaleX(1);
}
/* Left-aligned headings grow from left */
.proj-text h2.is-visible::after,
.mont-text h2.is-visible::after,
.tech-text h2.is-visible::after,
.prod-text h2.is-visible::after {
  transform-origin: left;
}

/* ── 8. Enhanced Staggered Reveal — Scale + Translate ────────────── */
.reveal-item {
  transform: translateY(26px) scale(0.97);
}
.reveal-item.is-visible {
  transform: translateY(0) scale(1);
}

/* ── 9. Magnetic Button — CSS Custom Properties ──────────────────── */
.cta-button {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
}

/* Override hover transforms to compose with magnetic offset */
.cta-button:hover {
  transform: translate(var(--magnetic-x), var(--magnetic-y)) translateY(-3px) scale(1.02);
}
.hero-glassmorphism .cta-button:hover {
  transform: translate(var(--magnetic-x), var(--magnetic-y)) scale(1.05) translateY(-2px);
}

/* ── 10. Accessibility — prefers-reduced-motion ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  body {
    background-image: none;
  }
  .hero-scan-line,
  .hero-pulse-grid {
    display: none;
  }
  .hero-glassmorphism-bg::after {
    animation: none;
  }
  .glass-container,
  .glass-container h1,
  .glass-container p,
  .glass-container .cta-button {
    animation: none !important;
    opacity: 1 !important;
  }
  .glass-container::after {
    animation: none;
    opacity: 1;
  }
  h2.reveal-item::after {
    transform: scaleX(1);
    transition: none;
  }
  .reveal-item {
    transform: none !important;
    opacity: 1 !important;
  }
  .cta-button {
    --magnetic-x: 0px !important;
    --magnetic-y: 0px !important;
  }
}
