@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');
:root {
    --primary: #f67a71;
    --secondary: #d1e3f5;
    --text: #222;
    --white: #ffffff;
	--blue: #8090ab;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	--font-main: 'Nunito', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: auto;
}
body { font-family: var(--font-main);color: var(--text);overflow-x:hidden;}
body.lock-scroll { overflow: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Прозрачный белый фон */
    background: rgba(255, 255, 255, 0.7); 
    
    /* Матовое стекло */
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    
    /* Тонкая граница снизу вместо тяжелой тени */
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    
    z-index: 3000;
    
    /* Смягчаем тень, чтобы она не "грязнила" стекло */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    
    padding: 12px 0;
    transition: all 0.3s ease;
}
.header__container { display: flex; align-items: center; justify-content: space-between; }
.logo__img { height: 55px; width: auto; display: block; }

.nav__list { display: flex; list-style: none; gap: 25px; }
.nav__link { text-decoration: none; color: var(--text); font-weight: 500; font-size: 15px; transition: var(--transition); }
.nav__link:hover { color: var(--primary); }

.header__actions { display: flex; align-items: center; gap: 20px; }
.header__m-btn, .burger { display: none; } /* Скрыто на десктопе */

/* Buttons */
.btn {
    padding: 14px 28px; border-radius: 12px; border: none; 
    font-weight: 600; cursor: pointer; transition: var(--transition);
}
.btn--header { background: var(--primary); color: var(--white); 
	box-shadow: 0 5px 10px 0 rgba(246, 122, 113, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	font-size: 14px;
}
.btn--header:hover {
		
		transform: translateY(-2px);
		box-shadow: 0 6px 10px 0 rgba(246, 122, 113, 0.65);
	}
/* Hero Section */
.hero { padding-top: 140px;background: radial-gradient(circle at 90% 10%, #f0f7ff 0%, #fff 60%); 

	position: relative;
    padding-bottom: 300px;
    background-color: #ffffff;
    overflow: hidden;
}
.hero::after {
    content: "";
    position: absolute;
    bottom: -1px; /* Прижимаем плотно к низу, -1px убирает микро-щель */
    left: 0;
    width: 100%;
    height: auto; 
    aspect-ratio:1920 / 613;
    background-image: url('../img/about-section-wave.svg');
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: cover; /* Или contain, если хочешь сохранить пропорции без обрезки */
    
    z-index: 1; /* Волна будет над фоном, но под контентом, если у контента z-index выше */
    pointer-events: none; /* Чтобы волна не мешала кликать по кнопкам, если они рядом */
}
.hero__container { display: flex; align-items: center; gap: 50px; position: relative; z-index: 5;}
.hero__content { flex: 1.2; }
.hero__image { flex: 0.8; }


.hero__title { font-size: 44px; font-weight: 800; margin-bottom: 24px; line-height: 1.2; }
.hero__title span { color: var(--primary); }
.hero__subtitle { font-size: 18px; color: #555; margin-bottom: 40px; line-height: 1.5; }

.hero__features { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 40px; }
.feature { display: flex; align-items: center; gap: 15px; }
.feature__icon { width: 44px; height: 44px; border-radius: 12px; mix-blend-mode: multiply; }
.feature__icon img, .feature__icon svg{width: 44px; height: 44px;}
.hero__btns { display: flex; flex-direction: column; gap: 20px; }
.btn--primary { background: var(--primary); color: var(--white); max-width: 420px; max-width: 600px;width: 100%;padding: 20px;font-size: 18px;border:2px solid var(--primary);

	box-shadow: 0 5px 15px 0 rgba(246, 122, 113, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
	.btn--primary:hover {
		
		transform: translateY(-2px);
		box-shadow: 0 6px 15px 0 rgba(246, 122, 113, 0.65);
	}
.btn--secondary { background: var(--secondary); color: var(--text); max-width: 420px; max-width: 600px;width: 100%;padding: 20px;font-size: 18px;border:2px solid var(--blue);

	box-shadow: var(--shadow);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	}
	.btn--secondary:hover {
		
		transform: translateY(-2px);
		box-shadow: 0 5px 20px rgba(0,0,0,0.2);
	}

.hero__stats { display: flex; gap: 30px; margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.stat { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.mobile-menu {display:none;}
.header--no-shadow {
    box-shadow: none;
}
.hero__image {
    flex: 1; /* Расширяем колонку с фото */
    display: flex;
    justify-content: flex-end; /* Прижимаем фото к правому краю */
    align-items: center;
}

.hero__image-wrapper {
    position: relative; /* Якорь для абсолютного фона */
    display: inline-block;
}

.hero__main-photo {
    display: block;
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    position: relative;
    z-index: 2; /* Фото должно быть выше декоративного фона */
}

/* Стили для декоративного фона */
.hero__decor-bg {
    position: absolute;
    /* Позиционируем фон относительно wrapper */
    transform: translate(-45%, -50%); /* Сдвигаем, чтобы он 'выглядывал' влево и вниз */
    
    /* Размеры декоративного фона должны быть больше, чем у фото */
    height: auto;
    width: auto !important;
    max-width: 650px !important;
    top: 24%;
    left: 42%;
    opacity: .6;
    box-shadow: none !important;
    z-index: 1; /* Фон находится ПОД главной фотографией */
    mix-blend-mode: multiply; 
    pointer-events: none; /* Чтобы фон не мешал кликам */
}
.stat__icon img, .stat__icon svg{
	width: 30px;
    height: 30px;
}


.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999; /* Выше всех, даже хедера */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* Оверлей */
.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(34, 34, 34, 0.6); /* Немного темнее */
    backdrop-filter: blur(3px); /* Легкое размытие сзади */
}

/* Modal Content */
.modal__content {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    max-width: 500px; /* Умеренная ширина формы */
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    z-index: 2;
    overflow: hidden; /* Чтобы декор не уходил за рамки формы */
    border: 1px solid #eee; /* Очень тонкая рамка */
}

/* Декор внутри модалки */
.modal__decor {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%; /* Декор больше формы */
    height: auto;
    max-width: none;
    z-index: -1; /* Фон находится ПОД формой */
    mix-blend-mode: multiply; /* Для прозрачности белого фона */
    opacity: 0.3; /* Сделаем его чуть мягче */
    pointer-events: none;
}

/* Остальные стили (Title, inputs) */
.modal__close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}
.modal__close:hover { transform: rotate(90deg); }

.modal__title { font-size: 28px; font-weight: 800; margin-bottom: 10px; line-height: 1.2; text-align: center; }
.modal__subtitle { font-size: 14px; color: #666; margin-bottom: 30px; text-align: center; }

.modal__input {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--secondary);
    border-radius: 12px;
    background-color: #fcfcfc;
    font-size: 16px;
    color: var(--text);
    margin-bottom: 15px;
    transition: var(--transition);
}
.modal__input:focus {
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(246, 122, 113, 0.1);
}

.modal__submit { width: 100%; max-width: none; margin-top: 10px; }

.about {
    position: relative;
    padding: 0 0 100px;
    background-color: #f8fbff; /* Тот самый холодный оттенок */
    overflow: hidden;
	padding-bottom: 200px;
}

.about__wave {
    position: absolute;
    top: -2px; /* Убираем микро-щель */
    left: 0;
    width: 100%;
    z-index: 1;
}

.about__container { position: relative; z-index: 2; }

.about__decor-bg {
    position: absolute;
    bottom: -50px;
    right: -100px;
    width: 60%;
    opacity: 0.4;
    mix-blend-mode: multiply;
    z-index: -1;
    pointer-events: none;
}

/* Заголовок секции */
.section-title { font-size: 36px; font-weight: 800; text-align: center; margin-bottom: 15px; letter-spacing: -0.02em;}
.section-subtitle { font-size: 18px; text-align: center; color: #666; margin-bottom: 60px; }

/* Сетка карточек */
.about__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 60px;
}

.about__card {
    background: #ffffff;
    padding: 40px 25px;
    border-radius: 24px;
    border: 1px solid rgba(209, 227, 245, 0.3); /* Тонкая граница в тон сайта */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Плавность для всех изменений */
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
    
    /* Начальная тень (очень мягкая) */
    box-shadow: 0 8px 24px rgba(149, 157, 165, 0.05);
    cursor: default;
}

.about__card:hover {
    transform: translateY(30px); /* Карточка уходит вверх */
    /* Глубокая цветная тень (используем голубой подтон для чистоты) */
    box-shadow: 0 20px 40px rgba(209, 227, 245, 0.6); 
}

.about__card-icon { width: 150px; height: 150px; margin: 0 auto 20px; transition: transform 0.4s ease;}
.about__card:hover .about__card-icon {
    transform: scale(1.1);
}
.about__card-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text);
    /* Фикс высоты, чтобы заголовки в 2 строки не ломали сетку */
    min-height: 48px;
    display: flex;
    align-items: center;
}
.about__card-text { font-size: 14px; color: #777; line-height: 1.5; }

/* Акцентный бокс */
.about__accent-box {
    background: #fff1f0;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 30px;
}
.about__accent-box .highlight { color: #e86b62; }
.about__footer { text-align: center; }

/* --- ЛОГИКА АНИМАЦИИ ПРИ СКРОЛЛЕ --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
   
}



.is-active{}


/* Включаем вращение при наведении на КАРТОЧКУ (about__card) */
.about__card:hover .gear-big, .about__card.is-active .gear-big  {
    animation: rotateClockwise 4s linear infinite;
    /* Центр большой шестерни */
    transform-origin: 40.85px 101.97px; 
}

.about__card:hover .gear-small, .about__card.is-active .gear-small  {
    animation: rotateCounterClockwise 3s linear infinite;
    /* Центр маленькой шестерни */
    transform-origin: 78.01px 75px; 
}

/* Описание анимаций */
@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* Для плавного старта и остановки */
.gear-big, .gear-small {
    transition: transform 0.5s ease-out;
}
/* 1. Анимация стрелки (движение вверх-вправо) */
.about__card:hover .model-arrow, .about__card.is-active .model-arrow {
    animation: arrowGrow 2s ease-in-out infinite;
}

@keyframes arrowGrow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5px, -5px); }
}

/* 2. Анимация монет (подпрыгивание по очереди) */
.about__card:hover #money-big,
.about__card:hover #money-midle,
.about__card:hover #money-small,
.about__card.is-active #money-big,
.about__card.is-active #money-midle,
.about__card.is-active #money-small {
    animation: coinBounce 1.5s ease-in-out infinite;
}

/* Настраиваем задержку, чтобы они прыгали по очереди */
.about__card:hover #money-midle, .about__card.is-active #money-midle { animation-delay: 0.2s; }
.about__card:hover #money-big, .about__card.is-active #money-big { animation-delay: 0.4s; }
.about__card:hover #money-small, .about__card.is-active #money-small { animation-delay: 0.6s; }

@keyframes coinBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Плавность возвращения в исходное состояние */
.model-arrow, #money-big, #money-midle, #money-small {
    transition: transform 0.3s ease;
}
/* Вибрация рупора */
.about__card:hover .marketing-horn, .about__card.is-active .marketing-horn {
  animation: hornVibrate 0.2s ease-in-out infinite;
  transform-origin: 30px 100px; /* Точка основания рупора */
}

@keyframes hornVibrate {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}

/* Анимация волн (появление и затухание) */
.about__card:hover .waves-red path,
.about__card:hover .waves-blue path,
.about__card.is-active .waves-red path,
.about__card.is-active .waves-blue path {
  animation: waveRadiate 1.2s ease-in-out infinite;
  opacity: 0;
}

/* Задержка для каждой волны, чтобы они шли по порядку */
.about__card:hover .waves-red path:nth-child(1), .about__card.is-active .waves-red path:nth-child(1) { animation-delay: 0.1s; }
.about__card:hover .waves-red path:nth-child(2), .about__card.is-active .waves-red path:nth-child(2) { animation-delay: 0.3s; }
.about__card:hover .waves-blue path:nth-child(1), .about__card.is-active .waves-blue path:nth-child(1) { animation-delay: 0.5s; }
.about__card:hover .waves-blue path:nth-child(2), .about__card.is-active .waves-blue path:nth-child(2) { animation-delay: 0.7s; }
.about__card:hover .waves-blue path:nth-child(3), .about__card.is-active .waves-blue path:nth-child(3) { animation-delay: 0.9s; }

@keyframes waveRadiate {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* Плавный возврат */
.marketing-horn, .waves-red path, .waves-blue path {
  transition: all 0.3s ease;
}

/* 1. Покачивание преподавателя */
.about__card:hover .teacher, .about__card.is-active .teacher {
  animation: teacherTalk 2.5s ease-in-out infinite;
  transform-origin: 32px 80px;
}

@keyframes teacherTalk {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(3deg); }
}

/* 2. Подпрыгивание учеников (смена фокуса) */
.about__card:hover .students, .about__card.is-active .students {
  animation: studentsListen 3s ease-in-out infinite;
}

@keyframes studentsListen {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* 3. Пульсация звезды знаний */
.about__card:hover .knowledge-star, .about__card.is-active .knowledge-star {
  animation: starPulse 2s ease-in-out infinite;
  transform-origin: 125px 60px;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* Плавные переходы */
.teacher, .students, .knowledge-star {
  transition: all 0.4s ease;
}

/* Эффект для стопки книг */
.about__card:hover .books-stack, .about__card.is-active .books-stack {
  animation: stackNudge 2s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes stackNudge {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2px) rotate(1deg); }
}

/* Эффект для листов (парение) */
.about__card:hover .papers, .about__card.is-active .papers {
  animation: papersFloat 3s ease-in-out infinite;
}

@keyframes papersFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(2px, -3px) rotate(1deg); }
  66% { transform: translate(-1px, -1px) rotate(-1deg); }
}

/* Плавность */
.books-stack, .papers {
  transition: all 0.5s ease;
}
/* Легкое покачивание рук (имитация процесса работы) */
.about__card:hover .hands, .about__card.is-active .hands {
  animation: handsMove 3s ease-in-out infinite;
  transform-origin: left center;
}

@keyframes handsMove {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  50% { transform: translateX(2px) rotate(1deg); }
}

/* Пульсация печати (акцент на результате) */
.about__card:hover .seal, .about__card.is-active .seal {
  animation: sealPulse 2s ease-in-out infinite;
  transform-origin: 131px 95px; /* Центр печати */
}

@keyframes sealPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.1); }
}

/* Плавная подпись (появление) */
.about__card:hover .signature, .about__card.is-active .signature {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: signWrite 2s ease-out forwards;
}

@keyframes signWrite {
  to { stroke-dashoffset: 0; }
}
/* Анимация пунктирных линий (бегущий сигнал) */
.about__card:hover .connection-lines line, .about__card.is-active .connection-lines line {
  stroke-dasharray: 2 4;
  animation: signalFlow 1s linear infinite;
}

@keyframes signalFlow {
  from { stroke-dashoffset: 10; }
  to { stroke-dashoffset: 0; }
}

/* Покачивание трубок */
.about__card:hover .phones, .about__card.is-active .phones {
  animation: phoneRing 0.5s ease-in-out infinite alternate;
}

@keyframes phoneRing {
  from { transform: rotate(-1deg); }
  to { transform: rotate(1deg); }
}

/* Пульсация баблов поддержки */
.about__card:hover .support, .about__card.is-active .support {
  animation: supportPulse 2s ease-in-out infinite;
  transform-origin: center top;
}

@keyframes supportPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Плавность для всех групп */
.phones, .support, .headset, .connection-lines line {
  transition: all 0.4s ease;
}
/* Анимация для таблички "Открыто" */
.about__card:hover .sign, .about__card.is-active .sign {
  /* Устанавливаем точку вращения точно в центр гвоздика */
  /* Координаты cx="46.72" cy="91.58" из вашего SVG */
  transform-origin: 46.72px 91.58px;
  
  animation: signSway 2.5s ease-in-out infinite;
}

@keyframes signSway {
  0% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg); /* Отклонение влево */
  }
  50% {
    transform: rotate(3deg);  /* Мягкий возврат вправо */
  }
  75% {
    transform: rotate(-2deg); /* Затухающее движение */
  }
  100% {
    transform: rotate(0deg);
  }
}

/* Добавляем плавности переходам */
.sign {
  transition: transform 0.5s ease-out;
}
.about::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto; /* Высоту подстроим под твой рисунок */
	aspect-ratio:1920 / 180;
    background-image: url('../img/why-section-wave.svg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    /* z-index нужен, чтобы волна была над фоном следующей секции, 
       но под ее контентом, если это необходимо */
    z-index: 10;
    pointer-events: none; /* Чтобы волна не мешала кликам */
}
.why-section {
    position: relative;
    background-color: #f1e5d9; /* Наш фирменный кремовый */
    padding-top: 50px;
    z-index: 5;
}




.market-bento {
    padding: 100px 0;
    background: #fff;
	position:relative;
	padding-bottom:200px;
	background-color: #f5f0ea;
	overflow: hidden;
}

/* 1. Сбрасываем старые настройки и инлайновые цвета */
.gear-svg path, 
.gear-svg circle {
    fill: rgba(255, 255, 255, 0.05) !important; /* Легкое тело стекла */
    stroke: rgba(255, 255, 255, 0.4) !important; /* Светлый контур */
    stroke-width: 1px !important;
    transition: all 0.3s ease;
}

.gear-svg path{
    /* Используем твой темно-синий цвет, но делаем его очень прозрачным */
    stroke: #21393b !important;
    opacity: 0.1; 
    stroke-width: 1px !important;
    fill: none !important;
    
}

.gear-wrapper {
    opacity: 1; /* Обертка теперь полностью видна, прозрачность внутри SVG */
}
/* 3. Добавляем "блик" на грань через псевдоэлемент обертки */
.gear-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* 4. Обертки (позиционирование) */
.gear-wrapper {
    position: absolute;
    opacity: 0.9; /* Увеличил видимость, раз они прозрачные */
    z-index: 0;
}

.gear-wrapper--left {
    top: 0;
    left: -100px;
}

.gear-wrapper--right {
    bottom: 150px;
    right: -100px;
}

/* 5. Анимация вращения */
.gear-svg--small {
    width: 350px; /* Чуть увеличим, чтобы эффект стекла был заметнее */
    height: 350px;
    animation: gearRotate 50s linear infinite;
}

@keyframes gearRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.gear-path {
    /* Имитация отражения: сверху светлее, снизу темнее */
    fill: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 1px;
}


.bento-cta {
    background: var(--blue) !important; /* Используем наш фирменный синий */
    color: #fff;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: none;
}

.bento-cta .bento-card-title {
    color: #fff;
    font-size: 1.6rem;
}

.bento-cta .bento-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

/* Стилизация кнопки внутри Bento */
.bento-btn {
    background: #fff !important;
    color: var(--blue) !important;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bento-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Фоновый декор для CTA блока */
.bento-cta__decor {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}


.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
}

.bento-item {
    background: #f8fafc;
    border-radius: 24px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
	opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    background: #fff;
    border-color: var(--blue);
}

/* Специфические размеры блоков */
.stats-main { grid-column: span 2; }
.full-width { grid-column: span 3; padding: 20px 30px; }

.card-dark { background: #0f172a; color: #fff; }
.card-dark .bento-label { color: rgba(255,255,255,0.5); }

.bento-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #64748b;
    margin-bottom: 15px;
    font-weight: 700;
}

.bento-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Настройка полосок */
.stat-fill {
    height: 100%;
    border-radius: 4px;
    width: 0; /* Изначально ноль */
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Добавляем небольшую упругость (bounce) */
}

/* Чтобы анимация полосок запускалась только когда карточка видна */
.stats-main.visible .stat-fill.demand {
    width: 92% !important;
}
.stats-main.visible .stat-fill.supply {
    width: 35% !important;
}

.bento-card-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 10px; }
.bento-text { font-size: 0.95rem; line-height: 1.5; color: inherit; opacity: 0.8; }

/* Стили графиков внутри Bento */
.stats-comparison { margin: 20px 0; }
.stat-row { margin-bottom: 15px; }
.stat-info { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 600; }
.stat-bar { height: 8px; background: rgba(0,0,0,0.05); border-radius: 4px; overflow: hidden; }
.stat-fill {
    height: 100%;
    border-radius: 4px;
    width: 0; /* Всегда начинаем с нуля */
    display: block; /* Гарантируем отображение */
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1); /* Плавный выезд */
}
.stat-value {
    display: inline-flex;
    align-items: center;
    min-width: 60px; /* Чтобы текст не прыгал вправо-влево при смене цифр */
    justify-content: flex-end;
    font-variant-numeric: tabular-nums; /* Включает моноширинные цифры, если шрифт поддерживает */
}
.stat-fill.demand { background: var(--blue); }
.stat-fill.supply { background: #cbd5e1; }

.bento-mini-graph { display: flex; align-items: flex-end; gap: 4px; height: 40px; margin-top: 15px; }
.bento-mini-graph span { flex: 1; background: var(--blue); border-radius: 2px; animation: barGrow 2s infinite alternate; }
.bento-mini-graph span:nth-child(2) { height: 60%; animation-delay: 0.2s; }
.bento-mini-graph span:nth-child(3) { height: 80%; animation-delay: 0.4s; }
.bento-mini-graph span:nth-child(4) { height: 40%; animation-delay: 0.1s; }
.bento-mini-graph span:nth-child(5) { height: 90%; animation-delay: 0.5s; }

.factors-line { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-around; }
.factor-tag { background: #fff; padding: 8px 16px; border-radius: 50px; font-weight: 700; font-size: 0.85rem; border: 1px solid rgba(0,0,0,0.05); }

@keyframes barGrow { from { opacity: 0.5; } to { opacity: 1; } }

/* Специфический ховер для темной карточки */
.card-dark:hover {
    background: #1e293b; /* Чуть более светлый оттенок синего вместо белого */
    border-color: var(--blue);
    transform: translateY(-5px);
    /* Текст остается белым, поэтому всё будет видно */
}

/* Если же ты ХОЧЕШЬ, чтобы она тоже становилась белой, как остальные, 
тогда нужно принудительно перекрашивать текст в черный только для неё: */

.card-dark:hover {
    background: #fff;
    color: #0f172a; /* Возвращаем темный цвет текста */
}

.card-dark:hover .bento-label {
    color: #64748b; /* Возвращаем серый цвет лейбла */
}

.card-dark:hover .bento-mini-graph span {
    background: var(--blue); /* Убеждаемся, что график виден */
}



.market-bento::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 1920 / 180;
    background-image: url(../img/why-section-wave-bottom.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom center;
    z-index: 10;
    pointer-events: none;
}

.finance {
    background-color: #cfdcef;
    padding: 80px 0 40px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Стилизация карточки калькулятора как на макете */
.finance-card {
    background: #ffffff;
    border-radius: 40px;
    padding: 60px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.finance-card__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

/* Стилизация Range как на картинке */
.range-wrapper {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
}

.custom-range {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #eef2f7;
    border-radius: 10px;
    outline: none;
}

/* Красная полоса прогресса (делаем через градиент в JS или CSS) */
.custom-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 10px;
}

/* Стилизация ползунка (логотип) */
.range-thumb-custom {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(246, 122, 113, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
	transition: none !important; /* Убираем задержку */
    pointer-events: none;
}

.range-thumb-custom img { width: 28px; }

/* Результат и кнопка */
.result-value {
    font-size: 56px;
    font-weight: 800;
    color: var(--primary);
    margin: 15px 0 25px;
}

.btn-download {
    background: var(--primary);
    color: #fff;
    padding: 18px 35px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(246, 122, 113, 0.3);
    display: inline-block;
}

/* Волна-разделитель */
.finance__divider {
    text-align: center;
    margin: 40px 0;
	mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.finance__divider img { width: 100%;opacity: 0.6; }

/* Сетка состава франшизы */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.pkg-card {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.pkg-card__icon img { width: 70px; }
.pkg-card__text { font-weight: 700; color: #21393b; line-height: 1.3; }

/* Стеклянный декор */
.decor-el { position: absolute; pointer-events: none; z-index: 1; }
.glass-el--bubble { top: 30%; left: 5%; width: 180px; opacity: 0.6; mix-blend-mode: multiply}
.el--circle { top: 20%; left: 4%; width: 130px; opacity: 0.6;transform:rotate(-15deg)}
.el--pattern-decor { top: 55%; left: 65%; width: 300px; opacity: 0.2; mix-blend-mode: multiply}
.glass-el--gear {
    top: 10%;
    right: 5%;
    width: 250px;
    opacity: 0.7;
    mix-blend-mode: multiply;
    z-index: 6;
}

.glass-gear-animated {
    /* Чтобы mix-blend-mode работал корректно вместе с трансформациями */
    mix-blend-mode: multiply; 
    
    /* Сама анимация: название, длительность, бесконечность, мягкий старт/стоп */
    animation: gearFloat 6s ease-in-out infinite;
    
    /* Убедись, что точка трансформации — центр */
    transform-origin: center center;
    will-change: transform; /* Подсказка браузеру для плавной отрисовки */
}

@keyframes gearFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    33% {
        /* Сдвиг вверх на 12 пикселей и наклон в одну сторону */
        transform: translateY(-12px) rotate(1.5deg);
    }
    66% {
        /* Чуть ниже начальной точки и наклон в другую сторону */
        transform: translateY(8px) rotate(-1deg);
    }
    100% {
        /* Возврат в исходную точку для бесшовности */
        transform: translateY(0) rotate(0deg);
    }
}

.finance__main-title{
	text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
}
.finance-card__left{
	width:60%;
}

/* Скрываем для Chrome, Safari, Edge */
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px; /* Размер должен совпадать с кастомным */
    height: 50px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    border: 0;
    cursor: pointer;
    position: relative;
    z-index: 10;
	margin-top:-20px;
}

/* Скрываем для Firefox */
.custom-range::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    border: 0;
    cursor: pointer;
	margin-top:-20px;
}
.calc-label {
    display: flex;
    justify-content: space-between; /* Расталкивает текст и цифры по краям */
    align-items: flex-end;
    margin-bottom: 15px;
    font-family: 'Nunito', sans-serif;
}

/* Стили для левой части (название параметра) */
.calc-label span:first-child {
    font-weight: 700;
    font-size: 18px;
}

/* Стили для правой части (динамическое значение) */
.calc-label__range {
    font-weight: 800;
    font-size: 18px;
    color: var(--primary); /* Наш акцентный коралловый цвет */
    transition: all 0.2s ease;
}
.finance-card__title,.package-section__title{
	font-size: 32px;
    margin-bottom: 25px;
    font-weight: 800;
}

.kids-result-wrapper {
    display: flex;
    align-items: baseline;
    gap: 5px;
    font-weight: 800;
	transition: filter 0.1s ease, opacity 0.1s ease;
}

/* Фиксируем ширину блока со словом */
.calc-label__word,.kids-num {
    display: inline-block;
    width: 73px; /* Подобрано под самое длинное слово "ребенка" */
    text-align: right;
    transition: opacity 0.2s ease; /* Плавность появления */
	font-size: 18px;
	color: var(--primary);
	font-weight: 800;
}

/* Класс для момента смены текста (добавляем через JS) */
.fade-out {
    opacity: 0;
}
.is-moving {
    filter: blur(1px);
    opacity: 0.8;
}
.finance-action-bar, .steps-action-bar {
    position: sticky;
    /* Прижимаем к самому низу динамического вьюпорта */
    bottom: -1px; 
    z-index: 100;
    background: #a5b9d7;
    padding: 20px 0;
    width: 100%;
    max-width: 1120px;
    border-radius: 40px 40px 0 0;
    transition: border-radius 0.4s ease, width 0.4s ease, margin 0.4s ease;
    margin: 60px auto 0 auto;

    /* Включаем аппаратное ускорение, чтобы не было задержки при движении */
    will-change: bottom;
    transform: translateZ(0);
}
.steps-action-bar {
	/* Эффект матового стекла */
    background: rgba(255, 255, 255, 0.4); /* Полупрозрачный белый */
    backdrop-filter: blur(20px) saturate(180%); /* Размытие фона под панелью */
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Граница как у стеклянного шара */
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Тень для объема, но без "грязи" */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    
    padding: 20px 0;
    transition: all 0.3s ease;
}
.finance-action-bar.is-landed, .steps-action-bar.is-landed {
    border-radius: 40px;
    /* Когда приземлился, он больше не должен липнуть к экрану */
    position: relative; 
    bottom: auto;
}
.steps-action-bar .btn-action-primary {
    background: var(--primary); 
    box-shadow: 0 4px 15px rgba(246, 165, 162, 0.4);
}
.steps-action-bar::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}
.finance-action-bar.is-landed,.steps-action-bar.is-landed {
    border-radius: 40px; 
    width: calc(100% - 60px);
    margin-left: auto;
    margin-right: auto;
    transform: translateY(-20px); 
}

.action-bar__content {
    display: flex;
    align-items: center;
    justify-content: center; /* Кнопка центрируется по всей ширине родителя */
    position: relative;      /* Контекст для абсолютных иконок */
    min-height: 50px;        /* Высота, чтобы контент не схлопнулся */
}

.action-bar__contacts {
    position: absolute;      /* Вырываем иконки из потока */
    left: 0;                 /* Прижимаем строго к левому краю контейнера */
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 2;              /* Чтобы иконки были поверх, если вдруг наложатся */
}


.contact-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    transform: translateY(-3px);
}

.contact-link img {
    width: 100%;
    height: auto;
}

.action-bar__button-wrap {
    /* Теперь этот блок не знает о существовании иконок */
    display: flex;
    justify-content: center;
    width: auto;
    z-index: 1;
}


.btn-action-primary {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 15px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-action-primary:hover {
    background: #fff;
    color: #a5b9d7;
}



/* Начальное состояние: элемент прозрачный и немного смещен вниз */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
  transition-delay: 0.1s;
}

/* Состояние после появления */
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Можно добавить задержку для карточек в сетке, чтобы они появлялись по очереди */
.pkg-card:nth-child(2) { transition-delay: 0.2s; }
.pkg-card:nth-child(3) { transition-delay: 0.3s; }
.pkg-card:nth-child(4) { transition-delay: 0.4s; }
.pkg-card:nth-child(5) { transition-delay: 0.5s; }
.pkg-card:nth-child(6) { transition-delay: 0.6s; }

.steps-section {
    padding-top:100px;
	padding-bottom:100px;
    font-family: var(--font-main);
    position: relative;
    background: #000;
	overflow: clip;
	contain: paint;
}
.steps-section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px; /* Высота градиента перехода */
    z-index: 1; /* Поверх фона с пятнами */
    pointer-events: none;
    
    /* Плавный переход от прозрачного фона к цвету следующей секции */
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #f8fbff 100%
    );
}
/* Создаем слой с пятнами */
.steps-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    
    /* Фиксация фона */
    background-attachment: fixed;
    background-color: #f3e2d8; 

    /* Слоеная структура фона: 
       1. Слой шума (через opacity в SVG)
       2. Слой радиальных градиентов */
    background-image: 
        /* Шум: мы задаем прозрачность прямо внутри SVG (opacity='0.07') */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E"),
        
        /* Плотные пятна градиента */
        radial-gradient(at 10% 10%, hsla(164, 75%, 70%, 1) 0%, transparent 45%), 
        radial-gradient(at 90% 15%, hsla(205, 100%, 80%, 1) 0%, transparent 45%), 
        radial-gradient(at 85% 85%, hsla(164, 75%, 70%, 1) 0%, transparent 45%), 
        radial-gradient(at 15% 90%, hsla(205, 100%, 80%, 1) 0%, transparent 45%),
        radial-gradient(at 50% 50%, hsla(22, 70%, 85%, 1) 0%, transparent 65%);

    background-size: cover;
    
    /* Усиливаем контраст всего слоя целиком */
    filter: contrast(120%) saturate(130%);
}

/* Обязательно поднимаем контент выше фона */
.steps-section .container {
    position: relative;
    z-index: 1;
}
.section-title {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 100px;
    letter-spacing: -0.5px;
}

.timeline-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Центральная нить */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(165, 185, 215, 0) 0%, 
        rgba(165, 185, 215, 0.5) 15%, 
        rgba(165, 185, 215, 0.5) 85%, 
        rgba(165, 185, 215, 0) 100%);
    transform: translateX(-50%);
}

.step-row {
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: 150px; Тот самый "воздух" */
    position: relative;
}

.step-content {
    width: 45%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 227, 245, 0.3);
    padding: 40px;
    border-radius: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.step-content:hover {
    transform: translateY(-10px);
    border-color: var(--secondary);
}

.step-image-wrapper {
    margin-bottom: 25px;
    border-radius: 20px;
    overflow: hidden;
}

.step-img {
    width: 100%;
    height: auto;
    display: block;
	max-width: 300px;
	margin:0 auto;
}

.step-duration {
    display: inline-block;
    background: var(--secondary);
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text);
}

.step-desc {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

/* Узлы на линии */
.step-node {
    width: 30px;
    height: 30px;
    background: var(--blue);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 15px var(--secondary);
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(3); opacity: 0; }
}

/* Направления */
.left .step-content { margin-right: auto; text-align: right; }
.right .step-content { margin-left: auto; text-align: left; }

/* Декор */
.decor-bubble {
    position: absolute;
    background: radial-gradient(circle, rgba(209, 227, 245, 0.4) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.bubble-1 { width: 400px; height: 400px; top: 10%; left: -10%; }
.bubble-2 { width: 300px; height: 300px; bottom: 5%; right: -5%; }

/* Начальное состояние для левых карточек (смещены вправо к центру) */
.reveal-item-left {
    opacity: 0;
    transform: translateX(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Начальное состояние для правых карточек (смещены влево к центру) */
.reveal-item-right {
    opacity: 0;
    transform: translateX(-50px) scale(0.95);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Состояние при появлении в зоне видимости */
.reveal-item-left.is-visible,
.reveal-item-right.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Специфика для параллельных шагов 5 и 6 */
.parallel-wrapper {
    flex-direction: column;
    gap: 80px; /* Уменьшенный отступ для визуальной связи параллельных процессов */
}

/* Фишка: задержка для параллельного шага, чтобы они появлялись "внахлест" */
.parallel-item:nth-child(2) .reveal-item-right {
    transition-delay: 0.3s;
}

.finance::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -40px;
    width: 100%;
    height: 60px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    background: linear-gradient(to bottom, rgba(207, 220, 239, 0.7), rgba(207, 220, 239, 0.3), rgba(207, 220, 239, 0));
    pointer-events: none;
    z-index: 1;
}
/* Контейнер для декора внутри шага */
.step-row {
    perspective: 1000px; /* Для легкого объема */
}

/* Общий стиль для декоративных элементов в пустотах */
.step-row::after {
    content: attr(data-step); /* Можно выводить номер шага */
    position: absolute;
    font-size: 200px;
    font-weight: 900;
    color: var(--blue);
    opacity: 0.05; /* Едва заметно */
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

/* Позиционируем декор в пустотах */
.step-row.left::after {
    right: 10%; /* В пустоте справа */
    left: auto;
}

.step-row.right::after {
    left: 10%; /* В пустоте слева */
    right: auto;
}

/* Контейнер для пузыря */
.decor-bubble.bubble-1 {
    position: absolute; /* Относительно секции */
    top: 20%;
    left: 5%; /* Размещаем в левой части, где обычно пусто у "правых" карточек */
    width: 350px; /* Размер можно регулировать */
    height:0;
    z-index: 1; /* Между фоном и контентом */
    pointer-events: none; /* Чтобы не мешал кликам */
    opacity: 0.7; /* Легкая прозрачность для лучшего слияния с mesh-градиентом */
    
    /* Эффект фиксации при скролле */
    position: sticky;
    top: 150px;
}

.decor-bubble.bubble-1 img {
    width: 100%;
    height: auto;
    /* Сама анимация покачивания */
    animation: floatingBubble 8s infinite ease-in-out;
    filter: drop-shadow(0 20px 50px rgba(165, 185, 215, 0.3)); /* Мягкое свечение вместо тени */
}

/* Красивое многомерное покачивание */
@keyframes floatingBubble {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    33% {
        transform: translate(15px, -25px) rotate(3deg) scale(1.02);
    }
    66% {
        transform: translate(-10px, -15px) rotate(-2deg) scale(0.98);
    }
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

.results-deep-section {
    padding: 150px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
	mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
	background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 40px 40px;
}

.results-deep-section::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(45, 91, 255, 0.4);
    animation: dot-pulse 3s infinite;
}

/* Мягкое свечение фона, связывающее секции */
.results-bg-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, hsla(164, 61%, 81%, 0.15) 0%, transparent 70%);
    filter: blur(80px);
}

.results-stack {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    position: relative;
}

/* Эффект глубокого стекла для карточек */
.case-card {
    position: absolute;
    width: 420px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 45px;
    padding: 40px;
    box-shadow: 
        0 4px 24px -1px rgba(0, 0, 0, 0.05),
        0 40px 80px -20px rgba(165, 185, 215, 0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 10;
}

/* Смещение карточек для создания объема */
.card-top { transform: translate(-150px, -50px) rotate(-2deg); }
.card-middle { transform: translate(150px, 50px) rotate(2deg); z-index: 9; }

.case-card:hover {
    z-index: 20;
    transform: translate(0, -20px) scale(1.05) rotate(0deg);
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--secondary);
    box-shadow: 0 50px 100px rgba(165, 185, 215, 0.3);
}

/* Внутреннее пятно света в карточке */
.card-blur-spot {
    position: absolute;
    top: -20%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.case-card:hover .card-blur-spot {
    opacity: 0.15;
}

/* Оживляем наш шар */
.floating-sphere {
    position: absolute;
    right: 5%;
    top: 10%;
    width: 500px;
    z-index: 1;
    filter: contrast(1.1) brightness(1.05);
    animation: slowRotate 20s linear infinite;
}

@keyframes slowRotate {
    from { transform: rotate(0deg) translateY(0px); }
    50% { transform: rotate(5deg) translateY(-30px); }
    to { transform: rotate(0deg) translateY(0px); }
}

.gradient-text {
    background: linear-gradient(90deg, var(--blue), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.gradient-text.finance-title {
	background: linear-gradient(90deg, var(--blue), var(--primary));
	-webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.partner-avatar {
    position: relative;
    width: 64px;
    height: 64px;
}

.partner-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partner-title h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #1a1a1a;
    font-weight: 800;
}

.partner-title p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: #666;
}

/* Блок со статистикой */
.card-stats {
    display: flex;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    border: 1px solid rgba(255,255,255,0.8);
}

.stat-main, .stat-secondary {
    display: flex;
    flex-direction: column;
}

.card-stats .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 5px;
}

.card-stats .value {
    font-size: 1.25rem;
    font-weight: 900;
    color: #2D5BFF; /* Твой синий акцент */
}

.stat-secondary .value {
    color: #F6A5A2; /* Твой персиковый акцент */
}

.case-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
    font-style: italic;
    margin-bottom: 25px;
}

/* Кнопка в стиле Glass */
.btn-glass {
    width: 100%;
    padding: 15px;
    border-radius: 18px;
    border: 1px solid rgba(45, 91, 255, 0.2);
    background: rgba(45, 91, 255, 0.05);
    color: #2D5BFF;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-glass:hover {
    background: #2D5BFF;
    color: #fff;
    box-shadow: 0 10px 20px rgba(45, 91, 255, 0.2);
}

/* --- Заблюренный шар --- */
.floating-sphere {
    position: absolute;
    right: -5%;
    top: 10%;
    width: 450px;
    z-index: 1;
    opacity: 0.4; /* Уменьшаем навязчивость */
    filter: blur(15px) saturate(1.2); /* Сильный блюр */
    pointer-events: none;
}

/* Статичные зоны-сенсоры */
.case-item-wrapper {
    position: absolute;
    width: 420px;
    height: 500px; /* Высота карточки */
    z-index: 10;
    transition: z-index 0s; /* Мгновенное переключение слоя */
}

/* Распределяем обертки в пространстве вместо самих карточек */
.wrap-top { transform: translate(-180px, -40px); }
.wrap-middle { transform: translate(0, 0); z-index: 9; }
.wrap-bottom { transform: translate(180px, 40px); z-index: 8; }

/* Сами карточки внутри оберток */
.case-card {
    position: relative;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(150%);
    border-radius: 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Эффект пружины */
    pointer-events: none; /* Чтобы карточка не мешала обертке ловить мышь */
}

/* Дефолтные повороты карточек внутри оберток */
.wrap-top .case-card { transform: rotate(-3deg); }
.wrap-middle .case-card { transform: rotate(0deg); }
.wrap-bottom .case-card { transform: rotate(3deg); }

/* ЛОГИКА ВЗАИМОДЕЙСТВИЯ */

/* 1. Когда наводим на обертку — поднимаем её выше всех */
.case-item-wrapper:hover {
    z-index: 100;
}

/* 2. Анимируем карточку внутри активной обертки */
.case-item-wrapper:hover .case-card {
    transform: scale(1.08) translateY(-20px) rotate(0deg); /* Встает ровно и выше */
    background: rgba(255, 255, 255, 0.95);
    border-color: #2D5BFF;
    box-shadow: 0 40px 80px rgba(45, 91, 255, 0.2);
    pointer-events: all; /* Включаем клики по кнопкам внутри */
}

/* 3. Опционально: приглушаем остальные карточки при наведении на любую */
.results-stack:has(.case-item-wrapper:hover) .case-item-wrapper:not(:hover) .case-card {
    opacity: 0.5;
    filter: blur(2px) grayscale(0.5);
    transform: scale(0.95);
}
.invest-section {
    background: #0a0f1d;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    color: #fff;
	clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    margin: -50px 0; /* Компенсируем дырки сверху и снизу */
    padding: 100px 0;
	z-index:2;
}


/* Верхний переход */
.invest-section::before {
    content: '';
    position: absolute;
    top: -100px; /* Высота перехода */
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, #ffffff, rgba(10, 15, 29, 0.3) 50%, #0a0f1d);
    pointer-events: none;
}

/* Нижний переход */
.invest-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, #ffffff, rgba(10, 15, 29, 0.3) 50%, #0a0f1d);
    pointer-events: none;
}
/* Световые пятна на фоне (как в твоем Mesh, но темнее) */
.invest-bg-spots .spot {
    position: absolute;
    filter: blur(100px);
    opacity: 0.2;
}
.spot-1 { width: 400px; height: 400px; background: #2d5bff; top: -100px; right: -100px; }
.spot-2 { width: 300px; height: 300px; background: #f6a5a2; bottom: -50px; left: -50px; }

.section-title.light { color: #fff; text-align: center; margin-bottom: 60px; }
.section-title.light span { color: #2d5bff; }

/* Основная карточка */
.invest-main-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    display: flex;
    align-items: stretch;
    padding: 60px;
    position: relative;
    z-index: 2;
}

.invest-col { flex: 1; }

.invest-tag {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(45, 91, 255, 0.2);
    color: #2d5bff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
}

.invest-price {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 30px;
    background: linear-gradient(to bottom, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.invest-list {
    list-style: none;
    padding: 0;
}

.invest-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    font-size: 16px;
    color: #ccc;
}

.invest-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: #2d5bff;
}

/* Разделитель Плюс */
.invest-plus {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    padding: 0 40px;
}

/* Итоговая панель */
.invest-total {
    margin-top: 40px;
    background: linear-gradient(90deg, #2d5bff, #f6a5a2);
    padding: 40px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(45, 91, 255, 0.3);
}

.total-label { font-size: 20px; font-weight: 700; }
.total-value { font-size: 32px; font-weight: 900; }


/* Состояния до анимации */
.invest-main-card, .invest-total, .section-title.light {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Класс, который добавит JS при скролле */
.invest-section.animated .invest-main-card,
.invest-section.animated .invest-total,
.invest-section.animated .section-title.light {
    opacity: 1;
    transform: translateY(0);
}

/* Задержка для плашки "Итого", чтобы она вылетала чуть позже */
.invest-section.animated .invest-total {
    transition-delay: 0.4s;
}

/* Плавное появление списка внутри */
.invest-list li {
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.5s ease;
}

.invest-section.animated .invest-list li {
    opacity: 1;
    transform: translateX(0);
}

/* Рассчитываем появление строк списка по очереди */
.invest-section.animated .invest-list li:nth-child(1) { transition-delay: 0.6s; }
.invest-section.animated .invest-list li:nth-child(2) { transition-delay: 0.7s; }
.invest-section.animated .invest-list li:nth-child(3) { transition-delay: 0.8s; }
.invest-section.animated .invest-list li:nth-child(4) { transition-delay: 0.9s; }
.invest-section.animated .invest-list li:nth-child(5) { transition-delay: 1.0s; }
.invest-section.animated .invest-list li:nth-child(6) { transition-delay: 1.1s; }

/* Final CTA Styles */
.final-cta { padding: 100px 0 150px; }

.cta-card {
    background: linear-gradient(135deg, #0a0f1d 0%, #1a233a 100%);
    border-radius: 50px;
    padding: 80px 60px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
}

.cta-title { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }

.cta-subtitle { font-size: 1.2rem; opacity: 0.8; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Форма в одну строку на десктопе */
.cta-form {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin: 0 auto;
}

.cta-form input {
    flex: 1;
    padding: 20px 30px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.05);
    color: #fff;
    outline: none;
}

.btn-primary-pulse {
    padding: 20px 40px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--blue), var(--secondary));
    color: #fff;
    border: none;
    font-weight: 800;
    cursor: pointer;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(45, 91, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(45, 91, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(45, 91, 255, 0); }
}

@media (max-width: 768px) {
    .cta-card { padding: 50px 30px; }
    .cta-form { flex-direction: column; }
    .cta-title { font-size: 2rem; }
}




.chat-container {
    max-width: 700px;
    margin: 50px auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-header {
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.chat-user-info { display: flex; align-items: center; gap: 15px; }
.user-avatar { width: 40px; height: 40px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; }
.user-name { block; font-weight: 800; font-size: 0.95rem; color: #1a1a1a; }
.user-status { display: block; font-size: 0.75rem; color: #2ecc71; }

.chat-body { padding: 30px; display: flex; flex-direction: column; gap: 20px; }

.chat-msg { display: flex; width: 100%; transition: opacity 0.4s ease, transform 0.4s ease;}
.chat-msg.question { justify-content: flex-start; }
.chat-msg.answer { justify-content: flex-end; }

.msg-bubble {
    max-width: 80%;
    padding: 15px 20px;
    position: relative;
    font-size: 0.95rem;
    line-height: 1.4;
}

.question .msg-bubble {
    background: #f0f2f5;
    color: #1a1a1a;
    border-radius: 20px 20px 20px 5px;
}

.answer .msg-bubble {
    background: linear-gradient(135deg, var(--blue) 0%, #4facfe 100%);
    color: #fff;
    border-radius: 20px 20px 5px 20px;
    box-shadow: 0 10px 20px rgba(45, 91, 255, 0.15);
}

.msg-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 5px;
    opacity: 0.6;
    text-align: right;
}

.check-marks { color: #fff; margin-left: 3px; font-weight: bold; }




/* Анимация появления сообщения */
@keyframes msgAppear {
    0% { opacity: 0; transform: translateY(20px) scale(0.9); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Базовое состояние сообщений до анимации */
.chat-msg {
    display: none; /* Скрываем полностью, чтобы не занимали место */
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Состояние, когда JS добавил класс visible */
.chat-msg.visible {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

/* Контейнер чата должен иметь фиксированную или минимальную высоту, 
чтобы не прыгать при появлении сообщений */
.chat-body {
    min-height: 400px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 25px;
    overflow: hidden;
    transition: height 0.4s ease-out; 
}

/* Индикатор печати тоже должен быть скрыт по умолчанию */
#chat-typing {
    display: none;
    align-items: center;
    z-index: 2;
}

/* Индикатор печати (точки) */
.msg-bubble.typing {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    background: rgba(45, 91, 255, 0.1);
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--blue);
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}
#chat-typing {
    transition: opacity 0.3s ease; /* Плавное исчезновение самих точек */
}

.footer {
    background: #070a13; /* Еще темнее, чем секция Инвестиций */
    padding: 80px 0 40px;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
	overflow: hidden;
	position:relative;
}

/* Верхнее левое свечение (основной акцент) */
.footer::before {
    content: '';
    position: absolute;
    top: -150px;
    left: -100px;
    width: 700px;
    height: 700px;
    /* Увеличили прозрачность до 0.25 и добавили переход в бирюзу */
    background: radial-gradient(circle, rgba(45, 91, 255, 0.25) 0%, rgba(79, 172, 254, 0.1) 40%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    filter: blur(120px); /* Максимальное размытие для мягкости */
    pointer-events: none;
    z-index: 1;
}

/* Нижнее правое свечение (поддержка) */
.footer::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -150px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.15) 0%, rgba(45, 91, 255, 0.05) 50%, rgba(0, 0, 0, 0) 80%);
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 1;
}

/* Поднимаем контент футера выше пятен, чтобы текст был читабельным */
.footer .container {
    position: relative;
    z-index: 2;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
}

.footer-logo {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 900;
    color: #fff;
}
.footer-logo span span { color: #2d5bff; }

.footer-desc {
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.social-link img{
	border-radius: 12px;
	width: 40px;
    height: 40px;
}
.social-link:hover {
    background: var(--blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(45, 91, 255, 0.3);
}

.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: 0.3s;
}
.footer-col ul li a:hover { color: #fff; padding-left: 5px; }

.footer-phone {
    display: block;
    font-size: 20px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 10px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-left: 20px;
    transition: 0.3s;
}
.footer-legal a:hover { color: #fff; }



/* Десктопная подсветка */
.nav__link {
    position: relative;
    transition: color 0.3s ease;
}

.nav__link.active {
    color: var(--blue) !important; /* Или #fff, смотря какой фон */
}

.nav__link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--secondary));
    transform-origin: left;
    animation: navLineAppear 0.3s ease-out forwards;
}

/* Мобильная подсветка */
.mobile-menu__list a.active {
    color: var(--blue);
    padding-left: 10px; /* Небольшой сдвиг для динамики */
    border-left: 2px solid var(--blue);
}

@keyframes navLineAppear {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--blue); /* Твой основной цвет */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

/* Эффект при появлении */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 25px rgba(45, 91, 255, 0.4);
    transform: scale(1.1);
}


.faq-chat-section {
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 40px 40px; /* Расстояние между точками */
    position: relative;
	padding-top:100px;
	padding-bottom:100px;
	mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}
.final-cta{
	background-image: radial-gradient(#d1d5db 1px, transparent 1px);
	mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    background-size: 40px 40px; /* Расстояние между точками */
    position: relative;
}
/* Эффект пульсации для нескольких точек */
.faq-chat-section::before,.final-cta::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(45, 91, 255, 0.4);
    animation: dot-pulse 3s infinite;
}

@keyframes dot-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 91, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(45, 91, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(45, 91, 255, 0); }
}


.logo__footer{
	height: 55px;
    width: auto;
    display: block;
}


.final-cta .cta-visual-glass {
    position: absolute;
    left: 2%; /* Немного отодвинем от самого края, чтобы свет не обрезался */
    top: 30%;
    transform: translateY(-50%);
    z-index: 1;
}

.final-cta .cta-visual-glass img {
    width: 200px; /* Чуть увеличим масштаб для солидности */
    height: auto;
    display: block;
    
    /* Смелое многослойное свечение */
    filter: 
        /* 1. Контурная резкая подсветка (белая) */
        drop-shadow(0 0 10px rgba(255, 255, 255, 0.4))
        /* 2. Насыщенный синий ореол (в цвет бренда) */
        drop-shadow(0 0 30px rgba(45, 91, 255, 0.5))
        /* 3. Розовый отблеск (отсылаем к малышу) */
        drop-shadow(0 0 50px rgba(246, 165, 162, 0.3));

    /* Выкручиваем сочность самого стекла */
    brightness: 1.2;
    contrast: 1.1;

    /* Динамика: эффект "перелива" света */
    animation: bold-glow 3s infinite alternate ease-in-out;
	mix-blend-mode: screen;
}

@keyframes bold-glow {
    0% {
        filter: 
            drop-shadow(0 0 10px rgba(255, 255, 255, 0.3))
            drop-shadow(0 0 30px rgba(45, 91, 255, 0.4))
            drop-shadow(0 0 50px rgba(246, 165, 162, 0.2));
        transform: scale(1);
    }
    100% {
        filter: 
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 45px rgba(45, 91, 255, 0.7))
            drop-shadow(0 0 70px rgba(246, 165, 162, 0.4));
        transform: scale(1.03); /* Легкая пульсация размера вместе со светом */
    }
}

.footer-email{
	color:#2348b8;
}
.cta-note{
	margin-top: 15px;
    font-size: 14px;
}


/* --- Секция "После открытия" --- */
.support-after {
    padding: 100px 0;
    background: #f8fbff;
    overflow: clip;
    font-family: var(--font-main);
	position: relative;
	z-index: 1;
}
.support-after::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px; /* Высота перехода, можно увеличить до 200px для мягкости */
    z-index: 10;   /* Выше оранжевой линии и стрелки, чтобы они тоже плавно исчезали */
    pointer-events: none;
    
    background: linear-gradient(
        to bottom,
        transparent 0%,
        #ffffff 100%
    );
	
}
.support-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Весь этот блок уходит под контент */
}
.bg-lines-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Линии теперь здесь */
    background-image: repeating-linear-gradient(
        45deg, 
        transparent, 
        transparent 40px, 
        rgba(111, 143, 191, 0.05) 40px, 
        rgba(111, 143, 191, 0.02) 42px
    );
}
.support-footer {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 15; /* Выше, чем ::after (у которого z-index: 10) */
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(246, 122, 113, 0.3);
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(246, 122, 113, 0.4);
    color: #fff;
}

/* Наш переход в белый (повтор для контекста) */
.support-after::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px; 
    z-index: 10; 
    pointer-events: none;
    background: linear-gradient(to bottom, transparent 0%, #ffffff 100%);
}
.support-grid-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Левая часть: Таймлайн */
.timeline-track {
    position: relative;
    padding-left: 60px;
    z-index: 1; /* Создаем контекст наложения для всей шкалы */
}

/* Серая фоновая линия */
.timeline-track::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 10px;
    bottom: 0;
    width: 2px;
    background: #e2e8f0;
}

/* Оранжевая прогресс-линия */
.timeline-progress-fill {
    position: absolute;
    left: 15px;
    top: 10px;
    width: 2px;
    background: var(--primary);
    height: 0;
    z-index: 2; /* Линия выше серой подложки, но ниже точек */
    transition: height 0.1s linear;
}

/* Карточки этапов */
.step-card {
    position: relative;
    margin-bottom: 70px;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 3; /* Карточка и всё что в ней теперь выше линии */
}

.step-card:last-child {
    margin-bottom: 0;
}

.step-card.active {
    opacity: 1;
    transform: translateX(0);
}

/* Точки на таймлайне */
.step-pointer {
	background: #f8fbff;
    position: absolute;
    left: -50px;
    top: 5px;
    width: 32px;
    height: 32px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Максимальный приоритет внутри карточки */
    transition: var(--transition);
}
.step-card.active .step-pointer{
	left: -60px;
}
/* CSS Галочка внутри точки */
.check-mark {
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
    opacity: 0;
    margin-top: -2px;
    transition: opacity 0.3s ease;
}

/* Состояние активной точки */
.step-card.active .step-pointer {
    background: var(--primary);
    border-color: var(--primary);
    animation: dot-pulse 2s infinite;
}
.step-info{
	opacity: 0.4;
}
.step-card.active .check-mark, .step-card.active .step-info  {
    opacity: 1;
}

@keyframes dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(246, 122, 113, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(246, 122, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(246, 122, 113, 0); }
}

/* Текстовый контент этапов */
.step-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 5px;
}

.step-card.active 
.step-info h4 {
    margin: 0 0 8px 0;
    font-size: 1.25rem;
    color: var(--text);
}

.step-info p {
    margin: 0;
    color: var(--blue);
    line-height: 1.5;
}

/* Выделение Роялти */
.royalty-badge {
    display: inline-block;
    padding: 2px 12px;
    background: rgba(246, 122, 113, 0.1);
    border: 1px solid rgba(246, 122, 113, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 5px;
}

/* Стрелка внизу линии */
.timeline-arrow {
    position: absolute;
    left: 6px; /* Выравниваем по центру линии (15px линия - 10px половина иконки + зазор) */
    bottom: -30px;
    color: #cbd5e1; /* Серый по умолчанию */
    transition: color 0.4s ease, transform 0.4s ease;
    z-index: 2;
}
.timeline-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
    animation: arrow-down 1.5s infinite;
}
.timeline-arrow.active {
    color: var(--primary); /* Становится оранжевой */
    transform: scale(1.2); /* Чуть увеличим для акцента */
}
@keyframes arrow-down {
    0%, 100% { transform: translateY(0); opacity: 0.5; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Правая часть: Фиксированный блок */
.sticky-side {
    position: sticky;
    top: 100px; /* Учитывает 80px хедера + 20px зазор */
    height: fit-content;
}

.cards-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.support-card-mini {
    background: var(--white);
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(209, 227, 245, 0.5);
    transition: var(--transition);
}

.support-card-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.support-card-mini img {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.support-card-mini h5 {
    margin: 0 0 3px 0;
    font-size: 1.1rem;
    color: var(--text);
}

.support-card-mini p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--blue);
}
.parallax-decor-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1; /* Уводим за текст, но оставляем внутри секции */
}
.decor-item {
    position: absolute;
    will-change: transform;
    /* Убери любые transition: all! */
    transition: none !important; 
    /* PNG могут быть тяжелыми, дадим им четкие размеры */
    max-width: 150px; 
    height: auto;
}

/* Расставляем элементы по площади */
.d-1 { top: 10%; left: 5%; }
.d-2 { top: 20%; right: 10%; }
.d-3 { top: 50%; left: 10%; }
.d-4 { top: 65%; right: 15%; }
.d-5 { top: 40%; right: 40%; }

.d-2, .d-4 {
    filter: blur(2px); /* Дальний план */
}

/* Адаптивность */
@media (max-width: 992px) {
    .support-grid-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sticky-side {
        position: static;
        margin-top: 50px;
    }
    
    .timeline-track {
        padding-left: 50px;
    }
}

@media (max-width: 576px) {
    .support-after {
        padding: 60px 0;
    }
    
    .step-info h4 {
        font-size: 1.1rem;
    }
}


/* На мобилках делаем чуть меньше, чтобы не мешала пальцам */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}


