@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&family=Montserrat:ital,wght@0,400;0,600;0,700;1,700&display=swap');

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

body, html {
    width: 100%;
    /* height: 100%; убираем, чтобы можно было скроллить */
    /* overflow: hidden; убираем, чтобы появился скролл */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-color: #000; /* Резервный черный цвет */
}

/* Стили для первого экрана */
.first-screen {
    position: relative;
    width: 100%;
    height: 100vh; /* Занимает 100% высоты экрана (viewport height) */
    background-image: url('assets/glavnaa.png');
    background-size: 100% 100%; /* Растягиваем на весь экран */
    background-position: center;
    background-repeat: no-repeat;
}

/* Стили для второго экрана */
.second-screen {
    position: relative;
    width: 100%;
    min-height: 100vh; 
    background-image: url('assets/glavnaa2.png');
    background-size: 100% 100%; 
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.screen2-content {
    width: 85%; /* Сделали контейнер шире (было 80%) */
    max-width: 1400px; /* Увеличили максимальную ширину */
    z-index: 10;
    margin-top: -5vh; /* Поднимаем весь контент чуть выше */
}

.screen2-header {
    text-align: center;
    margin-bottom: 3vw;
}

.screen2-header h2 {
    font-size: 2.5vw;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

.screen2-header .purple-text {
    color: #d122e3;
    text-shadow: 0 0 10px rgba(209, 34, 227, 0.5);
    margin-bottom: 1vw;
}

.screen2-header p {
    font-size: 0.9vw;
    color: #a0a0a0;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    gap: 2vw;
}

/* Общие стили карточек */
.dashboard-card {
    background: rgba(20, 10, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 34, 227, 0.3);
    border-radius: 20px;
    padding: 1.5vw 2vw; /* Уменьшили вертикальный padding (было 2vw со всех сторон) */
    width: 48%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(209, 34, 227, 0.1);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); /* Пружинистая анимация */
    opacity: 0;
    transform: translateY(80px) scale(0.9); /* Изначально карточка ниже и меньше */
}

.right-card {
    transition-delay: 0.2s; /* Вторая карточка появляется чуть позже */
}

.dashboard-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* При наведении убираем задержку, чтобы не было лагов, и делаем карточку еще круче */
.dashboard-card.animate:hover {
    transition-delay: 0s;
    transition-duration: 0.4s;
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(209, 34, 227, 0.6), 0 0 30px rgba(209, 34, 227, 0.3);
    border-color: rgba(209, 34, 227, 1);
}

/* ... (здесь остальной код) */

/* Левая карточка (Donut) */
.left-body {
    display: flex;
    align-items: center; /* Центрируем по вертикали круг и бары */
    justify-content: space-between; /* Расталкиваем их по краям */
    gap: 2vw;
    margin-bottom: 1.5vw; /* Уменьшили отступ снизу */
    height: 10vw; /* Фиксируем высоту, чтобы круг не раздувало, сделал меньше (было 12vw) */
}

.donut-chart-wrapper {
    position: relative;
    width: 45%; /* Ширина контейнера для круга */
    height: 100%; /* Высота берется от родителя */
    display: flex;
    justify-content: center;
    align-items: center;
}

.donut {
    width: 10vw; /* Фиксированный размер самого SVG */
    height: 10vw;
    transform: rotate(-90deg);
    overflow: visible; /* Чтобы свечение не обрезалось квадратом */
}

.donut-segment {
    fill: none;
    stroke: #d122e3;
    stroke-width: 10;
    stroke-dasharray: 251.2; 
    stroke-dashoffset: 251.2; 
    transition: stroke-dashoffset 2s ease-out 0.5s; /* Задержка 0.5с после появления карточки */
    filter: drop-shadow(0 0 10px rgba(209, 34, 227, 0.8));
}

.dashboard-card.animate .donut-segment {
    stroke-dashoffset: 20; 
}

.donut-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.d-val {
    font-size: 2vw; /* Немного уменьшил размер цифр */
    font-weight: 700;
    line-height: 1; /* Убрал лишние отступы внутри текста */
}

.d-label {
    font-size: 0.6vw; /* Немного уменьшил текст */
    color: #d122e3;
    font-weight: 600;
    margin-top: 0.2vw;
}

.progress-bars {
    width: 50%; /* Чуть сузил контейнер для баров */
    display: flex;
    flex-direction: column;
    gap: 1vw; /* Уменьшил отступы между барами (было 1.2vw) */
}

/* ... */

.p-fill {
    height: 100%;
    background: #d122e3;
    width: 0; 
    transition: width 1.5s ease-out 0.5s;
    box-shadow: 0 0 10px #d122e3;
}

.dashboard-card.animate .p-fill {
    /* Ширина задается inline-стилями в HTML, поэтому тут ничего не пишем, JS или CSS заставит сработать transition, если мы уберем width: 0 */
}

/* Чтобы бары анимировались, переопределим способ */
.p-fill {
    height: 100%;
    background: #d122e3;
    width: var(--target-width, 0%); /* Используем CSS-переменную */
    transition: width 1.5s ease-out 0.5s;
    box-shadow: 0 0 10px #d122e3;
}
.dashboard-card:not(.animate) .p-fill {
    width: 0 !important; /* Пока не .animate, ширина 0 */
}

/* ... */

.bar-chart-container {
    position: relative;
    height: 8vw; /* Сделал график ниже (было 10vw) */
    margin-bottom: 1.5vw; /* Уменьшил отступ до нижних цифр (было 2vw) */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1vw;
}

.bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 100%;
    padding: 0; /* Убрал лишние паддинги */
    width: 100%; /* Растянул на всю ширину */
}

.bar-col {
    width: 4%; /* Сделал столбики тоньше */
    background: linear-gradient(to top, rgba(209, 34, 227, 0.8), rgba(209, 34, 227, 0.1));
    border-radius: 4px 4px 0 0;
    position: relative;
    transform: scaleY(0); 
    transform-origin: bottom;
    transition: transform 1s ease-out 0.5s;
}

.dashboard-card.animate .bar-col {
    transform: scaleY(1);
}

.month {
    position: absolute;
    bottom: -1.5vw;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6vw;
    color: #a0a0a0;
    white-space: nowrap; /* Чтобы текст не переносился */
}

/* ... */

.chart-line {
    fill: none;
    stroke: #d122e3;
    stroke-width: 3;
    stroke-dasharray: 1500;
    stroke-dashoffset: 1500;
    transition: stroke-dashoffset 2.5s ease-out 0.5s;
}

.dashboard-card.animate .chart-line {
    stroke-dashoffset: 0;
}

.chart-point {
    fill: #140a28;
    stroke: #d122e3;
    stroke-width: 2;
    opacity: 0;
    transition: opacity 0.5s ease-out 2.5s; /* Появляются после отрисовки линии */
}

.dashboard-card.animate .chart-point {
    opacity: 1;
}

/* Эффекты при наведении на элементы внутри карточки перемещены вниз для приоритета */

.stats-row {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.s-icon {
    color: #d122e3;
    margin-bottom: 0.5vw;
}

.s-data .s-num {
    font-size: 1.1vw;
    font-weight: 700;
}

.s-data .s-perc {
    font-size: 0.8vw;
    color: #00ff88;
}

.s-data .s-name {
    font-size: 0.7vw;
    color: #a0a0a0;
    margin-top: 0.2vw;
}

.header {
    position: absolute;
    top: 4.2%; /* Золотая середина между 3.5% и 5% */
    left: 2%; 
    width: 96%;
    display: flex;
    align-items: center; 
    z-index: 10;
}

.logo {
    width: 14%; 
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5vw;
    margin-top: -0.8vw; /* Слегка поднимаем */
}

.logo-get {
    font-family: 'Caveat', cursive;
    font-size: 2.8vw;
    font-weight: 400;
    color: white;
    line-height: 1;
}

.logo-360 {
    font-size: 1.8vw;
    font-weight: 700;
    font-style: italic;
    color: white;
    line-height: 1;
    letter-spacing: 1px;
}

.nav-left {
    display: flex;
    align-items: center; 
    gap: 4vw; /* Чуть уменьшил расстояние между ссылками, чтобы они стояли плотнее друг к другу */
    margin-left: 5vw; /* Сильно отодвигаем весь блок ссылок вправо */
    margin-top: -0.6vw; 
}

.nav-item {
    color: white;
    text-decoration: none;
    font-size: 1.2vw; /* Увеличил размер шрифта ссылок (был 1.05vw) */
    font-weight: 400;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.3vw; 
    letter-spacing: 0.5px;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -1vw; 
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #d122e3; 
    box-shadow: 0 0 12px #d122e3, 0 0 6px #d122e3; 
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 3.5vw; /* Увеличил расстояние между кнопкой и контактами */
    padding-right: 6.5vw; /* Еще сильнее увеличил отступ справа, чтобы сдвинуть весь блок влево */
    margin-top: -0.8vw; 
}

.btn-request {
    background-color: white;
    color: black;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95vw; /* Еще чуточку крупнее текст кнопки */
    padding: 0.6vw 1.6vw; 
    border-radius: 2vw;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-request:hover {
    background-color: #fff;
    box-shadow: 0 0 15px rgba(209, 34, 227, 0.6), 0 0 30px rgba(209, 34, 227, 0.4);
    transform: translateY(-2px);
    color: #d122e3;
}

.nav-right .nav-item {
    padding-bottom: 0; 
    font-size: 1.2vw; /* Убедился, что шрифт КОНТАКТЫ такой же, как у остальных ссылок */
}

/* Missing styles */
.card-top {
    display: flex;
    align-items: center;
    gap: 1vw;
    margin-bottom: 1.5vw; /* Уменьшили отступ от заголовка (было 2vw) */
}

.card-icon {
    width: 3vw;
    height: 3vw;
    background: rgba(209, 34, 227, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d122e3;
}

.card-title h3 {
    font-size: 1.2vw;
    font-weight: 700;
    margin-bottom: 0.2vw;
}

.card-title p {
    font-size: 0.75vw;
    color: #a0a0a0;
}

.card-footer {
    display: flex;
    align-items: flex-start;
    gap: 1vw;
    padding-top: 1vw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1.5vw; /* Добавили отступ сверху, чтобы отделить от графика/бара */
}

.footer-icon {
    width: 2.5vw;
    height: 2.5vw;
    background: rgba(209, 34, 227, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d122e3;
    flex-shrink: 0;
}

.footer-text h4 {
    font-size: 0.85vw;
    font-weight: 600;
    margin-bottom: 0.2vw;
}

.footer-text p {
    font-size: 0.7vw;
    color: #a0a0a0;
    line-height: 1.4;
}

.p-bar {
    width: 100%;
}

.p-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3vw;
    font-size: 0.7vw;
}

.p-info span:first-child {
    color: #a0a0a0;
}

.p-info span:last-child {
    color: white;
    font-weight: 600;
}

.p-track {
    width: 100%;
    height: 0.4vw;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5vw;
}

.c-left {
    display: flex;
    flex-direction: column;
}

.c-label {
    font-size: 0.7vw;
    color: #a0a0a0;
}

.c-val {
    font-size: 1.5vw;
    font-weight: 700;
}

.c-growth {
    color: #00ff88;
    font-size: 1vw;
    font-weight: 700;
}

.c-legend {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    font-size: 0.7vw;
    color: #a0a0a0;
}

.legend-dot {
    width: 0.6vw;
    height: 0.6vw;
    background: #d122e3;
    border-radius: 50%;
}

.line-chart-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.bottom-section {
    display: flex;
    justify-content: center;
    gap: 5vw;
    margin-top: 3vw;
}

.bottom-item {
    display: flex;
    align-items: center;
    gap: 1vw;
}

.bottom-icon {
    width: 2.5vw;
    height: 2.5vw;
    background: rgba(209, 34, 227, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d122e3;
    border: 2px solid #d122e3;
}

.bottom-text {
    font-size: 0.85vw;
    color: white;
}

/* --- Секвенциальные (поочередные) анимации для элементов --- */

/* Прогресс бары (слева) */
.dashboard-card.animate .p-bar:nth-child(1) .p-fill { transition-delay: 0.6s; }
.dashboard-card.animate .p-bar:nth-child(2) .p-fill { transition-delay: 0.75s; }
.dashboard-card.animate .p-bar:nth-child(3) .p-fill { transition-delay: 0.9s; }
.dashboard-card.animate .p-bar:nth-child(4) .p-fill { transition-delay: 1.05s; }

/* При наведении убираем задержку для мгновенной реакции */
.p-bar:hover .p-fill {
    transition-delay: 0s !important;
    box-shadow: 0 0 20px #d122e3, 0 0 10px #fff;
    background: #e855f8;
}

/* Столбики графика (справа) - учитываем задержку самой правой карточки (0.2s) */
.dashboard-card.animate .bar-col:nth-child(1) { transition-delay: 0.7s; }
.dashboard-card.animate .bar-col:nth-child(2) { transition-delay: 0.75s; }
.dashboard-card.animate .bar-col:nth-child(3) { transition-delay: 0.8s; }
.dashboard-card.animate .bar-col:nth-child(4) { transition-delay: 0.85s; }
.dashboard-card.animate .bar-col:nth-child(5) { transition-delay: 0.9s; }
.dashboard-card.animate .bar-col:nth-child(6) { transition-delay: 0.95s; }
.dashboard-card.animate .bar-col:nth-child(7) { transition-delay: 1.0s; }
.dashboard-card.animate .bar-col:nth-child(8) { transition-delay: 1.05s; }
.dashboard-card.animate .bar-col:nth-child(9) { transition-delay: 1.1s; }
.dashboard-card.animate .bar-col:nth-child(10) { transition-delay: 1.15s; }
.dashboard-card.animate .bar-col:nth-child(11) { transition-delay: 1.2s; }
.dashboard-card.animate .bar-col:nth-child(12) { transition-delay: 1.25s; }

/* При наведении убираем задержку для мгновенной реакции */
.bar-col:hover {
    transition-delay: 0s !important;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.8), rgba(209, 34, 227, 0.5));
    box-shadow: 0 0 15px rgba(209, 34, 227, 0.8);
    cursor: pointer;
}

/* Точки на графике (справа) - появляются после того как линия нарисуется */
.dashboard-card.animate .chart-point:nth-of-type(1) { transition-delay: 2.7s; }
.dashboard-card.animate .chart-point:nth-of-type(2) { transition-delay: 2.75s; }
.dashboard-card.animate .chart-point:nth-of-type(3) { transition-delay: 2.8s; }
.dashboard-card.animate .chart-point:nth-of-type(4) { transition-delay: 2.85s; }
.dashboard-card.animate .chart-point:nth-of-type(5) { transition-delay: 2.9s; }
.dashboard-card.animate .chart-point:nth-of-type(6) { transition-delay: 2.95s; }
.dashboard-card.animate .chart-point:nth-of-type(7) { transition-delay: 3.0s; }
.dashboard-card.animate .chart-point:nth-of-type(8) { transition-delay: 3.05s; }
.dashboard-card.animate .chart-point:nth-of-type(9) { transition-delay: 3.1s; }
.dashboard-card.animate .chart-point:nth-of-type(10) { transition-delay: 3.15s; }
.dashboard-card.animate .chart-point:nth-of-type(11) { transition-delay: 3.2s; }
.dashboard-card.animate .chart-point:nth-of-type(12) { transition-delay: 3.25s; }

/* ==========================================================================
   ТРЕТИЙ ЭКРАН (УСЛУГИ)
   ========================================================================== */

.third-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-image: url('assets/glavnaa3.png');
    background-size: 100% 100%; /* Возвращаем растягивание, чтобы шары были на месте */
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 5vw 0;
}

/* Копия фона для перекрытия правой карточки шариком */
.third-screen::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/glavnaa3.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 20; /* Поверх карточек */
    /* Используем маску с градиентом для мягкого края шарика */
    -webkit-mask-image: radial-gradient(circle at 100% 100%, black 15%, transparent 25%);
    mask-image: radial-gradient(circle at 100% 100%, black 15%, transparent 25%);
}

.screen3-content {
    position: relative;
    width: 90%; /* Немного увеличим контейнер */
    max-width: 1500px; /* Увеличим максимальную ширину */
    z-index: 5; /* Меньше z-index, чтобы правый шар мог перекрывать */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen3-header {
    text-align: center;
    margin-bottom: 3vw;
}

.screen3-header h2 {
    font-size: 4.5vw; /* Увеличили базовый размер H2, чтобы соответствовал градиентному тексту */
    font-weight: 700;
    margin: 0;
    letter-spacing: 2px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1vw;
    font-family: 'Montserrat', sans-serif;
}

.screen3-header .gradient-text {
    font-size: 4.5vw;
    background: linear-gradient(90deg, #fff 0%, #ff55ff 50%, #d122e3 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s linear infinite;
    font-weight: 700;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.screen3-header p {
    font-size: 1vw;
    color: #d122e3;
    margin-top: 0.5vw;
    letter-spacing: 1px;
}

.services-container {
    display: flex;
    justify-content: space-between;
    gap: 1.5vw;
    width: 100%;
    margin-bottom: 6vw; /* Больше отступ до кнопки */
    position: relative;
    padding-bottom: 4vw; /* Больше места для отражения */
    perspective: 1000px; /* Добавляем перспективу контейнеру для красивого 3D эффекта карточек */
}

.service-card {
    background: rgba(5, 2, 10, 0.4); /* Делаем фон более прозрачным */
    backdrop-filter: blur(8px);
    border: 1px solid transparent; /* Убираем физический бордер, используем тень для свечения */
    border-radius: 16px; 
    padding: 7vw 2vw; /* Карточки стали еще больше по высоте */
    width: 24.5%; /* Максимально используем ширину */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 0 20px rgba(209, 34, 227, 0.2), inset 0 0 15px rgba(209, 34, 227, 0.1), 0 0 0 1px rgba(209, 34, 227, 0.3); /* Добавил 1px тень как бордер */
    
    /* Скрываем карточки до начала анимации */
    opacity: 0;
    transform: translateY(60px) scale(0.95); /* Мягкий старт: чуть ниже и чуть меньше */
    filter: blur(10px); /* Легкое размытие */
    position: relative; 
    overflow: visible; /* Должно быть visible, чтобы свечение рамки не обрезалось */
    
    /* Улучшенное отражение с градиентом как на макете */
    -webkit-box-reflect: below 5px linear-gradient(transparent 70%, rgba(209, 34, 227, 0.5)); 
    
    /* Базовый транзишн для элегантного появления */
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.8s ease; 
}

@property --bg-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

/* Обводка карточки для эффекта "света по контуру" (animated border) */
.service-card::before {
    content: '';
    position: absolute;
    inset: -2px; /* Выходит за края для образования рамки */
    border-radius: 18px; /* Радиус карточки (16px) + толщина рамки (2px) */
    background: conic-gradient(from var(--bg-angle), transparent 60%, #ff22ff 90%, #d122e3 100%); /* Яркий градиент */
    z-index: -1;
    animation: rotateLight 2.5s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
    
    /* Маска, которая вырезает центр и оставляет только саму рамку */
    padding: 2px; /* Совпадает с толщиной рамки (inset) */
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* Иконки и текст должны быть поверх псевдоэлементов */
.service-icon, .service-card h3, .service-card p {
    position: relative;
    z-index: 1;
}

@keyframes rotateLight {
    0% { --bg-angle: 0deg; }
    100% { --bg-angle: 360deg; }
}

/* Отражение под карточками - УДАЛЯЕМ ::after, так как -webkit-box-reflect работает надежнее */

.service-card.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Каскадные задержки для появления */
.service-card:nth-child(1) { transition-delay: 0s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.2s; }
.service-card:nth-child(4) { transition-delay: 0.3s; }

/* При наведении карточка реагирует моментально */
.service-card.animate:hover {
    transform: translateY(-10px) scale(1.02) !important;
    box-shadow: 0 20px 50px rgba(209, 34, 227, 0.4), inset 0 0 30px rgba(209, 34, 227, 0.3) !important; 
    border-color: transparent !important; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transition-delay: 0s !important;
    z-index: 10; 
}

/* Возврат карточки в исходное состояние после ховера - быстро, без задержек */
.service-card.animate:not(:hover) {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: 0s !important;
    z-index: 1;
}

.service-card.animate:hover::before {
    opacity: 1; /* Показываем бегающий свет */
}

.service-icon {
    color: #d122e3;
    margin-bottom: 2vw; /* Увеличиваем отступ от иконки */
    filter: drop-shadow(0 0 10px rgba(209, 34, 227, 0.8));
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.3vw; /* Немного увеличиваем заголовок карточки */
    font-weight: 600;
    margin-bottom: 1.5vw; /* Увеличиваем отступ после заголовка */
    line-height: 1.3;
}

/* Удален .s-divider */

.service-card p {
    font-size: 0.75vw; /* Немного уменьшаем текст описания */
    color: #888; /* Делаем текст чуть темнее, как на скрине */
    line-height: 1.6;
}

.screen3-action {
    display: flex;
    justify-content: center;
}

.btn-glow {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    padding: 0.8vw 2.5vw;
    font-size: 1vw;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
    background-color: #fff;
}

/* ==========================================================================
   ФУТЕР
   ========================================================================== */

.site-footer {
    width: 100%;
    background-color: #05020a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2vw 0;
    z-index: 10;
    position: relative;
}

.footer-content {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content p {
    color: #888;
    font-size: 0.8vw;
}

.footer-links {
    display: flex;
    gap: 2vw;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.8vw;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #d122e3;
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 2, 10, 0.8);
    backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(20, 10, 40, 0.85);
    border: 1px solid rgba(209, 34, 227, 0.5);
    border-radius: 1.5vw;
    padding: 3vw;
    width: 35vw;
    min-width: 320px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(209, 34, 227, 0.2);
    transform: translateY(50px) scale(0.9);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1vw;
    right: 1.5vw;
    background: none;
    border: none;
    color: #a0a0a0;
    font-size: 2.5vw;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    color: #d122e3;
    transform: rotate(90deg) scale(1.1);
}

.modal-title {
    font-size: 2.2vw;
    font-weight: 700;
    margin-bottom: 0.5vw;
    text-align: center;
}

.modal-title .purple-text {
    color: #d122e3;
    text-shadow: 0 0 10px rgba(209, 34, 227, 0.5);
}

.modal-subtitle {
    font-size: 0.9vw;
    color: #a0a0a0;
    text-align: center;
    margin-bottom: 2vw;
    line-height: 1.4;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(5, 2, 10, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.8vw;
    padding: 1vw 1.5vw;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9vw;
    transition: all 0.3s ease;
    outline: none;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #777;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: #d122e3;
    box-shadow: 0 0 15px rgba(209, 34, 227, 0.3), inset 0 0 10px rgba(209, 34, 227, 0.1);
    background: rgba(20, 10, 40, 0.9);
}

.input-group textarea {
    resize: none;
    height: 8vw;
    min-height: 80px;
}

.btn-submit {
    background: #d122e3;
    color: white;
    border: none;
    padding: 1vw;
    border-radius: 0.8vw;
    font-size: 1vw;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(209, 34, 227, 0.5);
    margin-top: 0.5vw;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
    background: #e855f8;
    box-shadow: 0 0 25px rgba(209, 34, 227, 0.8);
    transform: translateY(-2px);
}
