@font-face {
    font-family: "Site Sans";
    src: url("/fonts/site-sans.woff2") format("woff2");
    font-style: normal;
    font-weight: 250 1000;
    font-display: swap;
}

:root {
    --site-font: "Site Sans", Arial, "Helvetica Neue", sans-serif;
    --t-headline-font: var(--site-font);
    --ink: #11131c;
    --muted: #62677a;
    --line: #dce0eb;
    --accent: #4e42e5;
    color: var(--ink);
    background: #fff;
    font-family: var(--site-font);
    line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img, video, iframe { max-width: 100%; }
img { height: auto; }
svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.site-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.page-heading { padding-top: clamp(24px, 6vw, 68px); }
.page-heading h1 { margin: 0; line-height: 1.15; font-size: clamp(28px, 5vw, 48px); }
.site-button {
    display: inline-block;
    border: 0;
    border-radius: 9px;
    background: var(--accent);
    color: white;
    padding: 12px 22px;
    text-decoration: none;
    font-weight: 700;
}
.site-notice { margin: 0; padding: 12px 24px; background: #f2f1ff; text-align: center; }

@media (width > 1000px) {
    .vb-h3d a.vb-h3d__cta {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 45px;
        padding-inline: 24px;
        font-size: 14px;
    }
}
.vb-q1h button.vb-q1h__submit {
    min-height: 60px;
    border: 0;
    font-size: clamp(17px, 2vw, 22px);
}

.legacy-section { padding: clamp(24px, 5vw, 64px) 0; }
.legacy-section .site-wrap > div > div { max-width: 100%; }
.legacy-section [class*="legacy-title"], .legacy-section [class*="legacy-name"] { font-weight: 700; }
.legacy-section [class*="legacy-title"] { line-height: 1.18; }
.legacy-section [class*="legacy-col"] { min-width: 0; }
.legacy-section [class*="legacy-text"] { overflow-wrap: anywhere; }
.legacy-section [class*="legacy-animate"] { visibility: visible; opacity: 1; }
.legacy-section .legacy-slds__items-wrapper {
    display: flex;
    gap: 20px;
    width: auto !important;
    overflow: auto;
    scroll-snap-type: x proximity;
    transform: none !important;
}
.legacy-section .legacy-slds__item {
    display: flex;
    justify-content: center;
    flex: 0 0 clamp(150px, 27vw, 300px);
    margin: 0 !important;
    padding: 12px;
    scroll-snap-align: start;
}
.legacy-section [data-slide-index="0"], .legacy-section .legacy-slds__arrow_container { display: none; }
.legacy-section .legacy-bgimg { background-position: center; background-size: cover; }
.legacy-section .legacy-card__col { margin-block: 12px 24px; }
.legacy-section:has(.legacy-738), .legacy-section-405 { padding-block: 0; }
.legacy-738 .legacy-slds { visibility: visible !important; }
.legacy-738 .legacy-slds__main { position: relative; }
.legacy-738 .legacy-slds__items-wrapper { gap: 0; }
.legacy-738 .legacy-slds__items-wrapper > .legacy-slds__item {
    flex-basis: 100%;
    min-width: 0;
    padding: 0 44px;
}
.legacy-738 .legacy-slds__item > div { width: 100%; }
.legacy-738 .legacy-738__slds-wrapper {
    display: grid;
    grid-template-columns: repeat(var(--bank-columns, 4), minmax(0, 1fr));
    gap: 8px 20px;
}
.legacy-738:has(.legacy-738__item_6-in-row) { --bank-columns: 6; }
.legacy-738 .legacy-card__col { display: grid; place-items: center; min-height: 88px; margin: 0; }
.legacy-738 .legacy-738__img { max-width: 100% !important; max-height: 56px; object-fit: contain; }
.legacy-738 .legacy-slds__arrow_container:not([hidden]) {
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    position: absolute;
    z-index: 1;
    inset: 0;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}
.legacy-738 .legacy-slds__arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: white;
    color: var(--ink);
    pointer-events: auto;
}
.legacy-738 .legacy-slds__arrow:disabled { opacity: .35; cursor: default; }
.legacy-section .legacy-405 > .legacy-container {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 18px;
}
.legacy-405__link { display: block; text-decoration: none; }
.legacy-405__link:hover .legacy-405__title { text-decoration: underline; }
.legacy-405__img { height: 100%; border-radius: 10px; }
.legacy-405__textwrapper { padding-top: 12px; }
.legacy-405__tag { color: var(--muted); font-size: .85rem; }
.legacy-405__title { margin-top: 5px; line-height: 1.2; overflow-wrap: anywhere; }
.legacy-405__buttonwrapper { display: none; margin-top: 24px; text-align: center; }
.legacy-405__buttonwrapper[data-ready] { display: block; }
.site-reviews { max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

@media (max-width: 1000px) {
    .legacy-section .legacy-405 > .legacy-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .legacy-738:has(.legacy-738__item_6-in-row) { --bank-columns: 3; }
}
@media (max-width: 600px) {
    .legacy-section .legacy-405 > .legacy-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .legacy-738 .legacy-738__slds-wrapper { --bank-columns: 2; }
    .legacy-738 .legacy-card__col { min-height: 62px; }
    .legacy-738 .legacy-738__img { max-height: 40px; }
}
.legacy-section .legacy-quiz__container { overflow-x: auto; }

.news-list { padding: 34px 0 72px; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 32px 24px;
    margin: 24px 0 32px;
}
.news-card a { text-decoration: none; }
.news-card a:hover h2, .news-card a:hover h3 { text-decoration: underline; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.news-card h2, .news-card h3 { font-size: 20px; line-height: 1.25; margin: 10px 0; }
.news-card time, .news-article time { color: var(--muted); font-size: .9rem; }
.news-card p { margin: .5em 0 0; color: var(--muted); }
.news-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.news-pagination a { font-weight: 700; color: var(--accent); }
.news-article { max-width: 820px; padding: 46px 24px 80px; margin-inline: auto; }
.news-article nav { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.news-article h1 { font-size: clamp(30px, 6vw, 52px); line-height: 1.1; margin: 0 0 16px; }
.news-article h2 { font-size: clamp(22px, 4vw, 31px); line-height: 1.2; margin: 1.6em 0 .55em; }
.news-cover { display: block; width: 100%; margin: 24px 0; border-radius: 14px; }
.news-paragraph { margin: 1em 0; font-size: 1.075rem; }

.request-dialog {
    width: min(calc(100% - 32px), 490px);
    max-height: calc(100vh - 32px);
    padding: 32px;
    border: 0;
    border-radius: 16px;
    color: var(--ink);
}
.request-dialog::backdrop { background: #11131caa; }
.request-dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    padding: 8px;
}
.request-dialog h2 { margin: 0; padding-right: 22px; }
.request-dialog p { margin: 8px 0 20px; }
.request-dialog form { display: grid; gap: 14px; }
.request-dialog label:not(.request-consent) { display: grid; gap: 5px; }
.request-dialog input:not([type="checkbox"]), .request-dialog select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    color: inherit;
    background: white;
}
.request-consent {
    display: flex;
    align-items: start;
    gap: 8px;
    font-size: 13px;
    grid-column: 1 / -1;
}
.request-consent input { width: 16px; height: 16px; flex: 0 0 auto; }
.request-consent a { text-decoration: underline; }
:where([data-lead-form]) button[type="submit"] { min-height: 44px; }
.request-status {
    margin: 4px 0 0 !important;
    padding: 10px 12px;
    background: #eefff3;
    color: #19442b;
    border-radius: 7px;
    grid-column: 1 / -1;
}
.request-status[data-error] { color: #801424; background: #ffeef1; }
.cookie-notice {
    position: fixed;
    inset: auto 16px 16px;
    z-index: 1000;
    width: fit-content;
    max-width: calc(100% - 32px);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px 14px;
    background: #fff;
    box-shadow: 0 4px 18px #11131c15;
}
.cookie-notice p { margin: 0; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-notice button { border: 0; border-radius: 6px; background: #efeff9; padding: 6px 12px; }
@media (max-width: 680px) {
    .cookie-notice { align-items: start; flex-direction: column; }
}

/* Tilda-compatible buttons (t-btnflex), used by the Vibe blocks, header and footer */
.t-btnflex,.t-btn.t-btnflex,.t-submit.t-btnflex{display:inline-flex;align-items:center;justify-content:center;gap:1ch;max-width:100%;height:unset;padding:0;overflow:hidden;font-family:var(--site-font);font-weight:600;line-height:var(--line-height,1.4);padding-top:calc(((var(--height,0px) - 1em * var(--line-height,1.4)) / 2) - var(--border-width,0px));padding-bottom:calc(((var(--height,0px) - 1em * var(--line-height,1.4)) / 2) - var(--border-width,0px));box-sizing:border-box;border-style:solid;border-color:transparent;border-width:var(--border-width,0);background-image:none;cursor:pointer;user-select:none;text-decoration:none;color:inherit;border-radius:0;background-color:transparent;white-space:nowrap}
.t-btnflex__text{max-width:100%;overflow:hidden;text-align:center;white-space:inherit;text-overflow:ellipsis}
.t-btnflex_xs,.t-btn.t-btnflex_xs,.t-submit.t-btnflex_xs{--height:35px;font-size:13px;padding-left:15px;padding-right:15px}
.t-btnflex_sm,.t-btn.t-btnflex_sm,.t-submit.t-btnflex_sm{--height:45px;font-size:14px;padding-left:30px;padding-right:30px}
.t-btnflex_smd,.t-btn.t-btnflex_smd,.t-submit.t-btnflex_smd{--height:50px;font-size:15px;padding-left:44px;padding-right:44px}
.t-btnflex_md,.t-btn.t-btnflex_md,.t-submit.t-btnflex_md{--height:60px;font-size:16px;padding-left:60px;padding-right:60px}
.t-btnflex_lg,.t-btn.t-btnflex_lg,.t-submit.t-btnflex_lg{--height:60px;font-size:22px;padding-left:70px;padding-right:70px}
.t-btnflex_xl,.t-btn.t-btnflex_xl,.t-submit.t-btnflex_xl{--height:80px;font-size:26px;padding-left:80px;padding-right:80px}
.t-btnflex_xxl,.t-btn.t-btnflex_xxl,.t-submit.t-btnflex_xxl{--height:100px;font-size:30px;padding-left:90px;padding-right:90px}
@media screen and (max-width:1200px){.t-btnflex_sm,.t-btn.t-btnflex_sm,.t-submit.t-btnflex_sm{padding-left:25px;padding-right:25px}.t-btnflex_smd,.t-btn.t-btnflex_smd,.t-submit.t-btnflex_smd{padding-left:30px;padding-right:30px}.t-btnflex_md,.t-btn.t-btnflex_md,.t-submit.t-btnflex_md{padding-left:45px;padding-right:45px}.t-btnflex_lg,.t-btn.t-btnflex_lg,.t-submit.t-btnflex_lg{padding-left:55px;padding-right:55px}.t-btnflex_xl,.t-btn.t-btnflex_xl,.t-submit.t-btnflex_xl{padding-left:65px;padding-right:65px}.t-btnflex_xxl,.t-btn.t-btnflex_xxl,.t-submit.t-btnflex_xxl{padding-left:75px;padding-right:75px}}
@media screen and (max-width:640px){.t-btnflex,.t-btn.t-btnflex,.t-submit.t-btnflex{white-space:normal}.t-btnflex_sm,.t-btn.t-btnflex_sm,.t-submit.t-btnflex_sm{padding-left:20px;padding-right:20px}.t-btnflex_smd,.t-btn.t-btnflex_smd,.t-submit.t-btnflex_smd{padding-left:25px;padding-right:25px}.t-btnflex_md,.t-btn.t-btnflex_md,.t-submit.t-btnflex_md{padding-left:30px;padding-right:30px}.t-btnflex_lg,.t-btn.t-btnflex_lg,.t-submit.t-btnflex_lg{font-size:18px;padding-left:40px;padding-right:40px}.t-btnflex_xl,.t-btn.t-btnflex_xl,.t-submit.t-btnflex_xl{font-size:22px;padding-left:50px;padding-right:50px}.t-btnflex_xxl,.t-btn.t-btnflex_xxl,.t-submit.t-btnflex_xxl{font-size:26px;padding-left:60px;padding-right:60px}}
@media screen and (max-width:480px){.t-btnflex_xs,.t-btn.t-btnflex_xs,.t-submit.t-btnflex_xs{--height:40px}.t-btnflex_sm,.t-btn.t-btnflex_sm,.t-submit.t-btnflex_sm{--height:50px}}

/* News preview on the home page: 4 compact cards, swipeable on mobile */
.news-grid--strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.news-grid--strip .news-card { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 150px; padding: 20px; border: 1px solid #e3e5ee; border-radius: 18px; background: #f4f5f8; transition: transform .3s cubic-bezier(.22, 1, .36, 1), border-color .2s, background-color .2s; }
.news-grid--strip .news-card:hover { transform: translateY(-3px); border-color: #2aa6ff; background: #e8f5ff; }
.news-grid--strip .news-card h3 { margin: 0; font-size: 17px; line-height: 1.3; }
.news-grid--strip .news-card time { font-size: 13px; }
@media (max-width: 900px) { .news-grid--strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .news-grid--strip { display: flex; gap: 12px; margin-inline: -24px; padding: 0 24px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
    .news-grid--strip::-webkit-scrollbar { display: none; }
    .news-grid--strip .news-card { flex: 0 0 78%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .news-grid--strip .news-card { transition: none; } }

.news-list--home { padding-top: clamp(40px, 6vw, 72px); }
.news-list--home .site-wrap { max-width: 1240px; padding-inline: 20px; }
.news-list--home h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin: 0; }
@media (max-width: 640px) {
    .news-list--home .site-wrap { padding-inline: 16px; }
    .news-list--home .news-grid--strip { margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
}

/* Новости: абзацы теперь обычные <p> (редактируются в админке без потерь) */
.news-article p { margin: 1em 0; font-size: 1.075rem; }
