:root{
    --navy:#1b2a4a;
    --navy-soft:#2c3e64;
    --accent:#2f6fed;
    --accent-dark:#1f56c7;
    --accent-soft:#eef2ff;
    --bg:#f6f8fc;
    --surface:#FFFFFF;
    --card:#ffffff;
    --text:#1b2233;
    --muted:#6b7690;
    --line:#e3e8f2;
    --ink:#12141c;
    --ink-soft:#4a5674;
    --white:#fff;
    --radius:14px;
    --star:#f2a33c;
    --up:#1a9c62;
    --down:#d94a4a;
    --r:14px;
    --shadow:0 2px 10px rgba(27,42,74,.06);
    --shadow-lg:0 10px 30px rgba(27,42,74,.10);
}
* {
    box-sizing:border-box;
    margin: 0;
    padding: 0;
}
html,body{margin:0;padding:0;-webkit-text-size-adjust:100%}
body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    background:var(--bg);color:var(--text);line-height:1.5;
    -webkit-font-smoothing:antialiased;
}
a{color:var(--accent);text-decoration:none}
a:hover{color:var(--accent-dark)}
img{max-width:100%;display:block}
.wrap{max-width:1280px;margin:0 auto;padding:0 20px}

/* ---------- Кнопки ---------- */
.btn{
    display:inline-flex;align-items:center;justify-content:center;gap:8px;
    padding:10px 18px;border-radius:10px;font-size:15px;font-weight:600;
    border:1px solid transparent;cursor:pointer;transition:.18s ease;white-space:nowrap;
}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-dark);color:#fff}
.btn-ghost{background:transparent;color:var(--navy);border-color:var(--line)}
.btn-ghost:hover{border-color:var(--accent);color:var(--accent)}
.btn-light{background:#fff;color:var(--navy);border-color:var(--line)}
.btn-light:hover{border-color:var(--accent);color:var(--accent)}

/* ---------- Хедер ---------- */
.header{
    background:#fff;border-bottom:1px solid var(--line);
    position:sticky;top:0;z-index:50;
}
.header-inner{
    display:flex;align-items:center;gap:28px;height:72px;
}
.logo{
    display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;
    color:var(--navy);letter-spacing:-.3px;flex:0 0 auto;
}
.logo:hover{color:var(--navy)}
.logo-mark{
    width:34px;height:34px;border-radius:9px;flex:0 0 auto;
    background:linear-gradient(135deg,var(--accent),#6da2ff);
    color:#fff;display:grid;place-items:center;font-size:15px;font-weight:800;
}
.logo small{display:block;font-size:11px;font-weight:500;color:var(--muted);letter-spacing:.2px}

.city{
    display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;
    color:var(--muted);padding:7px 12px;border:1px solid var(--line);border-radius:999px;
    white-space:nowrap;transition:color .15s,border-color .15s;
    background: none;
    cursor: pointer;
}
.city:hover{color:var(--text);border-color:#cfd5e0}
.city svg{flex:none}

.nav{display:flex;align-items:center;gap:4px;flex:1}
.nav a{
    padding:8px 12px;border-radius:8px;font-size:15px;font-weight:500;
    color:var(--navy-soft);
}
.nav a:hover{background:#eef3fe;color:var(--accent)}

/* Зона авторизации */
.auth{display:flex;align-items:center;gap:10px;flex:0 0 auto}

/* Гость */
.auth-guest{
    display:flex;
    align-items:center;gap:10px
}
/* Авторизованный */
.auth-user{
    display:flex;
    align-items:center;
    gap:8px;
    position:relative
}

body.is-auth .auth-guest{display:none}
body.is-auth .auth-user{display:flex}

.user-link{
    display:flex;align-items:center;gap:10px;padding:5px 10px 5px 5px;
    border-radius:999px;border:1px solid transparent;color:var(--navy);
}
.user-link:hover{background:#eef3fe;color:var(--navy)}
.avatar{
    width:34px;height:34px;border-radius:50%;flex:0 0 auto;
    background:#dbe6fd;color:var(--accent-dark);
    display:grid;place-items:center;font-weight:700;font-size:13px;
    overflow:hidden;
}
.avatar img {
    width: 20px;
    height: 20px;
}
.user-name{
    font-size:15px;
    font-weight:600;
    /*max-width:150px;*/
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
}
.logout-btn{
    display:inline-flex;align-items:center;gap:6px;
    padding:9px 14px;border-radius:10px;border:1px solid var(--line);
    background:#fff;color:var(--muted);font-size:14px;font-weight:600;cursor:pointer;
    transition:.18s ease;font-family:inherit;
}
.logout-btn:hover{border-color:#f2b8b8;color:#c62828;background:#fff6f6}

/* Бургер */
.burger{
    display:none;width:42px;height:42px;border-radius:10px;border:1px solid var(--line);
    background:#fff;cursor:pointer;margin-left:auto;align-items:center;justify-content:center;
}
.burger span{display:block;width:18px;height:2px;background:var(--navy);position:relative}
.burger span::before,.burger span::after{
    content:"";position:absolute;left:0;width:18px;height:2px;background:var(--navy);
}
.burger span::before{top:-6px}
.burger span::after{top:6px}


/* ---------- Секции ---------- */
section {padding:40px 0;}
.section-head{
    display:flex;align-items:baseline;justify-content:space-between;
    gap:16px;margin-bottom:24px;flex-wrap:wrap;
}
.section-head h2{
    margin:0;font-size:26px;letter-spacing:-.5px;font-weight:800;color:var(--navy);
}
.section-head .more{font-size:15px;font-weight:600}
.segment {
    display: grid; grid-template-columns: minmax(0,3fr) minmax(240px,1fr);
    gap: 20px;
}
.segment-main {}
.segment-side {}
.segment-side .banner-right {margin-bottom: 24px}
.empty-head {padding-top: 64px;}

.board{
    display:grid;
    grid-template-columns:minmax(0,3fr) minmax(240px,1fr);
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--radius);
    overflow:hidden;
    box-shadow:0 10px 30px rgba(18,20,28,.06);
}
.board-main{padding:22px 24px 26px;min-width:0;}
.board-side{
    padding:22px 18px 24px;
    min-width:0;
    background:#fbfcff;
    border-left:1px solid var(--line);
}
.board-side .banner-right {
    margin-bottom: 40px;
}
.col-head{
    display:flex;
    align-items:baseline;
    justify-content:space-between;
    gap:10px;
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px solid var(--line);
}
.col-title{
    margin:0;
    font-size:17px;
    font-weight:700;
    letter-spacing:-.01em;
}
.col-hint{font-size:12.5px;color:var(--muted);white-space:nowrap;}
.page {
    padding-top: 24px;
}

/* ---------- Крошки + заголовок ---------- */
.top-title {
    padding: 12px 0;
}
.top-title .title{
    margin:0 0 8px;
    font-size:30px;
    line-height:1.2;
    font-weight:700;
    letter-spacing:-.02em;
}
.top-title .subtitle{
    margin:0;
    font-size:15px;
    color:var(--muted);
    max-width:760px;
}
.head{margin:0;}
.breadcrumb{
    font-size:13px;
    color:var(--muted);
    margin-bottom:10px;
}
.breadcrumb a{color:var(--muted);text-decoration:none;}
.breadcrumb a:hover{color:var(--accent);}
.breadcrumb span{margin:0 6px;opacity:.5;}

/* ---------- Баннер центральный ---------- */
.banner-main {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #fff;
    padding: 24px 0;
}

/* Направления */
.cats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cat{
    background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
    padding:20px;box-shadow:var(--shadow);transition:.18s ease;color:var(--text);
}
.cat:hover{border-color:#c8d8fb;box-shadow:var(--shadow-lg);transform:translateY(-2px);color:var(--text)}
.cat-icon{
    width:40px;height:40px;border-radius:10px;background:#eef3fe;color:var(--accent);
    display:grid;place-items:center;font-size:18px;margin-bottom:12px;
}
.cat b{display:block;font-size:16px;color:var(--navy);margin-bottom:3px}
.cat span{font-size:13px;color:var(--muted)}

/* CTA */
.main-cta .cta{
    background:linear-gradient(135deg,#1b2a4a,#2c4a86);border-radius:20px;
    padding:40px;display:flex;align-items:center;justify-content:space-between;
    gap:28px;color:#fff;flex-wrap:wrap;
}
.main-cta .cta h2{margin:0 0 8px;font-size:24px;letter-spacing:-.4px;font-weight:800}
.main-cta .cta p{margin:0;color:#c3cfe8;font-size:15px;max-width:560px}

/* ---------- ABOUT ACCORDION ---------- */
.about-block{
    background:var(--surface);
    border:1px solid var(--line);
    border-radius:var(--radius);
    padding:8px 26px;
    margin: 52px 0 24px 0;
}
.about-block details{border-bottom:1px solid var(--line)}
.about-block details:last-child{border-bottom:none}
.about-block summary{
    list-style:none;cursor:pointer;padding:20px 0;font-size:17px;font-weight:600;
    color:var(--navy);display:flex;align-items:center;gap:12px;
}
.about-block summary::-webkit-details-marker{display:none}
.about-block summary::after{
    content:"";margin-left:auto;width:9px;height:9px;flex:none;
    border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
    transform:rotate(45deg);transition:transform .2s;margin-top:-4px;
}
.about-block details[open] summary::after{transform:rotate(-135deg);margin-top:2px}
.about-block .about-text{padding:0 0 22px;color:var(--muted);font-size:15px;line-height:1.65;max-width:900px}
.about-block .about-text p+p{margin-top:12px}

.trust{
    display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:20px;
    padding:22px 26px;background:#F1F5FC;border-radius:var(--radius);
}
.trust .v{font-size:24px;font-weight:700;color:var(--navy);letter-spacing:-.02em}
.trust .k{font-size:13.5px;color:var(--muted)}

/* Футер */
.footer{background:#fff;border-top:1px solid var(--line);padding:44px 0 28px;margin-top:52px}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px}
.footer h4{
    margin:0 0 14px;font-size:14px;text-transform:uppercase;letter-spacing:.6px;color:var(--navy);
}
.footer ul{list-style:none;margin:0;padding:0}
.footer li{margin-bottom:6px}
.footer a{color:var(--muted);font-size:14px}
.footer a:hover{color:var(--accent)}
.footer-about p{color:var(--muted);font-size:14px;margin:12px 0 0;max-width:280px}
.footer-bottom{
    border-top:1px solid var(--line);margin-top:32px;padding-top:20px;
    display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
    font-size:13px;color:var(--muted);
}
.footer .social {
    padding-top: 8px;
}
.footer .social a {
    width: 28px;
    height: 28px;
    float: left;
    margin-right: 16px;
    text-decoration: none;
}
.footer .social a.vk {
    background: url('../images/icons/VK_black.svg') no-repeat;
}
.footer .social a.vk:hover {
    background: url('../images/icons/VK.svg') no-repeat;
}
.footer .social a.tm {
    background: url('../images/icons/Telegram_black.svg') no-repeat;
}
.footer .social a.tm:hover {
    background: url('../images/icons/Telegram.svg') no-repeat;
}
.footer .social a.dz {
    background: url('../images/icons/Zen_black.svg') no-repeat;
}
.footer .social a.dz:hover {
    background: url('../images/icons/Zen.svg') no-repeat;
}

/* ---------- REGION MODAL ---------- */
.modal{
    position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;
    padding:24px;opacity:0;visibility:hidden;transition:opacity .2s,visibility .2s;
}
.modal.open{opacity:1;visibility:visible}
.modal-backdrop{position:absolute;inset:0;background:rgba(15,25,45,.45);backdrop-filter:blur(2px)}
.modal-card{
    position:relative;z-index:1;width:100%;max-width:760px;max-height:min(84vh,720px);
    background:#fff;border-radius:18px;box-shadow:0 24px 64px rgba(15,25,45,.28);
    display:flex;flex-direction:column;overflow:hidden;
    transform:translateY(14px) scale(.985);transition:transform .22s cubic-bezier(.4,0,.2,1);
}
.modal.open .modal-card{transform:translateY(0) scale(1)}
.modal-head{
    display:flex;align-items:center;gap:16px;padding:22px 24px 16px;border-bottom:1px solid var(--line);
}
.modal-head h2{font-size:20px;font-weight:700;letter-spacing:-.02em;color:var(--navy)}
.modal-x{
    margin-left:auto;width:36px;height:36px;border-radius:10px;border:1px solid var(--line);
    display:grid;place-items:center;font-size:20px;line-height:1;color:var(--muted);
}
.modal-x:hover{color:var(--text);border-color:#c3cbd8}

.modal-search{
    display:flex;align-items:center;gap:10px;margin:16px 24px 4px;height:46px;
    border:1.5px solid var(--line);border-radius:11px;padding:0 14px;background:#FAFBFD;
}
.modal-search:focus-within{border-color:var(--accent);background:#fff;box-shadow:0 0 0 3px rgba(37,99,235,.12)}
.modal-search svg{flex:none;color:#9AA3B2}
.modal-search input{
    flex:1;border:none;outline:none;background:none;font-size:15px;min-width:0;
    padding: 12px 0;
}
.modal-body{padding:18px 24px 24px;overflow-y:auto;flex:1;overscroll-behavior:contain}
.region-group+.region-group{margin-top:22px}
.region-group-title{
    font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
    color:#8598B8;margin-bottom:10px;
}
.region-list{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:6px}
.region-item{
    width:100%;display:flex;align-items:center;gap:10px;text-align:left;
    padding:11px 14px;border-radius:10px;border:1px solid transparent;
    font-size:15px;font-weight:500;color:#374151;transition:background .13s,border-color .13s;
}
.region-item:hover{background:#F4F6FA}
.region-item .region-count{margin-left:auto;font-size:12.5px;color:var(--muted);font-weight:400}
.region-item .region-check{display:none;color:var(--accent);flex:none}
.region-item.is-active{background:#EDF2FE;border-color:#C7D8FB;color:var(--navy);font-weight:600}
.region-item.is-active .region-check{display:block}
.region-item.is-active .region-count{color:var(--accent)}
.region-empty{
    display:none;padding:28px 0;text-align:center;font-size:15px;color:var(--muted);
}
.region-empty.show{display:block}
.modal-foot{
    padding:14px 24px;border-top:1px solid var(--line);background:#FAFBFD;
    font-size:13.5px;color:var(--muted);display:flex;gap:8px;align-items:center;flex-wrap:wrap;
}

.section-top{
    position:relative;overflow:hidden;
    background:
            radial-gradient(900px 420px at 85% -10%, #e4ecfd 0%, rgba(255,255,255,0) 70%),
            #fff;
    border-bottom:1px solid var(--line);
    padding: 24px 0 48px;
}
.section-top__in{}
.section-top h1{
    margin:0 0 14px;font-size:clamp(28px,4vw,44px);line-height:1.1;
    letter-spacing:-.03em;font-weight:800;
}
.section-top h1 em{font-style:normal;background:linear-gradient(95deg,#1d4ed8,#60a5fa);-webkit-background-clip:text;background-clip:text;color:transparent}
.section-top  p{margin:0;color:var(--ink-2);font-size:17px;}

/* Сообщение об использовании файлов куки */
.cookieAgree {
    position: fixed;
    bottom: var(--gdpr-bottom, 1rem);
    width: 90%;
    left: 5%;
    right: 5%;
    /*left: var(--gdpr-left, calc(50% - 565px));
    width: var(--gdpr-left, 1130px);*/
    z-index: var(--gdpr-z-index, 10001);
    background: var(--gdpr-bg, rgba(255, 255, 255, 0.90));
    padding: var(--gdpr-padding, .35rem);
    border-radius: var(--gdpr-border-radius, .375rem);
    box-shadow: 0 0.5rem 1rem
    16px
    rgba(0, 0, 0, 0.15);
    font-size: .813rem;
}
.cookieAgree .cookieAgree__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.cookieAgree .cookieAgree__wrapper .cookieAgree__text {

}
.cookieAgree .cookieAgree__wrapper .cookieAgree__text a {
    color: black;
    text-decoration: underline;
}
.cookieAgree .cookieAgree__wrapper .cookieAgree__btns {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
}
.cookieAgree .cookieAgree__wrapper .cookieAgree__btns .cookieAgree__btn {
    background-color: var(--gdpr-btn-bg, #f6e800);
    color: black;
    outline: none;
    border: var(--gdpr-btn-border, 1px solid #f6e800);
    border-radius: var(--gdpr-btn-border-radius, .375rem);
    padding: var(--gdpr-btn-padding, 0 .3rem);
    transition: .3s;
}
.cookieAgree .cookieAgree__wrapper .cookieAgree__btns .cookieAgree__btn:hover {
    cursor: pointer;
    background-color: black;
    color: #f6e800;
}

/* ---------- COMPARE BAR ---------- */
.compare-bar{
    position:fixed;left:50%;bottom:20px;transform:translate(-50%,140%);
    background:var(--navy);color:#fff;border-radius:14px;padding:12px 14px 12px 22px;
    display:flex;align-items:center;gap:18px;box-shadow:0 12px 32px rgba(15,43,91,.35);
    transition:transform .28s cubic-bezier(.4,0,.2,1);z-index:60;font-size:14.5px;
}
.compare-bar.show{transform:translate(-50%,0)}
.compare-bar .btn{background:#fff;color:var(--navy);padding:9px 18px;font-size:14px}
.compare-bar .close{color:#9FB0CA;font-size:20px;line-height:1;padding:0 4px}
.compare-bar .close:hover{color:#fff}




/* Основная страница */
/*.page{
    background:var(--bg);
    padding:20px 0 56px;
    color:var(--ink);
    font-family:inherit;
    -webkit-font-smoothing:antialiased;
}*/