:root{
  --text:#1d1d1f; --text-2:#424245; --muted:#6e6e73;
  --bg:#ffffff; --bg-alt:#f5f5f7; --line:#e8e8ed; --line-2:#d2d2d7;
  --blue:#0071e3; --link:#0066cc; --accent:#b64400;
  --radius-l:28px; --radius-m:20px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Inter","Helvetica Neue",Arial,sans-serif;
  font-size:17px;line-height:1.47;-webkit-font-smoothing:antialiased}
a{color:var(--link);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,p{margin:0}
.wrap{max-width:680px;margin:0 auto}

/* Навігація */
.nav{position:sticky;top:0;z-index:10;height:52px;display:flex;align-items:center;justify-content:space-between;
  padding:0 20px;background:rgba(255,255,255,.8);
  -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);border-bottom:1px solid var(--line)}
.nav__name{font-weight:600;letter-spacing:-.01em;color:var(--text)}
.nav__name:hover{text-decoration:none}
.nav__right{display:flex;align-items:center;gap:4px}
.nav__cta{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:500}
.burger{position:relative;width:44px;height:44px;margin-right:-10px;border:0;background:none;cursor:pointer;padding:0;color:var(--text)}
.burger__line{position:absolute;left:13px;width:18px;height:1.5px;border-radius:1px;background:currentColor;
  transition:transform .35s cubic-bezier(.4,0,.2,1),top .35s cubic-bezier(.4,0,.2,1)}
.burger__line--top{top:18px}
.burger__line--bottom{top:25px}
.nav.is-open .burger__line--top{top:21.5px;transform:rotate(45deg)}
.nav.is-open .burger__line--bottom{top:21.5px;transform:rotate(-45deg)}
.nav.is-open{background:#fff;border-bottom-color:transparent}
.menu{position:fixed;inset:52px 0 0 0;z-index:9;background:#fff;padding:24px 40px;overflow-y:auto;opacity:0;transition:opacity .3s ease}
.menu.is-open{opacity:1}
.menu[hidden]{display:none}
.menu__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.menu__link{display:flex;align-items:center;min-height:48px;font-size:28px;font-weight:600;letter-spacing:-.015em;color:var(--text);
  opacity:0;transform:translateY(-8px);transition:opacity .4s ease,transform .4s cubic-bezier(.2,.7,.2,1)}
.menu__link:hover{text-decoration:none;color:var(--link)}
.menu__link[aria-current="page"]{color:var(--muted)}
.menu.is-open .menu__link{opacity:1;transform:none}
.menu.is-open li:nth-child(1) .menu__link{transition-delay:.06s}
.menu.is-open li:nth-child(2) .menu__link{transition-delay:.12s}
.menu.is-open li:nth-child(3) .menu__link{transition-delay:.18s}
body.menu-open{overflow:hidden}

/* Типографіка */
.eyebrow{font-size:15px;font-weight:600;color:var(--muted)}
.eyebrow--accent{color:var(--accent)}
.h1{font-size:40px;line-height:1.08;font-weight:700;letter-spacing:-.025em}
.h2{font-size:28px;line-height:1.14;font-weight:700;letter-spacing:-.02em}
.lead{font-size:19px;line-height:1.42}
.small{font-size:14px;color:var(--muted)}
.btn{display:flex;align-items:center;justify-content:center;min-height:50px;width:100%;max-width:320px;border:0;cursor:pointer;
  border-radius:980px;background:var(--blue);color:#fff;font:inherit;font-weight:500}
.btn:hover{background:#0077ed;text-decoration:none}
.btn:disabled{background:#d2d2d7;color:#6e6e73;cursor:not-allowed}
.btn--ghost{background:none;color:var(--link)}
.btn--ghost:hover{background:var(--bg-alt)}

/* Вступ */
.intro{padding:44px 24px 28px;display:flex;flex-direction:column;gap:14px}
.notice{margin:0 20px;padding:18px 20px;border-radius:var(--radius-m);background:var(--bg-alt);display:flex;gap:12px;align-items:flex-start}
.notice svg{flex-shrink:0;margin-top:2px}
.notice p{font-size:15px;line-height:1.5;color:var(--text-2)}

/* Список тестів */
.tests{padding:28px 20px 64px;display:flex;flex-direction:column;gap:12px}
.test-card{display:flex;flex-direction:column;gap:8px;padding:24px 20px;border-radius:var(--radius-m);background:var(--bg-alt);color:var(--text);
  text-align:left;border:0;font:inherit;cursor:pointer;width:100%;transition:transform .3s,box-shadow .3s}
.test-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px -16px rgba(0,0,0,.2);text-decoration:none}
.test-card__meta{font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.test-card__title{font-size:21px;font-weight:600;letter-spacing:-.01em}
.test-card__text{font-size:15px;line-height:1.47;color:var(--muted)}
.test-card__go{font-size:17px;color:var(--link);margin-top:4px}
.test-card--soon{cursor:default;opacity:.75}
.test-card--soon:hover{transform:none;box-shadow:none}

/* Тест */
.quiz{padding:24px 20px 64px}
.quiz__back{display:inline-flex;align-items:center;min-height:44px;font-size:17px;border:0;background:none;color:var(--link);cursor:pointer;padding:0;font-family:inherit}
.quiz__head{display:flex;flex-direction:column;gap:10px;margin:8px 4px 20px}
.progress{position:sticky;top:52px;z-index:5;background:rgba(255,255,255,.92);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);
  padding:12px 4px;margin:0 -4px 8px;display:flex;align-items:center;gap:12px}
.progress__bar{flex:1;height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.progress__fill{height:100%;width:0;background:var(--blue);border-radius:3px;transition:width .35s ease}
.progress__text{font-size:13px;color:var(--muted);min-width:44px;text-align:right}
.q{border:0;margin:0 0 14px;padding:20px 18px;border-radius:var(--radius-m);background:var(--bg-alt)}
.q legend{padding:0;font-size:17px;font-weight:600;line-height:1.35;margin-bottom:14px;float:left;width:100%}
.q__num{color:var(--muted);font-weight:500;margin-right:4px}
.opts{clear:both;display:flex;flex-direction:column;gap:8px}
.opt{position:relative}
.opt input{position:absolute;opacity:0;pointer-events:none}
.opt label{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 16px;border-radius:14px;
  background:#fff;border:1.5px solid transparent;cursor:pointer;font-size:16px;transition:border-color .2s,background .2s}
.opt label::after{content:"";width:20px;height:20px;flex-shrink:0;border-radius:50%;border:1.5px solid var(--line-2);transition:all .2s}
.opt input:checked + label{border-color:var(--blue);background:#f0f6ff}
.opt input:checked + label::after{border-color:var(--blue);background:var(--blue);box-shadow:inset 0 0 0 4px #fff}
.opt input:focus-visible + label{outline:2px solid var(--blue);outline-offset:2px}
.quiz__submit{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:24px}

/* Результат */
.result{padding:24px 20px 64px;display:flex;flex-direction:column;gap:16px}
.result__card{padding:32px 24px;border-radius:var(--radius-l);background:var(--bg-alt);display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.result__score{font-size:64px;line-height:1;font-weight:700;letter-spacing:-.03em}
.result__max{font-size:24px;color:var(--muted);font-weight:500}
.result__level{font-size:21px;font-weight:600}
.scale{width:100%;margin-top:10px}
.scale__track{position:relative;height:8px;border-radius:4px;background:linear-gradient(90deg,#34c759,#ffcc00,#ff9500,#ff3b30)}
.scale__dot{position:absolute;top:50%;width:18px;height:18px;margin-left:-9px;border-radius:50%;background:#fff;border:3px solid var(--text);transform:translateY(-50%);transition:left .6s cubic-bezier(.2,.7,.2,1)}
.scale__labels{display:flex;justify-content:space-between;margin-top:8px;font-size:12px;color:var(--muted)}
.result__text{font-size:17px;line-height:1.53;color:var(--text-2)}
.alert{padding:20px;border-radius:var(--radius-m);background:#fff4f2;border:1px solid #ffd2cc;display:flex;flex-direction:column;gap:12px}
.alert__title{font-size:17px;font-weight:600;color:#a1251b}
.alert p{font-size:15px;line-height:1.5;color:var(--text-2)}
.hotline{display:flex;justify-content:space-between;align-items:center;min-height:56px;padding:0 16px;border-radius:14px;background:#fff;border:1px solid var(--line-2);color:var(--text)}
.hotline:hover{text-decoration:none}
.hotline__name{display:block;font-size:15px;font-weight:600}
.hotline__desc{display:block;font-size:13px;color:var(--muted)}
.hotline__num{font-size:20px;font-weight:600;color:var(--link)}
.result__actions{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:8px}
.source{font-size:13px;line-height:1.5;color:var(--muted)}

/* Футер */
.footer{background:var(--bg-alt);padding:36px 24px calc(36px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.footer p{font-size:13px;color:var(--muted)}

[hidden]{display:none!important}
.fade-in{animation:fadeIn .5s ease both}
@keyframes fadeIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* Шапка ховається при прокрутці вниз */
.nav{transition:transform .35s cubic-bezier(.4,0,.2,1),background .3s}
.nav.is-hidden{transform:translateY(-100%)}
.progress{transition:top .35s cubic-bezier(.4,0,.2,1)}
.nav.is-hidden ~ main .progress{top:0}

@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
@media (min-width:600px){.h1{font-size:52px}}

.intro .lead{color:var(--text)}
.info{padding:56px 24px;display:flex;flex-direction:column;gap:14px}
.info .body{color:var(--text-2);line-height:1.53}
.info ul{margin:0;padding-left:20px;color:var(--text-2);line-height:1.6}
.faq{background:#fff;border-radius:var(--radius-m);padding:6px 20px}
.faq details{border-bottom:1px solid var(--line)}
.faq details:last-child{border-bottom:0}
.faq summary{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:18px 0;font-size:17px;line-height:1.35;font-weight:500}
.faq summary::-webkit-details-marker{display:none}
.faq__plus{flex-shrink:0;font-size:24px;line-height:1;font-weight:300;color:var(--blue);transition:transform .2s}
.faq details[open] .faq__plus{transform:rotate(45deg)}
.faq details p{margin:-4px 0 20px;font-size:16px;line-height:1.5;color:var(--muted)}
.section--alt{background:var(--bg-alt)}
.breadcrumbs{padding:16px 24px 0;font-size:13px;color:var(--muted)}
.breadcrumbs a{color:var(--muted)}

/* ===== Нічна тема (автоматично за налаштуваннями пристрою) ===== */
:root{color-scheme:light dark}
:root[data-theme="light"]{color-scheme:light}
:root[data-theme="dark"]{color-scheme:dark}




/* Нічна тема: авто */
@media (prefers-color-scheme:dark){
:root:not([data-theme="light"]){
    --text:#f5f5f7; --text-2:#d2d2d7; --muted:#a1a1a6;
    --bg:#000000; --bg-alt:#161617; --surface:#2c2c2e; --line:#2c2c2e; --line-2:#424245;
    --blue:#0071e3; --link:#2997ff; --accent:#ff9f45;
  }
:root:not([data-theme="light"]) .nav{background:rgba(22,22,23,.8);border-bottom-color:#2c2c2e}
:root:not([data-theme="light"]) .nav.is-open,:root:not([data-theme="light"]) .menu{background:var(--bg)}
:root:not([data-theme="light"]) .btn:hover{background:#0077ed}
:root:not([data-theme="light"]) .section--dark{background:#0b0b0c}
:root:not([data-theme="light"]) .hero__photo{box-shadow:none}
:root:not([data-theme="light"]) .hotline:hover{background:var(--bg-alt)}
:root:not([data-theme="light"]) img{filter:brightness(.94)}
:root:not([data-theme="light"]) .faq,:root:not([data-theme="light"]) .hotline{background:var(--surface)}
:root:not([data-theme="light"]) .test-card:hover{box-shadow:0 14px 30px -16px rgba(0,0,0,.7)}
:root:not([data-theme="light"]) .progress{background:rgba(0,0,0,.85)}
:root:not([data-theme="light"]) .opt label{background:var(--surface)}
:root:not([data-theme="light"]) .opt input:checked + label{background:#0a2a4d}
:root:not([data-theme="light"]) .opt input:checked + label::after{box-shadow:inset 0 0 0 4px var(--surface)}
:root:not([data-theme="light"]) .scale__dot{background:var(--bg)}
:root:not([data-theme="light"]) .btn:disabled{background:#3a3a3c;color:#8e8e93}
:root:not([data-theme="light"]) .btn--ghost:hover{background:var(--bg-alt)}
:root:not([data-theme="light"]) .alert{background:#2a1513;border-color:#5c2a24}
:root:not([data-theme="light"]) .alert__title{color:#ff8a7a}
}
/* Нічна тема: вибрана вручну */
:root[data-theme="dark"]{
    --text:#f5f5f7; --text-2:#d2d2d7; --muted:#a1a1a6;
    --bg:#000000; --bg-alt:#161617; --surface:#2c2c2e; --line:#2c2c2e; --line-2:#424245;
    --blue:#0071e3; --link:#2997ff; --accent:#ff9f45;
  }
:root[data-theme="dark"] .nav{background:rgba(22,22,23,.8);border-bottom-color:#2c2c2e}
:root[data-theme="dark"] .nav.is-open,:root[data-theme="dark"] .menu{background:var(--bg)}
:root[data-theme="dark"] .btn:hover{background:#0077ed}
:root[data-theme="dark"] .section--dark{background:#0b0b0c}
:root[data-theme="dark"] .hero__photo{box-shadow:none}
:root[data-theme="dark"] .hotline:hover{background:var(--bg-alt)}
:root[data-theme="dark"] img{filter:brightness(.94)}
:root[data-theme="dark"] .faq,:root[data-theme="dark"] .hotline{background:var(--surface)}
:root[data-theme="dark"] .test-card:hover{box-shadow:0 14px 30px -16px rgba(0,0,0,.7)}
:root[data-theme="dark"] .progress{background:rgba(0,0,0,.85)}
:root[data-theme="dark"] .opt label{background:var(--surface)}
:root[data-theme="dark"] .opt input:checked + label{background:#0a2a4d}
:root[data-theme="dark"] .opt input:checked + label::after{box-shadow:inset 0 0 0 4px var(--surface)}
:root[data-theme="dark"] .scale__dot{background:var(--bg)}
:root[data-theme="dark"] .btn:disabled{background:#3a3a3c;color:#8e8e93}
:root[data-theme="dark"] .btn--ghost:hover{background:var(--bg-alt)}
:root[data-theme="dark"] .alert{background:#2a1513;border-color:#5c2a24}
:root[data-theme="dark"] .alert__title{color:#ff8a7a}

/* Перемикач теми */
.theme{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.theme__label{font-size:13px;color:var(--muted);margin-right:2px}
.theme__seg{display:inline-flex;align-items:center;gap:0}
.theme__btn{display:inline-flex;align-items:center;min-height:32px;padding:0 6px;border:0;background:none;color:var(--muted);
  font:inherit;font-size:13px;cursor:pointer}
.theme__btn + .theme__btn::before{content:"·";margin-right:8px;margin-left:-4px;color:var(--muted)}
.theme__btn:hover{color:var(--text);text-decoration:underline}
.theme__btn[aria-pressed="true"]{color:var(--text);font-weight:600;cursor:default;text-decoration:none}
.theme__btn:focus-visible{outline:2px solid var(--blue);outline-offset:1px;border-radius:4px}

h1,h2,h3,.art__lead,.art-card__title{text-wrap:balance}
p,li,.art-card__text{text-wrap:pretty}

.menu.is-open li:nth-child(4) .menu__link{transition-delay:.24s}

.menu__sub{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column}
.menu__sublink{display:flex;align-items:center;min-height:38px;font-size:17px;font-weight:500;color:var(--muted);opacity:0;transform:translateY(-8px);transition:opacity .4s ease .14s,transform .4s ease .14s}
.menu__sublink:hover{color:var(--link);text-decoration:none}
.menu.is-open .menu__sublink{opacity:1;transform:none}

.menu__list[hidden],.menu__pane[hidden]{display:none}
.menu__link{font-size:30px;min-height:54px}
.menu__link--next{justify-content:space-between}
.menu__chev{flex:none;color:var(--muted);margin-left:12px}
.menu__pane{display:block}
.menu__pane .menu__link{font-size:28px;line-height:1.2;padding:6px 0}
.menu__back{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-12px 0 8px -14px;border:0;background:none;color:var(--text);cursor:pointer;padding:0}
.menu__label{margin:34px 0 6px;font-size:15px;color:var(--muted)}
.menu__minor{list-style:none;margin:0;padding:0}
.menu__minor-link{display:flex;align-items:center;min-height:44px;font-size:19px;font-weight:600;color:var(--text)}
.menu__minor-link:hover{color:var(--link);text-decoration:none}
@keyframes paneIn{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
.pane-in{animation:paneIn .38s cubic-bezier(.2,.7,.2,1)}
.pane-in .menu__link{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.pane-in{animation:none}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pp{padding:40px 24px 64px;max-width:720px;margin:0 auto}
.pp__eyebrow{font-size:15px;font-weight:600;color:var(--muted)}
.pp__title{font-size:40px;line-height:1.08;font-weight:700;letter-spacing:-.025em;margin-top:8px;text-wrap:balance}
.pp__date{font-size:15px;color:var(--muted);margin-top:12px}
.pp__lead{font-size:19px;line-height:1.5;color:var(--text-2);margin-top:20px;text-wrap:pretty}
.pp h2{font-size:24px;line-height:1.2;font-weight:700;letter-spacing:-.015em;color:var(--text);margin:40px 0 12px;scroll-margin-top:70px}
.pp p,.pp li{font-size:17px;line-height:1.6;color:var(--text-2);text-wrap:pretty}
.pp p+p{margin-top:12px}
.pp ul{margin:8px 0 0;padding-left:20px;display:flex;flex-direction:column;gap:8px}
.pp__box{margin-top:24px;padding:20px;border-radius:var(--radius-m);background:var(--bg-alt)}
.pp__box p{font-size:16px}
.pp__btn{margin:16px auto 0;display:flex;justify-content:center;align-items:center;min-height:44px;padding:0 20px;border-radius:980px;border:0;background:var(--blue);color:#fff;font:inherit;font-size:16px;font-weight:500;cursor:pointer}
.ck{width:100%;border-collapse:collapse;margin-top:12px;font-size:14px;line-height:1.4}
.ck th,.ck td{text-align:left;vertical-align:top;padding:10px 8px;border-bottom:1px solid var(--line)}
.ck thead th{font-size:12px;color:var(--muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em}
.ck tbody th{font-weight:600;color:var(--text);word-break:break-word}
.ck td{color:var(--text-2)}
@media (max-width:599px){
  .ck thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .ck,.ck tbody,.ck tr,.ck th,.ck td{display:block;width:100%}
  .ck tr{background:var(--bg-alt);border-radius:16px;padding:14px 16px;margin-bottom:10px}
  .ck tbody th{padding:0 0 6px;border:0;font-size:15px}
  .ck td{padding:3px 0;border:0;display:flex;gap:8px}
  .ck td::before{content:attr(data-label);flex:0 0 84px;color:var(--muted)}
}
@media (min-width:600px){.pp__title{font-size:52px}}
.fab{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));z-index:8;display:inline-flex;align-items:center;gap:10px;min-height:52px;padding:0 22px 0 18px;border-radius:980px;background:#0071e3;color:#fff;font-size:17px;font-weight:500;letter-spacing:-.01em;white-space:nowrap;text-decoration:none;box-shadow:0 10px 30px -8px rgba(0,113,227,.55),0 2px 8px rgba(0,0,0,.18);transform:translate(-50%,24px);opacity:0;visibility:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .3s ease,visibility 0s linear .35s}
.fab.is-on{transform:translate(-50%,0);opacity:1;visibility:visible;transition-delay:0s}
.fab:hover{text-decoration:none;background:#0077ed}
.fab:active{background:#006edb}
.fab svg{width:24px;height:24px;flex-shrink:0}
@media (prefers-reduced-motion:reduce){.fab{transition:none}}
@media print{.fab{display:none}}
.cb{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:20;max-width:560px;margin:0 auto;padding:20px;border-radius:20px;background:var(--bg,#fff);color:var(--text,#1d1d1f);border:1px solid var(--line-2,#d2d2d7);box-shadow:0 20px 50px -12px rgba(0,0,0,.28),0 2px 10px rgba(0,0,0,.08);font-family:inherit;transform:translateY(24px);opacity:0;visibility:hidden;transition:transform .35s cubic-bezier(.2,.7,.2,1),opacity .3s ease,visibility 0s linear .35s}
.cb.is-on{transform:none;opacity:1;visibility:visible;transition-delay:0s}
.cb *{box-sizing:border-box}
.cb__t{margin:0 0 6px;font-size:17px;font-weight:600;letter-spacing:-.01em}
.cb__p{margin:0;font-size:14px;line-height:1.45;color:var(--muted,#6e6e73)}
.cb__p a{color:var(--link,#0066cc)}
.cb__row{display:flex;gap:10px;margin-top:16px}
.cb__btn{flex:1;min-height:46px;padding:0 14px;border-radius:980px;border:0;font:inherit;font-size:15px;font-weight:500;cursor:pointer;background:var(--bg-alt,#f5f5f7);color:var(--text,#1d1d1f);box-shadow:inset 0 0 0 1px var(--line-2,#d2d2d7)}
.cb__btn--main{background:#0071e3;color:#fff;box-shadow:none}
.cb__btn:hover{filter:brightness(.97)}
.cb__btn:focus-visible,.cb__link:focus-visible,.cb__sw input:focus-visible+i{outline:2px solid #0071e3;outline-offset:2px}
.cb__link{display:block;margin:12px auto 0;padding:6px 10px;border:0;background:none;font:inherit;font-size:15px;color:var(--link,#0066cc);cursor:pointer}
.cb__opts{margin:14px 0 0;padding:0;list-style:none;border-top:1px solid var(--line,#e8e8ed)}
.cb__opts li{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line,#e8e8ed)}
.cb__opts b{display:block;font-size:15px;font-weight:600}
.cb__opts span{display:block;margin-top:2px;font-size:13px;line-height:1.35;color:var(--muted,#6e6e73)}
.cb__sw{position:relative;flex-shrink:0;width:51px;height:31px}
.cb__sw input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:1}
.cb__sw i{position:absolute;inset:0;border-radius:31px;background:#d2d2d7;transition:background .2s}
.cb__sw i::after{content:"";position:absolute;top:2px;left:2px;width:27px;height:27px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.cb__sw input:checked+i{background:#34c759}
.cb__sw input:checked+i::after{transform:translateX(20px)}
.cb__sw input:disabled{cursor:default}
.cb__sw input:disabled+i{opacity:.5}
.cb [hidden]{display:none!important}
/* Нижнє меню футера з вертикальними роздільниками */
.fnav{display:flex;flex-wrap:wrap;margin-left:-12px;overflow:hidden;row-gap:6px}
.fnav a{padding:0 12px;margin-left:-1px;border-left:1px solid var(--line-2,#d2d2d7);line-height:1.25;color:var(--link,#0066cc)}
body.cb-open .fab{opacity:0!important;visibility:hidden!important}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .cb__sw i{background:#48484a}}
:root[data-theme="dark"] .cb__sw i{background:#48484a}
@media (prefers-reduced-motion:reduce){.cb,.cb__sw i,.cb__sw i::after{transition:none}}
@media print{.cb{display:none}}
.dnav{display:none}
.flang{display:flex;flex-wrap:wrap;margin-left:-12px;overflow:hidden;row-gap:6px}.flang a,.flang span{padding:0 12px;margin-left:-1px;border-left:1px solid var(--line-2,#d2d2d7);line-height:1.25}.flang a{color:var(--link,#0066cc)}.flang span{color:var(--text,#1d1d1f);font-weight:600}
.footer{padding:36px 24px calc(24px + env(safe-area-inset-bottom))!important;gap:0!important}.footer .wrap{gap:16px!important}.footer__meta{margin-top:8px!important;padding-top:16px!important;gap:12px!important;font-size:13px}.footer__meta{display:flex!important;flex-direction:column}.footer__meta p{margin:0}.fcopy a{color:inherit}.fname{color:var(--muted)}.fnav,.flang{margin-left:-10px!important;row-gap:4px!important;font-size:13px}.fnav a,.flang a,.flang span{padding:0 10px!important}.fbar{display:flex;justify-content:space-between;align-items:center;gap:4px 12px;flex-wrap:wrap}.fbar .theme{gap:0}.fbar .theme__label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.fbar .theme__btn{min-height:28px;padding:0 4px}.fcopy{font-size:12px;opacity:.85}
