/* мега-меню (megamenu.py) */
.dz-mm{display:flex;align-items:center;gap:4px}
.dz-mm-item{position:relative}
.dz-mm-top,.dz-mm-link{display:inline-flex;align-items:center;gap:5px;padding:9px 11px;border:0;background:none;border-radius:10px;font:inherit;font-size:15px;font-weight:500;color:#10204a;cursor:pointer;text-decoration:none;white-space:nowrap}
.dz-mm-top svg,.dz-mm-link svg{width:16px;height:16px;flex:0 0 16px}
.dz-mm-top svg{transition:transform .2s;opacity:.6}
.dz-mm-link svg{color:#f5a400}
.dz-mm-top:hover,.dz-mm-link:hover,.dz-mm-item:hover>.dz-mm-top,.dz-mm-item.is-open>.dz-mm-top{background:#eef4ff;color:#0b6cf5}
.dz-mm-item:hover>.dz-mm-top svg,.dz-mm-item.is-open>.dz-mm-top svg{transform:rotate(180deg)}
.dz-mm .is-active,.dz-mm-item.is-active>.dz-mm-top{color:#0b6cf5}
.dz-mm-panel{display:none;position:absolute;top:100%;left:50%;transform:translateX(-38%);padding-top:12px;z-index:200;width:min(760px,92vw)}
.dz-mm-item:hover>.dz-mm-panel,.dz-mm-item.is-open>.dz-mm-panel{display:block;animation:dzmm .16s ease}
@keyframes dzmm{from{opacity:0;margin-top:6px}to{opacity:1;margin-top:0}}
.dz-mm-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;background:#fff;border:1px solid #e2ebf5;border-radius:22px 22px 0 0;padding:14px;box-shadow:0 30px 70px rgba(16,40,90,.18)}
.dz-mm-panel .dz-mm-card{display:flex!important;align-items:center;gap:12px;padding:10px;border-radius:14px;color:#10204a!important;text-decoration:none!important;transition:background .15s;white-space:normal;font-weight:400}
.dz-mm-panel .dz-mm-card:hover{background:#f2f7ff}
.dz-mm-thumb{flex:0 0 76px;width:76px;height:54px;border-radius:11px;overflow:hidden;background:#eef4ff;display:grid;place-items:center;color:#0b6cf5}
.dz-mm-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.dz-mm-ico svg{width:26px;height:26px}
.dz-mm-txt{display:flex;flex-direction:column;gap:2px;line-height:1.3}
.dz-mm-txt b{font-size:15px;font-weight:700}
.dz-mm-txt small{font-size:13px;color:#5b6b86}
.dz-mm-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f2f7ff;border:1px solid #e2ebf5;border-top:0;border-radius:0 0 22px 22px;padding:12px 18px;font-size:13.5px;color:#41506b;box-shadow:0 30px 70px rgba(16,40,90,.18)}
.dz-mm-panel .dz-mm-cta{flex:0 0 auto;background:#0b6cf5;color:#fff!important;border-radius:999px;padding:8px 16px;font-weight:700;text-decoration:none!important}
.dz-mm-mhead{display:block;margin:12px 0 2px;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8a97ad}
@media(max-width:1280px){.dz-mm-top,.dz-mm-link{padding:8px 8px;font-size:14px}}
@media(max-width:1440px){.dz-mm-link svg{display:none}}
.kb-nav.dz-mm{gap:2px}
.kb-nav.dz-mm>a.dz-mm-link,.kb-nav.dz-mm .dz-mm-top{padding:8px 10px!important;margin:0!important}
.kb-nav.dz-mm>a.dz-mm-link:after,.kb-nav.dz-mm .dz-mm-top:after{display:none!important}
.kb-nav.dz-mm .dz-mm-panel a:after{display:none!important}
/* на планшете и телефоне — бургер, мега-меню скрыто */
@media(max-width:1180px){.nav.dz-mm{display:none!important}}
@media(max-width:1180px){.kb-nav.dz-mm{display:none!important}}
@media(min-width:981px) and (max-width:1200px){.kb-header-act .kb-btn-ghost{display:none}.kb-nav.dz-mm .dz-mm-top,.kb-nav.dz-mm>a.dz-mm-link{padding:7px 6px!important;font-size:13.5px}}
.kb-nav.dz-mm .dz-mm-panel a{border-bottom:0;padding:10px}

/* общий поиск по сайту (js/megamenu.js) */
.dz-sbtn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 10px 0 14px;margin-left:auto;border:1px solid #d6e2f5;border-radius:999px;background:#f5f9ff;color:#4a5a7a;font:inherit;font-size:14px;cursor:pointer;white-space:nowrap;flex:0 0 auto;transition:border-color .2s,background .2s,color .2s}
.dz-sbtn:hover,.dz-sbtn:focus-visible{border-color:#0871f9;background:#fff;color:#071333;outline:none}
.dz-sbtn svg{width:18px;height:18px;flex:0 0 auto;color:#0871f9}
.dz-sbtn kbd{font-family:inherit;font-size:11px;font-weight:600;line-height:1;padding:5px 7px;border-radius:7px;background:#fff;border:1px solid #d6e2f5;color:#6b7a99}
.dz-sbtn+.kb-header-act,.dz-sbtn+.header-actions{margin-left:0}
@media(max-width:1399px){.dz-sbtn kbd{display:none}.dz-sbtn{padding:0 16px 0 13px}}
@media(max-width:1360px){.dz-sbtn kbd,.dz-sbtn span{display:none}.dz-sbtn{width:44px;height:44px;padding:0;justify-content:center;background:#fff}.dz-sbtn svg{width:20px;height:20px}}
@media(max-width:1180px){.dz-sbtn kbd,.dz-sbtn span{display:none}.dz-sbtn{width:44px;height:44px;padding:0;justify-content:center;background:#fff}.dz-sbtn svg{width:20px;height:20px}}
@media(min-width:1181px) and (max-width:1799px){.kb-header-act .kb-btn-ghost{display:none}.dz-sbtn kbd,.dz-sbtn span{display:none}.dz-sbtn{width:44px;height:44px;padding:0;justify-content:center;background:#fff}.dz-sbtn svg{width:20px;height:20px}}
@media(min-width:1800px){.dz-sbtn kbd{display:none}}
html.dz-search-on{overflow:hidden}
.dz-search{position:fixed;inset:0;z-index:10050;background:rgba(7,19,51,.48);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:flex;justify-content:center;align-items:flex-start;padding:9vh 12px 12px}
.dz-search[hidden]{display:none}
.dz-search-dlg{width:min(720px,100%);max-height:80vh;display:flex;flex-direction:column;background:#fff;border-radius:20px;box-shadow:0 30px 80px rgba(7,19,51,.35);overflow:hidden;font-family:inherit}
.dz-search-field{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #e6edf8;margin:0}
.dz-search-field svg{width:22px;height:22px;color:#0871f9;flex:0 0 auto}
.dz-search-field input{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:18px;color:#071333;background:none;-webkit-appearance:none;appearance:none;padding:0;height:auto;box-shadow:none}
.dz-search-field input::-webkit-search-cancel-button{display:none}
.dz-search-x{border:1px solid #d6e2f5;background:#f5f9ff;color:#6b7a99;border-radius:8px;padding:6px 9px;font-family:inherit;font-size:12px;font-weight:600;line-height:1;cursor:pointer}
.dz-search-res{overflow:auto;padding:8px;overscroll-behavior:contain}
.dz-search-it{display:grid;gap:3px;padding:11px 14px;border-radius:12px;color:#071333;text-decoration:none}
.dz-search-it b{font-weight:600;font-size:16px;line-height:1.3}
.dz-search-it small{color:#5b6b8a;font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.dz-search-it mark{background:#ffe9a8;color:inherit;border-radius:3px;padding:0 1px}
.dz-search-it.is-act,.dz-search-it:hover{background:#eef5ff}
.dz-search-s{font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#0871f9}
.dz-search-cap{margin:6px 14px 4px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a97b0}
.dz-search-empty{margin:0;padding:22px 16px;color:#4a5a7a;font-size:15px;line-height:1.5}
.dz-search-ai{margin-top:12px;display:inline-block;border:0;border-radius:999px;background:#0871f9;color:#fff;font-family:inherit;font-size:14px;font-weight:600;line-height:1;padding:11px 16px;cursor:pointer}
.dz-search-foot{display:flex;justify-content:space-between;gap:12px;padding:10px 18px;border-top:1px solid #e6edf8;font-size:12px;color:#8a97b0}
@media(max-width:640px){.dz-search{padding:0}.dz-search-dlg{width:100%;max-height:100%;height:100%;border-radius:0}.dz-search-foot span:first-child{display:none}.dz-search-field input{font-size:16px}}
@media(min-width:981px) and (max-width:1360px){.kb-header-in{gap:14px}.kb-nav.dz-mm .dz-mm-top,.kb-nav.dz-mm>a.dz-mm-link{padding:7px 6px!important;font-size:13.5px}}
@media(min-width:1181px) and (max-width:1240px){.nav.dz-mm{gap:0}.nav.dz-mm .dz-mm-top,.nav.dz-mm>a.dz-mm-link{padding-left:5px!important;padding-right:5px!important;font-size:13.5px!important}}
@media(min-width:981px) and (max-width:1240px){.kb-logo-copy span{display:none}.kb-nav.dz-mm .dz-mm-top,.kb-nav.dz-mm>a.dz-mm-link{padding:7px 4px!important;font-size:13px}}

/* вход в закрытый клуб (megamenu.club_link): справа в шапке; на 1181–1440 и на телефоне — только иконка */
.dz-club-in{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:44px;padding:0 16px 0 12px;border:1px solid #d6e2f5;border-radius:999px;background:#fff;color:#10204a;font:inherit;font-size:14px;font-weight:700;line-height:1;text-decoration:none;white-space:nowrap;flex:0 0 auto;transition:border-color .2s,background .2s,color .2s}
.dz-club-in svg{width:20px;height:20px;flex:0 0 20px;color:#0871f9}
.dz-club-in:hover,.dz-club-in:focus-visible{border-color:#0871f9;background:#f5f9ff;color:#0871f9;outline:none}
.dz-club-in+.kb-burger,.dz-club-in+.menu-btn{margin-left:0}
@media(min-width:1181px) and (max-width:1360px),(max-width:600px){.dz-club-in{width:44px;padding:0}.dz-club-in span{display:none}}
.header-actions,.kb-header-act{flex:0 0 auto}.header-actions .btn,.kb-header-act .kb-btn{white-space:nowrap}
@media(min-width:1361px){.nav.dz-mm .dz-mm-top,.nav.dz-mm>a.dz-mm-link{padding-left:8px;padding-right:8px}}
@media(min-width:1800px){.nav.dz-mm{gap:0}.nav.dz-mm .dz-mm-top,.nav.dz-mm>a.dz-mm-link{padding-left:7px;padding-right:7px}}
/* ширина шапки с кнопкой клуба: меню не вылезает ни на одной ширине */
.kb-header-act .kb-btn-ghost{display:none}
@media(min-width:1181px) and (max-width:1799px){.header-actions .btn-outline{display:none}}
@media(max-width:1799px){.dz-mm-link svg{display:none}}
@media(min-width:1181px){.header-inner{gap:10px}.kb-header-in{gap:14px}}
@media(min-width:1181px) and (max-width:1300px){.kb-header-in{gap:10px}.kb-logo-copy span{display:none}.kb-nav.dz-mm{gap:0}.kb-header-act .kb-btn{padding:0 14px;font-size:13px}}
@media(min-width:1301px) and (max-width:1360px){.kb-logo-copy span{display:none}}
@media(min-width:1361px){.kb-nav.dz-mm .dz-mm-top,.kb-nav.dz-mm>a.dz-mm-link{padding:8px 5px!important;font-size:14px}}
@media(min-width:1361px) and (max-width:1399px){.kb-nav.dz-mm .dz-mm-top,.kb-nav.dz-mm>a.dz-mm-link{font-size:13.5px}}
@media(max-width:600px){.kb-header-in,.header-inner{gap:8px}}
@media(max-width:420px){.dz-sbtn,.dz-club-in{width:40px;height:40px}.kb-burger,.menu-btn{width:42px!important;height:42px!important;flex:0 0 42px}.kb-logo{gap:8px}.kb-logo-copy strong,.logo-copy strong{font-size:15px}.logo-copy span{display:none}.logo{gap:8px}}
@media(max-width:359px){.kb-header-in>.dz-club-in,.header-inner>.dz-club-in{display:none}}
.dz-mm-mclub{display:flex!important;align-items:center;gap:10px;margin:8px 0 2px;padding:13px 14px!important;border:1px solid #d6e2f5!important;border-radius:14px;background:#f5f9ff;color:#0871f9!important}
.dz-mm-mclub svg{width:20px;height:20px;flex:0 0 20px}
/* «Инструменты» в шапке вместо якоря «Результаты» (он остаётся в подвале): шапка ограничена по ширине, 9 пунктов не помещаются */
.dz-mm>a.dz-mm-opt{display:none!important}
