.vehicle-profile {
    display: grid;
    gap: clamp(44px, 6vw, 82px);
}

.vehicle-profile__overview {
    display: grid;
    gap: clamp(28px, 5vw, 64px);
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}

.vehicle-gallery__main,
.vehicle-gallery__placeholder {
    align-items: center;
    aspect-ratio: 4 / 3;
    background: #f2efed;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.vehicle-gallery__main img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.vehicle-gallery__placeholder {
    color: #746964;
}

.vehicle-gallery__thumbs {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-top: 12px;
}

.vehicle-gallery__thumb {
    background: #fff;
    border: 2px solid transparent;
    padding: 0;
}

.vehicle-gallery__thumb.is-active,
.vehicle-gallery__thumb:focus-visible {
    border-color: #e63619;
}

.vehicle-gallery__thumb img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.vehicle-profile__summary {
    align-self: start;
    background: #fff;
    border-top: 5px solid #e63619;
    box-shadow: 0 14px 42px rgba(31, 25, 22, .09);
    padding: clamp(24px, 4vw, 42px);
}

.vehicle-profile__brand,
.vehicle-profile__section-heading span {
    color: #e63619;
    display: block;
    font: normal 500 14px/1.2 Oswald, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.vehicle-profile__summary h2,
.vehicle-profile__description h2,
.vehicle-profile__section-heading h2 {
    color: #211b19;
    font-family: Oswald, sans-serif;
    font-weight: 500;
    text-transform: uppercase;
}

.vehicle-profile__summary h2 {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.05;
    margin: 10px 0 28px;
}

.vehicle-profile__facts {
    border-bottom: 1px solid #ebe5e2;
    border-top: 1px solid #ebe5e2;
    margin: 0 0 26px;
}

.vehicle-profile__facts div {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 17px 0;
}

.vehicle-profile__facts div + div {
    border-top: 1px solid #ebe5e2;
}

.vehicle-profile__facts dt {
    color: #746964;
    font-weight: 400;
}

.vehicle-profile__facts dd {
    color: #211b19;
    font: normal 500 22px/1.2 Oswald, sans-serif;
    margin: 0;
}

.vehicle-profile__sale-price {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vehicle-profile__sale-price del {
    color: #8a817d;
    font-size: 16px;
    font-weight: 400;
}

.vehicle-profile__sale-price strong {
    color: #e63619;
    font: inherit;
}

.vehicle-profile__sale-badge {
    background: #e63619;
    color: #fff;
    font: normal 500 12px/1 Oswald, sans-serif;
    letter-spacing: .04em;
    padding: 6px 8px;
    text-transform: uppercase;
}

.vehicle-profile__actions {
    display: grid;
    gap: 10px;
}

.vehicle-profile__description {
    margin: 0 auto;
    max-width: 940px;
    width: 100%;
}

.vehicle-profile__description h2,
.vehicle-profile__section-heading h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.1;
    margin: 0 0 24px;
}

.vehicle-profile__rich-text {
    color: #514743;
    font-size: 17px;
    line-height: 1.75;
}

.vehicle-profile__rich-text img {
    height: auto;
    max-width: 100%;
}

.vehicle-profile__packages {
    scroll-margin-top: 100px;
}

.vehicle-package-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vehicle-package-card {
    background: #fff;
    border: 1px solid #ebe5e2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(22px, 3vw, 32px);
}

.vehicle-package-card h3 {
    font: normal 500 26px/1.2 Oswald, sans-serif;
    margin: 0;
    text-transform: uppercase;
}

.vehicle-package-card h3 a {
    color: #211b19;
    text-decoration: none;
}

.vehicle-package-card h3 a:hover,
.vehicle-package-card h3 a:focus-visible {
    color: #e63619;
}

.vehicle-package-card p {
    color: #685955;
    line-height: 1.6;
    margin: 16px 0 0;
}

.vehicle-package-card__actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 26px;
}

@media (max-width: 991px) {
    .vehicle-profile__overview {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .vehicle-gallery__thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .vehicle-package-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vehicle-package-card__actions {
        grid-template-columns: 1fr;
    }
}
