/* «Афиша выходных + Маршруты и музеи» — общая дизайн-система: тёмная слива и чернила, коралл и золото.
   Разделы дополняют её в afisha.css и places.css, админка — в admin.css. */

:root {
  --ink: #140C1E;
  --bg: #1A1026;
  --bg-2: #22152F;
  --surface: #2A1A3A;
  --surface-2: #34224A;
  --surface-3: #412C5C;
  --line: rgba(255, 236, 214, .10);
  --line-2: rgba(255, 236, 214, .18);
  --text: #F7EFE6;
  --text-2: #D9CBDD;
  --muted: #A898B3;
  --coral: #FF6B57;
  --coral-2: #FF8A6B;
  --gold: #F5B947;
  --gold-2: #FFD58A;
  --mint: #4CCDB6;
  --plum: #3D1F57;
  --danger: #FF5C7A;
  --ok: #5ED39A;
  --cream: #FFF6EC;

  --grad-hero: radial-gradient(120% 140% at 0% 0%, #4A2468 0%, #2A1A3A 42%, #1A1026 100%);
  --grad-coral: linear-gradient(135deg, #FF6B57 0%, #FF8A5C 55%, #F5B947 100%);
  --grad-gold: linear-gradient(135deg, #FFD58A 0%, #F5B947 50%, #E8893D 100%);

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-xs: 8px;
  --r-s: 12px;
  --r: 18px;
  --r-l: 26px;
  --shadow: 0 10px 30px rgba(5, 2, 10, .45);
  --shadow-s: 0 4px 14px rgba(5, 2, 10, .35);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --top-h: 64px;
  --nav-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --maxw: 1240px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding-top: якоря и scrollIntoView (группы дней, тур 360°, аудиогид) не уходят под липкую шапку */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
html.sheet-open { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* фоновые «огни» */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .35; animation: glow 18s var(--ease) infinite alternate; }
.bg-glow span:nth-child(1) { width: 420px; height: 420px; background: #6B2E8F; left: -120px; top: -100px; }
.bg-glow span:nth-child(2) { width: 360px; height: 360px; background: #FF6B57; right: -140px; top: 30vh; opacity: .16; animation-delay: -6s; }
.bg-glow span:nth-child(3) { width: 300px; height: 300px; background: #F5B947; left: 30vw; bottom: -160px; opacity: .12; animation-delay: -11s; }
@keyframes glow { to { transform: translate(40px, 30px) scale(1.12); } }

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(26, 16, 38, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { max-width: var(--maxw); margin: 0 auto; height: var(--top-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--text); }
.brand__logo { width: 40px; height: 40px; flex: none; transition: transform .5s var(--ease-spring); }
.brand:hover .brand__logo { transform: rotate(-12deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; min-width: 0; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand__sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs { display: none; gap: 4px; margin-left: 12px; }
.tabs__a { position: relative; color: var(--text-2); text-decoration: none; font-weight: 700; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.tabs__a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.tabs__a.is-on { color: var(--ink); background: var(--gold); }
.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
@media (min-width: 960px) { .tabs { display: flex; } }
@media (max-width: 420px) { .hide-xs { display: none; } .brand__sub { max-width: 150px; } }
.brand__sub-short { display: none; }
@media (max-width: 400px) { .brand__sub-full { display: none; } .brand__sub-short { display: inline; } }
/* телефон и планшет: шапка плотнее, с тенью — текст под ней не «просвечивает» обрезанным */
@media (max-width: 959px) {
  .topbar { background: rgba(26, 16, 38, .95); box-shadow: 0 6px 18px rgba(5, 2, 10, .38); border-bottom-color: var(--line-2); }
}

.demo-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold-2); border: 1px dashed rgba(245, 185, 71, .55); border-radius: 999px; padding: 3px 9px; white-space: nowrap;
}

/* ---------- Основная область ---------- */
.view { max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter) calc(var(--nav-h) + 28px + var(--safe-b)); min-height: calc(100vh - var(--top-h) - 120px); outline: none; }
@media (min-width: 960px) { .view { padding-bottom: 56px; padding-top: 28px; } }
.boot { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 50vh; color: var(--muted); font-weight: 700; }
.boot__star { color: var(--gold); font-size: 22px; animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.screen { opacity: 0; transform: translateY(12px); transition: opacity .38s var(--ease), transform .45s var(--ease); }
.screen.is-in { opacity: 1; transform: none; }

/* ---------- Заголовки ---------- */
.display { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 7vw, 54px); line-height: 1.02; letter-spacing: -.03em; }
.display em { font-style: normal; background: var(--grad-coral); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.lead { color: var(--text-2); font-size: 16px; max-width: 60ch; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.sec-head__title { font-size: 20px; font-weight: 700; }
.sec-head__sub { color: var(--muted); font-size: 14px; margin-top: 4px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn--coral { background: var(--grad-coral); color: #2A0E12; box-shadow: 0 8px 22px rgba(255, 107, 87, .32); }
.btn--coral:hover { color: #2A0E12; box-shadow: 0 10px 28px rgba(255, 107, 87, .45); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { color: var(--ink); background: var(--gold-2); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--line:hover { border-color: var(--gold); color: var(--gold-2); }
.btn--danger { background: rgba(255, 92, 122, .14); color: #FFB3C1; border-color: rgba(255, 92, 122, .4); }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Чипы ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; margin: 0 -2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 14px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04);
  color: var(--text-2); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .18s var(--ease-spring);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--text); border-color: rgba(255, 236, 214, .32); }
.chip:active { transform: scale(.95); }
.chip.is-on, .chip[aria-pressed="true"] { background: var(--text); color: var(--ink); border-color: var(--text); }
.chip--coral.is-on, .chip--coral[aria-pressed="true"] { background: var(--coral); border-color: var(--coral); color: #2A0E12; }
.chip--gold.is-on, .chip--gold[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.chip__n { font-size: 12px; opacity: .7; }

/* ---------- Метки ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--text-2); white-space: nowrap; }
.tag--free { background: rgba(94, 211, 154, .16); color: #8FF0BE; }
.tag--kids { background: rgba(76, 205, 182, .16); color: #8DEBDC; }
.tag--pushkin { background: rgba(123, 97, 255, .2); color: #C9BCFF; }
.tag--age { background: transparent; border: 1px solid var(--line-2); }
.tag--warn { background: rgba(245, 185, 71, .16); color: var(--gold-2); }
.tag--demo { background: rgba(255, 107, 87, .16); color: #FFB4A6; }
.tag--org { background: rgba(88, 178, 240, .16); color: #A9D8FF; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- Карточки и обложки ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-s); }
.card--link { cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; color: inherit; text-decoration: none; display: block; }
.card--link:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); color: inherit; }
.cover { position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 5 / 3; }
.cover__svg { width: 100%; height: 100%; }
.cover__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* въезд карточек по очереди */
.slide-in { opacity: 0; transform: translateY(18px) scale(.98); animation: slideIn .55s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes slideIn { to { opacity: 1; transform: none; } }

/* мерцание (скелетоны, «Событие недели») */
.shimmer { position: relative; overflow: hidden; }
.shimmer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 233, 190, .22) 45%, rgba(255, 255, 255, .05) 52%, transparent 65%);
  transform: translateX(-100%); animation: shimmer 3.6s var(--ease) infinite;
}
@keyframes shimmer { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }

/* ---------- Поля формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field__label { font-weight: 700; font-size: 14px; color: var(--text-2); }
.field__hint { font-size: 12px; color: var(--muted); }
.field__err { font-size: 13px; color: #FFB3C1; font-weight: 700; }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: var(--r-s);
  border: 1px solid var(--line-2); background: rgba(10, 5, 16, .35); color: var(--text);
  font: inherit; font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.45; }
.input::placeholder, .textarea::placeholder { color: #7D6E88; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 185, 71, .2); }
.is-invalid .input, .is-invalid .select, .is-invalid .textarea, .input.is-invalid { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--coral); flex: none; }
.search { position: relative; display: block; }
.search .input { padding-left: 42px; border-radius: 999px; }
.search__i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); opacity: .7; pointer-events: none; }

/* ---------- Пустые состояния, плашки ---------- */
.empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--text-2); }
.empty__icon { font-size: 40px; margin-bottom: 8px; }
.empty__title { font-size: 18px; margin-bottom: 6px; }
.empty__text { color: var(--muted); max-width: 44ch; margin: 0 auto 14px; }
.note { border-radius: var(--r-s); padding: 12px 14px; background: rgba(245, 185, 71, .1); border: 1px solid rgba(245, 185, 71, .3); color: var(--gold-2); font-size: 14px; }
.note--info { background: rgba(88, 178, 240, .1); border-color: rgba(88, 178, 240, .3); color: #BFE3FF; }
.note--ok { background: rgba(94, 211, 154, .1); border-color: rgba(94, 211, 154, .3); color: #A8F0C9; }
.note--err { background: rgba(255, 92, 122, .1); border-color: rgba(255, 92, 122, .35); color: #FFC2CE; }

/* ---------- Партнёрский слот «Светлый Казань» ---------- */
.partner {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r);
  background: linear-gradient(120deg, rgba(245, 185, 71, .16), rgba(255, 107, 87, .1) 60%, rgba(123, 97, 255, .1));
  border: 1px solid rgba(245, 185, 71, .35); overflow: hidden;
}
.partner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 240, 200, .16) 50%, transparent 65%); transform: translateX(-100%); animation: shimmer 6s var(--ease) infinite; pointer-events: none; }
.partner__badge { position: absolute; top: 8px; right: 10px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.partner__logo { width: 44px; height: 44px; flex: none; }
.partner__text { display: flex; flex-direction: column; min-width: 0; }
.partner__name { font-family: var(--font-display); font-size: 16px; color: var(--gold-2); }
.partner__sub { font-size: 13px; color: var(--text-2); }
.partner__cta { margin-left: auto; font-weight: 800; font-size: 13px; color: var(--gold-2); white-space: nowrap; }
.partner--compact { padding: 10px 14px; }
.partner--compact .partner__logo { width: 32px; height: 32px; }

/* ---------- Карты и пины ---------- */
/* Встроенные карты — свой контекст наложения: панели Leaflet (z-index 400–1000) остаются внутри карты,
   шапка (40), нижняя панель (50), шторка (80), тур 360° (90) и тосты (120) всегда поверх */
.map-frame { position: relative; z-index: 0; isolation: isolate; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #2a2333; }
.leaflet-container { font-family: var(--font); background: #ddd5cc; isolation: isolate; }
.pl-map-wrap { isolation: isolate; }
.leaflet-tile-pane { }
.leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .78) !important; color: #333; }
.leaflet-control-attribution a { color: #3D1F57; }
.leaflet-bar a { background: var(--surface) !important; color: var(--text) !important; border-color: var(--line) !important; }
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-tip { background: var(--surface); }
.leaflet-popup-content { margin: 12px 14px; font-size: 14px; }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }
.map--off { display: flex; align-items: center; justify-content: center; }
.map-off { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); font-size: 14px; max-width: 320px; }
.map-off__icon { font-size: 34px; }

.pin-wrap { background: none; border: 0; }
.pin {
  --pin: var(--coral);
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--pin); box-shadow: 0 6px 14px rgba(10, 4, 18, .45), inset 0 0 0 3px rgba(255, 255, 255, .85);
  transition: transform .25s var(--ease-spring);
}
.pin > .pin__e, .pin > .pin__n { transform: rotate(45deg); font-size: 18px; line-height: 1; }
.pin__n { font-family: var(--font-display); font-weight: 800; font-size: 16px !important; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.pin__pulse { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--pin); opacity: 0; pointer-events: none; }
.pin--star .pin__pulse { animation: pulse 2.2s ease-out infinite; }
.pin--approx { box-shadow: 0 6px 14px rgba(10, 4, 18, .45), inset 0 0 0 3px rgba(255, 255, 255, .5); opacity: .92; }
.pin-wrap:hover .pin, .pin-wrap.is-active .pin { transform: rotate(-45deg) scale(1.18); z-index: 5; }
.pin--drop { animation: pinDrop .7s var(--ease-spring) both; }
@keyframes pinDrop { 0% { transform: translateY(-60px) rotate(-45deg) scale(.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-45deg); opacity: 1; } }
@keyframes pulse { 0% { transform: scale(.8); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Шторка ---------- */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet__scrim { position: absolute; inset: 0; background: rgba(8, 3, 14, .62); opacity: 0; transition: opacity .3s var(--ease); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; max-height: 92dvh;
  background: var(--bg-2); border-radius: 26px 26px 0 0; border-top: 1px solid var(--line-2);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, .5); transform: translateY(105%);
  transition: transform .42s var(--ease); display: flex; flex-direction: column; outline: none;
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__grab { flex: none; height: 26px; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; }
.sheet__grab span { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); }
.sheet__close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(20, 12, 30, .7); color: var(--text); cursor: pointer; font-size: 16px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__close:hover { background: var(--surface-3); }
.sheet__body { overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--gutter) calc(24px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
@media (min-width: 960px) {
  .sheet__panel { left: auto; top: 0; bottom: 0; width: min(540px, 44vw); max-height: none; border-radius: 26px 0 0 26px; border-top: 0; border-left: 1px solid var(--line-2); transform: translateX(105%); }
  .sheet__grab { display: none; }
  .sheet__body { padding: 20px 26px 32px; }
}

/* ---------- Нижняя навигация (телефон) ---------- */
.bottom-nav {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + var(--safe-b)); z-index: 50;
  height: var(--nav-h); display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(34, 21, 47, .9); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px);
  border: 1px solid var(--line-2); border-radius: 22px; box-shadow: 0 12px 34px rgba(0, 0, 0, .5); padding: 6px;
}
.bottom-nav__a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 16px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 800; transition: color .2s, background .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.bottom-nav__i { font-size: 20px; line-height: 1; transition: transform .35s var(--ease-spring); }
.bottom-nav__a.is-on { color: var(--ink); background: var(--gold); }
.bottom-nav__a.is-on .bottom-nav__i { transform: translateY(-1px) scale(1.12); }
.bottom-nav__a:hover { color: var(--text); }
.bottom-nav__a.is-on:hover { color: var(--ink); }
@media (min-width: 960px) { .bottom-nav { display: none; } }
html.sheet-open .bottom-nav { opacity: 0; pointer-events: none; }

/* ---------- Подвал ---------- */
.footer { border-top: 1px solid var(--line); padding: 22px var(--gutter) calc(var(--nav-h) + 34px + var(--safe-b)); color: var(--muted); font-size: 13px; }
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: grid; gap: 8px; }
.footer__sig { display: flex; align-items: center; gap: 8px; color: var(--gold-2); font-weight: 800; font-size: 14px; }
.footer__links a { color: var(--text-2); }
@media (min-width: 960px) { .footer { padding-bottom: 28px; } }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px + var(--safe-b)); z-index: 120; transform: translate(-50%, 20px);
  background: var(--text); color: var(--ink); font-weight: 800; padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease-spring); max-width: calc(100vw - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--err { background: #FFC2CE; }
@media (min-width: 960px) { .toast { bottom: 28px; } }

/* ---------- Печать ---------- */
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .topbar, .bottom-nav, .footer__links, .bg-glow, .toast, .sheet, .no-print { display: none !important; }
  .view { padding: 0; max-width: none; }
  .screen { opacity: 1; transform: none; }
  .card, .partner { box-shadow: none; border-color: #ccc; background: #fff; color: #111; }
  a { color: #111; }
}

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .slide-in { opacity: 1; transform: none; }
  .shimmer::after, .partner::before { display: none; }
  .bg-glow span { animation: none; }
}
