* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: #333;
    line-height: 1.6;
}

header {
    background: #fff;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

nav a:hover {
    color: #FD0000;
}

nav a.active {
    color: #FD0000;
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60%;
    height: 3px;
    background-color: #FD0000;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
    position: relative;
}

.hero-content {
    background: #f5f5f5;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.2;
}

.hero-button {
    background-image: url('../image/Rectangle 57.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border: none;
    padding: 0;
    width: 357px;
    height: 98px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-button:hover {
    opacity: 0.9;
}   

.hero-image {
    background: url('../image/Image.png') center bottom;
    background-size: 100% auto;
    background-repeat: no-repeat;
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.stats {
    background: #3C0001;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-item h3 {
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 400;
}

.stat-item .number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
}

.stat-item .number.red {
    color: #FD0000;
}

.about {
    padding: 100px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.about-content h2 {
    font-family: 'Open Sans', sans-serif;
    color: #FD0000;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-content h3 {
    font-family: 'Open Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    line-height: 1.3;
}

.about-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-icon.shield {
    background: #FD0000;
    color: white;
}

.feature-icon.wallet {
    background: #1a237e;
    color: white;
}

.feature-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.founder {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
}

.founder-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.founder-info h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.founder-info p {
    color: #666;
    margin-bottom: 0;
}

.founder-signature {
    color: #FD0000;
    font-style: italic;
    font-size: 18px;
    margin-left: auto;
}

.overview-image {
    width: 100%;
    height: auto;
    margin-top: 40px;
    display: block;
}

.about-image {
    background: url('../image/driver.jpg') center/cover;
    border-radius: 10px;
}

.catalog {
    padding: 100px 40px;
    background: #f9f9f9;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.catalog-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
}

.catalog-button {
    background-image: url('../image/Rectangle 57.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.catalog-button:hover {
    opacity: 0.9;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.car-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    width: 600px;
    height: 308px;
    display: flex;
}

.car-image-wrapper {
    position: relative;
    width: 50%;
    height: 100%;
    overflow: hidden;
    flex-shrink: 0;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: #FD0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
}

.info-icon:hover {
    transform: scale(1.1);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 50px auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.modal-close:hover {
    background: #f0f0f0;
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-car-image-wrapper {
    position: relative;
    width: 100%;
}

.modal-car-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.carousel-btn-prev {
    left: 15px;
}

.carousel-btn-next {
    right: 15px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 40px;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: #8B0000;
    width: 50px;
}

.carousel-indicator:hover {
    background: #aaa;
}

.modal-car-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-car-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}

.modal-spec {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.modal-spec-label {
    font-size: 16px;
    color: #666;
}

.modal-spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #FD0000;
}

.modal-pricing {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.modal-price-old {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 10px;
}

.modal-price-new {
    font-size: 36px;
    font-weight: 700;
    color: #FD0000;
}

.modal-button {
    background-image: url('../image/Rectangle 57.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 30px;
    width: 100%;
    transition: opacity 0.3s;
}

.modal-button:hover {
    opacity: 0.9;
}

.modal-vin {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 14px;
    font-weight: 700;
    color: #333;
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .carousel-btn-prev {
        left: 10px;
    }

    .carousel-btn-next {
        right: 10px;
    }

    .carousel-indicator {
        width: 30px;
        height: 4px;
    }

    .carousel-indicator.active {
        width: 40px;
    }
}

.car-details {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.car-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    align-self: center;
}

.car-model {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.2;
}

.car-price {
    font-size: 32px;
    font-weight: 700;
    color: #FD0000;
    margin-bottom: 20px;
    line-height: 1;
}

.car-button {
    width: 100%;
    background-image: url('../image/Rectangle 57.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border: none;
    padding: 12px 20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    transition: opacity 0.3s;
}

.car-button:hover {
    opacity: 0.9;
}

.why-choose {
    padding: 100px 40px;
    background: white;
}

.why-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 80px;
    line-height: 1.2;
}

.why-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.why-features {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.why-features-left {
    order: 1;
}

.why-features-right {
    order: 3;
}

.why-image {
    order: 2;
}

.why-feature {
    background: white;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-feature-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.why-feature-icon.icon1 {
            background-image: url('../image/Icon1.svg');
}

.why-feature-icon.icon2 {
            background-image: url('../image/Icon2.svg');
}

.why-feature-icon.icon3 {
            background-image: url('../image/Icon3.svg');
}

.why-feature-icon.icon4 {
            background-image: url('../image/Icon4.svg');
}

.why-feature-content {
    flex: 1;
}

.why-feature h4 {
    font-size: 20px;
    font-weight: 700;
    font-style: bold;
    color: #1a237e;
    margin-bottom: 15px;
}

.why-feature p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px;
    font-weight: 400;
    font-style: normal;
    color: #666;
    line-height: 1.6;
}

.why-image {
    position: relative;
}

.why-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.reviews {
    padding: 100px 40px;
    background: white;
}

.reviews-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.google-views-image {
    width: auto;
    height: auto;
    max-width: 300px;
    margin-bottom: 20px;
    display: block;
}

.reviews-title {
    font-size: 48px;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.2;
    margin-bottom: 40px;
}

.reviews-button {
    background-image: url('../image/Rectangle 57.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    width: fit-content;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: opacity 0.3s;
}

.reviews-button:hover {
    opacity: 0.9;
}

.review-cards {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.review-cards::-webkit-scrollbar {
    width: 8px;
}

.review-cards::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.review-cards::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.review-cards::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.review-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.review-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #4285F4;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 500;
    flex-shrink: 0;
}

.review-info h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.review-info p {
    font-size: 14px;
    color: #666;
}

.review-stars {
    color: #FFC107;
    font-size: 18px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.contact {
    padding: 100px 40px;
    background: white;
}

.contact-title {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 80px;
}

.contact-top {
    max-width: 1400px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.contact-bottom {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    color: #8B0000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    fill: #8B0000;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.contact-item p,
.contact-item a {
    font-size: 16px;
    color: #333;
    text-decoration: none;
    line-height: 1.6;
}

.contact-item a {
    color: #8B0000;
}

.contact-item .closed {
    text-transform: uppercase;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .hero h1 {
        font-size: 36px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    }
    
    .car-card {
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav ul {
        gap: 15px;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-button {
        width: 100%;
        max-width: 357px;
    }

    .stats {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .about {
        grid-template-columns: 1fr;
        padding: 60px 20px;
    }

    .about-image {
        min-height: 400px;
    }

    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
    }

    .catalog-title {
        font-size: 36px;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }
    
    .car-card {
        width: 100%;
        max-width: 600px;
        height: auto;
        min-height: 308px;
        flex-direction: column;
    }
    
    .car-image-wrapper {
        width: 100%;
        height: 200px;
    }
    
    .car-details {
        width: 100%;
        padding: 20px;
    }

    .why-content {
        grid-template-columns: 1fr;
    }

    .why-features-left,
    .why-features-right {
        order: initial;
    }

    .reviews-content {
        grid-template-columns: 1fr;
    }

    .contact-top,
    .contact-bottom {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-button {
        height: 70px;
        font-size: 14px;
    }

    .stat-item .number {
        font-size: 48px;
    }

    .catalog-title,
    .why-title,
    .reviews-title,
    .contact-title {
        font-size: 28px;
    }
}

footer {
    background: #020920;
    padding: 60px 40px 30px;
    color: white;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 40px;
}

.footer-logo-text {
    font-size: 36px;
    font-weight: 700;
    font-style: bold;
    color: white;
    font-family: 'Atkinson Hyperlegible', sans-serif;
}

.footer-divider {
    height: 1px;
    background: #666;
    margin: 40px 0 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: white;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.7;
}

.footer-links .separator {
    color: white;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
    }

    .footer-links .separator {
        display: none;
    }
}

.form-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.form-modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.form-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    line-height: 1;
}

.form-modal-close:hover {
    color: #FD0000;
}

.form-modal-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

.consultation-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.consultation-form label {
    font-size: 16px;
    font-weight: 600;
    color: #8B0000;
    font-family: 'Open Sans', sans-serif;
}

.consultation-form input[type="text"],
.consultation-form input[type="email"],
.consultation-form input[type="tel"] {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    box-sizing: border-box;
}

.consultation-form input[type="text"]:focus,
.consultation-form input[type="email"]:focus,
.consultation-form input[type="tel"]:focus {
    outline: none;
    border-color: #8B0000;
}

.form-submit-btn {
    background-image: url('../image/Rectangle 57.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    border: none;
    padding: 15px 40px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 5px;
    margin-top: 10px;
    width: 100%;
    transition: opacity 0.3s;
}

.form-submit-btn:hover {
    opacity: 0.9;
}

.form-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.phone-error {
    font-size: 13px;
    color: rgb(182, 58, 58);
    margin-top: 5px;
}

@media (max-width: 768px) {
    .form-modal-content {
        padding: 30px 20px;
    }

    .form-modal-content h3 {
        font-size: 20px;
    }
}
