/* ========================================
   ARS CLUB - ПРЕМИАЛЬНЫЙ СТИЛЬ
   Благородные красные акценты
   ======================================== */

/* ===== ПЕРЕМЕННЫЕ ===== */
:root {
    --primary: #b31b1b;
    --primary-dark: #8b0000;
    --primary-darker: #5c0000;
    --primary-light: #cc3333;
    --primary-lighter: #e64d4d;
    --primary-glow: rgba(179, 27, 27, 0.15);
    
    --accent-bg: rgba(139, 0, 0, 0.06);
    --accent-bg-hover: rgba(139, 0, 0, 0.12);
    --accent-border: rgba(139, 0, 0, 0.12);
    --accent-border-hover: rgba(179, 27, 27, 0.25);
    
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-card: #0f0c0c;
    --bg-card-hover: #1a1212;
    
    --text-primary: #ffffff;
    --text-dim: #b0a8a8;
    --text-muted: #7a6e6e;
    
    --gradient-primary: linear-gradient(135deg, #b31b1b, #8b0000);
    --gradient-light: linear-gradient(135deg, #cc3333, #b31b1b);
    --gradient-dark: linear-gradient(135deg, #0f0808, #0a0a0a);
}

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ЛОГОТИП ===== */
.logo {
    font-weight: 900;
    color: var(--primary);
    font-size: 2rem;
    letter-spacing: 1px;
    text-shadow: 0 0 30px rgba(179, 27, 27, 0.15);
}

.logo span {
    color: var(--primary);
}

/* ===== ГРАДИЕНТНЫЙ ТЕКСТ ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== КНОПКИ ===== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
    letter-spacing: 0.5px;
}

.btn--primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 20px rgba(179, 27, 27, 0.15);
}

.btn--primary:hover {
    background: linear-gradient(135deg, #cc3333, #990000);
    box-shadow: 0 0 40px rgba(179, 27, 27, 0.25);
    transform: translateY(-2px);
    color: white;
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn--outline:hover {
    background: var(--accent-bg);
    color: var(--primary);
    box-shadow: 0 0 30px rgba(179, 27, 27, 0.08);
    transform: translateY(-2px);
}

.btn--large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* ===== GLASS КАРТОЧКИ ===== */
.glass-card {
    background: rgba(15, 12, 12, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-border);
    border-radius: 16px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: var(--accent-border-hover);
    box-shadow: 0 0 50px rgba(179, 27, 27, 0.05);
    transform: translateY(-5px);
}

.glass-card i {
    color: var(--primary);
}

/* ===== ШАПКА ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--accent-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.phone {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.messengers {
    display: flex;
    gap: 12px;
    color: var(--primary);
    font-size: 1.2rem;
}

.messengers i {
    cursor: pointer;
    transition: all 0.3s ease;
}

.messengers i:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* ===== НАВИГАЦИЯ ===== */
.nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav a:hover {
    color: var(--primary);
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav a:hover::after {
    width: 100%;
}

/* Dropdown */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    min-width: 200px;
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    padding: 8px 0;
    z-index: 100;
    margin-top: 5px;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: var(--accent-bg);
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ===== СЛАЙДЕР ===== */
.hero {
    margin-top: 80px;
    height: calc(100vh - 80px);
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    visibility: hidden;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6), rgba(10,5,5,0.4));
}

.slide__content {
    position: absolute;
    bottom: 20%;
    left: 10%;
    max-width: 600px;
    z-index: 2;
}

.slide__tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.slide__title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.slide__desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 25px;
    max-width: 500px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(139, 0, 0, 0.1);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px rgba(179, 27, 27, 0.2);
}

.slider-arrow--prev {
    left: 30px;
}
.slider-arrow--next {
    right: 30px;
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(179, 27, 27, 0.3);
    transform: scale(1.2);
}

.slider-dots .dot:hover {
    background: var(--primary-light);
}

/* ===== КАРУСЕЛИ ===== */
.carousel-section {
    padding: 80px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.card-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0 20px;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 300px;
    max-width: 300px;
    background: rgba(15, 12, 12, 0.85);
    border-radius: 16px;
    border: 1px solid var(--accent-border);
    overflow: hidden;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.carousel-card:hover {
    border-color: var(--accent-border-hover);
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(179, 27, 27, 0.05);
}

.carousel-card__image {
    height: 200px;
    overflow: hidden;
}

.carousel-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-card__content {
    padding: 20px;
}

.carousel-card__content h3 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(139, 0, 0, 0.08);
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

.carousel-arrow:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 30px rgba(179, 27, 27, 0.15);
}

.carousel-arrow--prev {
    left: -20px;
}
.carousel-arrow--next {
    right: -20px;
}

/* ===== СТРАНИЦЫ ===== */
.page-header {
    padding: 140px 0 60px;
    text-align: center;
    background: var(--gradient-dark);
}

.page-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.page-header::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    margin: 20px auto 0;
    border-radius: 2px;
    opacity: 0.6;
}

.content-section {
    padding: 60px 0;
}

/* ===== СЕТКИ ===== */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* ===== ФУТЕР ===== */
.footer {
    background: var(--bg-darker);
    padding: 60px 0 30px;
    border-top: 1px solid var(--accent-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
}

.footer__menu {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__menu a {
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer__menu a:hover {
    color: var(--primary);
}

.footer__social {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    color: var(--primary);
    font-size: 1.4rem;
}

.footer__social i {
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer__social i:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.footer__copy {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 30px;
}

/* ===== СТАТИСТИКА ===== */
.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

/* ===== РАЗДЕЛИТЕЛЬ ===== */
.animated-divider {
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
    margin: 50px 0;
    opacity: 0.2;
}

/* ===== FAQ ===== */
.faq-item {
    background: rgba(15, 12, 12, 0.6);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--accent-border-hover);
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    user-select: none;
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 25px 20px;
}

/* ===== ТАБЛИЦА ТТХ ===== */
.ttx-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.ttx-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ttx-table tr:last-child {
    border-bottom: none;
}

.ttx-table td {
    padding: 10px 0;
}

.ttx-table td:first-child {
    color: var(--primary);
    font-weight: 600;
}

.ttx-table tr:nth-child(even) {
    background: var(--accent-bg);
}

/* ===== МОДАЛЬНОЕ ОКНО 3D ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-container {
    background: var(--bg-dark);
    border-radius: 20px;
    max-width: 95vw;
    max-height: 95vh;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--accent-border);
}

.modal-container--fullscreen {
    width: 95vw;
    height: 95vh;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(139, 0, 0, 0.1);
    color: white;
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-content-fullscreen {
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 100%;
}

.modal-3d-viewer-fullscreen {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.modal-info-fullscreen {
    padding: 30px;
    background: rgba(15, 12, 12, 0.5);
    overflow-y: auto;
    border-left: 1px solid var(--accent-border);
}

.modal-weapon-title {
    font-size: 2rem;
    color: var(--primary);
}

.modal-weapon-subtitle {
    color: var(--text-dim);
    margin-bottom: 20px;
}

.btn-3d-control {
    background: rgba(139, 0, 0, 0.08);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.btn-3d-control:hover {
    background: var(--primary);
    color: white;
}

/* ===== КОМАНДА ===== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 3px solid var(--accent-border);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ОРУЖИЕ ===== */
.weapon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.weapon-card {
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.weapon-card .weapon-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.weapon-card h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.weapon-card .weapon-caliber {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .modal-content-fullscreen {
        grid-template-columns: 1fr;
    }
    
    .modal-info-fullscreen {
        border-left: none;
        border-top: 1px solid var(--accent-border);
    }
}

@media (max-width: 768px) {
    .header__inner {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav {
        order: 3;
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .header__actions {
        gap: 10px;
    }
    
    .phone {
        font-size: 0.85rem;
    }
    
    .slide__title {
        font-size: 2.5rem;
    }
    
    .slide__content {
        bottom: 15%;
        left: 5%;
        max-width: 90%;
    }
    
    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-arrow--prev {
        left: 10px;
    }
    .slider-arrow--next {
        right: 10px;
    }
    
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    .carousel-card {
        min-width: 250px;
        max-width: 250px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .carousel-card {
        min-width: 200px;
        max-width: 200px;
    }
    
    .slide__title {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .weapon-grid {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}