/* ============================================================
   FotoBiz Online — стили лендинга
   Инлайн-стили дизайн-эталона (site/uiux/profil.dc.html)
   переведены в классы с префиксом fb-.
   Зависит от tokens.css (подключать первым).
   ============================================================ */

/* ---------- 1. База ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px;
}

body {
  margin: 0;
  background: var(--fb-paper);
  color: var(--fb-ink);
  font-family: var(--fb-font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--fb-accent); text-decoration: none; }
a:hover { color: var(--fb-ink); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
::selection { background: var(--fb-accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--fb-accent);
  outline-offset: 2px;
}

.fb-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- 2. Анимации (все keyframes эталона) ---------- */
@keyframes pf-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pf-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pf-scan {
  0% { transform: translateY(-8%); opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { transform: translateY(108%); opacity: 0; }
}
@keyframes pf-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
@keyframes pf-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes pf-frame {
  0%, 100% { border-color: rgba(20, 24, 29, 0.14); }
  50% { border-color: var(--fb-accent-frame); }
}
@keyframes pf-menu {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 3. Мотив «угловые скобки-ретикл» ---------- */
/* Один класс на все четыре L-образных уголка: восемь линейных градиентов,
   без дочерних элементов и без копипасты. Настраивается переменными. */
.fb-reticle {
  --rt-len: 9px;
  --rt-w: 2px;
  --rt-color: var(--fb-paper);
  background-image:
    linear-gradient(var(--rt-color) 0 0), linear-gradient(var(--rt-color) 0 0),
    linear-gradient(var(--rt-color) 0 0), linear-gradient(var(--rt-color) 0 0),
    linear-gradient(var(--rt-color) 0 0), linear-gradient(var(--rt-color) 0 0),
    linear-gradient(var(--rt-color) 0 0), linear-gradient(var(--rt-color) 0 0);
  background-repeat: no-repeat;
  background-size:
    var(--rt-len) var(--rt-w), var(--rt-w) var(--rt-len),
    var(--rt-len) var(--rt-w), var(--rt-w) var(--rt-len),
    var(--rt-len) var(--rt-w), var(--rt-w) var(--rt-len),
    var(--rt-len) var(--rt-w), var(--rt-w) var(--rt-len);
  background-position:
    left top, left top,
    right top, right top,
    left bottom, left bottom,
    right bottom, right bottom;
}

/* ---------- 4. Каркас и примитивы ---------- */
.fb-wrap {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  width: 100%;
}

.fb-section {
  padding: var(--fb-section-y) var(--fb-gutter);
  border-bottom: 1px solid var(--fb-line);
}
.fb-section--panel { background: var(--fb-panel); }
.fb-section--dark {
  background: var(--fb-ink);
  color: var(--fb-on-dark);
  border-bottom: 0;
}
.fb-section--plain { border-bottom: 0; }

/* Сетка с волосяными линиями: gap 1px по фону-подложке */
.fb-grid-hair {
  --fb-col: 240px;
  display: grid;
  grid-template-columns: repeat(var(--fb-fit, auto-fit), minmax(min(100%, var(--fb-col)), 1fr));
  gap: 1px;
  background: var(--fb-line);
  border: 1px solid var(--fb-line);
}
.fb-grid-hair > * { background: var(--fb-paper); }
.fb-grid-hair--panel { background: var(--fb-line-2); border-color: var(--fb-line-2); }
.fb-grid-hair--panel > * { background: var(--fb-panel); }
.fb-grid-hair--dark { background: var(--fb-line-dark); border-color: var(--fb-line-dark); }
.fb-grid-hair--dark > * { background: var(--fb-ink); }

/* Обычная сетка */
.fb-grid {
  --fb-col: 300px;
  display: grid;
  grid-template-columns: repeat(var(--fb-fit, auto-fit), minmax(min(100%, var(--fb-col)), 1fr));
  gap: var(--fb-gap, 20px);
}

/* Заголовочные блоки секций */
.fb-eyebrow {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  letter-spacing: var(--fb-ls-eyebrow);
  text-transform: uppercase;
  color: var(--fb-muted-4);
}
.fb-eyebrow--dark { color: var(--fb-muted-5); }
.fb-eyebrow--light { color: rgba(255, 255, 255, 0.6); }

.fb-h1 {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: var(--fb-fs-h1);
  line-height: var(--fb-lh-tight);
  letter-spacing: var(--fb-ls-tight);
  margin: 18px 0 0;
  text-wrap: pretty;
}
.fb-h2 {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: var(--fb-fs-h2);
  line-height: var(--fb-lh-head);
  letter-spacing: var(--fb-ls-h2);
  margin: 14px 0 0;
  text-wrap: pretty;
}
.fb-h2--light { color: var(--fb-paper); }
.fb-h2--gap { margin-bottom: 30px; max-width: 620px; }
.fb-h3 {
  font-size: var(--fb-fs-h3);
  font-weight: 600;
  line-height: 1.3;
  margin: 16px 0 10px;
}

.fb-lead {
  font-size: var(--fb-fs-lead);
  line-height: 1.65;
  color: var(--fb-muted-2);
}
.fb-note {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  color: var(--fb-muted-5);
  line-height: var(--fb-lh-loose);
}

.fb-head-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 24px var(--fb-gap-col);
  align-items: end;
  margin-bottom: 36px;
}
.fb-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.fb-head-link {
  font-weight: 600;
  font-size: var(--fb-fs-body);
  white-space: nowrap;
  border-bottom: 1px solid currentColor;
}

/* Кнопки */
.fb-btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 26px;
  border: 0;
  cursor: pointer;
  text-align: center;
  transition: background var(--fb-dur) ease, transform var(--fb-dur) ease,
              opacity var(--fb-dur) ease, border-color var(--fb-dur) ease;
}
.fb-btn--primary { background: var(--fb-ink); color: var(--fb-paper); }
.fb-btn--primary:hover { background: var(--fb-accent); color: var(--fb-paper); transform: translateY(-2px); }
.fb-btn--flat:hover { transform: none; }
.fb-btn--ghost {
  background: transparent;
  color: var(--fb-ink);
  padding: 14px 24px;
  border: 1px solid var(--fb-line-6);
}
.fb-btn--ghost:hover { border-color: var(--fb-ink); color: var(--fb-ink); }
.fb-btn--light { background: #fff; color: var(--fb-ink); }
.fb-btn--light:hover { opacity: .9; transform: translateY(-2px); color: var(--fb-ink); }
.fb-btn--outline-light {
  background: transparent;
  color: #fff;
  padding: 14px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
}
.fb-btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.fb-btn--sm { font-size: var(--fb-fs-nav); padding: 12px 18px; }

/* Мелкие атомы */
.fb-dot {
  width: 6px;
  height: 6px;
  display: block;
  flex: none;
  background: var(--fb-accent-soft);
  animation: pf-blink 2.2s ease-in-out infinite;
}
.fb-dot--accent { background: var(--fb-accent); animation-duration: 2s; }
.fb-dot--fast { background: var(--fb-accent); animation-duration: 1.6s; }

.fb-tag {
  padding: 4px 10px;
  background: var(--fb-scrim-2);
  color: var(--fb-paper);
  font-family: var(--fb-font-mono);
  font-size: 10px;
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
}
.fb-tag--accent { background: var(--fb-accent); color: #fff; }

.fb-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-accent);
  border: 1px solid var(--fb-accent-line);
  padding: 6px 11px;
}

/* Группа переключателей (чипы / табы) */
.fb-switch {
  display: flex;
  border: 1px solid var(--fb-line-4);
  width: fit-content;
  max-width: 100%;
  flex-wrap: wrap;
}
.fb-switch--strong { border-color: rgba(20, 24, 29, 0.24); }
.fb-switch__btn {
  border: 0;
  cursor: pointer;
  padding: 9px 18px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
  background: transparent;
  color: var(--fb-muted-3);
  transition: background .16s ease, color .16s ease;
}
.fb-switch--strong .fb-switch__btn { padding: 10px 22px; }
.fb-switch__btn:hover { color: var(--fb-ink); }
.fb-switch__btn.is-active { background: var(--fb-ink); color: var(--fb-paper); }

/* ---------- 5. Топбар ---------- */
.fb-topbar {
  background: var(--fb-ink);
  color: var(--fb-on-dark-mono);
  font-size: 12.5px;
  font-family: var(--fb-font-mono);
  overflow: hidden;
}
.fb-topbar__inner {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  padding: 8px var(--fb-gutter);
  display: flex;
  gap: 6px 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.fb-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.fb-topbar__sep { opacity: .35; }

/* ---------- 6. Шапка ---------- */
.fb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fb-header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fb-line);
}
.fb-header__inner {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  padding: 11px var(--fb-gutter);
  display: flex;
  align-items: center;
  gap: 18px;
}
.fb-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fb-ink);
  flex: none;
}
.fb-logo svg { flex: none; display: block; }
.fb-logo__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fb-logo__name {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: var(--fb-fs-h3);
  letter-spacing: 0.02em;
  line-height: 1;
}
.fb-logo__slogan {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-xs);
  color: var(--fb-muted-4);
  letter-spacing: var(--fb-ls-wide);
  text-transform: uppercase;
  line-height: 1;
}

.fb-header__cta {
  flex: none;
  background: var(--fb-ink);
  color: var(--fb-paper);
  font-weight: 600;
  font-size: var(--fb-fs-sm);
  padding: 11px 18px;
  white-space: nowrap;
  transition: background var(--fb-dur) ease;
}
.fb-header__cta:hover { background: var(--fb-accent); color: var(--fb-paper); }

/* Бургер — только на мобильном */
.fb-burger {
  display: none;
  flex: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--fb-line-4);
  cursor: pointer;
  position: relative;
}
.fb-burger__bar {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--fb-ink);
  transition: transform .2s ease, opacity .2s ease;
}
.fb-burger__bar:nth-child(1) { top: 14px; }
.fb-burger__bar:nth-child(2) { top: 20px; }
.fb-burger__bar:nth-child(3) { top: 26px; }
.fb-burger[aria-expanded="true"] .fb-burger__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.fb-burger[aria-expanded="true"] .fb-burger__bar:nth-child(2) { opacity: 0; }
.fb-burger[aria-expanded="true"] .fb-burger__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 7. Навигация и мега-меню (десктоп) ---------- */
.fb-nav {
  display: flex;
  gap: 1px;
  align-items: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  margin-left: 10px;
}
.fb-nav__item { position: relative; }
.fb-nav__btn {
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 7px 10px;
  font-family: inherit;
  color: var(--fb-muted-1);
  font-weight: 500;
  font-size: var(--fb-fs-nav);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fb-nav__item.is-open > .fb-nav__btn {
  color: var(--fb-ink);
  border-bottom-color: var(--fb-ink);
}
.fb-caret {
  font-family: var(--fb-font-mono);
  font-size: 9px;
  color: var(--fb-muted-5);
  transition: transform var(--fb-dur) ease;
  display: inline-block;
}
.fb-nav__item.is-open .fb-caret { transform: rotate(180deg); }

.fb-nav__link {
  padding: 7px 10px;
  color: var(--fb-muted-1);
  font-weight: 500;
  font-size: var(--fb-fs-nav);
  border-bottom: 1px solid transparent;
}
.fb-nav__link:hover { border-bottom-color: var(--fb-ink); color: var(--fb-ink); }

.fb-mega {
  display: none;
  position: absolute;
  top: calc(100% + 1px);
  left: -10px;
  width: min(760px, calc(100vw - 290px));
  background: var(--fb-paper);
  border: 1px solid var(--fb-line-3);
  box-shadow: var(--fb-shadow-menu);
  z-index: 60;
}
.fb-nav__item.is-open > .fb-mega {
  display: block;
  animation: pf-menu .18s ease both;
}
.fb-mega--types {
  width: min(680px, calc(100vw - 290px));
  padding: 18px;
}
.fb-mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 1px;
  background: rgba(20, 24, 29, 0.1);
}
.fb-mega__card {
  background: var(--fb-paper);
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: background .16s ease;
}
.fb-mega__card:hover { background: var(--fb-panel-hover); }
.fb-mega__spec {
  display: flex;
  align-items: center;
  gap: 9px;
}
.fb-mega__spec b {
  font-family: var(--fb-font-mono);
  font-size: 10px;
  font-weight: 400;
  color: var(--fb-accent);
  letter-spacing: 0.08em;
}
.fb-mega__rule {
  height: 1px;
  flex: 1;
  background: var(--fb-line-2);
  display: block;
}
.fb-mega__title {
  font-size: var(--fb-fs-nav);
  font-weight: 600;
  color: var(--fb-ink);
}
.fb-mega__meta {
  font-size: var(--fb-fs-xxs);
  color: var(--fb-muted-4);
  line-height: 1.45;
}
.fb-mega__foot {
  background: var(--fb-panel);
  border-top: 1px solid var(--fb-line);
  padding: 11px 17px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
  color: var(--fb-muted-4);
}
.fb-mega__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 22px;
}

.fb-typegroup {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fb-typegroup__title {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fb-muted-5);
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid var(--fb-line-2);
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: default;
  width: 100%;
}
.fb-typegroup__sign { display: none; }
.fb-typegroup__list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.fb-typegroup__link {
  font-size: var(--fb-fs-sm);
  color: var(--fb-muted-1);
  display: flex;
  align-items: baseline;
  gap: 8px;
  transition: color .16s ease;
}
.fb-typegroup__link:hover { color: var(--fb-accent); }
.fb-typegroup__link span {
  color: var(--fb-dash);
  font-family: var(--fb-font-mono);
  font-size: 10px;
}

/* ---------- 8. Hero ---------- */
.fb-hero {
  position: relative;
  padding: clamp(28px, 3vw, 40px) var(--fb-gutter);
  border-bottom: 1px solid var(--fb-line);
  min-height: calc(100svh - 88px);
  display: flex;
  align-items: center;
  background-image: var(--fb-grid-lines);
  background-size: var(--fb-grid-size);
  background-position: center;
}
.fb-hero__inner {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: var(--fb-gap-col);
  align-items: center;
}
.fb-hero__text { animation: pf-up .7s var(--fb-ease) both; }
.fb-hero__sub {
  font-size: var(--fb-fs-hero-sub);
  line-height: var(--fb-lh-body);
  color: var(--fb-muted-2);
  max-width: 540px;
  margin: 16px 0 0;
  text-wrap: pretty;
  animation: pf-up .7s .1s var(--fb-ease) both;
}
.fb-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  animation: pf-up .7s .18s var(--fb-ease) both;
}
.fb-hero__facts {
  --fb-col: 150px;
  margin-top: 26px;
  animation: pf-up .7s .26s var(--fb-ease) both;
}
.fb-fact { padding: 16px 18px; }
.fb-fact__big {
  font-family: var(--fb-font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
}
.fb-fact__small {
  font-size: 13px;
  color: var(--fb-muted-4);
  margin-top: 6px;
  line-height: 1.45;
}

.fb-hero__media {
  animation: pf-in .8s .12s ease both;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Карточка-превью с ретиклом и сверкой */
.fb-shot {
  background: var(--fb-panel-2);
  border: 1px solid var(--fb-line-2);
  padding: 12px;
  width: fit-content;
  max-width: 100%;
}
.fb-shot__frame {
  position: relative;
  height: min(50svh, 520px);
  min-height: 300px;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  background: var(--fb-ph-cool-16);
}
.fb-shot__caption {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 26px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  color: var(--fb-muted-ph-cool);
  text-align: center;
  line-height: var(--fb-lh-loose);
  letter-spacing: .03em;
}
.fb-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(36, 64, 92, 0) 0%, rgba(36, 64, 92, 0.16) 78%, rgba(36, 64, 92, 0.55) 100%);
  animation: pf-scan 4.6s cubic-bezier(.4, 0, .6, 1) infinite;
  pointer-events: none;
}
.fb-shot__reticle {
  position: absolute;
  left: 14px;
  top: 14px;
  width: 30%;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(244, 243, 240, 0.75);
  animation: pf-frame 4.6s ease-in-out infinite;
  pointer-events: none;
}
.fb-shot__ai {
  position: absolute;
  right: 12px;
  top: 12px;
}
.fb-match {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--fb-scrim);
  padding: 11px 13px;
}
.fb-match__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
  color: var(--fb-muted-6);
}
.fb-match__score { color: var(--fb-paper); font-size: 13px; }
.fb-match__bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 9px;
}
.fb-match__fill {
  height: 100%;
  width: 97%;
  background: var(--fb-accent-soft);
  transition: width .7s var(--fb-ease-soft);
}
.fb-match__verdict {
  font-family: var(--fb-font-mono);
  font-size: 10px;
  color: var(--fb-muted-4);
  margin-top: 8px;
  letter-spacing: .04em;
}

.fb-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.fb-thumb {
  cursor: pointer;
  padding: 0;
  background: var(--fb-ph-warm-8);
  border: 1px solid var(--fb-line-3);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  font-family: var(--fb-font-mono);
  font-size: 9px;
  color: var(--fb-muted-ph);
  letter-spacing: .04em;
  opacity: .55;
  transition: border-color .2s ease, opacity .2s ease;
}
.fb-thumb:hover { opacity: .8; }
.fb-thumb.is-active { border-color: var(--fb-accent); opacity: 1; }

.fb-shot__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-4);
  letter-spacing: .04em;
  width: 100%;
}

/* ---------- 9. Бегущая строка ---------- */
.fb-ticker {
  border-bottom: 1px solid var(--fb-line);
  overflow: hidden;
  background: var(--fb-panel);
}
.fb-ticker__track {
  display: flex;
  width: max-content;
  animation: pf-ticker 38s linear infinite;
}
.fb-ticker__item {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  letter-spacing: var(--fb-ls-wide);
  text-transform: uppercase;
  color: var(--fb-muted-4);
  padding: 10px 22px;
  white-space: nowrap;
}

/* ---------- 10. Панель сверки before/after ---------- */
.fb-compare-card {
  background: var(--fb-panel-2);
  border: 1px solid var(--fb-line-2);
  padding: 12px;
}
.fb-compare {
  --fb-split: 46%;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  outline: none;
  background: var(--fb-ph-flat);
}
.fb-compare__before,
.fb-compare__after-inner {
  position: absolute;
  inset: 0;
  display: grid;
  font-family: var(--fb-font-mono);
  font-size: 11px;
  text-align: center;
  line-height: var(--fb-lh-body);
}
/* Подписи разведены к внешним краям: по центру их резал разделитель */
.fb-compare__before {
  background: var(--fb-ph-warm-14b);
  place-items: center start;
  padding-left: 18px;
  text-align: left;
  color: var(--fb-muted-ph);
}
.fb-compare__after {
  position: absolute;
  inset: 0;
  z-index: 2;
  /* Результат показывается справа от разделителя — как обещают подпись
     и метки («Исходник» слева, «Результат · ИИ» справа). В прототипе
     клип был зеркальным и противоречил собственным подписям. */
  clip-path: inset(0 0 0 var(--fb-split));
}
.fb-compare__after-inner {
  background: var(--fb-ph-cool-14);
  place-items: center end;
  padding-right: 18px;
  text-align: right;
  color: #4A5A70;
}
.fb-compare__ph { padding: 0 14px; }
.fb-compare__tag-before {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 3;
  background: rgba(20, 24, 29, 0.82);
}
.fb-compare__tag-after {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
}
.fb-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--fb-split);
  width: 1px;
  background: var(--fb-paper);
  z-index: 4;
}
.fb-compare__knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: var(--fb-paper);
  border: 1px solid var(--fb-line-5);
  display: grid;
  place-items: center;
  color: var(--fb-ink);
  font-size: 12px;
}
.fb-compare:focus-visible { outline: 2px solid var(--fb-accent); outline-offset: 2px; }
.fb-compare-card__hint {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-4);
  margin-top: 10px;
  letter-spacing: .04em;
}

/* Карточки «почему похоже» */
.fb-feature { padding: 22px 20px 24px; }
.fb-feature__n {
  width: 30px;
  height: 30px;
  border: 1px solid var(--fb-accent);
  display: grid;
  place-items: center;
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fb-accent);
}
.fb-feature__title {
  margin: 16px 0 8px;
  font-size: var(--fb-fs-h4);
  font-weight: 600;
  line-height: 1.3;
}
.fb-feature__text {
  color: var(--fb-muted-2);
  font-size: var(--fb-fs-sm);
  line-height: var(--fb-lh-body);
}

/* ---------- 11. Бесплатное превью ---------- */
.fb-preview__grid {
  --fb-col: 300px;
  --fb-gap: var(--fb-gap-col);
  align-items: start;
}
.fb-preview__text { font-size: var(--fb-fs-lead); line-height: 1.65; color: var(--fb-muted-2); margin: 16px 0 0; max-width: 520px; }
.fb-points {
  --fb-col: 100%;
  margin-top: 26px;
}
.fb-point {
  padding: 15px 18px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.fb-point__k {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fb-accent);
  letter-spacing: var(--fb-ls-mono);
  flex: none;
}
.fb-point__v {
  font-size: var(--fb-fs-nav);
  color: var(--fb-muted-1);
  line-height: 1.55;
}

.fb-panel {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line-2);
  padding: clamp(18px, 2vw, 26px);
}
.fb-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-muted-4);
}
.fb-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.fb-panel__rule {
  height: 1px;
  background: var(--fb-line-2);
  margin: 18px 0;
}

/* Единственный кадр бесплатного превью: водяной знак + плашка */
.fb-freeshot {
  position: relative;
  margin: 14px auto 0;
  width: min(300px, 100%);
  aspect-ratio: 4 / 5;
  background: var(--fb-ph-warm-10);
  border: 1px solid var(--fb-line-2);
  overflow: hidden;
}
.fb-freeshot__label {
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-ph);
  text-align: center;
  line-height: 1.5;
  padding: 0 10px;
}
.fb-freeshot__wm {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 46%;
  text-align: center;
  transform: rotate(-24deg);
  font-family: var(--fb-font-mono);
  font-size: 16px;
  letter-spacing: .24em;
  color: rgba(20, 24, 29, 0.22);
  text-transform: uppercase;
  pointer-events: none;
}
.fb-freeshot__plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--fb-scrim);
  color: var(--fb-paper);
  font-family: var(--fb-font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  line-height: 1.5;
  padding: 8px 10px;
  text-align: center;
}

.fb-steps {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fb-step-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fb-fs-xs);
  color: var(--fb-muted-5);
  transition: color .4s ease;
}
.fb-step-line__mark {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid var(--fb-line-5);
  display: grid;
  place-items: center;
  font-family: var(--fb-font-mono);
  font-size: 10px;
  color: var(--fb-line-5);
  transition: color .4s ease, border-color .4s ease;
}
.fb-step-line.is-done { color: var(--fb-ink); }
.fb-step-line.is-done .fb-step-line__mark { color: var(--fb-accent); border-color: var(--fb-accent); }

.fb-panel__note {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-5);
  margin-top: 18px;
  line-height: var(--fb-lh-body);
}

/* ---------- 12. Задачи (use cases) ---------- */
.fb-cases {
  --fb-col: 210px;
  --fb-fit: auto-fill;
}
.fb-case {
  padding: 22px 20px 24px;
  color: var(--fb-ink);
  display: block;
  transition: background var(--fb-dur) ease;
}
.fb-case:hover { background: var(--fb-panel); color: var(--fb-ink); }
.fb-case__n {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-5);
  letter-spacing: 0.08em;
}
.fb-case__title { font-weight: 600; font-size: var(--fb-fs-h4); margin-top: 14px; }
.fb-case__meta { font-size: var(--fb-fs-xs); color: var(--fb-muted-4); margin-top: 6px; line-height: 1.5; }
.fb-case__more {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-accent);
  margin-top: 14px;
  letter-spacing: var(--fb-ls-mono);
}

/* ---------- 13. Примеры ---------- */
.fb-gallery {
  --fb-col: 228px;
  --fb-fit: auto-fill;
}
.fb-pair {
  background: var(--fb-panel-2);
  border: 1px solid var(--fb-line);
  padding: 10px;
  transition: border-color .2s ease, transform .2s ease;
}
.fb-pair:hover { border-color: var(--fb-line-7); transform: translateY(-3px); }
.fb-pair__shot {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--fb-ph-warm-14);
  display: grid;
  place-items: center;
}
.fb-pair__ph {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fb-muted-ph);
  text-align: center;
  padding: 0 16px;
  line-height: var(--fb-lh-body);
}
.fb-pair__ai {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  font-size: var(--fb-fs-mono-xs);
  letter-spacing: .05em;
}
.fb-pair__src {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 44px;
  background: var(--fb-paper);
  padding: 3px;
  border: 1px solid rgba(20, 24, 29, 0.18);
}
.fb-pair__src i {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--fb-ph-warm-6);
}
.fb-pair__foot {
  padding: 11px 2px 3px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.fb-pair__role { font-weight: 600; font-size: var(--fb-fs-body); }
.fb-pair__spec {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-5);
}

/* ---------- 14. Процесс ---------- */
.fb-process {
  --fb-col: 250px;
  margin-top: 32px;
}
.fb-pstep { padding: 26px 24px 28px; }
.fb-pstep__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  letter-spacing: 0.08em;
  color: var(--fb-accent);
}
.fb-pstep__time { color: var(--fb-muted-5); }
.fb-pstep__text { color: var(--fb-muted-2); font-size: var(--fb-fs-body); line-height: 1.65; }
.fb-process__foot {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.fb-process__foot span {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  color: var(--fb-muted-4);
}

/* ---------- 15. Контроль качества (тёмная секция) ---------- */
.fb-qa {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(32px, 5vw, 60px);
  align-items: start;
}
.fb-qa__text {
  font-size: 16px;
  line-height: 1.68;
  color: var(--fb-on-dark-dim);
  margin: 16px 0 0;
  max-width: 470px;
}
.fb-qa__facts {
  --fb-col: 150px;
  margin-top: 26px;
}
.fb-qfact { padding: 16px 18px; }
.fb-qfact__big { font-family: var(--fb-font-serif); font-size: 20px; color: var(--fb-paper); }
.fb-qfact__small { font-size: var(--fb-fs-xxs); color: var(--fb-muted-5); margin-top: 6px; line-height: 1.45; }

.fb-scores { display: flex; flex-direction: column; gap: 10px; }
.fb-score {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 12px 14px;
}
.fb-score__thumb {
  flex: none;
  width: 40px;
  height: 50px;
  background: var(--fb-ph-dark-8);
}
.fb-score__body { flex: 1; }
.fb-score__head {
  display: flex;
  justify-content: space-between;
  font-family: var(--fb-font-mono);
  font-size: 11px;
  margin-bottom: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--fb-muted-5);
}
.fb-score__head b { color: var(--fb-paper); font-weight: 400; }
.fb-score__bar { height: 4px; background: var(--fb-line-dark); }
.fb-score__fill { height: 100%; background: var(--fb-accent-bar); }
.fb-score__status {
  flex: none;
  padding: 4px 9px;
  font-family: var(--fb-font-mono);
  font-size: 10px;
  letter-spacing: var(--fb-ls-mono);
  text-transform: uppercase;
  border: 1px solid var(--fb-accent-soft);
  color: var(--fb-accent-soft);
}
.fb-score--reject .fb-score__fill { background: var(--fb-muted-5); }
.fb-score--reject .fb-score__status { border-color: var(--fb-muted-5); color: var(--fb-muted-5); }
.fb-scores__note {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fb-muted-4);
  margin-top: 4px;
  line-height: var(--fb-lh-body);
}

/* ---------- 16. Сравнительная таблица ---------- */
.fb-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--fb-line-3);
}
.fb-table {
  min-width: 860px;
}
.fb-table__row {
  display: grid;
  grid-template-columns: 1.25fr 1.2fr 1fr 1fr 1fr;
  border-top: 1px solid var(--fb-line);
}
.fb-table__row--head {
  background: var(--fb-panel);
  border-top: 0;
}
.fb-table__th {
  padding: 14px 18px;
  font-weight: 600;
  font-size: var(--fb-fs-sm);
  color: var(--fb-muted-1);
}
.fb-table__th--label {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-muted-4);
  font-weight: 400;
}
.fb-table__th--us {
  font-weight: 700;
  font-size: var(--fb-fs-nav);
  background: var(--fb-ink);
  color: var(--fb-paper);
}
.fb-table__cell { padding: 15px 18px; font-size: var(--fb-fs-sm); color: var(--fb-muted-3); }
.fb-table__cell--label { font-weight: 600; color: var(--fb-ink); }
.fb-table__cell--us {
  color: var(--fb-ink);
  font-weight: 600;
  background: var(--fb-accent-wash);
}

/* ---------- 17. Форматы и образы ---------- */
.fb-styles {
  --fb-col: 176px;
  --fb-fit: auto-fill;
  --fb-gap: 16px;
}
.fb-style__shot {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--fb-ph-warm-12);
  border: 1px solid var(--fb-line);
  display: grid;
  place-items: center;
  transition: border-color var(--fb-dur) ease;
}
.fb-style:hover .fb-style__shot { border-color: var(--fb-line-7); }
.fb-style__ph {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-ph);
}
.fb-style__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: var(--fb-scrim-3);
  color: var(--fb-paper);
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-xs);
  letter-spacing: .05em;
}
.fb-style__name { margin-top: 10px; font-weight: 600; font-size: var(--fb-fs-nav); }
.fb-style__bg { font-size: var(--fb-fs-xxs); color: var(--fb-muted-5); margin-top: 4px; }
.fb-style[hidden] { display: none; }

/* ---------- 18. Тарифы ---------- */
.fb-pricing__anchor {
  position: relative;
  top: -64px;
  display: block;
  height: 0;
}
.fb-pricing__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.fb-pricing__note {
  font-size: 15.5px;
  color: var(--fb-muted-3);
  max-width: 640px;
  margin: 16px 0 0;
  line-height: var(--fb-lh-body);
}
.fb-plans {
  --fb-col: 262px;
  margin-top: 28px;
  background: var(--fb-line-2);
  border-color: var(--fb-line-2);
}
/* Карточки светлее панельной секции — как в эталоне */
.fb-plans > * { background: var(--fb-paper); }
.fb-plans[hidden] { display: none; }
.fb-plan {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 26px;
  color: var(--fb-ink);
}
.fb-plan__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.fb-plan__name { font-weight: 700; font-size: 17px; }
.fb-plan__flag {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  padding: 3px 7px;
  white-space: nowrap;
}
.fb-plan__sub { font-size: var(--fb-fs-xs); color: var(--fb-muted-5); margin-top: 6px; }
.fb-plan__price-row {
  display: flex;
  align-items: baseline;
  gap: 4px 8px;
  flex-wrap: wrap;
  margin: 22px 0 0;
}
.fb-plan__price {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.fb-plan__unit {
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fb-muted-5);
  letter-spacing: .05em;
  white-space: nowrap;
}
.fb-plan__rule { height: 1px; background: var(--fb-line-2); margin: 22px 0; }
.fb-plan__features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.fb-plan__feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: var(--fb-fs-sm);
  line-height: 1.5;
}
.fb-plan__feature::before {
  content: '—';
  flex: none;
  font-family: var(--fb-font-mono);
  font-size: 12px;
  color: var(--fb-muted-5);
  margin-top: 1px;
}
.fb-plan__cta {
  margin-top: 26px;
  text-align: center;
  padding: 12px 18px;
  font-weight: 600;
  font-size: var(--fb-fs-nav);
  background: transparent;
  color: var(--fb-ink);
  border: 1px solid var(--fb-line-8);
  transition: opacity var(--fb-dur) ease;
}
.fb-plan__cta:hover { opacity: .85; color: var(--fb-ink); }

/* Популярный тариф — инверсия */
.fb-grid-hair > .fb-plan--popular { background: var(--fb-ink); color: var(--fb-paper); }
.fb-plan--popular .fb-plan__sub,
.fb-plan--popular .fb-plan__unit { color: var(--fb-muted-6); }
.fb-plan--popular .fb-plan__feature::before { color: var(--fb-muted-6); }
.fb-plan--popular .fb-plan__rule { background: var(--fb-line-dark-3); }
.fb-plan--popular .fb-plan__cta {
  background: var(--fb-paper);
  color: var(--fb-ink);
  border-color: var(--fb-paper);
}
.fb-pricing__foot {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono);
  color: var(--fb-muted-5);
  margin-top: 16px;
  line-height: var(--fb-lh-loose);
}

/* ---------- 19. Обязательства ---------- */
.fb-guarantees { --fb-col: 240px; }
.fb-guarantee { padding: 26px 24px 28px; }
.fb-guarantee__title {
  margin: 0 0 9px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.fb-guarantee__text {
  color: var(--fb-muted-2);
  font-size: var(--fb-fs-nav);
  line-height: 1.62;
}

/* ---------- 20. Блог ---------- */
.fb-teasers { --fb-col: 260px; }
.fb-teaser {
  padding: 24px 22px 26px;
  color: var(--fb-ink);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background var(--fb-dur) ease;
}
.fb-teaser:hover { background: var(--fb-panel); color: var(--fb-ink); }
.fb-teaser__tag {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-accent);
}
.fb-teaser__title {
  font-family: var(--fb-font-serif);
  font-size: var(--fb-fs-h3);
  font-weight: 600;
  line-height: 1.3;
}
.fb-teaser__excerpt { font-size: var(--fb-fs-sm); color: var(--fb-muted-3); line-height: var(--fb-lh-body); }
.fb-teaser__meta {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  color: var(--fb-muted-5);
  margin-top: auto;
}

/* ---------- 21. FAQ ---------- */
.fb-faq-wrap { max-width: 900px; margin: 0 auto; }
.fb-faq {
  border-top: 1px solid var(--fb-line-3);
  margin-top: 28px;
}
.fb-faq__item { border-bottom: 1px solid var(--fb-line-3); }
.fb-faq__q {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 19px 4px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  font-size: var(--fb-fs-lead);
  font-weight: 600;
  color: var(--fb-ink);
  font-family: inherit;
}
.fb-faq__q span { line-height: 1.4; }
.fb-faq__sign {
  flex: none;
  font-family: var(--fb-font-mono);
  font-size: 16px;
  color: var(--fb-accent);
  line-height: 1.3;
}
.fb-faq__a {
  display: none;
  padding: 0 60px 22px 4px;
  color: var(--fb-muted-2);
  font-size: var(--fb-fs-body);
  line-height: var(--fb-lh-loose);
}
.fb-faq__item.is-open .fb-faq__a {
  display: block;
  animation: pf-in .3s ease both;
}

/* ---------- 22. Финальный CTA ---------- */
.fb-cta {
  max-width: var(--fb-maxw);
  margin: 0 auto;
  background: var(--fb-accent);
  color: #fff;
  padding: clamp(34px, 5vw, 60px) clamp(24px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 32px 48px;
  align-items: center;
}
.fb-cta__title {
  font-family: var(--fb-font-serif);
  font-weight: 600;
  font-size: var(--fb-fs-h2-cta);
  line-height: 1.12;
  margin: 14px 0 0;
  color: #fff;
}
.fb-cta__text {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin: 16px 0 0;
  max-width: 520px;
}
.fb-cta__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ---------- 23. Футер ---------- */
.fb-footer {
  background: var(--fb-ink);
  color: var(--fb-muted-6);
  padding: clamp(44px, 5vw, 72px) var(--fb-gutter) 36px;
}
.fb-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 36px;
}
.fb-footer__brand { min-width: 210px; }
.fb-footer__logo {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--fb-paper);
}
.fb-footer__logo svg { flex: none; display: block; }
.fb-footer__name { font-family: var(--fb-font-serif); font-weight: 600; font-size: 18px; }
.fb-footer__about {
  margin: 14px 0 0;
  font-size: var(--fb-fs-xs);
  line-height: 1.65;
  max-width: 260px;
}
.fb-footer__title {
  color: var(--fb-paper);
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-wide);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fb-footer__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--fb-fs-xs);
}
.fb-footer__links a { color: var(--fb-muted-6); }
.fb-footer__links a:hover { color: #fff; }
.fb-footer__seo {
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--fb-line-dark-2);
}
.fb-footer__seo-title {
  font-family: var(--fb-font-mono);
  font-size: var(--fb-fs-mono-sm);
  letter-spacing: var(--fb-ls-wide);
  text-transform: uppercase;
  color: var(--fb-muted-4);
  margin-bottom: 14px;
}
.fb-footer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-footer__chip {
  padding: 6px 12px;
  border: 1px solid var(--fb-line-dark);
  color: var(--fb-muted-6);
  font-size: var(--fb-fs-xxs);
}
.fb-footer__chip:hover { border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.fb-footer__legal {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--fb-line-dark-2);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-family: var(--fb-font-mono);
  font-size: 11px;
  color: var(--fb-muted-4);
  line-height: var(--fb-lh-body);
}
.fb-footer__legal a { color: var(--fb-muted-4); }
.fb-footer__legal a:hover { color: #fff; }

/* ---------- 24. Cookie-баннер ---------- */
.fb-cookie {
  position: fixed;
  z-index: 70;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 420px;
  background: var(--fb-paper);
  border: 1px solid var(--fb-line-6);
  padding: 16px 18px;
  animation: pf-up .4s ease both;
}
.fb-cookie[hidden] { display: none; }
.fb-cookie__text {
  font-size: var(--fb-fs-xs);
  line-height: var(--fb-lh-body);
  color: var(--fb-muted-1);
}
.fb-cookie__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.fb-cookie__accept {
  border: 0;
  cursor: pointer;
  background: var(--fb-ink);
  color: var(--fb-paper);
  font-weight: 600;
  font-size: var(--fb-fs-xs);
  padding: 10px 18px;
  font-family: inherit;
}
.fb-cookie__accept:hover { background: var(--fb-accent); }
.fb-cookie__more {
  padding: 9px 16px;
  font-size: var(--fb-fs-xs);
  font-weight: 600;
  color: var(--fb-muted-1);
  border: 1px solid rgba(20, 24, 29, 0.24);
}
.fb-cookie__more:hover { border-color: var(--fb-ink); }

/* ============================================================
   25. Адаптив
   ≤1024px — мобильное мега-меню: бургер → полноэкранная панель,
   «Площадки» → вертикальный список, «Типы фото» → аккордеон.
   Sticky-шапка сохраняется.
   ============================================================ */
.fb-nav__cta { display: none; }

@media (max-width: 1024px) {
  .fb-burger { display: block; }
  .fb-header__cta { display: none; }
  .fb-header__inner { gap: 12px; }

  body.fb-menu-open { overflow: hidden; }

  /* backdrop-filter на шапке создаёт containing block для position:fixed —
     панель меню считалась бы от шапки, а не от вьюпорта. На время открытого
     меню блюр не нужен: экран всё равно перекрыт панелью. */
  body.fb-menu-open .fb-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--fb-paper);
  }

  .fb-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--fb-nav-top);
    bottom: 0;
    z-index: 45;
    margin: 0;
    padding: 4px var(--fb-gutter) 48px;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0;
    background: var(--fb-paper);
    border-top: 1px solid var(--fb-line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .fb-nav.is-open {
    display: flex;
    animation: pf-menu .18s ease both;
  }

  .fb-nav__item { position: static; }
  .fb-nav__btn,
  .fb-nav__link {
    width: 100%;
    padding: 15px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--fb-line);
    justify-content: space-between;
  }
  .fb-nav__link { display: block; }
  .fb-nav__item.is-open > .fb-nav__btn { border-bottom-color: var(--fb-line); }
  .fb-caret { font-size: 11px; }

  .fb-mega,
  .fb-mega--types {
    position: static;
    width: auto;
    border: 0;
    box-shadow: none;
    padding: 6px 0 14px;
    background: transparent;
  }
  /* «Площадки» — вертикальный список карточек */
  .fb-mega__grid {
    grid-template-columns: 1fr;
    background: var(--fb-line);
  }
  .fb-mega__card { padding: 13px 14px; }
  .fb-mega__foot {
    font-size: 10px;
    padding: 11px 14px;
    background: var(--fb-panel);
  }
  /* «Типы фото» — аккордеон по группам */
  .fb-mega__cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .fb-typegroup { gap: 0; }
  .fb-typegroup__title {
    cursor: pointer;
    padding: 14px 0;
    font-size: 11px;
    color: var(--fb-muted-1);
  }
  .fb-typegroup__sign {
    display: inline-block;
    font-family: var(--fb-font-mono);
    font-size: 15px;
    color: var(--fb-accent);
    line-height: 1;
  }
  .fb-typegroup__list {
    display: none;
    padding: 12px 0 16px 2px;
    gap: 12px;
  }
  .fb-typegroup.is-open .fb-typegroup__list {
    display: flex;
    animation: pf-in .25s ease both;
  }
  .fb-typegroup__link { font-size: 15px; }

  .fb-nav__cta {
    display: block;
    margin-top: 22px;
    width: 100%;
  }
}

@media (max-width: 900px) {
  .fb-hero {
    min-height: 0;
    padding-top: clamp(32px, 6vw, 48px);
    padding-bottom: clamp(36px, 7vw, 56px);
  }
  .fb-hero__media { margin-top: 8px; }
  .fb-faq__a { padding-right: 12px; }
  .fb-cta__actions { justify-content: flex-start; }
  .fb-pricing__anchor { top: -12px; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 66px; }
  .fb-topbar { font-size: 11.5px; }
  .fb-topbar__inner { justify-content: flex-start; text-align: left; gap: 4px 14px; }
  .fb-shot { padding: 10px; width: 100%; }
  .fb-shot__frame { height: auto; min-height: 0; width: 100%; }
  .fb-shot__meta { font-size: 10px; }
  .fb-hero__cta .fb-btn { width: 100%; }
  .fb-head-row { margin-bottom: 24px; }
  .fb-switch { width: 100%; }
  .fb-switch__btn { flex: 1 1 auto; text-align: center; }
  .fb-plan { padding: 24px 20px; }
  .fb-freeshot { width: 100%; }
  .fb-faq__q { font-size: 15.5px; gap: 12px; }
  .fb-footer__legal { font-size: 10px; }
  .fb-cookie { left: 10px; right: 10px; bottom: 10px; }
}

@media (max-width: 420px) {
  .fb-logo svg { width: 30px; height: 30px; }
  .fb-logo__name { font-size: 17px; }
  .fb-thumbs { gap: 6px; }
  .fb-thumb { font-size: 8px; }
}

