/* ============================================================
   COMPONENTS.CSS — ВСЕ КОМПОНЕНТЫ
   ============================================================ */

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 5%;
    background: var(--overlay-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    transition: all var(--transition);
}

.site-header.scrolled {
    padding: 0.8rem 5%;
    background: rgba(10, 15, 13, 0.95);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.logo span {
    color: var(--accent-neon);
    font-family: var(--font-mono);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent-neon);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-neon);
    transition: width var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-cta {
    border: 1px solid var(--accent-neon);
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    color: var(--accent-neon) !important;
    font-family: var(--font-base) !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}

.nav-cta:hover {
    background: var(--accent-neon);
    color: var(--bg-page) !important;
}

.nav-cta::after {
    display: none !important;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-primary);
    background: none;
    border: none;
    padding: 0.5rem;
    transition: color var(--transition);
}

.burger:hover {
    color: var(--accent-neon);
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--accent-neon);
    color: var(--bg-page);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    border: 1px solid var(--accent-neon);
    background: transparent;
    color: var(--accent-neon);
}

.btn-outline:hover {
    background: var(--accent-neon);
    color: var(--bg-page);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

/* ========== БЕЙДЖ ========== */
.badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-neon);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ========== КАРТОЧКИ ========== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-dim);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-neon);
    box-shadow: var(--shadow-md);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    color: var(--accent-neon);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    transition: color var(--transition);
}

.card-link:hover {
    color: var(--accent-hover);
}

.card-link i {
    margin-left: 0.3rem;
    transition: transform var(--transition);
}

.card-link:hover i {
    transform: translateX(4px);
}

/* ========== HERO ========== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, #0f1724 0%, #1a1f2d 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: url('/images/uploads/hero-bg.jpg') center/cover no-repeat;
    opacity: 0.08; filter: hue-rotate(240deg) saturate(0.5);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 55%;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--accent-neon);
}

.hero-content p {
    font-size: 0.69rem;
    margin-bottom: 2rem;
    max-width: 550px;
}

/* ========== ПОЛОСА ДОВЕРИЯ (СЕРВЕРЫ РФ) ========== */
.trust-stripe {
    background: rgba(34, 197, 94, 0.05);
    border-top: 1px solid rgba(34, 197, 94, 0.12);
    border-bottom: 1px solid rgba(34, 197, 94, 0.12);
    padding: 1.4rem 5%;
}

.trust-stripe-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
}

.trust-stripe-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
}

.trust-stripe-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.trust-stripe-text strong {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.trust-stripe-text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ========== АНОНС-БЛОК (на главной) ========== */
.preview-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
}

.preview-block:nth-child(even) {
    direction: rtl;
}

.preview-block:nth-child(even) .preview-content {
    direction: ltr;
}

.preview-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--accent-neon);
    border: 1px solid var(--border-dim);
}

.preview-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.preview-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* ========== ФОРМА ========== */
.form-container {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid var(--border-dim);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-dim);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-base);
    font-size: 0.95rem;
    transition: border-color var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-neon);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* ========== ТАБЛИЦА ========== */
.table-container {
    overflow-x: auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-dim);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    text-align: left;
    padding: 1rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-dim);
    white-space: nowrap;
}

table td {
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid var(--border-dim);
    font-size: 0.9rem;
    vertical-align: middle;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: rgba(0, 255, 204, 0.03);
}

/* ========== СТРАНИЦА УСЛУГ ========== */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-dim);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-content {
    direction: ltr;
}

.service-detail-icon {
    font-size: 4rem;
    color: var(--accent-neon);
    margin-bottom: 1rem;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.service-detail-content ul {
    margin: 1.5rem 0;
}

.service-detail-content li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.service-detail-content li i {
    color: var(--accent-neon);
    font-size: 1.1rem;
}

/* ========== ПРОЕКТЫ ========== */
.project-card-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-dim);
    margin-bottom: 2rem;
}

.project-card-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/10;
}

.project-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-card-body h3 {
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ========== ПАРТНЁРЫ ========== */
.partner-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid var(--border-dim);
    transition: all var(--transition);
}

.partner-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-neon);
}

.partner-logo {
    font-size: 4rem;
    color: var(--accent-neon);
    margin-bottom: 1.5rem;
}

.partner-card h3 {
    margin-bottom: 0.5rem;
}

.partner-card .badge {
    margin-top: 1rem;
}

/* ========== КОНТАКТЫ ========== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-icon {
    font-size: 1.5rem;
    color: var(--accent-neon);
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.contact-info-text h4 {
    font-family: var(--font-base);
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.contact-info-text p,
.contact-info-text a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.contact-info-text a:hover {
    color: var(--accent-neon);
}

/* ========== FOOTER ========== */
.site-footer {
    border-top: 1px solid var(--border-dim);
    padding: 2rem 5%;
    background: var(--bg-page);
}

.service-detail {
        display: flex;
        flex-direction: column;
        direction: ltr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    .service-detail .preview-image {
        order: -1;
    }
    .service-detail .service-detail-content {
        order: 0;
    }
    .footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-inner a {
    color: var(--accent-neon);
    transition: color var(--transition);
}

.footer-inner a:hover {
    color: var(--accent-hover);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: 0.8rem 0;
}

/* ========== PAGE-HERO (для внутренних страниц) ========== */
.page-hero {
    padding: 8rem 5% 3rem;
    text-align: center;
    background: linear-gradient(180deg, #141a17 0%, var(--bg-page) 100%);
}

.page-hero h1 {
    margin-bottom: 1rem;
}

.page-hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ========== HERO: БЕЙДЖ ДОВЕРИЯ ========== */
.hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 14px;
    padding: 12px 18px;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.hero-trust-badge:hover {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(34, 197, 94, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.12);
}

.trust-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #22c55e;
    border-radius: 12px;
    color: white;
}

.trust-text {
    display: flex;
    flex-direction: column;
}

.trust-title {
    font-weight: 700;
    font-size: 14px;
    color: #22c55e;
    line-height: 1.2;
}

.trust-sub {
    font-size: 11px;
    color: #94a3b8;
    line-height: 1.3;
}

/* ========== АДАПТИВ ========== */
@media (max-width: 992px) {
    .preview-block,
    .service-detail,
    .project-card-full,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .preview-block:nth-child(even),
    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero::before {
        width: 100%;
        opacity: 0.08;
    }
}

/* ==================== МОБИЛЬНОЕ МЕНЮ ==================== */
.main-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-dim);
    z-index: 100;
}



/* ==================== УСЛУГИ — МОБИЛЬНАЯ АДАПТАЦИЯ ==================== */

/* ==================== УСЛУГИ — ФИКС ШАХМАТНОГО ПОРЯДКА НА МОБИЛКАХ ==================== */

/* ==================== МОБИЛЬНАЯ ВЕРСИЯ (768px) ==================== */
@media (max-width: 768px) {
    /* Меню */
    .main-nav { display: none; }
    .main-nav.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        padding: 1.5rem;
        gap: 1rem;
        border-bottom: 1px solid var(--border-dim);
        z-index: 100;
    }
    .burger { display: block; }
    .site-header { position: relative; }
    .header-inner { flex-wrap: wrap; }
    .logo { font-size: 1rem; }

    /* Hero */
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 0.95rem; }
    .page-hero h1 { font-size: 1.8rem; }
    .page-hero p { font-size: 0.9rem; }
    .hero-title-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .hero-trust-badge { padding: 10px 14px; }

    /* Кнопки */
    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
    .btn-lg { padding: 0.85rem 1.8rem; font-size: 0.95rem; }

    /* Заголовки секций */
    .section-header h2 { font-size: 1.5rem; }

    /* Карточки */
    .card { padding: 1.2rem; }
    .grid-2, .grid-3, .grid-4, .grid-auto {
        grid-template-columns: 1fr;
    }

    /* Услуги — фото всегда сверху */
    .service-detail {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem;
        padding: 1.5rem 0;
        direction: ltr !important;
    }
    .service-detail .preview-image {
        order: -1 !important;
        width: 100%;
        min-height: 220px;
        margin-bottom: 0;
    }
    .service-detail .preview-image img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: var(--radius-lg);
    }
    .service-detail .service-detail-content {
        width: 100%;
        padding: 0;
    }
    .service-detail .service-detail-content h3 {
        font-size: 1.3rem;
    }
    .service-detail .service-detail-content ul li {
        font-size: 0.9rem;
    }

    /* Проекты */
    .preview-block,
    .project-card-full,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Таблицы */
    table, .compare-wrap {
        overflow-x: auto;
        display: block;
    }

    /* Футер */
    .service-detail {
        display: flex;
        flex-direction: column;
        direction: ltr;
        gap: 1.5rem;
        padding: 1.5rem 0;
    }
    .service-detail .preview-image {
        order: -1;
    }
    .service-detail .service-detail-content {
        order: 0;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    .trust-stripe-inner {
        flex-direction: column;
        text-align: center;
    }

    /* О компании */
    .about-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    .about-content [style*="font-size: 34px"],
    .about-content [style*="font-size: 36px"],
    .about-content [style*="font-size: 44px"] {
        font-size: 24px !important;
    }
    .about-content [style*="padding: 60px"] { padding: 30px 0 !important; }
    .about-content [style*="padding: 50px"] { padding: 25px 0 !important; }
    .about-content [style*="padding: 40px"] { padding: 20px 0 !important; }
    .about-content [style*="gap: 50px"] { gap: 20px !important; }
    .about-content img { max-width: 100% !important; height: auto; }
}

