/* ===== ПЛАШКА С ТЕКСТОМ (ОБЩИЕ СТИЛИ) ===== */
.dev-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    color: #1a3a6c;
    font-weight: 400;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    text-align: left;
    padding: 12px 20px 12px 80px;
    font-size: 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-transform: uppercase;
    font-family: 'Segoe UI', Arial, sans-serif;
    border-radius: 0;
    white-space: normal;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Стили для строк (ПК и планшеты по умолчанию) */
.banner-line1 {
    font-weight: 500;
    font-size: 24px;
    color: #2c5282;
}

.banner-line2 {
    font-weight: 500;
    font-size: 24px;
    color: #2c5282;
    margin-left: 52px;
}

.dark-theme .dev-banner {
    background: #1a1a2e;
    color: #ffd700;
}

/* === ОСНОВНЫЕ СТИЛИ === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background: #FFFFFF;
    transition: background-color 0.3s, color 0.3s;
    min-height: 100vh;
}

body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== КНОПКА МЕНЮ ===== */
.menu-button {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    background: rgba(0, 102, 204, 0.7);
    color: white;
    padding: 8px;
    border-radius: 0;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,102,204,0.4);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 86px;
    border: none;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

.menu-button:hover {
    background: rgba(0, 82, 163, 0.8);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0,102,204,0.6);
}

.dark-theme .menu-button {
    background: rgba(77, 171, 247, 0.6);
    box-shadow: 0 4px 15px rgba(77,171,247,0.3);
}

.dark-theme .menu-button:hover {
    background: rgba(51, 154, 240, 0.8);
    box-shadow: 0 6px 20px rgba(77,171,247,0.5);
}

.menu-button-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 1px;
}

.menu-button-text {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: white;
}

/* ===== МЕНЮ ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('https://avatars.mds.yandex.net/i?id=8f41e10502e88e46cccdfa4e4e3edfb1084e0398-8981816-images-thumbs&n=13') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 11px 50px 11px 11px;
    transform: translateX(-100%);
    transition: transform 0.5s ease;
    z-index: 1099;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.0);
    z-index: -1;
}

.dark-theme .nav::before {
    background: rgba(0, 0, 0, 0.85);
}

.dark-theme .nav {
    background: url('https://avatars.mds.yandex.net/i?id=6bf2af4bf36a1cd7ea2511732db4be912ea76589-12726868-images-thumbs&n=13') center/cover no-repeat;
}

.nav.active {
    transform: translateX(0);
}

/* Когда меню открыто - кнопка исчезает */
.nav.active ~ .menu-button {
    display: none !important;
}

/* Сетка иконок */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 16px;
    padding: 15px 8px;
    transition: all 0.3s;
    cursor: pointer;
    aspect-ratio: 1/1;
    width: 100%;
}

.menu-item:hover {
    transform: translateY(-3px);
}

.menu-icon-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 8px;
}

.menu-text {
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* ===== КРАСИВАЯ КНОПКА ТЕМЫ ===== */
.theme-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    padding: 18px 30px;
    transition: all 0.4s ease;
    font-size: 20px;
    margin: 60px 0 30px 35px;
    width: calc(100% - 50px);
    max-width: 625px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.theme-switcher::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.theme-switcher:hover::before {
    left: 100%;
}

.theme-switcher:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.theme-switcher:active {
    transform: translateY(0) scale(0.98);
}

.theme-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
    transition: transform 0.5s ease;
}

.theme-switcher:hover .theme-icon {
    transform: rotate(360deg);
}

.theme-text {
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.dark-theme .theme-switcher {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(77, 171, 247, 0.4);
}

/* ===== ЦВЕТ ТЕКСТА В МЕНЮ ===== */
.nav .menu-text,
.nav .theme-text,
.nav .theme-icon {
    color: #000000 !important;
}

.dark-theme .nav .menu-text,
.dark-theme .nav .theme-text,
.dark-theme .nav .theme-icon {
    color: white !important;
}

/* ===== ОТСТУП ДЛЯ СТРАНИЦ БЕЗ СИНЕГО ПРЯМОУГОЛЬНИКА ===== */
.page-without-hero .about-content,
.page-without-hero .video-card,
.page-without-hero .services-page-card,
.page-without-hero .review-form-container,
.page-without-hero .reviews-grid {
    margin-top: 70px;
}

/* ===== ССЫЛКА НА АДМИНКУ ===== */
.admin-link {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    z-index: 1000;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.admin-link:hover {
    opacity: 1;
}

.dark-theme .admin-link {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

/* ===== СИНИЙ ПРЯМОУГОЛЬНИК ===== */
.page-hero {
    background: linear-gradient(-45deg, #0a1a3a, #0a1a3a, #1e4b8f, #2a6fc9, #0a1a3a, #0a1a3a);
    background-size: 400% 100%;
    animation: smoothFlow 10s ease-in-out infinite alternate;
    color: white;
    padding: 40px 0 30px;
    text-align: center;
    width: 100%;
    display: block;
    margin-top: 50px;
    box-shadow: 0 20px 30px -10px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 5%;
    width: 90%;
    height: 20px;
    background: rgba(26,58,108,0.3);
    filter: blur(15px);
    border-radius: 50%;
    z-index: -1;
}

@keyframes smoothFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 0%; }
}

.dark-theme .page-hero {
    background: linear-gradient(-45deg, #030b17, #030b17, #0d2b4f, #1a4b8c, #030b17, #030b17);
    background-size: 400% 100%;
    animation: smoothFlow 10s ease-in-out infinite alternate;
}

.hero-title-line1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
    color: white;
}

.hero-title-line2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* Стили для моторов */
.engine-section {
    margin: 15px 0;
}

.engine-label {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.9;
    letter-spacing: 0.5px;
    color: white;
}

.engine-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.engine-item {
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 40px;
    padding: 8px 22px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    transition: all 0.3s ease;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
}

.engine-item:hover {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-theme .engine-item {
    border-color: rgba(77, 171, 247, 0.3);
}

.dark-theme .engine-item:hover {
    border-color: rgba(77, 171, 247, 0.8);
    background: rgba(77, 171, 247, 0.1);
}

/* ===== СТРАНИЦЫ ===== */
.about-page, .works-page, .services-page, .reviews-page {
    display: none;
    min-height: 100vh;
}

.dark-theme .about-page, .dark-theme .works-page, .dark-theme .services-page, .dark-theme .reviews-page {
    background: #1e1e1e;
}

.about-page.active, .works-page.active, .services-page.active, .reviews-page.active {
    display: block;
}

/* ===== СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ ===== */
.about-content,
.video-card,
.services-page-card,
.review-form-container,
.review-card {
    background: rgba(248, 250, 252, 0.7) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 30px !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
    border: 1px solid rgba(26, 58, 108, 0.2) !important;
}

.about-content h2,
.video-title,
.services-page-card h3,
.review-form-title {
    color: #1a3a6c !important;
    margin-bottom: 20px !important;
}

.about-content p,
.video-description,
.services-page-list li,
.review-text {
    color: #333 !important;
}

.dark-theme .about-content,
.dark-theme .video-card,
.dark-theme .services-page-card,
.dark-theme .review-form-container,
.dark-theme .review-card {
    background: rgba(45, 45, 45, 0.7) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: rgba(77, 171, 247, 0.2) !important;
    color: #ddd !important;
}

.dark-theme .about-content h2,
.dark-theme .video-title,
.dark-theme .services-page-card h3,
.dark-theme .review-form-title {
    color: #4dabf7 !important;
}

.dark-theme .about-content p,
.dark-theme .video-description,
.dark-theme .services-page-list li,
.dark-theme .review-text {
    color: #ddd !important;
}

/* Сетка услуг */
.services-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    margin: 60px auto;
    max-width: 1200px;
}

.services-page-list {
    list-style: none;
    padding: 0;
}

.services-page-list li {
    padding: 12px 0;
    padding-left: 35px;
    position: relative;
    font-size: 1.1rem;
}

.services-page-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.3rem;
}

/* Rutube кнопка */
.rutube-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: #0066cc;
    color: white;
    padding: 20px 40px;
    border-radius: 60px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
    max-width: 550px;
    margin: 25px auto 0;
}

.rutube-button:hover {
    background: #0052a3;
    transform: translateY(-5px);
}

.dark-theme .rutube-button {
    background: #4dabf7;
    color: #121212;
}

/* Форма отзывов */
.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 1.2rem;
}

.form-control {
    width: 100%;
    padding: 18px;
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    font-size: 1.1rem;
    background: white;
}

.dark-theme .form-control {
    background: #333;
    border-color: #555;
    color: #e0e0e0;
}

.rating-selector {
    display: flex;
    gap: 20px;
    align-items: center;
}

.rating-star {
    font-size: 40px;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s;
}

.rating-star.active,
.rating-star:hover {
    color: #ffc107;
    transform: scale(1.15);
}

/* Карточки отзывов */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.review-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0066cc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: bold;
}

.review-rating {
    color: #ffc107;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

/* ===== КОНТАКТЫ ===== */
.contact {
    display: block;
    padding: 80px 0;
    background: #f0f7ff;
}

.dark-theme .contact {
    background: #1a1a2e;
}

/* ===== БРЕНДЫ ===== */
.brand-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Светлая тема для брендов */
.brand-card {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.0) !important;
    border: 2px solid rgba(26, 58, 108, 0.25);
    border-radius: 48px;
    padding: 18px 6px;
    min-width: 132px;
    width: 132px;
    transition: all 0.3s ease;
    text-align: center;
    margin: 0 auto;
}

.brand-card:hover {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(26, 58, 108, 0.8);
    transform: translateY(-6px);
}

.brand-card img {
    height: 84px;
    width: 100%;
    object-fit: contain;
}

.brand-card h4 {
    color: #1a3a6c;
    margin-top: 6px;
    font-size: 1.08rem;
}

/* Темная тема для брендов */
.dark-theme .brand-card {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-color: rgba(77, 171, 247, 0.3);
}

.dark-theme .brand-card:hover {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-color: rgba(77, 171, 247, 0.8);
}

.dark-theme .brand-card h4 {
    color: #4dabf7;
}

/* ===== ОБЩИЕ СТИЛИ ===== */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,102,204,0.3);
}

.dark-theme .btn-primary {
    background: #4dabf7;
    color: #121212;
}

.success-message {
    display: none;
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
    padding: 20px;
    border-radius: 15px;
    margin-top: 25px;
    text-align: center;
    font-weight: 600;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ЧАСТИЦЫ ===== */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ===== ФОРМА ПОДПИСКИ В ТЁМНОЙ ТЕМЕ ===== */
.dark-theme .subscribe-form {
    background: #2d2d2d !important;
    border: 1px solid #444 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.dark-theme .subscribe-form h3 {
    color: #4dabf7 !important;
}

.dark-theme .subscribe-form input {
    background: #333 !important;
    border-color: #555 !important;
    color: #e0e0e0 !important;
}

.dark-theme .subscribe-form input::placeholder {
    color: #888 !important;
}

.dark-theme .subscribe-form button {
    background: #4dabf7 !important;
    color: #121212 !important;
    border: none !important;
}

.dark-theme .subscribe-form button:hover {
    background: #6dbbf9 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(77,171,247,0.3) !important;
}

/* Описание в тёмной теме */
.dark-theme .subscribe-form div[style*="linear-gradient"] {
    background: linear-gradient(135deg, #1a2a3a, #0f1e2a) !important;
    border-color: #4dabf7 !important;
}

.dark-theme .subscribe-form div[style*="linear-gradient"] div {
    color: #e0e0e0 !important;
}

.dark-theme .subscribe-form div[style*="border-top"] {
    border-top-color: #4dabf7 !important;
}

.dark-theme .subscribe-form div[style*="background:rgba(255,255,255,0.6)"] {
    background: rgba(0,0,0,0.4) !important;
}

.dark-theme .subscribe-form span[style*="color:#c00"] {
    color: #ff8888 !important;
}

/* Уведомления в тёмной теме */
.dark-theme #success-notification {
    background: #1e4a2a !important;
    color: #b8e0b8 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

.dark-theme #exists-notification {
    background: #5e4a1a !important;
    color: #f0e0a0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

.dark-theme #invalid-notification {
    background: #5e2a2a !important;
    color: #f0b0b0 !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

/* ===== МЕДИА-ЗАПРОС ДЛЯ ТЕЛЕФОНА ===== */
@media (max-width: 768px) {
    .dev-banner {
        padding: 19px 10px 10px 82px;
        font-size: 50px; 
        letter-spacing: 1px;
        line-height: 1.4;
    }
    
    .engine-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .engine-item {
        width: 100%;
        max-width: 170px;
        text-align: center;
        white-space: normal;
        padding: 10px 15px;
    }

    .banner-line1 {
        font-weight: 500;
        font-size: 18px;
        color: #2c5282;
    }
    
    .banner-line2 {
        font-weight: 500;
        font-size: 18px;
        color: #2c5282;
        margin-left: 58px;
    }
    
    .dark-theme .dev-banner {
        background: #1a1a2e;
    }
    
    .dark-theme .banner-line1,
    .dark-theme .banner-line2 {
        color: #ffffff;
    }
            
    .menu-button {
        width: 70px;
        height: 80px;
        padding: 10px 5px 5px 5px;
        top: 0;
        left: 0;
        border-radius: 0;
    }
    
    .menu-button-img {
        width: 60px;
        height: 60px;
        margin-bottom: 5px;
    }
    
    .menu-button-text {
        font-size: 12px;
        margin-top: 0;
        line-height: 1.2;
    }
    
    .nav {
        padding-top: 80px;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 280px;
        gap: 3px;
        margin-left: 5px; 
    }
     
    .menu-item {
        padding: 5px 3px;
    }
    
    .menu-icon-img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 0px;
    }
    
    .menu-text {
        font-size: 11px;
    }
    
    .theme-switcher {
        margin: 40px 0 20px 35px;
        max-width: calc(100% - 50px);
        width: calc(100% - 50px);
        padding: 14px 20px;
        font-size: 16px;
        gap: 8px;
    }
    
    .theme-icon {
        font-size: 24px;
    }
    
    .theme-text {
        font-size: 16px;
    }
    
    .hero-title-line1 {
        font-size: 1.4rem;
    }
    
    .hero-title-line2 {
        font-size: 1.6rem;
    }
    
    .engine-item {
        padding: 5px 12px;
        font-size: 0.9rem;
    }
    
    .admin-link {
        bottom: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }
}