/**
 * Индивидуальные стили для сайта клиента, не для Теста. На Тесте остается пустым.
 */
 
.mt-20 {
    margin-top: 20px;
}
 
/**
 * Менюшка
 */
 
.office {
    max-width: 218px;
}
 
header.idx .top {
    background-color: rgba(255, 255, 255, .85);
}

.dark header.idx .top {
    background-color: rgba(0, 0, 0, .85);
}

header.idx .city__select span {
    color: var(--primary) !important;
}
header.idx .city__select svg {
    fill: var(--primary) !important;
}

header.idx .top__wrap {
    border-bottom-color: transparent;
}

.top-menu__link {
    color: #5e6565;
}
.dark .top-menu__link {
    color: #a8b0b0;
}

@media screen and (min-width: 1200px) {
    .top__left,
    .navbar__left {
        width: calc(100% / 12 * 1.5 - 20px);
    }
    .navbar__center {
        width: calc(100% / 12 * 4.9 - 20px);
    }
    .navbar__right {
        width: calc(100% / 12 * 5.6 - 20px);
    }
    .office__icon {
        border: none;
        border-radius: 0;
        width: 16px;
        height: 16px;
    }
}

@media screen and (max-width: 1199px) {
    .office__info {
        display: none;
    }
}

@media screen and (min-width: 1199px) and (max-width: 1739px) {
    .office__info {
        display: block;
    }
    .top__left,
    .navbar__left {
        margin-left: 0;
    }
    .top__right,
    .navbar__right {
        margin-right: 0;
    }
    .navbar__right .office__text {
        display: none;
    }
    .navbar__order {
        margin-left: 10px;
    }
    .navbar__private {
        margin-left: 10px;
    }
    .navbar__contacts .office {
        margin-right: 15px;
        column-gap: 8px;
    }
}
 
/**
 * Обзоры
 */

.review-card--pic a {
	overflow: hidden;
	width: 100%;
	max-height: 260px;
	display: flex;
	justify-content: center; /* Центрирование по горизонтали */
	align-items: center;
}

@media (max-width: 1199px) {
	.review-card--pic a {
		max-height: 220px;
	}
}

.review-card--pic a img {
	object-fit: cover;
	object-position: center;
}


.m-tooltip__phone svg.blue {
	fill: #259dd9;
}



.msgs__tg {
	border: 1px solid rgba(174, 179, 179, .3);
}

.msgs__tg svg {
	fill: #259dd9;
	transition: .3s linear;
}

.msgs__tg:hover svg {
	fill: #259dd9;
	transition: .3s linear;
}




.msgs_max {
	display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(174, 179, 179, .3);
    border-radius: 50%;
    transition: .3s linear;
}

.msgs_max:hover {
	border-color: #aa4cff;
}

.msgs_max svg {
	width: 18px;
    height: 18px;
	fill: #aa4cff;
	transition: .3s linear;
}

.msgs_max:hover svg {
	fill: #aa4cff;
	transition: .3s linear;
}





.faq__text a {
	color: var(--secondary);
}




header.idx .city__select span {
	color:#fff;
}

header.idx .city__select svg {
	fill: #fff;
}



@media screen and (max-width: 1199px) {
	.mobile-menu .logo img,
    .top .logo img {
    	height: 40px;
    }
}

.hero .btn {
	font-size: 20px;
    line-height: 24px;
    max-width: 380px;
}

.request .btn,
.request .btn-border {
	width: auto;
}

.request .btn-border {
	opacity: 0.8;
}


.form-in-page .modal__inputs {
	display: flex;
	gap:30px;
}

.form-in-page .modal__inputs .form-group {
	flex-grow: 1;
}

.form-in-page .sub_title {
	text-align: center;
}

@media (max-width: 767px) {
	.form-in-page .modal__inputs {
		flex-wrap: wrap;
		gap:20px;
	}
	.form-in-page .modal__inputs .form-group {
		width: 100%;
	}

}

@media (max-width: 575px) {
	.form-in-page .modal__btns {
		display: flex;
		flex-direction: column;
		gap: 20px;
	}
}

@media (min-width: 1199px) {
	.form-in-page .modal__btns {
		max-width: 70%;
		margin:0 auto 24px auto;
	}

	.form-in-page .form-checkbox.agree_box {
		justify-content: center;
	}
}


.card {
	display: flex !important;
	flex-direction: column;
}

.card__car {
	flex-wrap: nowrap;
	min-height: 110px;
}

.card-row__price {
	flex-grow: 1;
}

.card__desc {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.bottom__left {
    display: flex;
    gap: 10px;
    @media (width <= 768px) {
        flex-wrap: wrap;
        text-align: center;
    }
}

.domain-copyright {
    white-space: nowrap;
    @media (width <= 768px) {
        br {display: none;}
        margin: 0 auto;
    }
}

.t-social__link.insta svg {
    width: 40px;
    height: 40px;
}

.social__link.insta svg {
    width: 100px;
    height: 100px;
    @media (width <= 1199px) {
        width: 86px;
        height: 86px;
    }
    @media (width <= 768px) {
        width: 70px;
        height: 70px;
    }
}


.logo .logo_black {
	display: block;
}

.logo .logo_white {
	display: none;
}


.dark .logo .logo_black {
	display: none;
}

.dark .logo .logo_white {
	display: block;
}


.cookies_box {
	position: fixed;
	left:10px;
	bottom:10px;
	z-index: 1000;
	background: #fff;
	padding:20px;
	border-radius: 30px;
	display: flex;
	gap:10px;
	align-items: center;
}

.dark .cookies_box {
	background: var(--bg-box);
}


.hero--full {
    @media (width > 1739px) {
        margin-top: -168px;
    }
}

.modal__btns-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 10px;
    margin-bottom: 25px;
    margin-top: -20px;
}

.form-in-page .modal__btns-3 {
    @media (width > 1029px) {
        max-width: 920px;
        margin-left: auto;
        margin-right: auto;
    }
}

.modal__btns-3 .btn {
    height: auto;
    font-size: 14px;
    margin: 0;
    padding: 0;
    line-height: 36px;
    @media (width <= 768px) {
        font-size: 12px;
        padding: 0 10px;
    }
}

.btn--blue {
    border-color: #259dd9;
    background-color: #259dd9;
    &:hover {
        color: #259dd9;
        background-color: #fff;
    }
}

.btn--tg {
    display: flex;
    gap: 5px;
    border-color: #259dd9;
    background-color: #259dd9;
    svg {
        width: 20px;
        height: 20px;
        fill: #fff;
    }
}

.btn--tg:hover {
    color: #259dd9;
    background-color: #fff;
    svg {
        fill: #259dd9;
    }
}

.btn--max {
    display: flex;
    gap: 5px;
    border-color: #aa4cff;
    background-color: #aa4cff;
     svg {
        width: 20px;
        height: 20px;
        fill: #fff;
    }
}

.btn--max:hover {
    color: #aa4cff;
    background-color: #fff;
    svg {
        fill: #aa4cff;
    }
}

.section-title a {
    font-size: inherit;
    color: inherit;
    line-height: inherit;
    text-decoration: none;
}

.advant__icon {
    margin-bottom: 30px;
}

.advant__desc {
    font-size: 14px;
}

div.whatsapp-widjet div.pc div.button svg {
	fill: #0088CC;
}
div.whatsapp-widjet div.pc div.button:hover {
	border-color: #0088CC;
	color: #fff;
}
div.whatsapp-widjet div.pc {
	background: var(--secondary);
	color: #ffffff;
}

div.whatsapp-widjet div.pc span {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 30px;
	height: 30px;
	background: #fff;
	border-radius: 50%;
}
div.whatsapp-widjet div.pc div.button span svg {
	width: 24px;
	height: 24px;
}

.dropdown-new {
    min-height: 380px;
}

.dropdown-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px;
    width: 100%;
    max-width: 1200px;
}

.menu-new.column-2 {
    grid-column: 2 / 4;
}

.menu-new__btns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.menu-new__btns .btn-border {
    display: flex;
    column-gap: 30px;
    justify-content: flex-start;
    padding: 0 25px;
    line-height: 50px;
    text-transform: uppercase;
    &:hover {
        border-color: var(--gray);
        background: var(--gray);
        color: #fff;
    }
    & img {
        width: 32px;
    }
}

.menu-new__title {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 25px;
}

.menu-new__link {
    display: flex;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--font-dark);
    transition: .3s linear;
    cursor: pointer;
    &:hover {
        color: var(--secondary);
    }
}

.dropdown-new .dropdown__menu {
    position: absolute;
    left: 300px;
    background: #fff;
    height: 100%;
    z-index: 2;
    @media (width <= 1739px) {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }
}

.dark .dropdown-new .dropdown__menu {
    background: var(--bg-box-dark);
}

.dropdown-new .dropdown__menu.dropdown-hide {
    display: none;
}

.dropdown-new .dropdown__img {
    height: auto;
}

.dropdown-new .dropdown__link {
    row-gap: 5px;
    & span {
        font-weight: 400;
        font-size: 14px;
    }
}

.dropdown .link {
    display: flex;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    margin-top: 12px;
    color: var(--font-dark);
    transition: .3s linear;
    &:hover {
        color: var(--secondary);
    }
}

.link.close-dropdown__menu {
    grid-column: 1/-1;
    margin-top: 0;
}

.cwidgets {
    position: fixed;
    right: 28px;
    bottom: 0;
    z-index: 99;
    @media (width <= 768px) {
        bottom: 50px;
    }
}
.cwidgets__item {
    position: relative;
    width: 55px;
    height: 55px;
    border-radius: 50px;
    margin-bottom: 40px;
    @media (width <= 768px) {
        width: 32px;
        height: 32px;
        margin-bottom: 30px;
    }
}
.cwidgets__item:before, .cwidgets__item:after {
    content: " ";
    display: block;
    position: absolute;
    left: -20px;
    right: -20px;
    top: -20px;
    bottom: -20px;
    border-radius: 50%;
    animation: animate 1.5s linear infinite;
    opacity: 0;
    backface-visibility: hidden;
    border: 1px solid #EF2222;
    @media (width <= 768px) {
        left: -10px;
        right: -10px;
        top: -10px;
        bottom: -10px;
    }
}
.cwidgets__item:after {
    animation-delay: .5s;
}
.cwidgets__item_max:before, .cwidgets__item_max:after {
    border-color: #774DDD;
}
.cwidgets__item_tg:before, .cwidgets__item_tg:after {
    border-color: #10A5D8;
}
.cwidgets__item a {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -10000px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 2;
}
.cwidgets__item.cwidgets__item_max a {
    background-image: url(../img/icons/icon-max.svg);
}
.cwidgets__item.cwidgets__item_tg a {
    background-image: url(../img/icons/icon-tg.svg);
}
.cwidgets__item.cwidgets__item_message a {
    background-image: url(../img/icons/icon-message.svg);
}
@keyframes animate {
    0% {transform: scale(0.5); opacity: 0;}
    50% {opacity: 0.8;}
    100% {transform: scale(1);opacity: 0;}
}

.card-row__info.card-row__info-2-col {
	grid-template-columns: repeat(2, 1fr);
	grid-gap: 8px;
}
.card-row__info.card-row__info-2-col span {
	font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #8e8e89;
}

.sort-block {
	width: 100%;
	border: 1px solid var(--border);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 30px;
	height: 64px;
    background: #fff;
	gap: 20px;
	font-family: var(--font);
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
	
	@media (width <= 768px) {
		flex-wrap: wrap;
		height: auto;
		padding: 20px;
	}
}
.dark .sort-block {
	background: var(--bg-dark);
}
.sort-block a {
	display: flex;
	align-items: center;
    color: var(--font-dark);
	text-decoration: none;
	transition: 1s ease all;
	gap: 10px;
}
.dark .sort-block a {
	color: var(--primary);
}
.sort-block a:hover {
	color: var(--secondary);
}
.sort-block a svg {
	fill: var(--primary);
	height: 12px;
	width: auto;
}
.sort-block a.current span {
	transition: 1s ease all;
	border-bottom: 1px solid var(--primary);
}
.sort-block a.current:hover span {
	border-color: var(--secondary);
}

.car-tabs .catalog__header.catalog__header-wrap {
	flex-wrap: wrap;
}
.header-info__text {
	color: #fff;
}

/**
 * Ссылки с характеристик карточек товаров
 */

.specifs__col a {
    color: var(--font-dark);
    text-decoration: underline;
}

/**
 * Вывод каталога авто (КИТАЙ б/у все сайты)
 */
 .card-row__price-actions {
     display: flex;
     gap: 15px;
     flex-direction: column-reverse;
 }
 
.card-row__price .app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 33px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: .3s linear;
    padding: 14px 12px;
    white-space: nowrap;
    max-width: 180px;
    background: var(--secondary);
    border: 1px solid var(--secondary);
    color: #fff;
}
.card-row__price-toggle > span,
.card-row__price-toggle > span:hover {
    font-weight: 400;
    font-size: 12px;
    line-height: 1.5;
    color: var(--font-dark);
    border-radius: 0;
    border: 0;
    border-bottom: 1px dashed var(--font-dark);
    padding: 0;
    background-color: transparent;
    height: auto;
    width: auto;
    display: inline-block;
}
@media screen and (max-width: 1739px) {
    .card-row__price .app-btn {
        height: 30px;
        font-size: 12px;
    }
}
.card-row__price > p:nth-child(2) {
    margin-bottom: 5px;
}
/**
 * Отступы
 */
.mt-10 {
    margin-top: 10px;
}
.mt-15 {
    margin-top: 15px;
}
.mt-20 {
    margin-top: 20px;
}

/**
 * Баннеры
 */
.prom-v1 .hero {
    padding: 60px 100px 60px 100px;
}
.prom-v1 .hero__title {
    font-size: 36px;
}
.prom-v1 .hero .btn {
    max-width: none;
    width: fit-content;
}
.prom-v1 .img-sm {
    display: none;
}
@media screen and (max-width: 1739px) {   
    .prom-v1 .hero .btn {
        font-size: 14px;
    }
}
@media screen and (max-width: 1199px) {
    .prom-v1 .hero {
        padding: 60px 60px 60px 60px;
    }
    .prom-v1 .hero .btn {
        max-width: none;
        width: fit-content;
    }
}
@media screen and (max-width: 767px) {
    .prom-v1 .hero__img {
        display: block;
    }
    .prom-v1 .img-lg {
        display: none;
    }
    .prom-v1 .img-sm {
        display: block;
    }
    .prom-v1 .hero {
        padding: 40px 40px 200px 40px;
    }
    .prom-v1 .hero .btn {
        font-size: 12px;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/**
 * Вступительные тексты
 */
 
.section-intro {
    margin-bottom: 40px;
}
.section-intro.section-intro-china p {
    font-size: 14px;
}
.section-intro.section-intro-china p:not(:last-child) {
    margin: 0 0 30px;
}

/**
 * Модальное окно и формы
 */
 
.form-group input[type="text"]:required:invalid {
    background-color: #fff;
}
.dark .form-group input[type="text"]:required:invalid {
    background-color: var(--bg-dark);
}
 
.form-toggle.agree_box {
    font-size: 12px;
}
.form-toggle.agree_box a {
    color: #333;
    text-decoration: underline;
}
.dark {
    .form-toggle.agree_box a {
        color: #eee;
    }
}

.form-toggle {
    display: flex;
    gap: 10px;
    padding: 2px;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.2s;
}

.form-toggle .toggle {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 22px;
    flex-shrink: 0;
}

.form-toggle .toggle input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 2;
    margin: 0;
    cursor: pointer;
}

.form-toggle .toggle .slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fafafa;
    border-radius: 22px;
    transition: background 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    pointer-events: none;
}

.dark .form-toggle .toggle .slider {
    background: #333;
}

.form-toggle .toggle .slider::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-toggle .toggle input:checked + .slider {
    background: #34c759;
}

.form-toggle .toggle input:checked + .slider::before {
    transform: translateX(14px);
}

.form-toggle:active .toggle .slider::before {
    transform: scale(0.92);
}

.form-toggle:active .toggle input:checked + .slider::before {
    transform: translateX(14px) scale(0.92);
}

.form-toggle .toggle input:focus-visible + .slider {
    outline: 2px solid #007aff;
    outline-offset: 2px;
    border-radius: 22px;
}

.form-toggle .toggle input:required:invalid + .slider {
    outline: 2px solid #ff3b30;
    outline-offset: 1px;
    border-radius: 22px;
}

/**
 * Статистика
 */

.car-card__footer .cross-link {
    margin-left: auto;
    gap: 4px;
    border-bottom: var(--secondary) 1px solid;
}
.car-card__footer .cross-link > span {
    font-size: 16px;
}
@media screen and (max-width: 575px) {
    .car-card__footer .cross-link {
        margin-left: auto;
        margin-right: auto;
    }
}

/**
 * Избранное на главной
 */

.dark .favorites-btn {
    background-color: var(--bg-box);
}
.favorites-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    transition: .3s linear;
}
.favorites-btn svg {
    width: 24px;
    height: 24px;
    fill: var(--secondary);
    transition: .3s linear;
}


/**
 * Карточки авто
 */
.card-row__desc {
    padding: 50px 55px 50px 45px;
}
.card-row__car {
    width: 28%;
    padding-right: 35px;
}
.card-row__info {
    width: 41%;
    padding-left: 35px;
    padding-right: 35px;
}
.card-row__price {
    width: 31%;
    padding-left: 35px;
}
.card-row__header {
    display: flex;
    gap: 5px 10px;
    flex-wrap: wrap;
    align-items: center;
}
.card-row__header .car-card__fav,
.car-card__fav-sm {
    width: 28px;
    height: 28px;
}
@media screen and (max-width: 1739px) {
    .card-row__desc {
        padding: 30px 35px 30px 25px
    }
}
@media screen and (max-width: 1023px) {
    .card-row__car {
        width: auto;
    }
    .card-row__info {
        width: auto;
        padding-left: 0;
        padding-right: 0;
    }
    .card-row__price {
        width: auto;
    }
}
@media screen and (max-width: 767px) {
    .card-row__price {
        padding-left: 0;
        padding-top: 20px;
    }
}

/**
 * Диалог с менеджером
 */
:root {
    --dialog-widget-bottom: 66px;
    --dialog-widget-right: 124px;
    --dialog-widget-width: 330px;
    --dialog-card-radius: 20px;
    --dialog-card-radius-bottom-right: 0px;
    --dialog-avatar-radius: 50%;
    --dialog-close-radius: 50%;
    --dialog-avatar-size: 48px;
    --dialog-avatar-font: 18px;
    --dialog-close-size: 32px;
    --dialog-close-font: 20px;
    --dialog-corner-size: 14px;
    --dialog-content-padding: 16px 24px 16px 20px;
    --dialog-header-margin: 10px;
    --dialog-user-gap: 10px;
    --dialog-text-margin: 6px 0 4px 0;
    --dialog-close-top-offset: 6px;
    --dialog-close-right-offset: 6px;
    --dialog-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    --dialog-animation-duration: 0.25s;
    --dialog-avatar-bg: #e9edf2;
    --dialog-avatar-color: #3a5b7a;
    --dialog-close-color: #94a3b8;
    --dialog-close-hover-bg: #e2e8f0;
    --dialog-close-hover-color: #1e293b;
    --dialog-text-color: #1e2a3e;
    --dialog-user-color: #0f172a;
    --dialog-card-bg: #ffffff;
}

@media (max-width: 767px) {
    :root {
        --dialog-widget-bottom: 88px;
        --dialog-widget-right: 90px;
        --dialog-widget-width: 280px;
        --dialog-avatar-size: 36px;
        --dialog-avatar-font: 16px;
        --dialog-content-padding: 12px 14px;
        --dialog-close-size: 28px;
        --dialog-close-font: 18px;
        --dialog-close-top-offset: 8px;
        --dialog-close-right-offset: 8px;
        --dialog-corner-size: 12px;
    }
}

.dialog-widget-root {
    position: fixed;
    bottom: var(--dialog-widget-bottom);
    right: var(--dialog-widget-right);
    z-index: 10000;
    width: var(--dialog-widget-width);
    max-width: calc(100vw - 40px);
    opacity: 0;
    transform: translateY(20px);
    transition:
    opacity var(--dialog-animation-duration) ease,
    transform var(--dialog-animation-duration) ease;
    pointer-events: none;
    cursor: pointer;
    filter: drop-shadow(var(--dialog-shadow));
}

.dialog-widget-root.dialog-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dialog-card {
    background: var(--dialog-card-bg);
    position: relative;
    border-radius: var(--dialog-card-radius) var(--dialog-card-radius)
    var(--dialog-card-radius-bottom-right) var(--dialog-card-radius);
    overflow: visible;
}

.dialog-card::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: calc(0px - var(--dialog-corner-size));
    width: 0;
    height: 0;
    border-bottom: var(--dialog-corner-size) solid var(--dialog-card-bg);
    border-right: var(--dialog-corner-size) solid transparent;
    z-index: 2;
    pointer-events: none;
}

.dialog-content {
    padding: var(--dialog-content-padding);
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--dialog-header-margin);
}

.dialog-user-info {
    display: flex;
    align-items: center;
    gap: var(--dialog-user-gap);
}

.dialog-avatar {
    width: var(--dialog-avatar-size);
    height: var(--dialog-avatar-size);
    background: var(--dialog-avatar-bg);
    border-radius: var(--dialog-avatar-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--dialog-avatar-font);
    color: var(--dialog-avatar-color);
    background-size: contain;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.dialog-user-name {
    font-weight: 650;
    font-size: 1rem;
    color: var(--dialog-user-color);
}

.dialog-close-btn {
    position: absolute;
    top: var(--dialog-close-top-offset);
    right: var(--dialog-close-right-offset);
    background: transparent;
    border: none;
    font-size: var(--dialog-close-font);
    cursor: pointer;
    color: var(--dialog-close-color);
    width: var(--dialog-close-size);
    height: var(--dialog-close-size);
    min-width: var(--dialog-close-size);
    min-height: var(--dialog-close-size);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--dialog-close-radius);
    transition:
    background 0.2s ease,
    color 0.2s ease;
    z-index: 5;
    line-height: 1;
    padding: 0;
}

.dialog-close-btn:hover {
    background: var(--dialog-close-hover-bg);
    color: var(--dialog-close-hover-color);
}

.dialog-text {
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--dialog-text-color);
    margin: var(--dialog-text-margin);
    background: transparent;
    padding-right: 20px;
}

@keyframes dialogGentleBounce {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-widget-root.dialog-visible .dialog-card {
    animation: dialogGentleBounce var(--dialog-animation-duration) ease-out;
}

/**
 * Табличка
 */
.table-simple {
    border-collapse: collapse;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table-simple td,
.table-simple th {
    border: 1px solid #ddd;
    padding: 10px;
}
.table-simple th,
.table-simple .center {
    text-align: center;
}
.table-simple td:first-child {
    text-align: left;
}
.table-simple th {
   font-weight: bold;
}
.table-simple tr.even td,
.table-simple tr.even th,
.table-simple tr td.even,
.table-simple tr th.even {
    background-color: #f2f2f2;
}
.dark .table-simple tr.even td,
.dark .table-simple tr.even th,
.dark .table-simple tr td.even,
.dark .table-simple tr th.even {
    background-color: #000;
}

/**
 * Статьи
 */
.articles-container {
    max-width: 1800px;
    margin: 0 auto;
}

.articles-title {
    font-weight: 600;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

/* GRID: 3 колонки по умолчанию */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Карточка */
.articles-card {
    background: #fff;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.articles-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.articles-image-wrap {
    width: 100%;
    min-height: 250px;
    aspect-ratio: 16 / 9;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.articles-content {
    padding: 30px 40px;
}

.articles-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.articles-category {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    background: rgba(206, 215, 217, .3);
    border-radius: 40px;
    margin-top: auto;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
    color: var(--primary);
}

.articles-date {
    color: #666;
}

.articles-card-title {
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

.articles-card-title a {
    color: var(--primary);
    text-decoration: underline;
}

.articles-card-title a:hover {
    color: var(--secondary);
}

.articles-excerpt {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}

@media (max-width: 1023px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}
.dark .articles-card {
    background: var(--bg-box);
}
.dark .articles-excerpt {
    color: #aaa;
}
.dark .articles-date {
    color: #999;
}
.article-full-info {
    display: flex;
    gap: 40px;
    flex-direction: column;
}
.articles-full .articles-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.articles-full .grid-left {
    padding-top: 30px;
    order: 2;
}

.articles-full .grid-right {
    padding-top: 30px;
    order: 1;
}

.articles-full .grid-right> *:first-child {
    margin-top: 0;
}

.articles-full .table-of-contents {
    padding-left: 30px;
    border-left: var(--gray) 1px solid;
    max-width: 400px;
    margin: 0 0 40px 0;
    font-size: 14px;
}

.articles-full .table-of-contents h2 {
    margin-top: 0;
}

.articles-full .table-of-contents ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.articles-full .table-of-contents li {
    margin: 5px 0;
    line-height: 1.4;
}

.articles-full .table-of-contents .toc-h3 {
    margin-left: 25px;
}

.articles-full .table-of-contents a {
    color: var(--primary);
    text-decoration: underline;
}

.articles-full .table-of-contents a:hover {
    color: var(--secondary);
}

.articles-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.articles-author .author-data {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.articles-author .author-avatar {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 500px;
    width: 64px;
    height: auto;
}

.articles-author .author-name {
    font-weight: 600;
}

.articles-author .author-description {
    font-weight: 400;
    color: var(--gray);
    font-size: 14px;
}
@media (max-width: 1199px) {
     .articles-full .articles-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .articles-full .grid-right {
        padding-top: 30px;
        order: 3;
    }
    .articles-full .table-of-contents {
        margin-bottom: 0;
    }
}
.articles-full article table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: left;
    margin: 0 0 30px;
    border-top: 1px solid #ddd;
}
.articles-full article table th {
    background-color: #4CAF50;
    color: white;
    padding: 12px;
    font-weight: bold;
}
.articles-full article table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
.articles-full article table tr:nth-child(even) {
    background-color: #f2f2f2;
}
.dark .articles-full article table {
    border-top: 1px solid #444;
}
.dark .articles-full article table th {
    background-color: #2e7d32;
    color: #e0e0e0;
}
.dark .articles-full article table td {
    border-bottom: 1px solid #444;
    color: #d4d4d4;
}
.dark .articles-full article table tr:nth-child(even) {
    background-color: #2a2a2a;
}
.dark .articles-full article table tr:nth-child(odd) {
    background-color: #1e1e1e;
}
.articles-carousel .slick-slide > div {
    display: flex;
}
@media (max-width: 767px) {
    .articles-carousel {
        margin-bottom: 130px
    }
    .articles-carousel .slick-slide {
        height: auto;
        padding: 0 10px;
        max-width: 350px;
    }
}

/**
 * Отдельная форма на странице
 */
.d-none {
    display: none;
}
.box-form-title {
    margin: 0 0 22px;
    font-weight: 700;
    font-size: 36px;
    line-height: 1.3;
    text-align: center;
    color: var(--font-dark);
}
.box-form-sub-title {
    font-weight: 700;
    text-align: center;
}
.box-form-inputs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 20px;
    padding-bottom: 40px;
}
.box-form-btns-3 {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.box-form-agree-box {
    justify-content: center;
}
@media (max-width: 1023px) {
    .box-form-inputs {
        grid-template-columns: repeat(2, 1fr);
    }
    .box-form-inputs .form-group:last-child {
        grid-column: span 2;
    }    
}
@media (max-width: 575px) {
    .box-form-inputs {
        grid-template-columns: repeat(1, 1fr);
    }
    .box-form-inputs .form-group:last-child {
        grid-column: span 1;
    }    
}

/**
 * Отдельная форма на странице
 */
.sub-info-text {
    font-size: 14px;
}

/**
 * ВК видео
 */
 
.vk-video-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}
.vk-video-card a {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    height: auto;
    aspect-ratio: 1080 / 1920;
    overflow: hidden;
}
.vk-video-card .vk-video-card-img {
    flex-grow: 1;
}
.vk-video-card .vk-video-card-date {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 10px;
    color: #fff;
    background: var(--secondary);
    opacity: .4;
    transition: all .3s ease-in-out;
    pointer-events: none;
    z-index: 2;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    opacity: .85;
}
.vk-video-card .vk-video-card-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 15px 14px 20px;
    color: #fff;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    opacity: .4;
    transition: all .3s ease-in-out;
    pointer-events: none;
    gap: 10px;
    display: flex;
    align-items: center;
}
.vk-video-card .vk-video-card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.vk-video-card .vk-video-card-title {
    min-height: 40px;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
}
.vk-video-card .vk-video-card-play {
    position: absolute;
    top: calc(50% - 45px);
    left: calc(50% - 45px);
    width: 90px;
    height: 90px;
    opacity: .4;
    transition: all .3s ease-in-out;
    pointer-events: none;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
.vk-video-card:hover .vk-video-card-name,
.vk-video-card:hover .vk-video-card-play,
.vk-video-card:hover .vk-video-card-date {
    opacity: .9;
}
.vk-video-card .vk-video-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.carousel-vk-video {
    margin-top: 30px;
    margin-bottom: 30px;
    padding-bottom: 85px !important;
    margin-left: -15px;
    margin-right: -15px;
}
.carousel-vk-video .item {
    height: 100%;
    padding: 0 15px;
}
.carousel-blreelsocks {
    margin-left: -15px;
    margin-right: -15px;
}
.carousel-vk-video .slick-arrow {
    position: absolute;
    z-index: 20;
    cursor: pointer;
}
.carousel-vk-video .slick-arrow.prev {
    left: 15px;
}
.carousel-vk-video .slick-arrow.next {
    right: 15px;
}

.carousel-vk-video .slick-dots {
    position: absolute;
    margin: 0;
    padding: 0;
    bottom: 30px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    column-gap: 20px;
    position: absolute;
    z-index: 10;
    left: 80px;
    right: 80px;
}
.carousel-vk-video .slick-dots li {
    display: block;
    flex-grow: 1;
    max-width: 20px;
}
.carousel-vk-video .slick-dots li button {
    display: block;
    width: 100%;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 100px;
    font-size: 0;
    background: #dee8ff;
    transition: .3s linear;
    background: var(--border);
    cursor: pointer;
}
.carousel-vk-video .slick-dots li.slick-active button {
    background: var(--primary);
    transform: scale(1.25);
}

.fit-content {
    width: fit-content;
}