/* Шаблон «izolation» (редизайн 2026) — общие стили сайта: токены, шрифты, шапка и меню, подвал, кнопки, окна, формы, квиз.
   Стили конкретных страниц живут в шаблонах их компонентов (style.css), сюда не добавляются.
   Шрифты — с нашего сервера (вариативные Inter и Oswald, кириллица и латиница), font-display: swap. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(fonts/inter-latin.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: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500 700; font-display: swap; src: url(fonts/oswald-latin.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 {
  --bg: #F2F2F2; --ink: #2F323F; --muted: #5F6270; --line: #E3E3E7; --soft: #F4F4F2; --white: #FFFFFF;
  --y: #F6C849; --y-text: #A87A06; --dark: #0B0B0D; --night: #0E0E11; --graphite: #20222B; --foot: #191919; --err: #B00D24;
  --disp: 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --gutter: 80px; --gap: 120px; --h2: 64px; --head-gap: 48px;
}

/* ——— основа ——— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
html.lock { overflow: hidden; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 3px; }
.ico { display: block; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 12px; background: var(--y); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 16px; }
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.page { display: block; }

/* ——— общие элементы ——— */
.main { display: flex; flex-direction: column; gap: var(--gap); padding-block: 48px var(--gap); }
.main > * { min-width: 0; }
.h2 { font: 700 var(--h2)/0.95 var(--disp); text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.sec { display: flex; flex-direction: column; gap: var(--head-gap); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.sec-head > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.sec-head p { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 720px; }
.eb { font-size: 12px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--y-text); }
.label { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.chip { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); background: var(--y); padding: 6px 12px; border-radius: 9px; }
.emo { width: 52px; height: 52px; border-radius: 16px; background: var(--white); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.emo img { width: 30px; height: 30px; display: block; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--y); padding-bottom: 2px; white-space: nowrap; }
.link-arrow:hover { border-color: var(--ink); }
.lnk { padding: 0; border: 0; background: none; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--y); }

/* кнопки */
.btn-y, .btn-ink, .btn-line, .btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 40px; font-size: 17px; font-weight: 700; line-height: 22px; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn-y { padding: 15px 28px; border: 0; background: var(--y); color: var(--ink); }
.btn-y:hover { filter: brightness(1.05); }
.btn-ink { padding: 15px 22px; border: 0; background: var(--ink); color: #FFFFFF; font-size: 16px; }
.btn-line { padding: 14px 20px; border: 1.5px solid var(--line); background: none; color: var(--ink); font-size: 16px; }
.btn-ghost { padding: 14px 22px; border: 1.5px solid rgba(255,255,255,0.35); background: none; color: #FFFFFF; font-size: 16px; font-weight: 600; }
.btn-ghost:hover { border-color: #FFFFFF; }
.btn-y.sm, .btn-ink.sm { padding: 11px 18px; font-size: 15px; }
.btn-y.big { width: 100%; padding: 18px 24px; font-size: 18px; border-radius: 18px; }
.btn-y.off { opacity: 0.5; }
.round { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.round.y { background: var(--y); color: var(--ink); }
.round.g { background: var(--bg); color: var(--ink); }

/* кадрирование картинок из админки (описание файла «center 40%» → классы fp fx-50 fy-40; шаг 5 %) — без style="" в разметке */
.fp { object-position: var(--fx, 50%) var(--fy, 50%); }
.fx-0 { --fx: 0%; } .fx-5 { --fx: 5%; } .fx-10 { --fx: 10%; } .fx-15 { --fx: 15%; } .fx-20 { --fx: 20%; } .fx-25 { --fx: 25%; } .fx-30 { --fx: 30%; } .fx-35 { --fx: 35%; } .fx-40 { --fx: 40%; } .fx-45 { --fx: 45%; } .fx-50 { --fx: 50%; } .fx-55 { --fx: 55%; } .fx-60 { --fx: 60%; } .fx-65 { --fx: 65%; } .fx-70 { --fx: 70%; } .fx-75 { --fx: 75%; } .fx-80 { --fx: 80%; } .fx-85 { --fx: 85%; } .fx-90 { --fx: 90%; } .fx-95 { --fx: 95%; } .fx-100 { --fx: 100%; }
.fy-0 { --fy: 0%; } .fy-5 { --fy: 5%; } .fy-10 { --fy: 10%; } .fy-15 { --fy: 15%; } .fy-20 { --fy: 20%; } .fy-25 { --fy: 25%; } .fy-30 { --fy: 30%; } .fy-35 { --fy: 35%; } .fy-40 { --fy: 40%; } .fy-45 { --fy: 45%; } .fy-50 { --fy: 50%; } .fy-55 { --fy: 55%; } .fy-60 { --fy: 60%; } .fy-65 { --fy: 65%; } .fy-70 { --fy: 70%; } .fy-75 { --fy: 75%; } .fy-80 { --fy: 80%; } .fy-85 { --fy: 85%; } .fy-90 { --fy: 90%; } .fy-95 { --fy: 95%; } .fy-100 { --fy: 100%; }
.emo-t { font-size: 26px; line-height: 1; }
.tmp-list { display: grid; gap: 10px; padding: 0; list-style: none; font-size: 18px; font-weight: 600; }

/* хлебные крошки */
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs span[aria-current] { color: var(--ink); }

/* ——— шапка: «пилюля», липкая; белая над первым экраном → графитовая над светлыми блоками ——— */
.site-head { position: fixed; left: 0; right: 0; top: 0; z-index: 60; padding-top: 20px; transition: padding-top .3s ease; pointer-events: none; }
.site-head .wrap { position: relative; }
.site-head .wrap > * { pointer-events: auto; }
.site-head.scrolled { padding-top: 12px; }
.head-pill { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 24px; border-radius: 60px; background: var(--white); color: var(--ink); line-height: normal; transition: background-color .35s ease, box-shadow .35s ease; }
.site-head.scrolled .head-pill { box-shadow: 0 14px 34px rgba(20,20,30,0.18); }
.head-logo { flex-shrink: 0; }
.head-pill .logo { display: block; height: 52px; width: auto; }   /* логотип с обводкой (Савва 12.10: «плохо читается») — крупнее, без строки izolation.ru */
.head-city { display: flex; align-items: center; gap: 6px; flex-shrink: 0; font-size: 15px; font-weight: 500; white-space: nowrap; }
.head-phone { display: flex; flex-direction: column; gap: 1px; flex-shrink: 0; }
.head-phone a { font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none; }
.head-phone span { font-size: 12px; color: var(--muted); }
.head-book { flex-shrink: 0; padding: 13px 22px; border-radius: 60px; background: var(--y); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap; }
.head-mob { display: none; gap: 8px; margin-left: auto; }
.site-head.dark .head-pill { background: var(--graphite); color: #FFFFFF; box-shadow: 0 18px 40px rgba(20,20,30,0.28); }
.site-head.dark .head-phone span { color: rgba(255,255,255,0.6); }
.site-head.dark .round.g { background: rgba(255,255,255,0.1); color: #FFFFFF; }
/* пункты меню */
.nv { display: flex; align-items: center; gap: 2px; flex-grow: 1; min-width: 0; }
.nv-a, .nv-b { display: inline-flex; align-items: center; gap: 4px; padding: 10px 6px; border: 0; border-radius: 30px; background: none; cursor: pointer; color: inherit; text-decoration: none; font: 500 15px/1 var(--sans); white-space: nowrap; transition: background .2s; }
.nv-a:hover, .nv-b:hover, .nv-b[aria-expanded="true"] { background: var(--bg); }
.nv-a[aria-current], .nv-b.cur { box-shadow: inset 0 -2px 0 var(--y); border-radius: 0; }
.nv-b .chv { opacity: 0.6; transition: transform .25s; }
.nv-b[aria-expanded="true"] .chv { transform: rotate(180deg); opacity: 1; }
.site-head.dark .nv-a:hover, .site-head.dark .nv-b:hover, .site-head.dark .nv-b[aria-expanded="true"] { background: rgba(255,255,255,0.1); }
/* выделенный пункт (ACCENT = Y — «Сертификаты»: кнопка подарка, Савва 12.10) */
.nv-a.nv-hl { gap: 7px; margin: 0 4px; padding: 9px 14px 9px 10px; border-radius: 30px; background: #FFF1C7; color: var(--ink); font-weight: 700; box-shadow: inset 0 0 0 1.5px #F6C849; }
.nv-a.nv-hl:hover { background: #FFE594; }
.nv-a.nv-hl[aria-current] { border-radius: 30px; box-shadow: inset 0 0 0 2px var(--ink); }
.nv-a.nv-hl img { width: 20px; height: 20px; }
.site-head.dark .nv-a.nv-hl { background: rgba(246,200,73,0.16); color: #FFFFFF; box-shadow: inset 0 0 0 1.5px rgba(246,200,73,0.6); }
.site-head.dark .nv-a.nv-hl:hover { background: rgba(246,200,73,0.28); }
@media (max-width: 1400px) and (min-width: 1281px) { .head-city { display: none; } }
@media (max-width: 1439px) and (min-width: 1281px) {   /* узкий компьютер: логотип и пункт «Сертификаты» компактнее — меню помещается в одну строку */
  .head-pill .logo { height: 44px; }
  .nv-a, .nv-b { padding-inline: 5px; }
  .nv-a.nv-hl { margin: 0 2px; padding: 8px 10px 8px 8px; gap: 5px; } }
@media (max-width: 1310px) and (min-width: 1281px) { .nv-a, .nv-b { padding-inline: 4px; } .nv-a.nv-hl { padding: 8px 9px 8px 7px; } }
/* выпадающая панель — под «пилюлей», на её ширину; сверху невидимый мостик, чтобы курсор не «ронял» меню */
.mm { position: absolute; left: var(--gutter); right: var(--gutter); top: 100%; z-index: 70; padding-top: 10px; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
.mm.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .22s ease, transform .22s ease; }
.mm-in { display: grid; gap: 14px; padding: 18px; border-radius: 28px; background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(20,20,30,0.22), 0 0 0 1px rgba(20,20,30,0.04); }
.mm-in.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mm-in.grid4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mm-in.grid5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mm-t { display: flex; flex-direction: column; gap: 6px; padding: 8px 8px 14px; border-radius: 20px; color: var(--ink); text-decoration: none; transition: background .2s; }
.mm-t .ph { display: block; height: 150px; margin-bottom: 8px; border-radius: 16px; overflow: hidden; background: #111; }
.mm-in.grid5 .mm-t .ph { height: 132px; }
.mm-t img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.mm-t img.pos-20 { object-position: center 20%; } .mm-t img.pos-30 { object-position: center 30%; } .mm-t img.pos-40 { object-position: center 40%; }
.mm-t img.pos-60 { object-position: center 60%; } .mm-t img.pos-70 { object-position: center 70%; } .mm-t img.pos-80 { object-position: center 80%; }
.mm-t b { padding-inline: 6px; font: 600 24px/1 var(--disp); text-transform: uppercase; }
.mm-in.grid5 .mm-t b { font-size: 22px; }
.mm-t > span:last-child { padding-inline: 6px; font-size: 14px; color: var(--muted); }
.mm-t:hover { background: var(--bg); }
.mm-t:hover img { transform: scale(1.06); }
.mm-f { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 14px 14px 22px; border-radius: 18px; background: #FDF3D2; font-size: 15px; color: var(--muted); }
.mm-f b { color: var(--ink); }
.mm-in.mm-ab { grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; }
.mm-ls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; align-content: start; }
.mm-l { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 18px; color: var(--ink); text-decoration: none; transition: background .2s; }
.mm-l .emo { width: 48px; height: 48px; border-radius: 14px; background: var(--bg); }
.mm-l .emo img { width: 26px; height: 26px; }
.mm-l b { display: block; font-size: 16px; font-weight: 700; }
.mm-l small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.mm-l:hover { background: var(--bg); }
.mm-c { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--graphite); color: #FFFFFF; }
.mm-c .label { color: var(--y); font-size: 11px; }
.mm-c > b { font: 600 24px/1.05 var(--disp); text-transform: uppercase; }
.mm-c ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mm-c li { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: rgba(255,255,255,0.65); }
.mm-c li i { font: 600 26px/1 var(--disp); font-style: normal; color: #FFFFFF; }
.mm-ph { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 18px; font-weight: 700; color: var(--y); text-decoration: none; }
.mm-c .sm { margin-top: -8px; font-size: 12px; color: rgba(255,255,255,0.6); }

/* ——— меню на весь экран (≤ 1280) ——— */
.mn { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--bg); transform: translateX(100%); transition: transform .32s cubic-bezier(.3,.8,.3,1); }
.mn[hidden] { display: none; }
.mn.open { transform: none; }
@media (min-width: 600px) {
  .mn { left: auto; width: 440px; box-shadow: -30px 0 80px rgba(0,0,0,0.25); }
  html.mn-on body::after { content: ''; position: fixed; inset: 0; z-index: 190; background: rgba(12,12,16,0.5); }
}
.mn-top { display: flex; align-items: center; gap: 8px; padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; background: var(--white); box-shadow: 0 6px 20px rgba(20,20,30,0.06); }
.mn-top .logo { height: 40px; width: auto; margin-right: auto; }
.mn-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 12px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.mn-nav { display: flex; flex-direction: column; padding: 6px 18px; border-radius: 24px; background: var(--white); }
.mn-a, .mn-b { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer;
  font: 600 22px/1 var(--disp); text-transform: uppercase; color: var(--ink); text-decoration: none; text-align: left; }
.mn-nav > :last-child, .mn-nav > .mn-g:last-child .mn-b { border-bottom: 0; }
.mn-a .ico { opacity: 0.4; }
.mn-tx { display: inline-flex; align-items: center; gap: 10px; }
.mn-hl .mn-tx { padding: 6px 16px 6px 10px; margin: -6px 0; border-radius: 30px; background: #FFF1C7; box-shadow: inset 0 0 0 1.5px #F6C849; }
.mn-tx img { width: 24px; height: 24px; }
.mn-b .chv { transition: transform .25s; }
.mn-b[aria-expanded="true"] .chv { transform: rotate(180deg); }
.mn-b[aria-expanded="true"] { border-bottom-color: transparent; }
.mn-p { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mn-ts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mn-ts .mm-t { padding: 0 0 6px; gap: 4px; }
.mn-ts .mm-t .ph { height: 96px; margin-bottom: 6px; border-radius: 14px; }
.mn-ts .mm-t b { padding: 0 2px; font-size: 17px; }
.mn-ts .mm-t > span:last-child { padding: 0 2px; font-size: 12px; }
.mn-ts .mm-t:last-child:nth-child(odd) { grid-column: 1 / -1; }
.mn-ls { display: flex; flex-direction: column; gap: 2px; }
.mn-ls .mm-l { padding: 8px 0; }
.mn-ls .mm-l .emo { width: 42px; height: 42px; }
.mn-quiz { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 0; border-radius: 22px; background: var(--y); color: var(--ink); text-align: left; cursor: pointer; }
.mn-quiz .emo { width: 46px; height: 46px; background: rgba(255,255,255,0.6); }
.mn-quiz > span:nth-child(2) { flex: 1; }
.mn-quiz b { display: block; font-size: 16px; }
.mn-quiz small { font-size: 13px; color: rgba(47,50,63,0.75); }
.mn-ct { display: flex; flex-direction: column; gap: 6px; padding: 4px 4px 0; }
.mn-tel { font: 600 30px/1 var(--disp); color: var(--ink); text-decoration: none; }
.mn-ct > span { font-size: 13px; color: var(--muted); }
.mn-soc { display: flex; gap: 8px; margin-top: 8px; }
.mn-soc a { width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.mn-bot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--white); box-shadow: 0 -8px 24px rgba(20,20,30,0.08); }
.mn-bot .btn-y, .mn-bot .btn-line { padding: 15px 10px; font-size: 15px; }

/* ——— первый экран текстовых страниц: тёмный, фирменные соты справа ——— */
.ptop { position: relative; isolation: isolate; overflow: hidden; padding: 176px 0 88px; color: #FFFFFF;
  background: radial-gradient(38% 60% at 80% 55%, rgba(246,200,73,0.2), rgba(246,200,73,0) 70%), var(--night); }
.ptop::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(img/hex.svg) 0 0 / 360px auto repeat;
  -webkit-mask-image: radial-gradient(60% 120% at 85% 50%, #000 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.1) 80%, rgba(0,0,0,0.04) 100%);
  mask-image: radial-gradient(60% 120% at 85% 50%, #000 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.1) 80%, rgba(0,0,0,0.04) 100%); }
.ptop .wrap { display: flex; flex-direction: column; gap: 18px; }
.ptop h1 { max-width: 980px; font: 700 72px/1.02 var(--disp); text-transform: uppercase; text-wrap: balance; }
.ptop .lead { max-width: 640px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,0.75); }
.ptop + .wrap .crumbs { padding-top: 40px; }

/* ——— подвал ——— */
.pat { height: 44px; background: url(img/pat-strip.webp) repeat-x 0 0 / auto 100%; }
.foot { background: var(--foot); color: #FFFFFF; }
.foot a { color: inherit; text-decoration: none; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 64px; padding-block: 56px 32px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot-brand .logo { height: 56px; width: auto; }
.foot-tel { font-size: 30px; font-weight: 600; }
.foot-mail { font-size: 17px; }
.foot-hr { font-size: 14px; color: #8C8C94; }
.foot-soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.foot-soc a { display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 40px; background: #2A2A2E; font-size: 15px; }
.foot-soc a:hover { background: #34343A; }
.foot-col { display: flex; flex-direction: column; gap: 12px; }
.foot-h { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #8C8C94; }
.foot-col a { font-size: 15px; }
.foot-col a:hover, .foot-legal a:hover { color: var(--y); }
.foot-rates { display: flex; flex-direction: column; gap: 18px; }
.rt { display: flex; align-items: center; gap: 10px; }
.rt img { width: 34px; height: 34px; border-radius: 50%; }
.rt span { display: flex; flex-direction: column; gap: 3px; }
.rt .stars { display: flex; gap: 2px; color: var(--y); }
.rt small { font-size: 13px; color: #BDBDC4; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 20px 40px; border-top: 1px solid #2E2E33; }
.foot-legal a, .foot-copy { font-size: 13px; color: #8C8C94; }
.foot-copy { margin-left: auto; }

/* ——— плавающая кнопка брони и нижняя панель телефона ——— */
.fab { position: fixed; right: 32px; bottom: 32px; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 8px 24px 8px 8px; border-radius: 60px; background: var(--ink); color: #FFFFFF; text-decoration: none;
  box-shadow: 0 16px 40px rgba(20,20,30,0.35); transition: transform .25s ease, opacity .25s ease, background .2s ease; }
.fab .ic { width: 48px; height: 48px; border-radius: 50%; background: var(--y); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(246,200,73,0.25); }
.fab b { display: block; font-size: 16px; white-space: nowrap; }
.fab small { display: block; font-size: 12px; color: #BDBDC4; white-space: nowrap; }
.fab:hover { background: var(--y); color: var(--ink); transform: translateY(-4px); }
.fab:hover small { color: rgba(47,50,63,0.7); }
.fab:hover .ic { background: var(--ink); color: var(--y); }
.fab.hide { opacity: 0; transform: translateY(20px); pointer-events: none; }
.bottom-bar { display: none; }

/* ——— окна: десктоп — по центру, телефон — шторка снизу ——— */
.pp { position: fixed; inset: 0; z-index: 180; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pp[hidden] { display: none; }
.pp-bg { position: absolute; inset: 0; background: rgba(12,12,16,0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.pp-box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain; padding: 36px; border-radius: 28px; background: var(--white);
  box-shadow: 0 40px 100px rgba(0,0,0,0.35); opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.9,.3,1); }
.pp.show .pp-bg { opacity: 1; }
.pp.show .pp-box { opacity: 1; transform: none; }
.pp-box.narrow { width: min(480px, 100%); }
.pp-box.quiz { width: min(560px, 100%); padding: 0; }
.pp-x { position: absolute; right: 16px; top: 16px; z-index: 5; width: 40px; height: 40px; }
.pp-hdl { display: none; }
.pp-head { display: flex; flex-direction: column; gap: 10px; padding-right: 40px; }
.pp h3 { font: 700 36px/1 var(--disp); text-transform: uppercase; color: var(--ink); }
.pp-head p { font-size: 15px; line-height: 1.5; color: var(--muted); }
/* окно «Что бронируем?» (#pp-book, inc/bookpick.php; Савва 12.10 — вариант Б): шаг 1 — плитки, шаг 2 — список квестов с фильтром или залов */
.pp-box.bp { width: min(800px, 100%); }
.bp-st { display: flex; flex-direction: column; gap: 18px; }
.bp-st[hidden] { display: none; }
.bp-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.bp-k { position: relative; display: block; height: 196px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #111114; color: #FFFFFF; text-align: left; text-decoration: none; cursor: pointer; isolation: isolate; }
.bp-k img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.bp-k::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10,10,12,0) 35%, rgba(10,10,12,0.88) 100%); }
.bp-k:hover img { transform: scale(1.06); }
.bp-k.soon img { filter: grayscale(0.85); }
.bp-kt { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 4px; }
.bp-kt b { font: 600 20px/1 var(--disp); text-transform: uppercase; }
.bp-kt small { font-size: 12px; line-height: 1.3; color: rgba(255,255,255,0.86); }
.bp-help { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--y); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.bp-help .emo { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,0.6); }
.bp-help > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bp-help b { font-size: 15px; }
.bp-help small { font-size: 13px; color: rgba(47,50,63,0.75); }
.bp-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; }
.bp-back .bk { transform: rotate(180deg); }
.bp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-chips button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 0; border-radius: 20px; background: var(--bg); color: var(--ink); font: 600 14px/1 var(--sans); cursor: pointer; }
.bp-chips button i { font-style: normal; font-size: 12px; opacity: 0.55; }
.bp-chips button[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.bp-list { display: flex; flex-direction: column; gap: 8px; }
.bp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 36px; gap: 14px; align-items: center; padding: 8px 10px 8px 8px; border-radius: 16px; background: var(--bg); color: var(--ink); text-decoration: none; transition: background .2s; }
.bp-row[hidden] { display: none; }
.bp-row:hover { background: #FFF1C7; }
.bp-row img, .bp-ph { display: block; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: #DADADF; }
.bp-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bp-t b { font: 600 19px/1.05 var(--disp); text-transform: uppercase; }
.bp-t small { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.bp-pr { display: flex; flex-direction: column; align-items: flex-end; font-size: 15px; font-weight: 700; white-space: nowrap; }
.bp-pr small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.bp-go { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--y); }
.bp-k:focus-visible, .bp-row:focus-visible, .bp-help:focus-visible, .bp-back:focus-visible, .bp-chips button:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.okc { width: 64px; height: 64px; border-radius: 50%; background: var(--y); color: var(--ink); display: flex; align-items: center; justify-content: center; animation: ppPop .45s cubic-bezier(.2,1.6,.4,1); }
@keyframes ppPop { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* поля и согласия (согласия — отдельными галками, ФЗ-152) */
.fls { display: flex; flex-direction: column; gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl-l { font-size: 14px; font-weight: 700; color: var(--ink); }
.fl input, .fl textarea { width: 100%; padding: 15px 16px; border: 0; border-radius: 14px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); font: 500 16px/1.3 var(--sans); color: var(--ink); transition: box-shadow .2s, background .2s; }
.fl input:focus, .fl textarea:focus { outline: none; background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.fl-e { display: none; font-size: 12px; font-weight: 600; color: var(--err); }
.fl.err input { background: #FFF6F6; box-shadow: inset 0 0 0 2px #E0475A; }
.fl.err .fl-e { display: block; }
.fl.ok input { box-shadow: inset 0 0 0 1px #9BD3A4; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.css { display: flex; flex-direction: column; gap: 10px; }
.cs { position: relative; display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.cs input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cs .bx { width: 22px; height: 22px; flex-shrink: 0; border-radius: 7px; background: var(--white); box-shadow: inset 0 0 0 2px #C9C9D1; display: flex; align-items: center; justify-content: center; transition: background .15s, box-shadow .15s; }
.cs .bx svg { opacity: 0; color: var(--ink); }
.cs input:checked + .bx { background: var(--y); box-shadow: inset 0 0 0 2px var(--y); }
.cs input:checked + .bx svg { opacity: 1; }
.cs input:focus-visible + .bx { outline: 3px solid var(--y); outline-offset: 2px; }
.cs a { color: var(--ink); font-weight: 600; }
.cs.err .bx { box-shadow: inset 0 0 0 2px #E0475A; }

/* заказ звонка */
.cl-form { display: flex; flex-direction: column; gap: 22px; }
.cl-h { margin-top: -12px; font-size: 12px; color: var(--muted); text-align: center; }
.cl-err { font-size: 13px; font-weight: 600; color: var(--err); text-align: center; }
.cl-err[hidden] { display: none; }
.cl-ok { display: none; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0 4px; text-align: center; }
.cl-ok p { color: var(--muted); }
.cl[data-st="ok"] .cl-form { display: none; }
.cl[data-st="ok"] .cl-ok { display: flex; }
.cl[data-st="busy"] #cl-go { opacity: 0.6; pointer-events: none; }

/* cookie */
.ck { position: fixed; left: 24px; bottom: 24px; z-index: 150; width: min(440px, calc(100vw - 32px)); display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; border-radius: 22px; background: var(--white);
  box-shadow: 0 20px 60px rgba(20,20,30,0.25); animation: ckIn .45s cubic-bezier(.2,.9,.3,1); }
.ck[hidden] { display: none; }
.ck .emo { width: 44px; height: 44px; background: var(--bg); }
.ck .emo img { width: 26px; height: 26px; }
.ck p { font-size: 12px; line-height: 1.45; color: var(--muted); }
.ck a { color: var(--ink); font-weight: 600; }
@keyframes ckIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* ——— квиз «Подберём квест» (окном и блоком на главной) ——— */
.qz { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 26px; background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(20,20,30,0.18); }
.qz.in-pp { padding: 36px 32px 32px; box-shadow: none; }
.qz-pr { display: flex; flex-direction: column; gap: 8px; }
.qz.in-pp .qz-pr { padding-right: 52px; }
.qz-pr div { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.qz-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.qz-bar i { display: block; height: 100%; border-radius: 3px; background: var(--y); transition: width .4s cubic-bezier(.3,.8,.3,1); }
.qz-q { font: 600 30px/1.05 var(--disp); text-transform: uppercase; }
.qz-body { display: flex; flex-direction: column; gap: 8px; animation: qzIn .35s ease; }
.qz-body.back { animation-name: qzBack; }
@keyframes qzIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes qzBack { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.qz-o { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--white); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; text-align: left; color: var(--ink); transition: box-shadow .15s, background .15s; }
.qz-o:hover { box-shadow: inset 0 0 0 2px #C9C9D1; }
.qz-o img { width: 26px; height: 26px; flex-shrink: 0; }
.qz-o .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qz-o b { font-size: 16px; font-weight: 600; }
.qz-o small { font-size: 12px; color: var(--muted); }
.qz-o .mk, .qz-pic .mk { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.qz-o .mk { box-shadow: inset 0 0 0 2px var(--line); }
.qz-o .mk svg, .qz-pic .mk svg { opacity: 0; color: var(--ink); }
.qz-o[aria-pressed="true"] { background: #FDF3D2; box-shadow: inset 0 0 0 2px var(--y); }
.qz-o[aria-pressed="true"] .mk { background: var(--y); box-shadow: none; }
.qz-o[aria-pressed="true"] .mk svg, .qz-pic[aria-pressed="true"] .mk svg { opacity: 1; }
.qz-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.qz-pic { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 104px; padding: 10px 12px; border: 0; border-radius: 16px; overflow: hidden; background: #111; color: #FFFFFF; text-align: left; cursor: pointer; }
.qz-pic img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.qz-pic::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,12,0.05) 20%, rgba(10,10,12,0.85) 100%); }
.qz-pic b, .qz-pic small { position: relative; z-index: 2; }
.qz-pic b { font-size: 15px; }
.qz-pic small { font-size: 11px; opacity: 0.8; }
.qz-pic:hover img.bg { transform: scale(1.06); }
.qz-pic .mk { position: absolute; right: 8px; top: 8px; z-index: 2; background: rgba(255,255,255,0.85); }
.qz-pic[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--y); }
.qz-pic[aria-pressed="true"] .mk { background: var(--y); }
.qz-pic.emo-only { grid-column: 1 / -1; height: 60px; flex-direction: row; align-items: center; gap: 12px; background: #FDF3D2; color: var(--ink); }
.qz-pic.emo-only::before { display: none; }
.qz-pic.emo-only img { position: relative; z-index: 2; width: 28px; height: 28px; }
.qz-pic.emo-only small { opacity: 1; color: var(--muted); }
.qz-rng { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px; border-radius: 18px; box-shadow: inset 0 0 0 2px var(--line); }
.qz-rng.off { opacity: 0.45; }
.qz-num { display: flex; align-items: baseline; gap: 10px; }
.qz-num b { font: 600 64px/0.9 var(--disp); font-variant-numeric: tabular-nums; }
.qz-num span { font-size: 16px; font-weight: 600; color: var(--muted); }
.qz-rng input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--y) var(--p, 20%), var(--line) var(--p, 20%)); outline: none; }
.qz-rng input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 3px var(--y), 0 4px 12px rgba(0,0,0,0.2); cursor: grab; }
.qz-rng input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 3px solid var(--y); border-radius: 50%; background: var(--white); cursor: grab; }
.qz-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.qz-skip { align-self: flex-start; padding: 10px 14px; border: 0; border-radius: 30px; background: var(--soft); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.qz-skip[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; }
.qz-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.qz-back { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px; border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; }
.qz-back[hidden] { display: inline-flex; visibility: hidden; }
.qz-next { display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border: 0; border-radius: 40px; background: var(--ink); color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer; }
.qz-next.off { opacity: 0.4; }
.qz-hint { font-size: 12px; color: var(--muted); }
.qz-form { display: flex; flex-direction: column; gap: 14px; }
.qz-form > p { font-size: 14px; line-height: 1.5; color: var(--muted); }
.qz-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; animation: qzIn .4s ease; }
.qz-done h3 { font: 700 34px/1 var(--disp); text-transform: uppercase; }
.qz-done p { font-size: 15px; line-height: 1.5; color: var(--muted); }
.qz-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.qz-sum span { padding: 6px 10px; border-radius: 20px; background: var(--soft); font-size: 12px; font-weight: 600; }
.qz-tg { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 18px; background: #E9F6FD; color: var(--ink); text-decoration: none; }
.qz-tg .ic { width: 44px; height: 44px; border-radius: 50%; background: #2AABEE; color: #FFFFFF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qz-tg b { display: block; font-size: 15px; }
.qz-tg small { font-size: 13px; color: var(--muted); }

/* панель администратора сверху — шапка под ней, а не поверх (только для вошедших в админку) */
html.has-panel .site-head { position: absolute; top: var(--panel-h, 0px); }

/* ——— адаптив ——— */
@media (max-width: 1280px) {
  .mm { display: none; }
  .nv { display: none; }
  .head-mob { display: flex; }
  .head-pill .head-phone { margin-left: auto; }
}
@media (min-width: 1281px) { .mn { display: none !important; } }
@media (max-width: 1100px) {
  .foot-in { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (hover: none), (max-width: 899px) { .qz-hint { display: none; } }
@media (max-width: 899px) {
  :root { --gutter: 16px; --gap: 64px; --h2: 40px; --head-gap: 24px; }
  .site-head { padding-top: 12px; }
  .site-head .wrap { padding-inline: 12px; }
  .head-pill { padding: 12px 16px; }
  .head-pill .logo { height: 40px; }
  .head-city, .head-pill .head-phone, .head-pill .head-book { display: none; }
  .main { padding-top: 32px; }
  .sec-head p { font-size: 15px; }
  .ptop { padding: 112px 0 64px; }
  .ptop::before { opacity: 0.35; }
  .ptop h1 { font-size: 40px; }
  .ptop .lead { font-size: 15px; }
  .ptop + .wrap .crumbs { padding-top: 24px; }
  .pat { height: 32px; }
  .foot-in { grid-template-columns: 1fr; gap: 28px; padding-block: 40px 24px; }
  .foot-tel { font-size: 26px; }
  .foot-rates { flex-direction: row; flex-wrap: wrap; }
  .foot-legal { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .foot-copy { margin-left: 0; }
  .fab { display: none; }
  .bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(242,242,242,0.96);
    box-shadow: 0 -8px 24px rgba(0,0,0,0.12); transform: translateY(110%); transition: transform .3s ease; }
  .bottom-bar.show { transform: none; }
  .bottom-bar .btn-y { flex-grow: 1; padding: 14px; font-size: 16px; }
  .bottom-bar .round { width: 50px; height: 50px; background: var(--ink); color: #FFFFFF; }
  .pp { align-items: flex-end; padding: 0; }
  .pp-box, .pp-box.narrow, .pp-box.quiz { width: 100%; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 24px 24px 0 0; padding: 28px 16px calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateY(40px); }
  .pp-box.quiz { padding: 0 0 env(safe-area-inset-bottom, 0px); }
  .pp-hdl { display: block; position: absolute; left: 50%; top: 8px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #D4D4DA; }
  .pp-x { right: 10px; top: 12px; }
  .pp h3 { font-size: 30px; }
  .bp-kinds { grid-template-columns: 1fr 1fr; }
  .bp-k { height: 124px; }
  .bp-k:first-child { grid-column: 1 / -1; }
  .bp-kt b { font-size: 18px; }
  .bp-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .bp-row img, .bp-ph { width: 56px; height: 56px; }
  .bp-go { display: none; }
  .bp-t b { font-size: 17px; }
  .ck { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; z-index: 160; }
  .bottom-bar.show ~ .ck { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  .qz { padding: 20px 16px; border-radius: 22px; }
  .qz.in-pp { padding: 32px 16px 20px; }
  .qz-q { font-size: 26px; }
  .qz-pic { height: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
