/* ReFlow - Стили сайта на основе брендбука */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
  /* Цветовая палитра из брендбука */
  --primary-blue: #00C2B3;      /* Основной синий - доверие */
  --accent-orange: #3F114A;     /* Акцентный оранжево-красный - энергия */
  --accent-cyan: #00C2B3;       /* Акцентный циан - технологии */
  --dark-gray: #1B1B41;         /* Темно-серый */
  --mid-gray: #6B7280;          /* Средне-серый */
  --light-gray: #1B1B41;        /* Светло-серый */
  --white: #FFFFFF;             /* Белый */

  /* Дополнительные цвета */
  --primary-hover: #00C2B3;
  --accent-orange-hover: #360940;
  --accent-cyan-hover: #008273;
  --green_sber: #41B125;

  /* Тени */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);

  /* Радиусы */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Шрифты */
  --font-primary: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Новые переменные для темной темы */
  --bg-dark: #0C0B1C;
  --platinum-text: #E5E4E2;
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(200, 200, 200, 0.2);
  --glass-shadow: 0 8px 32px #1B1B41;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--platinum-text);
  background-color: var(--bg-dark);
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== ТИПОГРАФИЯ ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--platinum-text);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--platinum-text);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--platinum-text);
}

.section-subtitle {
  text-align: center;
  font-size: 1.25rem;
  color: var(--platinum-text);
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--platinum-text);
}


.btn-secondary {
  background: transparent;
  color: var(--platinum-text);
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 20px var(--bg-dark);
}

.btn-secondary:hover {
  background: var(--accent-cyan);
  color: var(--platinum-text);
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--bg-dark);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Общие стили для хедера */
.header {
    position: fixed; /* Делаем шапку "липкой" */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Убедимся, что шапка поверх всего */
    background-color: rgba(12, 11, 28, 0.01); /* Темно-синий из палитры №1 с прозрачностью 90% */
    backdrop-filter: blur(10px); /* Создает красивый эффект размытия фона под шапкой */
    -webkit-backdrop-filter: blur(15px); /* Для поддержки в Safari */
    box-shadow: 0 2px 10px var(--bg-dark); /* Легкая тень для объема */
    transition: background-color 0.5s ease; /* Плавное изменение фона при скролле */
    opacity: 1;
}

/* Контейнер для выравнивания содержимого */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Основной блок содержимого шапки */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px; /* Фиксированная высота шапки */
}

/* Стили для логотипа */
.logo a {
    color: var(--platinum-text);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100px;
}

/* Навигационное меню (для десктопа) */
.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem; /* Отступ между пунктами меню */
    margin: 0;
    padding: 0;
}

.nav-list a {
    color: var(--platinum-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.5s ease;
}

.nav-list a:hover {
    color: var(--accent-cyan); /* Акцентный бирюзовый цвет при наведении */
}

/* Блок кнопок Войти/Регистрация */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-login {
    color: var(--platinum-text);
    text-decoration: none;
    font-weight: 500;
}

.btn-register {
    background-color: var(--accent-orange); /* Бирюзовый акцентный цвет */
    color: var(--platinum-text);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.btn-register:hover {
    background-color: var(--accent-orange-hover); /* Более светлый оттенок при наведении */
}

/* Стили для бургер-меню (по умолчанию скрыто) */
.burger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 24px;
    height: 18px;
    justify-content: space-between;
}

.burger-menu span {
    height: 2px;
    width: 100%;
    background-color: var(--platinum-text);
    border-radius: 2px;
    transition: all 0.5s ease;
}

/* Медиа-запрос для мобильных устройств */
@media (max-width: 768px) {
    /* Показываем бургер-меню и скрываем обычное */
    .burger-menu {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%; /* Располагаем меню прямо под шапкой */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--bg-dark); /* Цвет фона меню */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1rem 0;
        box-shadow: 0 5px 15px var(--bg-dark);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); /* "Схлопываем" меню */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease-in-out;
        gap: 0;
    }

    /* Класс для открытия меню через JS */
    .nav-list.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); /* Разворачиваем меню */
        opacity: 1;
        visibility: visible;
    }

    .nav-list li {
        width: 100%;
    }

    .nav-list a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--bg-dark);
    }

    .nav-list a:hover {
        background-color: var(--accent-cyan); /* Слегка подсвечиваем пункт */
    }

    /* Скрываем кнопки в мобильном виде */
    .header-actions {
        display: none;
    }

    /* Анимация бургера в "крестик" */
    .burger-menu.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .burger-menu.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ===== СТЕКЛЯННЫЕ КАРТОЧКИ ===== */
.card {
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 100%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow:
        /* Основная глубокая тень */
        0 25px 50px rgba(0, 0, 0, 0.7),
        /* Ближняя тень для объема */
        0 10px 20px rgba(0, 0, 0, 0.5),
        /* Внутренние свечения для 3D эффекта */
        inset 2px 2px 5px rgba(255, 255, 255, 0.15),
        inset -2px -2px 5px rgba(0, 0, 0, 0.4),
        /* Контурное свечение */
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    transform: translateZ(0) perspective(1000px);
    transform-style: preserve-3d;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent);
    z-index: 2;
}

.card::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.2) 0%,
        transparent 40%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: calc(var(--radius-xl) + 4px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    filter: blur(10px);
}

/* Эффект параллакса при наведении */
.card:hover {
    transform:
        translateY(7px)
        translateZ(20px)
        rotateX(2deg)
        rotateY(1deg);
    box-shadow:
        0 35px 60px rgba(0, 0, 0, 0.9),
        0 15px 30px rgba(0, 0, 0, 0.6),
        inset 3px 3px 8px rgba(255, 255, 255, 0.2),
        inset -3px -3px 8px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.15);
    background: linear-gradient(145deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.18) 100%);
}

.card:hover::after {
    opacity: 0.6;
}

/* Дополнительный внутренний объем */
.card-content {
    position: relative;
    z-index: 3;
    transform: translateZ(10px);
}

/* Эффект глубины для иконок/изображений внутри карточки */
.card img,
.card .icon {
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.3));
    transform: translateZ(15px);
    transition: all 0.4s ease;
}

.card:hover img,
.card:hover .icon {
    filter: drop-shadow(0 8px 15px rgba(0, 0, 0, 0.4));
    transform: translateZ(25px) scale(1.05);
}

/* ===== HERO СЕКЦИЯ ===== */
/* Стили для героя */
.hero {
  min-height: 100vh;
  height: 100%;
  display: flex;
  align-items: center;
  position: relative;
  padding: 100px 0 60px;
  background: url('../images/bg_hero.jpg') center/cover no-repeat fixed;
  color: var(--platinum-text);
  overflow: hidden;
}

.hero-visual {
  position: relative;
  width: 1200px;
  height: 400px;
}

/* Дополнительный декоративный элемент */
.hero-visual::after {
  content: '';
  position: absolute;
  top: 85%;
  left: 25%;
  opacity: 1;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 100%;
  background: url('../images/logo_svg.svg') center/cover no-repeat fixed;
  z-index: -1;
}


/* Контейнер */
.hero .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* Основной контент героя */
.hero-content {
  display: grid;
  grid-template-columns: 1fr auto; /* Текст слева, визуал справа */
  align-items: center;
  gap: 4rem;
  width: 100%;
}

/* Текстовая часть - выравниваем по левому краю */
.hero-text {
  text-align: left; /* Выравниваем текст по левому краю */
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Кнопки призыва к действию */
.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start; /* Выравниваем кнопки по левому краю */
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 200px;
}

.btn-primary { /* Бирюзовый акцент */
  color: var(--platinum-text) ;
  border: 2px solid var(--accent-cyan);
}

.btn-primary:hover {
  background-color: var(--accent-cyan-hover);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 194, 179, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
  background-color: var(--light-gray);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Визуальная часть */


/* Декоративный элемент для визуальной части */

/* Анимация пульсации */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
  }
}

/* Дополнительный декоративный элемент */


@keyframes rotate {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Адаптивность для планшетов */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-text {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .cta-buttons {
    justify-content: center;
  }

  .hero-visual {
    width: 650px;
    height: 250px;
    margin: 0 auto;
    order: -1;
    top: 45%;
    left: 60%;
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    min-width: 250px;
    width: 100%;
    max-width: 300px;
  }

  .hero-visual {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    min-width: 200px;
  }

  .hero-visual {
    position: absolute;
    width: 400px;
    height: 120px;
    top: 120%;
    left: 77%;
    z-index: 999;
    transform: translate(-50%, -50%);
/*    display: none;*/
  }

  .hero-text {
    margin: 0 auto;
    margin-top: -100px;

  }
}



.key-fact {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-left: 4px solid var(--accent-orange);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 2rem 2rem;
  box-shadow: var(--glass-shadow);
}

.fact-text {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--platinum-text);
}

/* ===== СЕТКИ ===== */
.problems-grid,
.benefits-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* ===== БЛОК ПРОБЛЕМ ===== */
.problems-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--platinum-text);
    margin-bottom: 4rem;
    position: relative;
/*    display: inline-block;*/
    left: 50%;
    transform: translateX(-50%);
}


.problem-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  transition: all 0.3s ease;
}

.problem-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.problem-title {
  color: var(--platinum-text);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.problem-desc {
  color: var(--platinum-text);
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.solution {
  border-top: 1px solid var(--glass-border);
  padding-top: 3.5rem;
  margin-top: auto; /* Прижимаем к низу карточки */
}

.solution-title {
  color: var(--platinum-text);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.solution-desc {
  color: var(--platinum-text);
  font-weight: 500;
  opacity: 0.9;
}

/* ===== БЛОК ПРЕИМУЩЕСТВ ===== */
.benefits-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
}

.benefit-item {
  text-align: center;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
  box-shadow: var(--glass-shadow);
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: var(--bg-dark);
}

.benefit-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.benefit-title {
  color: var(--platinum-text);
  margin-bottom: 3rem;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.benefit-desc {
  color: var(--platinum-text);
  opacity: 0.9;
}

/* ===== БЛОК "КАК ЭТО РАБОТАЕТ" ===== */
.mechanics-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
}

.mechanics-business,
.mechanics-partners {
  margin-bottom: 5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--glass-shadow);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-step {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #222 0%, var(--platinum-text) 40%, #222 100%);
  color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-right: 2rem;
  margin-top: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  flex-grow: 1;
}

.timeline-title {
  font-size: 1.5rem;
  color: var(--platinum-text);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.timeline-desc {
  color: var(--platinum-text);
  opacity: 0.9;
}

/* ===== БЛОК СТАТИСТИКИ ===== */
.stats-section {
  padding: 5rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.stat-circle {
  border-radius: 50%;
  width: 250px;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 1rem;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.stat-number {
  font-size: 2.0rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
/*  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/
}

.stat-desc {
  font-size: 0.9rem;
  text-align: center;
  max-width: 120px;
  font-weight: 600;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green_sber);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--platinum-text);
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===== БЛОК FAQ ===== */
.faq-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(0, 194, 179, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(106, 87, 163, 0.05) 0%, transparent 50%);
    z-index: 1;
}

.faq-section .container {
    position: relative;
    z-index: 2;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

/* Элемент FAQ */
.faq-item {
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-item:hover {
    border-color: rgba(0, 194, 179, 0.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* Кнопка вопроса */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}


.faq-question span {
    flex: 1;
    margin-right: 1.5rem;
}

/* Иконка стрелки */
.faq-icon {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-icon:hover {
    color: #00C2B3;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #00C2B3;
}

/* Контейнер ответа */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Достаточно для любого ответа */
}

/* Контент ответа */
.faq-answer-content {
    padding: 0 2rem 1.5rem 2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 1rem;
}

/* Декоративная линия под вопросом */
.faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 1px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question::after {
    background: linear-gradient(90deg,
        transparent,
        rgba(0, 194, 179, 0.3),
        transparent);
}

/* Анимация появления */
.faq-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 768px) {
    .faq-section {
        padding: 4rem 0;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.25rem 1.5rem;
        font-size: 0.95rem;
    }

    .faq-question::after {
        left: 1.5rem;
        right: 1.5rem;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 1rem 1.25rem;
    }

    .faq-question span {
        margin-right: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1rem 1.25rem;
    }

    .faq-question::after {
        left: 1.25rem;
        right: 1.25rem;
    }
}

/* ===== ФИНАЛЬНЫЙ ПРИЗЫВ ===== */
.final-cta {
  padding: 5rem 0;
  text-align: center;
  /* background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%); */
  color: var(--platinum-text);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /*background: radial-gradient(circle at 50% 50%, rgba(255, 51, 102, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 210, 255, 0.1) 0%, transparent 40%),
              radial-gradient(circle at 20% 80%, rgba(15, 76, 255, 0.1) 0%, transparent 40%);*/
}

.cta-card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  position: relative;
  z-index: 2;
}

.cta-text {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ===== ФУТЕР ===== */
.footer {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
  color: var(--platinum-text);
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--platinum-text);
  text-shadow: 0 0 10px rgba(229, 228, 226, 0.3);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-link {
  color: var(--platinum-text);
  text-decoration: none;
  transition: all 0.3s ease;
  opacity: 0.8;
}

.footer-link:hover {
  color: var(--accent-cyan);
  opacity: 1;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
}

.footer-copyright {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== АНИМАЦИИ ===== */

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding: 4rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

  .cta-buttons {
    flex-direction: column;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-step {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    margin-right: 1rem;
  }

  .stat-circle {
    width: 250px;
    height: 250px;
  }

  .stat-number {
    font-size: 2rem;
  }

  .mechanics-business,
  .mechanics-partners {
    padding: 2rem 1.5rem;
  }
}

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .problems-grid,
  .benefits-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  .logo img {
    width: 100%;
    height: 50px;
  }
}

/* ===== БЛОК КОНТАКТОВ ===== */
.contacts {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark) 100%);
    position: relative;
    overflow: hidden;
}

.contacts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 194, 179, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(63, 17, 74, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.contacts .container {
    position: relative;
    z-index: 2;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contacts-info {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.contacts-info h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--platinum-text);
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent-cyan);
    margin-right: 1rem;
    width: 24px;
    text-align: center;
}

.contact-item span {
    color: var(--platinum-text);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--platinum-text);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.social-links a:hover {
    background: var(--accent-cyan);
    color: var(--bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 194, 179, 0.4);
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--platinum-text);
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--platinum-text);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(0, 194, 179, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(229, 228, 226, 0.6);
}

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

.contact-form .btn {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Адаптивность */
@media (max-width: 968px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacts-info,
    .contact-form {
        padding: 2rem;
    }

    .contacts-info h2 {
        font-size: 2rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .contacts {
        padding: 4rem 0;
    }

    .contacts-info,
    .contact-form {
        padding: 1.5rem;
    }

    .contacts-info h2 {
        font-size: 1.8rem;
    }

    .contact-form h3 {
        font-size: 1.5rem;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-item i {
        margin-right: 0;
    }

    .social-links {
        justify-content: center;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

.consent-checkbox {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--platinum-text);
    opacity: 0.9;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    min-width: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    margin-right: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--bg-dark);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.consent-text {
    flex: 1;
}

.consent-text a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Hover эффекты для checkbox */
.checkbox-label:hover .checkmark {
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.12);
}

/* Адаптивность для checkbox */
@media (max-width: 480px) {
    .checkbox-label {
        flex-direction: column;
        gap: 0.8rem;
    }

    .checkmark {
        margin-right: 0;
    }

    .consent-text {
        width: 100%;
    }
}

.contact-button-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--platinum-text);
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 194, 179, 0.4);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .contact-button-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .contact-button {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .contact-button svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .contact-button-container {
        bottom: 1rem;
        right: 1rem;
    }

    .contact-button {
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .contact-button span {
        display: none;
    }

    .contact-button {
        border-radius: 50%;
        width: 100px;
        height: 100px;
        justify-content: center;
    }
}
