/* --- ГЛОБАЛЬНЫЕ СТИЛИ И ПЕРЕМЕННЫЕ --- */
:root {
    --primary-color: #007bff;
    --primary-hover: #0056b3;
    --dark-bg: #22272E;
    --light-bg: #2D333B;
    --card-bg: #2D333B;
    --border-color: #434a55;
    --text-primary: #CDD9E5;
    --text-secondary: #768390;
    --accent-color: #ffc107;
    --success-color: #349A76;
    --danger-color: #C44542;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
}

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

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

section {
    padding: 80px 0;
}

section:nth-of-type(odd) {
    background-color: var(--light-bg);
}

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

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

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

/* --- ШАПКА --- */
.header {
    background-color: rgba(45, 51, 59, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

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

.main-nav ul {
    display: flex;
    gap: 30px;
}

.main-nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-family: var(--font-heading);
    position: relative;
    padding: 5px 0;
}

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

.main-nav a:hover, .main-nav a.active {
    color: var(--text-primary);
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

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

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

.btn-contact {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

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

.burger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

/* --- ПЕРВЫЙ БЛОК (HERO) --- */
.hero-section {
    padding: 60px 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-text {
    flex: 1;
}

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

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

.hero-benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.hero-benefits i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* --- БЛОК ХАРАКТЕРИСТИК (TABS) --- */
.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.tab-link {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-link:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.tab-link.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spec-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    background-color: var(--dark-bg);
    padding: 30px;
    border-radius: 10px;
}

.spec-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.spec-list i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
    text-align: center;
}

/* --- БЛОК ОПИСАНИЯ --- */
.description-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.description-text {
    flex: 1.2;
}
.description-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}
.description-image {
    flex: 1;
}

/* --- БЛОК 6 ПРЕИМУЩЕСТВ --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.benefit-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.benefit-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
}

.benefit-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* --- БЛОК КОМПЛЕКТАЦИИ --- */
.whatsinbox-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.whatsinbox-column {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
}
.whatsinbox-column h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.whatsinbox-column ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.whatsinbox-column li {
    display: flex;
    align-items: center;
    gap: 10px;
}
.whatsinbox-column i {
    color: var(--primary-color);
}

/* --- БЛОК СФЕР ПРИМЕНЕНИЯ --- */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.application-item {
    background-color: var(--card-bg);
    padding: 20px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
}
.application-item h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* --- БЛОК ТРЕБОВАНИЙ --- */
.requirements-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.requirements-list li {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    width: 250px;
}
.requirements-list i {
    display: block;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* --- БЛОК ЦЕН --- */
.price-block {
    max-width: 900px;
    margin: 0 auto;
    background-color: #2D333B;
    border-radius: 16px;
    padding: 35px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.price-block h2 {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
}
.price-block h2::after { display: none; } /* Отключаем общую линию для этого заголовка */

.price-block .subtitle {
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin-bottom: 40px;
}

.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 18px 12px; text-align: left; border-bottom: 1px solid var(--border-color); }
.price-table thead th { font-size: 13px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.8px; }
.price-table tbody tr { transition: background-color 0.3s ease; }
.price-table tbody tr:hover { background-color: #3a414c; }
.store-name { font-weight: 600; font-size: 16px; display: flex; align-items: center; }
.store-name i { margin-right: 12px; color: var(--text-secondary); font-size: 18px; width: 20px; text-align: center;}

.price-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.price { font-weight: 700; font-size: 18px; color: var(--text-primary); }

.price-change { font-size: 13px; font-weight: 600; display: flex; align-items: center; }
.price-change i { margin-right: 5px; }
.price-change.down { color: var(--success-color); }
.price-change.up { color: var(--danger-color); }

.delivery-info { font-size: 14px; color: var(--text-secondary); }

.buy-button { display: inline-block; background-color: #434a55; color: var(--text-primary); padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; text-align: center; transition: all 0.2s ease; border: none; }
.buy-button:hover { background-color: #505864; transform: scale(1.05); color: var(--text-primary); }

.price-table tr.highlight { background-color: rgba(0, 123, 255, 0.1); border-left: 4px solid var(--primary-color); border-right: 4px solid var(--primary-color); }
.price-table tr.highlight .store-name i { color: var(--primary-color); }
.price-table tr.highlight .buy-button { background-color: var(--primary-color); color: #fff; }
.price-table tr.highlight .buy-button:hover { background-color: var(--primary-hover); box-shadow: 0 2px 15px rgba(0, 123, 255, 0.3);}

/* --- ГАЛЕРЕЯ --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.gallery-grid img {
    border-radius: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-container details {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
}
.faq-container summary {
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    padding-right: 30px;
}
.faq-container summary::-webkit-details-marker {
    display: none; /* For Chrome */
}
.faq-container summary::after {
    content: '\f078'; /* Font Awesome Angle Down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.3s ease;
}
.faq-container details[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}
.faq-container details div {
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    margin-top: 15px;
    color: var(--text-secondary);
}

/* --- ОТЗЫВЫ --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.review-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border-top: 5px solid var(--primary-color);
}
.review-card blockquote {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}
.review-card blockquote::before {
    content: '\f10d'; /* Font Awesome Quote Left */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    left: -15px;
}
.review-card footer {
    font-weight: 700;
    color: var(--text-secondary);
    text-align: right;
}

/* --- КОНТАКТЫ --- */
.contact-section {
    text-align: center;
}
.contact-section p {
    max-width: 600px;
    margin: 0 auto 30px;
}
.contact-details {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}
.contact-details p {
    margin-bottom: 0;
}
.btn-cta {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font-heading);
    transition: all 0.3s ease;
}
.btn-cta:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
    color: #fff;
}

/* --- ФУТЕР --- */
.footer {
    background-color: var(--dark-bg);
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}
.footer .privacy-notice {
    font-size: 0.8rem;
    max-width: 500px;
    margin: 20px auto 0;
}

/* --- АДАПТИВНОСТЬ (MEDIA QUERIES) --- */

/* Планшеты */
@media (max-width: 992px) {
    h2 { font-size: 2rem; }
    .header-contact, .main-nav { display: none; }
    .burger-menu { display: block; }
    
    .main-nav {
        display: flex;
        position: absolute;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        max-width: 320px;
        height: calc(100vh - var(--header-height));
        background-color: var(--light-bg);
        flex-direction: column;
        padding: 40px;
        transition: right 0.4s ease-in-out;
    }
    .main-nav.active {
        right: 0;
        box-shadow: -10px 0 20px rgba(0,0,0,0.2);
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
    
    .hero-content, .description-content { flex-direction: column; text-align: center; }
    .hero-text { order: 2; }
    .hero-image { order: 1; margin-bottom: 30px; }
    .hero-benefits { justify-content: center; }

    .benefits-grid, .reviews-grid, .applications-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid { grid-template-columns: 1fr; }
}

/* Мобильные телефоны */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .hero-text h1 { font-size: 2.2rem; }

    .benefits-grid, .whatsinbox-content, .reviews-grid, .applications-grid {
        grid-template-columns: 1fr;
    }

    .price-table thead { display: none; }
    .price-table tr {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 10px;
    }
     .price-table tr.highlight { border-width: 2px; border-color: var(--primary-color); }
    .price-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        border-bottom: 1px solid var(--border-color);
    }
    .price-table td:last-child { border-bottom: none; }
    .price-table td::before {
        content: attr(data-label);
        font-weight: bold;
        color: var(--text-secondary);
    }
    .buy-button { width: 100%; margin-top: 10px; }
    /* Этот подход требует JS для добавления data-label, но можно сделать и без него, как сейчас */
}