/* 
  ______   _______          ______             __        __                       __            _______                      
 /      \ |       \        /      \           |  \      |  \                     |  \          |       \                     
|  $$$$$$\| $$$$$$$\      |  $$$$$$\  ______  | $$____   \$$ _______    ______  _| $$_         | $$$$$$$\  ______  __     __ 
 \$$__| $$| $$  | $$      | $$   \$$ |      \ | $$    \ |  \|       \  /      \|   $$ \        | $$  | $$ /      \|  \   /  \
  |     $$| $$  | $$      | $$        \$$$$$$\| $$$$$$$\| $$| $$$$$$$\|  $$$$$$\\$$$$$$        | $$  | $$|  $$$$$$\\$$\ /  $$
 __\$$$$$\| $$  | $$      | $$   __  /      $$| $$  | $$| $$| $$  | $$| $$    $$ | $$ __       | $$  | $$| $$    $$ \$$\  $$ 
|  \__| $$| $$__/ $$      | $$__/  \|  $$$$$$$| $$__/ $$| $$| $$  | $$| $$$$$$$$ | $$|  \      | $$__/ $$| $$$$$$$$  \$$ $$  
 \$$    $$| $$    $$       \$$    $$ \$$    $$| $$    $$| $$| $$  | $$ \$$     \  \$$  $$      | $$    $$ \$$     \   \$$$   
  \$$$$$$  \$$$$$$$         \$$$$$$   \$$$$$$$ \$$$$$$$  \$$ \$$   \$$  \$$$$$$$   \$$$$        \$$$$$$$   \$$$$$$$    \$    
  */


@charset "UTF-8";

/* === ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ === */
@import url('variables.css');

/* === CSS RESET === */
@import url('reset.css');
 
/* === СЕКЦИОННЫЕ СТИЛИ === */
@import url('header.css');
@import url('main.css');
@import url('footer.css');

/* =======================          НАЧАЛО        =========================== */

/* Подключаем шрифты — вариативный Inter (roman + italic) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;      /* диапазон веса для variable font */
  font-stretch: 75% 125%;    /* диапазон ширины, если поддерживается файлом */
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/InterVariable-Italic.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 75% 125%;
  font-style: italic;
  font-display: swap;
}

/* =================== ОСНОВНЫЕ БАЗОВЫЕ ТЕГИ =================== */

body {
  min-height: 100%;
  line-height: 1.5;
  font-family: var(--font-family);
  font-size: 13px;
  line-height: 19.5px;
  font-optical-sizing: auto; /* задействует ось opsz у Inter */
  background-color: var(--color-white);
  overflow-x: hidden; /* Предотвращаем горизонтальный скролл */
}

a,
button,
input,
textarea,
svg * {
  transition-duration: var(--transition-duration);
}

a {
  color: var(--color-dark);
  text-decoration: none;
}
a:hover {
  color: var(--color-blue);
}
.container {
  max-width: calc(var(--container-width-landing) + var(--container-padding-x)*2);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

h1 {
  font-weight: var(--font-weight-700);
  }

h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-600);
  }

.button {
  display: inline-grid;
  place-items: center;
  padding: var(--spacing-xs) var(--spacing-lg);
  height: 2.75rem;
  border: none;
  border-radius: var(--border-radius-8);
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-600);
 
  }  
.white-button { 
  background-color: var(--color-white);
  border: 1px solid #E1E8ED;
  color: var(--color-dark);
  white-space: nowrap;    
}
.white-button:hover {
  border-color: var(--color-blue);
  color: var(--color-blue);
  }
.blue-button {
  background-color: var(--color-blue);
  border: 1px solid var(--color-blue);
  color: var(--color-white);
  white-space: nowrap;
}
.blue-button:hover {
  background-color: var(--color-blue-dark);
}

/* Неактивная кнопка (серая) */
.button.disabled-button {
  background-color: #B2BEC3;
  border-color: #B2BEC3;
  color: var(--color-white);
  cursor: not-allowed;
  pointer-events: none;
}

.button.disabled-button:hover {
  background-color: #B2BEC3;
  border-color: #B2BEC3;
}

/* =================== ДОПОЛНИТЕЛЬНЫЕ УНИКАЛЬНЫЕ СТИЛИ =================== */
/* Примечание: Header, Main, Footer импортируются из соответствующих файлов выше */

.content {
  width: 100%;
  background-color: var(--color-white);
}

.equipment-item:last-child {
  margin-bottom: 0;
}

.equipment-icon {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  border-radius: 0.25rem;
  background: linear-gradient(135deg, #C27AFF 0%, #9810FA 100%); 
}

.equipment-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  flex-grow: 1;
}

.equipment-info {
  width: 9.686rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  background: #E5E7EB;
}

.equipment-action {
  width: 6.458rem;
  height: 0.5rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  background: #F3F4F6;
}

.icon-wrapper {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  border-radius: 0.25rem;
  opacity: 0.3;
  background: #FFF;
}

.banner-center-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex-grow: 1;
  border-radius: var(--border-radius-14);
  border: 1px solid #DBEAFE;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
  padding: clamp(1.5rem, 2vw, 2rem);
  margin: clamp(1.5rem, 2vw, 2rem) 0 clamp(1.5rem, 2vw, 2rem) 0;
}

.banner-center-content > div {
  margin-top: auto;
  margin-bottom: auto;
  background-color: #def;
  padding: var(--spacing-lg);
}

.banner-right-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  flex-grow: 1;
  border-radius: var(--border-radius-14);
  border: 1px solid #DBEAFE;
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDFA 100%);
  padding: clamp(1.5rem, 2vw, 2rem);
  margin: clamp(1.5rem, 2vw, 2rem) clamp(1.5rem, 2vw, 2rem) clamp(1.5rem, 2vw, 2rem) 0;
}

.banner-right-content .promo-banner-heading {
  margin: 0 0 0 0;
}

.parameter-item {
  display: flex;
  min-height: 3.875rem;
  padding: var(--spacing-sm);
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-xs);
  flex-shrink: 0;
  align-self: stretch;
  border-radius: var(--border-radius-10);
  background: #FFF;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.10), 0 1px 2px -1px rgba(0, 0, 0, 0.10);
}

.parameter-item p {
  margin-bottom: 0;
}

/* Новый контейнер для заголовка и процентов */
.parameter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: var(--spacing-xs);
}

.parameter-header p {
  margin: 0;
  font-size: 0.875rem;
  font-weight: var(--font-weight-400);
  color: var(--color-dark);
}

/* Прогресс-бар параметры в баннере */
.mini-progress-bar {
    width: 100%;
    height: 0.625rem;
    background: #EDF1F7;
    border-radius: 0.3125rem;
    overflow: hidden;
    position: relative;
}

.mini-progress-fill {
    height: 100%;
    border-radius: 0.3125rem;
    transition: width 0.5s ease;
}

/* Блок с процентами - теперь на одной линии с текстом параметра */
.progress-value {
    font-size: 0.75rem;
    font-weight: var(--font-weight-600);
    color: var(--color-gray);
    transition: color 0.5s ease;
    white-space: nowrap;
    margin-left: var(--spacing-sm); /* отступ от текста параметра */
}

/* При наведении на весь контейнер parameter-item изменяем цвет текста */
.parameter-item:hover .progress-value {
    color: var(--color-blue);
}

/* Убираем дублирующие правила с !important - они конфликтуют с JS */

.mini-progress-fill.power {
  background: linear-gradient(90deg, #8F53FF 0%, #5F87FF 100%);
}

.mini-progress-fill.weight {
  background: linear-gradient(90deg, #FFC107 0%, #FF9800 100%);
}

.mini-progress-fill.heat {
  background: linear-gradient(90deg, #FF6080 0%, #FFB38A 100%);
}

/* ============================================
   Раскрашивание шкафа в SVG
   ============================================ */

/* Применение цветов к path'ам в sprite.svg */

/* Правая грань (1-й path) */
#icon-cabinet > path:nth-child(1) {
  fill: var(--cabinet-right-side) !important;
}

/* Верхняя грань (2-й path) */
#icon-cabinet > path:nth-child(2) {
  fill: var(--cabinet-top-side) !important;
}

/* Левая грань (3-й path) */
#icon-cabinet > path:nth-child(3) {
  fill: var(--cabinet-left-side) !important;
}

/* Внутренняя панель (4-й path) */
#icon-cabinet > path:nth-child(4) {
  fill: var(--cabinet-inner-panel) !important;
}

.cabinet {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cabinet svg {
  width: 15.625rem;
  height: 15.625rem;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.6))
          drop-shadow(4px 0 6px rgba(0, 0, 0, 0.2));
}

/* Серверные блоки (5-13 path) */
#icon-cabinet > path:nth-child(1) { fill: var(--cabinet-right-side) !important; }
#icon-cabinet > path:nth-child(2) { fill: var(--cabinet-top-side) !important; }
#icon-cabinet > path:nth-child(3) { fill: var(--cabinet-left-side) !important; }
#icon-cabinet > path:nth-child(4) { fill: var(--cabinet-inner-panel) !important; }
#icon-cabinet > path:nth-child(5),
#icon-cabinet > path:nth-child(6),
#icon-cabinet > path:nth-child(7),
#icon-cabinet > path:nth-child(8),
#icon-cabinet > path:nth-child(9),
#icon-cabinet > path:nth-child(10),
#icon-cabinet > path:nth-child(11),
#icon-cabinet > path:nth-child(12),
#icon-cabinet > path:nth-child(13) { fill: var(--cabinet-server-slots) !important; }

/* Большие зелёные кружки */
#icon-cabinet > path:nth-child(14),
#icon-cabinet > path:nth-child(18),
#icon-cabinet > path:nth-child(22),
#icon-cabinet > path:nth-child(26),
#icon-cabinet > path:nth-child(28),
#icon-cabinet > path:nth-child(31) { fill: var(--indicator-success) !important; }

/* Малые чёрные индикаторы справа */
#icon-cabinet > path:nth-child(15),
#icon-cabinet > path:nth-child(16),
#icon-cabinet > path:nth-child(17),
#icon-cabinet > path:nth-child(19),
#icon-cabinet > path:nth-child(20),
#icon-cabinet > path:nth-child(21),
#icon-cabinet > path:nth-child(32),
#icon-cabinet > path:nth-child(33),
#icon-cabinet > path:nth-child(34) { fill: var(--indicator-small) !important; opacity: var(--indicator-small-opacity) !important; }

/* Остальные большие кружки (если добавишь новые) */
#icon-cabinet > path:nth-child(23) { fill: var(--indicator-success) !important; }  /* 4-й зелёный */
#icon-cabinet > path:nth-child(24) { fill: var(--indicator-warning) !important; }  /* 5-й жёлтый */
#icon-cabinet > path:nth-child(25) { fill: var(--indicator-error) !important; }  /* 6-й красный */
#icon-cabinet > path:nth-child(26) { fill: var(--indicator-error) !important; }  /* 7-й красный */
#icon-cabinet > path:nth-child(27) { fill: var(--indicator-warning) !important; }  /* 8-й жёлтый */
#icon-cabinet > path:nth-child(28) { fill: var(--indicator-success) !important; }  /* 9-й зелёный */

/* Красные кружки ошибок */
#icon-cabinet > path:nth-child(29) { fill: var(--indicator-error) !important; }
#icon-cabinet > path:nth-child(30) { fill: var(--indicator-error) !important; }

#icon-cabinet > path:nth-child(31) { fill: var(--indicator-success) !important; }

/* Малые чёрные индикаторы справа (нижние) */
#icon-cabinet > path:nth-child(32),
#icon-cabinet > path:nth-child(33),
#icon-cabinet > path:nth-child(34) { fill: var(--indicator-small) !important; opacity: var(--indicator-small-opacity) !important; }

.intro-list ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.intro-list li {
  position: relative;
  padding-left: 2em;
  margin-bottom: 0.8em;
  color: var(--color-dark);
  font-family: Inter, sans-serif;
  font-size: clamp(0.95rem, 2vw, 1rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
}

.intro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.1em;
  height: 1.1em;
  background: no-repeat center/contain;
}

.icon-check-list {
  width: 1.1em;
  height: 1.1em;
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--icon-check-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  color: var(--icon-check-stroke);
}

.icon-check-list svg {
  display: block;
  width: 100%;
  height: 100%;
}

.selection {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5625rem;
  padding: 2.5rem 2rem 2rem 2rem;
  width: 33.75rem;
  border-radius: var(--border-radius-16);
  box-shadow: 0px 1px 8px rgba(var(--color-blue-shadow), 0.2),
              -1px 5px 16px rgba(var(--color-blue-shadow), 0.05),
              -1px 15px 32px rgba(var(--color-blue-shadow), 0.08);
}

.selection-title {
  color: var(--color-dark);
  font-family: var(--font-family);
  font-size: 1.75rem;
  font-weight: var(--font-weight-600);
  justify-self: start;
  line-height: 2.625rem;
}

.selection-title2 {
  color: var(--color-dark);
  font-family: var(--font-family);
  font-size: 1.125rem;
  justify-self: start;
  line-height: 1.6875rem;
}

.selection-description {
  color: var(--color-gray);
  font-family: var(--font-family);
  font-size: 1rem;
  font-style: normal;
  font-weight: var(--font-weight-400);
  line-height: 1.5rem;
}

.buttons-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5625rem;
  width: 100%;
}

.step-info {
  color: #7B6EF6;
  font-size: 1rem;
  font-family: var(--font-family);
  font-weight: var(--font-weight-600);
  margin-bottom: 0.3125rem;
}

.progress-bar {
  width: 95%;
  height: 0.625rem;
  background: #F1EDFD;
  border-radius: var(--border-radius-8);
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.progress-fill {
  height: 100%;
  background: #7B6EF6;
  width: 0;
  border-radius: var(--border-radius-8);
  transition: width 0.3s;
}

.select-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: relative;
  box-shadow: 0 1px 8px rgba(123, 110, 246, 0.15);
  border: 2px solid #e0dff5;
  border-radius: var(--border-radius-16);
  background: #fff;
  padding: 1.5rem 1.25rem 1.125rem 1.25rem;
  min-width: 13.75rem;
  min-height: 11.25rem;
  cursor: pointer;
  transition: border 0.3s ease,
              background 0.3s ease, 
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

.select-card input[type="radio"] {
  display: none;
}

/* ========== АНИМАЦИЯ ПРИ НАВЕДЕНИИ МЫШКИ ========== */

.select-card:hover {
 
  box-shadow: 0 12px 24px rgba(123, 110, 246, 0.25);
  border: 2px solid var(--color-blue-dark);
}

/* ========== СТИЛИ ДЛЯ ГАЛКИ ИЗ СПРАЙТА ========== */

/* Основной стиль галки (иконки из спрайта) */
.checkmark-icon {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-white);
  fill: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: none;
}

/* ========== СОСТОЯНИЕ ВЫБРАННОГО RADIO (АКТИВНОЕ) ========== */

/* Когда пользователь кликает на карточку, radio становится :checked */
/* и запускается анимация рисования галки с пульсированием */
.select-card input[type="radio"]:checked ~ .custom-radio .checkmark-icon {
  color: var(--color-white);
  opacity: 1;
  animation: drawCheckmarkPulse 0.6s ease forwards;
}

/* ========== АНИМАЦИЯ РИСОВАНИЯ ГАЛКИ С ПУЛЬСИРОВАНИЕМ ========== */

/* @keyframes drawCheckmarkPulse — анимация, которая "рисует" галку */
/* и затем слегка её уменьшает (пульсирует), создавая эффект "подскока" */
@keyframes drawCheckmarkPulse {
  /* КАДР 0% (начало анимации) */
  0% {
    stroke-dashoffset: 30;   /* Линия полностью смещена влево (скрыта) */
    opacity: 0;              /* Галка полностью прозрачна (невидима) */
    transform: scale(1);     /* Нормальный размер */
  }
  
  /* КАДР 50% (середина анимации - галка становится видимой) */
  50% {
    opacity: 1;              /* На половине анимации галка становится видимой */
    stroke-dashoffset: 0;    /* Линия начинает отрисовываться */
    transform: scale(1);     /* Остаётся на нормальном размере */
  }
  
  /* КАДР 85% (почти конец - галка полностью отрисована) */
  85% {
    stroke-dashoffset: 0;    /* Линия полностью видима */
    opacity: 1;              /* Галка видима */
    transform: scale(1.1);   /* Галка СЛЕГКА УВЕЛИЧИВАЕТСЯ (на 10%) */
  }
  
  /* КАДР 100% (конец анимации - возвращаемся к нормальному размеру) */
  100% {
    stroke-dashoffset: 0;    /* Линия полностью видима */
    opacity: 1;              /* Галка полностью видима */
    transform: scale(1);     /* Галка возвращается к НОРМАЛЬНОМУ размеру (эффект пульса) */
  }
}

/* ИТОГ: галка отрисовывается за 0.3 сек, затем пульсирует (увеличивается и уменьшается) */
/* за оставшиеся 0.3 сек, создавая эффект "живого" галочки */

.custom-radio {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #d5d4ea;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

/* Основные стили текста и иконки */
.content {
  margin-top: 0.875rem;
  width: 100%;
}
.icon {
  margin-bottom: var(--spacing-md);
}
.icon-decoration {
  x: 10;
  y: 10;
  width: 20;
  height: 20;
  rx: 4;
  stroke: #7b6ef6;
  stroke-width: 2;
  fill: none;
}
.select-card-title {
  color: var(--color-dark);
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: var(--font-weight-600);
  margin-bottom: 0.375rem;
  text-align: center;
}
.select-card-desc {
  color: var(--color-gray);
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-400);
  text-align: center;
}

/* Выбранное состояние: рамка и фон карточки, кружок выделен, галочка показана */
.select-card input[type="radio"]:checked + .custom-radio {
  background: #7b6ef6;
  border-color: #7b6ef6;
}

.select-card input[type="radio"]:checked + .custom-radio .checkmark {
  opacity: 1;
}

/* Активная карточка (выбранная) */
.select-card.active {
  background: #F5F3FF;
  border-color: var(--color-blue);
}

.select-card.active .content {
  background: #F5F3FF;
}

.select-card.active .select-card-title {
  color: var(--color-dark);
}

.select-card.active .select-card-desc {
  color: var(--color-gray);
}

.select-card.active .icon-decoration {
  stroke: #7b6ef6;
}

.select-card.active .icon-select svg {
  color: #636E72;
}

/* Фокус и hover состояния для лучшей доступности */
.select-card:hover,
.select-card:focus-within {
  border: 2px solid #7b6ef6;
}

.icon-select {
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.125rem auto;
}

.icon-select svg {
  width: 4rem;
  height: 4rem;
  display: block;
  color: #636E72;
  fill: none;
}

/* Скрытый блок */
.selection .location-container.hidden,
.selection .hidden {
  display: none;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* Видимый блок */
.selection .location-container.visible,
.selection .visible {
  display: grid;
  opacity: 1;
  max-height: 31.25rem;
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

.fourth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3xl);
  padding: var(--spacing-4xl) clamp(1.5rem, 10vw, 10rem);
  background-color: var(--color-background-2);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

.key-features-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: var(--spacing-xl);
  width: 100%;
  max-width: var(--container-width-landing);  /* Добавлено */
  padding: 0 clamp(1.5rem, 5vw, 3rem);        /* Добавлено */
}

.fifth-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-3xl);
  padding: var(--spacing-4xl) clamp(1.5rem, 10vw, 10rem);
  background: linear-gradient(180deg, #6C5CE7 0%, #A29BFE 100%);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Стили для заголовка и текста в fifth-section */
.fifth-section .section-title {
  color: var(--color-white);
}

.fifth-section .section-description {
  color: var(--color-white);
}

/* Стили для блоков преимуществ */
.fifth-section-features {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-600);
}

.fifth-section-features .dot {
  font-size: 1.5rem;
  line-height: 1;
}

/* =================== КОНЕЦ УНИКАЛЬНЫХ СТИЛЕЙ =================== */
/* Footer, а также остальные секции импортированы из соотв. файлов */