.thm-section {
    --thm-accent: #e50000;
    --thm-section-bg: #f7f7f9;
    --thm-radius: 18px;
    --thm-max-width: 1440px;
    --thm-font: inherit;
    position: relative;
    width: 100%;
    padding: 64px 20px;
    background: var(--thm-section-bg);
    color: #181818;
    font-family: var(--thm-font);
    font-size: 18px;
    line-height: 1.55;
}

.thm-section *,
.thm-section *::before,
.thm-section *::after {
    box-sizing: border-box;
}

.thm-section__inner {
    width: min(var(--thm-max-width), 100%);
    margin: 0 auto;
}

.thm-section__title {
    margin: 0;
    color: #151515;
    font-family: inherit;
    font-size: 40px !important;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    text-align: center;
}

.thm-section__subtitle {
    max-width: 850px;
    margin: 16px auto 0;
    color: #5d6268;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
}

.thm-filters {
    display: flex;
    overflow-x: auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 30px 0 28px;
    padding: 2px;
    scrollbar-width: thin;
}

.thm-filter {
    appearance: none;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 11px 22px;
    border: 1px solid #d4d5d7;
    border-radius: 999px;
    background: #fff;
    color: #202124;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.thm-section--vehicle .thm-filter {
    min-width: 132px;
}

.thm-vehicle-search {
    width: min(680px, 100%);
    margin: 30px auto 0;
}

.thm-vehicle-search__label {
    display: block;
    margin-bottom: 10px;
    color: #202124;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.thm-vehicle-search__field {
    position: relative;
}

.thm-vehicle-search__field svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    right: 19px;
    left: auto;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    fill: none;
    stroke: #5f6368;
    stroke-width: 2;
    stroke-linecap: round;
    pointer-events: none;
}

.thm-vehicle-search__field input {
    appearance: none;
    width: 100%;
    min-height: 56px;
    padding: 0 50px 0 22px;
    border: 1px solid #cfd1d4;
    border-radius: 999px;
    outline: 0;
    background: #fff;
    color: #171717;
    font: inherit;
    font-size: 18px;
    line-height: 1.2;
    box-shadow: 0 7px 22px rgba(0, 0, 0, .06);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.thm-vehicle-search__field input::-webkit-search-cancel-button {
    display: none;
}

.thm-vehicle-search__field input::placeholder {
    color: #73777b;
    opacity: 1;
}

.thm-vehicle-search__field:focus-within input {
    border-color: var(--thm-accent);
    box-shadow: 0 0 0 3px rgba(229, 0, 0, .12), 0 9px 26px rgba(0, 0, 0, .08);
}

.thm-vehicle-search__field:focus-within svg {
    stroke: var(--thm-accent);
}

.thm-vehicle-search__status {
    min-height: 20px;
    margin: 8px 0 0;
    color: #62666a;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.thm-vehicle-search__status[hidden] {
    display: block;
    visibility: hidden;
}

.thm-section--vehicle .thm-vehicle-search + .thm-filters {
    margin-top: 18px;
}

.thm-filter:hover {
    transform: scale(1.045);
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(229, 0, 0, .18);
}

.thm-filter.is-active {
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
    box-shadow: 0 8px 22px rgba(229, 0, 0, .18);
}

.thm-offer-select-wrap {
    width: min(520px, 100%);
    margin: 28px auto 6px;
}

.thm-offer-select-wrap label,
.thm-offer-select-wrap label > span {
    display: block;
}

.thm-offer-select-wrap label > span {
    margin-bottom: 8px;
    color: #292929;
    font-size: 16px;
    font-weight: 700;
}

.thm-offer-select {
    width: 100%;
    min-height: 52px;
    padding: 0 46px 0 18px;
    border: 1px solid #d4d5d7;
    border-radius: 999px;
    background-color: #fff;
    color: #181818;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.thm-offer-mobile-select {
    display: none;
    width: min(560px, 100%);
    margin: 28px auto 0;
}

.thm-offer-mobile-select label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
}

.thm-offer-mobile-select select {
    width: 100%;
    min-height: 50px;
    padding: 0 42px 0 16px;
    border: 1px solid #d4d5d7;
    border-radius: 10px;
    background: #fff;
    color: #181818;
    font: inherit;
    font-size: 16px;
}

.thm-offer-showcase {
    display: grid;
    overflow: hidden;
    width: min(1120px, 100%);
    grid-template-columns: 225px minmax(0, 1fr);
    margin: 32px auto 0;
    border: 1px solid #e2e3e5;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .08);
}

.thm-offer-showcase__tabs {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 8px;
    padding: 18px 12px;
    border-right: 1px solid #d9dde2;
    background: #f1f3f6;
}

.thm-offer-showcase__tab {
    appearance: none;
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;
    border: 1px solid #d5dae0;
    border-radius: 4px;
    background: #fff;
    color: #243447;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.thm-offer-showcase__tab:hover,
.thm-offer-showcase__tab.is-active {
    transform: scale(1.025);
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
    box-shadow: 0 7px 16px rgba(229, 0, 0, .18);
}

.thm-offer-showcase__content {
    min-width: 0;
}

.thm-offer-panel {
    min-height: 680px;
    padding: 32px 42px 28px;
    background: #fff;
}

.thm-offer-panel[hidden] {
    display: none !important;
}

.thm-offer-panel__title {
    margin: 0 0 20px;
    color: #17283b;
    font-family: inherit;
    font-size: 26px !important;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
}

.thm-offer-panel__hero {
    display: grid;
    min-height: 240px;
    grid-template-columns: minmax(0, 1fr) 235px;
    align-items: center;
    gap: 28px;
    margin-bottom: 10px;
}

.thm-offer-panel__image {
    display: grid;
    min-width: 0;
    min-height: 235px;
    place-items: center;
}

.thm-offer-panel__image img {
    display: block;
    width: 100%;
    height: 235px;
    object-fit: contain;
}

.thm-offer-panel__highlights {
    display: grid;
    align-content: center;
    gap: 13px;
}

.thm-offer-highlight {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: baseline;
    padding: 4px 0 12px;
    border-bottom: 1px solid #d3dae2;
    color: #35506d;
}

.thm-offer-highlight span {
    grid-row: 1 / span 2;
    font-size: 13px;
    line-height: 1.1;
}

.thm-offer-highlight strong {
    color: var(--thm-accent);
    font-size: 27px;
    line-height: 1.05;
    white-space: nowrap;
}

.thm-offer-highlight small {
    color: #35506d;
    font-size: 13px;
    line-height: 1.1;
}

.thm-offer-block {
    width: min(760px, 100%);
    margin: 8px auto 0;
    padding: 18px 0 12px;
    text-align: center;
}

.thm-offer-block--finance {
    margin-top: 12px;
    border-top: 2px solid var(--thm-accent);
}

.thm-offer-block--custom {
    margin-top: 12px;
    border-top: 1px solid #d8dce1;
}

.thm-offer-block h4,
.thm-offer-block h5 {
    margin: 0;
    color: #111d2a;
    font-family: inherit;
    font-weight: 800;
    line-height: 1.25;
}

.thm-offer-block h4 {
    font-size: 17px !important;
}

.thm-offer-block h5 {
    margin-top: 19px;
    font-size: 15px !important;
}

.thm-offer-block__model {
    margin: 5px 0 14px;
    color: #59708a;
    font-size: 14px;
    text-align: center;
}

.thm-offer-rows {
    display: grid;
    gap: 5px;
    margin: 0;
}

.thm-offer-rows > div {
    display: grid;
    grid-template-columns: max-content minmax(24px, 1fr) max-content;
    align-items: end;
    gap: 8px;
    margin: 0;
    color: #344a62;
    font-size: 14px;
    line-height: 1.3;
}

.thm-offer-rows dt,
.thm-offer-rows dd {
    margin: 0;
}

.thm-offer-rows > div > span {
    min-width: 24px;
    border-bottom: 1px dotted #9faebb;
    transform: translateY(-4px);
}

.thm-offer-rows dd {
    color: #14263b;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.thm-offer-rows > div.is-strong dt,
.thm-offer-rows > div.is-strong dd {
    color: #0d1a27;
    font-weight: 800;
}

.thm-offer-panel__note {
    width: min(760px, 100%);
    margin: 16px auto 0;
    color: #697079;
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.thm-offer-panel__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

.thm-section--model .thm-collection--grid {
    width: min(1180px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.thm-card--model .thm-card__media {
    padding: 18px;
    background: #f4f5f6;
}

.thm-card--model .thm-card__media img {
    object-fit: contain;
}

.thm-card--model .thm-card__body {
    align-items: center;
    min-height: 158px;
    padding: 22px 20px 24px;
    text-align: center;
}

.thm-card--model .thm-card__badge {
    align-self: center;
}

.thm-card--model .thm-card__title {
    font-size: 20px !important;
    text-align: center;
}

.thm-card--model .thm-card__subtitle,
.thm-card--model .thm-card__description {
    text-align: center;
}

.thm-collection {
    margin-top: 26px;
}

.thm-collection--grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.thm-carousel-shell {
    position: relative;
    margin-top: 22px;
}

.thm-section--vehicle .thm-carousel-shell {
    width: min(1180px, calc(100% - 112px));
    margin-right: auto;
    margin-left: auto;
}

.thm-collection--carousel {
    display: flex;
    overflow-x: auto;
    align-items: stretch;
    gap: 16px;
    margin: 0;
    padding: 12px 0 24px;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
}

.thm-collection--carousel::-webkit-scrollbar {
    display: none;
}

.thm-collection--carousel .thm-card {
    flex: 0 0 calc((100% - 32px) / 3);
    align-self: stretch;
    scroll-snap-align: start;
}

.thm-collection--carousel::after {
    flex: 0 0 var(--thm-tail-space, 0px);
    content: "";
}

.thm-card {
    position: relative;
    display: flex;
    overflow: hidden;
    min-width: 0;
    flex-direction: column;
    align-self: flex-start;
    border: 1px solid #e5e5e7;
    border-radius: var(--thm-radius);
    background: #fff;
    box-shadow: 0 10px 32px rgba(0, 0, 0, .08);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.thm-collection--grid .thm-card {
    width: 100%;
    height: 100%;
    align-self: stretch;
}

.thm-card:hover {
    transform: translateY(-4px);
    border-color: #d8d8da;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .13);
}

.thm-card[hidden] {
    display: none !important;
}

.thm-card--vehicle {
    cursor: pointer;
}

.thm-card__overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
}

.thm-card__body {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding: 25px 24px 24px;
}

.thm-card--vehicle .thm-card__body {
    min-height: 0;
    flex: 1 1 auto;
    padding: 22px 22px 18px;
}

.thm-card__badge {
    position: relative;
    z-index: 3;
    align-self: flex-start;
    margin: -25px 0 17px;
    padding: 7px 15px;
    border-radius: 0 0 12px 12px;
    background: var(--thm-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
}

.thm-card__title {
    margin: 0;
    color: #161616;
    font-family: inherit;
    font-size: 20px !important;
    font-weight: 700;
    line-height: 1.32;
    letter-spacing: -.01em;
}

.thm-card--vehicle .thm-card__title {
    display: -webkit-box;
    overflow: hidden;
    min-height: calc(1.32em * 3);
    font-size: 18px !important;
    text-align: center;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.thm-card__subtitle {
    margin: 7px 0 0;
    color: #666b70;
    font-size: 17px;
    line-height: 1.45;
}

.thm-card__description {
    display: -webkit-box;
    overflow: hidden;
    margin: 13px 0 0;
    color: #555b60;
    font-size: 17px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.thm-card--vehicle .thm-card__subtitle,
.thm-card--vehicle .thm-card__description {
    color: #666b70;
    font-size: 16px;
}

.thm-card--vehicle .thm-card__subtitle {
    overflow: hidden;
    min-height: 1.45em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thm-card__deadline {
    align-self: flex-start;
    margin: 12px 0 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f1f3;
    color: #555b60;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
}

.thm-card__prices {
    display: flex;
    min-height: 48px;
    flex-direction: column;
    justify-content: flex-end;
    margin-top: 14px;
}

.thm-card--vehicle .thm-card__prices {
    min-height: 52px;
    align-items: center;
    margin-top: 22px;
    text-align: center;
}

.thm-card__old-price {
    color: #676767;
    font-size: 16px;
    line-height: 1.35;
    text-decoration: line-through;
}

.thm-card__price {
    display: block;
    color: var(--thm-accent) !important;
    font-size: 20px !important;
    line-height: 1.3;
}

.thm-card__price-main,
.thm-card__price-gross {
    display: block;
}

.thm-card__price-gross {
    margin-top: 6px;
}

.thm-card__extra {
    position: relative;
    z-index: 3;
    margin-top: 14px;
    color: #35383b;
    line-height: 1.55;
}

.thm-card__extra p {
    margin: 0 0 8px;
}

.thm-card__extra a {
    color: var(--thm-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.thm-card__specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 14px 0 0;
}

.thm-card__specs--count-1 {
    grid-template-columns: minmax(0, 1fr);
}

.thm-card__specs--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.thm-card__specs--count-1 > div,
.thm-card__specs--count-1 > div:first-child,
.thm-card__specs--count-1 > div:last-child {
    padding: 0;
    border-right: 0;
    text-align: center;
}

.thm-card__specs--count-2 > div,
.thm-card__specs--count-2 > div:first-child,
.thm-card__specs--count-2 > div:last-child {
    text-align: center !important;
}

.thm-card__specs > div {
    min-width: 0;
    padding: 0 9px;
    border-right: 1px solid #ddd;
    text-align: center;
}

.thm-card__specs > div:first-child {
    padding-left: 0;
    text-align: center;
}

.thm-card__specs > div:last-child {
    padding-right: 0;
    border-right: 0;
    text-align: center;
}

.thm-card__specs dt,
.thm-card__specs dd {
    overflow: hidden;
    margin: 0;
    color: #6a6f73;
    font-size: 16px;
    line-height: 1.28;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thm-card__specs dt {
    margin-bottom: 3px;
    font-weight: 400;
}

.thm-card__buttons {
    position: relative;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding-top: 18px;
}

.thm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 19px;
    border: 1px solid var(--thm-accent);
    border-radius: 999px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease, background-color .22s ease, color .22s ease;
}

.thm-button span {
    transition: transform .22s ease;
}

.thm-button:hover {
    transform: scale(1.045);
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(229, 0, 0, .2);
}

.thm-button:hover span {
    transform: translateX(3px);
}

.thm-button--primary {
    background: var(--thm-accent);
    color: #fff !important;
}

.thm-button--outline {
    background: #fff;
    color: var(--thm-accent) !important;
}

.thm-card__open-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 13px;
    color: var(--thm-accent);
    font-size: 16px;
    font-weight: 700;
}

.thm-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: #ececee;
}

.thm-card--vehicle .thm-card__media {
    aspect-ratio: 4 / 3;
    border-top: 7px solid var(--thm-accent);
}

.thm-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.thm-card:not(.thm-card--vehicle):hover .thm-card__media img {
    transform: scale(1.035);
}

.thm-card--vehicle:hover .thm-card__media img {
    transform: none !important;
}

.thm-card__photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #161616;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
}

.thm-card__location {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #151515;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .13);
}

.thm-arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0 0 4px;
    transform: translateY(-50%);
    border: 1px solid #d7d7d9;
    border-radius: 50%;
    background: #fff;
    color: #181818;
    font: inherit;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(0, 0, 0, .09);
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.thm-arrow--prev {
    left: -18px;
}

.thm-arrow--next {
    right: -18px;
}

.thm-section--vehicle .thm-arrow--prev {
    left: -58px;
}

.thm-section--vehicle .thm-arrow--next {
    right: -58px;
}

.thm-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
    box-shadow: 0 9px 22px rgba(229, 0, 0, .22);
}

.thm-empty-state {
    margin: 32px 0 0;
    color: #656a6e;
    text-align: center;
}

.thm-gallery {
    background: #fff;
}

.thm-gallery__grid {
    display: grid;
    width: min(1280px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 auto;
}

.thm-gallery__item {
    overflow: hidden;
    margin: 0;
    border-radius: var(--thm-radius);
    background: var(--thm-section-bg);
    box-shadow: 0 8px 28px rgba(0, 0, 0, .08);
    transition: transform .28s ease, box-shadow .28s ease;
}

.thm-gallery__item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 38px rgba(0, 0, 0, .13);
}

.thm-gallery__item[hidden] {
    display: none !important;
}

.thm-gallery__open {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    background: #eee;
    cursor: pointer;
}

.thm-gallery__open img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.thm-gallery__label {
    position: absolute;
    bottom: 14px;
    left: 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: #151515;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.thm-gallery__zoom {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #111;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    transition: background-color .22s ease, transform .22s ease;
}

.thm-gallery__zoom svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.thm-gallery__item:hover .thm-gallery__zoom {
    transform: scale(1.07);
    background: var(--thm-accent);
    color: #fff;
}

.thm-gallery figcaption {
    padding: 12px 16px 14px;
    color: #64696d;
    font-size: 15px;
    line-height: 1.45;
}

.thm-gallery__more {
    margin-top: 28px;
    text-align: center;
}

.thm-lightbox[hidden],
.thm-vehicle-lightbox[hidden] {
    display: none;
}

.thm-lightbox,
.thm-vehicle-lightbox {
    position: fixed;
    z-index: 2147483000;
    inset: 0;
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    align-items: center;
    padding: 28px;
    background: rgba(10, 10, 10, .94);
}

.thm-vehicle-lightbox {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thm-vehicle-dialog {
    display: grid;
    overflow: hidden;
    width: min(1220px, 100%);
    height: min(840px, calc(100dvh - 56px));
    max-height: calc(100dvh - 56px);
    min-height: 0;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .9fr);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.thm-vehicle-dialog__gallery {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 0;
    grid-template-columns: 56px minmax(0, 1fr) 56px;
    align-items: center;
    padding: 24px 8px;
    background: #111;
}

.thm-vehicle-dialog__gallery .thm-lightbox__stage {
    display: flex;
    height: 100%;
    flex-direction: column;
    align-self: center;
    justify-content: center;
}

.thm-vehicle-dialog__gallery .thm-lightbox__nav {
    align-self: center;
}

.thm-vehicle-dialog__gallery .thm-lightbox__stage img {
    width: 100%;
    max-height: calc(100dvh - 150px);
}

.thm-vehicle-dialog__details {
    overflow-y: auto;
    min-width: 0;
    min-height: 0;
    padding: 34px 30px 30px;
    color: #181818;
    text-align: left;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
}

.thm-vehicle-dialog__brand {
    margin: 0 0 12px;
    color: var(--thm-accent);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
}

.thm-vehicle-dialog__details h2 {
    margin: 0;
    color: #161616;
    font-family: inherit;
    font-size: 28px !important;
    line-height: 1.22;
    text-align: center;
}

.thm-vehicle-dialog__subtitle {
    margin: 9px 0 0;
    color: #666b70;
    font-size: 16px;
    line-height: 1.45;
}

.thm-vehicle-dialog__prices {
    margin-top: 30px;
    color: var(--thm-accent);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.thm-vehicle-dialog__prices > * {
    display: block;
}

.thm-vehicle-dialog__old-price {
    margin-bottom: 3px;
    color: #676767;
    font-size: 16px;
    font-weight: 400;
    text-decoration: line-through;
}

.thm-vehicle-dialog__specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}

.thm-vehicle-dialog__specs > div {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f4f4f6;
}

.thm-vehicle-dialog__specs dt,
.thm-vehicle-dialog__specs dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.thm-vehicle-dialog__specs dt {
    color: #6a6f73;
    font-size: 13px;
}

.thm-vehicle-dialog__specs dd {
    margin-top: 2px;
    color: #222;
    font-size: 15px;
    font-weight: 700;
    white-space: pre-line;
}

.thm-vehicle-dialog__description {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e2e2e4;
    color: #4f5559;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.thm-vehicle-dialog__details .thm-lightbox__actions {
    justify-content: center;
    margin-top: 24px;
}

.thm-lightbox__stage {
    min-width: 0;
    text-align: center;
}

.thm-lightbox__stage img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 190px);
    margin: auto;
    border-radius: 16px;
    object-fit: contain;
}

.thm-lightbox__stage p {
    margin: 10px 0 0;
    color: #fff;
    font-size: 15px;
}

.thm-lightbox__close,
.thm-lightbox__nav {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .95);
    color: #111;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.thm-lightbox__close {
    position: fixed;
    z-index: 2147483646;
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 1px solid #d7d7d9;
    background: #fff;
    color: #111;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
}

.thm-lightbox__nav {
    width: 50px;
    height: 50px;
    font-size: 35px;
}

.thm-lightbox__close:hover,
.thm-lightbox__nav:hover {
    transform: scale(1.07);
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
    box-shadow: 0 9px 22px rgba(229, 0, 0, .28);
}

.thm-lightbox__nav:last-child,
.thm-lightbox__nav--next {
    justify-self: end;
}

.thm-lightbox__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.thm-lightbox__actions .thm-button {
    min-width: 180px;
}

.thm-section button:focus-visible,
.thm-section a:focus-visible,
.thm-section select:focus-visible,
.thm-card--vehicle:focus-visible {
    outline: 3px solid rgba(229, 0, 0, .35);
    outline-offset: 3px;
}

@media (max-width: 1050px) {
    .thm-collection--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thm-offer-showcase {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .thm-offer-panel {
        padding: 28px 28px 26px;
    }
}

@media (max-width: 850px) {
    .thm-offer-mobile-select {
        display: block;
    }

    .thm-offer-showcase {
        display: block;
        margin-top: 16px;
    }

    .thm-offer-showcase__tabs {
        display: none;
    }
}

@media (max-width: 700px) {
    .thm-section {
        padding: 48px 16px;
        font-size: 17px;
    }

    .thm-section__title {
        font-size: 35px !important;
    }

    .thm-section__subtitle {
        font-size: 17px;
    }

    .thm-offer-mobile-select label,
    .thm-offer-mobile-select select {
        font-size: 14px;
    }

    .thm-offer-panel {
        min-height: 0;
        padding: 24px 16px 22px;
    }

    .thm-offer-panel__title {
        margin-bottom: 16px;
        font-size: 22px !important;
        text-align: center;
    }

    .thm-offer-panel__hero {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .thm-offer-panel__image {
        min-height: 0;
    }

    .thm-offer-panel__image img {
        height: min(230px, 58vw);
    }

    .thm-offer-panel__highlights {
        width: min(300px, 100%);
        margin: 0 auto;
    }

    .thm-offer-highlight strong {
        font-size: 23px;
    }

    .thm-offer-block {
        padding-top: 16px;
    }

    .thm-offer-block h4 {
        font-size: 16px !important;
    }

    .thm-offer-rows {
        gap: 8px;
    }

    .thm-offer-rows > div {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 8px;
        font-size: 13px;
    }

    .thm-offer-rows > div > span {
        display: none;
    }

    .thm-offer-rows dt {
        text-align: left;
    }

    .thm-offer-panel__actions .thm-button {
        font-size: 14px;
    }

    .thm-card--model .thm-card__title {
        font-size: 17px !important;
    }

    .thm-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: 24px -4px 22px;
        padding: 2px 4px 8px;
    }

    .thm-filter,
    .thm-section--vehicle .thm-filter {
        min-width: 112px;
        min-height: 40px;
        padding: 10px 15px;
        font-size: 14px;
    }

    .thm-vehicle-search {
        margin-top: 24px;
    }

    .thm-vehicle-search__label {
        margin-bottom: 8px;
        font-size: 17px;
    }

    .thm-vehicle-search__field input {
        min-height: 50px;
        padding: 0 44px 0 18px;
        font-size: 17px;
    }

    .thm-vehicle-search__field svg {
        right: 16px;
        left: auto;
        width: 17px;
        height: 17px;
    }

    .thm-offer-panel__note {
        font-size: 10.5px;
        line-height: 1.4;
    }

    .thm-card__location,
    .thm-card__photo-count {
        bottom: 10px;
        padding: 6px 9px;
        font-size: 13px;
    }

    .thm-card__location {
        left: 10px;
    }

    .thm-card__photo-count {
        right: 10px;
    }

    .thm-offer-select-wrap label > span,
    .thm-offer-select {
        font-size: 14px;
    }

    .thm-collection--grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .thm-carousel-shell,
    .thm-section--vehicle .thm-carousel-shell {
        width: auto;
        margin: 16px -16px 0;
    }

    .thm-collection--carousel {
        gap: 12px;
        padding: 8px 16px 20px;
        scroll-padding-inline: 16px;
    }

    .thm-collection--carousel .thm-card {
        flex-basis: min(78vw, 286px);
    }

    .thm-card__body {
        padding: 21px 19px 20px;
    }

    .thm-card--vehicle .thm-card__body {
        padding: 18px 18px 14px;
    }

    .thm-card__badge {
        margin: -21px 0 14px;
    }

    .thm-card--vehicle .thm-card__title {
        min-height: calc(1.32em * 3);
        font-size: 17px !important;
    }

    .thm-card--vehicle .thm-card__subtitle,
    .thm-card--vehicle .thm-card__description,
    .thm-card--vehicle .thm-card__old-price,
    .thm-card__specs dt,
    .thm-card__specs dd {
        font-size: 14px;
    }

    .thm-card__price {
        font-size: 20px !important;
    }

    .thm-card__description {
        -webkit-line-clamp: 2;
    }

    .thm-card__specs > div {
        padding: 0 6px;
    }

    .thm-card__open-hint {
        margin-top: 10px;
        font-size: 14px;
    }

    .thm-button {
        min-height: 42px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .thm-card__buttons {
        gap: 8px;
    }

    .thm-card__buttons .thm-button {
        flex: 1 1 auto;
    }

    .thm-arrow {
        display: none !important;
    }

    .thm-gallery__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .thm-gallery__zoom {
        width: 42px;
        height: 42px;
    }

    .thm-lightbox,
    .thm-vehicle-lightbox {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        padding: 16px 5px;
    }

    .thm-vehicle-lightbox {
        display: flex;
        align-items: flex-start;
        padding: 8px;
    }

    .thm-vehicle-dialog {
        display: block;
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
        height: calc(100dvh - 16px);
        max-height: calc(100dvh - 16px);
        border-radius: 14px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .thm-vehicle-dialog__gallery {
        display: block;
        min-height: 0;
        padding: 16px 10px 12px;
        touch-action: pan-y;
    }

    .thm-vehicle-dialog__gallery .thm-lightbox__stage {
        height: auto;
    }

    .thm-vehicle-dialog__gallery .thm-lightbox__nav {
        display: none;
    }

    .thm-vehicle-dialog__gallery .thm-lightbox__stage img {
        width: 100%;
        max-height: 42dvh;
        aspect-ratio: 4 / 3;
        object-fit: contain;
    }

    .thm-vehicle-dialog__details {
        overflow: visible;
        padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    }

    .thm-vehicle-dialog__details h2 {
        font-size: 22px !important;
    }

    .thm-vehicle-dialog__brand,
    .thm-vehicle-dialog__subtitle,
    .thm-vehicle-dialog__description {
        font-size: 14px;
    }

    .thm-vehicle-dialog__specs {
        gap: 8px;
    }

    .thm-vehicle-dialog__specs > div {
        padding: 9px 10px;
    }

    .thm-vehicle-dialog__details .thm-lightbox__actions {
        align-items: stretch;
    }

    .thm-vehicle-dialog__details .thm-button {
        width: 100%;
    }

    .thm-lightbox__stage img {
        max-height: calc(100vh - 230px);
        border-radius: 10px;
    }

    .thm-lightbox__nav {
        width: 40px;
        height: 40px;
    }

    .thm-lightbox__close {
        top: max(12px, env(safe-area-inset-top));
        right: 12px;
        width: 40px;
        height: 40px;
    }

    .thm-lightbox__actions {
        flex-direction: column;
        align-items: center;
    }

    .thm-lightbox__actions .thm-button {
        width: min(240px, 100%);
    }
}

/* Toyota modellkatalógus */
.thm-section--model {
    background: #262626;
    color: #fff;
}

.thm-section--model .thm-section__title {
    color: #fff;
}

.thm-section--model .thm-section__subtitle {
    color: #d7d7d7;
}

.thm-section--model .thm-filters {
    margin-top: 26px;
    margin-bottom: 34px;
}

.thm-section--model .thm-filter {
    border-color: rgba(255, 255, 255, .6);
    background: transparent;
    color: #fff;
}

.thm-section--model .thm-filter:hover,
.thm-section--model .thm-filter.is-active {
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
}

.thm-section--model .thm-collection--grid {
    width: min(1440px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
    margin: 0 auto;
}

.thm-card--model {
    overflow: visible;
    padding: 24px 12px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    box-shadow: none;
    transform: scale(1);
    transition: transform .3s cubic-bezier(.25, .46, .45, .94), background-color .3s ease, box-shadow .3s ease;
}

.thm-card--model:hover {
    z-index: 5;
    border-color: transparent;
    background: rgba(0, 0, 0, .15);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .5);
    transform: scale(1.03);
}

.thm-card--model:focus-within {
    outline: 3px solid var(--thm-accent);
    outline-offset: 4px;
}

.thm-card--model .thm-card__media {
    display: flex;
    width: 100%;
    height: 250px;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
}

.thm-card--model .thm-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.thm-card--model .thm-card__body {
    min-height: 104px;
    align-items: center;
    padding: 24px 4px 0;
    border-top: 2px solid #fff;
    text-align: center;
}

.thm-card--model .thm-card__badge {
    position: absolute;
    z-index: 3;
    top: -18px;
    left: 50%;
    margin: 0;
    padding: 7px 10px;
    border-radius: 0;
    background: #ff002b;
    font-size: 13px;
    font-weight: 400;
    transform: translateX(-50%);
    pointer-events: none;
}

.thm-card--model .thm-card__title {
    color: #fff;
    font-size: 20px !important;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .5px;
    text-align: center;
}

.thm-card--model .thm-card__subtitle {
    min-height: 20px;
    margin-top: 10px;
    color: #42b6e6;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.thm-card--model .thm-card__description {
    display: none;
}

@media (max-width: 1200px) {
    .thm-section--model .thm-collection--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .thm-card--model .thm-card__media {
        height: 190px;
    }
}

@media (max-width: 768px) {
    .thm-section--model .thm-collection--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    .thm-card--model {
        padding: 20px 10px;
    }

    .thm-card--model .thm-card__media {
        height: 160px;
    }

    .thm-card--model .thm-card__body {
        padding: 20px 3px 0;
    }

    .thm-section--model .thm-filters {
        margin-bottom: 28px;
    }
}

@media (max-width: 480px) {
    .thm-section--model {
        padding-right: 10px;
        padding-left: 10px;
    }

    .thm-section--model .thm-collection--grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .thm-card--model {
        padding: 24px 12px;
    }

    .thm-card--model .thm-card__media {
        height: 180px;
    }
}

/* Fehér készletoldal, szürke autókártyák és négyrácsos teljes kínálat */
.thm-section--vehicle {
    background: #fff;
}

.thm-section--vehicle .thm-card--vehicle {
    border-color: #e1e2e4;
    background: #f7f7f9;
}

.thm-section--vehicle .thm-card--vehicle .thm-card__media {
    background: #eceef1;
}

.thm-section--vehicle.thm-section--layout-grid .thm-collection--grid {
    width: min(1440px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-right: auto;
    margin-left: auto;
}

/* Modelloldali Szűrő / Keresés kezelősáv */
.thm-model-tools {
    width: min(980px, 100%);
    margin: 28px auto 34px;
}

.thm-model-tools__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.thm-model-tool {
    appearance: none;
    min-width: 170px;
    min-height: 46px;
    padding: 11px 28px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.thm-model-tool:hover,
.thm-model-tool.is-active {
    border-color: var(--thm-accent);
    background: var(--thm-accent);
    color: #fff;
    transform: scale(1.035);
}

.thm-model-tools__panel {
    margin-top: 18px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.thm-model-tools__panel[hidden] {
    display: none !important;
}

.thm-model-tools__panel .thm-filters {
    margin: 0;
}

.thm-model-search {
    margin: 0 auto;
}

.thm-model-search .thm-vehicle-search__label {
    color: #fff;
}

.thm-model-tools > .thm-vehicle-search__status {
    color: #d7d7d7;
}

/* A modellek után automatikusan megjelenő marketing- és SEO-tartalom */
.thm-model-afterlinks,
.thm-marketing-section,
.thm-model-seo {
    background: #fff;
}

.thm-model-afterlinks {
    padding-top: 72px;
    padding-bottom: 42px;
}

.thm-model-afterlinks__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.thm-marketing-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 38px;
    border: 1px solid #e0e1e3;
    border-radius: var(--thm-radius);
    background: #f7f7f9;
}

.thm-marketing-card h2 {
    margin: 0 0 16px;
    color: #171717;
    font-family: inherit;
    font-size: 28px !important;
    line-height: 1.22;
}

.thm-marketing-card__text p,
.thm-marketing-section__text p {
    margin: 0;
    color: #35383b;
    font-size: 18px;
    line-height: 1.65;
}

.thm-marketing-card .thm-button {
    min-width: 240px;
}

.thm-marketing-section__content {
    display: grid;
    width: min(1100px, 100%);
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 42px;
    margin: 0 auto;
    padding: 42px;
    border: 1px solid #e0e1e3;
    border-radius: var(--thm-radius);
    background: #f7f7f9;
}

.thm-marketing-section .thm-section__title {
    margin-bottom: 16px;
    text-align: left;
}

.thm-marketing-section__content > .thm-button {
    min-width: 250px;
}

.thm-model-seo {
    padding-top: 54px;
    padding-bottom: 84px;
}

.thm-model-seo .thm-section__inner {
    width: min(1080px, 100%);
}

.thm-model-seo .thm-section__title {
    margin-bottom: 36px;
}

.thm-model-seo__content {
    color: #292c2f;
}

.thm-model-seo__content h3 {
    margin: 38px 0 12px;
    color: #171717;
    font-family: inherit;
    font-size: 27px !important;
    line-height: 1.25;
}

.thm-model-seo__content p {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.75;
}

@media (max-width: 1200px) {
    .thm-section--vehicle.thm-section--layout-grid .thm-collection--grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 940px) {
    .thm-section--vehicle.thm-section--layout-grid .thm-collection--grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .thm-marketing-section__content {
        grid-template-columns: 1fr;
    }

    .thm-marketing-section__content > .thm-button {
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .thm-section--vehicle.thm-section--layout-grid .thm-collection--grid,
    .thm-model-afterlinks__grid {
        grid-template-columns: 1fr;
    }

    .thm-model-tools {
        margin: 24px auto 28px;
    }

    .thm-model-tools__buttons {
        flex-wrap: nowrap;
    }

    .thm-model-tool {
        min-width: 0;
        flex: 1 1 0;
        min-height: 42px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .thm-model-tools__panel {
        padding: 15px 14px;
    }

    .thm-model-afterlinks {
        padding: 52px 16px 30px;
    }

    .thm-marketing-card {
        min-height: 0;
        padding: 28px 22px;
    }

    .thm-marketing-card h2 {
        font-size: 25px !important;
    }

    .thm-marketing-card__text p,
    .thm-marketing-section__text p,
    .thm-model-seo__content p {
        font-size: 17px;
    }

    .thm-marketing-card .thm-button,
    .thm-marketing-section__content > .thm-button {
        width: 100%;
        min-width: 0;
    }

    .thm-marketing-section__content {
        gap: 26px;
        padding: 28px 22px;
    }

    .thm-marketing-section .thm-section__title {
        font-size: 30px !important;
        text-align: center;
    }

    .thm-model-seo {
        padding-top: 42px;
        padding-bottom: 62px;
    }

    .thm-model-seo .thm-section__title {
        margin-bottom: 28px;
    }

    .thm-model-seo__content h3 {
        margin-top: 30px;
        font-size: 23px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .thm-section * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
