/*
 * CSS для сайта DRONOV-STUPOR-SHTIL-N-MINI.RU
 * Версия 1.0
 */

/* ------------------- */
/* -- Переменные и глобальные стили -- */
/* ------------------- */
:root {
    --primary-color: #0a2d4d; /* Темно-синий */
    --secondary-color: #4a90e2; /* Ярко-синий акцент */
    --background-color: #ffffff; /* Белый фон */
    --light-gray-bg: #f4f6f9; /* Светло-серый фон для секций */
    --text-color: #333333; /* Основной цвет текста */
    --heading-color: #0a2d4d; /* Цвет заголовков */
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --accent-color-yellow: #ffc107; /* Желтый для акцента цены */

    --font-main: 'Roboto', sans-serif;
    --font-heading: 'Montserrat', sans-serif;

    --container-width: 1200px;
    --spacing-unit: 1rem; /* 16px */
}

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

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px */
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--spacing-unit);
    padding-right: var(--spacing-unit);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--heading-color);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 1.5);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; text-align: center; }
h3 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-unit);
}

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

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

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

ul, ol {
    list-style-position: inside;
    padding-left: 0;
}

section {
    padding: calc(var(--spacing-unit) * 4) 0;
}

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

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-family: var(--font-heading);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white-color);
    border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.btn-email {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-email:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* ------------------- */
/* ------ Шапка ------ */
/* ------------------- */
.header {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: var(--spacing-unit) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

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

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

.nav-list {
    display: flex;
    list-style: none;
    gap: calc(var(--spacing-unit) * 1.5);
}

.nav-list a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

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

.nav-list a:hover::after {
    width: 100%;
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: var(--spacing-unit);
}

.header-address {
    font-size: 0.8rem;
    color: #666;
    text-align: right;
}

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

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

/* ------------------- */
/* ------ Блоки ------ */
/* ------------------- */

/* -- Hero -- */
.hero-section {
    background-color: var(--background-color);
}
.hero-container {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
}
.hero-content {
    flex: 1;
}
.hero-image {
    flex: 1;
    max-width: 500px;
}
.hero-benefits {
    list-style: none;
    padding-left: 0;
    margin-top: calc(var(--spacing-unit) * 2);
}
.hero-benefits li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.hero-benefits li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* -- Тех. характеристики -- */
.tabs {
    max-width: 900px;
    margin: 0 auto;
}
.tab-buttons {
    display: flex;
    justify-content: center;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: calc(var(--spacing-unit) * 2);
}
.tab-button {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #666;
    position: relative;
    transition: color 0.3s ease;
}
.tab-button.active {
    color: var(--secondary-color);
}
.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.spec-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-unit);
}
.spec-list li {
    display: flex;
    align-items: center;
    background: var(--white-color);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
}
.spec-list span {
    margin-right: 0.75rem;
    flex-shrink: 0;
}
.spec-list img {
    width: 24px;
    height: 24px;
}

/* -- Описание -- */
.description-container {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
}
.description-text {
    flex: 1.2;
}
.description-image {
    flex: 1;
    max-width: 450px;
}
.description-image img {
    border-radius: 8px;
}

/* -- Преимущества -- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}
.advantage-item {
    background: var(--white-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.advantage-icon {
    margin-bottom: var(--spacing-unit);
}
.advantage-icon img {
    width: 50px;
    height: 50px;
    margin: 0 auto;
}

/* -- Комплектация -- */
.package-container {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}
.package-column {
    flex: 1;
    background: var(--white-color);
    padding: calc(var(--spacing-unit) * 2);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.package-list, .setup-list {
    padding-left: 0;
    list-style: none;
}
.package-list li, .setup-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
}
.package-list li::before {
    content: '▪';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}
.setup-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    background: var(--secondary-color);
    color: var(--white-color);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    position: absolute;
    left: -5px;
    top: -2px;
}
.setup-list {
    counter-reset: step-counter;
}

/* -- Применение -- */
.applications-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}
.application-item {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-radius: 8px;
}
.application-item h3 {
    color: var(--white-color);
}
.application-item p {
    color: rgba(255,255,255,0.8);
}

/* -- Требования -- */
.requirements-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}
.requirements-list li {
    background: var(--white-color);
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
}
.requirements-list li span {
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    font-weight: bold;
}

/* -- Цены -- */
.price-table-wrapper {
    overflow-x: auto;
}
.price-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.price-table th, .price-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.price-table th {
    background: var(--primary-color);
    color: var(--white-color);
}
.price-table tbody tr:nth-child(even) {
    background-color: var(--white-color);
}
.price-table tbody tr.highlighted-price {
    background-color: var(--accent-color-yellow);
    font-weight: bold;
}
.price-table tbody tr.highlighted-price strong {
    color: var(--primary-color);
}

/* -- Галерея -- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-unit);
}
.gallery-grid img {
    border-radius: 8px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}
.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* -- FAQ -- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: var(--spacing-unit);
    overflow: hidden;
}
.faq-item summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    list-style: none; /* Hide default marker */
}
.faq-item summary::-webkit-details-marker {
    display: none;
}
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-item p {
    padding: 0 1rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

/* -- Отзывы -- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 2);
}
.review-card {
    background: var(--white-color);
    padding: calc(var(--spacing-unit) * 1.5);
    border-left: 5px solid var(--secondary-color);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.review-card blockquote {
    border: none;
    padding: 0;
    margin: 0 0 1rem 0;
    font-style: italic;
}
.review-card cite {
    font-weight: 500;
    color: var(--primary-color);
}

/* -- Контакты -- */
.contact-section {
    text-align: center;
}
.contact-section p {
    font-size: 1.2rem;
}
.contact-section .btn {
    margin-top: var(--spacing-unit);
    font-size: 1.2rem;
}

/* ------------------- */
/* ------ Футер ------ */
/* ------------------- */
.footer {
    background-color: var(--primary-color);
    color: var(--white-color);
    text-align: center;
    padding: calc(var(--spacing-unit) * 2);
}
.footer p {
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.8);
}
.footer .disclaimer {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
}

/* ------------------- */
/* ---- Адаптивность --- */
/* ------------------- */

/* -- Планшеты -- */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .header-contacts { flex-direction: column; align-items: flex-end; }
    .header-address { font-size: 0.7rem; }
    .btn-email { padding: 0.5rem 1rem; font-size: 0.9rem; }

    .hero-container { flex-direction: column; text-align: center; }
    .description-container { flex-direction: column; }
    .description-image { order: -1; }

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

/* -- Мобильные устройства -- */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        padding: var(--spacing-unit) 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .main-nav.active .nav-list {
        display: flex;
    }
    .nav-list li {
        text-align: center;
    }
    
    .header-contacts {
        display: none;
    }

    .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(7px, -6px);
    }
    
    .advantages-grid,
    .applications-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .package-container {
        flex-direction: column;
    }
    
    .tab-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

/* -- Маленькие мобильные устройства -- */
@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }

    section {
        padding: calc(var(--spacing-unit) * 2) 0;
    }
    
    .tab-buttons {
        flex-wrap: wrap;
    }

    .spec-list {
        grid-template-columns: 1fr;
    }
}