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

html {
    width: 100%;
    overflow-x: hidden; /* защита от горизонтального скролла */
}

:root {
    --primary-red: #ff4757;
    --primary-pink: #ff6b9d;
    --light-pink: #ff8fab;
    --very-light-pink: #ffb3c6;
    --pale-pink-bg: #fff0f5;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #2d3436;
    --text-gray: #636e72;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--pale-pink-bg);
    overflow-x: hidden; /* дополнительная защита от горизонтальной прокрутки */
}

/* Базовая адаптивность медиа-контента */
img,
video {
    max-width: 100%;
    height: auto;
}

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

/* Плашка Telegram */
.telegram-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #0088cc, #00a2e8);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}
.telegram-banner:hover {
    opacity: 0.95;
    color: #fff;
    transform: translateY(-1px);
}
.telegram-banner-icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.telegram-banner-icon svg {
    width: 100%;
    height: 100%;
}
.telegram-banner-text {
    white-space: nowrap;
}
@media (max-width: 600px) {
    .telegram-banner-text {
        white-space: normal;
        text-align: center;
    }
    .telegram-banner {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(255, 71, 87, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo h1,
.logo div {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--white);
}

.logo-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--white);
    color: var(--primary-red);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

nav {
    position: relative;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    background: transparent;
    color: #ff2d2d;
    padding: 6rem 0;
    min-height: 420px;
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 0.5;
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('photo/back1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.82;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-text-block {
    display: inline-block;
}

.hero h1,
.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff2d2d;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.4), 0 0 45px rgba(0, 0, 0, 0.3), 0 0 70px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #ff4444;
    text-shadow: 0 0 18px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 0, 0, 0.25), 0 0 60px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-red);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: var(--light-gray);
}

.btn-card {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    font-size: inherit;
}

.btn-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    color: var(--white);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* Cars Section - content-visibility ускоряет отрисовку при скролле */
.cars-section {
    padding: 4rem 0;
    background-color: var(--pale-pink-bg);
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-pink));
    margin: 1rem auto;
    border-radius: 2px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.car-card {
    background-color: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: auto 400px;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.car-image {
    width: 100%;
    aspect-ratio: 3 / 4;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
}

.car-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.3s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.1);
}

.car-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    max-width: 70%;
    z-index: 2;
}

.car-badge {
    background-color: var(--white);
    color: var(--primary-red);
    padding: 0.35rem 0.7rem;
    border-radius: 16px;
    font-weight: bold;
    font-size: 0.75rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.badge-cheap { background: #4caf50; color: #fff; }
.badge-vip { background: linear-gradient(135deg, var(--primary-red), var(--primary-pink)); color: #fff; }
.badge-verified { background: #2196f3; color: #fff; }
.badge-onsite { background: #ff9800; color: #fff; }

.verified-badge {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
}

.car-info {
    padding: 1.5rem;
}

.car-info h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.car-price {
    color: var(--primary-red);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.rental-prices {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.price-item {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.car-details {
    color: var(--text-gray);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.verified-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.verified-features span {
    background-color: var(--very-light-pink);
    color: var(--primary-red);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background-color: var(--pale-pink-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--very-light-pink), var(--white));
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 107, 157, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-red);
}

.feature-card h3 {
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-gray);
}

/* On-Site Section */
.on-site-section {
    padding: 4rem 0;
    background-color: var(--pale-pink-bg);
}

.on-site-content {
    max-width: 800px;
    margin: 0 auto;
}

.on-site-info h2 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.on-site-info > p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.benefits-list {
    margin-bottom: 3rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(255, 71, 87, 0.1);
}

.benefit-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.benefit-item h3 {
    color: var(--primary-red);
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-gray);
}

.request-form {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    padding: 2.5rem;
    border-radius: 20px;
    color: var(--white);
}

.request-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.request-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.request-form input,
.request-form select,
.request-form textarea {
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
    outline: 3px solid var(--white);
}

.request-form button {
    margin-top: 0.5rem;
}

/* Verified Section */
.verification-info {
    text-align: center;
    margin-bottom: 3rem;
}

.verification-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
    padding: 2rem 3rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.3);
}

.check-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.verification-badge h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.verification-badge p {
    opacity: 0.95;
}

/* Locations Section */
.locations-section {
    padding: 4rem 0;
    background-color: var(--pale-pink-bg);
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.location-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.15);
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.location-card h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.location-address {
    color: var(--dark-gray);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.location-hours,
.location-phone {
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.map-container {
    margin-top: 3rem;
}

.map-placeholder {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.map-placeholder h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.map-placeholder p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.map-visual {
    width: 100%;
    height: 300px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    position: relative;
    margin-top: 1rem;
}

.map-marker {
    position: absolute;
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Car Detail Page */
.car-detail-section {
    padding: 2rem 0 4rem;
    background-color: var(--pale-pink-bg);
    min-height: calc(100vh - 200px);
}

.back-link {
    display: inline-block;
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--primary-pink);
    transform: translateX(-5px);
}

.car-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
    color: var(--white);
    border-radius: 20px;
}

.car-detail-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.car-detail-price {
    font-size: 2rem;
    font-weight: bold;
    opacity: 0.95;
}

.car-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.car-detail-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
}

.car-detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Галерея фото и видео */
.media-gallery {
    margin-bottom: 2rem;
}

.main-media {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.2);
    margin-bottom: 1.5rem;
    position: relative;
    aspect-ratio: 3 / 4;
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
}

.main-media img,
.main-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.media-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.media-thumbnail {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
}

.media-thumbnail:hover {
    border-color: var(--primary-red);
    transform: scale(1.05);
}

.media-thumbnail.active {
    border-color: var(--primary-red);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
}

.media-thumbnail img,
.media-thumbnail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.media-thumbnail .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: var(--primary-red);
    pointer-events: none;
}

.media-thumbnail .video-icon::before {
    content: '▶';
    margin-left: 2px;
}

.car-detail-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info,
.car-specs,
.car-description,
.car-usage {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.1);
}

.contact-info h2,
.car-specs h2,
.car-description h2,
.car-usage h2 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--very-light-pink);
}

.contact-info h2 {
    font-size: 1.2rem;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item strong {
    color: var(--dark-gray);
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    transition: color 0.3s ease;
    display: block;
    margin-top: 0.3rem;
}

.contact-item a:hover {
    color: var(--primary-pink);
}

.contact-item p {
    color: var(--text-gray);
    margin: 0;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.6;
    margin-top: 0.3rem;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: linear-gradient(135deg, var(--very-light-pink), var(--white));
    border-radius: 10px;
}

.spec-label {
    color: var(--text-gray);
    font-weight: 500;
}

.spec-value {
    color: var(--primary-red);
    font-weight: bold;
}

.car-description p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.usage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.usage-tag {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    color: var(--white);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

/* Rental Prices Blocks */
.rental-prices-block,
.delivery-prices-block {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(255, 71, 87, 0.1);
}

.rental-prices-block h2,
.delivery-prices-block h2 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--very-light-pink);
}

.prices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.price-card {
    background: linear-gradient(135deg, var(--primary-pink), var(--light-pink));
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    color: var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(255, 107, 157, 0.3);
}

.price-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.5);
}

.price-card.delivery {
    background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
}

.price-time {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px; /* ниже шапки */
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: linear-gradient(135deg, var(--primary-red), var(--primary-pink));
        padding: 1rem 1.5rem 2rem;
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        z-index: 1200;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        border-radius: 10px;
    }

    .hero h1,
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-grid,
    .locations-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .benefit-item {
        flex-direction: column;
        text-align: center;
    }

    .car-detail-content {
        grid-template-columns: 1fr;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .prices-grid {
        grid-template-columns: 1fr;
    }

    .rental-prices {
        flex-direction: column;
    }

    .media-thumbnails {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .media-thumbnail {
        aspect-ratio: 3 / 4;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }

    .hero {
        padding: 3rem 0;
        min-height: 320px;
    }

    .hero h1,
    .hero h2 {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .car-detail-header h1 {
        font-size: 1.8rem;
    }

    .car-detail-price {
        font-size: 1.5rem;
    }

    .cars-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .media-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .media-thumbnail {
        aspect-ratio: 3 / 4;
    }
}
