/* ===== ОБЩИЕ СБРОСЫ И ПЕРЕМЕННЫЕ ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-main: #ffffff;
    --bg-section: #f8f9fa;
    --card-bg: #ffffff;
    --accent-orange: #e06a3b;
    --accent-pink: #ff2e93;
    --text-main: #131622;
    --text-muted: #5a6075;
    --border-color: rgba(0, 0, 0, 0.08);
    --gradient-primary: linear-gradient(135deg, #e06a3b 0%, #ff2e93 100%);
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    padding-top: 80px; /* отступ для фиксированной шапки */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ОСНОВНАЯ СЕТКА ТОВАРА ===== */

.product-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    margin-bottom: 60px;
    align-items: start;
}

/* ===== ГАЛЕРЕЯ ===== */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.main-image-box {
    width: 100%;
    max-width: 430px;
    aspect-ratio: 1 / 1;
    background: #fafafa;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-list {
    display: flex;
    gap: 12px;
    justify-content: center;
    width: 100%;
    max-width: 430px;
}

.thumb-item {
    width: 90px;
    height: 90px;
    background: #fafafa;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--accent-orange);
    transform: translateY(-2px);
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== ИНФОРМАЦИЯ О ТОВАРЕ ===== */
.product-info h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-main);
}

.product-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 25px;
}

.product-price {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.btn-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 350px;
    padding: 16px;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(224, 106, 59, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    margin-bottom: 40px;
}

.btn-add-to-cart:hover {
    box-shadow: 0 6px 18px rgba(224, 106, 59, 0.3);
    transform: translateY(-2px);
}

/* Характеристики */
.specs-short-list {
    list-style: none;
    border-top: 1px solid var(--border-color);
    padding-top: 25px;
}

.specs-short-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.specs-short-list .spec-label {
    color: var(--text-muted);
    font-weight: 500;
}

.specs-short-list .spec-value {
    color: var(--text-main);
    font-weight: 700;
    text-align: right;
}

/* ===== БЛОК "КАК ЭТО РАБОТАЕТ" (замена аккумулятора) ===== */
.how-it-works {
    background: var(--bg-section);
    border-radius: 24px;
    padding: 45px 40px;
    margin-bottom: 40px;
}

.how-it-works h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.step {
    background: var(--card-bg);
    padding: 25px 15px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.04);
    transition: transform 0.2s;
}

.step:hover {
    transform: translateY(-5px);
}

.step-num {
    display: inline-block;
    background: var(--gradient-primary);
    color: #fff;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 15px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ===== БЛОК ОПИСАНИЯ И ПРЕИМУЩЕСТВ ===== */
.description-section {
    margin: 40px 0;
    padding: 40px 35px;
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.description-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
}

.description-section p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 25px;
}

.advantages-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 30px;
}

.advantages-list li {
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-main);
}

/* ===== ФОТО ЗАМЕНЫ АККУМУЛЯТОРА (дополнительно) ===== */
.replacement-photo {
    margin-top: 30px;
}
.replacement-photo img {
    max-width: 80%;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto;
}
/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .product-gallery {
        max-width: 500px;
        margin: 0 auto;
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .nav-menu {
        display: none; /* для мобильного меню можно добавить JS-переключение */
    }
    .burger-menu {
        display: flex;
    }
    .main-image-box {
        max-width: 100%;
    }
    .product-info h1 {
        font-size: 28px;
    }
    .product-price {
        font-size: 28px;
    }
    .btn-add-to-cart {
        max-width: 100%;
    }
    .how-it-works {
        padding: 30px 20px;
    }
    .steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .step {
        padding: 20px 10px;
    }
    .description-section {
        padding: 25px 20px;
    }
    .advantages-list {
        grid-template-columns: 1fr;
    }

    .header-container {
        flex-wrap: wrap;
    }
    .replacement-photo img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .product-info h1 {
        font-size: 24px;
    }
    .specs-short-list li {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .specs-short-list .spec-value {
        text-align: left;
    }
}