/* --- 1. CONFIG & RESET --- */
:root {
    --red: #ff3b3b;          /* Основной красный */
    --green: #25d366;        /* Цвет WhatsApp/Успех */
    --black: #050505;        /* Фон сайта */
    --dark: #111111;         /* Фон карточек */
    --white: #ffffff;
    --gray: #888888;
    
    --font-head: 'Oswald', sans-serif;
    --font-body: 'Manrope', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.5;
}

h1, h2, h3, h4 { 
    font-family: var(--font-head); 
    text-transform: uppercase; 
    line-height: 1.1; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Утилиты */
.red { color: var(--red); }
.text-green { color: var(--green); }
.stroke-text { -webkit-text-stroke: 1px var(--white); color: transparent; }

/* --- 2. HEADER --- */
.glass-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 15px 5%;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-size: 1.8rem; font-weight: 700; letter-spacing: 2px; font-family: var(--font-head); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; opacity: 0.8; }
.nav-links a:hover { color: var(--red); opacity: 1; }
.burger { display: none; cursor: pointer; font-size: 1.5rem; }

/* --- 3. HERO SECTION --- */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?auto=format&fit=crop&w=1920&q=80') center/cover;
    filter: brightness(0.3) grayscale(100%);
    z-index: -1;
}

.hero-logo-img {
    max-width: 450px; width: 80%; margin-bottom: 25px;
    filter: invert(1); /* Для черного логотипа */
}

.hero-sub {
    font-size: 1.1rem; margin-bottom: 40px; text-transform: uppercase;
    color: #ccc; letter-spacing: 3px;
}

.neon-btn {
    padding: 18px 50px;
    background: var(--red);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
    letter-spacing: 1px;
}
.neon-btn:hover { background: var(--white); color: var(--red); box-shadow: 0 0 30px rgba(255, 59, 59, 0.4); }

/* MARQUEE */
.marquee-wrapper {
    position: absolute; bottom: 0; width: 100%;
    background: var(--red); color: var(--black);
    padding: 12px 0; overflow: hidden;
}
.marquee { display: flex; white-space: nowrap; animation: scroll 60s linear infinite; }
.marquee span { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; margin-right: 60px; text-transform: uppercase; }
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 4. SECTIONS GENERAL --- */
.section { padding: 100px 0; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

.section-head { font-size: 3rem; margin-bottom: 20px; }
.big-title { font-size: 3.5rem; margin-bottom: 60px; text-align: center; letter-spacing: 1px; }

/* Welcome Block */
.welcome-block { display: flex; justify-content: center; }
.welcome-text {
    max-width: 800px; text-align: center; background: #0a0a0a;
    padding: 50px; border: 1px solid #222; position: relative;
}
.welcome-text strong { color: var(--white); font-weight: 800; }

/* --- 5. PRICE LIST (BENTO GRID) --- */
.bento-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: stretch;
}
.cyber-card {
    background: #0e0e0e; border: 1px solid #222;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.4s;
}
.cyber-card:hover {
    border-color: var(--red); transform: translateY(-8px);
    box-shadow: 0 15px 40px -10px rgba(255, 59, 59, 0.15); z-index: 2;
}

/* Сетка: 2 сверху, 3 снизу */
.cyber-card:nth-child(1), .cyber-card:nth-child(2) { grid-column: span 3; }
.cyber-card:nth-child(3), .cyber-card:nth-child(4), .cyber-card:nth-child(5) { grid-column: span 2; }

/* Внутренности карточки */
.card-top { padding: 35px 35px 10px 35px; }
.cyber-card h3 { font-size: 2rem; margin-bottom: 12px; }
.tech-badge {
    display: inline-block; font-size: 0.75rem; color: #777;
    border: 1px solid #333; padding: 5px 12px; border-radius: 50px; text-transform: uppercase;
}
.card-mid { padding: 15px 35px; }
.main-price-val { font-family: var(--font-head); font-size: 4.5rem; line-height: 0.9; font-weight: 700; }
.currency { font-size: 1.5rem; color: var(--red); vertical-align: top; font-weight: 700; margin-right: 5px; }
.desc-tech { color: #555; font-size: 0.85rem; margin-top: 15px; font-family: 'Courier New', monospace; text-transform: uppercase; }

.card-bot {
    background: #121212; padding: 25px 35px; border-top: 1px dashed #333;
    min-height: 110px; display: flex; align-items: center;
}
.prices-list { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pl-item { display: flex; align-items: center; color: #999; font-size: 0.9rem; }
.pl-item::before { content: ""; display: block; width: 6px; height: 6px; background: var(--red); margin-right: 12px; }

.trial-box { color: var(--white); font-size: 0.95rem; line-height: 1.5; font-weight: 600; }
.blink { color: var(--red); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0; } }

.warning-box {
    text-align: center; margin-top: 60px; color: var(--red); font-weight: 700;
    border: 2px dashed #333; padding: 20px; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- 6. PROMO & LOYALTY --- */
.promo-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px; margin-bottom: 50px;
}
.promo-card {
    background: var(--dark); border: 1px solid #333; padding: 30px;
    display: flex; align-items: center; gap: 20px; border-radius: 8px; transition: 0.3s;
}
.promo-card:hover { border-color: var(--red); transform: translateY(-5px); }
.pc-icon { font-size: 3rem; }
.pc-discount { font-size: 2.5rem; font-family: var(--font-head); color: var(--red); font-weight: 700; line-height: 1; margin-bottom: 5px; }

/* Друзья Energym */
.loyalty-block {
    background: #0f0f0f; border: 1px dashed #333; padding: 50px 30px;
    text-align: center; border-radius: 10px;
}
.loyalty-title { font-size: 3rem; margin-bottom: 20px; letter-spacing: 2px; }
.loyalty-desc { color: #ccc; margin-bottom: 50px; font-size: 1.1rem; }
.loyalty-track {
    display: flex; justify-content: space-between; align-items: flex-end;
    position: relative; max-width: 900px; margin: 0 auto; overflow-x: auto; padding-bottom: 20px;
}
.l-step { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; min-width: 90px; }
.l-icon { font-size: 2.5rem; margin-bottom: 15px; transition: 0.3s; }
.l-step:hover .l-icon { transform: scale(1.2); }
.l-circle {
    width: 40px; height: 40px; background: var(--dark); border: 2px solid var(--red);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 700; margin-bottom: 10px; box-shadow: 0 0 10px rgba(255,59,59,0.2);
    z-index: 2;
}
.l-line {
    flex-grow: 1; height: 2px; background: #333; margin: 0 5px;
    position: relative; bottom: 55px; min-width: 30px; z-index: 1;
}

/* --- 7. BUTTONS (UNIFIED STYLE) --- */
/* Единый стиль для кнопок в контактах и модальном окне */
.soc-btn, .m-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; height: 50px; /* Фикс высота */
    border-radius: 6px; border: none;
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem;
    color: white; transition: 0.3s;
}
.soc-btn i, .m-btn i { font-size: 1.1rem; }
.soc-btn:hover, .m-btn:hover { opacity: 0.9; transform: translateY(-2px); }

/* Цвета кнопок */
.wa-btn { background: #25D366; }
.tg-btn { background: #0088cc; }
.in-btn { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.vk-btn { background: #0077FF; }
/* Кнопка Позвонить */
.btn-ph { background: #222; border: 1px solid #444; height: 55px; font-size: 0.95rem; }

/* Сетки для кнопок */
.social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 25px; }
.m-soc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 15px; }

/* --- 8. TRAINERS --- */
.dark-bg { background-color: #0b0b0b; }
.sub-text { text-align: center; color: var(--gray); margin-top: -40px; margin-bottom: 50px; }
.trainers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.trainer-card {
    background: var(--dark); border-radius: 8px; overflow: hidden; cursor: pointer; transition: 0.3s;
    border: 1px solid transparent;
}
.trainer-card:hover { transform: translateY(-5px); border-color: var(--red); }
.t-img { width: 100%; height: 400px; object-fit: cover; filter: grayscale(100%); transition: 0.5s; }
.trainer-card:hover .t-img { filter: grayscale(0%); }
.t-info-simple { padding: 25px; text-align: center; }
.t-spec { color: var(--red); font-size: 0.9rem; font-weight: 700; margin-bottom: 15px; display: block; }

/* --- 9. MODAL WINDOWS --- */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0;
    width: 100%; height: 100%; overflow: auto;
    background-color: rgba(0,0,0,0.95); backdrop-filter: blur(5px);
    align-items: center; justify-content: center;
}
.modal.active { display: flex; }

/* Trainer Modal Content */
.modal-content {
    background-color: #0f0f0f; width: 90%; max-width: 900px;
    border: 1px solid var(--red); position: relative; animation: zoomIn 0.3s;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}
@keyframes zoomIn { from {opacity: 0; transform: scale(0.95);} to {opacity: 1; transform: scale(1);} }

.close-modal {
    position: absolute; top: 15px; right: 25px; color: #fff; font-size: 40px;
    cursor: pointer; z-index: 10; line-height: 1; transition: 0.3s;
}
.close-modal:hover { color: var(--red); transform: rotate(90deg); }

.modal-inner { display: flex; flex-wrap: wrap; }
.m-img-box { flex: 4; min-width: 300px; }
.m-img { width: 100%; height: 100%; object-fit: cover; min-height: 500px; display: block; }
.m-info { flex: 5; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.m-name { font-size: 3rem; margin-bottom: 10px; line-height: 1; }
.m-spec { color: var(--red); font-size: 1.2rem; font-weight: 700; margin-bottom: 25px; text-transform: uppercase; }
.m-desc { color: #bbb; margin-bottom: 30px; line-height: 1.6; }

/* Gallery Lightbox */
.lightbox-modal { background-color: rgba(0, 0, 0, 0.98); }
.lightbox-content {
    display: block; max-width: 90%; max-height: 90vh;
    border: 2px solid var(--red); box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* --- 10. GALLERY & OTHER --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 15px; }
.g-item img { width: 100%; height: 300px; object-fit: cover; filter: grayscale(100%); transition: 0.5s; cursor: pointer; }
.g-item:hover img { filter: grayscale(0%); transform: scale(1.05); }

.tg-banner {
    padding: 80px 0; background: linear-gradient(135deg, #0088cc 0%, #005f8f 100%);
    text-align: center; position: relative; overflow: hidden;
}
.tg-btn {
    display: inline-block; background: white; color: #005f8f;
    padding: 15px 40px; font-weight: 800; margin-top: 25px; border-radius: 50px;
}

/* --- 11. CONTACTS & FOOTER --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.c-item { margin-bottom: 30px; border-left: 2px solid #333; padding-left: 20px; }
.c-item span { color: var(--gray); font-size: 0.85rem; text-transform: uppercase; display: block; margin-bottom: 5px; }
.c-item p { font-size: 1.6rem; font-family: var(--font-head); color: var(--white); }

.rating-widgets { display: flex; gap: 20px; margin-top: 30px; }
.r-widget { flex: 1; background: #1a1a1a; padding: 15px; border-radius: 8px; border-left: 4px solid; }
.w-2gis { border-color: #a3c35b; } .w-yandex { border-color: #fc3f1d; }

.map-frame iframe { width: 100%; height: 500px; border: 1px solid #333; filter: invert(90%) hue-rotate(180deg) grayscale(80%); }

.offer-link { margin-top: 40px; }
.offer-link a { color: #666; text-decoration: underline; font-size: 0.9rem; }

footer { padding: 40px; text-align: center; border-top: 1px solid #1a1a1a; color: #444; font-size: 0.8rem; background: #050505; }

/* ANIMATION */
.fade-in { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* --- 12. MOBILE --- */
@media (max-width: 1024px) {
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .cyber-card:nth-child(n) { grid-column: span 1; }
    .cyber-card:last-child { grid-column: span 2; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .burger { display: block; }
    .nav-links.active {
        display: flex; flex-direction: column; position: absolute; top: 70px; left: 0;
        width: 100%; background: #0a0a0a; padding: 30px; border-bottom: 1px solid #333;
    }
    .big-title { font-size: 2.5rem; }
    .bento-grid { display: flex; flex-direction: column; }
    .main-price-val { font-size: 3.5rem; }
    
    /* Модалка на телефоне */
    .modal-inner { flex-direction: column; }
    .m-img-box, .m-img { min-height: 250px; }
    .m-info { padding: 30px 20px; }
    .m-name { font-size: 2rem; }
    
    .social-grid, .m-soc-grid { grid-template-columns: 1fr; } /* Кнопки в 1 колонку */
    .contact-grid { grid-template-columns: 1fr; }
    .map-frame iframe { height: 300px; }
}