.car-page-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.car-page-info {
    flex: 1;
}
.car-page-info p:last-of-type {
    margin-bottom: 20px;
}

.car-specs {
    width: 100%;
    border-collapse: collapse;
}
.car-specs td {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.car-specs td:last-child {
    text-align: right;
}

.photo-gallery {
    flex-basis: 400px;
    flex-shrink: 0;
}
.main-photo {
    position: relative;
    cursor: pointer;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}
.main-photo-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 75%;
}
#main-car-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    padding: 0;
    list-style-type: none;
}
.thumbnail-item {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.thumbnail-item:hover {
    border-color: #007bff;
}
.thumbnail-item.active {
    border-color: #0056b3;
}

.tab-nav {
    display: flex;
    border-bottom: 2px solid #ddd;
}
.tab-link {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1.1em;
    color: #555;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s, border-color 0.2s;
    text-decoration: none;
}
.tab-link:hover {
    color: #007bff;
    text-decoration: none;
}
.tab-link.active {
    color: #0056b3;
    font-weight: bold;
    border-color: #0056b3;
}
.tab-content {
    padding-top: 20px;
}
.tab-pane {
    display: none;
}
.tab-pane.active {
    display: block;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.review-item:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}
.review-author {
    margin: 0;
    font-size: 1.2em;
}
.review-date {
    font-size: 0.9em;
    color: #777;
}
.review-rating {
    font-size: 1.2em;
    color: #ff9800;
    margin-bottom: 10px;
}
.review-item p {
    margin: 5px 0;
}
.review-pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 15px 0;
}
.review-tags {
    list-style-type: none;
    padding: 0;
    margin: 5px 0 0 0;
}
.review-tags li {
    padding: 3px 0;
}
.review-pros-cons div:first-child .review-tags li::before {
    content: '+ ';
    color: #28a745;
    font-weight: bold;
}
.review-pros-cons div:last-child .review-tags li::before {
    content: '− ';
    color: #dc3545;
    font-weight: bold;
}

/* --- Стили для модального окна --- */
.zoom-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.2s;
}
.main-photo:hover .zoom-icon {
    opacity: 1;
}
.modal-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
.modal-container.open {
    display: block;
}
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}
.modal-window {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90vw;
    max-height: 90vh;
}
.modal-window img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}
.modal-close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}