/* Основные стили страницы товара */
.product-page {
    padding: 100px 0 40px 0;
    background: #f8f9fa;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}

/* Основная секция с товаром */
.product-main {
    display: grid;
    grid-template-columns: minmax(600px, 1.4fr) minmax(350px, 1fr);
    gap: 50px;
    margin-bottom: 40px;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

/* Галерея изображений */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    max-width: none;
}

.main-image {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 400px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.main-image img {
    width: 100% !important;
    height: 400px !important;
    object-fit: contain !important;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f8f9fa !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.main-image img:hover {
    transform: scale(1.02);
}

/* Принудительное отображение изображений */
.main-image img[src] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.main-image img[src*="wp-content"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Placeholder для отсутствующих изображений */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 400px;
    background: #f8f9fa;
    color: #999;
    text-align: center;
    border: 2px dashed #ddd;
    border-radius: 15px;
}

.no-image-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.no-image-placeholder p {
    font-size: 1rem;
    margin: 0;
    color: #999;
}

.thumbnail-images {
    position: relative;
    overflow: hidden;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

.thumbnail-container {
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease;
    padding: 15px 0;
    touch-action: pan-y pinch-zoom;
    width: 100%;
    margin: 0;
}

.thumbnail {
    min-width: 100px;
    height: 100px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.thumbnail.active {
    border-color: #3498db;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
    padding: 0;
}

.thumbnail:empty::before {
    content: '\f1b9';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 2rem;
    color: #ccc;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(52, 152, 219, 0.8);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-nav:hover {
    background: rgba(52, 152, 219, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 5px;
}

.carousel-next {
    right: 5px;
}

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Скрываем точки */
.image-dots {
    display: none;
}

/* Полноэкранный режим */
.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
    touch-action: none;
}

.fullscreen-overlay.active {
    display: flex;
}

.fullscreen-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 10px;
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 15px 10px;
    border-radius: 5px;
}

.fullscreen-prev {
    left: 20px;
}

.fullscreen-next {
    right: 20px;
}

.fullscreen-counter {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
}

/* Информация о товаре */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.product-header {
    text-align: center;
    width: 100%;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #27ae60;
}

/* Таблица финансирования */
.financing-table {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    margin: 0;
}

.financing-table h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.1rem;
    text-align: center;
}

.financing-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
    font-size: 0.85rem;
    margin: 0;
}

.financing-table th {
    background: #3498db;
    color: white;
    padding: 10px 6px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
}

.financing-table td {
    padding: 10px 6px;
    text-align: center;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 0.8rem;
}

.financing-table tr:nth-child(even) {
    background: #f8f9fa;
}

.financing-table tr:last-child td {
    border-bottom: none;
}

.financing-disclaimer {
    font-size: 0.75rem;
    color: #666;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
    line-height: 1.3;
}

/* Основные характеристики */
.key-specs h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.key-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.key-specs li:last-child {
    border-bottom: none;
}

/* Контактная секция */
.contact-section {
    text-align: center;
    width: 100%;
}

.contact-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.contact-text {
    color: #666;
    margin: 0;
}

.contact-text strong {
    color: #3498db;
}

/* Дополнительная информация */
.product-tabs {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.product-description {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.detailed-specs h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.detailed-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.detailed-specs li {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Секция тест-драйва */
.test-drive-section {
    background: #2c3e50;
    color: white;
    padding: 50px 0;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.test-drive-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.test-drive-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.test-drive-text p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.test-drive-form {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.test-drive-form .input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    box-shadow: none;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
}

.test-drive-form .input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.submit-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.submit-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.submit-btn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
}

/* Сообщения формы */
.form-message {
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

/* Секция похожих авто */
.similar-cars-section {
    background: white;
    padding: 50px 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 40px;
}

.similar-cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.similar-car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.similar-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.car-image {
    position: relative;
    height: 200px;
    width: 100%;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.monthly-price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #3498db;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.car-info {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.car-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.car-specs p {
    margin: 5px 0;
    font-size: 0.9rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.car-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #27ae60;
    margin-top: 15px;
}

.view-car-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 15px;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.view-car-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.no-cars {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
}

/* Стили для карточек похожих авто */
.latest-car-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.latest-car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.latest-car-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
    width: 100%;
}

.latest-car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-car-card:hover .latest-car-card__image img {
    transform: scale(1.05);
}

.latest-car-card__statuses {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge--auction {
    background: #ff6b6b;
    color: white;
}

.status-badge--verified {
    background: #51cf66;
    color: white;
}

.latest-car-card__content {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.latest-car-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.latest-car-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.spec-item i {
    color: #3498db;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.latest-car-card__location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #666;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.latest-car-card__location i {
    color: #e74c3c;
    flex-shrink: 0;
}

.latest-car-card__price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 15px;
}

.latest-car-card__link {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.latest-car-card__link:hover {
    background: #2980b9;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.no-cars-message {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    padding: 40px 20px;
}

/* Дополнительные исправления для мобильных устройств */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

/* Исправления для текста и элементов */
h1, h2, h3, h4, h5, h6 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

p, span, div {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Исправления для форм */
input, textarea, select {
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

/* Исправления для изображений */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Исправления для таблиц */
table {
    max-width: 100%;
    table-layout: fixed;
}

/* Исправления для флекс-контейнеров */
.flex-container {
    flex-wrap: wrap;
    max-width: 100%;
}

/* Адаптивность */
@media (max-width: 1195px) and (min-width: 769px) {
    .product-main {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 40px;
        border-radius: 18px;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 20px;
        order: -1; /* Перемещаем в начало */
    }
    
    .product-title {
        font-size: 2.2rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 10px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 2rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    .product-gallery {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
    
    .product-info {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .financing-table {
        margin: 0 auto;
        max-width: 500px;
    }
    
    .contact-section {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .product-page {
        padding: 80px 0 30px 0;
    }
    
    .container {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-main {
        display: flex;
        flex-direction: column;
        gap: 25px;
        padding: 20px;
        border-radius: 15px;
        width: 100%;
        margin: 0 0 30px 0;
        overflow: hidden;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 15px;
        order: -1; /* Перемещаем в начало */
    }
    
    .product-title {
        font-size: 1.8rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 1.6rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    .product-tabs {
        margin: 0 0 30px 0;
        padding: 20px;
    }
    
    .similar-cars-section {
        padding: 30px 0;
        margin: 0;
    }
    
    /* Адаптация галереи */
    .product-gallery {
        max-width: none;
        gap: 15px;
        width: 100%;
    }
    
    .main-image {
        width: 100%;
        min-height: 280px;
        padding: 0;
        margin: 0;
    }
    
    .main-image img {
        height: 280px;
        border-radius: 12px;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .no-image-placeholder {
        height: 280px;
        border-radius: 12px;
    }
    
    .no-image-placeholder i {
        font-size: 2.5rem;
    }
    
    .no-image-placeholder p {
        font-size: 0.9rem;
    }
    
    .thumbnail-images {
        padding: 0 30px;
        width: 100%;
        margin: 0;
    }
    
    .thumbnail-container {
        gap: 12px;
        padding: 12px 0;
        margin: 0;
    }
    
    .thumbnail {
        min-width: 80px;
        height: 80px;
        border-radius: 8px;
        margin: 0;
        padding: 0;
        flex-shrink: 0;
    }
    
    .thumbnail:empty::before {
        font-size: 1.5rem;
    }
    
    .carousel-nav {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    /* Адаптация таблицы финансирования */
    .financing-table {
        padding: 15px;
        border-radius: 12px;
        margin-bottom: 15px;
    }
    
    .financing-table h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .financing-table table {
        min-width: 250px;
        font-size: 0.8rem;
    }
    
    .financing-table th,
    .financing-table td {
        padding: 8px 4px;
        font-size: 0.75rem;
    }
    
    .product-info {
        min-width: 0;
        width: 100%;
    }
    
    .test-drive-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 0 15px;
    }
    
    .test-drive-form {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .test-drive-form .input {
        padding: 12px;
        font-size: 16px; /* Предотвращает зум на iOS */
        width: 100%;
        box-sizing: border-box;
    }
    
    .submit-btn {
        width: 100%;
        padding: 15px;
    }
    
    .similar-cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .latest-car-card__specs {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .latest-car-card__title {
        font-size: 1.1rem;
    }
    
    .latest-car-card__price {
        font-size: 1.2rem;
    }
    
    .detailed-specs ul {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Полноэкранный режим на мобильных */
    .fullscreen-content {
        max-width: 95%;
        max-height: 95%;
    }
    
    .fullscreen-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        padding: 8px;
    }
    
    .fullscreen-nav {
        padding: 10px 8px;
        font-size: 1.2rem;
    }
    
    .fullscreen-prev {
        left: 10px;
    }
    
    .fullscreen-next {
        right: 10px;
    }
    
    .fullscreen-counter {
        bottom: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .product-main {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 20px;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 12px;
        order: -1;
    }
    
    .product-title {
        font-size: 1.6rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 6px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 1.4rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    .main-image img {
        height: 260px;
    }
    
    .no-image-placeholder {
        height: 260px;
    }
    
    .thumbnail {
        min-width: 75px;
        height: 75px;
        flex-shrink: 0;
    }
    
    .financing-table {
        padding: 12px;
    }
    
    .financing-table table {
        min-width: 230px;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 70px 0 20px 0;
    }
    
    .container {
        padding: 0 10px;
        width: 100%;
    }
    
    .product-main {
        display: flex;
        flex-direction: column;
        padding: 15px;
        gap: 20px;
        border-radius: 12px;
        margin: 0 0 20px 0;
        overflow: hidden;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 10px;
        order: -1;
    }
    
    .product-title {
        font-size: 1.4rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 5px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 1.3rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    .product-tabs {
        margin: 0 0 20px 0;
        padding: 15px;
    }
    
    .similar-cars-section {
        padding: 20px 0;
        margin: 0;
    }
    
    /* Адаптация галереи для 480px */
    .main-image img {
        height: 240px;
    }
    
    .no-image-placeholder {
        height: 240px;
    }
    
    .thumbnail-images {
        padding: 0 25px;
    }
    
    .thumbnail-container {
        gap: 10px;
        padding: 10px 0;
    }
    
    .thumbnail {
        min-width: 70px;
        height: 70px;
        border-radius: 6px;
        flex-shrink: 0;
    }
    
    .thumbnail:empty::before {
        font-size: 1.3rem;
    }
    
    .carousel-nav {
        width: 22px;
        height: 22px;
        font-size: 10px;
    }
    
    /* Адаптация таблицы финансирования для 480px */
    .financing-table {
        padding: 12px;
        border-radius: 10px;
        margin-bottom: 12px;
    }
    
    .financing-table h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .financing-table table {
        min-width: 220px;
        font-size: 0.75rem;
    }
    
    .financing-table th,
    .financing-table td {
        padding: 6px 3px;
        font-size: 0.7rem;
    }
    
    .car-specs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .test-drive-form .input {
        padding: 10px;
    }
    
    .similar-cars-grid {
        gap: 15px;
        padding: 0 10px;
    }
    
    .latest-car-card__content {
        padding: 15px;
    }
    
    .latest-car-card__title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .latest-car-card__specs {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .spec-item {
        font-size: 0.8rem;
    }
    
    .latest-car-card__price {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .latest-car-card__link {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .test-drive-content {
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .product-main {
        display: flex;
        flex-direction: column;
        padding: 12px;
        gap: 15px;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 8px;
        order: -1;
    }
    
    .product-title {
        font-size: 1.3rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    .main-image img {
        height: 220px;
    }
    
    .no-image-placeholder {
        height: 220px;
    }
    
    .thumbnail {
        min-width: 65px;
        height: 65px;
        flex-shrink: 0;
    }
    
    .financing-table {
        padding: 10px;
    }
    
    .financing-table table {
        min-width: 200px;
    }
}

@media (max-width: 360px) {
    .product-main {
        display: flex;
        flex-direction: column;
        padding: 12px;
        gap: 15px;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 8px;
        order: -1;
    }
    
    .product-title {
        font-size: 1.2rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 4px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 1.1rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    /* Адаптация галереи для 360px */
    .main-image img {
        height: 200px;
    }
    
    .no-image-placeholder {
        height: 200px;
    }
    
    .thumbnail-images {
        padding: 0 20px;
    }
    
    .thumbnail-container {
        gap: 8px;
        padding: 8px 0;
    }
    
    .thumbnail {
        min-width: 60px;
        height: 60px;
        border-radius: 5px;
        flex-shrink: 0;
    }
    
    .thumbnail:empty::before {
        font-size: 1.1rem;
    }
    
    .carousel-nav {
        width: 20px;
        height: 20px;
        font-size: 9px;
    }
    
    /* Адаптация таблицы финансирования для 360px */
    .financing-table {
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    .financing-table h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .financing-table table {
        min-width: 200px;
        font-size: 0.7rem;
    }
    
    .financing-table th,
    .financing-table td {
        padding: 5px 2px;
        font-size: 0.65rem;
    }
    
    .view-car-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .similar-cars-grid {
        padding: 0 8px;
    }
    
    .test-drive-content {
        padding: 0 8px;
    }
}

@media (max-width: 320px) {
    .product-page {
        padding: 60px 0 15px 0;
    }
    
    .container {
        padding: 0 8px;
        width: 100%;
    }
    
    .product-main {
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 12px;
        border-radius: 10px;
        margin: 0 0 15px 0;
        overflow: hidden;
    }
    
    /* Название и цена над галереей */
    .product-header {
        text-align: center;
        margin-bottom: 6px;
        order: -1;
    }
    
    .product-title {
        font-size: 1.1rem;
        font-weight: 700;
        color: #2c3e50;
        margin-bottom: 3px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .product-price {
        font-size: 1rem;
        font-weight: 700;
        color: #27ae60;
        margin-bottom: 0;
    }
    
    .product-tabs {
        margin: 0 0 15px 0;
        padding: 10px;
    }
    
    .similar-cars-section {
        padding: 15px 0;
        margin: 0;
    }
    
    /* Адаптация галереи для 320px */
    .main-image img {
        height: 180px;
    }
    
    .no-image-placeholder {
        height: 180px;
    }
    
    .thumbnail-images {
        padding: 0 15px;
    }
    
    .thumbnail-container {
        gap: 6px;
        padding: 6px 0;
    }
    
    .thumbnail {
        min-width: 55px;
        height: 55px;
        border-radius: 4px;
        flex-shrink: 0;
    }
    
    .thumbnail:empty::before {
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }
    
    /* Адаптация таблицы финансирования для 320px */
    .financing-table {
        padding: 8px;
        border-radius: 6px;
        margin-bottom: 8px;
    }
    
    .financing-table h3 {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .financing-table table {
        min-width: 180px;
        font-size: 0.65rem;
    }
    
    .financing-table th,
    .financing-table td {
        padding: 4px 1px;
        font-size: 0.6rem;
    }
    
    .car-specs {
        gap: 8px;
    }
    
    .car-specs p {
        font-size: 0.8rem;
    }
    
    .view-car-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-top: 10px;
    }
    
    .latest-car-card__content {
        padding: 12px;
    }
    
    .latest-car-card__title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .latest-car-card__specs {
        gap: 5px;
        margin-bottom: 10px;
    }
    
    .spec-item {
        font-size: 0.75rem;
    }
    
    .latest-car-card__price {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .latest-car-card__link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .test-drive-form .input {
        padding: 8px;
        font-size: 14px;
    }
    
    .similar-cars-grid {
        padding: 0 6px;
    }
    
    .test-drive-content {
        padding: 0 6px;
    }
}
