/*  OTHER */

.hide-element-important {
    display: none !important;
}

:root{
    --f-header-height: 60px;
	--z-index-header: 10;
}

.carousel__item {
     --carousel-item-auto-size: 250px;
}

@media screen and (max-width: 576px) {
    .carousel__item {
        --carousel-item-auto-size: 125px;
    }

    .carousel-v2__control {
        --size: 40px;
    }
}

/* .carousel__item:nth-child(even) .carousel_substrate-color-custom {
    background-color: #ffffff;
} */

.title_h2-custom {
    width: 50%;
    top: 35%;
    left: 2%;
}

.parag-custom {
    width: 43%;
    top: 60%;
    left: 2%;
}

.svg_location-custom {
    top: 7%;
    left: 2%;
}

.vacancies_grid-width-custom {
    min-width: 234px;
    max-width: 234px;
}

.vacancies_grid-position {
    top: 84%;
    left: 12%;
}

@media (max-width: 768px) {
    .title_h2-custom {
        width: auto;
        top: 21%;
        left: 5%;
    }

    .parag-custom {
        width: auto;
        top: 75%;
        left: 5%;
    }

    .svg_location-custom {
        top: 7%;
        left: 5%;
    }

    .vacancies_grid-width-custom {
        min-width: 334px;
        max-width: 334px;
    }
    
    .vacancies_grid-position {
        top: 87%;
        left: 1%;
    }
}

.hide-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

@media (min-width: 64rem) {
    :root {
        --f-header-height: 120px;
    }
}

.table:not(.table--expanded) .table__label {
    font-weight: normal;
}

.table__label-first {
    font-weight: bold !important;
}

.table--expanded .table__body .table__row:nth-child(odd) {
    background-color: var(--color-accent);
    color: var(--color-contrast-lower);
}

.slider--multi-value .slider__range:nth-of-type(1) {
    position: relative;
    right: 3%;
}

.slider--multi-value .slider__range:nth-of-type(2) {
    left: 3%;
}

.phone-link {
    text-decoration: none;
}

.phone-link:hover {
    color: var(--color-accent-lighter);
}

.head-ticker {
    height: 37px;
    z-index: -1;
}

.custom-card-hover > .custom-card-hover-div > .custom-card-hover-figure {
    transition: 0.5s;
}

.custom-card-hover:hover > .custom-card-hover-div > .custom-card-hover-figure {
    transform: scale(1.2);
}

@media (max-width: 550px) {
    .vacanciesWidgetContainer {
        width: auto !important;
    }
}

@media (min-width: 64rem) {
    .radius-xl\@md {
        border-radius: var(--radius-xl);
    }

    .radius-bottom-right-0\@md {
        border-bottom-right-radius: 0;
    }

    .radius-bottom-left-0\@md {
        border-bottom-left-radius: 0;
    }

    .radius-top-left-0\@md {
        border-top-left-radius: 0;
    }

    .radius-top-right-0\@md {
        border-top-right-radius: 0;
    }
}

/* BUTTONS */

:root{
    --btn-radius: 4px;
}

.btn {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn--accent:hover {
    background-color: var(--color-accent-lighter);
    color: var(--color-white);
    border-color: var(--color-accent-lighter);
}

.btn--primary {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    border-color: var(--color-primary-light);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    border-color: var(--color-primary-dark);
}

.app-link {
    width: 100%;
    height: 45px;
    font-size: 0;
    background: var(--color-accent) 50% 50% no-repeat;
    border-color: var(--color-accent);
}

.app-link:hover {
    background: var(--color-accent-lighter) 50% 50% no-repeat;
}

.app-link:first-child {
    background-image: url(/site/assets/files/1/appstore.svg);
}

.app-link:last-child {
    background-image: url(/site/assets/files/1/googleplay.svg);
}

.app-link-head {
    width: 100%;
    height: 45px;
    font-size: 0;
    background: var(--color-primary) 50% 50% no-repeat;
    border-color: var(--color-primary);
}

.app-link-head:hover {
    background: var(--color-primary-lighter) 50% 50% no-repeat;
}

.app-link-head:first-child {
    background-image: url(/site/assets/files/1/appstore.svg);
}

.app-link-head:last-child {
    background-image: url(/site/assets/files/1/googleplay.svg);
}

.btn--small {
    padding-top: 0.6em;
    padding-bottom: 0.6em;
    padding-left: 0.7em;
    padding-right: 0.7em;
}

.btn--small:hover {
    color: var(--color-white)!important;
}

/* HEADER */

@media (min-width: 64rem) {
    .f-header__nav-grid {
		flex-direction: column;
		align-items: normal;
		justify-content: space-between;
	}

}



.f-header__nav a {
    transition: color 0.3s ease;
}

.f-header__nav a:hover {
    color: var(--color-accent-lighter);
}

.f-header__nav a[href="/stock/"] {
    /* color: red; */
    font-weight: 500;
}

.f-header__nav a[href="/stock/"]:hover {
    color: var(--color-accent-lighter);
    font-weight: 500;
}

.f-header__link {
    transition: color 0.3s ease;
}

.f-header__link:hover {
    color: var(--color-accent-lighter);
}

.f-header__link svg {
    transition: transform 0.3s ease;
}

.f-header__link:hover svg {
    transform: rotate(180deg);
}

.f-header__dropdown {
    background-color: var(--color-bg)
}

.f-header__dropdown-link {
    color: var(--color-white);
}

@media (max-width: 48rem) {
    .f-header__dropdown-link {
        font-size: var(--text-sm);
        padding: var(--space-xxxs) 0;
    }
}

.pre-header {
	background: var(--color-primary);
}

.f-header__logo {
	display: flex;
}

.form-control {
	background:	transparent;

}

.language-picker__dropdown {
    width: unset;
}

.language-picker__dropdown--up {
    bottom:  unset;
}

.language-picker__flag {
    text-align: start;
}

@media (max-width: 768px) {
	.pre-header {
		display: none;
	}

    .language-picker__item span {
        max-width: 90%;
    }

    .f-header__item {
        border-bottom: 0px;
    }

    .language-picker__dropdown {
        width: 100%;
        height: 150px;
        overflow: auto;
    }
}



.language-picker__item {
    gap: var(--space-xxs);
}

.language-picker__button {
    padding: 0;
}

.language-picker__button .icon:last-of-type {
    height: 12px;
    width: 12px;
}

.language-picker__button[aria-expanded="true"] svg:last-child {
    transform: rotate(180deg);
}

.language-picker__button svg:last-child {
    transition: transform 0.3s ease;
}

.f-header__link--icon {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.f-header__link--icon:hover {
    color: var(--color-accent-lighter);
}

.icon-custom-size {
    --size: 1.5em;
}

.search-input__btn:focus .icon, .search-input .search-input__input:focus + .search-input__btn .icon {
    color: var(--color-white);
}

.autocomplete__list {
    z-index: 11;
}

/* FOOTER */

.footer-v4 .footer-content a,
.footer-v4 .footer-content button {
    color: var(--color-white);
    transition: color 0.3s ease;
}

.footer-v4 a:hover,
.footer-v4 button:hover {
    color: var(--color-accent-lighter);
}

.read-more__btn {
    color: var(--color-black);
}

.footer-v5__link:hover {
    text-decoration: none;
}

/* SLIDESHOW PM */

.aspect-ratio-custom {
    --aspect-ratio: calc(21 / 9);
    position: relative;
    height: 0;
    padding-bottom: calc(100% / (var(--aspect-ratio)));
}

@media (max-width: 768px) {
    .aspect-ratio-custom {
        --aspect-ratio: calc(5 / 5);
    }
}

.dark-mask::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), transparent);
    z-index: 3;
}

.slideshow-pm__control {
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.slideshow-pm__control .icon {
    --size: 20px;
}

/* PROMO SLIDESHOW */

.promo-slideshow--ratio-custom .slideshow__item {
    aspect-ratio: 21 / 9;
    height: auto;
}

@media (max-width: 768px) {
	.promo-slideshow--ratio-custom .slideshow__item {
        aspect-ratio: 3 / 3;
        height: auto;
    }
}

/* SLIDESHOW */

.slideshow--ratio-custom .slideshow__item {
  height: 0;
  padding-bottom: 20%;
}

@media (max-width: 768px) {
	.slideshow--ratio-custom .slideshow__item {
        height: 0;
        padding-bottom: 75%;
    }
}

/* GRID */

.main-direction-item {
    transition: all 0.3s ease-in-out;
}

.main-direction-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.main-direction-item:last-child .link-fx-1 {
    color: var(--color-black);
}

.main-direction-item .link-fx-1::before {
    display: none;
}

.main-direction-item:hover .icon circle {
	stroke-dashoffset: 200;
	transition: stroke-dashoffset 0.2s 0.1s;
}

.main-direction-item:hover .icon line {
	transform: rotate(-180deg);
}

.main-direction-item:hover .icon line:last-child {
	transform: rotate(180deg);
}

.main-direction-item .link-fx-1 .icon {
	position: static;
	transform: translateX(0%) rotate(90deg);
}

@media (max-width: 1023px) {
    .main-direction-item h3 {
        text-align: end;
    }
}

.contact-grid {
    min-height: 285px;
}

.contact-grid img {
    border-top-left-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

@media (min-width: 1023px) {
    .contact-grid img {
        border-top-left-radius: var(--radius-xl);
        border-bottom-left-radius: var(--radius-xl);
        border-top-right-radius: 0;
    }
}

.card-v12 {
    display: flex;
    flex-direction: column;
    background-color: var(--color-bg-dark);
}

.card-v12:hover {
    box-shadow: var(--shadow-sm);
}

.card-v12__figure {
    clip-path: inset(0% var(--space-xxxs) 0% 0% round 0% var(--radius-md) var(--radius-md) 0%);
}

/* NEWS */

.slide-wrap {
    padding: 20px 40px;
    background: var(--color-primary);
	transition: all 0.3s ease-in-out;
}

.slide-wrap:hover {
	box-shadow: var(--shadow-md);
}

.short-news-item, .slide-wrap{
	display: flex; 
	align-items: center;
	justify-content: flex-start;
}

.short-news-container {
	flex-grow: 1;
	overflow: hidden;
}

.height-swiper{
    height: 96px;
}

.swiper-container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.short-news-buttons {
    flex-grow: 0;
    flex-shrink: 0;
    width: 28px;
    margin-left: 20px;
}

.short-news-buttons {
    flex-grow: 0;
    flex-shrink: 0;
    width: 28px;
    margin-left: 20px;
}

.swiper-container-vertical>.swiper-wrapper {
    flex-direction: column;
}

.short-news-time {
    display: flex;
    align-items: center;
    justify-content: left;
    margin-right: 3rem;
    font-size: 16px;
    line-height: 24px;
    color: hsl(0, 0%, 72.5%);
}

.padding-sm .short-news-time {
	position: absolute;
    bottom: 0;
}

.short-news-content {
    font-size: 18px;
    line-height: 24px;
    max-height: 72px;
    overflow: hidden;
    color: #000;
}

.story .card-v6-img {
    transition: 0.4s;
    border-top-left-radius: var(--radius-xl);
    border-bottom-left-radius: var(--radius-xl);
}

@media (max-width: 64rem) {
    .story .card-v6-img {
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
	    border-bottom-left-radius: 0;
    }   
}

.story__title a:hover {
    text-decoration: none;
}

.story--featured .story__title {
	font-size: var(--text-lg);
}

@media (max-width: 64rem) {
    .story--featured .story__title {
	    font-size: var(--text-md);
    }   
}

.news-content h1,
.news-content h2,
.news-content h3,
.news-content h4 {
	color: var(--color-primary);
	text-transform: uppercase;
}

.select-pagination-item {
	font-weight: bold;
}

.story__category {
    border-radius: var(--radius-lg);
    color: var(--color-white);
    background-color: var(--color-accent);
}

.story__category:hover {
    text-decoration: none;
    background-color: var(--color-accent);
}

@media (min-width: 64rem) {
    .story--featured {
        grid-template-columns: 3fr 3fr;
    }
}

/* CONTACTS */

.map__dealers-list-wrapper {
    border-bottom-left-radius: var(--radius-xl);
    border-top-left-radius: var(--radius-xl);
    overflow: hidden;
}

.ymaps3x0--map-container {
    border-bottom-right-radius: var(--radius-xl);
    border-top-right-radius: var(--radius-xl);
}

.map-dealer {
	width: 100%;
	height: 100%;
}

.map-container {
	min-height: 400px;
	height: 60vh;
}

.dealer-item {
    margin-bottom: var(--space-sm);
    margin-left: var(--space-sm);
    margin-right: var(--space-xxxs);
	transition: all 0.3s ease;
}

.dealer-item:first-child {
    margin-top: var(--space-sm);
}

.dealer-item:hover {
	background-color: var(--color-accent-dark);
}


@media (max-width: 64rem) {
    .dealer-item h3 {
        font-size: 1rem;
    }
}

#dealer-detail,
.dealer-list {
    scroll-margin-top: 100px; /* Отступ при прокрутке к элементу */
}

.marker {
    overflow: hidden;
    width: 32px;
    display: flex;
    justify-content: center;
    height: 32px;
    box-sizing: content-box;
}

.marker-container {
    cursor: pointer;
	display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    transform: translate(-50%, -50%);
}

/* SVG маркера */
.marker svg {
    display: block;
    transition: transform 0.3s ease;
    transform-origin: center center;
}

/* Активный маркер */
.marker svg.active {
    fill: red;
}

/* Всплывающее окно с информацией о дилере */
.marker-info {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: white;
    color: #333;
    border-radius: var(--radius-lg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    font-size: 12px;
    white-space: nowrap;
    pointer-events: auto; /* чтобы блок реагировал на hover */
    cursor: default;      /* курсор не меняется на pointer */
    opacity: 0;
    transition: opacity 0.2s ease;
}
.marker-info.visible {
    opacity: 1;
}

/* Появление при наведении */
.marker-container:hover .marker-info {
    opacity: 1;
}

/* Активный дилер в списке */
.dealer-item.active {
    background-color: var(--color-primary-dark);
}

.marker-info {
    background: white;
    padding: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    display: none;
}

.marker-info.visible {
    display: block;
}

.dealers-container {
    position: relative;
}

.info-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.dealer-more {
    color: var(--color-primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.dealer-detail-content {
    display: none;
}

#dealer-detail-content .dealer-detail-content {
    display: block;
}

.search-input__input--custom {
	background: var(--color-white);
	border: 1px solid var(--color-contrast-higher);
}

.form-control:focus, .form-control:focus-within {
	background: var(--color-primary-dark);

	color: white;
}

.select__item {
	color: var(--color-primary);
}

@media (max-width: 768px) {
    .dealer-list {
        height: 400px;
    }

    .map__dealers-list-wrapper {
        border-top-left-radius: var(--radius-xl);
        border-top-right-radius: var(--radius-xl);
        border-bottom-left-radius: 0;
    }

    .ymaps3x0--map-container {
        border-bottom-left-radius: var(--radius-xl);
        border-bottom-right-radius: var(--radius-xl);
        border-top-right-radius: 0;
    }

	.map-dealer {
		height: 400px;
	}

	.map-container {
		height: auto;
	}

	.marker-info {
		height: auto;
		width: 90vw;

		white-space: normal;
	}
}

/* PRODUCT (PAGE CAR) */

@media (min-width: 1024px) {
    .property-car__item:not(:first-child) {
        padding-left: var(--space-md);
    }

    .shadow-sm-custom {
        box-shadow: var(--shadow-sm);
    }
}

.thumbslide__nav-item img {
    border-radius: var(--radius-md);
}

.thumbslide__nav-item--active::after {
    border-radius: var(--radius-md);
}

.exp-lightbox__media-inner {
    border-radius: var(--radius-md);
}

.tooltip-trigger {
    white-space: wrap;
    border-bottom: none;
}

.tooltip--chips {
    font-size: .7em;
    vertical-align: super;
    text-transform: none;
    font-weight: 600;
}

.product-link--custom .link-fx-1::before {
	display: none;
}

.product-link--custom:hover .icon circle {
	stroke-dashoffset: 200;
	transition: stroke-dashoffset 0.2s 0.1s;
}

.product-link--custom:hover .icon line {
	transform: rotate(-180deg);
}

.product-link--custom:hover .icon line:last-child {
	transform: rotate(180deg);
}

.product-link--custom .link-fx-1 .icon {
	position: static;
	transform: translateX(0%) rotate(90deg);
}

.product-link--custom .link-fx-1  {
	height: auto;
	padding: 0;
}

.prop-table__cell--custom {
    width: auto;
}

.fade-out {
    position: relative;
    max-height: 400px;
    overflow: hidden;
}

.fade-out::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
}

.expanded .fade-out {
    max-height: none;
}

.expanded .fade-out::after {
    display: none;
}

@media (max-width: 576px) {
    .border-right-mobile {
        border: none;
    }
}

/* STOCK */

input[type="checkbox"]:disabled + label {
    color: #999;
    cursor: not-allowed;
}

.adv-filter__checkbox-list div {
    transition: opacity 0.3s ease;
}

#adv-filter-gallery {
  position: relative;
  min-height: 200px; /* чтобы при пустом контенте не прыгало */
}

.gallery-loader {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  display: flex;
  align-items: start;
  justify-content: center;
  z-index: 1;
}

.gallery-loader.hidden {
  display: none;
}

.gallery-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #ccc;
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/*  Cars Filter */

.adv-filter .slider--custom {
    width: 100%;
}

.filter-brands {
    gap: var(--space-sm);
    
    column-count: 4;
}

.filter-brands li {
    margin-bottom: var(--space-sm);
}

.filter-brands li a {
    text-decoration: none;
}

.filter-brands li a:hover {
    color: var(--color-accent);
}

.select__dropdown {
    max-height: 300px !important;
}

@media (max-width: 768px) {
    .filter-brands {
        column-count: 2;
    }

    .slider--custom .slider__range:nth-of-type(2) {
        left: 0;
    }
}
 

/*  Advantages */

.adavantages_counter {
    top: 0;
    left: 5%;
}


/*  Tabs */

.tab-features--complectation .tab-features__control {
    color: var(--color-black);
}

.tab-features--complectation .tab-features__control:hover {
    color: var(--color-white);
}

.tab-features__control {
  padding: var(--space-sm) var(--space-lg) var(--space-sm) var(--space-sm);
  color: var(--color-contrast-lower);
}

.tab-features__control:hover {
  background-color: var(--color-primary-light);
}

.tab-features__control::before {
  content: none;
}


/* Сравнение техники */

.compare-badge {
    display: none;
    position: fixed;
    top: -11px;
    right: -11px;
    background: red;
    color: white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 32px;
    z-index: 5;
  font-size: medium;
}


.modal-content {
    background: white;
    margin: 5% auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    max-height: 80vh;
    overflow: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th, .compare-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.compare-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

#btn-compare {
  display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
  z-index: 5;
}

.btn--secondary_comparison {
  background-color: var(--color-accent);
  color: white;
}

.comparison-link {
  color: black;
}

.comparison-link:hover {
  color: var(--color-primary);
}

.btn--secondary-custom {
	color: var(--color-success);
	border: 2px solid var(--color-success);
	background: transparent;
}

.btn--secondary-custom:hover {
	color: var(--color-white);
	border: 2px solid var(--color-success);
	background: var(--color-success);
}

.btn--secondary-custom-v2 {
	color: var(--color-white);
	border: 2px solid var(--color-accent);
	background: var(--color-accent);
}

.btn--secondary-custom-v2:hover {
	color: var(--color-white);
	border: 2px solid var(--color-accent-dark);
	background: var(--color-accent-dark);
}

.table--compare .table__body .table__row:nth-child(odd) {
    background-color: #f5f5f5;

    color: black;
}


@media (max-width: 796px) {
    .blocks-main-title {
        padding: 0 13px;
    }
}