/*
  Proxima — Process Mining с ИИ
  Тёмная тема, высокая контрастность (WCAG AA), адаптивная сетка.
  Шрифт: Inter. Размеры через clamp().
*/

:root{
  --bg: #0b0f14;           /* основной фон */
  --panel: #0f141b;        /* панели/карточки */
  --ink: #e6eef7;          /* основной текст */
  --muted: #9eb0c4;        /* вторичный текст */
  --acc: #5cc8ff;          /* акцент */
  --twin: #6e7bff;         /* акцент TWIN XR */
  --wa: #25D366;           /* WhatsApp зелёный */

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --glass: rgba(255,255,255,.06);

  --container: 1200px;

  --gap: 20px;
  --gap-lg: 28px;
  --gap-xl: 40px;

  /* Обновлённые брейкпоинты для лучшей поддержки ноутбуков */
  --bp-sm: 480px;   /* мобильные */
  --bp-md: 768px;   /* планшеты портрет */
  --bp-lg: 900px;   /* планшеты ландшафт */
  --bp-xl: 1200px;  /* ноутбуки и десктопы */
  --bp-xxl: 1440px; /* большие экраны */
}

/* Сброс и базовые стили */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji';
  line-height: 1.6;
  font-size: clamp(15px, 1.4vw, 18px);
}

/* Улучшения для мобильного скролла */
@media (max-width: 768px) {
  html {
    scroll-behavior: auto; /* Отключаем плавный скролл на мобильных для лучшей производительности */
  }
  
  body {
    -webkit-overflow-scrolling: touch; /* Улучшенный скролл на iOS */
    font-size: clamp(14px, 1.2vw, 16px);
  }
}

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

/* Улучшения для мобильных изображений */
@media (max-width: 640px) {
  img {
    height: auto;
  }
  
  .solution__media img {
    height: 160px;
  }
  
  .benefit-card__icon img {
    width: 100%;
    height: auto;
  }
}

a{ color: var(--acc); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Улучшения для мобильных ссылок */
@media (max-width: 640px) {
  a {
    padding: 2px 0; /* Увеличиваем область касания */
  }
  
  a:focus {
    outline-offset: 4px; /* Увеличиваем отступ фокуса */
  }
}

.container{
  width: min(100% - 2*var(--gap), var(--container));
  margin-inline: auto; /* Центрируем контейнер */
  padding-left: var(--gap);
  padding-right: var(--gap);
}

/* Улучшения для мобильного контейнера */
@media (max-width: 640px) {
  .container {
    width: min(100% - 2*16px, var(--container));
    padding-left: 16px;
    padding-right: 16px;
    margin-inline: auto;
  }
}

.section{ padding: clamp(32px, 5vw, 64px) 0; }
.section--alt{ background: #0d131a; }

/* Первая секция (Hero) должна начинаться от верха */
.hero.section{
  padding-top: calc(64px + clamp(32px, 5vw, 64px)); /* Отступ под шапку + стандартный отступ */
  padding-bottom: clamp(32px, 5vw, 64px);
}

/* Улучшения для мобильных отступов секций */
@media (max-width: 640px) {
  .section {
    padding: clamp(24px, 4vw, 40px) 0;
  }
  
  .section--alt {
    background: linear-gradient(180deg, #0d131a 0%, #0b0f14 100%);
  }
  
  .hero.section {
    padding-top: calc(64px + clamp(24px, 4vw, 40px));
    padding-bottom: clamp(24px, 4vw, 40px);
  }
  
  /* Добавляем отступы для мобильных секций */
  .section .container {
    padding-left: var(--gap);
    padding-right: var(--gap);
  }
}

h1, h2, h3{ line-height: 1.25; margin: 0 0 16px; }
h1{ font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; }
h2{ font-size: clamp(22px, 3vw, 32px); }
h3{ font-size: clamp(18px, 2.2vw, 22px); }
p{ margin: 0 0 12px; color: var(--ink); }
.muted{ color: var(--muted); }

/* Улучшения для мобильных заголовков */
@media (max-width: 640px) {
  h1, h2, h3 {
    margin: 0 0 12px;
  }
  
  h1 {
    font-size: clamp(24px, 5vw, 28px);
    letter-spacing: -0.01em;
  }
  
  h2 {
    font-size: clamp(20px, 4vw, 22px);
  }
  
  h3 {
    font-size: clamp(16px, 3vw, 18px);
  }
  
  p {
    margin: 0 0 10px;
    line-height: 1.5;
  }
}

/* Шапка */
.header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: linear-gradient(180deg, rgba(10,12,16,.92), rgba(10,12,16,.72));
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.glass{ background: var(--glass); }
.header__inner{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  height: 64px;
  padding: 0 var(--gap);
  position: relative;
  gap: var(--gap);
}
.logo{ color: var(--ink); font-weight: 700; letter-spacing: .4px; }

/* Бренд в шапке */
.brand{ display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.brand--right{ justify-content: flex-end; }
.brand--right .brand__logo{ height: 40px !important; }
.brand__logo{ height: 32px !important; width: auto !important; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.brand__divider{ opacity: .5; }
.brand__twin{ display: inline-flex; gap: 6px; align-items: center; color: var(--ink); font-weight: 700; letter-spacing: .2px; }
.brand__twin-mark{ color: var(--twin); }

/* Переключатель языка */
.language-switcher {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.lang-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
  background: var(--acc);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(92, 200, 255, 0.3);
}

.lang-btn.active:hover {
  background: var(--acc);
  color: var(--bg);
}

/* Улучшения для мобильного бренда */
@media (max-width: 640px) {
  .brand {
    gap: 8px;
  }

  .brand__logo {
    height: 28px !important;
  }

  .brand--right {
    display: flex;
    margin-left: auto;
    margin-right: 0;
    order: 1; /* Правый бренд идет первым на мобильных */
  }

  .language-switcher {
    margin-left: var(--gap);
    margin-right: 0;
    padding: 1px;
    order: 2; /* Переключатель после правого бренда */
  }

  .lang-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
}



/* Бургер-меню */
.burger-menu{
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 51;
}

.burger-menu__line{
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.burger-menu.is-active .burger-menu__line:nth-child(1){
  transform: rotate(45deg) translate(6px, 6px);
}

.burger-menu.is-active .burger-menu__line:nth-child(2){
  opacity: 0;
}

.burger-menu.is-active .burger-menu__line:nth-child(3){
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Навигация */
.nav{
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* Скрываем меню только на мобильных экранах */
@media (max-width: 899px) {
  .nav {
    display: none;
  }
}

/* Показываем меню на всех экранах от 900px и выше */
@media (min-width: 900px) {
  .nav {
    display: flex !important;
  }
}

.nav__link{ 
  color: var(--ink); 
  padding: 8px 12px; 
  border-radius: 8px; 
  transition: background-color 0.2s ease; 
  white-space: nowrap;
}
.nav__link:hover{ background-color: rgba(255,255,255,.08); text-decoration: none; }
.nav__link:focus{ outline: 2px solid var(--acc); outline-offset: 2px; }

/* Специальный стиль для пункта AI в навигации */
.nav__link--ai {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 25%, #7c3aed 50%, #6d28d9 75%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

/* Hover эффект для AI пункта - показываем фон поверх градиента */
.nav__link--ai:hover {
  background: rgba(255,255,255,.08);
  -webkit-text-fill-color: #c084fc;
  color: #c084fc;
}

/* Скрываем бургер на больших экранах */
@media (min-width: 900px) {
  .burger-menu {
    display: none !important;
  }
}

/* Мобильная навигация - для экранов до 899px */
@media (max-width: 899px) {
  .burger-menu{
    display: flex;
  }
  
  .nav{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7,10,15,.98);
    backdrop-filter: saturate(140%) blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 49;
    /* Улучшенное перекрытие экрана */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  
  .nav.is-open{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav__link{
    font-size: 20px;
    font-weight: 600;
    padding: 16px 24px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    min-width: 200px;
    text-align: center;
  }
  
  .nav__link:hover,
  .nav__link:focus{
    background: rgba(110,123,255,.15);
    border-color: rgba(110,123,255,.3);
  }
  
  /* AI пункт на мобильных - убираем градиент, используем обычный цвет */
  .nav__link--ai {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #c084fc !important;
    font-weight: 600;
    /* Отменяем градиентный текст на мобильных */
    -webkit-text-fill-color: #c084fc !important;
  }
  
  /* Hover для AI пункта на мобильных */
  .nav__link--ai:hover,
  .nav__link--ai:focus {
    background: rgba(168, 85, 247, 0.2) !important;
    border-color: rgba(168, 85, 247, 0.5) !important;
    color: #d8b4fe !important;
    -webkit-text-fill-color: #d8b4fe !important;
  }
  
  /* Улучшенная мобильная шапка */
  .header__inner{
    padding-left: var(--gap);
    padding-right: var(--gap);
  }
  
  .brand__logo{
    height: 28px !important;
  }
  
  /* На мобильных возвращаем flexbox */
  .header__inner {
    display: flex;
    justify-content: space-between;
  }

  .brand {
    order: 0; /* Левый бренд идет первым */
  }

  .brand--right {
    display: flex;
    margin-left: 0;
    margin-right: 0;
    order: 1; /* Правый бренд идет вторым */
  }
}

/* Hero */
.hero{
  position: relative;
  margin-top: 0;
  padding-top: calc(64px + clamp(32px, 5vw, 64px));
  background:
    linear-gradient(180deg, rgba(5,7,10,.9), rgba(5,7,10,.95)),
    url('Images/Background.png') center/cover no-repeat;
}
.hero__grid{ display: grid; gap: var(--gap-lg); align-items: center; }
@media (min-width: 900px){
  .hero__grid{ grid-template-columns: 1.1fr .9fr; }
}
.hero__title{ max-width: 22ch; }
.hero__title .highlight{ 
  color: var(--twin); 
  font-weight: 700; 
  /* Сбрасываем глобальные стили highlight для hero заголовка */
  filter: none !important;
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

/* Специальный стиль для Px Miner - фиолетовый градиент */
.hero__title .highlight--ai {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 25%, #7c3aed 50%, #6d28d9 75%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  /* Сбрасываем глобальные стили highlight для hero заголовка */
  filter: none !important;
  transform: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.hero__actions{ margin-top: 20px; display: flex; gap: 12px; }
.hero__media{ position: relative; }
.hero__video, .hero__image{ width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.08); background: #0a0f14; }

/* Блок соответствия требованиям РК в hero */
.hero__compliance {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.compliance-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.compliance-link:hover {
  color: var(--ink);
  background: rgba(255,255,255,.06);
  border-color: rgba(110,123,255,.2);
  text-decoration: none;
}

.compliance-flag {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}

/* Улучшения для мобильного Hero */
@media (max-width: 768px) {
  .hero__grid{
    gap: var(--gap-xl);
    text-align: left; /* Выравнивание по левому краю */
  }
  
  .hero__title{
    max-width: none;
    font-size: clamp(24px, 5vw, 32px);
  }
  
  .hero__actions{
    justify-content: flex-start; /* Выравнивание по левому краю */
    flex-wrap: wrap;
  }
  
  .hero__media{
    order: -1; /* Видео сверху на мобильных */
  }
  
  /* Добавляем отступы для мобильного Hero */
  .hero .container {
    padding-left: var(--gap);
    padding-right: var(--gap);
  }
}


/* Кнопки */
.btn{
  --btn-bg: var(--acc);
  --btn-ink: #00131e;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 32px; border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; border: none; cursor: pointer;
  transition: transform .05s ease-out, box-shadow .2s ease-out, opacity .2s;
  text-decoration: none;
  font-size: inherit;
  line-height: 1.2;
  min-height: 48px;
  min-width: 200px;
}
.btn:hover{ transform: translateY(-1px); text-decoration: none; }
.btn:active{ transform: translateY(0); }
.btn:disabled{ opacity: .6; cursor: not-allowed; }
.btn--primary{ box-shadow: 0 8px 14px rgba(92,200,255,.24); }
.btn--twin{ --btn-bg: var(--twin); --btn-ink: #0b0f14; box-shadow: 0 8px 14px rgba(110,123,255,.28); }
.btn--whatsapp{ --btn-bg: var(--wa); --btn-ink: #062b12; box-shadow: 0 8px 14px rgba(37,211,102,.28); }

/* Иконка WhatsApp в кнопках */
.btn--whatsapp::before {
  content: '';
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M20.52 3.48A11.83 11.83 0 0 0 12.04 0 11.95 11.95 0 0 0 .1 12.2 11.8 11.8 0 0 0 1.8 18L0 24l6.2-1.62a11.95 11.95 0 0 0 5.84 1.5h.06c6.6 0 11.96-5.4 11.96-12.04 0-3.21-1.27-6.22-3.54-8.36zM12.1 21.3h-.05a9.7 9.7 0 0 1-4.95-1.35l-.35-.2-3.68.96.98-3.58-.23-.37A9.73 9.73 0 0 1 2.4 12.2 9.84 9.84 0 0 1 12.05 2.4c2.63 0 5.1 1.04 6.97 2.93a9.73 9.73 0 0 1 2.87 6.9c0 5.42-4.4 9.86-9.78 9.86zm5.6-7.32c-.3-.15-1.78-.88-2.06-.98-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.17-.17.2-.35.22-.66.08-.3-.15-1.26-.46-2.41-1.47-.89-.76-1.5-1.7-1.68-1.99-.18-.3-.02-.46.13-.61.13-.13.3-.35.46-.52.15-.17.2-.3.3-.5.1-.2.05-.38-.03-.53-.08-.15-.67-1.6-.92-2.18-.24-.58-.49-.5-.67-.5-.17 0-.36 0-.55 0-.2 0-.52.08-.8.38-.27.3-1.04 1-1.04 2.42s1.07 2.82 1.22 3.01c.15.2 2.1 3.2 5.07 4.38.71.3 1.27.48 1.7.61.72.23 1.37.2 1.89.12.58-.09 1.78-.72 2.03-1.43.25-.7.25-1.3.17-1.43-.08-.13-.26-.2-.56-.35z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  display: inline-block;
  margin-right: 8px;
}

/* Группы кнопок */
.btn-group, .cta-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 32px;
}

/* Адаптивность для кнопок */
@media (max-width: 640px) {
  .btn-group, .cta-row{
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn{
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    min-height: 52px;
    min-width: 100%;
  }
  
  /* Улучшенные отступы для мобильных */
  .section{
    padding: clamp(24px, 4vw, 40px) 0;
  }

  .hero.section{
    padding-top: calc(64px + clamp(24px, 4vw, 40px));
    padding-bottom: clamp(24px, 4vw, 40px);
  }
  
  /* Компактные карточки на мобильных */
  .benefit-card{
    padding: 20px;
    height: auto;
    min-height: 200px;
  }
  
  .solution{
    min-height: auto;
  }
  
  .usecase.card{
    height: auto;
    min-height: 140px;
  }
}

/* Карточки */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: clamp(16px, 2.4vw, 22px);
  box-shadow: var(--shadow);
  height: fit-content;
}

.card__icon{ width: 40px; height: 40px; color: var(--acc); }
.card__title{ margin: 0 0 6px; }
.card__text{ color: var(--muted); }

/* Списки */
.list{ padding-left: 18px; }
.list--bullets li{ margin: 8px 0; }
.list--checks{ list-style: none; padding: 0; }
.list--checks li{ display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; margin: 10px 0; }
.check{ color: #52d67b; margin-top: 4px; }

/* Улучшения для мобильных списков */
@media (max-width: 640px) {
  .list {
    padding-left: 16px;
  }
  
  .list--bullets li {
    margin: 10px 0;
    line-height: 1.5;
  }
  
  .list--checks li {
    gap: 12px;
    margin: 12px 0;
  }
  
  .check {
    margin-top: 2px;
  }
}

/* Сетки */
.grid{ 
  display: grid; 
  gap: var(--gap-lg); 
  align-items: stretch;
}
.grid--icons4, .grid--tiles6, .grid--steps3, .grid--contact{ grid-template-columns: 1fr; }
.grid--contact{ align-items: start; }

@media (min-width: 640px){
  .grid--icons4, .grid--tiles6{ grid-template-columns: repeat(2, 1fr); }
  .grid--steps3{ grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px){
  .grid--icons4{ grid-template-columns: repeat(4, 1fr); }
  .grid--tiles6{ grid-template-columns: repeat(3, 1fr); }
  .grid--contact{ grid-template-columns: 1.1fr .9fr; }
}

/* Улучшения для мобильных сеток */
@media (max-width: 639px) {
  .grid {
    gap: var(--gap);
  }
  
  .grid--contact {
    gap: var(--gap-lg);
    align-items: flex-start; /* Выравнивание по левому краю */
  }
}

/* Исправление выравнивания карточек с иконками */
.card--icon{ 
  display: grid; 
  grid-template-columns: 40px 1fr; 
  gap: 14px; 
  align-items: start; 
  text-align: left;
}
.card--icon .card__title,
.card--icon .card__text{ 
  grid-column: 2; 
  margin: 0; 
}
.card--icon .card__icon{ 
  grid-column: 1; 
  grid-row: 1 / span 2;
  width: 40px; 
  height: 40px; 
  color: var(--acc); 
  flex-shrink: 0;
}

/* Улучшения для мобильных карточек с иконками */
@media (max-width: 640px) {
  .card--icon {
    gap: 12px;
  }
  
  .card--icon .card__icon {
    width: 36px;
    height: 36px;
  }
}

/* Steps */
.step{
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(92,200,255,.15); color: var(--acc);
  font-weight: 700; margin-bottom: 8px;
}

/* Улучшения для мобильных шагов */
@media (max-width: 640px) {
  .step {
    width: 28px;
    height: 28px;
    font-size: 14px;
    margin-bottom: 6px;
  }
}

/* Видео */
.video-wrap{ margin-top: clamp(18px, 3vw, 28px); }
.video{ width: 100%; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow); background: #0a0f14; }

/* Улучшения для мобильного видео */
@media (max-width: 640px) {
  .video-wrap {
    margin-top: clamp(16px, 4vw, 24px);
  }
  
  .video {
    border-radius: var(--radius-sm);
  }
  
  .hero__video {
    border-radius: var(--radius-sm);
    max-height: 300px;
    object-fit: cover;
  }
}

/* Формы */
.form{ display: grid; gap: 14px; }
.form__field{ display: grid; gap: 8px; }
label{ 
  color: var(--ink); 
  font-weight: 600; 
  position: relative;
  z-index: 10; /* Высокий z-index для label */
}
input[type="text"], input[type="email"], textarea, select{
  width: 100%; color: var(--ink); background: #0c1218; border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm); padding: 12px 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  font-family: inherit; /* Наследуем шрифт */
  font-size: inherit; /* Наследуем размер шрифта */
  line-height: 1.4; /* Улучшенная читаемость */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: text; /* Курсор текста для полей ввода */
  position: relative;
  z-index: 10; /* Высокий z-index для полей ввода */
}
input::placeholder, textarea::placeholder{ color: #7f93a8; }
input:focus, textarea:focus, select:focus{ 
  outline: 2px solid var(--acc); 
  outline-offset: 2px; 
  border-color: transparent; 
  box-shadow: 0 0 0 3px rgba(92,200,255,.1);
}
input:hover, textarea:hover, select:hover{ 
  border-color: rgba(92,200,255,.2); 
}
.form__checkbox{ display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; }
.form__actions{ 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  margin-top: 4px; 
}

.form__actions .btn {
  min-height: 44px; /* Минимальная высота для кнопок в форме */
  font-weight: 600;
  transition: all 0.2s ease;
}

.form__actions .btn:hover {
  transform: translateY(-1px);
}

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

.status{ min-height: 1.4em; color: var(--muted); font-size: .95em; }
.hp{ position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Улучшения для мобильных форм */
@media (max-width: 640px) {
  .form{
    gap: 16px;
  }
  
  .form__field{
    gap: 10px;
  }
  
  input[type="text"], input[type="email"], textarea, select{
    padding: 14px 16px;
    font-size: 16px; /* Предотвращает зум на iOS */
    min-height: 48px; /* Минимальная высота для сенсорных экранов */
  }
  
  textarea {
    min-height: 120px;
    padding: 16px;
  }
  
  .form__actions{
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .grid--contact{
    gap: var(--gap-lg);
  }
}

/* Подвал */
.footer{ background: linear-gradient(135deg, #0a0e13 0%, #0f141b 100%); border-top: 1px solid rgba(92,200,255,.1); padding: 40px 0 24px; }
.footer__grid{ display: grid; grid-template-columns: 1fr; gap: 32px; max-width: 1000px; margin: 0 auto; }
@media (min-width: 768px){ .footer__grid{ grid-template-columns: 1fr 1fr 1fr; gap: 48px; } }
.footer__brand{ display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer__brand img{ filter: brightness(1.1); transition: transform .2s ease; height: 24px; width: auto; }
.footer__brand img:hover{ transform: scale(1.05); }
.footer__tagline{ color: var(--muted); font-size: 13px; margin: 0; line-height: 1.3; }
.footer__title{ color: var(--ink); font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.footer__link{ color: var(--acc); text-decoration: none; display: block; margin-bottom: 8px; transition: color .2s ease; }
.footer__link:hover{ color: var(--twin); text-decoration: underline; }
.footer__copyright, .footer__bin, .footer__consortium{ color: var(--muted); font-size: 13px; margin: 4px 0; line-height: 1.4; }

/* Мобильная адаптация футера */
@media (max-width: 767px){ 
  .footer{ padding: 32px 0 20px; } 
  .footer__grid{ gap: 24px; } 
  .footer__brand img{ height: 20px; }
  .footer__tagline{ font-size: 12px; }
}

/* Блок преимуществ с карточками */
.benefits-grid{ 
  display: grid; 
  gap: var(--gap-lg); 
  grid-template-columns: 1fr;
  position: relative;
}

.section:has(.benefits-grid) {
  background: var(--bg);
  position: relative;
}

@media (min-width: 640px){ 
  .benefits-grid{ 
    grid-template-columns: repeat(2, 1fr); 
  } 
}
@media (min-width: 768px){ 
  .benefits-grid{ 
    grid-template-columns: repeat(2, 1fr); 
    gap: var(--gap-xl);
  } 
}
@media (min-width: 900px){ 
  .benefits-grid{ 
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--gap-xl);
  } 
}
@media (min-width: 1280px){ 
  .benefits-grid{ 
    grid-template-columns: repeat(3, 1fr); 
    gap: var(--gap-xl);
    max-width: 1000px;
    margin: 0 auto;
  } 
}

/* Заголовок над карточками */
.section-title {
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
  margin: 0 0 60px;
  text-align: center;
}

/* Улучшения для мобильных заголовков */
@media (max-width: 640px) {
  .section-title {
    font-size: clamp(20px, 4vw, 24px);
    margin-bottom: 40px;
    text-align: center;
  }
  
  h1 {
    font-size: clamp(24px, 5vw, 28px);
  }
  
  h2 {
    font-size: clamp(20px, 4vw, 22px);
  }
  
  h3 {
    font-size: clamp(16px, 3vw, 18px);
  }
}

/* Центрирование верхнеуровневых заголовков и рядов с кнопками (кроме hero) */
.section > .container > h2{ text-align: center; }
.section:not(.hero) .cta-row{ justify-content: center; }
.section:not(.hero) .btn-group{ justify-content: center; }
.section:not(.hero) .solutions__cta{ justify-content: center; }
.form__actions{ justify-content: center; }

.benefit-card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
  height: 264px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
}

.benefit-card:hover {
  border-color: rgba(110,123,255,.2);
  transform: translateY(-2px);
}

.benefit-card::after{
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  pointer-events: none;
  opacity: var(--glow-opacity);
  transition: opacity .3s ease;
  background:
    radial-gradient(180px 180px at var(--glow-x) var(--glow-y), rgba(92,200,255,.35), rgba(110,123,255,.15) 35%, rgba(110,123,255,.06) 60%, transparent 75%);
  box-shadow: inset 0 0 0 1px rgba(110,123,255,.22);
}

.benefit-card.is-glowing{ border-color: rgba(110,123,255,.28); }

.benefit-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.benefit-card__icon svg {
  color: var(--acc);
  width: 28px;
  height: 28px;
}

.benefit-card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--ink);
  line-height: 1.3;
}

/* Выделение цифр в заголовках преимуществ */
.highlight-number {
  color: var(--acc);
  font-weight: 800;
  font-size: 1.1em;
}

.benefit-card__text {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}

/* Адаптивность */
@media (max-width: 767px) {
  .benefit-card {
    height: 280px;
    padding: 24px;
  }
  
  .benefit-card__icon {
    width: 48px;
    height: 48px;
  }
  
  .benefit-card__icon svg {
    width: 24px;
    height: 24px;
  }
  
  .benefit-card__title {
    font-size: 16px;
    margin-bottom: 14px;
  }
  
  .benefit-card__text {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Улучшенная адаптивность для мобильных устройств */
@media (max-width: 639px) {
  .benefits-grid {
    gap: var(--gap);
  }
  
  .benefit-card {
    height: 240px;
    padding: 20px;
  }
  
  .benefit-card__icon {
    width: 44px;
    height: 44px;
  }
  
  .benefit-card__icon svg {
    width: 22px;
    height: 22px;
  }
  
  .benefit-card__title {
    font-size: 15px;
    margin-bottom: 12px;
  }
  
  .benefit-card__text {
    font-size: 13px;
    line-height: 1.5;
  }
}

/* Дополнительные улучшения для мобильных карточек преимуществ */
@media (max-width: 480px) {
  .benefit-card {
    height: auto;
    min-height: 200px;
    padding: 18px;
  }
  
  .benefit-card__icon {
    width: 40px;
    height: 40px;
    margin-bottom: 16px;
  }
  
  .benefit-card__icon svg {
    width: 20px;
    height: 20px;
  }
  
  .benefit-card__title {
    font-size: 14px;
    margin-bottom: 10px;
  }
  
  .benefit-card__text {
    font-size: 12px;
    line-height: 1.4;
  }
}

/* Универсальная направленная подсветка */
.card, .glowable{
  position: relative;
  --glow-x: 50%;
  --glow-y: 50%;
  --glow-opacity: 0;
}

.card::after, .glowable::after{
  content: '';
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: var(--glow-opacity);
  transition: opacity .3s ease;
  background:
    radial-gradient(220px 220px at var(--glow-x) var(--glow-y), rgba(92,200,255,.50), rgba(110,123,255,.30) 30%, rgba(110,123,255,.12) 55%, transparent 75%);
  box-shadow: inset 0 0 0 1px rgba(110,123,255,.28);
}

.card.is-glowing, .glowable.is-glowing{ border-color: rgba(110,123,255,.35); }

/* Специальная подсветка для карточек решаемых задач */
.usecase.card::after {
  background:
    radial-gradient(180px 180px at var(--glow-x) var(--glow-y), rgba(92,200,255,.40), rgba(110,123,255,.25) 35%, rgba(110,123,255,.10) 60%, transparent 80%);
  box-shadow: inset 0 0 0 1px rgba(110,123,255,.25);
}

/* Улучшения для мобильной подсветки */
@media (max-width: 768px) {
  .card::after, .glowable::after {
    background:
      radial-gradient(160px 160px at var(--glow-x) var(--glow-y), rgba(92,200,255,.40), rgba(110,123,255,.25) 30%, rgba(110,123,255,.10) 55%, transparent 70%);
  }
  
  .usecase.card::after {
    background:
      radial-gradient(140px 140px at var(--glow-x) var(--glow-y), rgba(92,200,255,.35), rgba(110,123,255,.20) 35%, rgba(110,123,255,.08) 60%, transparent 75%);
  }
}

/* Решения */
.solutions{ 
  display: grid; 
  gap: var(--gap-lg);
  align-items: stretch; /* Принудительно растягиваем все элементы */
}
@media (min-width: 900px){ 
  .solutions{ 
    grid-template-columns: 1fr 1fr; 
    grid-auto-rows: 1fr; /* Принудительно одинаковые строки */
  } 
}

/* Карточки решений — одинаковая высота и единая композиция */
.solution{
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 10px;
  min-height: 520px;
  height: 100%; /* Принудительно одинаковую высоту */
}

.solution__media{
  margin: -6px -6px 6px; /* лёгкий выход изображения к краям карточки */
  border-radius: calc(var(--radius) - 6px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  background: #0a0f14;
}
.solution__media img,
.solution__video{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Специальные стили для видео в решениях */
.solution__video {
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: calc(var(--radius) - 6px);
  background: #0a0f14;
  max-height: 280px; /* Максимальная высота для больших экранов */
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* Улучшения для видео */
  object-fit: cover;
  -webkit-object-fit: cover;
  -moz-object-fit: cover;
  /* Аппаратное ускорение */
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
  /* Дополнительные улучшения */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-perspective: 1000px;
  perspective: 1000px;
}

/* Убираем hover эффекты для видео чтобы избежать подергивания */
.solution__video:hover,
.solution__video:focus,
.solution__video:active {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
}

/* Глобально отключаем hover эффекты для всех видео в решениях */
.solution .solution__video:hover,
.solution .solution__video:focus,
.solution .solution__video:active {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
}

/* Улучшения для доступности видео */
.solution__video:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

/* Стили для загрузки видео */
.solution__video:not([src]) {
  background: linear-gradient(135deg, rgba(110,123,255,.1), rgba(92,200,255,.05));
  border: 2px dashed rgba(110,123,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
}

.solution__video:not([src])::before {
  content: 'Загрузка видео...';
}

.solution__title{ font-size: clamp(20px, 2.2vw, 26px); margin-bottom: 6px; }
.solution__text{ color: var(--muted); }

/* Улучшения для мобильных решений */
@media (max-width: 768px) {
  .solutions {
    gap: var(--gap-xl);
  }
  
  .solution {
    min-height: auto;
    height: auto; /* На мобильных позволяем естественную высоту */
    gap: 12px;
  }
  
  .solution__media img,
  .solution__video {
    height: 180px;
  }
  
  .solution__video {
    aspect-ratio: 16 / 9;
    height: auto;
    max-height: 200px; /* Ограничиваем максимальную высоту на мобильных */
    /* Улучшения для мобильных */
    -webkit-transform: none;
    transform: none;
    will-change: auto;
    /* Отключаем сложные эффекты на мобильных */
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    -webkit-perspective: none;
    perspective: none;
  }
  
  .solution__title {
    font-size: clamp(18px, 3vw, 20px);
  }
}

/* Вынесенные CTA под сеткой решений */
.solutions__cta{
  justify-content: flex-start;
  margin-top: 32px;
}

/* Спейсер для выравнивания высоты карточек решений */
.solution__spacer{
  display: none; /* Скрываем спейсер так как используем grid-auto-rows */
}

/* Применение */
.usecases{ 
  display: grid; 
  gap: var(--gap-lg); 
  grid-template-columns: 1fr;
}
@media (min-width: 640px){ 
  .usecases{ 
    grid-template-columns: repeat(2, 1fr); 
  } 
}
@media (min-width: 900px){ 
  .usecases{ 
    grid-template-columns: repeat(3, 1fr); 
  } 
}

/* Карточки решаемых задач - одинаковая высота */
.usecase.card {
  height: auto;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(20px, 2.4vw, 28px);
}

.usecase__icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,.08);
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.usecase__icon svg {
  color: var(--acc);
  width: 28px;
  height: 28px;
}



.usecase.card .card__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.usecase.card .card__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}

/* Улучшения для мобильных применений */
@media (max-width: 768px) {
  .usecases {
    gap: var(--gap-lg);
  }
  
  .usecase.card {
    height: auto;
    min-height: 200px;
    padding: 20px;
  }
  
  .usecase__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  
  .usecase__icon svg {
    width: 24px;
    height: 24px;
  }
  
  .usecase.card .card__title {
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .usecase.card .card__text {
    font-size: 14px;
  }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 480px) {
  .usecase.card {
    height: auto;
    min-height: 180px;
    padding: 18px;
  }
  
  .usecase__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
  
  .usecase__icon svg {
    width: 22px;
    height: 22px;
  }
  
  .usecase.card .card__title {
    font-size: 15px;
    margin-bottom: 10px;
  }
  
  .usecase.card .card__text {
    font-size: 13px;
    line-height: 1.5;
  }
}



/* Радиальная карта «Где применимо» */
.radial-map{
  position: relative;
  height: clamp(520px, 72vh, 760px);
  border-radius: var(--radius);
  background: transparent; /* без подложки, на фоне сайта */
  border: none;
  box-shadow: none;
  overflow: hidden;
}





/* Внешняя окружность чипов */
.radial-map__chips{ position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.chip{
  position: absolute; transform: translate(-50%, -50%);
  padding: 10px 14px; border-radius: 999px; font-weight: 600;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--ink); font-size: clamp(13px, 1.6vw, 15px);
  box-shadow: var(--shadow);
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap; pointer-events: auto;
  overflow: hidden;
  width: fit-content;
  height: fit-content;
  min-width: 24px;
  min-height: 24px;
}

/* Текст чипа */
.chip-text {
  white-space: nowrap;
  display: inline-block;
}

.chip:hover{ border-color: rgba(92,200,255,.35); transform: translate(-50%, -50%) scale(1.03); }

/* Состояния подсветки */
.highlight{ 
  filter: saturate(1.2) brightness(1.05); 
  transform: translate(-50%, -50%) scale(1.05);
  border-color: rgba(92,200,255,.4);
  box-shadow: 
    0 0 20px rgba(92,200,255,.3),
    0 0 40px rgba(92,200,255,.2),
    0 0 60px rgba(92,200,255,.1);
}

/* Адаптивность - мобильная версия для экранов до 899px */
@media (max-width: 899px) {
  .radial-map { 
    height: auto; 
    padding: 8px 0; 
  }
  .radial-map__chips { 
    position: relative; 
    display: grid; 
    gap: 12px; 
  }
  .chip { 
    position: static; 
    transform: none; 
    pointer-events: auto; 
    cursor: pointer; 
    width: fit-content !important;
    height: fit-content !important;
    padding: 10px 14px !important;
    border-radius: 999px !important;
    background: var(--panel) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: var(--shadow) !important;
  }
  .chip-text {
    opacity: 1 !important;
  }
  
  /* Hover эффект для мобильных */
  .chip:hover {
    border-color: rgba(92,200,255,.35) !important;
    transform: scale(1.03) !important;
    box-shadow: 
      0 0 15px rgba(92,200,255,.25),
      0 0 30px rgba(92,200,255,.15) !important;
  }
  
  /* Бегущие треки */
  .chip-row { 
    overflow: hidden; 
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); 
  }
  .chip-row__track { 
    display: inline-flex; 
    gap: 10px; 
    white-space: nowrap; 
    animation: chipScroll linear infinite; 
    will-change: transform; 
  }
  .chip-row__track--reverse { 
    animation-direction: reverse; 
  }
  @keyframes chipScroll { 
    from { transform: translateX(0); } 
    to { transform: translateX(-50%); } 
  }
}

/* Дополнительные улучшения для мобильных */
@media (max-width: 768px) {
  .radial-map{
    height: auto;
    min-height: 300px;
    padding: 20px 0;
  }
  
  .chip-row{
    margin: 8px 0;
  }
  
  .chip-row__track{
    gap: 8px;
    animation-duration: 30s !important;
  }
}

/* Контакты */
.contact-info{ display: grid; gap: 12px; }
.contact-info .muted{ font-size: 1.1em; font-weight: 500; }
.whatsapp-cta{ display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 6px; }
.qr{ width: 180px; height: 180px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1); background: transparent; }

/* Сетка контактов */
.grid--contact {
  align-items: start; /* Выравнивание по верхнему краю */
}

/* Десктоп: делаем левый блок высотой как форма и центрируем контент */
@media (min-width: 900px) {
  .grid--contact {
    align-items: stretch; /* обе колонки растягиваются одинаково */
  }
  .contact-info {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center; /* вертикально центрируем содержимое */
  }
  .whatsapp-cta {
    align-items: center; /* по центру блока */
    gap: 16px;
  }
  /* Крупный QR для ПК */
  .qr {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    border: none; /* прозрачная рамка не нужна, фон уже прозрачный */
    background: transparent;
  }
}

/* Улучшения для мобильных контактов */
@media (max-width: 640px) {
  .contact-info {
    gap: 16px;
    text-align: left; /* Выравнивание по левому краю */
  }
  
  .whatsapp-cta {
    align-items: flex-start; /* Выравнивание по левому краю */
    margin-top: 12px;
  }
  
  .whatsapp-cta .btn {
    width: 100%;
    max-width: 280px;
  }
  
  /* Улучшенная сетка контактов на мобильных */
  .grid--contact {
    gap: var(--gap-xl);
  }
}

/* Кастомный селект */
/* Кастомный селект — внешний вид кнопки */
.select{ 
  position: relative; 
  z-index: 100000; /* Высокий z-index для контейнера */
}
.select__button{
  width: 100%;
  background: #0c1218;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 12px 40px 12px 14px;
  font: inherit;
  text-align: left;
  cursor: pointer;
  position: relative;
  z-index: 100000; /* Высокий z-index для кнопки */
}
.select__button:focus{ outline: 2px solid var(--acc); outline-offset: 2px; border-color: transparent; }
.select__button::after{
  content: '';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") center/contain no-repeat;
  background: var(--muted);
}

.select__list{
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #0c1218;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 6px;
  margin: 0;
  list-style: none;
  max-height: 220px; overflow: auto;
  opacity: 0; transform: translateY(-4px) scale(.98);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
  z-index: 100000; /* Высокий z-index чтобы быть поверх всех элементов формы */
  /* Стилизация полосы прокрутки под тему сайта */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: rgba(110,123,255,.55) transparent;
}
.select.is-open .select__list{ 
  opacity: 1; 
  transform: translateY(0) scale(1); 
  pointer-events: auto; 
  z-index: 100000; /* Высокий z-index для открытого списка */
}
.select__option{
  padding: 10px 10px; border-radius: 8px; color: var(--ink); font: inherit; cursor: pointer;
}
.select__option[aria-selected="true"], .select__option:hover{ background: rgba(255,255,255,.06); }

/* Улучшения для мобильного селекта */
@media (max-width: 640px) {
  .select__button {
    padding: 14px 40px 14px 16px;
    min-height: 48px;
  }
  
  .select__list {
    max-height: 180px;
    top: calc(100% + 6px);
  }
  
  .select__option {
    padding: 12px 12px;
    font-size: 16px;
  }
}

/* WebKit-скроллбар для выпадающего списка */
.select__list::-webkit-scrollbar{ width: 10px; height: 10px; }
.select__list::-webkit-scrollbar-track{ background: transparent; }
.select__list::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(92,200,255,.45), rgba(110,123,255,.6));
  border-radius: 8px;
  border: 2px solid rgba(12,18,24,1);
}
.select__list::-webkit-scrollbar-thumb:hover{
  background: linear-gradient(180deg, rgba(92,200,255,.6), rgba(110,123,255,.75));
}

/* Скрываем нативный вид у стандартного select на случай fallback */
select{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #0c1218;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--ink);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
  position: relative;
  z-index: 10; /* Высокий z-index для select */
}
select:focus{ outline: 2px solid var(--acc); outline-offset: 2px; border-color: transparent; }
select:hover{ border-color: rgba(92,200,255,.3); }

/* Запрет изменения размера поля сообщения */
textarea{ 
  resize: none; 
  min-height: 100px; /* Минимальная высота */
  font-family: inherit; /* Наследуем шрифт */
  line-height: 1.5; /* Улучшенная читаемость */
  position: relative;
  z-index: 10; /* Высокий z-index для textarea */
}

/* Специальные стили для текстового поля */
textarea#message {
  font-family: inherit;
  font-size: inherit;
  line-height: 1.5;
  resize: vertical; /* Разрешаем изменение размера по вертикали */
  min-height: 120px;
}


/* Доступность: видимые фокусы глобально */
:focus-visible{ outline: 2px solid var(--acc); outline-offset: 2px; }

/* Дополнительные улучшения для мобильной доступности */
@media (max-width: 768px) {
  /* Увеличиваем размеры фокусов для мобильных */
  :focus-visible {
    outline-width: 3px;
    outline-offset: 3px;
  }
  
  /* Улучшенные состояния наведения для мобильных */
  .btn:active,
  .nav__link:active,
  .chip:active {
    transform: scale(0.98);
  }
  
  /* Отключаем hover эффекты на устройствах без hover */
  @media (hover: none) {
    .btn:hover,
    .nav__link:hover,
    .chip:hover {
      transform: none;
    }
  }
  
  /* Отключаем hover эффекты для видео на всех устройствах */
  .solution__video:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.2) !important;
  }
  
  /* Оптимизация анимаций для мобильных */
  .card,
  .btn,
  .nav__link,
  .chip {
    transition: all 0.2s ease;
  }
  
  /* Уменьшаем сложные анимации на мобильных */
  .card::after,
  .glowable::after {
    transition: opacity 0.2s ease;
  }
}

/* Общие улучшения для мобильной версии */
@media (max-width: 768px) {
  /* Улучшенная производительность */
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  /* Улучшенные отступы для мобильных */
  .container {
    padding-left: var(--gap);
    padding-right: var(--gap);
  }
  
  /* Оптимизация для сенсорных экранов */
  .btn,
  .nav__link,
  .chip,
  .select__button,
  .select__option {
    min-height: 44px; /* Минимальная высота для сенсорных экранов */
  }
  
  /* Улучшенная читаемость на мобильных */
  .card,
  .solution,
  .usecase.card {
    line-height: 1.5;
  }
  
  /* Оптимизация анимаций */
  .benefit-card,
  .solution,
  .usecase.card {
    will-change: transform;
  }
  
  /* Оптимизация видео для мобильных */
  .solution__video {
    will-change: auto;
    -webkit-transform: none;
    transform: none;
    /* Отключаем сложные эффекты на мобильных */
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    -webkit-perspective: none;
    perspective: none;
  }
}

/* Схема услуг процессного управления */
.services-schema {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 32px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) 0;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  position: relative;
}

.service-group {
  position: relative;
  width: 100%;
}

/* Стрелка-кнопка (родительская плашка) */
.service-arrow {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, rgba(110,123,255,.12), rgba(92,200,255,.08));
  border: 1px solid rgba(110,123,255,.25);
  border-radius: 16px;
  padding: 16px;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* Десктопная версия с анимацией скролла */
@media (min-width: 900px) {
  .service-arrow {
    /* Изначально по центру экрана */
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    z-index: 1;
    /* Улучшенная совместимость с Brave */
    will-change: transform, left, opacity;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }

  /* Анимированное состояние - плашка смещается в свою позицию */
  .service-group--animate .service-arrow {
    position: relative;
    left: 0;
    transform: translateX(0);
    -webkit-transform: translateX(0);
    -moz-transform: translateX(0);
    -ms-transform: translateX(0);
    opacity: 1;
    z-index: auto;
  }

  /* Контейнер должен иметь относительное позиционирование */
  .service-group {
    position: relative;
    min-height: 120px; /* Обеспечиваем минимальную высоту для абсолютного позиционирования */
  }

  /* Убираем hover эффекты на десктопе */
  .service-arrow:hover {
    background: linear-gradient(135deg, rgba(110,123,255,.12), rgba(92,200,255,.08));
    border-color: rgba(110,123,255,.25);
    transform: translateX(-50%);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }

  .service-group--animate .service-arrow:hover {
    background: linear-gradient(135deg, rgba(110,123,255,.15), rgba(92,200,255,.1));
    border-color: rgba(110,123,255,.3);
    transform: translateX(0);
    box-shadow: 0 6px 16px rgba(110,123,255,.2);
  }
}

.service-arrow:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.service-arrow__text {
  flex: 1;
  line-height: 1.2;
  word-break: break-word;
}

.service-arrow__icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  color: var(--twin);
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}

.service-arrow__icon svg {
  width: 100%;
  height: 100%;
  transition: all 0.3s ease;
}

@media (min-width: 900px) {
  .service-group--animate .service-arrow__icon {
    transform: translateX(8px);
    color: var(--acc);
  }
}

/* Контейнер с услугами (дочерние плашки) */
.service-items {
  position: absolute;
  left: 0;
  top: 0;
  width: calc(300% + 40px);
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(0);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
  pointer-events: none;
}

  /* Десктопная анимация дочерних элементов */
  @media (min-width: 900px) {
    .service-items {
      transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s; /* Задержка 0.3s после смещения основной плашки */
      /* Улучшенная совместимость с Brave */
      will-change: transform, opacity, visibility;
      -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
      -moz-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    }

    .service-group--animate .service-items {
      opacity: 1;
      visibility: visible;
      transform: translateX(calc(33.333% + 6.667px));
      -webkit-transform: translateX(calc(33.333% + 6.667px));
      -moz-transform: translateX(calc(33.333% + 6.667px));
      -ms-transform: translateX(calc(33.333% + 6.667px));
      pointer-events: auto;
    }
  }

.service-items.is-expanded {
  opacity: 1;
  visibility: visible;
  transform: translateX(calc(33.333% + 6.667px));
  pointer-events: auto;
}

/* Отдельная услуга (дочерняя плашка) */
.service-item {
  aspect-ratio: 2 / 1;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.service-item:hover {
  background: rgba(255,255,255,.04);
  border-color: rgba(110,123,255,.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

.service-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.2;
  word-break: break-word;
}

.service-item__desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  line-height: 1.3;
  word-break: break-word;
}

/* Адаптация для планшетов */
@media (max-width: 899px) {
  .services-schema {
    gap: clamp(16px, 2.5vw, 24px);
    padding: clamp(16px, 3vw, 32px) 0;
  }
  
  /* Видео в решениях для планшетов */
  .solution__video {
    max-height: 240px;
    /* Улучшения для планшетов */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    /* Дополнительные улучшения для планшетов */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
  }
  
  .services-row {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .service-group {
    width: 100%;
    max-width: 800px;
  }
  
  .service-arrow {
    width: 100%;
    aspect-ratio: unset;
    padding: clamp(14px, 2vw, 20px) clamp(16px, 2.5vw, 24px);
    font-size: clamp(16px, 2.2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  
  .service-arrow__text {
    line-height: 1.3;
  }
  
  .service-arrow__icon {
    position: static;
    margin-left: 16px;
    width: 20px;
    height: 20px;
  }
  
  .service-items {
    position: static;
    display: block;
    margin-top: 16px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: var(--panel);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
  }
  
  .service-item {
    aspect-ratio: unset;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    padding: clamp(16px, 2vw, 20px);
    box-shadow: none;
    display: block;
    text-align: left;
  }
  
  .service-item:last-child {
    border-bottom: none;
  }
  
  .service-item:hover {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.06);
    transform: none;
    box-shadow: none;
  }
  
  .service-item__title {
    font-size: clamp(15px, 1.8vw, 18px);
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    word-break: normal;
  }
  
  .service-item__desc {
    font-size: clamp(13px, 1.6vw, 15px);
    line-height: 1.5;
    word-break: normal;
  }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .services-schema {
    gap: 16px;
    padding: 20px 0;
    max-width: 900px;
  }
  
  .services-row {
    display: flex;
    justify-content: center;
    width: 100%;
  }
  
  .service-group {
    width: 100%;
    max-width: 800px;
  }
  
  .service-arrow {
    width: 100%;
    aspect-ratio: unset;
    padding: 16px 20px;
    font-size: clamp(16px, 2.2vw, 20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    cursor: default;
    pointer-events: none;
  }
  
  .service-arrow:hover {
    transform: none;
    background: linear-gradient(135deg, rgba(110,123,255,.15), rgba(92,200,255,.1));
    border-color: rgba(110,123,255,.3);
    box-shadow: 0 6px 16px rgba(110,123,255,.2);
  }
  
  .service-arrow__text {
    line-height: 1.3;
  }
  
  .service-arrow__icon {
    display: none;
  }
  
  .service-items {
    position: static;
    display: block;
    margin-top: 12px;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow);
    width: 100%;
    height: auto;
  }
  
  .service-item {
    aspect-ratio: unset;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.06);
    border-radius: 0;
    padding: 16px;
    box-shadow: none;
    display: block;
    text-align: left;
  }
  
  .service-item:last-child {
    border-bottom: none;
  }
  
  .service-item:hover {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.06);
    transform: none;
    box-shadow: none;
  }
  
  .service-item__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.3;
    word-break: normal;
  }
  
  .service-item__desc {
    font-size: 14px;
    line-height: 1.5;
    word-break: normal;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .services-schema {
    gap: 12px;
    padding: 16px 0;
  }
  
  .service-arrow {
    padding: 14px 16px;
    font-size: 15px;
  }
  
  .service-item {
    padding: 14px;
  }
  
  .service-item__title {
    font-size: 15px;
  }
  
  .service-item__desc {
    font-size: 13px;
  }
  
  /* Видео в решениях для очень маленьких экранов */
  .solution__video {
    max-height: 160px;
    border-radius: calc(var(--radius-sm) - 4px);
    /* Улучшения для мобильных */
    -webkit-transform: none;
    transform: none;
    will-change: auto;
    /* Отключаем сложные эффекты на очень маленьких экранах */
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
    -webkit-perspective: none;
    perspective: none;
    /* Упрощенные тени */
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
  }
}

/* Дополнительные улучшения для очень маленьких экранов */
@media (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .section {
    padding: 32px 0;
  }
  
  .hero.section {
    padding-top: calc(64px + 32px);
    padding-bottom: 32px;
  }
  
  .benefit-card,
  .solution,
  .usecase.card {
    padding: 16px;
  }
  
  .btn {
    padding: 12px 16px;
    font-size: 14px;
  }
  
  /* Добавляем отступы для очень маленьких экранов */
  .section .container,
  .hero .container,
  .footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Видео-слайдер */
.video-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Специфические стили для AI секции */
#ai-video-slider .video-slider__text-block {
  margin-top: 20px;
}

.video-slider__container {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.08);
  background: #0a0f14;
}

.video-slider__video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* Оптимизированные transition только для transform и opacity */
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration */
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 1;
}

/* Анимация исчезновения видео при смене */
.video-slider__video.fade-out {
  opacity: 0;
  transform: scale(0.95) translateZ(0);
}

/* Анимация появления нового видео */
.video-slider__video.fade-in {
  opacity: 0;
  transform: scale(1.05) translateZ(0);
  animation: videoFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes videoFadeIn {
  0% {
    opacity: 0;
    transform: scale(1.05) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateZ(0);
  }
}

/* Дополнительная анимация для текстового блока */
.video-slider__text-block {
  /* Оптимизированные transition только для transform и opacity */
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* GPU acceleration */
  will-change: opacity, transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.video-slider__text-block.fade-out {
  opacity: 0;
  transform: translateY(-10px) translateZ(0);
}

.video-slider__text-block.fade-in {
  opacity: 0;
  transform: translateY(10px) translateZ(0);
  animation: textFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes textFadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px) translateZ(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateZ(0);
  }
}

.video-slider__text-block {
  margin-top: 16px;
  padding: 16px;
  background: rgba(15, 20, 27, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(110, 123, 255, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 500px;
  text-align: center;
  /* Фиксированная высота для постоянного размера блока */
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Точки навигации для видео слайдера */
.video-slider__dots {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.video-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  min-width: 10px;
  min-height: 10px;
  aspect-ratio: 1;
}

.video-slider__dot:hover {
  background: rgba(110, 123, 255, 0.6);
  transform: scale(1.2);
}

.video-slider__dot.active {
  background: var(--acc);
  box-shadow: 0 0 8px rgba(92, 200, 255, 0.6);
  transform: scale(1.3);
}

.video-slider__dot:focus {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
  background: rgba(110, 123, 255, 0.8);
}

.video-slider__title {
  color: var(--ink);
  font-size: clamp(14px, 2vw, 16px);
  font-weight: 700;
  margin: 0 0 8px;
  line-height: 1.3;
  min-height: 1.3em;
  flex-shrink: 0;
}

.video-slider__description {
  color: var(--muted);
  font-size: clamp(12px, 1.5vw, 14px);
  margin: 0;
  line-height: 1.5;
  min-height: 1.5em;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
}

/* Адаптивность для видео-слайдера */
@media (max-width: 768px) {
  .video-slider__text-block {
    margin-top: 12px;
    padding: 12px;
    height: 100px; /* Уменьшенная фиксированная высота для мобильных */
  }

  .video-slider__dots {
    margin-top: 12px;
    gap: 8px;
  }

  .video-slider__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
  }

  .video-slider__dot.active {
    transform: scale(1.2);
  }

  .video-slider__dot:hover {
    transform: scale(1.1);
  }

  .video-slider__title {
    font-size: clamp(13px, 2.5vw, 15px);
  }

  .video-slider__description {
    font-size: clamp(11px, 1.8vw, 13px);
  }

  /* Оптимизация анимаций для мобильных устройств */
  .video-slider__video {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .video-slider__text-block {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes videoFadeIn {
    0% {
      opacity: 0;
      transform: scale(1.03) translateZ(0); /* Меньше масштабирование для мобильных */
    }
    100% {
      opacity: 1;
      transform: scale(1) translateZ(0);
    }
  }

  @keyframes textFadeIn {
    0% {
      opacity: 0;
      transform: translateY(8px) translateZ(0); /* Меньше смещение для мобильных */
    }
    100% {
      opacity: 1;
      transform: translateY(0) translateZ(0);
    }
  }
}

@media (max-width: 480px) {
  .video-slider__text-block {
    margin-top: 10px;
    padding: 10px;
    height: 90px; /* Ещё меньшая фиксированная высота для очень маленьких экранов */
  }

  .video-slider__dots {
    margin-top: 10px;
    gap: 6px;
  }

  .video-slider__dot {
    width: 6px;
    height: 6px;
    min-width: 6px;
    min-height: 6px;
  }

  .video-slider__dot.active {
    transform: scale(1.1);
  }

  .video-slider__dot:hover {
    transform: scale(1.05);
  }

  .video-slider__title {
    font-size: 13px;
  }

  .video-slider__description {
    font-size: 11px;
  }

  /* Дополнительная оптимизация анимаций для очень маленьких экранов */
  .video-slider__video {
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .video-slider__text-block {
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }

  @keyframes videoFadeIn {
    0% {
      opacity: 0;
      transform: scale(1.02) translateZ(0); /* Минимальное масштабирование для очень маленьких экранов */
    }
    100% {
      opacity: 1;
      transform: scale(1) translateZ(0);
    }
  }

  @keyframes textFadeIn {
    0% {
      opacity: 0;
      transform: translateY(5px) translateZ(0); /* Минимальное смещение для очень маленьких экранов */
    }
    100% {
      opacity: 1;
      transform: translateY(0) translateZ(0);
    }
  }
}

/* AI секция */
#ai {
  background: linear-gradient(
    135deg,
    #000000 0%,
    #0a0515 25%,
    #1a0a2e 50%,
    #0a0820 75%,
    #000000 100%
  ),
  linear-gradient(
    135deg,
    rgba(80, 20, 120, 0.3) 0%,
    rgba(40, 10, 80, 0.2) 50%,
    rgba(20, 5, 60, 0.3) 100%
  );
  background-blend-mode: screen;
}

.ai-title {
  background: linear-gradient(135deg, #a855f7 0%, #8b5cf6 25%, #7c3aed 50%, #6d28d9 75%, #5b21b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 56px);
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  letter-spacing: -0.02em;
  position: relative;
}

/* Десктопная версия (сложная схема) */
@media (min-width: 900px) {
  .ai-schema {
    position: relative;
    min-height: clamp(500px, 60vh, 700px);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(40px, 6vw, 60px);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Компактный режим для ноутбуков с низкой высотой экрана */
  @media (min-width: 900px) and (max-height: 800px) {
    .ai-schema {
      min-height: clamp(400px, 50vh, 500px);
    }
    
    .ai-video-container {
      width: clamp(300px, 24vw, 450px);
    }
    
    .ai-feature {
      width: clamp(180px, 16vw, 240px);
      padding: clamp(12px, 1.6vw, 18px);
    }
  }

  .ai-schema__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  /* Центральное видео с эффектным свечением */
  .ai-schema__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
  }

  .ai-video-container {
    position: relative;
    width: clamp(360px, 28vw, 540px);
    border-radius: 16px;
    /* Убираем overflow: hidden, чтобы текстовый блок был виден */
    /* overflow: hidden; */
    /* Анимированное свечение для видео контейнера */
  }

  /* Отдельный контейнер для видео с overflow: hidden */
  .ai-video-container .video-slider__container {
    aspect-ratio: 16 / 9;
    background: var(--panel);
    box-shadow:
      0 0 40px rgba(110, 123, 255, 0.4),
      0 0 80px rgba(92, 200, 255, 0.2),
      0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 16px;
    animation: aiGlow 4s ease-in-out infinite alternate;
  }

  @keyframes aiGlow {
    0% {
      box-shadow: 
        0 0 40px rgba(110, 123, 255, 0.4),
        0 0 80px rgba(92, 200, 255, 0.2),
        0 20px 40px rgba(0, 0, 0, 0.3);
    }
    100% {
      box-shadow: 
        0 0 60px rgba(110, 123, 255, 0.6),
        0 0 120px rgba(92, 200, 255, 0.4),
        0 20px 40px rgba(0, 0, 0, 0.3);
    }
  }

  /* AI плашки */
  .ai-features {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
  }

  .ai-feature {
    position: absolute;
    width: clamp(200px, 18vw, 260px);
    padding: clamp(14px, 1.8vw, 20px);
    border-radius: 12px;
    background: rgba(15, 20, 27, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 123, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    transform: translate(-50%, -50%);
    height: auto;
    min-height: clamp(80px, 8vw, 100px);
    overflow: hidden;
    z-index: 1;
    /* Плавная анимация высоты - ускорена в 2 раза */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                min-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .ai-feature:hover {
    border-color: rgba(110, 123, 255, 0.4);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(110, 123, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.02);
    min-height: auto;
    height: auto;
    z-index: 10;
  }

  .ai-feature__text {
    font-size: clamp(13px, 1.4vw, 15px);
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    margin-top: 0;
    /* Плавная анимация высоты - ускорена в 2 раза */
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.2s cubic-bezier(0.4, 0, 0.2, 1),
                max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .ai-feature:hover .ai-feature__text {
    opacity: 1;
    max-height: 200px; /* Достаточно большое значение для любого текста */
    transform: translateY(0);
    margin-top: 8px;
  }

  /* Позиционирование плашек в форме шестиугольника */
  .ai-feature[data-feature="analyst"] {
    top: 12%;
    left: 18%;
  }

  .ai-feature[data-feature="optimization"] {
    top: 12%;
    right: 18%;
    left: auto;
    transform: translate(50%, -50%);
  }

  .ai-feature[data-feature="diagrams"] {
    top: 50%;
    left: 4%;
  }

  .ai-feature[data-feature="bpmn"] {
    top: 50%;
    right: 4%;
    left: auto;
    transform: translate(50%, -50%);
  }

  .ai-feature[data-feature="queries"] {
    bottom: 12%;
    left: 18%;
    top: auto;
    transform: translate(-50%, 50%);
  }

  .ai-feature[data-feature="vision"] {
    bottom: 12%;
    right: 18%;
    left: auto;
    top: auto;
    transform: translate(50%, 50%);
  }

  .ai-feature:hover .ai-feature__icon {
    background: linear-gradient(135deg, rgba(110, 123, 255, 0.3), rgba(92, 200, 255, 0.25));
    border-color: rgba(110, 123, 255, 0.5);
    transform: scale(1.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Общие стили для всех экранов */
.ai-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.ai-feature__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(110, 123, 255, 0.2), rgba(92, 200, 255, 0.15));
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border: 1px solid rgba(110, 123, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-feature__icon svg {
  color: var(--acc);
  width: 24px;
  height: 24px;
}

.ai-feature__title {
  font-size: clamp(16px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

/* Линии связи - только для десктопа */
@media (min-width: 900px) {
  .ai-link {
    stroke: rgba(110, 123, 255, 0.6);
    stroke-width: 2;
    fill: none;
    opacity: 0.7;
    transition: all 0.3s ease;
  }

  .ai-link--glow {
    stroke: url(#aiGradient);
    stroke-width: 2;
    stroke-dasharray: 4 8;
    fill: none;
    opacity: 0;
    animation: aiFlow 3s linear infinite;
  }

  .ai-feature:hover ~ svg .ai-link[data-feature] {
    opacity: 1;
    stroke-width: 3;
    stroke: rgba(110, 123, 255, 0.9);
  }

  .ai-feature:hover ~ svg .ai-link--glow[data-feature] {
    opacity: 0.8;
  }

  @keyframes aiFlow {
    to {
      stroke-dashoffset: -120;
    }
  }
}

/* Упрощенная версия для планшетов и мобильных */
@media (max-width: 899px) {
  .ai-title {
    font-size: clamp(28px, 6vw, 36px);
    margin-bottom: clamp(32px, 5vw, 48px);
  }

  .ai-schema {
    position: relative;
    min-height: auto;
    display: block;
    max-width: 800px;
    margin: 0 auto clamp(32px, 5vw, 48px);
  }

  .ai-schema__svg {
    display: none; /* Скрываем SVG линии */
  }

  .ai-schema__center {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-bottom: clamp(32px, 5vw, 48px);
  }

  .ai-video-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    border-radius: 16px;
    /* Убираем overflow: hidden для мобильных тоже */
    /* overflow: hidden; */
  }

  /* Отдельный контейнер для видео с overflow: hidden на мобильных */
  .ai-video-container .video-slider__container {
    aspect-ratio: 16 / 9;
    background: var(--panel);
    box-shadow:
      0 0 30px rgba(110, 123, 255, 0.4),
      0 0 60px rgba(92, 200, 255, 0.2),
      0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border-radius: 16px;
    margin: 0 auto;
    /* Убираем анимацию свечения для производительности */
  }

  .ai-features {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(20px, 3vw, 28px);
    z-index: 1;
    pointer-events: auto;
  }

  .ai-feature {
    position: relative;
    width: 100%;
    padding: clamp(20px, 3vw, 24px);
    border-radius: 12px;
    background: rgba(15, 20, 27, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(110, 123, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    pointer-events: auto;
    transform: none;
    height: auto;
    min-height: auto;
    overflow: visible;
    z-index: 1;
    /* Убираем сложные анимации */
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .ai-feature:hover {
    border-color: rgba(110, 123, 255, 0.4);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.3),
      0 0 20px rgba(110, 123, 255, 0.3);
    transform: translateY(-2px);
  }

  .ai-feature__text {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--muted);
    line-height: 1.5;
    margin: 0;
    /* Всегда показываем текст на планшетах и мобильных */
    opacity: 1;
    max-height: none;
    overflow: visible;
    transform: none;
    margin-top: 8px;
  }

  .ai-feature__icon {
    width: clamp(40px, 5vw, 48px);
    height: clamp(40px, 5vw, 48px);
    margin-bottom: clamp(12px, 2vw, 16px);
  }

  .ai-feature__icon svg {
    width: clamp(20px, 3vw, 24px);
    height: clamp(20px, 3vw, 24px);
  }

  .ai-feature__title {
    font-size: clamp(16px, 2.5vw, 18px);
    margin-bottom: clamp(8px, 1.5vw, 12px);
  }
}

/* Дополнительные улучшения для мобильных */
@media (max-width: 640px) {
  .ai-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ai-feature {
    padding: 20px;
  }

  .ai-feature__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .ai-feature__icon svg {
    width: 22px;
    height: 22px;
  }

  .ai-feature__title {
    font-size: 17px;
    margin-bottom: 10px;
  }

  .ai-feature__text {
    font-size: 15px;
    margin-top: 6px;
  }

  .ai-video-container {
    max-width: 100%;
  }
}

/* Блок соответствия требованиям РК */
.compliance-section {
  background: linear-gradient(135deg, 
    rgba(0, 123, 255, 0.05) 0%, 
    rgba(0, 123, 255, 0.02) 50%, 
    rgba(0, 123, 255, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.compliance-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(0, 123, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 123, 255, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.compliance-header {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(40px, 6vw, 60px);
  text-align: left;
}

.compliance-flag-large {
  flex-shrink: 0;
  width: clamp(80px, 12vw, 120px);
  height: clamp(56px, 8.4vw, 84px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 123, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.flag-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.compliance-flag-large:hover .flag-image {
  transform: scale(1.05);
}

.compliance-content {
  flex: 1;
}

.compliance-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 16px;
  line-height: 1.2;
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.compliance-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.compliance-grid {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .compliance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(24px, 3.5vw, 32px);
  }
}

.compliance-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.08) 0%, 
    rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(0, 123, 255, 0.15);
  padding: clamp(24px, 3vw, 32px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.compliance-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.compliance-card:hover {
  border-color: rgba(0, 123, 255, 0.3);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(0, 123, 255, 0.15),
    0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.compliance-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 86, 179, 0.15));
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
}

.compliance-card:hover .compliance-card__icon {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.3), rgba(0, 86, 179, 0.25));
  transform: scale(1.05);
}

.compliance-card__icon svg {
  color: #007bff;
  width: 28px;
  height: 28px;
  transition: all 0.3s ease;
}

.compliance-card:hover .compliance-card__icon svg {
  color: #ffffff;
}

.compliance-card__title {
  font-size: clamp(18px, 2.2vw, 20px);
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.3;
}

.compliance-card__text {
  color: var(--muted);
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.6;
  margin: 0;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .compliance-header {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .compliance-flag-large {
    width: 100px;
    height: 70px;
  }
  
  .compliance-title {
    font-size: clamp(22px, 5vw, 28px);
  }
  
  .compliance-subtitle {
    font-size: 16px;
  }
  
  .compliance-grid {
    gap: 20px;
  }
  
  .compliance-card {
    padding: 20px;
  }
  
  .compliance-card__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
  }
  
  .compliance-card__icon svg {
    width: 24px;
    height: 24px;
  }
  
  .compliance-card__title {
    font-size: 17px;
    margin-bottom: 10px;
  }
  
  .compliance-card__text {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero__compliance {
    margin-top: 20px;
    justify-content: center;
  }
  
  .compliance-link {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .compliance-flag {
    width: 18px;
    height: 12px;
  }
  
  .compliance-header {
    gap: 16px;
  }
  
  .compliance-flag-large {
    width: 80px;
    height: 56px;
  }
  
  .compliance-title {
    font-size: 20px;
  }
  
  .compliance-subtitle {
    font-size: 15px;
  }
  
  .compliance-card {
    padding: 18px;
  }
  
  .compliance-card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }
  
  .compliance-card__icon svg {
    width: 22px;
    height: 22px;
  }
  
  .compliance-card__title {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .compliance-card__text {
    font-size: 14px;
  }
}