/* Общие настройки */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}


:root {
    --red: #E60000;
    --yellow: #FFD700;
    --dark: #0D0D0D;
    --white: #FFFFFF;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--dark);
    color: var(--white);
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
}

/* Шапка */
.header {
    padding: 20px 5%;
    position: absolute;
    width: 90%;
    z-index: 10;
     margin-top: 60px; /* Сдвигает весь блок вниз на 60 пикселей */
}

.logo {
    font-family: 'Russo One', sans-serif;
    font-size: 36px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    /* Наклон всего логотипа для динамики */
    transform: skewX(-15deg);
    margin: 8px;
}

.logo .red {
    color: var(--red);
    text-shadow: 2px 2px 0px #000, 4px 4px 0px rgba(230, 0, 0, 0.3);
}

.logo .yellow {
    color: var(--yellow);
    margin-left: 4px;
    text-shadow: 2px 2px 0px #000;
}

.logo .lightning {
    font-style: normal;
    font-size: 30px;
    margin-left: 8px;
    transform: skewX(15deg); /* Выпрямляем молнию обратно, чтобы не была кривой */
    filter: drop-shadow(0 0 10px var(--yellow));
}



/* Главная секция */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0d0d0d 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 2; /* Чтобы текст был над линиями скорости */
}

.main-title {
    font-weight: 900;
    font-size: 64px;
    color: #ffffff;
    text-transform: uppercase;
    font-style: italic; /* Эффект скорости */
    line-height: 1.1;   /* Межстрочный интервал */
    margin-bottom: 20px;
}

.main-title .highlight {
    display: block;      /* Переносит на новую строку */
    font-size: 78px;     /* Делает нижнюю строку крупнее */
    color: #ff0000;      /* Твой красный цвет */
    margin-top: 15px;    /* ОТСТУП, чтобы надписи не заходили друг на друга */
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3); /* Легкое свечение */
}

.subtitle {
    font-size: 18px;
    color: #cccccc;
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 20px; /* Расстояние между кнопками */
}


    /* Адаптив для мобилок (чтобы текст не вылезал за края) */
@media (max-width: 768px) {
    .main-title { font-size: 36px; }
    .main-title .highlight { font-size: 42px; padding-left: 0; }
}



/* Подзаголовок (Пока конкуренты...) */
.subtitle {
    font-size: 18px;
    color: #AAAAAA;
    margin-top: 10px;           /* Отступ от заголовка */
    margin-bottom: 40px;        /* Отступ до кнопок */
    font-weight: 400;
    max-width: 650px;
    line-height: 1.6;
}


.cta-group {
    display: flex;
    gap: 20px;            /* Расстояние между кнопками */
}

/* На всякий случай: исправляем окончание в HTML прямо в голове */
/* Было: 24 ЧАСОВ -> Стало: 24 ЧАСА */


.btn-main {
    background: var(--red);
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    border-radius: 4px;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-main:hover {
    transform: scale(1.1) skewX(-5deg);
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.6);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
    padding: 18px 35px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: white;
    color: var(--dark);
}

/* Линии скорости на фоне */
.speed-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(90deg, transparent 50%, rgba(255,255,255,0.05) 50%);
    background-size: 100px 100%;
    transform: skewX(-20deg);
    opacity: 0.3;
}


.portfolio {
    padding: 100px 5%;
    background: var(--dark);
}

.section-title {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: var(--white);
    text-align: center;
    margin-bottom: 60px;
    text-transform: uppercase;
    font-style: italic;
    border-left: 10px solid var(--red);
    padding-left: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #1a1a1a;
    border: 1px solid #333;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s;
    position: relative;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--red);
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.3);
}

.card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    filter: grayscale(50%); /* Делаем чуть тусклее, чтобы заиграло при наведении */
    transition: 0.4s;
}

.card:hover .card-image {
    filter: grayscale(0%);
}

/* Заглушки для фото (потом заменишь на реальные скриншоты) */
.studio-vision { background-color: #333; }
.beauty-salon { background-color: #444; }

.card-info {
    padding: 20px;
}

.card-info h3 {
    font-family: 'Russo One', sans-serif;
    margin: 0;
    color: var(--yellow);
}

.card-info p {
    font-weight: 300;
    opacity: 0.7;
    margin: 10px 0;
}

.time {
    display: inline-block;
    background: var(--red);
    padding: 5px 12px;
    font-family: 'Russo One', sans-serif;
    font-size: 0.8rem;
    border-radius: 4px;
}


/* Контейнер карточки должен иметь position: relative (у нас уже есть) */
.card {
    position: relative;
    z-index: 1;
}

/* Стили самого огня */
.fire {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 10px;
    background: var(--red);
    filter: blur(15px); /* Размытие для мягкости свечения */
    opacity: 0; /* Скрыт по умолчанию */
    transition: 0.4s;
    z-index: -1; /* Огонь под карточкой */
    border-radius: 50%;
}

/* Эффект при наведении */
.card:hover .fire {
    opacity: 1;
    height: 30px;
    bottom: -10px;
    background: linear-gradient(to top, var(--red), var(--yellow));
    animation: flame-pulse 0.8s infinite alternate;
    box-shadow:
        0 0 20px var(--red),
        0 0 40px var(--yellow);
}

/* Анимация пульсации пламени */
@keyframes flame-pulse {
    0% {
        transform: translateX(-50%) scaleX(1);
        filter: blur(15px);
    }
    100% {
        transform: translateX(-50%) scaleX(1.2);
        filter: blur(20px);
        opacity: 0.8;
    }
}

/* Общие стили для всех картинок */
.card-image {
    height: 200px;
    background-size: cover;
    background-position: top center; /* Чтобы было видно шапку сайта */
    filter: grayscale(80%) brightness(0.7); /* В стиле AuraStep: приглушенные цвета */
    transition: 0.5s ease-in-out;
}

.card:hover .card-image {
    filter: grayscale(0%) brightness(1); /* Оживают при наведении */
}

/* Стили для фоновых изображений (пути к твоим скринам) */
.studio-vision { background-image: url('..img/studio.png'); }
.beauty-salon { background-image: url('..img/salon.png'); }
.my-shop { background-image: url('..img/OZON.png'); }
.vocal-school { background-image: url('..img/school.png'); }
.my-coffee { background-image: url('..img/coffee.png'); }

/* Оформление карточек */
.portfolio {
    padding: 100px 5%;
    background: #0a0a0a;
}

.section-title {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: var(--white);
    text-align: left;
    margin-bottom: 60px;
    font-style: italic;
    border-left: 15px solid var(--red);
    padding-left: 25px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.card {
    background: #151515;
    border: 2px solid #222;
    text-decoration: none;
    color: white;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.card:hover {
    transform: scale(1.05);
    border-color: var(--red);
    box-shadow: 0 20px 40px rgba(230, 0, 0, 0.4);
}

.card-image {
    height: 220px;
    background-size: cover;
    background-position: top center;
    filter: grayscale(100%) brightness(0.6);
    transition: 0.5s;
}

.card:hover .card-image {
    filter: grayscale(0%) brightness(1);
}

.card-info {
    padding: 25px;
}

.card-info h3 {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    margin: 0;
    color: var(--yellow);
    font-style: italic;
}

.card-info p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin: 10px 0 20px;
}

.card-image {
    width: 100%;
    height: 180px; /* Выберите комфортную высоту */
    object-fit: cover; /* Это важно: картинка заполнит блок, не растягиваясь */
    border-radius: 8px 8px 0 0; /* Если нужны скругления только сверху */
}

.time {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 6px 15px;
    font-family: 'Russo One', sans-serif;
    font-size: 0.75rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* Анимация огня */
.fire {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 10px;
    background: linear-gradient(to top, var(--red), var(--yellow));
    filter: blur(20px);
    opacity: 0;
    transition: 0.4s;
    z-index: -1;
}

.card:hover .fire {
    opacity: 0.8;
    height: 40px;
}


/* Блок этапов */
.steps {
    padding: 100px 5%;
    background: #0d0d0d;
}

.steps-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 50px;
}

.step-card {
    background: #151515;
    padding: 40px;
    border-radius: 8px;
    border-bottom: 5px solid var(--red);
    flex: 1;
    position: relative;
    transition: 0.3s;
}

.step-card:hover {
    background: #1a1a1a;
    transform: translateY(-5px);
}

.step-num {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    color: var(--red);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    right: 20px;
}

.step-card h3 {
    font-family: 'Russo One', sans-serif;
    color: var(--yellow);
    margin-bottom: 15px;
}

/* Подвал */
.footer {
    padding: 100px 5% 50px;
    background: linear-gradient(to bottom, #0d0d0d, #1a0000);
    text-align: center;
}

.footer h2 {
    font-family: 'Russo One', sans-serif;
    font-size: 3rem;
    font-style: italic;
}

.footer p {
    margin-bottom: 40px;
    opacity: 0.7;
}

.socials {
    margin-top: 60px;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.8rem;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center; /* Центрируем всё меню */
    align-items: center;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
    backdrop-filter: blur(5px); /* Легкое размытие фона */
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 50px; /* Большое расстояние между пунктами для солидности */
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 3px; /* Разряженный текст в стиле премиум-авто */
    text-transform: uppercase;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
}

/* Особенный стиль для кнопки "Связь" */
.nav-btn {
    border: 2px solid #ff0000;
    padding: 10px 25px;
    border-radius: 0; /* Острые углы для агрессивного вида */
    background: transparent;
    opacity: 1 !important;
}

.nav-btn:hover {
    background: #ff0000;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}


.main-footer {
    padding: 60px 0;
    background-color: #000; /* Черный фон для подвала */
    text-align: center;
    border-top: 1px solid rgba(255, 0, 0, 0.2); /* Тонкая красная линия */
}

/* Центрируем логотип, если он у тебя был во флексе */
.main-footer .logo {
    display: inline-block;
    font-size: 32px; /* Внизу можно сделать побольше */
    margin-bottom: 15px;
}

.footer-text {
    color: #666;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}


/* Специфические стили для страницы About */
.about-page {
    background-color: #050505;
    color: white;
    padding-top: 100px; /* Чтобы контент не ушел под меню */
}

.hero-about {
    text-align: center;
    padding: 60px 20px;
}

.hero-about h1 {
    font-size: 64px;
    font-weight: 900;
    letter-spacing: 5px;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.features-list li {
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
}

.features-list span {
    color: #ff0000;
    font-weight: 900;
    margin-right: 15px;
    font-family: monospace;
    border: 1px solid #ff0000;
    padding: 5px;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background: #111;
    border: 2px dashed #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #222;
    font-size: 50px;
}




.mission-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.neon-border {
    position: relative;
    padding: 5px;
    background: linear-gradient(45deg, #ff0000, #ff00ff, #00ffff); /* Градиент неона */
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4); /* Красное свечение вокруг */
}

.mission-image img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 5px;
    filter: saturate(1.5) contrast(1.1); /* Делаем цвета еще ярче */
}

/* Эффект мерцания (как у настоящей неоновой вывески) */
@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% { opacity: 1; }
    20%, 24%, 55% { opacity: 0.8; }
}

.neon-border {
    animation: flicker 5s infinite alternate;
}

.mission-info h2 span.red {
    color: #ff0000;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
}


/* Контейнер, где раньше была картинка */
.lightning-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px; /* Такая же высота, как была у картинки */
    background: radial-gradient(circle, rgba(255,0,0,0.1) 0%, transparent 70%); /* Мягкое красное пятно за молнией */
}

.big-lightning {
    width: 100%;
    height: 100%;
    max-height: 400px;
}

.lightning-bolt {
    stroke: #ffffff; /* Тонкий белый контур внутри для яркости */
    stroke-width: 1;
    paint-order: stroke;
    animation: lightning-pulse 3s infinite ease-in-out;
}

@keyframes lightning-pulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px #ff0000) drop-shadow(0 0 30px #ff0000);
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px #ff0000) drop-shadow(0 0 50px #ff0000);
        transform: scale(1.05); /* Молния чуть увеличивается при пике яркости */
    }
}


/* --- СЕКЦИЯ ТЮНИНГ (ЦЕНЫ) --- */
.prices {
    padding: 100px 20px;
    background: #000; /* Глубокий черный фон */
    color: #fff;
}

.price-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 50px 40px;
    width: 320px;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Эффект при наведении на любую карточку */
.price-card:hover {
    border-color: #ff0000;
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

/* Стиль для центральной карточки (MULTISTEP) */
.price-card.featured {
    border: 2px solid #ff0000;
    background: linear-gradient(180deg, #0f0f0f 0%, #050505 100%);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.15);
}

/* Заголовок тарифа */
.price-header h3 {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 15px;
    color: #fff;
    text-transform: uppercase;
}

/* Цена */
.cost {
    font-size: 42px;
    font-weight: 900;
    color: #ff0000;
    margin-bottom: 40px;
    font-family: 'Arial Black', sans-serif;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

/* Список особенностей */
.price-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.price-features li {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 18px;
    letter-spacing: 1px;
    position: relative;
    text-transform: uppercase;
}

/* Красная черточка под каждым пунктом для стиля */
.price-features li:after {
    content: '';
    display: block;
    width: 20px;
    height: 1px;
    background: #333;
    margin: 10px auto 0;
}

.price-features li:last-child:after {
    display: none; /* Убираем черточку у последнего пункта */
}

/* Бейдж "ПОПУЛЯРНО" */
.badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0000;
    color: #fff;
    padding: 6px 20px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%); /* Скошенные края в стиле гонок */
}


.services {
    padding: 100px 0;
    background: #0b0b0b;
    color: #fff;
    text-align: center;
}

.section-title {
    font-size: 48px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.section-title .red { color: #ff0000; }

.section-subtitle {
    color: #888;
    margin-bottom: 60px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Чтобы на мобилках карточки переносились */
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #151515;
    border: 1px solid #222;
    padding: 40px;
    width: 250px;
    border-radius: 8px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: #ff0000;
    transform: translateY(-10px); /* Карточка чуть подпрыгивает при наведении */
}

.card-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.service-card p {
    font-size: 14px;
    color: #aaa;
    line-height: 1.6;
}


/* Стили для блока акции */
.promo-neon-section {
    padding: 60px 20px;
    background: #0b0b0e; /* Темный фон под стиль вашего сайта */
    display: flex;
    justify-content: center;
}

.promo-neon-container {
    max-width: 900px;
    width: 100%;
    background: #121216;
    /* Яркий неоновый красный цвет для рамки */
    border: 2px solid #ff0033;
    /* Усиленное внешнее и внутреннее свечение */
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.6), inset 0 0 20px rgba(255, 0, 51, 0.3);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    position: relative;
}

.promo-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff0033; /* Яркий бэдж */
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.6);
    color: #fff;
    padding: 6px 20px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 20px;
    letter-spacing: 1px;
}

.neon-text-sale {
    color: #fff;
    /* Огненный текстовый неон */
    text-shadow: 0 0 5px #fff, 0 0 10px #ff0033, 0 0 20px #ff0033, 0 0 40px #ff0033;
}


.promo-subtitle {
    color: #8a8a93;
    margin-bottom: 35px;
    font-size: 16px;
}

.promo-steps {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .promo-steps { flex-direction: column; }
}

.promo-step-card {
    flex: 1;
    background: #181820;
    padding: 25px;
    border-radius: 8px;
    /* Подсветка левой полосы карточек */
    border-left: 4px solid #ff0033;
    text-align: left;
    position: relative;
}

.step-num {
    font-size: 24px;
    font-weight: bold;
    color: rgba(220, 53, 69, 0.6);
    margin-bottom: 10px;
    position: static !important; /* Намертво отменяем сторонний абсолютный сдвиг */
    display: block !important;   /* Возвращаем цифру в нормальный поток текста */
}


.promo-step-card h3 {
    margin: 0 0 10px 0;
    color: #fff;
}

.promo-step-card p {
    margin: 0;
    color: #a0a0a8;
    font-size: 14px;
    line-height: 1.5;
}

.promo-link {
    color: #0077ff;
    text-decoration: underline;
    font-weight: bold;
}

.promo-footer {
    margin-top: 20px;
    border-top: 1px solid #22222b;
    padding-top: 20px;
}

.promo-code {
    display: block; /* Срочно переносим на отдельную строку */
    width: max-content; /* Сжимаем рамку под размер текста */
    margin: 10px auto 0 auto; /* Центрируем и делаем отступ сверху */
    color: #fff;
    background: rgba(255, 0, 51, 0.1);
    border: 1px dashed #ff0033; /* Сделали рамку ярко-красной под новый неон */
    padding: 6px 14px;
    border-radius: 4px;
    font-weight: bold;
    text-align: center;
}



.promo-conditions {
    background: #181820;
    border: 1px solid #22222b;
    border-radius: 8px;
    padding: 20px;
    margin: 25px 0;
    text-align: left;
    font-size: 14px;
    color: #a0a0a8;
    line-height: 1.6;
}

.vip-status {
    border-top: 1px solid #2d2d38;
    margin-top: 12px;
    padding-top: 12px;
}

.vip-status strong {
    color: #dc3545; /* Выделяем предупреждение красным цветом */
}

/* Стили для блока акции */

    /* Железная анимация превращения полосок в крестик при открытии */
    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
        background-color: #ff0000 !important; /* Крестик станет ярко-красным под стиль сайта */
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(-10px) !important;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
        background-color: #ff0000 !important;
    }
    /* Стильная кнопка, которая всегда будет поверх открытого меню */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important;
        height: 18px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;

        /* ЭТИ СТРОКИ СДЕЛАЮТ ЕЕ ФИКСИРОВАННОЙ И ВЫВЕДУТ НА САМЫЙ ВЕРХНИЙ СЛОЙ: */
        position: fixed !important;
        top: 25px !important;
        right: 24px !important;
        z-index: 10005 !important; /* Слой выше, чем у выезжающего меню */
    }



/* 1. ПЛАНШЕТЫ (до 1024px) - когда экран сужается, но ещё не телефон */
@media (max-width: 1024px) {
    .main-title {
        font-size: 48px; /* Уменьшаем основной заголовок */
    }
    .main-title .highlight {
        font-size: 56px; /* Уменьшаем красную строку */
    }
    .container {
        padding: 0 30px; /* Увеличиваем боковые отступы, чтобы текст не лип к краям */
    }
}

/* 2. МАЛЕНЬКИЕ ПЛАНШЕТЫ И ВЕРТИКАЛЬ (до 768px) */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px; /* Сужаем меню */
    }
    .services-grid {
        gap: 20px;
    }
}

/* 3. МОБИЛЬНЫЕ ТЕЛЕФОНЫ (до 480px) - Самое важное! */
@media (max-width: 480px) {

    /* Заголовок */
    .main-title {
        font-size: 30px !important; /* Уменьшаем до читаемого на мобиле */
        line-height: 1.2;
    }
    .main-title .highlight {
        font-size: 34px !important;
        display: block;
        margin-top: 10px;
    }

    /* Подзаголовок */
    .subtitle {
        font-size: 16px;
        padding: 0 10px;
        margin-bottom: 30px;
    }

    /* КНОПКИ - ставим одну под другую, так удобнее нажимать пальцем */
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 15px;
        padding: 0 20px;
    }
    .btn-main, .btn-secondary {
        width: 100%; /* На всю ширину экрана */
        text-align: center;
        padding: 15px 0; /* Делаем кнопку "пухлой" для пальца */
    }

    /* Карточки в блоке "ПОД КЛЮЧ" */
    .service-card {
        width: 100% !important; /* Каждая карточка на весь экран */
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 32px;
    }
    
        /* Оптимизация секции ПИТ-СТОП строго для мобилок */
    .steps {
        padding: 30px 15px !important; 
    }

    .steps .section-title {
        font-size: 22px !important; 
        margin-bottom: 25px !important;
        text-align: center !important;
    }

    /* Выстраиваем карточки строго друг под друга в один столбик */
    .steps-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important; 
        width: 100% !important;
    }

}


/* ==========================================================================
   ФИНАЛЬНЫЙ ИСПРАВЛЕННЫЙ БЛОК МОБИЛЬНЫХ СТИЛЕЙ (ЖЕСТКАЯ ФИКСАЦИЯ НА 100%)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. НАВИГАЦИОННАЯ ПАНЕЛЬ И КНОПКА-КРЕСТИК */
    .top-nav {
        display: flex !important;
        justify-content: flex-end !important;
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        width: 100% !important;
        padding: 25px 24px !important; 
        box-sizing: border-box !important;
        z-index: 1002 !important;
    }

    .menu-toggle {
        display: flex !important; 
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 28px !important; 
        height: 18px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin: 0 !important;
        position: fixed !important;
        top: 25px !important;
        right: 24px !important;
        z-index: 1000005 !important;
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: #ffffff;
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
    }

    .menu-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
        background-color: #ff0000 !important;
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0 !important;
        transform: translateX(-10px) !important;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
        background-color: #ff0000 !important;
    }

    /* 2. БРОНЕБОЙНОЕ ПОЛНОЭКРАННОЕ МЕНЮ (ИСПРАВЛЕНА ПРОЗРАЧНОСТЬ И СМЕЩЕНИЕ) */
    .nav-links {
        display: flex !important;
        /* Выстраиваем ссылки строго по вертикали сверху вниз */
        flex-direction: column !important; 
        align-items: center !important;
        justify-content: center !important;
        
        /* Растягиваем на весь экран */
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        box-sizing: border-box !important;
        
        /* Убиваем родительские ограничения и наглухо заливаем черным */
        background-color: #0a0a0a !important; 
        background: #0a0a0a !important; 
        margin: 0 !important;
        padding: 0 !important;
        z-index: 1000000 !important; 
        
        /* Скрытие */
        visibility: hidden !important;
        opacity: 0 !important;
        transform: none !important; /* Сбрасываем любые ПК-трансформации */
        transition: opacity 0.3s ease-in-out, visibility 0.3s !important;
    }

    .nav-links.is-active {
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Сбрасываем ПК-позиционирование для списков */
    .nav-links li {
        margin: 20px 0 !important;
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        position: static !important; /* Убираем absolute, если оно было на ПК */
        transform: none !important;
        top: auto !important;
        left: auto !important;
    }

    .nav-links a {
        font-size: 26px !important;
        text-decoration: none !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        letter-spacing: 2px !important;
        display: inline-block !important;
        position: static !important;
    }

    /* Кнопка СВЯЗЬ внутри меню на мобилке */
    .nav-links a.nav-btn {
        border: 2px solid #ff0000 !important;
        padding: 10px 30px !important;
        margin-top: 10px !important;
        border-radius: 4px !important;
    }

    /* 3. ОПТИМИЗАЦИЯ СЕКЦИИ ПИТ-СТОП */
    .steps {
        padding: 50px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .steps .section-title {
        font-size: 22px !important;
        text-align: center !important;
        margin-bottom: 35px !important;
    }

    .steps-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }

    .step-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border-left: 4px solid #ff0000 !important;
        border-top: none !important;
        border-right: none !important;
        border-bottom: none !important;
        border-radius: 4px !important;
    }

    .step-num {
        font-size: 26px !important;
        font-weight: 800 !important;
        color: #ff0000 !important;
        margin-bottom: 6px !important;
        line-height: 1 !important;
        display: block !important;
    }

    .step-card h3 {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #ffffff !important;
        margin: 0 0 8px 0 !important;
        letter-spacing: 1px !important;
    }

    .step-card p {
        font-size: 14px !important;
        line-height: 1.4 !important;
        color: #cccccc !important;
        margin: 0 !important;
    }
}





    /* Полная очистка кнопки и полосок для ПК-версии */
    @media (min-width: 769px) {
        .menu-toggle, 
        .menu-toggle span,
        #js-menu-toggle {
            display: none !important;
            opacity: 0 !important;
            visibility: hidden !important;
            width: 0 !important;
            height: 0 !important;
            margin: 0 !important;
            padding: 0 !important;
        }
}

/* ==========================================================================
   ЖЕСТКИЙ СБРОС СЕКЦИИ ПИТ-СТОП ДЛЯ СМАРТФОНОВ (ЭКРАНЫ ДО 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Перестраиваем три карточки в одну ровную колонку сверху вниз */
    .steps-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important; /* Отступ между карточками */
        width: 100% !important;
        grid-template-columns: none !important; /* Жестко отключаем ПК-сетку */
    }

    /* Растягиваем каждую карточку на всю ширину экрана */
    .step-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }

    /* Подгоняем размеры секции */
    .steps {
        padding: 50px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .steps .section-title {
        font-size: 22px !important;
        text-align: center !important;
        margin-bottom: 35px !important;
    }
}



