/* ============================================================
   1. ОБНУЛЕНИЕ И ПЕРЕМЕННЫЕ
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&family=Space+Grotesk:wght@500;700;800&display=swap');

:root {
    --bg: #070B14;
    --card: rgba(15, 23, 42, 0.75);
    --blue: #00D4FF;
    --blue-glow: rgba(0, 212, 255, 0.3);
    --orange: #FF7A00;
    --orange-glow: rgba(255, 122, 0, 0.3);
    --text: #F3F4F6;
    --text-muted: #94A3B8;
    --border: rgba(255, 255, 255, 0.1);
    --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg) url('/static/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Затемнение фона для читаемости */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7, 11, 20, 0.7), rgba(7, 11, 20, 0.95));
    z-index: -1;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ============================================================
   2. ШАПКА (HEADER)
   ============================================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 11, 20, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 15px var(--blue-glow);
    transition: filter 0.3s ease; /* Добавлено для мягкости */
}

.menu {
    display: flex;
    align-items: center;
}

.menu a {
    margin-left: 25px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.menu a:hover {
    color: var(--blue);
}

.nav-btn {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--blue);
    padding: 8px 18px;
    border-radius: 8px;
    color: var(--blue) !important;
}

.nav-btn:hover {
    background: var(--blue);
    color: var(--bg) !important;
}

/* ============================================================
   3. ГЕРОЙ-БЛОК (HERO)
   ============================================================ */
.hero {
    padding: 80px 0;
}

.hero-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-left {
    flex: 1.2;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    background: rgba(255, 122, 0, 0.1);
    color: var(--orange);
    border: 1px solid rgba(255, 122, 0, 0.3);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--blue), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
    text-align: left; /* По умолчанию липнет влево */
}

.hero-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-right img {
    width: 100%;
    max-width: 450px;
    filter: drop-shadow(0 0 30px var(--blue-glow));
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ============================================================
   4. КАРТОЧКИ УСТРОЙСТВ (ИСПРАВЛЕННАЯ АНИМАЦИЯ)
   ============================================================ */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 100px;
    position: relative; /* Чтобы активная карточка могла позиционироваться */
}

.big-card {
    position: relative;
    background: var(--card);
    backdrop-filter: blur(10px);
    /* Заменяем фиксированный height на max-height для анимации */
    height: 400px;
    max-height: 400px;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    /* Убедись, что max-height включен в transition */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.big-card:hover:not(.active) {
    transform: translateY(-10px);
    border-color: var(--blue);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.big-card img {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 150px;
    /* Убедись, что здесь стоит плавная кривая */
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

/* Твои оригинальные скейлы */
.pc-card img { transform: translate(-50%, -50%) scale(1.85); }
.phone-card img { transform: translate(-50%, -50%) scale(1.1); }
.laptop-card img { transform: translate(-50%, -50%) scale(1.65); }

/* --- Новая логика активного состояния --- */

.big-card.active {
    /* Ставим значение с запасом, чтобы влез любой текст */
    max-height: 800px;
    height: auto;
    z-index: 10;
    border-color: var(--blue);
    box-shadow: 0 0 30px var(--blue-glow);
    background: rgba(15, 23, 42, 0.95);
    transform: scale(1.02);
}

.big-card.active .card-content {
    transform: translateY(-220px);; /* Подбирай значение под высоту текста */
}

/* При активации картинка плавно уменьшается и уходит вверх, не мешая тексту */
.big-card.active img {
    opacity: 0.05;
    transform: translate(-50%, -60%) scale(1.5) !important;
    filter: blur(5px);
}

.card-content {
    position: relative;
    z-index: 2;
    /* Весь контент внутри будет плавно уезжать вверх */
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 27px;
    color: #fff;
    margin-bottom: 8px;
}

.card-content p {
    color: var(--blue);
    font-size: 17px;
    font-weight: 700;
}

/* Скрытый убеждающий текст */
.card-details {
    position: absolute;
    top: 100%; /* Выносим за пределы видимости вниз */
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.4s ease 0.2s;
    padding-top: 15px;
}

.big-card.active .card-details {
    opacity: 1;
}

.card-details p {
    color: var(--text-muted) !important;
    font-size: 15px !important;
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 10px;
}

/* ============================================================
   5. СЕРВИСЫ (ВРОСШАЯ ПАНЕЛЬ)
   ============================================================ */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    flex-direction: column;
    align-items: center; /* Центрирует дочерние элементы по горизонтали */
}

.services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0; /* Без зазоров, чтобы прилегало к панели */
}

.section-title .subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 650px; /* Можно чуть шире для центрированных блоков */
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none;
}

.service-icon {
    font-size: 32px;
    color: var(--blue);
    margin-bottom: 15px;
    transition: var(--transition);
}

.service-card p {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
}

.service-card:hover {
    background: rgba(0, 212, 255, 0.05);
}

/* Активное состояние карточки — "слияние" с панелью */
.service-card.active {
    background: var(--card);
    border-color: var(--blue);
    position: relative;
    z-index: 2;
}

/* Бесшовный переход: перекрываем нижнюю границу активной карточки фоном панели */
.service-card.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: #111b2d; /* Цвет фона панели */
    z-index: 3;
}

/* ОБЩАЯ ПАНЕЛЬ ОПИСАНИЯ (Твоя красная зона на скрине) */
.services-description-wrapper {
    background: var(--card);
    border: 1px solid var(--blue);
    border-radius: 0 0 24px 24px;
    padding: 40px;
    margin-top: -1px;
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* Блоки информации внутри панели */
.service-info {
    display: none;
    animation: serviceFadeIn 0.5s ease forwards;
}

.service-info.active {
    display: block;
}

.service-info h3 {
    color: var(--blue);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    margin-bottom: 20px;
}

.info-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.info-grid ul {
    list-style: none;
    flex: 1;
}

.info-grid li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
}

.info-grid li i {
    color: var(--blue);
    font-size: 12px;
}

.info-grid p {
    flex: 1.2;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

@keyframes serviceFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   АДАПТИВ ДЛЯ СЕРВИСОВ (ТЕЛЕФОНЫ) — ФИКС И ПЛАВНОСТЬ
   ============================================================ */
@media (max-width: 768px) {
    .services {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .service-card {
        display: flex;
        align-items: center;
        height: 75px;
        padding: 0 20px;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border);
        border-radius: 15px;
        order: 1; /* Обычные карточки сверху */
        transition: background 0.5s ease;
    }

    /* АКТИВНАЯ КАРТОЧКА: ПЛАВНОЕ "ПРИЗЕМЛЕНИЕ" */
    .service-card.active {
        order: 2; /* Улетает вниз */
        background: var(--card);
        border-color: var(--blue);
        border-radius: 20px 20px 0 0;
        margin-top: 20px;
        border-bottom: none;
        z-index: 10;
        /* Удлиняем анимацию до 0.8 секунд для мягкости */
        animation: smoothArrival 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* ПАНЕЛЬ ОПИСАНИЯ */
    .services-description-wrapper {
        order: 3; /* Под карточкой */
        background: var(--card);
        border: 1px solid var(--blue);
        border-top: none;
        border-radius: 0 0 20px 20px;
        padding: 30px 20px;
        margin-top: -1px;
        /* Панель проявляется чуть позже карточки */
        animation: panelSlideUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    /* ЭФФЕКТ МЯГКОГО ПОЯВЛЕНИЯ КАРТОЧКИ */
    @keyframes smoothArrival {
        0% {
            opacity: 0;
            transform: scale(0.95) translateY(-30px);
            filter: blur(4px);
        }
        100% {
            opacity: 1;
            transform: scale(1) translateY(0);
            filter: blur(0);
        }
    }

    /* ЭФФЕКТ РАЗВОРАЧИВАНИЯ ПАНЕЛИ */
    @keyframes panelSlideUp {
        0% {
            opacity: 0;
            transform: translateY(10px);
            max-height: 0;
        }
        30% {
            opacity: 0;
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            max-height: 1000px; /* С запасом для любого текста */
        }
    }

    /* Остальные элементы */
    .service-info { display: none; }
    .service-info.active { display: block; }
    .service-icon { font-size: 22px; margin-right: 15px; }
    .service-card p { font-size: 14px; margin: 0; text-transform: none; font-weight: 600; }
    .info-grid { flex-direction: column; gap: 15px; }
}

/* ============================================================
   6. CTA БЛОК (ПРИГЛУШЕННЫЙ И ТЕМНЫЙ 2.0)
   ============================================================ */
:root {
    /* Добавим новый, более глубокий синий для свечения */
    --blue-darker: #0088CC; /* Вместо #00D4FF */
    --blue-glow-muted: rgba(0, 136, 204, 0.2); /* Тихий блик */
}

.cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Убираем яркий градиент. Делаем фон темнее, чем карточки */
    background: radial-gradient(circle at 15% 50%, rgba(0, 136, 204, 0.05), transparent), #050810;
    backdrop-filter: blur(25px);
    padding: 80px;
    margin: 100px 0;
    border-radius: 40px;
    /* Бордюр делаем почти незаметным */
    border: 1px solid rgba(255, 255, 255, 0.03);
    gap: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7); /* Сильная тень */
}

/* Приглушенный фоновый блик */
.cta::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -5%;
    width: 350px;
    height: 350px;
    background: var(--blue-darker);
    filter: blur(160px); /* Сильное размытие */
    opacity: 0.1; /* Едва заметный оттенок */
    pointer-events: none;
}

.cta-left {
    flex: 1.5;
    z-index: 2;
}

.cta h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 800;
    /* Убираем text-shadow, чтобы текст не светился */
    color: #fff;
}

.cta-text {
    font-size: 18px;
    color: var(--text-muted); /* Стандартный серый */
    margin-bottom: 40px;
    max-width: 550px;
    line-height: 1.6;
}

.cta-right {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cta-gpu {
    width: 120%;
    max-width: 500px;
    /* Свечение от видеокарты делаем тихим и темным */
    filter: drop-shadow(0 15px 60px rgba(0, 0, 0, 0.9));
    transform: rotate(-5deg) translateY(0);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    /* Чуть приглушаем яркость самой картинки */
    brightness(0.95);
}

/* Эффект левитации оставляем, но свечение тише */
.cta:hover .cta-gpu {
    transform: rotate(0deg) scale(1.08) translateY(-8px);
    filter: drop-shadow(0 20px 70px rgba(0, 136, 204, 0.3));
    brightness(1.05); /* Чуть подсвечиваем при наведении */
}

/* Оранжевая кнопка — оставляем её яркой для CTA, но без неона */
.cta .btn {
    padding: 18px 40px;
    font-size: 15px;
    background: linear-gradient(135deg, var(--orange), #FF4D00);
    box-shadow: 0 10px 30px rgba(255, 122, 0, 0.3);
}

/* Адаптив (без изменений) */
@media (max-width: 1024px) {
    .cta {
        padding: 50px 30px;
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .cta-gpu {
        width: 100%;
        max-width: 320px;
    }
    .cta-text {
        margin: 0 auto 35px;
    }
}

/* ============================================================
   7. КНОПКИ
   ============================================================ */
.btn {
    display: inline-block;
    padding: 16px 35px;
    background: linear-gradient(90deg, var(--orange), #FFB800);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 20px var(--orange-glow);
    transition: var(--transition);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px var(--orange-glow);
    filter: brightness(1.1);
}

/* ============================================================
   8. ФУТЕР
   ============================================================ */
.footer {
    background: rgba(3, 7, 18, 0.95);
    padding: 80px 0 0;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-size: 16px;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--blue);
    padding-left: 5px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    color: var(--text-muted);
}

.contact-item i {
    color: var(--blue);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: #4b5563; /* Приглушенный цвет, чтобы не отвлекал */
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px; /* Разрядка букв для стиля */
    text-transform: uppercase;
}

/* ============================================================
   9. МОБИЛЬНАЯ АДАПТАЦИЯ (MEDIA QUERIES)
   ============================================================ */

@media (max-width: 1024px) {
    .cards-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { width: 92%; }
    .menu { display: none; }
    .hero-flex { flex-direction: column; text-align: center; gap: 30px; }
    .hero-right { order: -1; }
    .hero-right img { max-width: 280px; }
    .title { font-size: 32px; }
    .cards-3 { grid-template-columns: 1fr; gap: 20px; }
    .big-card { height: 320px; padding: 25px; }
    .big-card img { width: 110px; }
    .big-card.active { transform: none; min-height: 400px; }
    .cta { flex-direction: column; padding: 40px 20px; text-align: center; }
    .cta-left { order: 2; }
    .cta-right { order: 1; margin-bottom: 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-item { justify-content: center; }
    .btn { width: 100%; text-align: center; }
}

/* Стили для логотипа в навигации */
/* Увеличенный логотип */
/* Логотип 1.5x */
/* Возврат логотипа к стандартному размеру (40px) */

.logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 0px var(--blue-glow));
    will-change: transform; /* Важно для GSAP */
}

.logo:hover {
    opacity: 0.8;
}

/* В футере тоже возвращаем компактность */
.footer-info .logo-img {
    width: 40px;
    height: 40px;
}

/* Мобильная адаптация (чуть меньше для узких экранов) */
@media (max-width: 480px) {
    .logo-img {
        width: 32px;
        height: 32px;
    }
    .logo span {
        font-size: 20px;
    }
}

/* Умный захват полей Django внутри .neon-form */
.neon-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.neon-form textarea,
.neon-form select {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-top: 8px;
    background: rgba(15, 23, 42, 0.6) !important; /* Насильно задаем фон */
    border: 1px solid rgba(0, 212, 255, 0.2) !important;
    border-radius: 10px;
    color: white !important;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Чтобы padding не раздувал ширину */
}

/* Эффект при фокусе */
.neon-form input:focus,
.neon-form textarea:focus,
.neon-form select:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4) !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

/* Специфический фикс для выпадающих списков (select) */
.neon-form select {
    cursor: pointer;
    appearance: none; /* Убираем стандартную стрелку браузера */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300D4FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
}

/* Стили для лейблов (текст над полями) */
.neon-form label {
    display: block;
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 13px;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.big-card.card-form {
    height: auto !important;      /* Сбрасываем фиксированные 400px */
    max-height: none !important;  /* Убираем лимит */
    min-height: 200px;            /* Минималка, чтобы не схлопывалась */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;  /* Контент идет сверху вниз */
    overflow: visible !important; /* Чтобы свечение и текст не резались */
}

/* 2. Исправляем отступы в контейнере секции */
/* Увеличиваем общую ширину и внутренние отступы */
.card-form {
    width: 100%;             /* Занимает всю доступную ширину контейнера */
    max-width: 800px;        /* Увеличиваем лимит (было 600) */
    padding: 60px !important; /* Больше пространства внутри для солидности */
    margin: 0 auto;
    height: auto !important;
    background: var(--card);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); /* Добавляем веса за счет тени */
}

/* Настраиваем контейнер, чтобы он позволял карточке расшириться */
.form-section-container {
    padding: 80px 0 !important;
    max-width: 1000px !important; /* Контейнер секции должен быть шире карточки */
    margin: 0 auto;
}

/* Если заголовки кажутся мелкими на большой карточке */
.card-form .title {
    font-size: 36px !important; /* Увеличиваем заголовок */
    margin-bottom: 15px;
}

/* Сообщения об ошибках под полями */
.error-msg {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 600;
}

/* Красивая загрузка файлов */
.file-upload-wrapper {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* ОБНОВЛЕННАЯ ЗАГРУЗКА: Делаем стандартную кнопку невидимой */
.file-input-wrapper {
    position: relative;
    width: 100%;
    min-height: 120px;
    border: 1px dashed rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

/* Растягиваем невидимый оригинальный инпут на всю область */
.file-input-wrapper input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0; /* Скрывает надпись "Файл не выбран" и серую кнопку */
    cursor: pointer;
    z-index: 10;
}

.file-custom-design {
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none; /* Клик проходит насквозь в инпут */
    padding: 20px;
}

.file-input-wrapper:hover {
    border-color: var(--blue);
    background: rgba(0, 212, 255, 0.05);
}

.file-input-container:hover {
    border-color: var(--blue);
    background: rgba(0, 212, 255, 0.05);
}

.file-input-container input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-custom-design {
    text-align: center;
    color: var(--text-muted);
}

.file-custom-design i {
    font-size: 24px;
    color: var(--blue);
    display: block;
    margin-bottom: 8px;
}

.file-custom-design span {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   10. СТРАНИЦА ОТЗЫВОВ (REVIEWS)
   ============================================================ */
.reviews-section {
    padding: 120px 0;
}

.reviews-actions {
    margin-bottom: 60px;
    text-align: center;
}

.reviews-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.review-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 35px;
    position: relative;
    transition: var(--transition);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.review-card:hover {
    border-color: var(--blue);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: var(--blue);
    opacity: 0.1;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.user-avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--blue), var(--orange));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 18px;
    box-shadow: 0 0 15px rgba(0,212,255,0.3);
}

.review-rating {
    color: #FFD700;
    font-size: 12px;
    margin-top: 3px;
}

.review-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
    font-size: 15px;
    margin-bottom: 25px;
    flex-grow: 1;
}

.review-footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ============================================================
   11. ЛИЧНЫЙ КАБИНЕТ (PROFILE)
   ============================================================ */
.orders-grid {
    display: grid;
    gap: 20px;
}

.order-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.order-card:hover {
    border-color: rgba(0, 212, 255, 0.4);
    background: rgba(15, 23, 42, 0.9);
}

.order-main-info {
    display: flex;
    align-items: center;
    gap: 30px;
}

.order-id-hex {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--blue);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    transform: rotate(45deg);
    box-shadow: 0 0 15px var(--blue-glow);
}

.order-id-hex span {
    transform: rotate(-45deg);
    font-weight: 800;
    color: var(--blue);
}

.status-badge {
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Цвета статусов (примеры) */
.status-pending { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }
.status-work { background: rgba(0, 212, 255, 0.1); color: var(--blue); border-color: var(--blue); }
.status-completed { background: rgba(34, 197, 94, 0.1); color: #22c55e; }

.detail-link {
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.detail-link:hover {
    gap: 12px;
    color: #fff;
}

@media (max-width: 768px) {
    .order-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .order-side-info {
        width: 100%;
        justify-content: space-between;
        display: flex;
    }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .container {
        padding: 40px 15px !important; /* Уменьшаем огромные паддинги секций */
    }

    .big-card.card-form {
        padding: 25px 20px !important; /* Меньше внутренних отступов в карточке */
        margin: 0 10px; /* Чтобы карточка не липла к краям экрана */
        width: auto;
    }

    .title {
        font-size: 24px !important; /* Уменьшаем заголовок, чтобы не переносился некрасиво */
        margin-bottom: 10px;
    }

    .neon-form input,
    .neon-form textarea,
    .neon-form select {
        font-size: 16px !important; /* Важно: 16px предотвращает авто-зум в iOS при фокусе */
        padding: 12px 15px;
    }

    /* Каптча на мобилках */
    .captcha-container {
        transform: scale(0.85); /* Слегка уменьшаем каптчу, если она не лезет */
        transform-origin: center;
        margin: 10px 0;
    }

    .btn {
        padding: 15px;
        font-size: 14px;
        letter-spacing: 1px;
    }
}

/* Контейнер для центровки */
.captcha-responsive-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    width: 100%;
    overflow: hidden; /* Чтобы ничего не торчало */
}

/* Масштабирование для узких экранов */
@media (max-width: 380px) {
    .captcha-responsive-wrapper {
        /* Уменьшаем каптчу до 85% от оригинала, если экран совсем маленький */
        transform: scale(0.85);
        transform-origin: center;
        margin: 10px -15px; /* Компенсируем отступы после масштабирования */
    }
}

/* Фикс для iframe гугла, чтобы не ломал сетку */
.captcha-responsive-wrapper iframe {
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
}

/* Общий контейнер для капчи во входе */
.captcha-login-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 15px 0;
    /* Убираем возможные ограничения родителя */
    min-height: 78px;
}

/* Фикс белого квадрата и обрезки */
.captcha-login-container iframe {
    /* Сбрасываем принудительную ширину, если она прилетает от .neon-form */
    width: 304px !important;
    max-width: 304px !important;
    border-radius: 4px;
}

/* Масштабирование для ОЧЕНЬ узких телефонов */
@media (max-width: 360px) {
    .captcha-login-container {
        transform: scale(0.85);
        transform-origin: center;
        /* Убираем пустоты, которые остаются после scale */
        margin: 5px -20px;
    }
}

/* ФИКС КАПЧИ: Убираем белые артефакты и центрируем */
.captcha-responsive-wrapper,
.captcha-login-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

/* Принудительно убираем фон у всех внутренних элементов капчи */
.captcha-responsive-wrapper *,
.captcha-login-container * {
    background: none !important;
    box-shadow: none !important;
}

.captcha-responsive-wrapper iframe,
.captcha-login-container iframe {
    background: transparent !important;
    max-width: 100% !important;
    border-radius: 8px;
}

/* Масштаб для маленьких экранов */
@media (max-width: 380px) {
    .captcha-responsive-wrapper,
    .captcha-login-container {
        transform: scale(0.85);
        transform-origin: center;
        margin: 10px -15px;
    }
}

/* ============================================================
   ОБНОВЛЕННЫЙ ФУТЕР (REMZONE STYLE)
   ============================================================ */
.footer {
    background: rgba(3, 7, 18, 0.98); /* Почти черный, как твоя шапка */
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

/* Легкое свечение снизу для эффекта глубины */
.footer::after {
    content: "";
    position: absolute;
    bottom: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(circle, var(--blue-glow), transparent 70%);
    opacity: 0.15;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* Логотип в футере */
.footer-info .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.logo span {
    display: inline-block;
    transition: all 0.4s ease;
    will-change: letter-spacing;
}
.logo:hover .logo-img {
    filter: drop-shadow(0 0 8px var(--blue-glow));
}

.logo:hover span {
    color: var(--blue);
    text-shadow: 0 0 10px var(--blue-glow);
}

.footer-info .logo-img {
    width: 40px;
    height: 40px;
}

.footer-info .logo span {
    font-size: 22px;
    letter-spacing: 2px;
    color: #fff;
    text-shadow: 0 0 10px var(--blue-glow);
}

/* Заголовки разделов */
.footer h4 {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--blue);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Списки ссылок */
.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--blue);
    transform: translateX(5px); /* Мягкий сдвиг вправо при наведении */
}

/* Контакты */
.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 14px;
}

.contact-item i {
    color: var(--blue);
    font-size: 16px;
    width: 20px; /* Фиксированная ширина иконок, чтобы текст шел ровно */
    text-align: center;
}

/* Нижняя полоска с копирайтом */
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    text-align: center;
    color: #4b5563;
    font-size: 12px;
    letter-spacing: 1px;
}

/* ============================================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛОК
   ============================================================ */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr; /* В колонку на телефоне */
        text-align: center;
        gap: 50px;
    }

    .footer-info .logo {
        justify-content: center;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: scale(1.05); /* На мобилках лучше скейл, чем сдвиг */
    }
}

@media (max-width: 768px) {
    .footer-grid {
        display: flex;
        flex-direction: column;
        align-items: center; /* Центрует всё содержимое */
        text-align: center;
        gap: 40px;
    }

    .footer-info .logo {
        justify-content: center; /* Центрует логотип */
    }

    .footer-bottom {
        font-size: 10px; /* Немного уменьшим текст для узких экранов */
        letter-spacing: 1px;
    }
}

/* Кнопка Наверх */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--blue);
    color: var(--blue);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    z-index: 2000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    box-shadow: 0 0 15px var(--blue-glow);
}

/* Состояние при появлении */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Эффект при наведении */
@media (hover: hover) {
    .back-to-top:hover {
        background: var(--blue);
        color: var(--bg);
        transform: translateY(-5px);
        box-shadow: 0 0 25px var(--blue);
    }
}

/* Эффект при нажатии (фидбек для мобилок) */
.back-to-top:active {
    transform: scale(0.9);
    background: var(--blue-darker);
    transition: 0.1s;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}