/*
--- STYLES FOR REB-FOBOS.RU ---
Author: Gemini
Date: 2025-07-17
*/

/* 1. GLOBAL STYLES & VARIABLES
-------------------------------------------------- */
:root {
    --bg-dark: #0a0f18;
    --bg-light: #121926;
    --text-primary: #e1e8f2;
    --text-secondary: #8c9bb3;
    --accent-primary: #00aaff;
    --accent-secondary: #0077b3;
    --border-color: rgba(0, 170, 255, 0.2);
    --shadow-color: rgba(0, 170, 255, 0.1);
    
    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.3;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}


/* 2. LAYOUT & HELPERS
-------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-primary);
}

[class*="-section"] {
    padding: 80px 0;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: 500;
    font-family: var(--font-body);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 170, 255, 0.2);
}

.btn-primary:hover {
    background-color: var(--accent-secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 170, 255, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #fff;
}


/* 3. COMPONENT STYLES
-------------------------------------------------- */

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    padding: 15px 0;
    background: rgba(10, 15, 24, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.navigation ul {
    display: flex;
    gap: 30px;
}

.navigation a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-primary);
    transition: width 0.3s ease;
}

.navigation a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contacts .address-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* HERO SECTION */
.hero-section {
    padding-top: 120px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero-content .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.hero-benefits {
    margin-bottom: 40px;
}

.hero-benefits li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 15px;
}

.hero-benefits li::before {
    content: '✓';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.hero-image img {
    border-radius: 10px;
    box-shadow: 0 10px 40px var(--shadow-color);
}


/* SPECS SECTION */
.tabs {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 5px;
}
.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}
.tab-button.active {
    background: var(--accent-primary);
    color: #fff;
}
.tab-content {
    display: none;
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.tab-content.active {
    display: block;
}
.tab-content ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.tab-content li {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* DESCRIPTION SECTION */
.description-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 60px;
}

.description-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}
.description-text .section-title { text-align: left; }
.description-text .section-title::after { left: 0; transform: none; }


/* ADVANTAGES SECTION */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.advantage-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.advantage-card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.advantage-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* PACKAGE SECTION */
.package-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--bg-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.column-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 10px;
    display: inline-block;
}
.package-column ul li, .package-column ol li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}
.package-column ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}
.package-column ol li::before {
    content: counter(list-item) ".";
    counter-increment: list-item;
    position: absolute;
    left: 0;
    font-weight: bold;
    color: var(--accent-primary);
}
.package-column ol {
    counter-reset: list-item;
}

/* APPLICATIONS & REQUIREMENTS */
.applications-grid, .requirements-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.application-card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}
.application-card h3 { margin-bottom: 10px; }
.application-card p { color: var(--text-secondary); }

.requirements-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
}

/* PRICING TABLE */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px var(--shadow-color);
}
.pricing-table th, .pricing-table td {
    padding: 18px 20px;
    text-align: left;
}
.pricing-table th {
    background: rgba(0,0,0,0.2);
    font-family: var(--font-heading);
}
.pricing-table tbody tr {
    border-bottom: 1px solid var(--border-color);
}
.pricing-table tbody tr:last-child {
    border-bottom: none;
}
.pricing-table .highlight {
    background-color: rgba(0, 170, 255, 0.1);
    border-left: 4px solid var(--accent-primary);
    border-right: 4px solid var(--accent-primary);
}
.pricing-table .highlight td {
    font-weight: bold;
}

/* GALLERY */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.gallery-item img {
    border-radius: 8px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 30px var(--shadow-color);
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq-list details {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
}
.faq-list summary {
    padding: 20px;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 500;
    position: relative;
    list-style: none; /* Hide default marker */
}
.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.faq-list details[open] summary::after {
    transform: rotate(45deg);
}
.faq-list div[itemprop="acceptedAnswer"] {
    padding: 0 20px 20px;
    color: var(--text-secondary);
}

/* REVIEWS */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.review-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-primary);
    position: relative;
}
.review-card::before {
    content: '“';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 4rem;
    color: var(--border-color);
    line-height: 1;
}
.review-text {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--text-secondary);
}
.review-author {
    text-align: right;
    font-weight: bold;
}

/* CONTACT */
.contact-section {
    text-align: center;
    background: var(--bg-light);
}
.contact-info {
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 1.1rem;
}
.contact-detail {
    margin: 10px 0;
}

/* FOOTER */
.footer {
    background-color: #05080d;
    padding: 30px 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.footer p {
    margin-bottom: 8px;
}


/* 4. RESPONSIVENESS
-------------------------------------------------- */

@media (max-width: 992px) {
    .section-title { font-size: 2rem; }
    
    .hero-container, .description-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content { order: 2; }
    .hero-image { order: 1; max-width: 80%; margin: 0 auto 40px; }

    .description-text .section-title { text-align: center; }
    .description-text .section-title::after { left: 50%; transform: translateX(-50%); }

    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    
    .header-contacts .address-text { display: none; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }

    .navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        border-bottom: 1px solid var(--border-color);
    }
    .navigation.active {
        display: block;
    }
    .navigation ul {
        flex-direction: column;
        padding: 20px;
    }
    .navigation li {
        text-align: center;
        padding: 10px 0;
    }

    .burger-menu {
        display: block;
    }
    .burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .burger-menu.active span:nth-child(2) { opacity: 0; }
    .burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    .advantages-grid, .package-container {
        grid-template-columns: 1fr;
    }
}