/* site.css — общие стили основного сайта: токены, шрифты, шапка, меню телефона, окно входа, мини-профиль,
   подвал, плашка cookies. Образец — общие компоненты сводного холста, префиксы классов те же
   (hdr-, hdm-, lgn-, mp-, ftr-, ck-). Страницы сайта добавляют свои стили со своими префиксами. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope/manrope-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/unbounded/unbounded-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/assets/fonts/unbounded/unbounded-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat — только шапка, боковое меню и подвал, как на avernomed.ru */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/montserrat/montserrat-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- токены и основа ---------- */
:root {
  --av-ink: #081940;
  --av-ink-hover: #13275A;
  --av-blue: #0058FF;
  --av-blue-hover: #0047D1;
  --av-bg: #F0F0F5;
  --av-bg-soft: #F6F6FA; /* единый фон страниц товара и «О проекте» */
  --av-line: #E3E8F0;
  --av-line-2: #C9D1E0;
  --av-muted: #5F6673;
  --av-muted-2: #3A3F4A;
  --av-sky: #E5EDFF;
  --av-red: #8C1024;
  --av-alert: #E5484D;
  --av-text: #242424;
  --av-font: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  --av-head: Unbounded, Manrope, sans-serif;
  --av-menu: Montserrat, Arial, sans-serif;
  --av-hdr-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.av { margin: 0; font-family: var(--av-font); font-size: 16px; line-height: 1.5; color: var(--av-text); background: #FFFFFF; overflow-x: clip; }
html.av-lock, html.av-lock body { overflow: hidden; }
/* полоса прокрутки уходит при блокировке — резервируем её место, иначе страница дёргается на ширину полосы (окна кабинета, корзина, меню) */
html.av-lock { scrollbar-gutter: stable; }
[hidden] { display: none !important; }
.av-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.av-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--av-ink); color: #FFFFFF; padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.av-skip:focus-visible { top: 12px; }
main { display: block; }

/* ---------- шапка: компьютер (Header) ---------- */
.hdr { position: sticky; top: 0; z-index: 40; height: var(--av-hdr-h); background: #FFFFFF; border-bottom: 1px solid var(--av-line); font-family: var(--av-font); color: var(--av-text); transition: transform .25s ease; }
.hdr.hdr-hide { transform: translateY(-100%); }
.hdr-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.hdr-left { display: flex; align-items: center; gap: 48px; min-width: 0; }
.hdr-right { display: flex; align-items: center; gap: 16px; }
.hdr-icons { display: flex; align-items: center; gap: 4px; }
.hdr-logo { display: flex; align-items: center; text-decoration: none; border-radius: 8px; flex: none; }
.hdr-logo svg { display: block; }
.hdr-nav { display: flex; gap: 8px; }
.hdr-nav a { display: flex; align-items: center; gap: 8px; color: var(--av-text); text-decoration: none; font-family: var(--av-menu); font-weight: 500; font-size: 15px; line-height: 20px; padding: 8px 12px; border-radius: 8px; transition: background .15s, color .15s; white-space: nowrap; }
.hdr-nav a:hover { background: var(--av-sky); color: var(--av-ink); }
.hdr-nav a.hdr-on, .hdr-nav a.hdr-on:hover { background: var(--av-ink); color: #FFFFFF; }
.hdr-ico { width: 18px; height: 18px; flex: none; }
.hdr-ib { width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; color: var(--av-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; padding: 0; text-decoration: none; }
.hdr-ib:hover, .hdr-ib.hdr-act { background: var(--av-sky); }
.hdr-badge { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--av-blue); color: #FFFFFF; font: 700 11px/18px var(--av-font); text-align: center; }
.hdr-badge.hdr-red { background: var(--av-alert); }
.hdr-login { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; font: 700 15px/1 var(--av-font); cursor: pointer; padding: 0 18px; border: 0; white-space: nowrap; background: var(--av-ink); color: #FFFFFF; }
.hdr-login:hover { background: var(--av-ink-hover); }
.hdr-av { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #FFFFFF; background: var(--av-sky); color: var(--av-ink); font: 700 17px/1 var(--av-head); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; box-shadow: 0 0 0 2.5px var(--av-ring, #C08457); overflow: hidden; }
.hdr-av img { width: 100%; height: 100%; object-fit: cover; }
.hdr-burger { display: none; }
.hdr-b-open { display: flex; }
.hdr-b-close { display: none; }
.hdr-burger[aria-expanded="true"] .hdr-b-open { display: none; }
.hdr-burger[aria-expanded="true"] .hdr-b-close { display: flex; }

/* всплывающие окна под шапкой: вход, мини-профиль, уведомления */
.hdr-pop { position: absolute; top: 78px; right: 20px; z-index: 45; }
.hdr-pop::before { content: ""; position: absolute; top: -7px; right: var(--arrow, 24px); width: 14px; height: 14px; background: #FFFFFF; transform: rotate(45deg); box-shadow: -1px -1px 0 rgba(8,25,64,.06); z-index: 2; }
.hdr-np { width: 400px; max-width: calc(100vw - 32px); background: #FFFFFF; border-radius: 24px; box-shadow: 0 24px 60px rgba(8,25,64,.18), 0 0 0 1px rgba(8,25,64,.06); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.hdr-np-top { padding: 0 4px 6px; }
.hdr-np-top b { font: 600 17px var(--av-head); color: var(--av-ink); }
/* список уведомлений в колокольчике: три последних */
.hdr-np-list { display: flex; flex-direction: column; gap: 2px; }
.hdr-nt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 14px; text-decoration: none; color: var(--av-text); }
.hdr-nt:hover { background: #F5F8FF; }
.hdr-ntw { position: relative; transition: opacity .18s ease, transform .18s ease; }
.hdr-ntw.is-gone { opacity: 0; transform: translateX(10px); }
.hdr-ntw .hdr-nt { padding-right: 40px; }
.hdr-nt-x { position: absolute; top: 8px; right: 6px; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 9px; background: transparent; color: var(--av-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s, color .15s; }
.hdr-ntw:hover .hdr-nt-x, .hdr-nt-x:focus-visible { opacity: 1; }
.hdr-nt-x:hover { background: #E3E8F2; color: var(--av-ink); }
.hdr-nt-x:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 1px; }
@media (hover: none) { .hdr-nt-x { opacity: 1; } }
.hdr-nt-new { background: #F5F8FF; }
.hdr-nt-i { width: 36px; height: 36px; border-radius: 11px; flex: none; position: relative; }
.hdr-nt-i::after { content: ""; position: absolute; inset: 0; margin: auto; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.hdr-nt-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hdr-nt-t b { font-size: 14px; line-height: 19px; color: var(--av-ink); overflow-wrap: anywhere; }
.hdr-nt-t span { font-size: 13px; line-height: 18px; color: var(--av-muted-2); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hdr-nt-t small { font-size: 12px; color: var(--av-muted); }
.hdr-np-empty { margin: 0; padding: 14px 4px; color: var(--av-muted); font-size: 15px; }
.hdr-all { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; background: var(--av-ink); color: #FFFFFF; font: 700 15px/1 var(--av-font); text-decoration: none; margin-top: 6px; }
.hdr-all:hover { background: var(--av-ink-hover); color: #FFFFFF; }
.hdr-dim { position: fixed; inset: 0; background: rgba(8,25,64,.45); z-index: 44; }

/* ---------- шапка: телефон (HeaderPhone) ---------- */
.hdm-menu { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #FFFFFF; z-index: 39; display: flex; flex-direction: column; padding: 12px 16px 24px; overflow-y: auto; font-family: var(--av-font); }
.hdm-ml { display: flex; justify-content: space-between; align-items: center; min-height: 56px; padding: 0 14px; margin-bottom: 6px; border-radius: 12px; color: var(--av-ink); text-decoration: none; font: 600 20px/1 var(--av-head); background: transparent; border: 0; width: 100%; cursor: pointer; text-align: left; }
.hdm-ml:active { background: var(--av-sky); }
.hdm-ml.hdm-on { background: var(--av-ink); color: #FFFFFF; }
.hdm-mt { display: flex; align-items: center; gap: 12px; }
.hdm-ico { display: flex; }
.hdm-ico .hdr-ico { width: 22px; height: 22px; }
.hdm-ml:not(.hdm-on) .hdm-ico { color: var(--av-ink); }
.hdm-count { font: 700 14px var(--av-font); color: #FFFFFF; background: var(--av-blue); border-radius: 99px; padding: 4px 10px; }
.hdm-foot { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 16px; }
.hdm-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 12px; font: 700 16px/1 var(--av-font); text-decoration: none; cursor: pointer; padding: 0 18px; border: 0; width: 100%; background: var(--av-ink); color: #FFFFFF; }
.hdm-btn:active { background: var(--av-ink-hover); }
.hdm-socs { display: flex; gap: 10px; justify-content: center; }
.hdm-soc { width: 44px; height: 44px; border-radius: 8px; background: var(--av-bg); color: var(--av-ink); display: flex; align-items: center; justify-content: center; text-decoration: none; font: 800 14px var(--av-font); }
.hdm-mail { color: var(--av-muted); font-size: 14px; line-height: 20px; text-align: center; text-decoration: none; }

@media (max-width: 860px) {
  :root { --av-hdr-h: 64px; }
  .hdr-wrap { padding: 0 8px 0 16px; gap: 8px; }
  .hdr-logo svg { width: 130px; height: 26px; }
  .hdr-nav { display: none; }
  .hdr-right { gap: 2px; }
  .hdr-icons { gap: 2px; }
  .hdr-burger { display: flex; }
  .hdr-badge { top: 4px; right: 2px; }
  .hdr-login { width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: 8px; background: transparent; color: var(--av-ink); }
  .hdr-login:hover, .hdr-login:active { background: var(--av-sky); }
  .hdr-login svg { width: 23px; height: 23px; stroke-width: 1.8; }
  .hdr-login-t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .hdr-av { width: 36px; height: 36px; margin: 0 4px; font-size: 14px; }
  .hdr-pop { top: 70px; right: 8px; }
}

/* на телефоне окна входа и мини-профиля — шторкой снизу */
@media (max-width: 640px) {
  .hdr-pop { position: fixed; top: auto; left: 0; right: 0; bottom: 0; max-height: 92%; overflow-y: auto; z-index: 46; }
  .hdr-pop::before { display: none; }
  .hdr-pop[data-pop="bell"] { display: none !important; }
}

.hdr-nav a:focus-visible, .hdr-ib:focus-visible, .hdr-login:focus-visible, .hdr-av:focus-visible, .hdr-logo:focus-visible,
.hdr-all:focus-visible, .hdr-nt:focus-visible, .hdm-ml:focus-visible, .hdm-btn:focus-visible, .hdm-soc:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }

/* ---------- окно входа (LoginWindow) ---------- */
.lgn { font-family: var(--av-font); color: var(--av-text); background: #FFFFFF; display: flex; flex-direction: column; gap: 16px; text-align: left; }
.lgn-win { width: 380px; max-width: calc(100vw - 16px); border-radius: 24px; padding: 24px; box-shadow: 0 24px 60px rgba(8,25,64,.18), 0 0 0 1px rgba(8,25,64,.06); }
.lgn-page { width: 100%; max-width: 440px; border-radius: 24px; padding: 32px; box-shadow: 0 0 0 1px var(--av-line); }
.lgn-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--av-line-2); align-self: center; margin-bottom: 4px; }
.lgn-step { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.lgn-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lgn-h { font-family: var(--av-head); font-weight: 600; font-size: 20px; line-height: 26px; color: var(--av-ink); margin: 0; outline: none; }
.lgn-page .lgn-h { font-size: 26px; line-height: 34px; }
.lgn-muted { color: var(--av-muted); font-size: 14px; line-height: 20px; margin-top: 4px; }
.lgn-muted b { color: var(--av-ink); }
.lgn-x { width: 36px; height: 36px; border-radius: 8px; border: 0; background: transparent; color: var(--av-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.lgn-x:hover { background: var(--av-sky); }
.lgn-fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lgn-fld label, .lgn-lbl { font-size: 13px; line-height: 18px; font-weight: 700; color: var(--av-muted-2); }
.lgn-fld label i { font-style: normal; font-weight: 500; color: var(--av-muted); }
.lgn-inp { height: 50px; border-radius: 12px; border: 1.5px solid var(--av-blue); padding: 0 14px; font: 500 16px var(--av-font); color: var(--av-ink); width: 100%; background: #FFFFFF; min-width: 0; }
.lgn-inp:focus { outline: none; border-color: var(--av-blue); box-shadow: 0 0 0 3px var(--av-sky); }
.lgn-inp[aria-invalid="true"] { border-color: var(--av-red); }
.lgn-dd { position: relative; }
.lgn-ddb { all: unset; box-sizing: border-box; width: 100%; height: 50px; border-radius: 12px; border: 1.5px solid var(--av-blue); padding: 0 12px 0 14px; font: 500 16px var(--av-font); color: var(--av-ink); background: #FFFFFF; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.lgn-ddb[aria-expanded="true"] { box-shadow: 0 0 0 3px var(--av-sky); }
.lgn-ddb[aria-invalid="true"] { border-color: var(--av-red); }
.lgn-ddb svg { transition: transform .15s; flex: none; }
.lgn-ddb[aria-expanded="true"] svg { transform: rotate(180deg); }
.lgn-ddb.lgn-empty span { color: var(--av-muted); }
.lgn-ddb:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.lgn-ddl { position: absolute; top: 56px; left: 0; right: 0; min-width: 180px; background: #FFFFFF; border-radius: 14px; box-shadow: 0 18px 40px rgba(8,25,64,.16), 0 0 0 1px rgba(8,25,64,.06); padding: 6px; margin: 0; list-style: none; z-index: 20; display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; outline: none; }
.lgn-opt { padding: 10px 12px; border-radius: 9px; font: 600 15px var(--av-font); color: var(--av-ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; outline: none; }
.lgn-opt svg { visibility: hidden; flex: none; }
.lgn-opt:hover, .lgn-opt.lgn-cur { background: var(--av-sky); }
.lgn-opt[aria-selected="true"] { background: var(--av-ink); color: #FFFFFF; }
.lgn-opt[aria-selected="true"] svg { visibility: visible; }
.lgn-opt.lgn-cur[aria-selected="true"] { box-shadow: inset 0 0 0 3px var(--av-blue); }
.lgn-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.lgn-d { height: 56px; border-radius: 12px; border: 1.5px solid var(--av-blue); text-align: center; font: 600 22px var(--av-head); color: var(--av-ink); width: 100%; padding: 0; background: #FFFFFF; }
.lgn-d:focus { outline: none; box-shadow: 0 0 0 3px var(--av-sky); }
.lgn-code.lgn-bad .lgn-d { border-color: var(--av-red); }
.lgn-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 19px; color: var(--av-muted-2); cursor: pointer; position: relative; }
.lgn-chk a { color: var(--av-blue); }
.lgn-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lgn-box { flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--av-line-2); background: #FFFFFF; display: flex; align-items: center; justify-content: center; margin-top: -1px; }
.lgn-box svg { opacity: 0; }
.lgn-chk input:checked + .lgn-box { background: var(--av-blue); border-color: var(--av-blue); }
.lgn-chk input:checked + .lgn-box svg { opacity: 1; }
.lgn-chk input:focus-visible + .lgn-box { outline: 3px solid var(--av-blue); outline-offset: 2px; }
.lgn-err { margin: -6px 0 0; color: var(--av-red); font-size: 14px; line-height: 20px; }
.lgn-err:empty { display: none; }
.lgn-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 12px; border: 0; background: var(--av-blue); color: #FFFFFF; font: 700 16px/1 var(--av-font); cursor: pointer; padding: 0 18px; }
.lgn-btn:hover { background: var(--av-blue-hover); }
.lgn-btn[disabled] { background: var(--av-line-2); cursor: not-allowed; }
.lgn-btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.lgn-lnk { background: none; border: 0; padding: 0; color: var(--av-blue); font: 700 14px var(--av-font); cursor: pointer; min-height: 32px; }
.lgn-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.lgn-timer { margin: 0; }
.lgn-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px; }
.lgn-btn:focus-visible, .lgn-x:focus-visible, .lgn-lnk:focus-visible, .lgn-chk a:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
@media (max-width: 640px) {
  .hdr-pop .lgn-win { width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding: 10px 16px 28px; gap: 14px; box-shadow: none; }
  .hdr-pop .lgn-grab { display: block; }
  .hdr-pop .lgn-x { width: 44px; height: 44px; }
  .lgn-two { grid-template-columns: minmax(0, 1fr); }
  .lgn-page { padding: 24px 20px; }
}

/* ---------- мини-профиль (MiniProfile) ---------- */
.mp { font-family: var(--av-font); color: var(--av-text); background: #FFFFFF; display: flex; flex-direction: column; gap: 16px; text-align: left; width: 380px; max-width: calc(100vw - 16px); border-radius: 24px; padding: 20px; box-shadow: 0 24px 60px rgba(8,25,64,.18), 0 0 0 1px rgba(8,25,64,.06); }
.mp-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: var(--av-line-2); align-self: center; margin-bottom: -4px; }
.mp-head { display: flex; align-items: center; gap: 14px; }
.mp-av { width: 56px; height: 56px; border-radius: 50%; background: var(--av-sky); color: var(--av-ink); font: 700 22px/1 var(--av-head); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5.5px var(--av-ring, #C08457); overflow: hidden; }
.mp-av img { width: 100%; height: 100%; object-fit: cover; }
.mp-who { flex: 1; min-width: 0; }
.mp-name { font-weight: 800; font-size: 18px; line-height: 24px; color: var(--av-ink); overflow-wrap: anywhere; }
.mp-muted { color: var(--av-muted); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.mp-med { display: flex; gap: 4px; margin-top: 6px; }
.mp-med img { width: 24px; height: 24px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(8,25,64,.3)); }
.mp-card { position: relative; aspect-ratio: 1.586 / 1; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; box-shadow: 0 14px 30px rgba(8,25,64,.18); text-decoration: none; }
.mp-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%); pointer-events: none; }
.mp-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.mp-lvl { font: 700 12px/1 var(--av-font); letter-spacing: .12em; opacity: .85; text-transform: uppercase; }
.mp-bal { font: 600 28px/32px var(--av-head); font-variant-numeric: tabular-nums; }
.mp-cb { font-size: 13px; opacity: .85; }
.mp-prog { display: flex; flex-direction: column; gap: 6px; margin-top: -4px; }
.mp-bar { height: 8px; border-radius: 4px; background: var(--av-line); overflow: hidden; }
.mp-bar span { display: block; height: 100%; border-radius: 4px; background: var(--av-blue); }
.mp-prog-t { font-size: 12px; line-height: 16px; color: var(--av-muted); }
.mp-stats { display: flex; gap: 8px; }
.mp-stat { flex: 1; display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 10px 4px; border-radius: 14px; background: #F4F6FA; min-width: 0; }
.mp-stat b { font: 600 20px/26px var(--av-head); color: var(--av-ink); }
.mp-stat span { font-size: 12px; line-height: 16px; color: var(--av-muted); font-weight: 600; }
.mp-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; border-radius: 12px; border: 0; background: var(--av-blue); color: #FFFFFF; font: 700 16px/1 var(--av-font); cursor: pointer; text-decoration: none; }
.mp-btn:hover { background: var(--av-blue-hover); color: #FFFFFF; }
.mp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mp-lnk { background: none; border: 0; padding: 0; color: var(--av-blue); font: 700 14px var(--av-font); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.mp-lnk:hover { color: var(--av-blue-hover); }
.mp-out { color: var(--av-red); }
.mp-out:hover { color: #6E0C1C; }
.mp-x { display: none; width: 44px; height: 44px; border-radius: 8px; border: 0; background: transparent; color: var(--av-ink); align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.mp-btn:focus-visible, .mp-lnk:focus-visible, .mp-x:focus-visible, .mp-card:focus-visible { outline: 3px solid var(--av-blue); outline-offset: 2px; }
@media (max-width: 640px) {
  .hdr-pop .mp { width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding: 10px 16px 28px; gap: 14px; box-shadow: none; }
  .hdr-pop .mp-grab { display: block; }
  .hdr-pop .mp-x { display: flex; }
}

/* ---------- подвал (Footer) ---------- */
.ftr { font-family: var(--av-font); background: var(--av-ink); color: #FFFFFF; width: 100%; }
.ftr-wrap { max-width: 1200px; margin: 0 auto; padding: 48px 20px 24px; display: flex; flex-direction: column; gap: 32px; }
.ftr-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.ftr-about { display: flex; flex-direction: column; gap: 12px; }
.ftr-logo { display: inline-flex; align-self: flex-start; border-radius: 6px; }
.ftr-logo svg { display: block; }
.ftr-tag { color: var(--av-line-2); font-size: 15px; line-height: 24px; }
.ftr-contact { color: var(--av-line-2); font-size: 14px; line-height: 22px; }
.ftr-mail { font-weight: 700; }
.ftr-cap { font-size: 12px; letter-spacing: .1em; font-weight: 700; color: #9AA6BF; text-transform: uppercase; }
.ftr-cap-a { text-decoration: none; }
.ftr-cap-a:hover { color: #FFFFFF; }
.ftr-col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; }
.ftr-a { color: #FFFFFF; text-decoration: none; align-self: flex-start; border-radius: 4px; }
.ftr-a:hover { color: #B9CCF5; }
.ftr-d { color: var(--av-line-2); text-decoration: none; align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-align: left; border-radius: 4px; }
.ftr-d:hover { color: #FFFFFF; }
.ftr-socs { display: flex; gap: 10px; margin-top: 4px; }
.ftr-soc { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: #FFFFFF; text-decoration: none; font: 800 14px var(--av-font); }
.ftr-soc:hover { background: rgba(255,255,255,.16); color: #FFFFFF; }
/* разделитель между фактами в строке: пустой элемент-отступ (вместо точки) */
.dv { display: inline-block; flex: none; width: .4em; margin: 0 .2em; }
.nw { white-space: nowrap; }
.ftr-copy { border-top: 1px solid rgba(255,255,255,.14); padding-top: 20px; font-size: 13px; line-height: 20px; color: #9AA6BF; }
.ftr-a:focus-visible, .ftr-d:focus-visible, .ftr-soc:focus-visible, .ftr-logo:focus-visible { outline: 3px solid #6EA0FF; outline-offset: 2px; }
@media (max-width: 860px) {
  .ftr-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ftr-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ftr-wrap { padding: 36px 16px 24px; gap: 28px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- плашка и настройки cookies (Cookies) ---------- */
.ck { font-family: var(--av-font); color: var(--av-text); }
.ck-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); width: min(760px, calc(100% - 32px)); background: var(--av-ink); color: #FFFFFF; border-radius: 18px; padding: 16px 18px; display: flex; gap: 16px; align-items: center; box-shadow: 0 18px 40px rgba(8,25,64,.3); z-index: 50; flex-wrap: wrap; }
.ck-bar p { margin: 0; flex: 1 1 300px; font-size: 14px; line-height: 20px; color: #DDE3EE; }
.ck-bar a, .ck-bar a:hover { color: #FFFFFF; }
/* меню телефона или шторка открыты — плашка не закрывает их кнопки, вернётся после закрытия */
html.av-lock .ck-bar { visibility: hidden; }
.ck-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-btn { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font: 700 15px/1 var(--av-font); cursor: pointer; padding: 0 18px; border: 0; white-space: nowrap; }
.ck-ghost { background: rgba(255,255,255,.1); color: #FFFFFF; }
.ck-ghost:hover { background: rgba(255,255,255,.18); }
.ck-white { background: #FFFFFF; color: var(--av-ink); }
.ck-white:hover { background: var(--av-sky); }
.ck-dim { position: fixed; inset: 0; background: rgba(8,25,64,.45); z-index: 55; }
.ck-dlg { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(480px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow-y: auto; background: #FFFFFF; border-radius: 24px; padding: 24px; z-index: 60; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(8,25,64,.25); }
.ck-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ck-h { margin: 0; font: 600 20px/26px var(--av-head); color: var(--av-ink); outline: none; }
.ck-muted { margin: 0; font-size: 14px; line-height: 20px; color: var(--av-muted); }
.ck-muted a { color: var(--av-blue); }
.ck-opt { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: #F4F6FA; }
.ck-opt b { display: block; font-size: 15px; line-height: 22px; color: var(--av-ink); }
.ck-opt span { display: block; font-size: 13px; line-height: 19px; color: var(--av-muted); margin-top: 2px; }
.ck-tg { position: relative; flex: none; width: 48px; height: 28px; border-radius: 14px; border: 0; padding: 0; cursor: pointer; background: var(--av-line-2); transition: background .15s; }
.ck-tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(8,25,64,.25); transition: transform .15s; }
.ck-tg.ck-on { background: var(--av-blue); }
.ck-tg.ck-on::after { transform: translateX(20px); }
.ck-tg[disabled] { cursor: not-allowed; opacity: .55; }
.ck-btns2 { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-ok { background: var(--av-blue); color: #FFFFFF; flex: 1; }
.ck-ok:hover { background: var(--av-blue-hover); }
.ck-line { background: #FFFFFF; color: var(--av-ink); box-shadow: inset 0 0 0 1.5px var(--av-line-2); flex: 1; }
.ck-line:hover { box-shadow: inset 0 0 0 1.5px var(--av-ink); }
.ck-x { width: 40px; height: 40px; border-radius: 8px; border: 0; background: transparent; color: var(--av-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; }
.ck-x:hover { background: var(--av-sky); }
.ck-btn:focus-visible, .ck-tg:focus-visible, .ck-x:focus-visible, .ck-bar a:focus-visible, .ck-muted a:focus-visible { outline: 3px solid #6EA0FF; outline-offset: 2px; }
@media (max-width: 640px) {
  .ck-bar { bottom: 12px; width: calc(100% - 24px); padding: 14px; gap: 12px; }
  .ck-bar p { flex-basis: 100%; }
  .ck-btns { width: 100%; }
  .ck-btns .ck-btn { flex: 1; }
  .ck-dlg { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 92%; border-radius: 24px 24px 0 0; padding: 20px 16px 28px; }
}

/* ---------- временные страницы S1a: главная, /login, 404 ---------- */
.av-temp-hero { background: linear-gradient(115deg, #DCE6FF, #E8E1FF, #F8C9F5); padding: 72px 0 80px; }
.av-temp-h { margin: 0 0 16px; font: 700 40px/48px var(--av-head); color: var(--av-ink); max-width: 760px; }
.av-temp-p { margin: 0; font-size: 18px; line-height: 28px; color: var(--av-muted-2); max-width: 640px; }
.av-temp-p a { color: var(--av-blue); font-weight: 700; }
.av-login { background: var(--av-bg); min-height: calc(100vh - var(--av-hdr-h)); display: flex; align-items: center; justify-content: center; padding: 48px 20px; }
.av-login .lgn-page { background: #FFFFFF; }
@media (max-width: 640px) {
  .av-temp-hero { padding: 40px 0 48px; }
  .av-temp-h { font-size: 26px; line-height: 34px; }
  .av-temp-p { font-size: 16px; line-height: 25px; }
  .av-wrap { padding-inline: 16px; }
  .av-login { align-items: flex-start; padding: 32px 16px; }
}

/* ---------- Lenis: служебные стили плавной прокрутки ---------- */
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
/* ссылки шапки, меню и подвала — без подчёркивания и на страницах блога (у него свои стили ссылок) */
.hdr a, .hdm-menu a, .ftr a { text-decoration: none; }

/* обводка фокуса — только для перехода по Tab (класс av-kbd ставит site-ui.js) */
html:not(.av-kbd) :focus-visible,
html:not(.av-kbd) .pcd:has(:focus-visible),
html:not(.av-kbd) :focus-visible + .lgn-box,
html:not(.av-kbd) .spp-ba:has(:focus-visible) .spp-ba-knob { outline: none !important; }

/* якоря: заголовок раздела не уходит под шапку */
main [id] { scroll-margin-top: 88px; }

/* телефон: ссылки подвала и мелкие кнопки не тоньше пальца (S26) */
@media (hover: none) and (max-width: 640px) {
  .ftr-a, .ftr-d, .ftr-cap-a { padding-block: 7px; }
}

/* ---------- S31: вложенные радиусы (внутренний угол = внешний радиус минус отступ) ---------- */
dialog.fb-dlg .fb-x { border-radius: 14px; }        /* окно 24, отступ 10 */
@media (max-width: 640px) {
  .ck-bar { border-radius: 26px; }                  /* отступ 14, кнопка 12 */
}
@media (max-width: 520px) {
  dialog.fb-dlg .fb-x { border-radius: 10px; }      /* окно 20, отступ 10 */
}
