@font-face {
    font-display: swap;
    font-family: 'Inter';
    src:url('/modules/fonts/inter/Inter-BoldItalic.eot');
    src: local('Inter Bold Italic'), local('Inter-BoldItalic'),
   url('/modules/fonts/inter/Inter-BoldItalic.eot?#iefix') format('embedded-opentype'),
   url('/modules/fonts/inter/Inter-BoldItalic.woff2') format('woff2'),
   url('/modules/fonts/inter/Inter-BoldItalic.woff') format('woff'),
   url('/modules/fonts/inter/Inter-BoldItalic.ttf') format('truetype');
    font-weight: bold;
    font-style: italic;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    src:url('/modules/fonts/inter/Inter-Regular.eot');
    src: local('Inter Regular'), local('Inter-Regular'),
   url('/modules/fonts/inter/Inter-Regular.eot?#iefix') format('embedded-opentype'),
   url('/modules/fonts/inter/Inter-Regular.woff2') format('woff2'),
   url('/modules/fonts/inter/Inter-Regular.woff') format('woff'),
   url('/modules/fonts/inter/Inter-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    src:url('/modules/fonts/inter/Inter-SemiBold.eot');
    src: local('Inter Semi Bold'), local('Inter-SemiBold'),
   url('/modules/fonts/inter/Inter-SemiBold.eot?#iefix') format('embedded-opentype'),
   url('/modules/fonts/inter/Inter-SemiBold.woff2') format('woff2'),
   url('/modules/fonts/inter/Inter-SemiBold.woff') format('woff'),
   url('/modules/fonts/inter/Inter-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    src:url('/modules/fonts/inter/Inter-Bold.eot');
    src: local('Inter Bold'), local('Inter-Bold'),
   url('/modules/fonts/inter/Inter-Bold.eot?#iefix') format('embedded-opentype'),
   url('/modules/fonts/inter/Inter-Bold.woff2') format('woff2'),
   url('/modules/fonts/inter/Inter-Bold.woff') format('woff'),
   url('/modules/fonts/inter/Inter-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    src:url('/modules/fonts/inter/Inter-Italic.eot');
    src: local('Inter Italic'), local('Inter-Italic'),
   url('/modules/fonts/inter/Inter-Italic.eot?#iefix') format('embedded-opentype'),
   url('/modules/fonts/inter/Inter-Italic.woff2') format('woff2'),
   url('/modules/fonts/inter/Inter-Italic.woff') format('woff'),
   url('/modules/fonts/inter/Inter-Italic.ttf') format('truetype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-display: swap;
    font-family: 'Inter';
    src:url('/modules/fonts/inter/Inter-Medium.eot');
    src: local('Inter Medium'), local('Inter-Medium'),
   url('/modules/fonts/inter/Inter-Medium.eot?#iefix') format('embedded-opentype'),
   url('/modules/fonts/inter/Inter-Medium.woff2') format('woff2'),
   url('/modules/fonts/inter/Inter-Medium.woff') format('woff'),
   url('/modules/fonts/inter/Inter-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

:root {
    color-scheme: light;
    --theme-page: #f4f6f8;
    --theme-surface: #ffffff;
    --theme-surface-2: #f7f9fc;
    --theme-surface-3: #eef2f7;
    --theme-text: #222735;
    --theme-text-muted: #616263;
    --theme-text-soft: #838485;
    --theme-border: #dfe5ee;
    --theme-border-strong: #c9d2df;
    --theme-input-bg: #ffffff;
    --theme-input-border: #c9d2df;
    --theme-accent: #145ff4;
    --theme-accent-hover: #0d4fd0;
    --theme-focus: #7aa7ff;
    --theme-positive: #159947;
    --theme-warning: #f5a524;
    --theme-danger: #d92d20;
    --theme-shadow: 0 12px 32px rgba(34, 39, 53, .08);
    --text-color: #222735;
    --text-color-2: #616263;
    --text-color-3: #838485;
    --text-color-for-dark: #ffffff;
    --text-color-2-for-dark: #dce5f2;
    --border-for-white: #dfe5ee;
    --border-for-dark: #2a3443;
    --background-full-white: #ffffff;
    --background-light-gray: #f4f6f8;
    --background-full-black: #0b1117;
    --background-light-black: #121a24;
    --background-reserve: #eef2f7;
    --btn-secondary-background: #f4f6f8;
    --btn-secondary-background-hover: #e8edf5;
    --btn-secondary-color: #222735;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --theme-page: #080d14;
    --theme-surface: #0f1722;
    --theme-surface-2: #121c29;
    --theme-surface-3: #182435;
    --theme-text: #eef4fb;
    --theme-text-muted: #b5c0ce;
    --theme-text-soft: #8f9cad;
    --theme-border: #243144;
    --theme-border-strong: #344358;
    --theme-input-bg: #182435;
    --theme-input-border: #4f6684;
    --theme-accent: #6ea2ff;
    --theme-accent-hover: #9bbfff;
    --theme-focus: #95b8ff;
    --theme-positive: #52c878;
    --theme-warning: #ffca68;
    --theme-danger: #ff7b72;
    --theme-shadow: 0 14px 36px rgba(0, 0, 0, .28);
    --text-color: #eef4fb;
    --text-color-2: #b5c0ce;
    --text-color-3: #8f9cad;
    --text-color-for-dark: #eef4fb;
    --text-color-2-for-dark: #b5c0ce;
    --border-for-white: #243144;
    --border-for-dark: #344358;
    --background-full-white: #0f1722;
    --background-light-gray: #121c29;
    --background-full-black: #080d14;
    --background-light-black: #121c29;
    --background-reserve: #182435;
    --btn-secondary-background: #162233;
    --btn-secondary-background-hover: #1f3046;
    --btn-secondary-color: #eef4fb;
}
:root {
    font-size: 16px;
    --indent-05x: 15px;
    --indent: 35px;
    --indent-2x: 70px;


    --text-color: #212121;
    --text-color-2: #636363;
    --text-color-3: #434445;
    --text-color-4: #FFF;
    --text-color-5: #ffdc21;
    --text-color-6: #F29100;
    --text-color-7: #C61515;

    --text-color-for-dark: #e2d6d6;
    --text-color-2-for-dark: #b0a7a7;
    --text-color-3-for-dark: #a9a9a9;


    --border-for-white: #E5E5E5;
    --border-for-dark: #504e4e;

    --link-color: #212121;
    --link-color-2: #4590f3;

    --background-full-white: #fff;
    --background-light-gray: #F7F7F7;
    --background-full-black: #080a0c;
    --background-light-black: #262d35;
    --background-reserve: #e2d6d6;

    --btn-primary-background: #041331;
    --btn-primary-background-focus-outline: #145FF43F;
    --btn-primary-background-hover: #072155;
    --btn-primary-background-disabled: #a9a9a9;

    --btn-secondary-background: #FFFFFF;
    --btn-secondary-background-focus-outline: #145FF43F;
    --btn-secondary-background-hover: #858FA3;
    --btn-secondary-background-disabled: #a9a9a9;
}

body {
    color: var(--text-color);
    background-color: var(--background-full-white);
}

.body-fixed {
    overflow: hidden;
}

body.dark-mode {
    color: var(--text-color-for-dark);
    background-color: var(--background-full-black);
}

.background {
    background: var(--background-light-gray);
}

body.dark-mode .background {
    background: var(--background-full-black);
}

.content-wrap {
    border-radius: 15px;
    padding: var(--indent);
    background-color: var(--background-full-white);
    border: 1px solid var(--border-for-white);
}

body.dark-mode .content-wrap {
    background-color: var(--background-light-black);
    border: 1px solid var(--border-for-dark);
}

/* от этого класса надо избавиться, но он юзается */
.dark-grey {
    color: var(--text-color-2);
}

body.dark-mode .dark-grey {
    color: var(--text-color-2-for-dark);
}

@media screen and (max-width: 992px) {
    :root {
        --indent: 20px;
        --indent-2x: 30px;
        --indent-05x: 10px;
    }
}
*, ::after, ::before {
    box-sizing: border-box;
    font-size: 1em;
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
    display: block;
}

body {
    padding: 0;
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
}

body, input, textarea, select, .btn , .btn-1, .education-btn{
    font-family: 'Inter', sans-serif;
}

a, .link{
    color: var(--link-color-2);
    text-decoration:none;
    cursor: pointer;
}

img, iframe {
    max-width: 100%;
    height: auto;
}

body.dark-mode iframe {
    opacity: 0.8;
}

body.dark-mode iframe:hover {
    opacity: 1;
}

p {margin-top: 0;}


.post-lead {
    font-size: 1rem;
    font-family: Inter, sans-serif;
    margin-bottom: 24px;
}

.content table.contacts-table {

}

.content .table-bl {
    font-size: 1rem;
}

.content-wrap {
    position: relative;
}

.content-wrap .authors-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.content iframe {
    width: 100%;
    margin: 1em 0;
    position: relative;
    min-height: 300px;
    border: 0;
    border-radius: 15px;
}

.content .h3,
.content h3 {
    margin-bottom: 10px;
}

.m {
    background-color: var(--background-full-white);
    border: 1px solid var(--border-for-white);
    border-radius: 15px;
}

body.dark-mode .m {
    background-color: var(--background-light-black);
    border: 1px solid var(--border-for-dark);
    border-radius: 15px;
}

.m-reverse {
    background-color: var(--background-light-black);
    border: 1px solid var(--border-for-dark);
    border-radius: 15px;
    color: var(--text-color-for-dark);
}

body.dark-mode .m-reverse {
    background-color: var(--background-full-black);
    border: 1px solid var(--border-for-dark);
    border-radius: 15px;
    color: var(--text-color-2-for-dark);
}


/* попытка сделать простой слайдер */
.s-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: left;
    gap: var(--indent-05x);
}


.shadow{
    box-shadow: 0 6px 20px rgba(55, 56, 61, 0.1);
}

.shadow-1{
    box-shadow: 0 4px 10px rgba(135, 145, 159, 0.15);
}

.border-radius-0 {
    border-radius: 0;
}
.border-radius {
    border-radius: 25px;
}
.border-radius-1 {
    border-radius: 15px;
}
.border-radius-2 {
    border-radius: 10px;
}
.border-radius-3 {
    border-radius: 5px;
}
.clearfix{
    clear: both;
}

hr {
    height: 1px;
    border: none;
    background-color: var(--border-for-white);
}

body.dark-mode hr {
    background-color: var(--border-for-dark);

}

.text-center {
    text-align: center;
}

/* от эти классов надо избавиться */
.p-0 {
    padding-top: 1px;
    padding-bottom: 1px;
}

.p-1 {
    padding-top: 10px;
    padding-bottom: 10px;
}

.p-2 {
    padding-top: 25px;
    padding-bottom: 25px;
}

.p-3 {
    padding-top: 30px;
    padding-bottom: 30px;
}

.p-4 {
    padding-top: 50px;
    padding-bottom: 50px;
}

.p-5 {
    padding: 80px 0;
}
.m-0 {margin: 0;}

.pt-1 {padding-top: 10px;}
.pt-2 {padding-top: 25px;}
.pt-20 {padding-top: 20px;}
.pt-3 {padding-top: 30px;}
.pt-4 {padding-top: 50px;}
.pt-5 {padding-top: 80px;}
.pt-6 {padding-top: 120px;}
.pb-1 {padding-bottom: 10px;}
.pb-2 {padding-bottom: 25px;}
.pb-3 {padding-bottom: 30px;}
.pb-4 {padding-bottom: 50px;}
.pb-5 {padding-bottom: 80px;}
.pb-6 {padding-bottom: 120px;}
.pb-32 {padding-bottom: 32px;}

.mt-0 {
    margin-top: 0;
}

.mt-3 {
    margin-top: 32px;
}

figure {
    margin: 0 0 10px;
}


figure figcaption {
    font-size: 0.95rem;
    color: #848484;
    margin-top: 5px;
    margin-bottom: 15px;
    font-style: italic;
}

.text-bold {
    font-weight: bold;
}
.hiddenStyle {
    display: none;
}

.content > img, .content > figure {
    margin: 25px 0;
}

.g-recaptcha {
    overflow: hidden;
}

.grecaptcha-badge {
    visibility: hidden;
}

.content {
    font-family: 'Inter', sans-serif;
}

.content h2:first-of-type,.content-text h2:first-of-type {
    margin-top: 0;
}

.content-wrap ul, .content-wrap ol {
    padding-left:16px;
}

.content-wrap > div.msg-wrap:first-child {
    margin-top: 0;
}

#search-query {
    word-wrap: break-word;
}


/*.scrolled-block {*/
/*    position: relative;*/
/*}*/

/*.scrolled-block::before {*/
/*    content: '';*/
/*    background: url('/v5/images/slide-icon.png') no-repeat center;*/
/*    transform: scaleX(-1);*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 5px;*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    z-index: 1;*/
/*}*/

/*.scrolled-block::after {*/
/*    content: '';*/
/*    background: url('/v5/images/slide-icon.png') no-repeat center;*/
/*    position: absolute;*/
/*    top: 5px;*/
/*    right: 35px;*/
/*    width: 30px;*/
/*    height: 30px;*/
/*    z-index: 1;*/
/*}*/

@media screen and (min-width: 992px) {
    .content table {
        font-size: 1rem;
    }

    .content ul, .special-list, .lead-wrap ul{
        padding: 0;
    }

    .content ol {
        padding-left: 20px;
    }

    .content ol li {
        margin-top: 12px;
    }

    .content ul li, .special-list li, .lead-wrap ul li{
        position: relative;
        list-style-type: none;
        padding-left: 20px;
        margin-top: 12px;
    }

    .content ul li:before,
    .special-list li:before,
    .lead-wrap ul li:before {
        content: "";
        background: var(--text-color);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        position: absolute;
        left: 0;
        top: 10px;
    }

    body.dark-mode .content ul li:before,
    body.dark-mode .special-list li:before,
    body.dark-mode .lead-wrap ul li:before {
        background: var(--text-color-for-dark);
    }

    .table-scroll {
        overflow: auto;
    }

    .content .g-recaptcha iframe {
        margin: 0;
        border-radius: inherit;
    }

    .content > h1, .content > .h1 {
        margin: 0 0 16px;
    }
    .content > h2, .content > .h2 {
        margin: 32px 0 16px;
    }
    .content > h3, .content > .h3,
    .content > h4, .content > .h4,
    .content > h5, .content > .h5 {
        margin: 28px 0 16px;
    }

    .content {
        max-width: 788px;
    }

    .content-wrap ul, .content-wrap ol {
        padding-left:16px;
    }
}

@media screen and (max-width: 992px) {
    :root {
        font-size: 15px;
    }

    .content {
        width: 100%;
        max-width: 790px;
        margin: auto;
        font-size: 1rem;
    }

    .post-lead {
        margin-bottom: 16px;
    }

    .content table {
        font-size: 1rem;
    }

    .content ul {
        padding: 0;
    }

    .content ul li{
        position: relative;
        list-style-type: none;
        padding-left: 20px;
        margin-top: 12px;
    }

    .content ul li:before {
        content: "";
        background: var(--text-color);
        width: 5px;
        height: 5px;
        border-radius: 50%;
        position: absolute;
        left: 0;
        top: 8px;
    }

    body.dark-mode .content ul li:before {
        background: var(--text-color-for-dark);
    }

    .content ol {
        padding-left: 20px;
    }

    .content ol li {
        margin-top: 12px;
    }

    .content iframe {
        position: relative;
        min-height: 300px;
        border: 0;
        border-radius: 15px;
        margin: inherit;
        width: inherit;
    }

    .border-t-b {
        border-top:  1px solid var(--border-for-white);
        border-bottom: 1px solid var(--border-for-white);
    }

    body.dark-mode .border-t-b {
        border-top:  1px solid var(--border-for-dark);
        border-bottom: 1px solid var(--border-for-dark);
    }

    .border-t {
        border-top:  1px solid var(--border-for-white);
    }

    body.dark-mode .border-t {
        border-top:  1px solid var(--border-for-dark);
    }

    .content > h2 + img, .content > h2 + figure {
        margin: 0 0 25px 0;
    }
    .content-text ul, .content-text ol {
        padding-left:16px;
    }

    table.contacts-table {
        display: block;
        overflow-x: scroll;
    }
    h1.post-h1 {
        font-size: 1.733rem;
        margin-bottom: 16px;
    }

    .content > h1, .content > .h1 {
        margin: 0 0 16px;
    }
    .content > h2, .content > .h2 {
        margin: 28px 0 16px;
    }
    .content > h3, .content > .h3,
    .content > h4, .content > .h4,
    .content > h5, .content > .h5 {
        margin: 24px 0 16px;
    }

}

.content-wrap:has(.content):not(:has(.content > *)):not(:has(.authors-wrap)) {
    display: none;
}

/* vzo-expert-opinion-restyle-20260718 — начало (не откатывать при сверке дрейфа) */
/* «Мнение эксперта» — акцентная карточка-цитата (специализация .content-wrap) */
.expert-opinion-wrap .content-wrap {
    position: relative;
    overflow: hidden;
    padding-left: calc(var(--indent) + 6px);
}

/* акцентная полоса слева — маркер экспертного врезa */
.expert-opinion-wrap .content-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--link-color-2);
}

/* шапка автора отделена линией от текста мнения */
.expert-opinion-wrap .authors-wrap {
    align-items: center;
    margin-bottom: 0;
    padding-bottom: var(--indent-05x);
    border-bottom: 1px solid var(--border-for-white);
}

body.dark-mode .expert-opinion-wrap .authors-wrap {
    border-bottom-color: var(--border-for-dark);
}

/* тело цитаты */
.expert-opinion-wrap .expert-opinion-content {
    position: relative;
    margin-top: var(--indent-05x);
    padding-left: 44px;
    font-size: 16px;
    line-height: 1.72;
    color: var(--text-color);
}

body.dark-mode .expert-opinion-wrap .expert-opinion-content {
    color: var(--text-color-for-dark);
}

/* декоративная кавычка */
.expert-opinion-wrap .expert-opinion-content::before {
    content: "\201C";
    position: absolute;
    left: -4px;
    top: -14px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 72px;
    line-height: 1;
    font-weight: 700;
    color: var(--link-color-2);
    opacity: .28;
    pointer-events: none;
}

.expert-opinion-wrap .expert-opinion-content p:last-child {
    margin-bottom: 0;
}

@media screen and (max-width: 992px) {
    .expert-opinion-wrap .expert-opinion-content {
        padding-left: 34px;
    }

    .expert-opinion-wrap .expert-opinion-content::before {
        font-size: 60px;
        top: -12px;
    }
}
/* vzo-expert-opinion-restyle-20260718 — конец */
.scroll-page-down .header {
    transform: translate(0, -100%);
}

.search-fixed-body {
    position: fixed;
    left: 0;
    right: 0;
}

.header {
    position: relative;
    background: var(--background-full-white);
    border-bottom: 1px solid var(--border-for-white);
}

body.dark-mode .header {
    background: var(--theme-surface, #0f1722) !important;
    border-bottom: 1px solid var(--theme-border, var(--border-for-dark));
}

body.dark-mode .header .header-top-menu,
body.dark-mode .header .header-bottom-block,
body.dark-mode .header .header-bottom-menu {
    background: var(--theme-surface, #0f1722) !important;
}

html[data-theme="dark"] body.dark-mode .header,
html[data-theme="dark"] body.dark-mode .header .header-top-menu,
html[data-theme="dark"] body.dark-mode .header .header-bottom-block,
html[data-theme="dark"] body.dark-mode .header .header-bottom-menu {
    background: var(--theme-surface, #0f1722) !important;
}

.header .header-nav {
    width: 100%;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.header .header-top-block {
    display: flex;
    align-items: center;
    position: relative;
}

.header .header-bottom-block {
    position: absolute;
    left: 96px;
    top: 0;
}

.header .header-bottom-menu {
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.header .container {
    position: static;
}
.header .header-logo {
    align-items: center;
}

.header .header-nav .logo {
    position: relative;
}

.header .header-nav .logo .logo-name {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1em;
    font-family: 'Inter', sans-serif;
    display: block;
    max-width: 64px;
    aspect-ratio: 112 / 40;
}

.header .header-nav .logo .logo-name--dark {
    display: none;
}

body.dark-mode .header .header-nav .logo .logo-name--light {
    display: none;
}

body.dark-mode .header .header-nav .logo .logo-name--dark {
    display: block;
}

.header .hl-item-title, 
.header .hr-item-title,
.header .ht-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 20px 0;
    cursor: pointer;
    color: var(--text-color);
    position: relative;
}

body.dark-mode .header .hl-item-title,
body.dark-mode .header .hr-item-title,
body.dark-mode .header .ht-item-title {
    color: var(--text-color-for-dark);
}

.header .ht-item-title:not(.ht-active) {
    color: var(--text-color-2);
}

body.dark-mode .header .ht-item-title:not(.ht-active) {
    color: var(--text-color-2-for-dark);
}

.header .header-nav.search .hl-item:hover .hl-item-title:after,
.header .header-nav.search .ht-item-title.ht-active:after {
    display: none;
}

.header .ht-item:hover .ht-item-title:not(.ht-active),
.header .hr-item-title:hover, 
.header .h-sub-menu .h-sub-menu-btn {
    color: var(--link-color-2);
}

.header .hl-item {
    display: inline;
}

.header .h-wrap-sub-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    width: 1132px;
    top: calc(100% + 16px);
    left: -96px;
    z-index: 1111;
    padding-top: 16px;
    transition: transform 0.2s, visibility 0.2s linear,opacity 0.2s linear;
}

.header .h-wrap-sub-menu img {
    display: none;
}

.header .hl-item:hover > .h-wrap-sub-menu img {
    display: inherit;
}

.header .h-sub-menu {
    padding: 32px 56px 32px 40px;
    background: var(--background-full-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
}

body.dark-mode .header .h-sub-menu {
    background: var(--background-light-black);
    border: 1px solid var(--border-for-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.header .h-sub-menu-cards {
    flex-grow: 1;
    gap: 32px;
}

.header .h-sub-menu-credit {
    flex-grow: 1;
}

.header .h-sub-menu-loans {
    flex-grow: 1;
    gap: 32px;
}

.header .h-sub-menu-mortgage{
    flex-grow: 1;
    gap: 32px;
}

.header .h-sub-menu-deposits {
    flex-grow: 1;
    gap: 32px;
}

.header .h-sub-menu-currency {
    flex-grow: 1;
}

.header .hl-item:hover .h-sub-menu a:hover:not(a.btn) {
    color: var(--link-color-2) !important;
}

.header .h-sub-menu-column a,
.header .h-sub-menu-column span,
.header .h-sub-menu-column .h-title-small{
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-bottom: 20px;
    display: block;
}

.header .h-sub-menu-column .h-sub-column > a:last-child,
.header .h-sub-menu-column .h-sub-column > .h-sub-menu-row:last-child a,
.header .h-sub-menu-column > a:last-child {
    padding-bottom: 0;
}

.header .h-sub-menu-right .h-sub-menu-column > *:last-child a {
    padding-bottom: 0;
}

.header .h-sub-menu-column .h-sub-menu-btn{
    display: flex;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 0;
}

.header .h-sub-menu-right .h-sub-menu-column .h-sub-menu-btn {
    padding-top: 2px;
}

.header .h-wrap-sub-column {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-right: 32px;
}

.header .h-sub-menu-row a, 
.header .h-sub-menu-row span {
    padding-bottom: 16px;
    display: flex;
    align-items: center;
}

.header .h-sub-menu-btn svg {
    margin-left: 5px;
}

.header .h-sub-menu-logo {
    margin-right: 12px;
    width: 24px;
    height: 24px;
}

.header .h-sub-menu-left {
    display: flex;
    gap: 60px;
}

.header .h-sub-menu a,
.header .h-sub-menu span {
    color: var(--text-color-3);
}

body.dark-mode .header .h-sub-menu a,
body.dark-mode .header .h-sub-menu span {
    color: var(--text-color-for-dark);
}

.header svg {
    cursor: pointer;
}

.header .icon-search:hover path {
    stroke: var(--link-color-2);
}

.header .icon-wrap-hidden-block:hover .icon-more-info path,
.header .icon-wrap-hidden-block:hover .icon-geo path:first-of-type,
.header .icon-wrap-hidden-block:hover .icon-account circle{
    stroke: var(--link-color-2);
}

body.dark-mode .header svg path {
    stroke: var(--text-color-for-dark);
}

.header .h-sub-menu-city {
    width: 350px;
    margin: 50px 0 0 -240px;
    position: absolute;
    border-radius: 15px;
}

.header .h-sub-menu-city .sub-nav_one-column {
    border-radius: 10px;
    padding: 30px 25px;
}

.header .your-geo-location {
    white-space: nowrap;
}

.header .confirm-choose-geo-block {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.header .h-sub-menu-auth-user,
.header .h-sub-menu-more-info{
    position: absolute;
    width: 271px;
    top: 32px;
    right: 0;
    border-radius: 10px;
}

.header .header-right-block .h-sub-menu-auth-user {
    width: 263px;
}

.header .h-sub-menu-more-info{
    padding: 8px;
}

.header .h-sub-menu-more-info .sub-nav_one-column,
.header .h-sub-menu-auth-user .sub-nav_one-column{
    border-radius: 10px;
}

.header .h-sub-menu-more-info .more-info-el {
    padding: 12px;
    cursor: pointer;
}

.header .h-sub-menu-more-info.h-sub-menu-auth-user .more-info-el {
    padding: 12px 8px;
}

.header .h-sub-menu-more-info .more-info-el.more-info-login {
    padding: 10px 12px;
}

.header .h-sub-menu-more-info .more-info-el.more-info-rating {
    padding: 8px 12px;
}

.header .h-sub-menu-more-info .more-info-el:not(.more-info-account):hover {
    background: var(--background-light-gray);
    border-radius: 6px;
}

body.dark-mode .header .h-sub-menu-more-info .more-info-el:not(.more-info-account):hover {
    background: var(--background-light-black); /* todo */
}

.header .more-info-el.more-info-account:hover .account-name {
    color: var(--link-color-2);
}

.header .h-sub-menu-more-info .more-info-el a, 
.header .h-sub-menu-more-info .more-info-el span {
    color: var(--text-color);
    display: flex;
    align-items: center;
}

body.dark-mode .header .h-sub-menu-more-info .more-info-el a,
body.dark-mode.header .h-sub-menu-more-info .more-info-el span {
    color: var(--text-color-for-dark);
}

.header .h-sub-menu-more-info .more-info-el a .count,
.header .h-sub-menu-more-info .more-info-el span .count{
    width: 20px;
    height: 20px;
    background: var(--link-color-2);
    color: #fff;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    line-height: 1.25rem;
    margin-left: auto;
}

.header .h-sub-menu-more-info .more-info-el .free-label {
    background: var(--link-color-2);
    border-radius: 14px;
    padding: 4px 10px;
    font-size: 0.75rem;
    line-height: 1.25rem;
    color: var(--background-full-white);
}

.header .h-hidden-sub-menu {
    transition: 0.1s ease-in-out 0.1s;
    background: var(--background-full-white);
    z-index: 1000;
    visibility: hidden;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

body.dark-mode .header .h-hidden-sub-menu {
    background: var(--background-light-black);
}

.header .h-sub-menu-more-info .more-info-account a,
.header .h-sub-menu-more-info .more-info-account span {
    display: flex;
    flex-direction: column;
    align-items: normal;
}

.header .h-sub-menu-more-info .more-info-account .account-name {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--text-color);
}

body.dark-mode .header .h-sub-menu-more-info .more-info-account .account-name {
    color: var(--text-color-for-dark);
}

.header .h-sub-menu-more-info .more-info-account .account-email {
    color: var(--text-color-3);
}

body.dark-mode .header .h-sub-menu-more-info .more-info-account .account-email {
    color: var(--text-color-3-for-dark);
}

.header .more-info-el svg, 
.header .more-info-el .free-label {
    margin-left: auto;
}

.header .h-sub-menu-more-info.h-sub-menu-auth-user .more-info-el.more-info-account,
.header .h-sub-menu-auth-user .more-info-el.more-info-rating {
    padding: 8px;
}

.header .more-info-favorites {
    display: none;
}

.header .more-info-account-wrap {
    box-sizing: border-box;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-for-white);
}

body.dark-mode .header .more-info-account-wrap {
    border-bottom: 1px solid var(--border-for-dark);
}

.header .hl-item .h-sub-menu .h-title-small {
    display: flex;
    align-items: center;
    font-weight: 500;
    color: var(--text-color);
    font-size: 0.9375rem;
}

body.dark-mode .header .hl-item .h-sub-menu .h-title-small {
    color: var(--text-color-for-dark);
}

.header .h-sub-menu-right .h-title-small {
    padding-bottom: 18px;
}

.header a.h-title-small:after,
.header a.h-title-show-all:after {
    content: url('/v5/images/icons/menu-arrow-right.svg');
    margin-left: 4px;
    height: 18px;
    width: 12px;
    display: inline-block;
}

.header .hl-item:hover .h-sub-menu a:hover:not(a.btn) svg path {
    stroke: var(--link-color-2);
}

.header .icon-wrap-hidden-block {
    display: inline-flex;
    position: relative;
}

.header .icon-wrap-hidden-block:hover .h-hidden-sub-menu {
    opacity: 1;
    visibility: visible;
}

/* search block start */
.header .search-block {
    position: absolute;
    z-index: 999;
    top: 0;
    left: 84px;
    width: calc(100% - 30px - 84px);
    height: 100%;
    display: none;
}

.header .search-block.with-links {
    width: calc(100% - 84px);
    background: var(--background-full-white);
}

body.dark-mode .header .search-block.with-links {
    background: var(--background-light-black);
}

.header .search-block.open-search-block {
    display: block;
}

.header .search-block .header-search-form-group {
    display: flex;
    align-items: center;
    height: 100%;
}

.header .search-block .ya-site-form__search-wrap, 
.header .search-block #ya-site-form0 .ya-site-form__search-input {
    padding: 0;
}

.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text {
    height: 44px;
    padding: 0 16px;
    border-radius: 22px;
    background: #F4F5F6 !important;
    border-color: #F4F5F6 !important;
    font-size: 1rem !important;
}

.header .search-block.with-links #ya-site-form0 .ya-site-form__form .ya-site-form__input-text {
    border-radius: 10px;
    padding: 0 86px 0 44px;
}

.header .search-block.with-links .header-search-form-group {
    position: relative;
}

.header .search-block.with-links .search-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 3;
}

.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text:focus {
    outline: none;
    border: none;
}

.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::placeholder {
    color: #616263 !important;
}

.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__submit {
    display: none;
}

.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::-webkit-search-decoration,
.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::-webkit-search-cancel-button,
.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::-webkit-search-results-button,
.header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::-webkit-search-results-decoration {
    -webkit-appearance:none;
}

.header .search-block__button {
    position: absolute;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    top: 0;
    right: 40px;
    height: 100%;
    cursor: pointer;
    z-index: 100000;
}

.header .search-block__button svg {
    margin-left: 0;
}

.header .search-block.with-links .search-btn {
    height: 44px;
    min-width: 108px;
    margin-left: 12px;
}

.header .search-block__clear {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #616263;
    position: absolute;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    bottom: 1px;
    right: 255px;
    height: 100%;
    cursor: pointer;
    z-index: 100000;
}

.header .search-block__clear:hover {
    color: #000000;
}

.header .search-block__clear.hiddenStyle {
    display: none;
}

.header .search-btn.hiddenStyle {
    display: none;
}

.header .search-close {
    position: absolute;
    display: flex;
    align-items: center;
    top: 0;
    right: 16px;
    height: 100%;
}

.header .search-block.with-links .search-close {
    position: initial;
    height: 100%;
    margin-left: 32px;
}

.header .search-block.with-links .search-close:hover svg rect {
    fill: #000000;
}

.header .search-close-btn {
    margin-left: 0;
}

.header .search-block-links {
    position: fixed;
    background: #FFFFFF;
    width: 100vw;
    top: 59px;
    left: 0;
}

.header .search-block-links .links-block-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 96px 40px 96px;
}

.header .search-block .links-block .h-title-small {
    display: block;
    font-size: 0.938rem;
    font-weight: 500;
    margin-bottom: 14px;
    color: #000000;
}

.header .search-block .links-block .h-title-small:after {
    margin-left: 0;
}

.header .search-block .links-block a.h-title-small:hover {
    color: var(--link-color-2);
}

.header a.h-title-small:hover:after {
    filter: invert(29%) sepia(55%) saturate(5175%) hue-rotate(215deg) brightness(97%) contrast(98%);
}

.header .search-block .links-block-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.header .search-block .links-block-column {
    display: contents;
}

.header .search-link {
    font-size: 0.875rem;
    color: #434445;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #E3E5E8;
    border-radius: 999px;
    background: var(--background-full-white);
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.header .search-icon:before {
    display: none;
}

.header .search-link .search-link-icon {
}

.header .search-link:hover {
    color: #145FF4;
    border-color: #145FF4;
    background: #F4F8FF;
}

.header .search-block .links-block-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.header .search-block .links-block-list .search-link {
    padding: 6px 16px 6px 8px;
}

.header .search-block .links-block-list .search-link img {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.header .search-block .h-sub-menu-btn {
    display: flex;
    align-items: center;
    font-size: 0.875rem;
    margin-top: 20px;
    color: var(--link-color-2);
}

.header .search-block .h-sub-menu-btn svg {
    margin-left: 4px;
}

.header .search-blurred {
    position: absolute;
    height: 100vh;
    width: 100vw;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(10px);
}

/* search block end */

.header .header-nav .hr-item-tel {
    width: 200px;
    display: inline-flex;
    flex-direction: column;
}
.header .hr-item-tel .h6 {
    color: #636363;
    font-size: 0.875rem;
}

.header .header-right-block {
    align-items: center;
    margin-left: auto;
    gap: 16px;
}

.header .h-bottom-hidden {
    display: none;
}

.header .header-top {
    background: #E5E5E5;
}

.header .hotline {
    font-size: 0.875rem;
    height: 30px;
    display: flex;
    justify-content: right;
    align-items: center;
    color: #636363;
}

.header .hotline-tel {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    margin-right: 20px;
    color: #636363;
}
.header .hotline-tel:hover {
    color: var(--link-color-2);
}
.header .header-center-link .credit-rating {
    font-size: 0.813rem;
    font-family: 'Inter', sans-serif;
    line-height: 130%;
    width: 139px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #636363;
    background: #F7F7F7;
}

.header .header-center-link .credit-rating:hover {
    color: var(--link-color-2);
}

.header .header-center-link .credit-rating:active {
    color: #0731C1;
}

.header .h-sub-menu-more-info .more-info-city a,
.header .h-sub-menu-more-info .more-info-city .choose-city{
    cursor: pointer;
    color: var(--link-color-2);
    width: 100%;
}

.header .title-hidden {
    opacity: 0;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header .search-block-links .container {
    position: relative;
    overflow: hidden;
}

.header .search-block-links .container.animate .links-block-group {
    opacity: 1;
    transform: translateY(0);
}

.header .links-block-group {
    opacity: 0;
    transform: translateY(-24px);
    transition-property: transform, opacity;
    transition-duration: 0.45s;
}

.header .links-block-group .links-block {
    transition-property: all;
    transition-duration: 0.7s;
    transform: translateY(-50px);
}

.header .links-block-group .links-block:last-child {
    transform: translateY(50px);
}

.header .container.animate .links-block-group .links-block {
    transform: translateY(0);
}

.header .search-block .search-btn-mob {
    display: none;
}

.header .hiddenStylePc,
.header .container .header-nav .hiddenStylePc {
    display: none;
}

.header .hiddenStyleMob,
.header .container .header-nav .hiddenStyleMob {
    display: inherit;
}

.header .header-menu-tabs {
    display: none;
}

.header .loan-bot-mob {
    display: none;
}

.header .loan-bot-pc {
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.header-icons-wrap {
    align-items: center;
    gap: 15px;
}


/* dark mode */
header #theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

header #theme-icon {
    transition: transform 0.3s ease;
    color: var(--text-color);
}

body.dark-mode header #theme-icon {
    color: var(--text-color-5);
}

header .sun,
header .sun-rays {
    transition: opacity 0.3s ease;
}

header .moon {
    transition: opacity 0.3s ease;
}

body.dark-mode header .sun,
body.dark-mode header .sun-rays {
    opacity: 0;
}

body.dark-mode header .moon {
    opacity: 1;
}
/* end dark mode */

.header-right-block .hr-item-title {
    padding: 21px 0 19px;
}

.header .hl-item-services {
    margin-left: 112px;
}

.header .with-theme .hl-item-services {
    margin-left: 126px;
}

@media screen and (max-width: 1200px) {
    .header .h-wrap-sub-menu {
        width: 938px;
    }

    .header .hl-item-services {
        margin-left: 27px;
    }
    .header .with-theme .hl-item-services {
        margin-left: 2px;
    }

    .header .header-bottom-block {
        left: 80px;
    }

    .header .header-right-block {
        gap: 10px;
    }
    .header .with-theme.header-right-block {
        gap: 8px;
    }

    .header .header-bottom-menu {
        gap: 10px;
    }
    .header .header-bottom-menu.with-theme {
        gap: 8px;
    }


    .header-icons-wrap {
        gap: 10px;
    }
}

@media screen and (min-width: 993px) {
    .header .hl-item:hover .hl-item-title:after,
    .header .ht-item-title.ht-active:after {
        content: '';
        height: 1.5px;
        background: var(--background-light-black);
        position: absolute;
        width: 100%;
        left: 0;
        bottom: -1.5px;
        z-index: 2;
    }

    body.dark-mode .header .hl-item:hover .hl-item-title:after,
    body.dark-mode .header .ht-item-title.ht-active:after {
        background: var(--background-light-gray);
    }

    .header .hl-item:hover > .h-wrap-sub-menu {
        /*display: block;*/
        visibility: visible;
        opacity: 1;
        transform: translateY(-16px);
        transition-delay: 0.1s;
    }
    .header .hl-item:hover .h-sub-menu .long-sub-menu {
        line-height: 1.6rem;
        margin: 0.5rem 0;
    }
    .header .h-sub-menu-mag .h-wrap-sub-column {
        gap: 60px
    }
}

@media screen and (max-width: 992px) {
    .header .header-nav.search .header-logo {
        display: none;
    }

    .header .search-block.with-links {
        width: 100%;
    }
    .header .search-block {
        left: 0;
        top: 2px;
    }

    .header .search-block.with-links #ya-site-form0 .ya-site-form__form .ya-site-form__input-text {
        font-size: 1.067rem !important;
        padding: 12px 86px 12px 44px;
    }
    .header .search-block.with-links #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::placeholder {
        color: #919192 !important;
    }

    .header .search-block.with-links .search-btn {
        display: none;
    }
    .header .search-block .search-btn-mob {
        display: block;
        background: inherit;
        border: none;
        outline: none;
        position: absolute;
        background: initial;
        left: 29px;
        top: 12px;
        padding: 0;
        margin-left: 0;
    }
    .header .search-block .search-btn-mob svg {
        margin-left: 0;
    }

    .header .search-block__clear {
        right: 69px;
        top: 11px;
        font-size: 0.933rem;
        height: initial;
        bottom: initial;
    }

    .header .search-block.with-links .search-close {
        margin-left: 16px;
    }

    .header .search-block-links .links-block-group {
        padding: 20px 0 0;
    }

    .header .search-block .links-block-columns {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header .search-block.with-links .search-input-icon {
        display: none;
    }

    .header .search-blurred {
        display: none;
    }

    .search-block {
        display: none;
        position: absolute;
        width: 100%;
        height: 100%;
        top: -50px;
        left: 0;
        z-index: 1;
        transition: top 0.5s linear;
    }

    .search-block.with-links {
        position: fixed;
        height: 100vh;
        background: #FFFFFF;
        margin-top: 8px;
        overflow-y: auto;
        padding-bottom: 30px;
    }

    .search-block.with-links {
        height: 100vh;
        background: #FFFFFF;
    }

    .search-block.show-form{
        display: block;
        top: 0;
        z-index: 1000;
    }

    .header .search-block .header-search-form-group {
        height: initial;
        position: relative;
        padding: 0 16px;
    }

    .header .links-block-group,
    .header .search-block-links {
        position: initial;
    }

    .header .search-block-links .container {
        height: initial;
        margin: 0;
    }

    .header .search-block .links-block-list {
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }

    .header .search-block .links-block .h-title-small {
        font-size: 1rem;
        font-weight: 400;
    }

    .header .search-link {
        font-size: 0.933rem;
        font-family: 'Inter', sans-serif;
        color: #434445;
    }

    .header .header-right-block > a,
    .header .header-right-block .icon-for-show-notice {
        display: none;
    }

    .header .header-top-block {
        box-shadow: none;
        padding: 16px 0;
    }

    .header .header-nav .logo .logo-name {
        max-width: 53px;
    }

    .header .header-bottom-block {
        position: unset;
    }

    .header .header-bottom-menu {
        flex-direction: column;
        gap: 0;
        padding: 0;
        background: #FFFFFF;
        border-bottom-right-radius: 25px;
        border-bottom-left-radius: 25px;
    }

    .header .h-wrap-sub-menu {
        position: initial;
        visibility: visible;
        transform: none;
        opacity: initial;
        padding-top: 12px;
        padding-bottom: 20px;
        width: 100%;
    }

    .header .h-sub-menu,
    .header .h-wrap-sub-column,
    .header .h-sub-menu-left {
        flex-direction: column;
        gap: 0;
    }

    .header .h-sub-menu {
        padding: 0 20px;
    }

    .header .h-sub-menu,
    .header .h-sub-menu-left {
        gap: 36px;
    }

    .header .h-sub-menu-column a,
    .header .h-sub-menu-column span,
    .header .h-sub-menu-column .h-title-small,
    .header .h-sub-menu-column .h-sub-column > a:last-child,
    .header .h-sub-menu-column .h-sub-column > .h-sub-menu-row:last-child a,
    .header .h-sub-menu-column > a:last-child {
        padding-bottom: 24px;
    }


    .header .hl-item-title,
    .header .hr-item-title,
    .header .ht-item-title {
        font-size: 1rem;
        display: block;
        font-weight: 500;
    }

    .header .hl-item {
        border-bottom: 1px solid #E6E7E8;
    }

    .header .h-sub-menu a,
    .header .h-sub-menu span {
        font-size: 0.933rem;
    }

    .header .hl-item-title.visible .h-wrap-sub-menu img {
        display: inline-block;
        margin-right: 8px;
    }

    .header .hiddenStylePc,
    .header .container .header-nav .hiddenStylePc {
        display: inherit;
    }

    .header .hiddenStyleMob,
    .header .container .header-nav .hiddenStyleMob {
        display: none;
    }

    .header .h-title-small:after {
        display: none;
    }

    .header .hl-item .h-sub-menu a.h-title-show-all {
        display: flex;
        align-items: center;
        gap: 2px;
        color: var(--link-color-2);
        font-weight: 400;
        padding-bottom: 0;
    }

    .header .hl-item .h-sub-menu a.h-title-show-all:after {
        display: initial;
        content: url('/v5/images/icons/menu-arrow-right.svg');
        margin-left: 0;
        filter: invert(29%) sepia(55%) saturate(5175%) hue-rotate(215deg) brightness(97%) contrast(98%);
        width: 10px;
        height: 18px;
    }

    .header .hl-item .h-sub-menu span.h-title-show-all {
        display: none;
    }

    .header .h-wrap-sub-column .h-sub-column:last-of-type a:last-child,
    .header .h-wrap-sub-column .h-sub-column:last-of-type span:last-child,
    .header .h-wrap-sub-column .h-sub-column:last-of-type .h-sub-menu-row:last-child {
        padding-bottom: 0;
    }

    .header.header-active {
        position: fixed !important;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1050;
        pointer-events: auto;
        overflow-y: auto;
        background: #F2F3F4;
    }

    .header.header-active .header-top-menu {
        background: #FFFFFF;
        border-bottom-right-radius: 25px;
        border-bottom-left-radius: 25px;
        margin-bottom: 16px;
    }

    .header .header-bottom-block,
    .header .header-menu-profile {
        display: none;
    }

    .header.header-active .header-bottom-block,
    .header.header-active .header-menu-profile {
        display: block;
    }

    .header .header-menu-profile {
        background: #FFFFFF;
        border-top-right-radius: 25px;
        border-top-left-radius: 25px;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 0.9333rem;
        line-height: 1.3333rem;
        color: #303132;
    }

    .header .nav-row {
        display: flex;
        justify-content: space-between;
        padding-bottom: 20px;
    }

    .header .header-menu-profile .nav-column {
        flex-direction: column;
        width: calc(50% - 6px);
        border-radius: 15px;
        padding: 12px 16px;
        background: #F4F5F6;
        display: flex;
        height: 120px;
    }

    .header .header-menu-profile .nav-item {
        display: flex;
        border-radius: 10px;
        background: #F4F5F6;
        padding: 18px 16px;
        width: 100%;
        align-items: center;
    }

    .header .header-menu-profile .nav-item-title {
        color: #303132;
        font-weight: 400;
    }

    .header .profile-nav .nav-item-name {
        color: #000000;
        font-weight: 500;
    }

    .header .profile-nav .nav-item-email {
        color: #616263;
        font-size: 0.8rem;
        word-wrap: break-word;
    }

    .header .profile-nav .nav-item-link {
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .header .header-menu-profile .dark-gray{
        color: #303132;
    }

    .header .header-menu-profile .nav-count {
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        background: var(--link-color-2);;
        color: #FFFFFF;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        margin-left: auto;
        font-size: 0.8rem;
    }

    .header .header-menu-profile .nav-item-favorites,
    .header .header-menu-profile .nav-item-compare {
        display: none;
    }

    .header .header-menu-profile .nav-item-primary {
        background: var(--link-color-2);
        color: #FFFFFF;
    }

    .header .profile-nav .nav-item-primary .nav-item-title {
        color: #FFFFFF;
        font-weight: 500;
    }

    .header .nav-item-city, .nav-item-logout, .nav-item-contacts {
        height: 56px;
    }

    .header .header-menu-title {
        font-size: 1rem;
        font-weight: 500;
        padding-top: 20px;
        margin-bottom: 16px;
        color: #000000;
    }

    .header .nav-item svg {
        margin-left: auto;
    }

    .header .header-menu-profile .h-title-contacts {
        padding-top: 12px;
    }

    .header .header-menu-tabs {
        display: flex;
        padding: 8px 0;
        font-family: 'Inter', sans-serif;
        font-weight: 400;
        font-size: 0.9333rem;
        line-height: 1.3333rem;
        background: #fff;
    }

    .header .header-menu-tabs .ht-item {
        border-radius: 10px;
        cursor: pointer;
        padding: 12px 20px;
        background: #F4F5F6;
        color: #303132;
    }

    .header .header-menu-tabs .ht-item:not(:last-child){
        margin-right: 8px;
    }

    .header .header-menu-tabs .ht-item.ht-active {
        background: #303132;
        color: #fff;
    }

    .header .h-wrap-sub-menu {
        display: none;
    }

    .header .hl-item.active .h-wrap-sub-menu {
        display: inherit;
    }

    .header .hl-item .sub-menu-title:after {
        content: url(/v5/images/icons/menu-arrow-right.svg);
        transform: rotate(90deg);
        width: 18px;
    }

    .header .hl-item.active .sub-menu-title:after {
        transform: rotate(270deg);
        margin-right: -5px;
    }

    .header .hl-item-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* button animation open */
    .header .menu-button.is-hover {
        box-shadow: 0 0.125rem 0.75rem 0 rgba(0, 0, 0, 0.5);
        background: linear-gradient(to bottom, #dfdfdf 32%, #f0f0f0 88%);
    }
    .header .menu-button.is-mousedown {
        border-top: 1px solid #dfdfdf;
        box-shadow: 0 0 0.5rem 0 rgba(0, 0, 0, 0.6);
    }

    .header .menu-button-inner {
        position: relative;
        width: 20px;
        height: 20px;
    }

    .header .menu-button-inner .menu-button-line-1,
    .header .menu-button-inner .menu-button-line-2 {
        display: block;
        width: 21px;
        height: 2px;
        background: var(--background-full-black);
        position: absolute;
        border-radius: 4px;
        transition: transform 0.2s, opacity 0.2s, width 0.2s;
    }

    body.dark-mode .header .menu-button-inner .menu-button-line-1,
    body.dark-mode .header .menu-button-inner .menu-button-line-2 {
        background: var(--background-full-white);
    }

    .header .menu-button.is-active .menu-button-inner::before,
    .header .menu-button.is-active .menu-button-inner::after {
        content: '';
        width: 20px;
        height: 2px;
        background: var(--background-full-black);
        position: absolute;
        border-radius: 4px;
        transition: transform 0.2s, opacity 0.2s, width 0.2s;
    }

    body.dark-mode .header .menu-button.is-active .menu-button-inner::before,
    body.dark-mode .header .menu-button.is-active .menu-button-inner::after {
        background: var(--background-full-white);
    }

    .header .menu-button-inner .menu-button-line-1 {
        top: 5px;
    }

    .header .menu-button-inner .menu-button-line-2 {
        top: 12px;
    }
    .header .menu-button.is-active .menu-button-inner .menu-button-line-1 {
        display: none;
    }

    .header .menu-button.is-active .menu-button-inner .menu-button-line-2 {
        display: none;
    }

    .header .menu-button.is-active .menu-button-inner::before {
        top: 8px;
        transform: rotate(45deg);
    }
    .header .menu-button.is-active .menu-button-inner::after {
        top: 8px;
        transform: rotate(-45deg);
    }

    .header .header-icons-wrap {
        align-items: center;
        gap: 16px;
    }

    .header.header-active .header-top-menu {
        margin-right: 0;
        margin-left: 0;
        min-width: 100%;
    }

    .header-menu-profile-container {
        padding: 0 15px;
    }

    .header .loan-bot-mob {
        display: flex;
    }

    .header .loan-bot-pc {
        display: none;
    }

    .header .hl-item-services {
        margin-left: 0;
    }

    .header .h-sub-menu {
         background: transparent;
         box-shadow: unset;
    }
}.row,.flex{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}.row{-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters > .col,.no-gutters > [class*="col-"]{padding-right:0;padding-left:0}.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col,.col-auto,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm,.col-sm-auto,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-md,.col-md-auto,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg,.col-lg-auto,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-webkit-flex-basis:0;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-auto{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-webkit-box-flex:0;-webkit-flex:0 0 8.3333333333%;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-2{-webkit-box-flex:0;-webkit-flex:0 0 16.6666666667%;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-3{-webkit-box-flex:0;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-webkit-box-flex:0;-webkit-flex:0 0 33.3333333333%;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-5{-webkit-box-flex:0;-webkit-flex:0 0 41.6666666667%;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-6{-webkit-box-flex:0;-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-webkit-box-flex:0;-webkit-flex:0 0 58.3333333333%;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-8{-webkit-box-flex:0;-webkit-flex:0 0 66.6666666667%;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-9{-webkit-box-flex:0;-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-webkit-box-flex:0;-webkit-flex:0 0 83.3333333333%;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-11{-webkit-box-flex:0;-webkit-flex:0 0 91.6666666667%;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-12{-webkit-box-flex:0;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}@media (min-width:576px){.col-sm{-webkit-flex-basis:0;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-sm-auto{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-webkit-box-flex:0;-webkit-flex:0 0 8.3333333333%;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-sm-2{-webkit-box-flex:0;-webkit-flex:0 0 16.6666666667%;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-3{-webkit-box-flex:0;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-webkit-box-flex:0;-webkit-flex:0 0 33.3333333333%;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-sm-5{-webkit-box-flex:0;-webkit-flex:0 0 41.6666666667%;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-sm-6{-webkit-box-flex:0;-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-webkit-box-flex:0;-webkit-flex:0 0 58.3333333333%;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-sm-8{-webkit-box-flex:0;-webkit-flex:0 0 66.6666666667%;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-sm-9{-webkit-box-flex:0;-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-webkit-box-flex:0;-webkit-flex:0 0 83.3333333333%;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-sm-11{-webkit-box-flex:0;-webkit-flex:0 0 91.6666666667%;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-sm-12{-webkit-box-flex:0;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}@media (min-width:768px){.col-md{-webkit-flex-basis:0;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-md-auto{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-webkit-box-flex:0;-webkit-flex:0 0 8.3333333333%;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-md-2{-webkit-box-flex:0;-webkit-flex:0 0 16.6666666667%;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-3{-webkit-box-flex:0;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-webkit-box-flex:0;-webkit-flex:0 0 33.3333333333%;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-md-5{-webkit-box-flex:0;-webkit-flex:0 0 41.6666666667%;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-md-6{-webkit-box-flex:0;-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-webkit-box-flex:0;-webkit-flex:0 0 58.3333333333%;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-md-8{-webkit-box-flex:0;-webkit-flex:0 0 66.6666666667%;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-md-9{-webkit-box-flex:0;-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-webkit-box-flex:0;-webkit-flex:0 0 83.3333333333%;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-md-11{-webkit-box-flex:0;-webkit-flex:0 0 91.6666666667%;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-md-12{-webkit-box-flex:0;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}@media (min-width:992px){.col-lg{-webkit-flex-basis:0;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-lg-auto{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-webkit-box-flex:0;-webkit-flex:0 0 8.3333333333%;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-lg-2{-webkit-box-flex:0;-webkit-flex:0 0 16.6666666667%;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-3{-webkit-box-flex:0;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-webkit-box-flex:0;-webkit-flex:0 0 33.3333333333%;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-lg-5{-webkit-box-flex:0;-webkit-flex:0 0 41.6666666667%;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-lg-6{-webkit-box-flex:0;-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-webkit-box-flex:0;-webkit-flex:0 0 58.3333333333%;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-lg-8{-webkit-box-flex:0;-webkit-flex:0 0 66.6666666667%;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-lg-9{-webkit-box-flex:0;-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-webkit-box-flex:0;-webkit-flex:0 0 83.3333333333%;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-lg-11{-webkit-box-flex:0;-webkit-flex:0 0 91.6666666667%;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-lg-12{-webkit-box-flex:0;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}@media (min-width:1200px){.col-xl{-webkit-flex-basis:0;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-webkit-flex-grow:1;-ms-flex-positive:1;flex-grow:1;max-width:100%}.col-xl-auto{-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-webkit-box-flex:0;-webkit-flex:0 0 8.3333333333%;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xl-2{-webkit-box-flex:0;-webkit-flex:0 0 16.6666666667%;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-3{-webkit-box-flex:0;-webkit-flex:0 0 25%;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-webkit-box-flex:0;-webkit-flex:0 0 33.3333333333%;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xl-5{-webkit-box-flex:0;-webkit-flex:0 0 41.6666666667%;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xl-6{-webkit-box-flex:0;-webkit-flex:0 0 50%;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-webkit-box-flex:0;-webkit-flex:0 0 58.3333333333%;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xl-8{-webkit-box-flex:0;-webkit-flex:0 0 66.6666666667%;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xl-9{-webkit-box-flex:0;-webkit-flex:0 0 75%;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-webkit-box-flex:0;-webkit-flex:0 0 83.3333333333%;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xl-11{-webkit-box-flex:0;-webkit-flex:0 0 91.6666666667%;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xl-12{-webkit-box-flex:0;-webkit-flex:0 0 100%;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}
.container{
    max-width: 100%;
    width: 100%;
    margin: auto;
    padding-left: 15px;
    padding-right: 15px;
    position: relative;
}

.container {
    max-width: 1164px;
    padding-left: 16px;
    padding-right: 16px;
}

@media (max-width: 1200px) {
    .container{
        max-width: 970px;
    }
}

@media (max-width: 992px) {
    .container{
        max-width: 100%;
    }
}

.breadcrumbs {
    text-overflow: ellipsis;
    font-size: 14px;
}

.breadcrumbs a,
.breadcrumbs a:visited {
    color: var(--text-color);
}

body.dark-mode .breadcrumbs a,
body.dark-mode .breadcrumbs a:visited {
    color: var(--text-color-for-dark);
}

.breadcrumbs a:hover,
body.dark-mode .breadcrumbs a:hover {
    color: var(--link-color-2);
}

.breadcrumbs svg {
    margin: 0 8px;
}

body.dark-mode .breadcrumbs path {
    stroke: var(--text-color-2-for-dark);
}.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{font-family: 'Inter', sans-serif; font-weight: 700;line-height: 1.4;margin: 0}
h1,.h1{font-size: 2rem;}
h2,.h2{font-size: 1.75rem;}
h3,.h3{font-size: 1.5rem;}
h4,.h4{font-size: 1.25rem;}
/*h5,.h5{font-size: 1rem;margin: 15px 0 5px 0;}*/

@media screen and (max-width: 992px) {
    .h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6{line-height: 1.2;}
    h1,.h1{font-size: 1.625rem;font-weight: 700;}
    h2,.h2{font-size: 1.375rem;font-weight: 700;}
    h3,.h3{font-size: 1.125rem; font-weight: 700;}
    h4,.h4{font-size: 1rem;font-weight: 600;}
    h5,.h5{font-size: .9375rem; font-weight: 600;}
}/* Footer redesign 2026-05-06 */

.main-footer {
    font-family: 'Inter', sans-serif;
    color: var(--text-color-2);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-for-white);
}

body.dark-mode .main-footer {
    color: var(--text-color-for-dark);
    border-top: 1px solid var(--border-for-dark);
}

/* 2. Разделители */
.main-footer .footer-divider {
    border: 0;
    border-top: 1px solid var(--border-for-white);
    margin: 28px 0;
    opacity: 0.85;
}

body.dark-mode .main-footer .footer-divider {
    border-top-color: var(--border-for-dark);
}

/* 3. Регалии + Рейтинг + Поддержка */
.footer-creds-support {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: start;
}

.footer-rating-slot {
    justify-self: center;
    align-self: start;
}

.footer-rating-slot:empty {
    display: none;
}

.footer-support {
    justify-self: end;
}

.footer-creds {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    row-gap: 10px;
}

.footer-creds li {
    font-size: 13px;
    color: var(--text-color-2);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
}

body.dark-mode .footer-creds li {
    color: var(--text-color-2-for-dark);
}

.footer-creds-icon {
    flex: 0 0 14px;
    color: var(--link-color-2);
}

.footer-support {
    min-width: 240px;
    text-align: left;
}

.footer-support-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--link-color);
    margin-bottom: 4px;
}

body.dark-mode .footer-support-title {
    color: var(--text-color-for-dark);
}

.footer-support-subtitle {
    font-size: 13px;
    color: var(--text-color-2);
    margin-bottom: 12px;
}

body.dark-mode .footer-support-subtitle {
    color: var(--text-color-2-for-dark);
}

.footer-support-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-support-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-color-2);
    text-decoration: none;
    padding: 7px 12px;
    border: 1px solid var(--border-for-white);
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.footer-support-link svg {
    color: var(--link-color-2);
}

.footer-support-link:hover {
    color: var(--link-color-2);
    border-color: var(--link-color-2);
}

body.dark-mode .footer-support-link {
    color: var(--text-color-2-for-dark);
    border-color: var(--border-for-dark);
}

/* 4. Юридический блок (правовой текст) */
.footer-legal {
    color: var(--text-color-2);
    font-size: 12px;
}

body.dark-mode .footer-legal {
    color: var(--text-color-2-for-dark);
}

/* 5. Нижняя полоса */
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-bottom-copy {
    font-size: 12px;
    color: var(--text-color-2);
}

body.dark-mode .footer-bottom-copy {
    color: var(--text-color-2-for-dark);
}

.footer-bottom-socials {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--text-color-2);
}

.footer-bottom-socials .footer-social-link {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    color: var(--text-color-2);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom-socials .footer-social-link:hover {
    color: var(--link-color-2);
}

body.dark-mode .footer-bottom-socials .footer-social-link {
    color: var(--text-color-2-for-dark);
}

.footer-bottom-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-legal .legal-link-item {
    font-size: 12px;
    color: var(--text-color-2);
    text-decoration: none;
}

.footer-bottom-legal .legal-link-item:hover {
    color: var(--link-color-2);
}

body.dark-mode .footer-bottom-legal .legal-link-item {
    color: var(--text-color-2-for-dark);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .main-footer {
        padding: 40px 20px 20px;
    }

    .footer-creds-support {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-rating-slot,
    .footer-support {
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .main-footer {
        padding: 30px 10px 20px;
    }

    .main-footer .footer-divider {
        margin: 20px 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .footer-bottom-socials {
        gap: 16px;
    }
}

/* Footer compact 2026-05-07 */

.footer-nav-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.footer-nav-row {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.footer-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--color-text-tertiary, #9ca3af);
    min-width: 100px;
    flex-shrink: 0;
}

.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 14px;
}

.footer-nav-links > * + *::before {
    content: "·";
    margin: 0 8px;
    color: var(--color-text-tertiary, #9ca3af);
}

.footer-legal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .footer-nav-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .footer-nav-label {
        min-width: auto;
    }
    .footer-nav-links {
        flex-direction: column;
        gap: 6px;
    }
    .footer-nav-links > * + *::before {
        display: none;
    }
    .footer-legal-grid {
        grid-template-columns: 1fr;
    }
}
.btn-shadow {
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    margin: 30px 0;
    background: #fff;
}

.btn-shadow svg {
    margin-left: 5px;
}

.btn {
    width: 205px;
    height: 40px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    border: none;
    outline: none;
    position: relative;
    flex-shrink: 0;
}


.btn-light-border {
    border: 1px solid #E8EEF6;
    color:#000;
    font-weight: 400;
}

.btn-light-border:hover {
    border: 1px solid #355FF1;
    color: #355FF1;
}

.btn-light-border:active {
    border: 1px solid #0731C1;
    color: #0731C1;
}

.btn-light-3 {
    color: #000;
    background: #fff;
}

.btn-light-3:hover {
    color: #355FF1;
}

.btn-light-3:active {
    color:#fff;
    background: #1742D8;
}

.btn-dark-border {
    border: 1px solid #000;
    color:#000;
    font-weight: 400;
    background-color:transparent;
}

.btn-dark-border:hover,.btn-dark-border:hover svg path {
    border: 1px solid #355FF1;
    color: #355FF1;
    stroke: #355FF1;
}

.btn-dark-border:active,.btn-dark-border:active svg path  {
    border: 1px solid #0731C1;
    color: #0731C1;
    stroke: #0731C1;
}

.btn-dark-border svg {
    right: 20px;
    position: absolute;
    padding: 0;
}


.btn-cnv {
    background: #145FF4;
    border-radius: 7px;
    color: #FFFFFF;
    font-size: 0.9375rem;
    width: 180px;
    height: 56px;
    font-family: Inter;
}

.btn-cnv:hover {
    background: #1742D8;
}

.btn-cnv:active {
    background: #0731C1;
}

.btn-light {
    font-weight: 400;
    color: #355FF1;
    background: #F7F7F7;
}
.btn-light-2 span{
    margin-left: 5px;
}

.btn-light-2 {
    color: #355FF1;
    background: #fff;
}

.btn-light:hover, .btn-light-2:hover{
    color:#fff;
    background: #355FF1;
}

.btn-light:active, .btn-light-2:active{
    color:#fff;
    background: #1742D8;
}

.btn-dark {
    color: #fff;
    background: #222735;
}

.btn-dark:hover {
    color: #fff;
    background: #343B4C;
}

.btn-dark:active {
    color: #fff;
    background: #414959;
}


.prev-btn, .up-btn, .down-btn, .next-btn {
    cursor: pointer;
    outline: none;
    border: none;
    background: none;
}

svg .ellipse_el{
    fill: white;
}

svg:hover .ellipse_el {
    fill:#355FF1;
}

svg .arrow_el {
    stroke: #87919F;
    fill: white;
}

svg:hover .arrow_el {
    stroke: white;
    fill:#355FF1;
}

svg:active .ellipse_el {
    fill:#1742D8;
}
svg:active .arrow_el {
    fill:#1742D8;
}

.up-btn svg{
    transform: rotate(90deg);
}

.down-btn svg{
    transform: rotate(-90deg);
}

.claim-btn {
    cursor: pointer;
    outline: none;
    border: none;
    background-color:transparent;
    position: relative;
    width: auto;
}

.claim-btn .circle_el {
    fill: white;
}


.print-btn {
    cursor: pointer;
    outline: none;
    border: none;
    background-color:transparent;
}

.print-btn .circle_el {
    fill: white;
}

.print-btn svg, .claim-btn svg {
    vertical-align: -3px;
}

.btn-wrap-circle{
    box-shadow: 0 4px 10px 0 #87919F26;
    display: block;
    width: 34px;
    height: 34px;
    line-height: 34px;
    text-align: center;
    background: #fff;
    border-radius: 50%;
    left: 5px;
    position: absolute;
    transition: .2s left ease-in-out;
    padding: 0;
}

.btn:hover .btn-wrap-circle{
    left: calc(100% - 39px);
}

.btn-circle{
    box-shadow: 0 4px 10px 0 #87919F26;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    padding: 0;
}


.btn-dark-outline {
    border: 1px solid #000;
    color: #000;
    background: #fff;
}

.btn-dark-outline:hover {
    background: #000;
    color: #fff;
}

.btn-dark-outline:hover svg path{
    stroke: #fff;
}

.btn-wrap-arrow {
    left: 25px;
    position: absolute;
    transition: .2s left ease-in-out;
    padding: 0;
}

.btn:hover .btn-wrap-arrow {
    left: calc(100% - 25px);
}

.btn-1-dark {
    background: #355FF1;
    width: 30px;
    height: 30px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-1-dark:hover {
    background: #1742D8;
}

.btn-1-dark:active {
    background: #0731C1;
}

#toTop {
    width: 48px;
    height: 48px;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 11;
    cursor: pointer;
}

.btn-black {
    background: #000000;
    color: #FFFFFF;
    font-weight: 600;
}

.btn-gray {
    background: #F7F7F7;
    color: #000000;
}

.btn-gray:disabled {
    color: #AAAAAA;
    cursor: default;
}

.education-btn {
    font-size: 1rem;
    height: 48px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
}

.education-btn-sm {
    width: 150px;
}

.education-btn-md {
    width: 220px;
}

.education-btn-lg {
    width: 396px;
}

.btn-cnv-square {
    background: #145FF4;
    border-radius: 7px;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 0.9375rem;
    width: 180px;
    height: 56px;
    font-family: Inter;
}
.btn-cnv-rect {
    background: #145FF4;
    border-radius: 7px;
    color: #FFFFFF;
    font-weight: 400;
    font-size: 1rem;
    width: 343px;
    height: 52px;
    font-family: Inter;
}
.btn-square {
    width: 180px;
    height: 56px;
    font-family: Inter;
}


/****************************/
/* move btn class to btn */

.btn-primary {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: var(--btn-primary-background);
    overflow: hidden;
    color: var(--text-color-4);
    text-overflow: ellipsis;

    /* typography/body/M-14 */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}

.btn-primary:focus {
    outline: 4px solid var(--btn-primary-background-focus-outline);
}

.btn-primary:hover {
    background: var(--btn-primary-background-hover);
}

.btn-primary:disabled,
.btn-primary.disabled {
    background: var(--btn-primary-background-disabled);
    outline: none;
}

body.dark-mode .btn-primary {
    background: var(--link-color-2);
}

body.dark-mode .btn-primary:hover {
    background: var(--background-light-gray);
    color: var(--link-color);
}

.m-reverse .btn-primary {
    background: var(--link-color-2);
}

.m-reverse .btn-primary:hover {
    background: var(--background-light-gray);
    color: var(--link-color);
}


.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: var(--btn-secondary-background);
    color: var(--text-color);
    cursor: pointer;
    border: 1px solid var(--border-for-white);

    /* typography/body/M-14 */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
.btn-secondary:focus {
    outline: 4px solid var(--btn-secondary-background-focus-outline);
}
.btn-secondary:hover {
    border: 1px solid var(--btn-secondary-background-hover);
}

body.dark-mode .btn-secondary {
    background: var(--background-reserve);
}



.btn-third {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    background: var(--btn-secondary-background);
    color: var(--text-color);
    cursor: pointer;
    border: 1px solid var(--border-for-white);

    /* typography/body/M-14 */
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px;
}
.btn-third:focus {
    outline: 4px solid var(--btn-secondary-background-focus-outline);
}
.btn-third:hover {
    border: 1px solid var(--btn-secondary-background-hover);
}

body.dark-mode .btn-third {
    background: var(--background-light-black);
    border: 1px solid var(--border-for-dark);
    color: var(--text-color-for-dark);
}




.btn-lg {
    height: 52px;
    padding: 0 22px;
    border-radius: 10px;
}
.btn-md {
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
}
.btn-s {
    height: 36px;
    padding: 0 12px;
    border-radius: 7px;
}
.btn-xs {
    height: 32px;
    padding: 0 12px;
    border-radius: 6px;
}

/****************************/



@media screen and (max-width: 991px) {
    #toTop {
        opacity: 0;
        pointer-events: none;
    }
}

@media screen and (max-width: 992px) {
    .btn-cnv-square {
        border-radius: 7px;
        height: 52px;
    }

    .btn-rectangle {
        width: 100%;
        height: 52px;
        font-family: Inter;
        font-size: 0.9375rem; /* на основе 15px */
    }

    .btn-cnv {
        font-size: 0.9375rem;
        border-radius: 6px;
        width: 100%;
        height: 52px;
    }

    .btn-light {
        border-radius: 6px;
    }

    .education-btn {
        width: 100%;
        font-size: 1.067rem;
        height: 48px;
    }
}.modal-block {
    visibility: hidden;
    position: absolute;
    left: -9999px;
    top: -9999px;
    background: rgba(0, 0, 0, 0.6);
    padding: 5% 0;

}

.modal-block.open {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    visibility: visible;
    opacity: 1;
    z-index:1111;
    overflow: auto;
}

.modal-content {
    padding: 30px;
}

.modal-close {
    outline: none;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 25px;
    top: 25px;
}

.modal-content .modal-block-container .modal-form {
    width: 410px;
    margin: 20px auto;
}

.modal-content .modal-block-container .modal-form__input {
    height: 45px;
    margin: 10px 0;
}

.modal-content .modal-block-container select.modal-form__input {
    height: auto;
}

.modal-content .modal-block-container textarea {
    height: 135px;
    resize: none;
    margin-top: 20px;
}

.modal-content .modal-block-container .modal-form__input,
.modal-content .modal-block-container textarea{
    border-radius: 10px;
    width: 410px;
    padding: 15px 20px;
    outline: none;
    border: none;
    background: #F7F7F7;
}

.modal-content .modal-block-container textarea {
    height: 135px;
    resize: none;
    margin-top: 20px;
}

.modal-content .modal-block-container .modal-form__input::-webkit-input-placeholder,
.modal-content .modal-block-container textarea::-webkit-input-placeholder{
    color: #888;
}

.modal-content .modal-block-container textarea:focus,
.modal-content .modal-block-container input:focus {
    background: #fff;
    border: 1px solid #000;
}

.modal-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.modal-bg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.modal-container {
    position: relative;
    width: 540px;
    margin: 0 auto;
    max-width: 100%;
}

@media screen and (max-width: 992px) {
    .modal-block {
        font-size: 1rem;
        visibility: hidden;
    }

    .modal-block .h2{
        margin: 0;
    }

    .modal-block.open,
    .card-more-block.open {
        max-width: 100%;
        padding: 15px;
    }

    @supports(height: 100dvh) {
        .modal-block.open {
            height: 100dvh;
        }
    }

    #modal_company_review .modal-container {
        max-width: 100%;
    }

    .modal-content {
        padding: 16px;
    }

    /*.modal-container {*/
    /*    height: 100%;*/
    /*}*/
    .modal-container .modal-block-container {
        margin-top: 20px;
    }

    .modal-close {
        float: right;
    }

    .modal-content .modal-block-container .modal-form {
        width: 100%;
    }

    .modal-content .modal-block-container textarea {
        height: 232px;
    }

    .modal-content .modal-block-container .modal-form__input,
    .modal-content .modal-block-container textarea {
        border-radius: inherit;
        width: 100%;
        border: 1px solid #E5E5E5;
    }

    .modal-content .modal-block-container textarea {
        border-radius: 5px;
    }

    .mob-like-curtain.modal-block.open {
        height: auto;
        bottom: 0;
        top: inherit;
        padding: 0;
    }

    .mob-like-curtain.modal-block:before {
        content: '';
        position: fixed;
        height: 100%;
        width: 100%;
        background: rgba(0, 0, 0, 0.6);
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: -1;
    }

    .mob-like-curtain .modal-container {
        max-width: 100%;
    }

    .mob-like-curtain .modal-content {
        background: #fff;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
}

@media screen and (max-width: 600px) {
    .modal-block.notify .modal-container {
        width: calc(100% - 30px);
    }
}
/* Тёмная тема (v5/modules/theme) красит фон .modal-content поверх скруглённого
   .modal-container — у модалок, где контент не несёт собственного скругления (.m),
   углы становились квадратными. Контент наследует радиус контейнера. */
body.dark-mode .modal-content:not(.m) {
    border-radius: inherit;
}

@media screen and (max-width: 992px) {
    /* Шторки: контейнер без радиуса, скругляем только верхние углы — как в светлой теме */
    body.dark-mode .mob-like-curtain .modal-content:not(.m) {
        border-radius: 20px 20px 0 0;
    }
}
.modal-block.modal-call-back .modal-container {
    width: 816px;
}

.modal-block.modal-call-back .modal-block-container .modal-form {
    width:100%;
    box-sizing: border-box;
}

.modal-call-back .modal__description {
    margin: 0 auto;
    width: 525px;
    font-size: 1.125rem;
    text-align: center;
}

.modal-call-back .modal__title {
    text-align: center;
}

.modal-call-back .modal-block-container .modal-form input {
    margin-top: 16px;
}

.modal-call-back .modal-block-container .modal-form textarea {
    border-radius: 10px;
    width: 100%;
    padding: 15px 20px;
    outline: none;
    border: none;
}

.modal-call-back .modal-block-container .modal-form textarea {
    height: 135px;
    resize: none;
    margin-top: 16px;
}
.modal-call-back .call-back-input {
    padding: 6px 19px;
    outline: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.728rem;
}

.modal-call-back .call-back-bottom-block {
    align-items: center;
    margin-top: 27px;
    justify-content: space-between;
}

.modal-call-back .call-back-confirm{
    font-size: 0.875rem;
    max-width: 507px;
}

.modal-call-back .call-back-confirm a{
    color: #888;
    text-decoration: underline;
}

@media screen and (min-width: 992px) {

}

@media screen and (max-width: 991px) {
    .modal-block.modal-call-back .modal-container {
        width: inherit !important;
    }

    .modal-call-back .modal__description {
        width: inherit;
        margin: 20px auto;
        color: #636363;
        text-align: left;
    }

    .modal-call-back .call-back-bottom-block {
        display: contents;
    }

    .modal-call-back .call-back-confirm{
        max-width: inherit;
        margin-top: 11px;
        font-size: 0.75rem;
    }

    .modal-call-back .modal-block-container .modal-form .btn {
        margin: 20px 0;
        width: 100%;
    }

    .modal-call-back .modal-block-container .modal-form .call-back--confirm {
        font-size: .75rem;
    }

    .modal-call-back .modal__title {
        text-align: left;
    }
}.notify .notify-logo svg {
    display: block;
    margin: 15px auto 20px;
}
.notify .notify-message {
    color: #636363;
}

.notify .hidden {
    display: none;
}

@media screen and (min-width: 992px) {
    .notify .modal-container {
        border-radius: 25px;
        box-shadow: 0 6px 20px rgba(55, 56, 61, 0.1);
    }
}

@media screen and (max-width: 991px) {
    .notify .modal-content {
        padding-top: 0;
        height: 100%;
    }

    .notify .modal-block-container {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

    .notify .main-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow-y: auto;
    }
}.modal-city .modal__title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    margin: 15px 0 15px 0;
    padding-left: 50px;
    font-weight: 700;
}

.modal-city .modal-container {
    border-radius: 25px;
    box-shadow: 0 6px 20px rgba(55, 56, 61, 0.1);
}

.modal-city .modal-search__input {
    border-radius: 39px;
    background-color: #F7F7F7;
}

.modal-city .modal-search-block__button {
    position: absolute;
    margin-left: 370px;
    cursor: pointer;
    margin-top: -40px;
}

.modal-city .modal-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50%;
}

.modal-city .modal-list__el {
    margin: 5px 0;
    width: 50%;
}

.modal-city .modal-list__el a,
.modal-city .modal-list__el > span {
    color: #222735;
    cursor: pointer;
}

.modal-city .modal-searched-data-block .not-matches-with-search {
    opacity: 0.5;
}

.modal-city .modal-list__el a:hover,
.modal-city .modal-list__el > span:hover {
    color: #355FF1;
}
.modal-city .modal-searched-data-block a:hover,
.modal-city .modal-searched-data-block .modal-list__el > span:hover {
    color: #355FF1;
    background-color: #F3F8FF;
}

.modal-city .modal-searched-data-block a,
.modal-city .modal-searched-data-block .modal-list__el > span {
    display: block;
    color: #000000;
    padding: 0 5px 0 20px;
    cursor: pointer;
}
.modal-city .modal-form {
    position: relative;
}
.modal-city .modal-searched-data-block::-webkit-scrollbar {
    width: 5px;
}
.modal-city .modal-searched-data-block::-webkit-scrollbar-thumb {
    width: 5px;
    background: rgba(135, 145, 159, 0.4);
    border-radius: 3px;
}

.modal-city .modal-list-container.hidden {
    display: none;
}

@media screen and (min-width: 992px) {
    .modal-city .modal-search-block__button .city-search-icon path {
        fill: #636363;
    }
    .modal-city .modal-search-block__button .reset-search-hint path {
        stroke: #636363;
    }

    .modal-city .modal-list-container,
    .modal-city .modal-searched-data-block {
        padding: 20px 0 20px 50px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 80%;
    }
    .modal-city .modal-searched-data-block a:hover .not-matches-with-search,
    .modal-city .modal-searched-data-block .modal-list__el > span:hover .not-matches-with-search {
        opacity: 1;
    }


    .modal-city .modal-block-container .modal-content .focusedInp {
        border-radius: 25px 25px 0 0;
        background-color: #ffffff;
        border: none;
        box-shadow: 0 -6px 10px rgb(0 0 0 / 3%);
    }
}

@media screen and (max-width: 991px) {
    .modal-city .modal__title {
        font-size: 1.375rem;
        font-weight: 700;
        margin: 0;
        padding-left: 0;
    }

    .modal-city .modal-container {
        border-radius: inherit;
        box-shadow: inherit;
    }

    .modal-city .modal-content .modal-block-container .modal-search__input {
        border-radius: 5px;
        height: 48px;
        background-color: inherit;
    }

    .modal-city .modal-content .modal-block-container .modal-search__input:focus {
        border: 1px solid #E5E5E5;
    }

    .modal-city .modal-search-block__button {
        right: 20px;
        margin-top: -43px;
        margin-left: 0;
    }
    .modal-city .modal-list-container,
    .modal-city .modal-searched-data-block {
        height: calc(100vh - 130px);
        overflow-y: scroll;
    }

    .modal-city .modal-block-container {
        margin-top: 8px;
        position: relative;
    }

    .modal-city .modal-list__el {
        margin: 12px 0;
        width: inherit;
    }

    .modal-city .modal-searched-data-block a,
    .modal-city .modal-searched-data-block .modal-list__el > span {
        display: block;
        height: 48px;
        padding: 8px 20px;
        color: #000000;
        background-color: inherit;
    }

    .modal-city .modal-searched-data-block a:not(:last-child),
    .modal-city .modal-searched-data-block .modal-list__el > span:not(:last-child) {
        border-bottom: 1px solid #E5E5E5;;
    }

    .modal-city .modal-exit svg {
        width: 15px;
        height: 15px;
    }

    .modal-city .modal-exit svg path {
        fill: black;
    }

    .modal-city .modal-form {
        display: contents;
    }
}
/* Тёмная тема: на мобильном крестик закрытия красился в black поверх тёмного
   фона модалки и становился невидимым — восстанавливаем штатный цвет иконки
   (#95A5B0, родной цвет из атрибута fill самого SVG) */
@media screen and (max-width: 991px) {
    body.dark-mode .modal-city .modal-exit svg path {
        fill: #95A5B0;
    }
}.tippy-box[data-theme~='vzo'] {
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    font-family: Inter, sans-serif;
    font-size: 13px;
    line-height: 20px;
    box-sizing: border-box;
    color: #FFF;
    margin-bottom: 5px;
    border-radius: 8px;
    z-index: 9;
    max-width: 300px !important;
    width: max-content;
    white-space: pre-wrap;

    text-overflow: ellipsis;
}

/*.tippy-box[data-theme~='vzo'] .tippy-content {*/
/*    padding: 0;*/
/*}*/

/*.card-more-block .tippy-box[data-theme~='vzo']  {*/
/*    z-index: 1111111 !important;*/
/*    background: #ccc !important;*/
/*}*/
.cookies-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 8px 8px 14px;
    width: auto;
    max-width: calc(100vw - 24px);
    position: fixed;
    bottom: 12px;
    left: 12px;
    background-color: rgba(24, 29, 40, 0.96);
    color: #FFFFFF;
    z-index: 13;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.35;
}

.cookies-info .cookies-btn-wrap {
    margin: 0;
}
.cookies-info .cookies-btn-wrap .btn {
    min-width: 84px;
    min-height: 36px;
    padding: 6px 12px;
    background-color: #FFFFFF;
    color: #181D28;
    border: 0;
}
.cookies-info .cookies-btn-wrap .btn:hover {
    background-color: #E9EEF8;
}
.cookies-info a {
    color: #8DB5FF;
}

.cookies-info.hidden {
    display: none;
}

.cookies-info .cookies-info-text {
    display: block;
}

@media screen and (max-width: 991px) {
    .cookies-info {
        right: 12px;
        justify-content: space-between;
    }

    .cookies-info .cookies-btn-wrap .btn {
        min-width: 76px;
    }
}
.official-access {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 16px 0 24px;
    padding: 14px 16px;
    border: 1px solid var(--color-border, #DDDFDF);
    border-left: 3px solid var(--color-primary, #145FF4);
    border-radius: 8px;
    background: var(--color-bg, #FFFFFF);
}

.official-access__copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.official-access__copy strong {
    color: var(--color-text, #181D28);
    font-size: 15px;
}

.official-access__copy span {
    color: var(--color-text-secondary, #616263);
    font-size: 13px;
    line-height: 1.4;
}

.official-access .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.journey-next-step {
    margin: 28px 0;
    padding: 20px;
    border: 1px solid var(--color-border, #DDDFDF);
    border-radius: 8px;
    background: var(--color-bg-secondary, #F5F7FA);
}

.journey-next-step[hidden] {
    display: none;
}

.journey-next-step--recommendation {
    width: calc(100% - 32px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.journey-next-step__title {
    display: block;
    margin: 0 0 6px;
    color: var(--color-text, #181D28);
    font-size: 18px;
    line-height: 1.3;
}

.journey-next-step__text {
    max-width: 720px;
    margin: 0;
    color: var(--color-text-secondary, #616263);
    font-size: 14px;
    line-height: 1.5;
}

.journey-next-step__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.commercial-journey {
    display: none;
    position: fixed;
    right: 88px;
    bottom: 18px;
    z-index: 12;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--color-border, #DDDFDF);
    border-radius: 8px;
    background: var(--color-bg, #FFFFFF);
    box-shadow: 0 8px 28px rgba(24, 29, 40, 0.16);
}

.commercial-journey.is-visible {
    display: flex;
}

.commercial-journey .btn {
    min-height: 40px;
    white-space: nowrap;
}

.commercial-journey.is-cookie-visible {
    bottom: 72px;
}

body.dark-mode .official-access,
body.dark-mode .commercial-journey {
    background: #181D28;
    border-color: #3B4352;
}

body.dark-mode .journey-next-step {
    background: #202633;
    border-color: #3B4352;
}

body.dark-mode .official-access__copy strong,
body.dark-mode .journey-next-step__title {
    color: #F4F6FA;
}

body.dark-mode .official-access__copy span,
body.dark-mode .journey-next-step__text {
    color: #B8C0CE;
}

@media screen and (max-width: 640px) {
    .official-access {
        align-items: stretch;
        flex-direction: column;
    }

    .official-access .btn {
        width: 100%;
    }

    .journey-next-step {
        padding: 16px;
    }

    .journey-next-step__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .commercial-journey {
        right: 10px;
        bottom: 62px;
        left: 10px;
        justify-content: stretch;
    }

    .commercial-journey .btn {
        flex: 1 1 50%;
        min-width: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .commercial-journey.is-cookie-visible {
        bottom: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .commercial-journey {
        scroll-behavior: auto;
    }
}
table.table-limit {
    border: 1px solid var(--border-for-white);
    border-radius: 15px;
}

/*body.dark-mode table.table-limit {*/
/*    border: 1px solid var(--border-for-dark);*/
/*}*/

.border-right {
    border-right: 1px solid var(--border-for-white);
}

body.dark-mode .border-right {
    border-right: 1px solid var(--border-for-dark);
}

.text-small {
    font-weight: 400;
    font-size: 14px;
    padding-top: 10px;
}

table .main-td {
    font-weight: bold;
}

/*js dataTables*/
.jsTableBlock .main-td {
    width: 270px;
}

.jsTableBlock .main-td:not(:first-of-type) {
    text-align: left;
}

.jsTableBlock .js-table {
    table-layout: fixed;
    min-width: 760px;
}

.jsTableBlock {
    position: relative;
}

.jsTableBlock .total_cards_table_js {
    margin: 0;
}

.jsTbScroll {
    overflow-x: auto;
}

.sortingArrowsBlock {
    display: inline-flex;
    cursor: pointer;
    align-items: center;
    padding-right: 20px;
}

.sortingArrows {
    display: flex;
    flex-wrap: wrap;
    width: 12px;
    height: 30px;
    align-items: center;
    margin-left: 10px;
}

span.sortDown.jsSortItem {
    transform: rotate(180deg);
}

span.jsSortItem {
    line-height: 12px;
}

.data-table-pagination {
    width: 28px;
    height: 28px;
    display: inline-block;
    margin: 0 5px;
    line-height: 28px;
    text-align: center;
    border-radius: 5px;
    color: var(--text-color-2);
}

body.dark-mode .data-table-pagination {
    color: var(--text-color-2-for-dark);
}

.data-table-pagination:not(.disabledPage) {
    cursor: pointer;
}
.data-table-pagination.disabledPage {
    pointer-events: none;
}

.jsTableBlock {
    padding-top: 1.5em;
    border: 1px solid var(--border-for-white);
}

body.dark-mode .jsTableBlock {
    border: 1px solid var(--border-for-dark);
}


.jsTableBlock .dataTablesFooter .data-table-pages {
    text-align: center;
    padding-right: 4em;
    border-radius: 0 0 15px 15px;
}

.searchBlock {
    display: flex;
    width: 100%;
    height: 55px;
    justify-content: flex-end;
}

.searchBlock svg {
    position: absolute;
    top: 2.5em;
}

.searchBlock .searchMagnifier {
    right: 4em;
}

.searchBlock .searchReset {
    right: 3.5em;
    cursor: pointer;
    display: none;
}

.dataTableHiddenTd, .jsTableBlock .sortingArrows .jsTableDisplayNone,.display_none {
    display: none;
}

.activeSortItem {
    color: var(--link-color-2);
}

table button[data-href]:not(.btn-primary) {
    color: var(--link-color-2);
    text-decoration:none;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
}

table button,
table button.btn {
    width: 150px;
}

/* скрытие таблиц */
.table-toggle-btn{
    position: relative;
    cursor: pointer;
    display: block;
    text-align: center;
    margin: 15px 0;
    font-size: 0.9rem;
}

.table-toggle-btn:after{
    content: '';
    margin-left: 5px;
    width: 10px;
    height: 5px;
    display: inline-block;
    vertical-align: 2px;
    background: url(/v4/images/arrow-down.svg);
}

.table-toggle-btn.up:after {
    transform: rotate(180deg);
}

.table-scroll {
    overflow: auto;
    margin-bottom: 15px;
    padding-right: 1px;
}

.table-scroll table {
    width: 100%;
    table-layout: inherit;
}

table tr.hide {
    display: none;
}

.content table, .content-block table {
    border-collapse: collapse;
    border-radius: 10px;
    margin-bottom: 15px;
}
.content table tr td,.content table tr th,
.content-block table tr td,.content-block table tr th {
    border: 1px solid var(--border-for-white);
    padding: 18px 22px;
    min-width: 200px;
}

body.dark-mode .content table tr td,
body.dark-mode .content table tr th,
body.dark-mode .content-block table tr td,
body.dark-mode .content-block table tr th {
    border: 1px solid var(--border-for-dark);
}

.table-scroll::-webkit-scrollbar {
    /*background-color: var(--background-light-gray);*/
    /*height: 2px;*/
    display: none;
}

.table-scroll::-webkit-scrollbar-track {
    /*background-color: var(--background-light-black);*/
}

.table-scroll::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

.bordered-table {
    width: calc(100% - 70px);
    margin: 25px auto;
}

.data-table-pagination-right,
.data-table-pagination-left {
    display: inline-block;
    width: 10px;
    height: 23px;
    position: relative;
    cursor: pointer;
}

.data-table-pagination-right svg,
.data-table-pagination-left svg {
    position: absolute;
    top: 9px;
    left: 0;
}

.ellipsis-item {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

table td:not(.table-horizontal td, .table-border-part td), table th:not(.table-horizontal th, .table-border-part th ){
    padding: 14px 0 14px 16px;
}

@media screen and (min-width: 992px) {
    table {
        table-layout:fixed;
        width:100%;
        max-width: 100%;
        border-spacing: 0;
        border: 0;
        overflow: hidden;
    }
    table tr td:last-of-type {
        align-items:center;
    }

    table.table-info,
    table.table-border-part {
        border: 1px solid var(--border-for-white);
        border-radius: 10px;
    }

    body.dark-mode .table-info,
    body.dark-mode .table-border-part {
        border: 1px solid var(--border-for-dark);
    }

    table.table-info tr td:first-of-type {
        width: 30%;
    }

    table.table-limit td:first-child {
        text-align: left;
    }

    table.table-limit td th svg{
        margin-left: 10px;
    }

    table.table-limit tr th svg:active{
        transform: rotate(180deg);
    }
    table.table-limit tr:not(:last-of-type) td,
    table.table-info tr:not(:last-of-type) td,
    table.table-horizontal tr td,
    table.table-horizontal tr th{
        border-bottom:  1px solid var(--border-for-white);
    }

    body.dark-mode table.table-limit tr:not(:last-of-type) td,
    body.dark-mode table.table-info tr:not(:last-of-type) td,
    body.dark-mode table.table-horizontal tr td,
    body.dark-mode table.table-horizontal tr th{
        border-bottom:  1px solid var(--border-for-dark);
    }

    .table-horizontal td,
    .table-horizontal th,
    table.table-border-part td,
    table.table-border-part th {
        padding: 14px 0;
        text-align: center;
    }

    .table-horizontal tbody tr td:first-of-type,
    .table-horizontal thead tr td:first-of-type,
    table.table-border-part tbody tr td:first-of-type,
    table.table-border-part thead tr th:first-of-type {
        border-right: 1px solid var(--border-for-white);
    }

    body.dark-mode .table-horizontal tbody tr td:first-of-type,
    body.dark-mode .table-horizontal thead tr td:first-of-type,
    body.dark-mode table.table-border-part tbody tr td:first-of-type,
    body.dark-mode table.table-border-part thead tr th:first-of-type {
        border-right: 1px solid var(--border-for-dark);
    }

    table.table-border-part thead tr th {
        border-bottom: 1px solid var(--border-for-white);
    }

    body.dark-mode table.table-border-part thead tr th {
        border-bottom: 1px solid var(--border-for-dark);
    }
    /*div table*/

    .table-info-block {
        width: 100%;
        margin: 30px 0;
        border-radius: 15px;
    }

    .table-info-block .tr {
        display: flex;
        justify-content: space-between;
    }

    .table-info-block .tr .td {
        padding: 14px 30px;
    }

    .table-info-block .tr .td svg {
        margin-left: 10px;
    }

    .table-info-block .tr .td:first-of-type {
        width: 30%;
        font-weight: 600;
    }

    .table-vertical-block .tr:first-of-type .td,
    .table-info-block .tr:first-of-type .td {
        padding-top: 25px;
    }

    .table-vertical-block .tr:last-of-type .td,
    .table-info-block .tr:last-of-type .td{
        padding-bottom: 25px;
    }

    .table-info-block .tr .border-radius-1,
    .table-limit-block .border-radius-1,
    .light-border  .border-radius-1{
        border-radius: 15px 0 0 0;
    }

    .table-info-block .tr .td:last-of-type {
        width: 70%;
    }
    /*table 2*/

    .table-limit-block {
        width: 1110px;
        margin: 30px 0 30px 0;
        border-radius: 15px;
    }

    .table-limit-block .tr {
        display: flex;
        justify-content: space-between;
    }

    .table-limit-block .tr .td:first-of-type {
        width:35%;
    }

    .table-limit-block .tr:not(:last-of-type):not(:first-of-type),
    .light-border .tr:not(:last-of-type):not(:first-of-type),
    .table-info-block .tr:not(:last-of-type) .td:last-of-type {
        border-bottom:  1px solid var(--border-for-white);
    }

    body.dark-mode .table-limit-block .tr:not(:last-of-type):not(:first-of-type),
    body.dark-mode .light-border .tr:not(:last-of-type):not(:first-of-type),
    body.dark-mode .table-info-block .tr:not(:last-of-type) .td:last-of-type {
        border-bottom:  1px solid var(--border-for-dark);
    }

    .table-limit-block .tr .th {
        border-bottom: none;
        font-weight: 700;
        float: right;
    }

    .table-limit-block .border-radius-2,
    .light-border .border-radius-2 {
        border-radius: 0 15px 0 0;
    }

    .table-limit-block .tr .th svg {
        margin-left: 5px;
        cursor: pointer;
        width: 8px;
        height: 6px;
    }

    .table-limit-block .tr .th svg:active {
        transform: rotate(180deg);
    }

    .table-limit-block .tr .td {
        padding: 1em 2em;
        width: 25%;
    }
    /*table 3*/

    .table-vertical-block {
        width: 100%;
        margin: 30px 0;
    }

    .table-vertical-block .tr {
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    .table-vertical-block .tr .th {
        border-bottom: none;
        font-weight: 700;
    }

    .table-vertical-block .tr .td {
        padding: 10px 0 10px 30px;
        width: 23%;
    }
    /*table 4*/

    .light-border {
        margin: 30px 0;
        border-radius: 15px;
    }

    .light-border .tr {
        display: flex;
        justify-content: space-between;
    }

    .light-border .tr .td {
        padding: 1.2em;
        width: 50%;
        text-align: center;
    }

    .light-border .tr .th {
        font-weight: 700;
    }

    .content .jsTableBlock tr td,
    .content .jsTableBlock tr th {
        width: 195px;
    }
    table.cell-padding td, table.cell-padding th{
        padding: 15px;
    }

    .post-content table td:first-child {
        padding-left: 0;
    }
    .bordered-table td {
        border: 1px solid var(--border-for-white);
        padding: 18px 22px;
        min-width: 200px;
    }

    body.dark-mode .bordered-table td {
        border: 1px solid var(--border-for-dark);
    }
}

@media screen and (max-width: 991px) {
    table.table-limit {
        border-collapse: collapse;
        border-top: 1px solid var(--border-for-white);
    }

    body.dark-mode .table-limit {
        border-top: 1px solid var(--border-for-dark);
    }

    /*table.table-limit tr.showed-items td,*/
    /*table.table-limit thead th,*/
    table.table-limit tr.matchesToSearch td {
        border-bottom: 1px solid var(--border-for-white);
        border-right: 1px solid var(--border-for-white);
    }

    table.table-limit tr.showed-items td {
        border-bottom: 1px solid var(--border-for-white);
    }

    body.dark-mode .table-limit tr.showed-items td {
        border-bottom: 1px solid var(--border-for-dark);
    }

    /*body.dark-mode .table-limit tr.showed-items td,*/
    /*body.dark-mode .table-limit thead th,*/
    body.dark-mode .table-limit tr.matchesToSearch td {
        border-bottom: 1px solid var(--border-for-dark);
        border-right: 1px solid var(--border-for-dark);
    }

    body.dark-mode .table-limit thead th {
        border-bottom: 1px solid var(--border-for-dark);
    }

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

    .jsTableBlock .main-td {
        white-space: nowrap;
        text-align: left;
        padding: 10px 16px;
        border-collapse: collapse;
        width: inherit;
    }

    .jsTableBlock .main-td:not(:first-of-type) {
        text-align: inherit;
    }

    .jsTableBlock {
        margin: 25px 0;
    }

    .jsTableBlock .total_cards_table_js {
        margin: inherit;
    }

    .jsTbScroll {
        display: block;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 50px;
    }

    .jsTableBlock {
        border-top: 1px solid var(--border-for-white);
        border-bottom: 1px solid var(--border-for-white);
        border-right: none;
        border-left: none;
        padding-top: 0;
    }

    body.dark-mode .jsTableBlock {
        border-top: 1px solid var(--border-for-dark);
        border-bottom: 1px solid var(--border-for-dark);
    }

    .jsTableBlock .dataTablesFooter .data-table-pages {
        border: none;
        text-align: inherit;
        padding-right: 0;
        background-color: inherit;
    }
    .jsTableBlock tbody {
        background: inherit;
    }

    .searchBlock {
        float: right;
        height: inherit;
        align-items: center;
    }
    .searchBlock svg {
        position: absolute;
        top: inherit;
    }
    .searchBlock .searchReset {
        right: 2em;
    }
    .table-scroll {
        padding-right: 0;
    }
    .content table, .content-block table, .content-text table{
        border-radius: inherit;
        box-shadow: inherit;
    }
    .content table tr td,.content table tr th, .content-block table tr td,.content-block table tr th, .content-text table tr td,.content-text table tr th {
        padding: 9px 15px;
        min-width: 130px;
    }
    .bordered-table {
        width: inherit;
        margin: inherit;
        box-shadow: inherit;
        border-collapse: collapse;
    }
    .data-table-pagination-right,
    .data-table-pagination-left {
        height: 20px;
    }
    .data-table-pagination-right svg,
    .data-table-pagination-left svg {
        top: 6px;
    }
    .listing-h2 {
        margin: 16px;
    }

    .jsTableBlock thead {
        margin-top: 16px;
    }

    .jsTableBlock td {
        padding: 10px 16px;
    }
    .jsTableBlock thead .main-td:first-of-type {
        min-width: 200px;
    }

    .jsTableBlock .dataTablesFooter {
        position: absolute;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .jsTbScroll::-webkit-scrollbar {
        display: none;
    }

    .jsTableScroll table{
        margin-top: 72px;
    }

    table.table-border-part {
        table-layout:fixed;
        width:100%;
        margin: 30px 0;
        max-width: 100%;
        border-spacing: 0;
        border: 0;
        overflow: hidden;
    }

    table.table-border-part{
        border-top: 1px solid var(--border-for-white);
        border-bottom: 1px solid var(--border-for-white);
    }

    body.dark-mode table.table-border-part {
        border-top: 1px solid var(--border-for-dark);
        border-bottom: 1px solid var(--border-for-dark);
    }

    table.table-border-part td, table.table-border-part th{
        padding: 14px 16px;
        text-align: center;
    }

    table.table-border-part tbody tr td:first-of-type,
    table.table-border-part thead tr th:first-of-type{
        border-right: 1px solid var(--border-for-white);
    }

    body.dark-mode table.table-border-part tbody tr td:first-of-type,
    body.dark-mode table.table-border-part thead tr th:first-of-type{
        border-right: 1px solid var(--border-for-dark);
    }

    table .main-td {
        font-weight: bold;
    }

    .total_cards_table_text {
        font-size: 16px;
        padding: 0 16px;
    }

    .table-toggle-wrap tr:first-of-type {
        vertical-align: baseline;
    }

    .table-toggle-wrap td {
        padding: 4px 8px;
    }

    .jsTbScroll.absolute-pagination .data-table-pages {
        padding-bottom: 40px;
    }

    .jsTbScroll.absolute-pagination .data-table-paginations {
        position: absolute;
        left: 50%;
        transform: translate(-50%,0);
        width: max-content;
    }

    .data-table-pagination-right,
    .data-table-pagination-left {
        height: 20px;
    }
}

@media only screen and (max-width: 540px) {
    .content table:not(.total_cards_table_js):not(.requisites):not(.overpayment-block table):not(.product_review-block table) {
        width: calc(100% + 30px);
        margin-left: -15px;
    }
    .content table tr td:first-of-type,.content table tr th:first-of-type {
        border-left: none;
    }
    .content table tr td:last-of-type,.content table tr th:last-of-type {
        border-right: none;
    }
}
@media only screen and (max-width: 320px) {
    .jsTableBlock .dataTablesFooter td {
        padding: 10px;
    }
}
.alert {
    padding: 20px;
    border-radius: 8px;
}

.alert .alert-text {
    font-size: 0.938rem;
    font-family: Inter, sans-serif;
}

.alert.blue {
    background: #D8E5FF;
}

.alert.red {
    background: #FF505040;
}

@media screen and (max-width: 992px) {
    .alert {
        padding: 12px;
    }

    .alert .alert-text {
        font-size: 1rem;
        font-family: Inter, sans-serif;
    }
}.theme-switcher {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    color: var(--theme-text, #222735);
    z-index: 12;
}

.theme-switcher__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--theme-border, #dfe5ee);
    border-radius: 8px;
    background: var(--theme-surface, #ffffff);
    color: var(--theme-text, #222735);
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.theme-switcher__button:hover,
.theme-switcher__button[aria-pressed="true"] {
    border-color: var(--theme-accent, #145ff4);
    color: var(--theme-accent, #145ff4);
}

.theme-switcher__button:focus-visible {
    outline: 2px solid var(--theme-focus, #7aa7ff);
    outline-offset: 2px;
}

.theme-switcher__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.theme-switcher__icon svg {
    display: none;
}

.theme-switcher[data-theme-choice="light"] .theme-switcher__icon-light,
.theme-switcher[data-theme-choice="dark"] .theme-switcher__icon-dark {
    display: block;
}

.theme-switcher__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

html[data-theme="dark"] .theme-switcher__button {
    background: var(--theme-surface-2, #121c29);
    color: var(--theme-text, #eef4fb);
    border-color: var(--theme-border-strong, #344358);
}

html[data-theme="dark"] .theme-switcher__button:hover,
html[data-theme="dark"] .theme-switcher__button[aria-pressed="true"] {
    color: var(--theme-accent-hover, #9bbfff);
    border-color: var(--theme-accent-hover, #9bbfff);
}

html[data-theme="dark"] body {
    background: var(--theme-page);
    color: var(--theme-text);
}

html[data-theme="dark"] :where(a) {
    color: var(--theme-accent);
}

html[data-theme="dark"] :where(.background, .page, main, .main, .content, .content-wrap, .content-wrapper, .wrapper) {
    background-color: var(--theme-page);
    color: var(--theme-text);
}

html[data-theme="dark"] :where(header, .header, .header-container, .header-menu-inner, .header-bottom-block, .header-top-menu, .header-bottom-menu, .header-menu-profile, .header-menu-profile-container, footer, .footer, .footer-wrap) {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme="dark"] :where(.m, .card, .cards-list > *, .card-default, .card-body, .company-card, .bank-card, .product-card, .review-card, .review, .rating-card, .lead, .lead-block, .lead-listing, .listing-card, .listing-filter, .filter, .filters, .short-code, .shortcode, .article-card, .article-content, .news-card, .term-card, .education-card, .breadcrumbs, .modal-content, .modal-body, .cookies, .cookies-wrap, .cookies-info, .tooltip, .h-sub-menu, .h-hidden-sub-menu, .h-sub-menu-more-info, .search-block, .search-block-links, .header-search-form-wrap, .header-search-form, .search-links-block, .jsTableBlock, .jsLightTable, .total-cards, .we-compare, .we-compare-item, .sitemap, .site-map-block, .favorites-back-link, .favorites-dashboard, .favorites-dashboard-wrap, .card-compare-slider, .tabs) {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    border-color: var(--theme-border);
    box-shadow: none;
}

html[data-theme="dark"] :where(.surface, .bg-light, .gray, .light-gray, .background-light-gray, .search-link, .more-info-el, .header-item-menu, .header-sub-menu, .table-wrap, .table-wrapper, .selected-filter, .quick-filter, .tag-link, .rating-wrap, .sitemap-page, .favorites-page, .compare-page, .main-footer) {
    background-color: var(--theme-surface-2);
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme="dark"] .header-menu-profile :where(.profile-nav, .nav-row, .nav-column, .nav-item) {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme="dark"] :where(h1, h2, h3, h4, h5, h6, .title, .h-title, .h-title-small, .hl-item-title, .hr-item-title, .header-item-menu-title, .site-map-title, .breadcrumbs span, .breadcrumbs a, .active-sub-menu) {
    color: var(--theme-text);
}

html[data-theme="dark"] :where(.header-top-menu a, .header-bottom-menu a, .header-menu-profile a, .header-menu-profile span, .header-menu-title, .nav-item-name, .nav-item-title, .nav-item-email, .nav-item-link) {
    color: var(--theme-text);
}

html[data-theme="dark"] .header-menu-profile :where(.nav-item-primary, .nav-column.nav-item-primary) {
    background-color: var(--theme-accent);
    border-color: var(--theme-accent);
    color: #fff;
}

html[data-theme="dark"] .header-menu-profile :where(.nav-item-primary, .nav-column.nav-item-primary, .nav-item-primary *, .nav-column.nav-item-primary *) {
    color: #fff;
}

html[data-theme="dark"] .header-menu-profile :where(svg [stroke]) {
    stroke: currentColor;
}

html[data-theme="dark"] .header-menu-profile :where(svg [fill]:not([fill="none"])) {
    fill: currentColor;
}

html[data-theme="dark"] body.dark-mode :is(.header-top-menu, .header-bottom-menu, .header-menu-profile, .header-menu-profile-container, .header-menu-profile .profile-nav, .header-menu-profile .nav-row, .header-menu-profile .nav-column, .header-menu-profile .nav-item) {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] body.dark-mode :is(.header-top-menu, .header-bottom-menu, .header-menu-profile) :is(a, p, span, div) {
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] body.dark-mode .header-menu-profile :is(.nav-item-primary, .nav-column.nav-item-primary) {
    background-color: var(--theme-accent) !important;
    border-color: var(--theme-accent) !important;
    color: #fff !important;
}

html[data-theme="dark"] body.dark-mode .header-menu-profile :is(.nav-item-primary, .nav-column.nav-item-primary, .nav-item-primary *, .nav-column.nav-item-primary *) {
    color: #fff !important;
}

html[data-theme="dark"] :where(p, li, label, small, time, figcaption, .description, .subtitle, .text-muted, .muted, .caption, .card-description, .review-text, .source, .date, .compare-lead, .footer-nav-label, .footer-support-title, .footer-support-subtitle, .footer-bottom-copy, .footer-legal, .we-compare-item-title, .we-compare-item-text, .jsLightTable .main-td, .dataTablesFooter) {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea, .form-control, .input, .modal-form__input, .modal-search__input, .searchInp, .ya-site-form input[type="search"]) {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-input-border) !important;
    caret-color: var(--theme-text);
}

html[data-theme="dark"] :where(input, select, textarea)::placeholder {
    color: var(--theme-text-soft);
}

html[data-theme="dark"] :where(input, select, textarea, button, a, summary, [tabindex]):focus-visible {
    outline: 2px solid var(--theme-focus);
    outline-offset: 2px;
}

html[data-theme="dark"] :where(table, th, td, .table, .table-row, .table-cell) {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    border-color: var(--theme-border);
}

html[data-theme="dark"] :where(thead, th, .table-head) {
    background-color: var(--theme-surface-2);
}

html[data-theme="dark"] :where(.btn:not(.btn-cnv):not(.btn-primary), .button:not(.btn-cnv):not(.btn-primary), .btn-secondary, .btn-light, .btn-default, .btn-gray, .btn-1, .btn-light-1, .compare-clear, .clearCompare, .search-block__clear) {
    background-color: var(--btn-secondary-background);
    color: var(--btn-secondary-color);
    border-color: var(--theme-border);
}

html[data-theme="dark"] :where(.btn:not(.btn-cnv):not(.btn-primary), .button:not(.btn-cnv):not(.btn-primary), .btn-secondary, .btn-light, .btn-default, .btn-gray, .btn-1, .btn-light-1, .compare-clear, .clearCompare, .search-block__clear):hover {
    background-color: var(--btn-secondary-background-hover);
}

html[data-theme="dark"] :where(.btn-cnv, .btn-primary, .btn-blue, .h-sub-menu-btn) {
    background-color: var(--theme-accent);
    color: #06101d;
    border-color: var(--theme-accent);
}

html[data-theme="dark"] :where(.badge, .label, .free-label, .count) {
    background-color: var(--theme-surface-3);
    color: var(--theme-text);
}

html[data-theme="dark"] :where(.cookies-info) {
    background-color: rgba(3, 8, 15, .94);
    color: var(--theme-text);
    border: 1px solid var(--theme-border);
    box-shadow: var(--theme-shadow);
}

html[data-theme="dark"] :where(.favorites-clear, .compare-clear, .clearCompare, .search-block__clear) {
    color: var(--theme-accent);
}

html[data-theme="dark"] :where(.site-map-link, .simple-site-map-link, .footer-nav-links a, .footer-support-link, .legal-link-item, .footer-bottom-legal a) {
    color: var(--theme-accent);
}

html[data-theme="dark"] :where(.footer-nav-links span, .footer-bottom-legal span) {
    color: var(--theme-text);
}

html[data-theme="dark"] :where(.selected-filter, .quick-filter.selected-filter, .btn-secondary.active, .tag-link.active) {
    background-color: var(--theme-surface-3);
    color: var(--theme-text);
    border-color: var(--theme-accent);
}

html[data-theme="dark"] :where(.border, .bordered, hr) {
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] :where(svg path[stroke="black"], svg circle[stroke="black"], svg rect[stroke="black"], svg path[stroke="#000000"], svg circle[stroke="#000000"], svg rect[stroke="#000000"]) {
    stroke: var(--theme-text) !important;
}

html[data-theme="dark"] :where(svg path[fill="black"], svg circle[fill="black"], svg rect[fill="black"], svg path[fill="#000000"], svg circle[fill="#000000"], svg rect[fill="#000000"]) {
    fill: var(--theme-text) !important;
}

html[data-theme="dark"] :where(svg[fill="black"], svg[fill="#000000"]) {
    fill: var(--theme-text) !important;
}

html[data-theme="dark"] :where(svg path[stroke="#303132"], svg path[stroke="#434445"], svg path[stroke="#616263"], svg path[stroke="#636363"]) {
    stroke: var(--theme-text-muted) !important;
}

html[data-theme="dark"] :where(svg path[fill="#303132"], svg path[fill="#616263"], svg path[fill="#636363"]) {
    fill: var(--theme-text-muted) !important;
}

html[data-theme="dark"] :where(svg rect[fill="#F4F5F6"]) {
    fill: var(--theme-surface-3) !important;
}

/* Монохромные (чёрные) SVG-иконки способов выплаты/погашения в карточке — инвертируем для читабельности */
html[data-theme="dark"] .pay-icons-wrap span {
    filter: invert(1);
}

/* Цветные растровые логотипы (например, СБП .png) не инвертируем */
html[data-theme="dark"] .pay-icons-wrap span[style*=".png"] {
    filter: none;
}

html[data-theme="dark"] :where(.search-bg, .search-blurred, .modal-backdrop) {
    background-color: rgba(3, 8, 15, .72);
}

/* Dark theme visual polish for legacy v5 content blocks.
   Several legacy modules use their own dark variables and broad paragraph rules,
   which made editorial copy, footer labels and author blocks too low-contrast. */
html[data-theme="dark"] {
    --text-color-for-dark: var(--theme-text);
    --text-color-2-for-dark: #c4cfdd;
    --text-color-3-for-dark: #9faabc;
    --border-for-dark: var(--theme-border-strong);
    --background-full-black: var(--theme-page);
    --background-light-black: var(--theme-surface);
    --background-reserve: var(--theme-surface-3);
    --color-bg-muted: var(--theme-surface-2);
    --color-bg-muted-dark: var(--theme-surface-2);
    --color-border-subtle: var(--theme-border-strong);
    --color-border-subtle-dark: var(--theme-border-strong);
    --color-text-body: #c4cfdd;
    --color-text-muted: #c4cfdd;
    --color-text-muted-dark: #c4cfdd;
    --color-text-tertiary: #9faabc;
}

html[data-theme="dark"] :where(.content, .content-wrap, .content-wrapper, .article-content, .short-code, .shortcode) {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
}

html[data-theme="dark"] :where(.editorial-block, .content-block, .disclaimer, .disclaimer-block, .content-status-reading, .employee-quote-info, .tarify-block) {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: 20px !important;
    padding: 24px 28px !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(.editorial-block) + :where(.editorial-block) {
    margin-top: 20px !important;
}

html[data-theme="dark"] :where(.content p, .content li, .content-wrap p, .content-wrap li, .article-content p, .article-content li, .short-code p, .shortcode p) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.editorial-block, .content-block, .disclaimer, .disclaimer-block, .content-status-reading, .employee-quote-info, .tarify-block) :where(p, li, span, small) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.editorial-block, .content-block, .disclaimer, .disclaimer-block, .content-status-reading, .employee-quote-info, .tarify-block) :where(h1, h2, h3, h4, h5, h6, strong, b, .h1, .h2, .h3, .h4) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.editorial-block, .content-block, .disclaimer, .disclaimer-block, .content-status-reading, .employee-quote-info, .tarify-block) :where(a, a:visited) {
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(.select-inputs .select-filters-headline, .default-select .select-inputs .select-filters-headline),
html[data-theme="dark"] body.dark-mode :where(.select-inputs .select-filters-headline, .default-select .select-inputs .select-filters-headline) {
    background-color: var(--theme-surface-2) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border-strong) !important;
}

html[data-theme="dark"] :where(.select-inputs .select-filters-headline, .default-select .select-inputs .select-filters-headline) :where(.select-inputs-title, .select-inputs-status, .select-inputs-count),
html[data-theme="dark"] body.dark-mode :where(.select-inputs .select-filters-headline, .default-select .select-inputs .select-filters-headline) :where(.select-inputs-title, .select-inputs-status, .select-inputs-count) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.quiz-show-all-filters),
html[data-theme="dark"] body.dark-mode :where(.quiz-show-all-filters) {
    background-color: var(--theme-surface-2) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-border-strong) !important;
    border-radius: 10px !important;
    padding: 0 14px !important;
}

html[data-theme="dark"] :where(.content h1, .content h2, .content h3, .content h4, .content h5, .content h6, .content .h1, .content .h2, .content .h3, .content .h4, .content-wrap h1, .content-wrap h2, .content-wrap h3, .content-wrap h4, .content-wrap h5, .content-wrap h6) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.content-wrap hr, .content hr, .article-content hr, hr) {
    background-color: var(--theme-border-strong) !important;
    border-color: var(--theme-border-strong) !important;
    opacity: .75;
}

html[data-theme="dark"] :where(.authors-wrap, .author) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.author .author-name, .author .author-name:visited) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.author .author-position, .author .author-email) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.author .author-email:hover) {
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(#headerMenu .logo-name, header .logo-name) {
    content: url("/v5/images/logo-2.svg");
    width: 64px !important;
    height: 24px !important;
    object-fit: contain;
}

html[data-theme="dark"] :where(.footer-nav-label, .footer-creds li, .footer-support-subtitle, .footer-bottom-copy, .footer-legal) {
    color: #aeb9c8 !important;
}

html[data-theme="dark"] :where(.footer-nav-links > * + *::before, .footer-bottom-legal > * + *::before) {
    color: #6f7d91 !important;
}

html[data-theme="dark"] :where(.footer-nav-links a, .footer-support-link, .legal-link-item, .footer-bottom-legal a) {
    color: #7fb0ff !important;
}

html[data-theme="dark"] :where(.footer-nav-links a:hover, .footer-support-link:hover, .legal-link-item:hover, .footer-bottom-legal a:hover) {
    color: #a9c9ff !important;
}

html[data-theme="dark"] :where(.footer-nav-links span, .footer-bottom-legal span) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.breadcrumbs, .breadcrumbs-wrap) {
    background-color: transparent;
    color: #c4cfdd;
}

html[data-theme="dark"] :where(.breadcrumbs a, .breadcrumbs a:visited, .breadcrumbs span) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.breadcrumbs path) {
    stroke: #9faabc !important;
}

/* Dark theme follow-up for template-wide QA defects: calculators, listing
   calculator promos, bank independence notices and legacy quiz/filter labels. */
html[data-theme="dark"] :where(.calculator-hub-page, .credit-calculator-page) {
    background-color: var(--theme-page) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.calculator-hub-page .background, .credit-calculator-page .background) {
    background-color: var(--theme-page) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(
    .calculator-hub-nav,
    .calculator-hub-card,
    .credit-calculator-panel,
    .credit-calculator-result,
    .credit-calculator-info-block,
    .credit-calculator-method,
    .credit-calculator-input-wrap,
    .credit-calculator-link-card,
    .autocredit-calculator-link-card,
    .independence-strip
) {
    background-color: var(--theme-surface-2) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(.calculator-hub-card, .credit-calculator-panel, .credit-calculator-result, .credit-calculator-info-block, .credit-calculator-method) {
    background-color: var(--theme-surface) !important;
}

html[data-theme="dark"] .independence-strip {
    --color-bg-muted: var(--theme-surface-2);
    --color-border-subtle: var(--theme-border-strong);
    --color-text-muted: #c4cfdd;
    --color-link: var(--theme-accent-hover);
}

html[data-theme="dark"] :where(
    .calculator-hub-page,
    .credit-calculator-page,
    .credit-calculator-link-card,
    .autocredit-calculator-link-card,
    .independence-strip
) :where(h1, h2, h3, h4, h5, h6, strong, b, .title) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(
    .calculator-hub-lead p,
    .calculator-hub-card p,
    .calculator-hub-nav-title,
    .credit-calculator-page .lead p,
    .credit-calculator-info-block p,
    .credit-calculator-info-block li,
    .credit-calculator-method p,
    .credit-calculator-method li,
    .credit-calculator-link-card p,
    .autocredit-calculator-link-card p,
    .credit-calculator-form label,
    .credit-calculator-input-wrap span,
    .credit-calculator-result-title,
    .credit-calculator-result-note,
    .credit-calculator-result-row span,
    .independence-strip,
    .independence-strip__text,
    .independence-strip strong
) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.calculator-hub-nav-list a, .calculator-hub-nav-list a:visited) {
    background-color: var(--theme-surface-3) !important;
    color: var(--theme-accent-hover) !important;
    border-color: var(--theme-border-strong) !important;
}

html[data-theme="dark"] :where(.calculator-hub-nav-list a:hover, .calculator-hub-nav-list a:focus-visible) {
    background-color: #21324a !important;
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap) {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-input-border) !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap input, .credit-calculator-input-wrap select, .credit-calculator-input-wrap textarea) {
    background-color: transparent !important;
    color: var(--theme-text) !important;
    border-color: transparent !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap input)::placeholder {
    color: var(--theme-text-soft) !important;
}

html[data-theme="dark"] :where(.credit-calculator-method code, .credit-calculator-method pre) {
    background-color: var(--theme-surface-3) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] :where(.independence-strip__link, .independence-strip__link:visited) {
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(
    .quiz .quiz-input-label,
    .quiz .amount-input-label,
    .quiz .select-title,
    .quiz .quiz-num-repeat,
    .quiz .quiz-num-repeat span,
    .quiz .amount-input-repeat,
    .quiz .amount-input-block-v2 .amount-input-repeat
) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.k5m-modal-btn, .k5m-modal-btn:visited) {
    color: var(--theme-accent-hover) !important;
}

/* DOCX dark-theme polish: header search, expanded cards, form controls and button states. */
html[data-theme="dark"] body.dark-mode .header :where(.search-block.with-links, .search-block-links) {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
}

html[data-theme="dark"] body.dark-mode .header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border: 1px solid var(--theme-input-border) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] body.dark-mode .header .search-block #ya-site-form0 .ya-site-form__form .ya-site-form__input-text::placeholder {
    color: var(--theme-text-soft) !important;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-block__clear, .search-link, .search-block .links-block .h-title-small) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-block__clear:hover, .search-link:hover, .search-block .links-block a.h-title-small:hover) {
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-icon:before) {
    background-color: var(--theme-surface-3) !important;
    border: 1px solid var(--theme-border-strong);
    box-sizing: border-box;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-icon:hover:before) {
    background-color: #21324a !important;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-close svg rect, .search-close svg path, .search-block__button svg path, .search-btn-mob svg path, .icon-search path) {
    fill: var(--theme-text-muted) !important;
    stroke: var(--theme-text-muted) !important;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-close:hover svg rect, .search-close:hover svg path, .search-block__button:hover svg path, .search-btn-mob:hover svg path, .icon-search:hover path) {
    fill: var(--theme-accent-hover) !important;
    stroke: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] body.dark-mode .card :where(.card-icons-wrap) {
    align-items: stretch;
}

html[data-theme="dark"] body.dark-mode .card :where(.card-icon) {
    background-color: var(--theme-surface-2) !important;
    border-color: var(--theme-border-strong) !important;
    color: #c4cfdd !important;
}

html[data-theme="dark"] body.dark-mode .card :where(.card-icon img) {
    filter: brightness(0) saturate(100%) invert(83%) sepia(10%) saturate(403%) hue-rotate(176deg) brightness(96%) contrast(91%);
}

html[data-theme="dark"] body.dark-mode .card :where(.card-tooltip, .card-icon .text-cont) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] body.dark-mode .card :where(.card-right-btn .btn, .card-left-btn .btn, .claim-btn, .print-btn) {
    background-color: var(--btn-secondary-background) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
}

html[data-theme="dark"] body.dark-mode .card :where(.card-right-btn .btn:hover, .card-left-btn .btn:hover, .claim-btn:hover, .print-btn:hover) {
    background-color: var(--btn-secondary-background-hover) !important;
    color: var(--theme-accent-hover) !important;
    border-color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] body.dark-mode :where(.btn-primary, .btn-cnv, .btn-cnv-square, .btn-blue, .offer-btn) {
    background-color: var(--theme-accent) !important;
    color: #06101d !important;
    border-color: var(--theme-accent) !important;
}

html[data-theme="dark"] body.dark-mode :where(.btn-primary, .btn-cnv, .btn-cnv-square, .btn-blue, .offer-btn):hover,
html[data-theme="dark"] body.dark-mode :where(.btn-primary, .btn-cnv, .btn-cnv-square, .btn-blue, .offer-btn):active {
    background-color: var(--theme-accent-hover) !important;
    color: #06101d !important;
    border-color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] body.dark-mode :where(
    .quiz input:not([type="checkbox"]):not([type="radio"]),
    .quiz select,
    .quiz textarea,
    .credit-calculator-form input:not([type="checkbox"]):not([type="radio"]),
    .credit-calculator-form select,
    .credit-calculator-form textarea,
    .credit-calculator-input-wrap option,
    .modal-form__input,
    .review-form input:not([type="checkbox"]):not([type="radio"]),
    .review-form select,
    .review-form textarea
) {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-input-border) !important;
}

html[data-theme="dark"] body.dark-mode :where(
    .quiz option,
    .credit-calculator-form option,
    .review-form option
) {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] body.dark-mode :where(.modal-content, .modal-body, .modal-form, .review-form, .form-block, .form-group) {
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
}

/* vzo-dark-docx-followup-20260618 + vzo task12: page-классы вынесены из :where() → специфичность (0,2,1) перебивает .content-guard (~888); добавлен .service-page/.content-wrap */
html[data-theme="dark"] .about-page :where(.info-block, .content, .background),
html[data-theme="dark"] .k5m-page :where(.info-block, .content, .background),
html[data-theme="dark"] .service-page :where(.info-block, .content, .content-wrap, .background),
html[data-theme="dark"] .legal-page :where(.background, .content, .content-wrap) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(
    .credit-calculator-section,
    .credit-calculator-panel,
    .credit-calculator-result,
    .credit-calculator-info-block,
    .credit-calculator-method,
    .credit-calculator-note,
    .credit-calculator-columns,
    .credit-calculator-faq,
    .credit-calculator-input-wrap,
    .overpayment-calculator-wrap,
    .overpayment-calculator,
    .calculator,
    .calculator-wrap,
    .calculator-block,
    .calculator-card,
    .calculator-hub-nav,
    .calculator-hub-card,
    .calculator-hub-info,
    .calculator-hub-faq,
    .useful-calculators,
    .useful-calculator-link,
    .mortgage-calculator-block,
    .mortgage-calculator-result,
    .calculator-rko,
    .calc,
    .calc-wrap,
    .quiz-main,
    .quiz-form,
    .quiz-result,
    .form-block,
    .service-form-block,
    .services-form-block,
    .lead-service,
    .lead-services,
    .modal-container,
    .modal-window,
    .modal-block-container,
    .modal-form,
    .default-select,
    .select-inputs,
    .select-inputs-items,
    .select-options,
    .sorting,
    .sorting-block,
    .menu-organisation,
    .organisation-menu,
    .org-menu-bank-products-block
) {
    background-color: var(--theme-surface) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(
    .credit-calculator-input-wrap span,
    .credit-calculator-field label,
    .credit-calculator-result-title,
    .credit-calculator-result-row,
    .credit-calculator-result-row span,
    .credit-calculator-result-note,
    .select-inputs-title,
    .select-inputs-status,
    .select-filters-headline,
    .select-filters-header,
    .option,
    .modal-block-container,
    .modal-block-container *,
    .modal-container,
    .modal-container *,
    .form-block *,
    .service-form-block *,
    .services-form-block *,
    .menu-organisation *,
    .organisation-menu *
) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.select-inputs-items, .select-options, .option, .modal-form-info, .credit-calculator-message) {
    background-color: var(--theme-surface-2) !important;
    border-color: var(--theme-border-strong) !important;
}

html[data-theme="dark"] :where(.modal-container, .modal-block-container, .form-block, .service-form-block, .services-form-block) :where(.btn-cnv, .btn-primary, .btn-blue),
html[data-theme="dark"] body.dark-mode :where(.btn-cnv, .btn-primary, .btn-cnv-square, .btn-blue, .offer-btn) {
    background-color: var(--theme-accent) !important;
    color: #06101d !important;
    border-color: var(--theme-accent) !important;
}

html[data-theme="dark"] :where(.btn-cnv, .btn-primary, .btn-cnv-square, .btn-blue, .offer-btn):hover,
html[data-theme="dark"] :where(.btn-cnv, .btn-primary, .btn-cnv-square, .btn-blue, .offer-btn):active,
html[data-theme="dark"] body.dark-mode :where(.btn-cnv, .btn-primary, .btn-cnv-square, .btn-blue, .offer-btn):hover,
html[data-theme="dark"] body.dark-mode :where(.btn-cnv, .btn-primary, .btn-cnv-square, .btn-blue, .offer-btn):active {
    background-color: var(--theme-accent-hover) !important;
    color: #06101d !important;
    border-color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(.h-sub-menu-btn:hover, .h-sub-menu-btn:active) {
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(.card img, .cards-list img, .card-logo img, .bank-logo img, .company-logo img, img[class*="logo"], img[class*="card"]) {
    background-color: transparent !important;
    border-radius: 8px;
}

html[data-theme="dark"] :where(.employee-personal-info .social-links, .employee-personal-info .social-links a) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] :where(.employee-personal-info .social-links img) {
    display: block;
    width: 32px !important;
    height: 32px !important;
    object-fit: contain;
    border-radius: 8px;
    background-color: transparent !important;
}

html[data-theme="dark"] :where(.search-block-close-btn) {
    display: none !important;
}

/* B19 (Scority 2026-07-05): dark-theme calculator content blocks (credit/loan calculators reuse .credit-calculator-* classes; were left light #f8fafc → unreadable on dark) */
html[data-theme="dark"] .credit-calculator-formula,
body.dark-mode .credit-calculator-formula,
html[data-theme="dark"] .credit-calculator-column-card,
body.dark-mode .credit-calculator-column-card,
html[data-theme="dark"] .credit-calculator-tool-card,
body.dark-mode .credit-calculator-tool-card,
html[data-theme="dark"] .credit-calculator-summary-list li,
body.dark-mode .credit-calculator-summary-list li,
html[data-theme="dark"] .credit-calculator-check-list li,
body.dark-mode .credit-calculator-check-list li,
html[data-theme="dark"] .credit-calculator-steps li,
body.dark-mode .credit-calculator-steps li {
    background: #182435 !important;
    border-color: #2a3a54 !important;
}
html[data-theme="dark"] .credit-calculator-formula,
body.dark-mode .credit-calculator-formula {
    color: #eef4fb !important;
}
/* B19 supplement: remaining calculator light containers (tool-lists on hub/tool/final/planning/product calc pages + list containers) */
html[data-theme="dark"] .credit-calculator-summary-list,
body.dark-mode .credit-calculator-summary-list,
html[data-theme="dark"] .credit-calculator-check-list,
body.dark-mode .credit-calculator-check-list,
html[data-theme="dark"] .credit-calculator-steps,
body.dark-mode .credit-calculator-steps,
html[data-theme="dark"] .credit-tool-list,
body.dark-mode .credit-tool-list,
html[data-theme="dark"] .final-tool-list,
body.dark-mode .final-tool-list,
html[data-theme="dark"] .planning-tool-list,
body.dark-mode .planning-tool-list,
html[data-theme="dark"] .product-tool-list,
body.dark-mode .product-tool-list,
html[data-theme="dark"] .calculator-hub-card.is-disabled,
body.dark-mode .calculator-hub-card.is-disabled {
    background: #182435 !important;
    border-color: #2a3a54 !important;
}
/* B19 full-coverage: every calculator light content-block family (credit-tool/product-tool/planning/final/deposit/autocredit/hub) → dark */
html[data-theme="dark"] [class*="-tool-info"],   body.dark-mode [class*="-tool-info"],
html[data-theme="dark"] [class*="-tool-input-wrap"], body.dark-mode [class*="-tool-input-wrap"],
html[data-theme="dark"] [class*="-tool-faq"],    body.dark-mode [class*="-tool-faq"],
html[data-theme="dark"] [class*="-tool-list"],   body.dark-mode [class*="-tool-list"],
html[data-theme="dark"] [class*="-calculator-schedule"], body.dark-mode [class*="-calculator-schedule"],
html[data-theme="dark"] [class*="-calculator-input-wrap"], body.dark-mode [class*="-calculator-input-wrap"],
html[data-theme="dark"] [class*="-calculator-columns"], body.dark-mode [class*="-calculator-columns"],
html[data-theme="dark"] [class*="-calculator-panel"], body.dark-mode [class*="-calculator-panel"] {
    background: #182435 !important;
    border-color: #2a3a54 !important;
}
/* vzo task18: .calculator-hub-info убран из правила выше → наследует --theme-surface (#0f1722), как .calculator-hub-faq и карточки (консистентность) */
/* B19 tool-calc panels (form + result asides on refinance/tool/product/planning/final calcs) → dark + readable labels */
html[data-theme="dark"] [class*="-tool-panel"], body.dark-mode [class*="-tool-panel"],
html[data-theme="dark"] [class*="-tool-result"], body.dark-mode [class*="-tool-result"] {
    background: #182435 !important;
    border-color: #2a3a54 !important;
}
html[data-theme="dark"] [class*="-tool-panel"] label, body.dark-mode [class*="-tool-panel"] label,
html[data-theme="dark"] [class*="-tool-panel"] > span, body.dark-mode [class*="-tool-panel"] > span,
html[data-theme="dark"] [class*="-tool-result"] span, body.dark-mode [class*="-tool-result"] span {
    color: #d3dbe6 !important;
}
/* B19 schedule tables (payment-schedule on mortgage/deposit/autocredit/product tool calcs): light table-wrap + white th → dark */
html[data-theme="dark"] [class*="-tool-table-wrap"], body.dark-mode [class*="-tool-table-wrap"] {
    background: #182435 !important;
    border-color: #2a3a54 !important;
}
html[data-theme="dark"] [class*="-tool-table"] th, body.dark-mode [class*="-tool-table"] th {
    background: #101923 !important;
    color: #cbd5e1 !important;
    border-color: #2a3a54 !important;
}

/* DOCX 2026-07-09: shared dark readability guard for forms, search, popups, sorting and content tables. */
html[data-theme="dark"] :where(
    .content,
    .post-content,
    .term-content,
    .question-content,
    .review-content,
    .rating-content,
    .bank-content,
    .company-content,
    .methodology,
    .methodology-block,
    .editorial-policy,
    .recommended,
    .recommended-block,
    .modal-content,
    .modal-block-container,
    .modal-container,
    .modal-form,
    .modal-form__input,
    .form-control,
    .form-element-search,
    .searchBlock,
    .searchBlock input,
    .search-result-block,
    .sort .select-inputs,
    .sort .select-inputs-items,
    .sort .select-filters-headline,
    .reviews-sort .select-inputs,
    .reviews-sort .select-inputs-items,
    .table-scroll,
    .jsTableBlock,
    .jsTbScroll,
    .table-limit,
    .content table,
    .content table tr,
    .content table td,
    .content table th
),
body.dark-mode :where(
    .content,
    .post-content,
    .term-content,
    .question-content,
    .review-content,
    .rating-content,
    .bank-content,
    .company-content,
    .methodology,
    .methodology-block,
    .editorial-policy,
    .recommended,
    .recommended-block,
    .modal-content,
    .modal-block-container,
    .modal-container,
    .modal-form,
    .modal-form__input,
    .form-control,
    .form-element-search,
    .searchBlock,
    .searchBlock input,
    .search-result-block,
    .sort .select-inputs,
    .sort .select-inputs-items,
    .sort .select-filters-headline,
    .reviews-sort .select-inputs,
    .reviews-sort .select-inputs-items,
    .table-scroll,
    .jsTableBlock,
    .jsTbScroll,
    .table-limit,
    .content table,
    .content table tr,
    .content table td,
    .content table th
) {
    background-color: #101923 !important;
    border-color: #2a3a54 !important;
    color: #e8eef7 !important;
}

html[data-theme="dark"] :where(
    .content p,
    .content li,
    .content td,
    .content th,
    .post-content p,
    .post-content li,
    .term-content p,
    .term-content li,
    .question-content p,
    .question-content li,
    .modal-content p,
    .modal-content label,
    .modal-content span,
    .modal-form label,
    .table-scroll td,
    .table-scroll th,
    .sort .select-inputs-status,
    .sort .select-filters-header,
    .reviews-sort .select-inputs-status
),
body.dark-mode :where(
    .content p,
    .content li,
    .content td,
    .content th,
    .post-content p,
    .post-content li,
    .term-content p,
    .term-content li,
    .question-content p,
    .question-content li,
    .modal-content p,
    .modal-content label,
    .modal-content span,
    .modal-form label,
    .table-scroll td,
    .table-scroll th,
    .sort .select-inputs-status,
    .sort .select-filters-header,
    .reviews-sort .select-inputs-status
) {
    color: #d3dbe6 !important;
}

html[data-theme="dark"] :where(input, textarea, select, .modal-form__input, .form-control, .searchBlock input)::placeholder,
body.dark-mode :where(input, textarea, select, .modal-form__input, .form-control, .searchBlock input)::placeholder {
    color: #91a1b5 !important;
}

html[data-theme="dark"] :where(input, textarea, select, .modal-form__input, .form-control, .searchBlock input):focus,
body.dark-mode :where(input, textarea, select, .modal-form__input, .form-control, .searchBlock input):focus {
    background-color: #142033 !important;
    border-color: #6aa2ff !important;
    color: #f8fbff !important;
}

html[data-theme="dark"] :where(.content table th, .table-scroll th, .jsTableBlock th),
body.dark-mode :where(.content table th, .table-scroll th, .jsTableBlock th) {
    background-color: #172235 !important;
}

:where(.card-upd, .date-wrap .date-block) {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid #d8e0ec;
    border-radius: 8px;
    background: #f6f8fb;
    color: #536173 !important;
}

html[data-theme="dark"] :where(.card-upd, .date-wrap .date-block),
body.dark-mode :where(.card-upd, .date-wrap .date-block) {
    background: #101923 !important;
    border-color: #2a3a54 !important;
    color: #cbd5e1 !important;
}

/* Dark theme follow-up for template-wide QA defects: calculators, listing
   calculator promos, bank independence notices and legacy quiz/filter labels. */
html[data-theme="dark"] :where(.calculator-hub-page, .credit-calculator-page) {
    background-color: var(--theme-page) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(.calculator-hub-page .background, .credit-calculator-page .background) {
    background-color: var(--theme-page) !important;
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(
    .calculator-hub-nav,
    .calculator-hub-card,
    .credit-calculator-panel,
    .credit-calculator-result,
    .credit-calculator-info-block,
    .credit-calculator-method,
    .credit-calculator-input-wrap,
    .credit-calculator-link-card,
    .autocredit-calculator-link-card,
    .independence-strip
) {
    background-color: var(--theme-surface-2) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border-strong) !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(.calculator-hub-card, .credit-calculator-panel, .credit-calculator-result, .credit-calculator-info-block, .credit-calculator-method) {
    background-color: var(--theme-surface) !important;
}

html[data-theme="dark"] .independence-strip {
    --color-bg-muted: var(--theme-surface-2);
    --color-border-subtle: var(--theme-border-strong);
    --color-text-muted: #c4cfdd;
    --color-link: var(--theme-accent-hover);
}

html[data-theme="dark"] :where(
    .calculator-hub-page,
    .credit-calculator-page,
    .credit-calculator-link-card,
    .autocredit-calculator-link-card,
    .independence-strip
) :where(h1, h2, h3, h4, h5, h6, strong, b, .title) {
    color: var(--theme-text) !important;
}

html[data-theme="dark"] :where(
    .calculator-hub-lead p,
    .calculator-hub-card p,
    .calculator-hub-nav-title,
    .credit-calculator-page .lead p,
    .credit-calculator-info-block p,
    .credit-calculator-info-block li,
    .credit-calculator-method p,
    .credit-calculator-method li,
    .credit-calculator-link-card p,
    .autocredit-calculator-link-card p,
    .credit-calculator-form label,
    .credit-calculator-input-wrap span,
    .credit-calculator-result-title,
    .credit-calculator-result-note,
    .credit-calculator-result-row span,
    .independence-strip,
    .independence-strip__text,
    .independence-strip strong
) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.calculator-hub-nav-list a, .calculator-hub-nav-list a:visited) {
    background-color: var(--theme-surface-3) !important;
    color: var(--theme-accent-hover) !important;
    border-color: var(--theme-border-strong) !important;
}

html[data-theme="dark"] :where(.calculator-hub-nav-list a:hover, .calculator-hub-nav-list a:focus-visible) {
    background-color: #21324a !important;
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap) {
    background-color: var(--theme-input-bg) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-input-border) !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap input, .credit-calculator-input-wrap select, .credit-calculator-input-wrap textarea) {
    background-color: transparent !important;
    color: var(--theme-text) !important;
    border-color: transparent !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap input)::placeholder {
    color: var(--theme-text-soft) !important;
}

html[data-theme="dark"] :where(.credit-calculator-method code, .credit-calculator-method pre) {
    background-color: var(--theme-surface-3) !important;
    color: var(--theme-text) !important;
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] :where(.independence-strip__link, .independence-strip__link:visited) {
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] :where(
    .quiz .quiz-input-label,
    .amount-input-label,
    .select-title,
    .quiz .quiz-num-repeat,
    .quiz .quiz-num-repeat span,
    .amount-input-repeat,
    .quiz .amount-input-block-v2 .amount-input-repeat
) {
    color: #c4cfdd !important;
}

html[data-theme="dark"] :where(.k5m-modal-btn, .k5m-modal-btn:visited) {
    color: var(--theme-accent-hover) !important;
}

/* vzo-dark-input-readability-20260717: поля ввода в тёмной теме сливались с фоном карточек.
   Рамка рисуется inset-тенью, т.к. у части полей в базовых стилях border: 0 и
   border-color сам по себе ничего не даёт; тень не влияет на layout.
   background-color задан повторно с !important, чтобы перебить более ранние
   захардкоженные #101923-правила при равной специфичности (этот блок ниже по каскаду). */
html[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), select, textarea, .form-control, .input, .modal-form__input, .modal-search__input, .searchInp, .ya-site-form input[type="search"]) {
    background-color: var(--theme-input-bg) !important;
    box-shadow: inset 0 0 0 1px var(--theme-input-border) !important;
}

html[data-theme="dark"] :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]), select, textarea, .form-control, .input, .modal-form__input, .modal-search__input, .searchInp, .ya-site-form input[type="search"]):focus {
    border-color: var(--theme-focus) !important;
    box-shadow: inset 0 0 0 1px var(--theme-focus) !important;
}

/* Кастомные селекты (div-контролы) — та же отрисовка поля, что и у нативных инпутов */
html[data-theme="dark"] :where(.default-select, .select-inputs) {
    background-color: var(--theme-input-bg) !important;
    border-color: var(--theme-input-border) !important;
    box-shadow: inset 0 0 0 1px var(--theme-input-border) !important;
}

/* Калькуляторы: полем выступает .credit-calculator-input-wrap, внутренний инпут прозрачный —
   рамку рисуем на обёртке, с внутреннего инпута снимаем */
html[data-theme="dark"] .credit-calculator-input-wrap :where(input, select, textarea) {
    background-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap) {
    box-shadow: inset 0 0 0 1px var(--theme-input-border) !important;
}

html[data-theme="dark"] :where(.credit-calculator-input-wrap):focus-within {
    box-shadow: inset 0 0 0 1px var(--theme-focus) !important;
}

/* vzo-dark-filters-modal-20260717: модалка «Все фильтры» (расширенный поиск на листингах)
   оставалась белой в тёмной теме, при этом поля внутри уже перекрашивались тёмными
   токенами — тёмные поля и нечитаемый хром на белой панели. Красим панель и её хром. */
html[data-theme="dark"] .overlay-filters,
html[data-theme="dark"] body.dark-mode .overlay-filters {
    background: rgba(3, 8, 15, .72);
}

html[data-theme="dark"] .overlay-filters-inner,
html[data-theme="dark"] body.dark-mode .overlay-filters-inner {
    background: var(--theme-surface);
    color: var(--theme-text);
    border: 1px solid var(--theme-border-strong);
}

html[data-theme="dark"] .overlay-filters-title {
    color: var(--theme-text);
}

html[data-theme="dark"] .overlay-filters-reset {
    color: var(--theme-text-muted);
}

html[data-theme="dark"] .overlay-filters-close rect {
    fill: var(--theme-text-muted);
}

html[data-theme="dark"] .close-filters-box span:hover,
html[data-theme="dark"] .close-filters-box span:active {
    background: var(--theme-surface-3);
}

/* Чекбокс-фильтры («Имущество», «Недвижимость»…): в невыбранном состоянии галочка
   маскируется рамкой border: 10px solid #FFF — в тёмной теме это белый квадрат.
   Маскируем цветом фона выпадающего списка, рамку-квадрат рисуем токеном границы. */
html[data-theme="dark"] .select-inputs-items .filter-checkbox label:after {
    border-color: var(--theme-surface-2);
    outline-color: var(--theme-border-strong);
}

/* vzo-dark-review-filter-corners-20260718: фильтры отзывов (селект «Отзывы о продуктах
   банка» и сортировка «Сначала новые»). Обёртки .default-select/.select-inputs там
   прямоугольные и в светлой теме ничего не рисуют — поле рисует внутренний контрол
   (.select-filters-headline/.select-filters-header) со своим скруглением. Инсет-рамка и
   фон обёрток из блока «Кастомные селекты» выше давали квадратные углы поверх
   скруглённого контрола; для таких обёрток отрисовку снимаем. */
html[data-theme="dark"] :where(.default-select, .select-inputs):has(.select-filters-headline, .select-filters-header) {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* vzo-dark-vb-method-icons-20260718: иконки способов выплаты/погашения в модалке
   миникарточки (vb-method-icons) — монохромные чёрные SVG инвертируем, как в
   pay-icons-wrap. Подпись рисуется ::after внутри того же span, поэтому её
   инвертируем повторно (двойная инверсия возвращает исходный цвет текста). */
html[data-theme="dark"] .vb-method-icons > span {
    filter: invert(1);
}

html[data-theme="dark"] .vb-method-icons > span::after {
    filter: invert(1);
}

/* Цветные растровые логотипы (например, СБП .png) не трогаем */
html[data-theme="dark"] .vb-method-icons > span[style*=".png"],
html[data-theme="dark"] .vb-method-icons > span[style*=".png"]::after {
    filter: none;
}

/* vzo-dark-appeals-20260718: ЛК «Обращения» — карточка обращения, список обращений и чат
   захардкожены белым/#F7F7F7 в модулях 46-dashboard-open-appeals / 46-dashboard-appeals,
   в дарке текст наследовал светлый цвет темы и пропадал на белом фоне. */
html[data-theme="dark"] :where(.appeals-index-block, .appeal-dashboard-el) {
    background-color: var(--theme-surface);
    color: var(--theme-text);
    box-shadow: none;
}

html[data-theme="dark"] :where(.appeals-index-body, .appeals-chat-block, .appeal-dashboard-el .appeals-btn-wrap) {
    border-color: var(--theme-border);
}

html[data-theme="dark"] :where(.appeals-logo-el, .appeals-chat-body, .appeal-tag) {
    background: var(--theme-surface-2);
    color: var(--theme-text);
}

html[data-theme="dark"] :where(.appeals-chat-time, .appeal-dashboard-top-line-el) {
    color: var(--theme-text-muted);
}

/* Формы сообщений/комментариев (.form-1, модуль 33-comments-add-form): подложка #F7F7F7,
   поля внутри без рамок. Как и в калькуляторах — полем выступает обёртка: фон и рамку
   рисуем на .form-1, с внутренних инпутов снимаем фон и inset-кольцо глобального фикса. */
html[data-theme="dark"] :where(.form-1, .form-1-active) {
    background-color: var(--theme-input-bg) !important;
    border-color: var(--theme-input-border) !important;
    box-shadow: inset 0 0 0 1px var(--theme-input-border) !important;
}

html[data-theme="dark"] :where(.form-1, .form-1-active) :where(input, textarea) {
    background-color: transparent !important;
    box-shadow: none !important;
    border-color: var(--theme-border) !important;
}

html[data-theme="dark"] :where(.form-1, .form-1-active):focus-within {
    box-shadow: inset 0 0 0 1px var(--theme-focus) !important;
}

/* vzo-dark-form1-scope-20260718: блок «Формы сообщений/комментариев» выше (.form-1 как
   обёртка-поле) зацепил модалки отзывов/обращений (.modal-block: add-bank-review,
   add-company-review, add-appeal, add-franchise-review) и модуль review-form — там
   .form-1 это вся форма из нескольких полей: форма получала фон и кольцо инпута,
   а поля внутри становились прозрачными и сливались в одну панель. Возвращаем этим
   контекстам штатный вид полей (vzo-dark-input-readability-20260717), блок модуля
   33-comments-add-form не трогаем. */
html[data-theme="dark"] :where(.modal-block, .review-form) :where(.form-1, .form-1-active) {
    background-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] :where(.modal-block, .review-form) :where(.form-1, .form-1-active) :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="hidden"]), textarea) {
    background-color: var(--theme-input-bg) !important;
    box-shadow: inset 0 0 0 1px var(--theme-input-border) !important;
}

html[data-theme="dark"] :where(.modal-block, .review-form) :where(.form-1, .form-1-active) :where(input, textarea):focus {
    border-color: var(--theme-focus) !important;
    box-shadow: inset 0 0 0 1px var(--theme-focus) !important;
}


/* vzo-dark-rates-filterbtn-20260718: убрать фоновые полосы под .label в блоке credit-rates; нормальная кнопка расширенного фильтра в квизе */
html[data-theme="dark"] .credit-rates .label,
html[data-theme="dark"] body.dark-mode .credit-rates .label {
    background-color: transparent !important;
}

html[data-theme="dark"] .quiz-header .quiz-all-filters.quiz-all-filters-box,
html[data-theme="dark"] body.dark-mode .quiz-header .quiz-all-filters.quiz-all-filters-box {
    padding: 0;
    background: transparent;
    border-radius: 10px;
}

html[data-theme="dark"] .quiz-header .quiz-show-all-filters,
html[data-theme="dark"] body.dark-mode .quiz-header .quiz-show-all-filters {
    width: 100%;
    height: 100%;
    padding: 0 !important;
    justify-content: center;
}

html[data-theme="dark"] .quiz-header .quiz-all-filters svg,
html[data-theme="dark"] body.dark-mode .quiz-header .quiz-all-filters svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

html[data-theme="dark"] .quiz-all-filters svg path,
html[data-theme="dark"] body.dark-mode .quiz-all-filters svg path {
    stroke: #c4cfdd;
}

html[data-theme="dark"] .quiz-all-filters:hover svg path,
html[data-theme="dark"] body.dark-mode .quiz-all-filters:hover svg path {
    stroke: #eef4fb;
}

html[data-theme="dark"] .quiz-all-filters:hover .quiz-show-all-filters,
html[data-theme="dark"] body.dark-mode .quiz-all-filters:hover .quiz-show-all-filters {
    background-color: var(--theme-surface-3) !important;
}

html[data-theme="dark"] .quiz-filters-count,
html[data-theme="dark"] body.dark-mode .quiz-filters-count {
    background: var(--theme-accent);
    color: #ffffff;
}

/* vzo-dark-terms-search-20260718: поиск по каталогу (блок .search-block-terms на /banks
   и других hub-страницах). Полем выступает обёртка .search-block-container (радиус 10px,
   рамка в дарке из модуля lead/search); у внутреннего .search-block__input радиус 23px,
   и инсет-кольцо из блока «поля ввода» выше рисовало вторую рамку-пилюлю с несовпадающими
   углами внутри прямоугольной. Кольцо и фон с инпута снимаем — поле рисует обёртка;
   индикацию фокуса переносим на неё через :focus-within. */
html[data-theme="dark"] .search-block-terms :where(.search-block__input) {
    background-color: transparent !important;
    box-shadow: none !important;
}

html[data-theme="dark"] .search-block-terms :where(.search-block__input):focus {
    box-shadow: none !important;
}

html[data-theme="dark"] .search-block-terms :where(.search-block-container) {
    border-color: var(--theme-input-border) !important;
    background-color: var(--theme-input-bg) !important;
}

html[data-theme="dark"] .search-block-terms :where(.search-block-container):focus-within {
    border-color: var(--theme-focus) !important;
}

/* vzo-scroll-progress-20260718: тонкая полоса прогресса прокрутки в самом верху страницы
   (по образцу payclarus.com), в фирменном UX. Фиксированный бар над шапкой; заполнение
   тянется слева направо через scaleX — значение (0..1) прокидывается из JS в --vzo-sp
   (см. layouts/default.blade.php). Трек прозрачный: виден только заполненный участок.
   Работает в обеих темах — акцент и свечение берутся из токенов. */
.vzo-scroll-progress {
    --vzo-sp: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1000; /* над шапкой */
    pointer-events: none;
    background: transparent;
    contain: layout style;
}

.vzo-scroll-progress__bar {
    display: block;
    height: 100%;
    width: 100%;
    transform: scaleX(var(--vzo-sp));
    transform-origin: left center;
    background: linear-gradient(90deg, var(--theme-accent-hover, #0d4fd0), var(--theme-accent, #145ff4));
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px var(--vzo-sp-glow, rgba(20, 95, 244, .45));
    transition: transform .12s linear;
    will-change: transform;
}

html[data-theme="dark"] .vzo-scroll-progress {
    --vzo-sp-glow: rgba(110, 162, 255, .5);
}

@media (prefers-reduced-motion: reduce) {
    .vzo-scroll-progress__bar {
        transition: none;
    }
}

/* Search redesign: chip links + inline field icon (dark theme) */
html[data-theme="dark"] body.dark-mode .header :where(.search-link) {
    background-color: var(--theme-surface-3) !important;
    border: 1px solid var(--theme-border-strong) !important;
}

html[data-theme="dark"] body.dark-mode .header :where(.search-link:hover) {
    background-color: #21324a !important;
    border-color: var(--theme-accent-hover) !important;
    color: var(--theme-accent-hover) !important;
}

html[data-theme="dark"] body.dark-mode .header .search-block.with-links .search-input-icon svg path {
    stroke: var(--theme-text-muted) !important;
}

/* vzo-we-compare-video-20260718: видео перенесено внутрь блока «Мы сравниваем, вы экономите!»;
   плитки — сеткой 2×2 слева, видео — справа. Не тёмная тема — общая раскладка. */
.we-compare .we-compare-layout {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 28px;
    align-items: stretch;
}

.we-compare .we-compare-layout .we-compare-content {
    flex: 1 1 55%;
    min-width: 0;
}

.we-compare .we-compare-layout .we-compare-items-wrap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.we-compare .we-compare-layout .we-compare-video {
    flex: 1 1 45%;
    min-width: 0;
    display: flex;
}

.we-compare .we-compare-layout .we-compare-video .insert-promo-video {
    width: 100%;
    height: 100%;
    margin: 0;
}

.we-compare .we-compare-layout .we-compare-video .play-video-el {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.we-compare .we-compare-layout .we-compare-video .video-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

.we-compare .we-compare-layout .we-compare-video .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 64px;
    height: 64px;
    pointer-events: none;
}

@media (max-width: 900px) {
    .we-compare .we-compare-layout {
        flex-direction: column;
        gap: 20px;
    }

    .we-compare .we-compare-layout .we-compare-video .play-video-el {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 520px) {
    .we-compare .we-compare-layout .we-compare-items-wrap {
        grid-template-columns: 1fr;
    }
}

/* vzo-cta-gradient-20260718 — стильный градиент + иконка на кнопке «Перейти» карточек */
.card-minimal_block-btn .btn-go.btn-primary {
    --vzo-cta-from: #2f6bff;
    --vzo-cta-to: #7b5bff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    color: #fff;
    background-color: var(--vzo-cta-from);
    background-image: linear-gradient(135deg, var(--vzo-cta-from) 0%, var(--vzo-cta-to) 100%);
    box-shadow: 0 6px 16px -4px rgba(60, 95, 241, .45);
    transition: box-shadow .2s ease, transform .12s ease, filter .2s ease;
}

.card-minimal_block-btn .btn-go.btn-primary:hover {
    color: #fff;
    filter: saturate(1.08) brightness(1.05);
    box-shadow: 0 10px 22px -4px rgba(60, 95, 241, .55);
    transform: translateY(-1px);
}

.card-minimal_block-btn .btn-go.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px -4px rgba(60, 95, 241, .45);
}

.card-minimal_block-btn .btn-go .btn-go-icon {
    flex: 0 0 auto;
    transition: transform .18s ease;
}

.card-minimal_block-btn .btn-go:hover .btn-go-icon {
    transform: translateX(3px);
}

html[data-theme="dark"] .card-minimal_block-btn .btn-go.btn-primary {
    --vzo-cta-from: #4d83ff;
    --vzo-cta-to: #8f6bff;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 18px -4px rgba(110, 132, 255, .5);
}

html[data-theme="dark"] .card-minimal_block-btn .btn-go.btn-primary:hover {
    color: #fff;
    box-shadow: 0 10px 24px -4px rgba(110, 132, 255, .6);
}

@media (prefers-reduced-motion: reduce) {
    .card-minimal_block-btn .btn-go.btn-primary,
    .card-minimal_block-btn .btn-go .btn-go-icon {
        transition: none;
    }
}

/* vzo-we-compare-compact-20260718: убрать декоративную фоновую подложку и уменьшить высоту блока «Мы сравниваем» */
.we-compare .we-compare-bg {
    display: none;
}

.we-compare .we-compare-layout .we-compare-content .we-compare-description {
    font-size: 16px;
    line-height: 22px;
    margin-bottom: 10px;
}

.we-compare .we-compare-layout .we-compare-items-wrap {
    margin-top: 12px;
    gap: 12px;
}

.we-compare .we-compare-layout .we-compare-items-wrap .we-compare-item {
    padding: 12px 15px;
}

.we-compare .we-compare-layout .we-compare-content .we-compare-item-text {
    line-height: 19px;
}

/* vzo-loans-rating-header-20260718: аккуратная шапка таблиц «Рейтинг МФО»
   (.jsLightTable). Было: заголовки колонок — блёклый серый нормального
   начертания, стрелки сортировки крупные и «висят» в стороне. Стало:
   полужирные контрастные заголовки в обеих темах, компактные стрелки,
   прижатые к подписи; активная колонка подсвечивается синим (стрелки
   красятся через stroke на path, т.к. inline stroke="#919192" перебивает
   currentColor). Общая раскладка, не только тёмная тема. */
.jsLightTable table thead .main-td,
.jsLightTable table thead .main-td .sortingArrowsBlock {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .2px;
}

.jsLightTable table thead .main-td {
    color: var(--link-color);
}

html[data-theme="dark"] .jsLightTable table thead .main-td,
body.dark-mode .jsLightTable table thead .main-td {
    color: var(--theme-text);
}

.jsLightTable .sortingArrowsBlock {
    padding-right: 0;
}

.jsLightTable .sortingArrows {
    width: auto;
    height: auto;
    margin-left: 7px;
    gap: 3px;
    align-items: center;
}

.jsLightTable .sortingArrows .jsSortItem {
    width: 7px;
    height: 11px;
}

.jsLightTable .sortingArrows .jsSortItem path {
    stroke: #9aa7b8;
    transition: stroke .15s ease;
}

.jsLightTable .sortingArrows .jsSortItem:hover path,
.jsLightTable .sortingArrows .jsSortItem.activeSortItem path {
    stroke: var(--link-color-2);
}

/* vzo-dark-vb-feature-icons-20260719: иконки блока «Особенности» (.vb-features-grid)
   в расширенной модалке миникарточки card-more-block--vb. Иконки — монохромные
   чёрные SVG /v4/images/cards/icons/properties/*.svg, подгружаются через <img>, и в
   тёмной теме сливались с фоном (в отличие от .card .card-icon img, куда селектор
   темы не доставал). Инвертируем их в тот же светлый сине-серый тон. Логотип
   продукта — единственный другой <img> в модалке — не трогаем: селектор ограничен
   .vb-features-grid .vb-feature img. */
html[data-theme="dark"] body.dark-mode .card-more-block--vb .vb-features-grid .vb-feature img {
    filter: brightness(0) saturate(100%) invert(83%) sepia(10%) saturate(403%) hue-rotate(176deg) brightness(96%) contrast(91%);
}

/* vzo2 t11 (20260721): dark — контент-карточка qa сливалась в «полосу» на фоне страницы; убираем подложку */
body.dark-mode .qa .content-wrap,
body.dark-mode .qa .content { background: transparent; }

/* vzo2 t10 (20260721): картинки карт (dcards) с белой подложкой торчали белыми углами на dark — скругляем саму картинку */
.product_review-block img[src*="/images/dcards/"],
.rat-block-header img { border-radius: 10px; }

/* vzo2 t4 (20260721): dark — карточная подложка калькулятора займа выбивалась из фона; сливаем со страницей */
body.dark-mode .overpayment-calculator,
body.dark-mode .overpayment-calculator-wrap { background: transparent; }

/* vzo2 t11-fix2 (20260721): фон карточки qa задаётся через html[data-theme] с
   приоритетной темой — предыдущий override проигрывал; дожимаем !important. */
html[data-theme="dark"] .qa .content-wrap,
html[data-theme="dark"] .qa .content,
body.dark-mode .qa .content-wrap,
body.dark-mode .qa .content { background: transparent !important; }

/* vzo2 t13 (20260721): dark — убираем заливку CTA-блока сравнения («Готовы
   выбрать предложение?») в отзывах и на листингах. */
html[data-theme="dark"] .compare-block-background,
body.dark-mode .compare-block-background { background: transparent !important; }

/* vzo2 t13-fix2 (20260721): CTA «Готовы выбрать предложение?» = .journey-next-step;
   в dark убираем заливку блока (рамка остаётся). */
html[data-theme="dark"] .journey-next-step,
body.dark-mode .journey-next-step { background: transparent !important; }
/* Виджет-помощник «Поддержка ВЗО». Цвета — через токены темы с фолбэками,
   поэтому тёмная тема (html[data-theme="dark"]) подхватывается автоматически. */

.vzo-chat {
    font-family: inherit;
}

/* Плавающая кнопка (FAB) в правом нижнем углу, над кнопкой #toTop. */
.vzo-chat-fab {
    position: fixed;
    right: 20px;
    bottom: 18px;
    z-index: 12;
    width: 60px;
    height: 60px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--theme-accent, #145ff4);
    box-shadow: var(--theme-shadow, 0 12px 32px rgba(34, 39, 53, .18));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform .15s ease, background .15s ease;
}
.vzo-chat-fab:hover {
    background: var(--theme-accent-hover, #0d4fd0);
    transform: translateY(-2px);
}
.vzo-chat-fab:focus-visible {
    outline: 3px solid var(--theme-focus, #7aa7ff);
    outline-offset: 2px;
}
.vzo-chat-fab__icon {
    width: 34px;
    height: 34px;
    display: block;
}
.vzo-chat-fab__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--theme-danger, #d92d20);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    display: none;
}
.vzo-chat-fab__online {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #2fbf5b;
    border: 2.5px solid var(--theme-surface, #fff);
    box-shadow: 0 0 0 0 rgba(47, 191, 91, .55);
    animation: vzoOnlinePulse 2.4s ease-out infinite;
    pointer-events: none;
}
@keyframes vzoOnlinePulse {
    0% { box-shadow: 0 0 0 0 rgba(47, 191, 91, .5); }
    70% { box-shadow: 0 0 0 7px rgba(47, 191, 91, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 191, 91, 0); }
}
.vzo-chat-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-radius: 50%;
    background: #2fbf5b;
    vertical-align: middle;
}

/* Панель чата. */
.vzo-chat-panel {
    position: fixed;
    right: 20px;
    bottom: 80px;
    z-index: 1112; /* чуть выше модалок (1111) */
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 560px;
    max-height: calc(100vh - 120px);
    display: none;
    flex-direction: column;
    overflow: hidden;
    background: var(--theme-surface, #ffffff);
    border: 1px solid var(--theme-border, #dfe5ee);
    border-radius: 16px;
    box-shadow: var(--theme-shadow, 0 12px 32px rgba(34, 39, 53, .18));
}

.vzo-chat.is-open .vzo-chat-panel {
    display: flex;
}
.vzo-chat.is-open .vzo-chat-fab {
    display: none;
}

/* Шапка. */
.vzo-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--theme-surface-2, #f7f9fc);
    border-bottom: 1px solid var(--theme-border, #dfe5ee);
}
.vzo-chat-header__avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 8px;
    background: var(--theme-accent, #145ff4);
    display: flex;
    align-items: center;
    justify-content: center;
}
.vzo-chat-header__avatar svg {
    width: 24px;
    height: 24px;
}
.vzo-chat-header__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.vzo-chat-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--theme-text, #222735);
}
.vzo-chat-subtitle {
    font-size: 12px;
    color: var(--theme-text-muted, #616263);
}
.vzo-chat-close {
    margin-left: auto;
    width: 32px;
    height: 32px;
    border: 0;
    background: transparent;
    color: var(--theme-text-muted, #616263);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    border-radius: 8px;
}
.vzo-chat-close:hover {
    background: var(--theme-surface-3, #eef2f7);
    color: var(--theme-text, #222735);
}

/* Лента сообщений. */
.vzo-chat-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vzo-chat-msg {
    max-width: 84%;
    padding: 8px 12px;
    border-radius: 14px;
    line-height: 1.45;
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}
.vzo-chat-msg--user {
    align-self: flex-end;
    background: var(--theme-accent, #145ff4);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.vzo-chat-msg--bot {
    align-self: flex-start;
    background: var(--theme-surface-3, #eef2f7);
    color: var(--theme-text, #222735);
    border-bottom-left-radius: 4px;
}
.vzo-chat-msg a {
    color: var(--theme-accent, #145ff4);
    text-decoration: underline;
}
.vzo-chat-msg--user a {
    color: #fff;
}

/* Индикатор набора. */
.vzo-chat-typing {
    align-self: flex-start;
    display: none;
    gap: 4px;
    padding: 10px 12px;
}
.vzo-chat.is-loading .vzo-chat-typing {
    display: flex;
}
.vzo-chat-typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--theme-text-soft, #838485);
    animation: vzo-chat-bounce 1.2s infinite ease-in-out;
}
.vzo-chat-typing span:nth-child(2) { animation-delay: .15s; }
.vzo-chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes vzo-chat-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* Поле ввода. */
.vzo-chat-input {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid var(--theme-border, #dfe5ee);
    background: var(--theme-surface, #ffffff);
}
.vzo-chat-input textarea {
    flex: 1;
    resize: none;
    max-height: 120px;
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid var(--theme-input-border, #c9d2df);
    border-radius: 12px;
    background: var(--theme-input-bg, #ffffff);
    color: var(--theme-text, #222735);
    font: inherit;
    font-size: 14px;
    line-height: 1.4;
}
.vzo-chat-input textarea:focus {
    outline: none;
    border-color: var(--theme-accent, #145ff4);
}
.vzo-chat-input textarea::placeholder {
    color: var(--theme-text-soft, #838485);
}
.vzo-chat-send {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: var(--theme-accent, #145ff4);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease;
}
.vzo-chat-send:hover:not(:disabled) {
    background: var(--theme-accent-hover, #0d4fd0);
}
.vzo-chat-send:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.vzo-chat-send svg {
    width: 20px;
    height: 20px;
}

.vzo-chat-disclaimer {
    padding: 0 14px 10px;
    font-size: 11px;
    color: var(--theme-text-soft, #838485);
    text-align: center;
}

/* Мобилка: #toTop скрыт (<991px) — FAB опускается вниз, панель на весь экран. */
@media screen and (max-width: 991px) {
    .vzo-chat-fab {
        bottom: 20px;
    }
    .vzo-chat-panel {
        right: 0;
        left: 0;
        top: 0;
        bottom: 0;
        width: 100vw;
        height: 100%;
        max-width: none;
        max-height: none;
        border: 0;
        border-radius: 0;
    }
}

/* Тёмная тема: точечные доводки поверх токенов (на случай v4-страниц,
   где v5-токены могут не подключаться — тогда сработают эти правила). */
html[data-theme="dark"] .vzo-chat-msg--bot,
body.dark-mode .vzo-chat-msg--bot {
    background: var(--theme-surface-3, #1c2836);
    color: var(--theme-text, #eef4fb);
}
html[data-theme="dark"] .vzo-chat-panel,
body.dark-mode .vzo-chat-panel {
    background: var(--theme-surface, #0f1720);
    border-color: var(--theme-border, #24303f);
}
html[data-theme="dark"] .vzo-chat-input textarea,
body.dark-mode .vzo-chat-input textarea {
    background: var(--theme-input-bg, #16202c);
    border-color: var(--theme-input-border, #2b3a4c);
    color: var(--theme-text, #eef4fb);
}
