/* =====================================================================
   Квест-шоу «Форт Боярд», Ижевск — тема поверх Bootstrap 6.0.0-alpha.1
   ---------------------------------------------------------------------
   Из Bootstrap подключены только reboot и сетка (.container, .row,
   .col-12, .lg:col-6 …). Bootstrap 6 кладёт стили в @layer, поэтому эта
   тема (вне слоя) переопределяет их без !important.
   Свои компоненты вместо нестабильных в alpha: .fb-btn, .fb-dialog и
   .fb-drawer (нативный <dialog>), .fb-acc (<details>), .fb-slider
   (scroll-snap), .fb-dd (выпадающее меню).

   Содержание: 0. Шрифты  1. Токены  2. База  3. Компоненты
               4. Шапка/подвал  5. Секции  6. Страницы  7. Анимации
   ===================================================================== */

/* ---------- 0. ШРИФТЫ (свои, без Google Fonts) ---------- */
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 500 700; font-display: swap; src: url(../fonts/unbounded-cyrillic.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: 500 700; font-display: swap; src: url(../fonts/unbounded-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: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-cyrillic.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: 400 800; font-display: swap; src: url(../fonts/manrope-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; }
/* Знак рубля и прочая расширенная латиница — только Manrope (лёгкий файл) */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(../fonts/manrope-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- 1. ТОКЕНЫ ---------- */
:root {
  /* Тёмная крепость */
  --fb-night: #0D1A21;
  --fb-night-2: #132530;
  --fb-night-3: #1B3440;
  --fb-on-dark: #F4EFE6;
  --fb-on-dark-2: #C9C6BE;
  --fb-line-dark: rgba(226, 176, 74, .22);

  /* Светлые секции */
  --fb-sand: #FBF6EC;
  --fb-sand-2: #F3EADA;
  --fb-paper: #FFFFFF;
  --fb-ink: #11313A;
  --fb-ink-2: #3D5A61;
  --fb-ink-3: #557077;
  --fb-line: #E6DCC8;
  --fb-line-strong: #B9AE98;

  /* Акценты */
  --fb-gold: #E2B04A;
  --fb-gold-2: #F2CD7A;
  --fb-gold-ink: #1A1206;
  --fb-gold-text: #8A5E0E;
  --fb-fire: #F57A3A;           /* только главные CTA */
  --fb-fire-2: #FF915A;
  --fb-fire-ink: #1A0E06;
  --fb-sea: #0E6A78;
  --fb-sea-text: #0B5A66;
  --fb-sea-soft: #DDF0EE;
  --fb-sea-50: #EEF6F5;

  --fb-danger: #B42318;
  --fb-danger-soft: #FDECEA;
  --fb-success: #1E7B4F;
  --fb-success-soft: #E3F4EA;

  /* Типографика */
  --fb-font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --fb-font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fb-fs-h1: clamp(2rem, 1.2rem + 3.2vw, 4rem);
  --fb-fs-h2: clamp(1.625rem, 1.15rem + 1.8vw, 2.75rem);
  --fb-fs-h3: clamp(1.125rem, 1rem + .4vw, 1.375rem);
  --fb-fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  --fb-fs-body: 1rem;
  --fb-fs-sm: .875rem;
  --fb-fs-xs: .8125rem;

  --fb-section-y: clamp(64px, 40px + 5vw, 112px);
  --fb-r-sm: 12px; --fb-r-md: 16px; --fb-r-lg: 20px; --fb-r-xl: 28px; --fb-r-pill: 999px;

  --fb-shadow-sm: 0 2px 8px rgba(17, 49, 58, .08);
  --fb-shadow-md: 0 8px 28px rgba(17, 49, 58, .10);
  --fb-shadow-lg: 0 20px 50px rgba(17, 49, 58, .18);
  --fb-shadow-fire: 0 10px 28px rgba(245, 122, 58, .35);
  --fb-shadow-gold: 0 6px 16px rgba(184, 128, 26, .35);

  --fb-header-h: 80px;
  --fb-header-h-compact: 64px;
  --fb-mobilebar-h: 72px;
  --fb-ease: cubic-bezier(.2, .7, .2, 1);

  /* Связка с Bootstrap 6 */
  --bs-body-font-family: var(--fb-font-body);
  --bs-body-font-size: var(--fb-fs-body);
  --bs-body-line-height: 1.55;
  --bs-body-color: var(--fb-ink);
  --bs-body-bg: var(--fb-sand);
  --bs-heading-color: inherit;
  --bs-link-color: var(--fb-sea-text);
  --bs-link-hover-color: var(--fb-ink);
  --bs-border-color: var(--fb-line);
  --bs-border-radius: var(--fb-r-sm);
}

/* ---------- 2. БАЗА ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--fb-header-h-compact); }
body {
  margin: 0; font-family: var(--fb-font-body); font-size: var(--fb-fs-body); line-height: 1.55;
  color: var(--fb-ink); background: var(--fb-sand); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
@media (width < 1280px) { body { padding-bottom: calc(var(--fb-mobilebar-h) + env(safe-area-inset-bottom)); } }
body.fb-noscroll { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--fb-font-display); font-weight: 700; letter-spacing: -.02em; margin: 0; text-wrap: balance; color: inherit; line-height: 1.15; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--fb-sea-text); text-underline-offset: 3px; }
a:hover { color: var(--fb-ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
address { margin: 0; font-style: normal; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--fb-gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--fb-gold-2); color: var(--fb-gold-ink); }

.fb-skip { position: absolute; left: 12px; top: -60px; z-index: 2000; padding: 12px 16px; border-radius: var(--fb-r-sm); background: var(--fb-gold); color: var(--fb-gold-ink); font-weight: 700; text-decoration: none; }
.fb-skip:focus { top: 12px; }
.fb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.fb-i { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fb-i--sm { width: 18px; height: 18px; }
.fb-i--lg { width: 28px; height: 28px; }

.fb-h2 { font-size: var(--fb-fs-h2); line-height: 1.1; }
.fb-h3 { font-size: var(--fb-fs-h3); line-height: 1.25; }
.fb-lead { font-size: var(--fb-fs-lead); line-height: 1.55; color: var(--fb-ink-2); font-weight: 500; }
.fb-dark .fb-lead { color: var(--fb-on-dark-2); }
.fb-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 800; font-size: var(--fb-fs-sm); letter-spacing: .02em; color: var(--fb-sea-text); }
.fb-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.fb-dark .fb-kicker { color: var(--fb-gold-2); }
.fb-gold { color: var(--fb-gold); }
.fb-muted { color: var(--fb-ink-3); }

/* ---------- 3. КОМПОНЕНТЫ ---------- */

/* Кнопки */
.fb-btn {
  --_bg: var(--fb-night); --_fg: var(--fb-on-dark); --_bd: transparent; --_bg-h: var(--fb-night-3);
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 10px 22px; border: 1.5px solid var(--_bd); border-radius: var(--fb-r-md);
  background: var(--_bg); color: var(--_fg); font: 700 1rem/1.2 var(--fb-font-body); text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .2s var(--fb-ease), box-shadow .2s, background-color .2s, border-color .2s;
}
.fb-btn:hover { background: var(--_bg-h); color: var(--_fg); transform: translateY(-1px); }
.fb-btn:active { transform: translateY(0); }
.fb-btn[disabled] { opacity: .45; pointer-events: none; }
.fb-btn--fire { --_bg: var(--fb-fire); --_bg-h: var(--fb-fire-2); --_fg: var(--fb-fire-ink); box-shadow: var(--fb-shadow-fire); }
.fb-btn--gold { --_bg: var(--fb-gold); --_bg-h: var(--fb-gold-2); --_fg: var(--fb-gold-ink); }
.fb-btn--outline-dark { --_bg: transparent; --_bg-h: rgba(255, 255, 255, .08); --_fg: var(--fb-on-dark); --_bd: rgba(244, 239, 230, .35); }
.fb-btn--light { --_bg: var(--fb-paper); --_bg-h: var(--fb-paper); --_fg: var(--fb-ink); box-shadow: var(--fb-shadow-sm); }
.fb-btn--light:hover { box-shadow: var(--fb-shadow-md); }
.fb-btn--soft { --_bg: var(--fb-sea-50); --_bg-h: var(--fb-sea-soft); --_fg: var(--fb-sea-text); }
.fb-btn--ghost { --_bg: transparent; --_bg-h: var(--fb-sand-2); --_fg: var(--fb-ink); --_bd: var(--fb-line-strong); }
.fb-btn--lg { min-height: 60px; padding: 14px 28px; font-size: 1.0625rem; }
.fb-btn--sm { min-height: 44px; padding: 8px 18px; font-size: .9375rem; border-radius: var(--fb-r-sm); }
.fb-btn--block { width: 100%; }
.fb-btn--icon { width: 44px; min-height: 44px; padding: 0; border-radius: var(--fb-r-sm); }
.fb-btn--fire::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%);
  transform: translateX(-120%); animation: fb-sheen 6s ease-in-out 2s infinite;
}
.fb-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: fb-spin .8s linear infinite; }
.fb-btn.is-loading { pointer-events: none; }
.fb-btn.is-loading .fb-spinner { display: inline-block; }

.fb-iconbtn {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  border-radius: var(--fb-r-sm); border: 1px solid rgba(226, 176, 74, .35); background: transparent;
  color: var(--fb-gold); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s;
}
.fb-iconbtn:hover { background: rgba(226, 176, 74, .12); color: var(--fb-gold-2); }

/* Плашки */
.fb-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border-radius: var(--fb-r-pill); font: 700 var(--fb-fs-sm)/1.2 var(--fb-font-body); background: var(--fb-sea-soft); color: var(--fb-sea-text); }
.fb-chip--dark { background: rgba(13, 26, 33, .55); border: 1px solid rgba(226, 176, 74, .35); color: var(--fb-gold-2); backdrop-filter: blur(6px); }
.fb-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fb-gold); box-shadow: 0 0 12px var(--fb-gold); }
button.fb-chip { border: 1.5px solid transparent; cursor: pointer; min-height: 44px; }
button.fb-chip[aria-pressed="false"] { background: var(--fb-paper); color: var(--fb-ink-2); border-color: var(--fb-line); }
button.fb-chip[aria-pressed="false"]:hover { border-color: var(--fb-sea); color: var(--fb-sea-text); }
button.fb-chip[aria-pressed="true"] { background: var(--fb-night); color: var(--fb-on-dark); }

/* Монета */
.fb-coin {
  position: relative; overflow: hidden; flex: none; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; color: var(--fb-gold-ink); font: 700 1.125rem var(--fb-font-display);
  background: radial-gradient(circle at 35% 30%, #FFE59A, var(--fb-gold) 60%, #B8801A);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .35), var(--fb-shadow-gold);
}
.fb-coin::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%); transform: translateX(-120%); animation: fb-sheen 5s ease-in-out infinite; }
.fb-coin--sm { width: 44px; height: 44px; font-size: .875rem; }

.fb-icobox { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--fb-night); color: var(--fb-gold); }

/* Карточки */
.fb-card { background: var(--fb-paper); border-radius: var(--fb-r-lg); box-shadow: var(--fb-shadow-md); overflow: hidden; transition: transform .3s var(--fb-ease), box-shadow .3s; }
.fb-card--hover:hover { transform: translateY(-6px); box-shadow: var(--fb-shadow-lg); }

/* Формы */
.fb-form { display: grid; gap: 16px; }
.fb-form__grid { display: grid; gap: 16px; }
@media (width >= 768px) { .fb-form__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fb-field { display: grid; gap: 6px; }
.fb-label { font-weight: 700; font-size: .9375rem; color: var(--fb-ink); }
.fb-input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--fb-line-strong); border-radius: var(--fb-r-sm);
  background: var(--fb-paper); color: var(--fb-ink); font: 500 1rem var(--fb-font-body); transition: border-color .2s, box-shadow .2s;
}
.fb-input::placeholder { color: #7D8F93; }
.fb-input:hover { border-color: var(--fb-ink-3); }
.fb-input:focus { outline: none; border-color: var(--fb-sea); box-shadow: 0 0 0 4px rgba(14, 106, 120, .18); }
textarea.fb-input { min-height: 112px; padding: 14px 16px; resize: vertical; }
select.fb-input {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2311313A' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.fb-field__error { display: none; font-size: var(--fb-fs-sm); font-weight: 600; color: var(--fb-danger); }
.fb-field.is-invalid .fb-input { border-color: var(--fb-danger); background: #FFF8F7; }
.fb-field.is-invalid .fb-field__error, .fb-check.is-invalid .fb-field__error { display: block; }
.fb-field.is-valid .fb-input { border-color: var(--fb-success); }

.fb-check { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; row-gap: 4px; align-items: start; padding: 2px 0; font-size: var(--fb-fs-sm); line-height: 1.45; color: var(--fb-ink-2); cursor: pointer; }
.fb-check input {
  appearance: none; margin: 0; width: 24px; height: 24px; border: 1.5px solid var(--fb-line-strong); border-radius: 7px;
  background: var(--fb-paper); display: grid; place-content: center; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.fb-check input::after { content: ""; width: 12px; height: 7px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.fb-check input:checked { background: var(--fb-sea); border-color: var(--fb-sea); }
.fb-check input:checked::after { opacity: 1; }
.fb-check.is-invalid input { border-color: var(--fb-danger); }
.fb-check .fb-field__error { grid-column: 2; }
.fb-check a { color: var(--fb-sea-text); }
.fb-req { color: var(--fb-danger); }

.fb-alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--fb-r-sm); font-size: var(--fb-fs-sm); font-weight: 600; }
.fb-alert--error { background: var(--fb-danger-soft); color: var(--fb-danger); }
.fb-alert a { color: inherit; }
.fb-success { display: grid; justify-items: center; gap: 12px; padding: 32px 8px; text-align: center; }
.fb-success:focus { outline: none; }
.fb-success__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--fb-success-soft); color: var(--fb-success); animation: fb-pop .4s var(--fb-ease); }
.fb-success__icon .fb-i { width: 36px; height: 36px; stroke-width: 2.2; }

/* Диалоги (нативный <dialog>) */
.fb-dialog {
  width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--fb-r-xl);
  background: var(--fb-paper); color: var(--fb-ink); box-shadow: var(--fb-shadow-lg); overflow: auto;
}
.fb-dialog::backdrop { background: rgba(13, 26, 33, .62); backdrop-filter: blur(4px); }
.fb-dialog[open] { animation: fb-pop .28s var(--fb-ease); }
.fb-dialog__body { position: relative; padding: clamp(24px, 4vw, 36px); display: grid; gap: 20px; }
.fb-dialog__close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--fb-r-sm); background: var(--fb-sand); color: var(--fb-ink); cursor: pointer; }
.fb-dialog__close:hover { background: var(--fb-sand-2); }
.fb-dialog__title { font-size: 1.5rem; line-height: 1.2; padding-right: 44px; }
.fb-dialog__sub { margin-top: -8px; }

/* Drawer */
.fb-drawer {
  margin: 0 0 0 auto; inset: 0 0 0 auto; width: min(380px, 90vw); height: 100dvh; max-height: none; max-width: none;
  padding: 0; border: 0; border-radius: var(--fb-r-xl) 0 0 var(--fb-r-xl); background: var(--fb-night); color: var(--fb-on-dark);
}
.fb-drawer::backdrop { background: rgba(13, 26, 33, .6); backdrop-filter: blur(3px); }
.fb-drawer[open] { animation: fb-slide-in .3s var(--fb-ease); }
.fb-drawer__inner { min-height: 100%; display: flex; flex-direction: column; gap: 20px; padding: 16px 20px 28px; }
.fb-drawer__top { display: flex; align-items: center; justify-content: space-between; }
.fb-drawer__nav { list-style: none; margin: 0; padding: 0; display: grid; }
.fb-drawer__nav > li > a, .fb-drawer__label { display: flex; align-items: center; min-height: 52px; color: var(--fb-on-dark); font: 700 1.125rem var(--fb-font-body); text-decoration: none; border-bottom: 1px solid rgba(244, 239, 230, .08); }
.fb-drawer__label { border: 0; min-height: 44px; color: var(--fb-gold-2); font-size: .875rem; }
.fb-drawer__nav a:hover { color: var(--fb-gold-2); }
.fb-drawer__sub { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-bottom: 1px solid rgba(244, 239, 230, .08); }
.fb-drawer__sub a { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: var(--fb-r-sm); background: rgba(255, 255, 255, .06); color: var(--fb-on-dark); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.fb-drawer__sub .fb-i { color: var(--fb-gold); }
.fb-drawer__foot { margin-top: auto; display: grid; gap: 12px; }
.fb-drawer__row { display: flex; gap: 8px; }
.fb-drawer__row .fb-btn { flex: 1; }
.fb-drawer__phone { color: var(--fb-on-dark); font: 700 1.25rem var(--fb-font-body); text-decoration: none; }

/* Аккордеон */
.fb-acc { display: grid; gap: 12px; }
.fb-acc details { background: var(--fb-paper); border-radius: var(--fb-r-md); box-shadow: var(--fb-shadow-sm); transition: box-shadow .2s; }
.fb-acc details[open] { box-shadow: var(--fb-shadow-md); }
.fb-acc summary { list-style: none; display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 16px 20px; font: 700 1.0625rem/1.35 var(--fb-font-body); cursor: pointer; border-radius: var(--fb-r-md); }
.fb-acc summary::-webkit-details-marker { display: none; }
.fb-acc summary::after {
  content: ""; flex: none; margin-left: auto; width: 32px; height: 32px; border-radius: 50%;
  background: var(--fb-sea-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230B5A66' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .25s var(--fb-ease), background-color .2s;
}
.fb-acc details[open] summary::after { transform: rotate(45deg); background-color: var(--fb-gold-2); }
.fb-acc__body { padding: 0 20px 20px; color: var(--fb-ink-2); max-width: 70ch; }

/* Выпадающее меню */
.fb-dd { position: relative; }
.fb-dd__menu { position: absolute; top: calc(100% + 10px); left: 0; z-index: 10; min-width: 260px; margin: 0; padding: 8px; list-style: none; background: var(--fb-paper); border-radius: var(--fb-r-md); box-shadow: var(--fb-shadow-lg); animation: fb-pop .2s var(--fb-ease); }
.fb-dd__menu a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--fb-r-sm); color: var(--fb-ink); font-weight: 700; text-decoration: none; }
.fb-dd__menu a:hover, .fb-dd__menu a:focus-visible, .fb-dd__menu a[aria-current] { background: var(--fb-sea-50); color: var(--fb-sea-text); }
.fb-dd__menu .fb-i { color: var(--fb-sea); }

/* Слайдер */
.fb-slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 24px; margin: -8px -4px 0; overscroll-behavior-x: contain; }
.fb-slider__track::-webkit-scrollbar { display: none; }
.fb-slider__track > * { scroll-snap-align: start; }
@media (width >= 768px) { .fb-slider__track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (width >= 1024px) { .fb-slider__track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; } }
.fb-slider__nav { display: flex; gap: 8px; }

/* ---------- 4. ШАПКА / ПОДВАЛ ---------- */
.fb-header { position: fixed; inset: 0 0 auto; z-index: 1030; color: var(--fb-on-dark); transition: background-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.fb-header.is-compact, .fb-solid .fb-header { background: rgba(13, 26, 33, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); border-bottom-color: var(--fb-line-dark); }
.fb-header__bar { display: flex; align-items: center; gap: 12px; height: var(--fb-header-h); transition: height .3s var(--fb-ease); }
.fb-header.is-compact .fb-header__bar { height: var(--fb-header-h-compact); }
.fb-logo { flex: none; display: block; text-decoration: none; }
.fb-logo img { width: auto; height: 52px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .45)); transition: height .3s var(--fb-ease); }
.fb-header.is-compact .fb-logo img { height: 42px; }
.fb-logo--footer img { height: 72px; }
.fb-nav { display: none; align-items: center; gap: 2px; margin-left: 16px; }
.fb-nav__link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; white-space: nowrap; border: 0; border-radius: var(--fb-r-sm); background: none; color: rgba(244, 239, 230, .9); font: 600 .9375rem var(--fb-font-body); text-decoration: none; cursor: pointer; }
.fb-nav__link:hover, .fb-nav__link[aria-expanded="true"] { background: rgba(255, 255, 255, .08); color: var(--fb-on-dark); }
.fb-nav__link .fb-i { transition: transform .2s; }
.fb-nav__link[aria-expanded="true"] .fb-i { transform: rotate(180deg); }
.fb-header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.fb-header__phone { display: none; color: var(--fb-on-dark); font: 700 1rem var(--fb-font-body); text-decoration: none; white-space: nowrap; margin-right: 4px; }
.fb-header__phone:hover { color: var(--fb-gold-2); }
.fb-header__social, .fb-header__cta { display: none; }
@media (width >= 576px) { .fb-header__cta { display: inline-flex; } }
@media (width >= 768px) { .fb-header__phone { display: inline; } .fb-header__call { display: none; } }
@media (width >= 1280px) {
  .fb-nav, .fb-header__social { display: flex; }
  .fb-header__social { gap: 8px; }
  .fb-header__burger { display: none; }
}
@media (1280px <= width < 1400px) { .fb-header__social { display: none; } .fb-nav { margin-left: 8px; } .fb-nav__link { padding: 0 10px; } }

/* Нижняя панель (мобильный) */
.fb-mobilebar {
  position: fixed; inset: auto 0 0; z-index: 1020; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 26, 33, .97); border-top: 1px solid var(--fb-line-dark);
  transition: transform .3s var(--fb-ease);
}
.fb-mobilebar a { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--fb-r-sm); background: rgba(255, 255, 255, .08); color: var(--fb-on-dark); font: 700 .875rem var(--fb-font-body); text-decoration: none; }
.fb-mobilebar a .fb-i { color: var(--fb-gold); }
.fb-mobilebar a.is-main { background: var(--fb-fire); color: var(--fb-fire-ink); }
.fb-mobilebar a.is-main .fb-i { color: var(--fb-fire-ink); }
@media (width >= 1280px) { .fb-mobilebar { display: none; } }

/* Cookie */
.fb-cookie {
  position: fixed; z-index: 1025; left: 12px; right: 12px; bottom: calc(var(--fb-mobilebar-h) + 12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: var(--fb-r-md);
  background: var(--fb-paper); color: var(--fb-ink-2); box-shadow: var(--fb-shadow-lg); font-size: var(--fb-fs-xs); line-height: 1.45;
  animation: fb-pop .35s var(--fb-ease);
}
.fb-cookie p { flex: 1; }
@media (width >= 1280px) { .fb-cookie { left: 24px; right: auto; bottom: 24px; max-width: 440px; } }

/* Подвал */
.fb-footer { background: var(--fb-night); color: var(--fb-on-dark-2); padding: 64px 0 32px; font-size: .9375rem; border-top: 1px solid var(--fb-line-dark); }
.fb-footer a { color: var(--fb-on-dark); text-decoration: none; }
.fb-footer a:hover { color: var(--fb-gold-2); text-decoration: underline; }
.fb-footer__grid { display: grid; gap: 32px; }
@media (width >= 768px) { .fb-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .fb-footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }
.fb-footer__about { margin-top: 16px; max-width: 320px; }
.fb-footer__title { font: 700 .875rem var(--fb-font-body); color: var(--fb-gold-2); margin-bottom: 14px; }
.fb-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fb-footer__phone { font-weight: 800; font-size: 1.0625rem; }
.fb-footer__cb { margin-top: 18px; }
.fb-footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244, 239, 230, .1); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fb-fs-xs); }
.fb-footer__legal--req { margin-top: 16px; padding-top: 0; border: 0; }

/* ---------- 5. СЕКЦИИ ---------- */
.fb-section { padding: var(--fb-section-y) 0; scroll-margin-top: var(--fb-header-h-compact); }
.fb-section--paper { background: var(--fb-paper); }
.fb-section--sand2 { background: var(--fb-sand-2); }
.fb-dark { background: var(--fb-night); color: var(--fb-on-dark); }
.fb-dark :focus-visible { outline-color: var(--fb-gold-2); }
.fb-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3vw, 48px); }
.fb-section__head .fb-lead { max-width: 440px; }
.fb-section__foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }
.fb-row { row-gap: 32px; }
.fb-row--center { align-items: center; }

/* Hero */
.fb-hero { position: relative; isolation: isolate; overflow: hidden; padding: calc(var(--fb-header-h) + 230px) 0 88px; scroll-margin-top: 0; }
.fb-hero__media { position: absolute; inset: 0; z-index: -2; }
.fb-hero__img { position: absolute; inset: 0 0 auto; width: 100%; height: 480px; object-fit: cover; object-position: 60% 30%; }
.fb-hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 482px; z-index: -1; background: linear-gradient(180deg, rgba(13, 26, 33, .7) 0%, rgba(13, 26, 33, .15) 35%, rgba(13, 26, 33, .55) 70%, var(--fb-night) 100%); }
.fb-hero__title { font-size: var(--fb-fs-h1); line-height: 1.06; margin-top: 20px; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.fb-hero__text { margin-top: 20px; max-width: 620px; }
.fb-hero__actions { display: grid; gap: 10px; margin-top: 28px; }
@media (width >= 576px) { .fb-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; } }
.fb-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 36px 0 0; list-style: none; padding: 0; }
.fb-trust li { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--fb-r-md); background: rgba(13, 26, 33, .5); border: 1px solid var(--fb-line-dark); font: 600 .875rem/1.3 var(--fb-font-body); backdrop-filter: blur(8px); }
.fb-trust .fb-i { width: 32px; height: 32px; color: var(--fb-gold); stroke-width: 1.5; }
.fb-trust__age { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--fb-gold); display: grid; place-items: center; color: var(--fb-gold); font: 700 .75rem var(--fb-font-display); }
@media (width >= 1024px) {
  .fb-hero { min-height: min(100svh, 920px); padding: calc(var(--fb-header-h) + 88px) 0 120px; display: flex; align-items: center; }
  .fb-hero > .container { width: 100%; }
  .fb-hero__img { height: 100%; object-position: 70% 35%; }
  .fb-hero::before { height: 100%; background: linear-gradient(90deg, var(--fb-night) 0%, rgba(13, 26, 33, .9) 30%, rgba(13, 26, 33, .35) 62%, rgba(13, 26, 33, .15) 100%), linear-gradient(0deg, var(--fb-night) 0%, transparent 28%), linear-gradient(180deg, rgba(13, 26, 33, .55) 0%, transparent 22%); }
  .fb-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
  .fb-trust li { padding: 16px 18px; font-size: .9375rem; gap: 14px; }
  .fb-trust .fb-i, .fb-trust__age { width: 44px; height: 44px; }
  .fb-trust__age { font-size: .875rem; }
}

.fb-crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: var(--fb-fs-sm); color: var(--fb-on-dark-2); }
.fb-crumbs a { color: var(--fb-on-dark-2); }
.fb-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.fb-crumbs--light, .fb-crumbs--light a { color: var(--fb-ink-3); }

/* Акция месяца */
.fb-promo { background: linear-gradient(180deg, var(--fb-night) 50%, var(--fb-sand) 50%); }
.fb-promo__card { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 20px; border-radius: var(--fb-r-lg); background: linear-gradient(120deg, #F2CD7A, var(--fb-gold) 55%, #D99A2B); color: var(--fb-gold-ink); box-shadow: 0 18px 40px rgba(13, 26, 33, .25); }
.fb-promo__icon { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(26, 18, 6, .1); }
.fb-promo__label { font: 800 var(--fb-fs-xs) var(--fb-font-body); text-transform: uppercase; letter-spacing: .06em; }
.fb-promo__text { margin-top: 2px; font: 700 clamp(1.125rem, 1rem + .6vw, 1.5rem)/1.25 var(--fb-font-display); letter-spacing: -.01em; }
.fb-promo__note { margin-top: 4px; font-weight: 600; font-size: var(--fb-fs-sm); opacity: .85; }
.fb-promo__body { flex: 1 1 260px; }
.fb-promo .fb-btn { flex: 1 1 100%; }
.fb-promo__coins { position: absolute; z-index: -1; right: 4%; top: -40%; width: 120px; opacity: .35; transform: rotate(18deg); pointer-events: none; }
@media (width >= 768px) { .fb-promo__card { padding: 22px 28px; } .fb-promo .fb-btn { flex: none; } .fb-promo__coins { right: 22%; opacity: .5; } }

/* Hero-акция на страницах праздников */
.fb-hero-promo { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; padding: 14px 14px 14px 18px; border-radius: var(--fb-r-lg); background: linear-gradient(120deg, #F2CD7A, var(--fb-gold)); color: var(--fb-gold-ink); max-width: 640px; box-shadow: 0 14px 36px rgba(0, 0, 0, .3); }
.fb-hero-promo strong { display: block; font: 700 1.125rem/1.25 var(--fb-font-display); }
.fb-hero-promo div { flex: 1 1 220px; }
.fb-hero-promo small { display: block; font-weight: 800; font-size: var(--fb-fs-xs); }
.fb-hero-promo .fb-hero-promo__note { font-weight: 600; margin-top: 2px; }

/* Форматы */
.fb-formats { display: grid; gap: 20px; }
@media (width >= 768px) { .fb-formats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .fb-formats { grid-template-columns: repeat(6, minmax(0, 1fr)); } .fb-format { grid-column: span 2; } .fb-format--wide { grid-column: span 3; } }
.fb-format { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.fb-format:hover { color: inherit; }
.fb-format__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--fb-sand-2); }
.fb-format--wide .fb-format__media { aspect-ratio: 16 / 9; }
.fb-format__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--fb-ease); }
.fb-format:hover .fb-format__media img { transform: scale(1.05); }
.fb-format__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; }
.fb-format__for { color: var(--fb-ink-3); font-weight: 500; margin-bottom: 14px; }
.fb-format__body .fb-btn { margin-top: auto; align-self: flex-start; }

/* Таймлайн */
.fb-timeline { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: fb-step; }
.fb-timeline__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding-bottom: 32px; }
.fb-timeline__item::before { content: ""; position: absolute; left: 27px; top: 64px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--fb-gold) 0 6px, transparent 6px 12px); }
.fb-timeline__item:last-child { padding-bottom: 0; }
.fb-timeline__item:last-child::before { display: none; }
.fb-timeline__item .fb-coin { grid-row: span 3; counter-increment: fb-step; }
.fb-timeline__item .fb-coin::before { content: counter(fb-step); position: relative; z-index: 1; }
.fb-timeline__tag { justify-self: start; display: inline-flex; padding: 4px 10px; border-radius: var(--fb-r-pill); background: var(--fb-sea-soft); color: var(--fb-sea-text); font: 700 var(--fb-fs-xs) var(--fb-font-body); }
.fb-timeline__item p { color: var(--fb-ink-2); }
@media (width >= 1024px) {
  .fb-timeline { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
  .fb-timeline__item { grid-template-columns: 1fr; padding: 0; gap: 12px; align-content: start; }
  .fb-timeline__item .fb-coin { grid-row: auto; width: 64px; height: 64px; font-size: 1.25rem; }
  .fb-timeline__item::before { left: 76px; right: -20px; top: 31px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--fb-gold) 0 6px, transparent 6px 12px); }
}

/* Испытания с животными (сплит) */
.fb-animals { overflow: hidden; }
.fb-split { display: grid; gap: 40px; align-items: center; }
.fb-split__media { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; align-items: end; }
.fb-split__photo { margin: 0; border-radius: var(--fb-r-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.fb-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.fb-split__photo--main { aspect-ratio: 3 / 4; }
.fb-split__photo--second { aspect-ratio: 4 / 5; }
.fb-split__text .fb-lead { margin-top: 16px; }
.fb-checks { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 16px; }
.fb-checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--fb-on-dark-2); }
.fb-checks strong { color: var(--fb-on-dark); }
.fb-checks .fb-i { color: var(--fb-gold); width: 28px; height: 28px; margin-top: -2px; }
@media (width >= 1024px) {
  .fb-split { grid-template-columns: 1fr 1fr; gap: 72px; }
  .fb-split__media { display: block; position: relative; height: 600px; }
  .fb-split__photo--main { position: absolute; left: 0; top: 0; width: 62%; height: 90%; aspect-ratio: auto; }
  .fb-split__photo--second { position: absolute; right: 0; bottom: 0; width: 55%; height: 52%; aspect-ratio: auto; border: 6px solid var(--fb-night); }
}

/* Что входит */
.fb-included { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (width >= 576px) { .fb-included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (width >= 1024px) { .fb-included { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.fb-feature { display: flex; flex-direction: column; gap: 16px; padding: 24px; background: var(--fb-paper); border-radius: var(--fb-r-lg); box-shadow: var(--fb-shadow-sm); font: 700 1.0625rem/1.35 var(--fb-font-body); transition: transform .3s var(--fb-ease), box-shadow .3s; }
.fb-feature:hover { transform: translateY(-4px); box-shadow: var(--fb-shadow-md); }
@media (width < 576px) {
  .fb-included { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fb-feature { gap: 12px; padding: 16px 14px; font-size: .9375rem; }
  .fb-feature .fb-icobox { width: 44px; height: 44px; border-radius: 12px; }
}

/* Цифры */
.fb-stats { background: var(--fb-sea); color: #fff; padding: clamp(48px, 5vw, 72px) 0; background-image: radial-gradient(circle at 85% 10%, rgba(242, 205, 122, .18), transparent 40%); }
.fb-stats__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; list-style: none; margin: 0; padding: 0; }
@media (width >= 1024px) { .fb-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fb-stats__num { display: block; font: 700 clamp(2.25rem, 1.6rem + 2.5vw, 3.5rem)/1 var(--fb-font-display); color: #F8DA8E; letter-spacing: -.03em; }
.fb-stats__label { display: block; margin-top: 10px; font-weight: 600; color: rgba(255, 255, 255, .92); }

/* Отзывы */
.fb-review { display: flex; flex-direction: column; gap: 18px; height: 100%; padding: 26px 24px 24px; box-shadow: var(--fb-shadow-sm); border: 1px solid var(--fb-line); }
.fb-section--paper .fb-review { background: var(--fb-sand); border-color: transparent; }
.fb-review__top { display: flex; align-items: center; justify-content: space-between; }
.fb-review__quote { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--fb-night); color: var(--fb-gold); font: 700 2rem/1 var(--fb-font-display); padding-top: 14px; }
.fb-review__stars { color: var(--fb-gold); font-size: 1.125rem; letter-spacing: 2px; }
.fb-review__text { color: var(--fb-ink); font-size: 1rem; line-height: 1.6; flex: 1; }
.fb-review__who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--fb-line); }
.fb-review__avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 700 .9375rem var(--fb-font-display); color: #fff; background: var(--fb-sea); }
.fb-review__avatar--1 { background: #C2552A; }
.fb-review__avatar--2 { background: #8A5E0E; }
.fb-review__avatar--3 { background: #1B3440; }
.fb-review__name { font-weight: 800; }
.fb-review__tag { font-size: var(--fb-fs-sm); color: var(--fb-ink-3); font-weight: 600; }

/* Галерея */
.fb-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; grid-auto-flow: dense; }
@media (width >= 768px) { .fb-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 16px; } }
.fb-gallery__item { position: relative; display: block; border-radius: var(--fb-r-md); overflow: hidden; cursor: zoom-in; background: var(--fb-night-3); }
.fb-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--fb-ease); }
.fb-gallery__item:hover img { transform: scale(1.05); }
.fb-gallery__item--tall { grid-row: span 2; }
.fb-gallery__item--wide { grid-column: span 2; }
.fb-gallery__cap { position: absolute; inset: auto 0 0; padding: 28px 12px 10px; color: #fff; font: 700 .8125rem/1.3 var(--fb-font-body); background: linear-gradient(0deg, rgba(13, 26, 33, .8), transparent); }
@media (hover: hover) {
  .fb-gallery__cap { opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
  .fb-gallery__item:hover .fb-gallery__cap, .fb-gallery__item:focus-visible .fb-gallery__cap { opacity: 1; transform: none; }
}
.fb-gallery__more { display: none; }
@media (width < 768px) {
  .fb-gallery--long:not(.is-expanded) .fb-gallery__item:nth-child(n+9) { display: none; }
  .fb-gallery--long:not(.is-expanded) + .fb-gallery__more { display: flex; justify-content: center; margin-top: 20px; }
}

/* Лайтбокс */
.fb-lightbox { width: min(1100px, calc(100% - 24px)); background: var(--fb-night); color: var(--fb-on-dark); }
.fb-lightbox::backdrop { background: rgba(5, 12, 16, .88); }
.fb-lightbox__body { position: relative; padding: 12px; }
.fb-lightbox__fig { margin: 0; display: grid; gap: 12px; }
.fb-lightbox__fig img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; border-radius: var(--fb-r-md); background: #08131A; }
.fb-lightbox__bar { display: flex; align-items: center; gap: 12px; padding: 0 4px 4px; font-weight: 600; }
.fb-lightbox__bar > span:first-child { flex: 1; }
.fb-lightbox__count { color: var(--fb-on-dark-2); font-size: var(--fb-fs-sm); }
.fb-lightbox .fb-dialog__close { top: 20px; right: 20px; background: rgba(13, 26, 33, .7); color: var(--fb-on-dark); }

/* Квиз */
.fb-quiz { position: relative; padding: clamp(20px, 3vw, 40px); background: var(--fb-paper); border-radius: var(--fb-r-xl); box-shadow: var(--fb-shadow-md); }
.fb-quiz__progress { display: grid; gap: 10px; margin-bottom: 28px; }
.fb-quiz__meta { display: flex; justify-content: space-between; gap: 12px; font: 700 var(--fb-fs-sm) var(--fb-font-body); color: var(--fb-ink-3); }
.fb-quiz__bar { height: 10px; border-radius: var(--fb-r-pill); background: var(--fb-sand-2); overflow: hidden; }
.fb-quiz__bar span { display: block; height: 100%; width: var(--p, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--fb-gold), var(--fb-fire)); transition: width .45s var(--fb-ease); }
.fb-quiz__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.fb-quiz__step:not([hidden]) { animation: fb-step .35s var(--fb-ease); }
.fb-quiz__q { display: block; float: none; width: 100%; padding: 0; font: 700 var(--fb-fs-h3)/1.25 var(--fb-font-display); letter-spacing: -.01em; margin: 0 0 6px; }
.fb-quiz__q:focus { outline: none; }
.fb-quiz__hint { color: var(--fb-ink-3); margin-bottom: 20px; }
.fb-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (width >= 768px) { .fb-options--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .fb-options--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fb-option { position: relative; display: block; cursor: pointer; }
.fb-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.fb-option__card { position: relative; height: 100%; min-height: 116px; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1.5px solid var(--fb-line); border-radius: var(--fb-r-md); background: var(--fb-sand); transition: border-color .2s, background-color .2s, transform .2s var(--fb-ease), box-shadow .2s; }
.fb-option__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--fb-paper); color: var(--fb-sea); }
.fb-option__num { font: 700 1.5rem/1 var(--fb-font-display); color: var(--fb-ink); }
.fb-option__label { font: 700 1rem/1.3 var(--fb-font-body); padding-right: 24px; }
.fb-option__sub { display: block; margin-top: 2px; font-size: var(--fb-fs-xs); font-weight: 500; color: var(--fb-ink-3); }
.fb-option__mark { position: absolute; top: 12px; right: 12px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--fb-line-strong); background: var(--fb-paper); color: transparent; }
.fb-option__mark .fb-i { width: 14px; height: 14px; stroke-width: 3; }
.fb-option input[type="checkbox"] ~ .fb-option__card .fb-option__mark { border-radius: 7px; }
.fb-option:hover .fb-option__card { border-color: var(--fb-sea); transform: translateY(-2px); }
.fb-option input:checked ~ .fb-option__card { border-color: var(--fb-sea); background: var(--fb-sea-50); box-shadow: 0 0 0 3px rgba(14, 106, 120, .16); }
.fb-option input:checked ~ .fb-option__card .fb-option__mark { background: var(--fb-sea); border-color: var(--fb-sea); color: #fff; }
.fb-option input:checked ~ .fb-option__card .fb-option__icon { background: var(--fb-sea); color: #fff; }
.fb-option input:focus-visible ~ .fb-option__card { outline: 3px solid var(--fb-gold); outline-offset: 2px; }
@media (width < 576px) { .fb-options--list { grid-template-columns: 1fr; } .fb-options--list .fb-option__card { flex-direction: row; align-items: center; min-height: 72px; } }
.fb-quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--fb-line); }
.fb-quiz__nav .fb-btn--fire, .fb-quiz__nav [data-quiz-next] { margin-left: auto; }
.fb-quiz__bonus { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--fb-r-md); background: var(--fb-sand-2); font-weight: 700; margin-bottom: 20px; }
.fb-quiz-aside { display: grid; gap: 16px; align-content: start; }
.fb-quiz-aside__card { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--fb-r-lg); background: var(--fb-paper); box-shadow: var(--fb-shadow-sm); }
.fb-quiz-aside__card p { color: var(--fb-ink-2); font-size: .9375rem; margin-top: 4px; }
.fb-quiz-aside__phone { font-weight: 800; font-size: 1.0625rem; color: var(--fb-ink); text-decoration: none; }

/* Гарантии */
.fb-guarantee { position: relative; overflow: hidden; isolation: isolate; }
.fb-guarantee::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -240px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 176, 74, .18), transparent 65%); }
.fb-guarantee__grid { display: grid; gap: 32px; align-items: center; }
@media (width >= 1024px) { .fb-guarantee__grid { grid-template-columns: 220px 1fr; gap: 56px; } }
.fb-guarantee__seal { width: 96px; height: 96px; }
.fb-guarantee__seal .fb-i { width: 46px; height: 46px; stroke-width: 1.4; }
@media (width >= 1024px) { .fb-guarantee__seal { width: 220px; height: 220px; } .fb-guarantee__seal .fb-i { width: 96px; height: 96px; } }
.fb-guarantee__title { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.875rem); line-height: 1.15; }
.fb-guarantee__list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.fb-guarantee__list li { display: flex; align-items: center; gap: 16px; font: 700 clamp(1.125rem, 1rem + .7vw, 1.625rem)/1.25 var(--fb-font-display); color: var(--fb-gold-2); }
.fb-guarantee__list span { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(226, 176, 74, .5); font-size: 1rem; color: var(--fb-gold); }
@media (width >= 768px) { .fb-guarantee__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .fb-guarantee__list li { flex-direction: column; align-items: flex-start; padding: 20px; border-radius: var(--fb-r-lg); background: rgba(255, 255, 255, .04); border: 1px solid var(--fb-line-dark); } }
.fb-guarantee__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 32px; }
.fb-guarantee__actions a:not(.fb-btn) { color: var(--fb-on-dark-2); }

/* Клиенты */
.fb-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.fb-marquee__track { display: flex; gap: 16px; width: max-content; list-style: none; margin: 0; padding: 8px 0; animation: fb-marquee 60s linear infinite; }
.fb-marquee:hover .fb-marquee__track { animation-play-state: paused; }
.fb-clientlogo { flex: none; width: 196px; height: 96px; display: grid; place-items: center; padding: 14px 18px; border-radius: var(--fb-r-md); background: #fff; border: 1px solid var(--fb-line); }
.fb-clientlogo img { width: auto; height: auto; max-width: 100%; max-height: 60px; filter: grayscale(1); opacity: .7; transition: filter .3s, opacity .3s; }
.fb-clientlogo:hover img { filter: none; opacity: 1; }

/* FAQ */
.fb-faq__more { display: grid; gap: 16px; margin-top: 24px; padding: 24px; border-radius: var(--fb-r-lg); background: var(--fb-night); color: var(--fb-on-dark); }
@media (width >= 768px) { .fb-faq__more { grid-template-columns: 1fr auto; align-items: center; } }
.fb-faq__more p { font-weight: 700; font-size: 1.0625rem; }
.fb-faq__more small { display: block; font-weight: 500; color: var(--fb-on-dark-2); font-size: .9375rem; margin-top: 4px; }
.fb-faq__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Финальный CTA */
.fb-cta { position: relative; overflow: hidden; isolation: isolate; }
.fb-cta::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; left: -260px; bottom: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 122, 58, .16), transparent 65%); }
.fb-cta__lead { margin-top: 16px; }
.fb-cta__form { padding: clamp(20px, 3vw, 36px); border-radius: var(--fb-r-xl); background: var(--fb-paper); color: var(--fb-ink); box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.fb-cta__list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.fb-cta__list li { display: flex; gap: 12px; align-items: center; font-weight: 600; }
.fb-cta__list .fb-i { color: var(--fb-gold); }
.fb-cta__phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--fb-on-dark); font: 700 clamp(1.25rem, 1rem + 1vw, 1.75rem) var(--fb-font-display); text-decoration: none; }
.fb-cta__phone .fb-i { color: var(--fb-gold); width: 32px; height: 32px; }
.fb-cta__phone:hover { color: var(--fb-gold-2); }

/* Контакты */
.fb-contacts__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.fb-contacts__list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.fb-contacts__list .fb-icobox { background: var(--fb-sea-50); color: var(--fb-sea); }
.fb-contacts__label { font-size: var(--fb-fs-sm); color: var(--fb-ink-3); font-weight: 600; }
.fb-contacts__value { font-weight: 700; font-size: 1.0625rem; color: var(--fb-ink); }
a.fb-contacts__value { text-decoration: none; }
a.fb-contacts__value:hover { color: var(--fb-sea-text); text-decoration: underline; }
.fb-contacts__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fb-map { position: relative; min-height: 360px; height: 100%; border-radius: var(--fb-r-xl); overflow: hidden; display: grid; place-items: center; background: var(--fb-night-2) radial-gradient(circle at 30% 30%, rgba(14, 106, 120, .5), transparent 60%); }
.fb-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fb-map__btn { display: inline-flex; align-items: center; gap: 14px; padding: 16px 22px; border: 0; border-radius: var(--fb-r-lg); background: var(--fb-paper); color: var(--fb-ink); font: 700 1rem var(--fb-font-body); text-align: left; cursor: pointer; box-shadow: var(--fb-shadow-lg); }
.fb-map__btn .fb-i { color: var(--fb-fire); width: 32px; height: 32px; }
.fb-map__btn small { display: block; font-weight: 500; color: var(--fb-ink-3); }

/* Боль и решение */
.fb-pain { display: grid; gap: 20px; }
@media (width >= 1024px) { .fb-pain { grid-template-columns: 1fr 1.15fr; gap: 24px; } }
.fb-pain__card { padding: clamp(24px, 3vw, 36px); border-radius: var(--fb-r-xl); }
.fb-pain__card--bad { background: var(--fb-sand-2); }
.fb-pain__card--good { background: var(--fb-night); color: var(--fb-on-dark); }
.fb-pain__list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; }
.fb-pain__list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.fb-pain__card--bad .fb-i { color: var(--fb-danger); }
.fb-pain__card--good .fb-i { color: var(--fb-gold); }
.fb-pain__btn { margin-top: 28px; }

/* ---------- 6. СТРАНИЦЫ ---------- */
.fb-solid main { padding-top: var(--fb-header-h); }
.fb-doc { padding-top: 48px; }
.fb-doc__title { margin: 20px 0 32px; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); }
.fb-doc__body { padding: clamp(20px, 3vw, 40px); border-radius: var(--fb-r-xl); background: var(--fb-paper); box-shadow: var(--fb-shadow-sm); color: var(--fb-ink-2); font-size: .9375rem; line-height: 1.7; overflow-wrap: anywhere; }
.fb-doc__body p + p { margin-top: 1em; }
.fb-doc__body strong { color: var(--fb-ink); }
.fb-doc__body ul, .fb-doc__body ol { margin: .5em 0 1em; padding-left: 1.25em; }
.fb-doc__body table { width: 100%; margin: 1em 0; border-collapse: collapse; }
.fb-doc__body td, .fb-doc__body th { padding: 10px 12px; border-bottom: 1px solid var(--fb-line); vertical-align: top; text-align: left; overflow-wrap: normal; }
.fb-doc__body td:first-child { width: 32%; min-width: 150px; font-weight: 700; color: var(--fb-ink); }
@media (width < 576px) {
  .fb-doc__body tr, .fb-doc__body td { display: block; width: auto; }
  .fb-doc__body td:first-child { padding-bottom: 0; border: 0; }
}
.fb-doc__req { margin-top: 20px; color: var(--fb-ink-3); font-size: var(--fb-fs-sm); }

.fb-404 { padding-top: 64px; }
.fb-404__box { max-width: 640px; margin: 0 auto; display: grid; justify-items: center; gap: 18px; text-align: center; }
.fb-404__coin { width: 120px; height: 120px; font-size: 1.75rem; }
.fb-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.fb-404__links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fb-404__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: var(--fb-r-pill); background: var(--fb-paper); box-shadow: var(--fb-shadow-sm); color: var(--fb-ink); font-weight: 700; text-decoration: none; }

/* Появление при скролле */
.fb-reveal-on .fb-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--fb-ease), transform .7s var(--fb-ease); }
.fb-reveal-on .fb-reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 7. АНИМАЦИИ ---------- */
@keyframes fb-sheen { 0%, 70% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes fb-spin { to { transform: rotate(360deg); } }
@keyframes fb-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fb-step { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes fb-slide-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes fb-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fb-reveal-on .fb-reveal { opacity: 1; transform: none; }
  .fb-marquee { overflow-x: auto; }
}
