/* Основные сбросы и переменные */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #0b0b0b;
    --accent-color: #ff3b19;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --table-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* Шапка сайта */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo-img {
    height: 34px;
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Главный блок товара (Hero) */
.product-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.product-titles h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.product-titles h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.accent-line {
    width: 50px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 40px;
}

.performance-block {
    max-width: 500px;
}

.performance-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.performance-block p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

.product-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-container img {
    max-width: 520px;
    width: 100%;
    height: auto;
    display: block;
}

/* Секция спецификаций */
.specifications-section {
    max-width: 1000px;
    margin: 40px auto 60px auto;
    padding: 0 20px;
}

.specifications-section h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

/* Стили таблицы */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--table-border);
}

.specs-table tr {
    border-bottom: 1px solid var(--table-border);
}

.specs-table tr:nth-child(odd) {
    background-color: rgba(255, 255, 255, 0.01);
}

.specs-table tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.2);
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 16px 24px;
    font-size: 14px;
}

.specs-table td:first-child {
    color: var(--text-muted);
    width: 40%;
    font-weight: 500;
}

.specs-table td:last-child {
    color: var(--text-main);
    font-weight: 600;
}

/* ===== GALLERY SECTION (ВЫНЕСЕНО НА ВЕРХНИЙ УРОВЕНЬ) ===== */
.gallery-section {
    background: #0a0a0a;
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок GALERY — по центру, красный (как SPECIFICATION) */
.gallery-section h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 28px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 40px 0;
    font-weight: 700;
}

/* Сетка 3 в ряд (базовое правило для десктопа) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* Ячейка — квадрат, обрезка по контейнеру */
.gallery-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #000;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Белая линия-разделитель между блоками */
.section-divider {
    max-width: 1200px;
    margin: 60px auto;
    border: none;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
}

/* Секция формы обратной связи */
.contact-section {
    max-width: 500px;
    margin: 0 auto 80px auto;
    padding: 0 20px;
}

.contact-section h3 {
    text-align: center;
    color: var(--accent-color);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input {
    width: 100%;
    padding: 16px 20px;
    background-color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    color: #333;
    outline: none;
}

.form-group input::placeholder {
    color: #888;
}

.submit-btn {
    background-color: var(--accent-color);
    color: var(--text-main);
    border: none;
    border-radius: 4px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.submit-btn:hover {
    opacity: 0.9;
}

/* Кнопка прокрутки вверх */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 42px;
    height: 42px;
    background-color: #333;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: background-color 0.3s ease;
    z-index: 100;
}

.scroll-top:hover {
    background-color: var(--accent-color);
}

/* ===== АДАПТИВНОСТЬ ===== */

/* Планшет и уже: hero в колонку, шапка в колонку */
@media (max-width: 900px) {
    .product-hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .accent-line {
        margin: 0 auto 30px auto;
    }

    .performance-block {
        max-width: 100%;
    }

    header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }
}   /* ← медиа-запрос 900px ЗАКРЫТ ЗДЕСЬ, галерея больше не внутри него */

/* Телефон: галерея в одну колонку */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .gallery-section h3 {
        font-size: 22px;
    }
}