/* =========================================================
   Fintech Observer — Vintage Observer (teal + antique gold)
   html.fo-theme required (set in script.js)
   ========================================================= */


html.fo-theme {
  color-scheme: dark;
  --site-header-h: 112px;
  scroll-padding-top: var(--site-header-h);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --font-nav: 'IBM Plex Sans Condensed', 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif;

  --color-accent: #b8a070;
  --color-accent-hover: #cab080;
  --color-accent-2: #968870;
  --color-accent-soft: rgba(184, 160, 112, .18);
  --color-accent-glow: rgba(184, 160, 112, .24);
  --color-positive: #5ec992;
  --color-positive-soft: rgba(94, 201, 146, .16);
  --color-warn: #b8a070;
  --color-warn-soft: rgba(184, 160, 112, .16);
  --color-info: #8ec8d4;
  --color-info-soft: rgba(142, 200, 212, .14);

  --color-text: #f2ead8;
  --color-text-muted: #b0ccc6;
  --color-text-soft: #d4e4e0;
  --color-bg: #002f2f;
  --color-bg-alt: #003838;
  --color-bg-soft: #002626;
  --color-surface: #005454;
  --color-surface-elevated: #005e5e;
  --color-border: rgba(184, 160, 112, .28);
  --color-border-strong: rgba(184, 160, 112, .44);
  --color-footer: #001e1e;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --header-h: auto;
  --hero-content: min(1040px, 100%);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .32), 0 4px 14px rgba(0, 0, 0, .28);
  --shadow-md: 0 10px 32px -6px rgba(0, 0, 0, .42);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, .4), 0 0 0 1px rgba(184, 160, 112, .1);
}

html.fo-theme body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  background-image: none;
  overflow-x: hidden;
  max-width: 100%;
  padding-top: var(--site-header-h);
}

/* Longread reviews: overflow-x on html/body breaks position:sticky */
html.fo-theme.page-review-longread,
html.fo-theme.page-review-longread body {
  overflow-x: visible;
}

html.fo-theme h1,
html.fo-theme h2,
html.fo-theme h3,
html.fo-theme h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -.015em;
  line-height: 1.22;
}

html.fo-theme h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.25;
  font-weight: 600;
}

html.fo-theme h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1.28;
}

html.fo-theme h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

html.fo-theme :is(h1, h2, h3, h4) .text-accent {
  color: var(--color-accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  font-style: normal;
  font-weight: inherit;
}

html.fo-theme a:hover { color: var(--color-accent); }

/* ========== Header: two-row, no pill capsule ========== */
html.fo-theme .site-header::before,
html.fo-theme .site-header::after {
  display: none !important;
}

html.fo-theme .site-header,
html.fo-theme .site-header--v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  z-index: 200;
  overflow-x: clip;
  overflow-y: visible;
  background: rgba(0, 47, 47, .96) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid var(--color-border-strong) !important;
  box-shadow: 0 1px 0 rgba(28, 25, 23, .06) !important;
}

html.fo-theme .site-header.scrolled {
  box-shadow: var(--shadow-sm) !important;
  background: rgba(0, 47, 47, .99) !important;
}

html.fo-theme .site-header--v2 .header-inner {
  align-items: center;
  gap: 0 12px;
  height: auto;
  min-height: 0;
  padding-top: 14px;
  padding-bottom: 12px;
  padding-left: max(var(--container-pad), env(safe-area-inset-left, 0px));
  padding-right: max(var(--container-pad), env(safe-area-inset-right, 0px));
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

html.fo-theme .site-header--v2 .container.header-inner {
  max-width: 100%;
  min-width: 0;
}

@media (min-width: 901px) {
  html.fo-theme .site-header--v2 .header-inner,
  html.fo-theme .site-header--v2 .container.header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    grid-template-rows: auto auto;
    overflow: hidden;
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  html.fo-theme .site-header--v2 .logo {
    grid-column: 1;
    grid-row: 1;
  }

  html.fo-theme .site-header--v2 .header-right {
    grid-column: 2;
    grid-row: 1;
  }

  html.fo-theme .site-header--v2 .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

html.fo-theme .site-header--v2 .logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.03em;
  text-transform: none;
  line-height: 1;
}

html.fo-theme .site-header--v2 .logo .logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

html.fo-theme .logo-text-accent {
  color: var(--color-accent);
  background: none;
  -webkit-background-clip: unset;
}

html.fo-theme .logo-svg,
html.fo-theme .logo-mark-svg,
html.fo-theme .logo-img {
  filter: none;
  border: none;
}

html.fo-theme .logo-img--mark:not(.logo-img--lg) {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: auto;
}

html.fo-theme .logo-img--lg {
  width: 140px;
  height: 140px;
  object-fit: contain;
}

html.fo-theme .logo-svg--eye,
html.fo-theme .logo-mark-svg.logo-svg--eye {
  overflow: visible;
}

html.fo-theme .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  line-height: 0;
}

/* About page: emblem above wordmark (FinTrend Lab proportions) */
html.fo-theme .about-hero {
  padding: 56px 0 48px;
}

html.fo-theme .about-hero__inner {
  gap: clamp(20px, 5vw, 36px);
}

html.fo-theme .about-hero__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

html.fo-theme .about-hero__mark .logo-img--lg {
  width: clamp(160px, 24vw, 220px);
  height: clamp(160px, 24vw, 220px);
  object-fit: contain;
}

html.fo-theme .about-hero__mark:hover {
  transform: translateY(-3px);
}

html.fo-theme .about-hero__title {
  margin-top: 0;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
}

html.fo-theme section.about-company {
  padding-top: 52px;
}

/* ========== CTA panels (teal + gold, not legacy green/amber) ========== */
html.fo-theme .cta-block,
html.fo-theme .review-cta-mini {
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

html.fo-theme .cta-block::before,
html.fo-theme .cta-block::after,
html.fo-theme .review-cta-mini::before {
  display: none;
}

html.fo-theme .cta-block h2,
html.fo-theme .review-cta-mini h3 {
  color: var(--color-text);
}

html.fo-theme .cta-block p,
html.fo-theme .review-cta-mini p {
  color: var(--color-text-muted);
}

html.fo-theme .site-header--v2 .header-right {
  justify-self: end;
  align-self: center;
  flex-shrink: 0;
}

html.fo-theme .site-header--v2 .header-right .lang-select {
  flex-shrink: 0;
}

html.fo-theme .site-header--v2 .main-nav--pills {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

html.fo-theme .site-header--v2 .main-nav {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  border-top: 1px solid var(--color-border);
  margin-top: 12px;
  padding: 10px 0 12px;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

@media (min-width: 901px) {
  html.fo-theme .site-header--v2 .main-nav--pills ul {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 0;
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
  }

  html.fo-theme .site-header--v2 .main-nav--pills ul::-webkit-scrollbar {
    display: none;
  }
}

html.fo-theme .site-header--v2 .main-nav--pills .nav-pill-indicator {
  display: none !important;
}

html.fo-theme .site-header--v2 .main-nav--pills li + li {
  border-left: none;
}

html.fo-theme .site-header--v2 .main-nav--pills li:not(:last-child)::after {
  content: '·';
  margin: 0 4px 0 7px;
  color: var(--color-text-muted);
  font-weight: 700;
  pointer-events: none;
}

html.fo-theme .site-header--v2 .main-nav--pills a {
  padding: 6px 10px;
  border-radius: 8px;
  font-family: var(--font-nav);
  font-size: .88rem;
  font-weight: 500;
  font-stretch: condensed;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--color-text-muted);
  background: transparent !important;
  border: none;
  position: relative;
}

html.fo-theme .site-header--v2 .main-nav--pills a::after {
  display: block !important;
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform .2s ease;
}

html.fo-theme .site-header--v2 .main-nav--pills a:hover,
html.fo-theme .site-header--v2 .main-nav--pills a.active {
  color: var(--color-accent) !important;
  background: transparent !important;
}

html.fo-theme .site-header--v2 .main-nav--pills a.active::after,
html.fo-theme .site-header--v2 .main-nav--pills a:hover::after {
  transform: scaleX(1);
}

html.fo-theme .lang-btn,
html.fo-theme .menu-toggle {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-bg-soft);
  color: var(--color-text);
  font-family: var(--font-sans);
}

html.fo-theme .lang-select {
  position: relative;
  z-index: 210;
}

/* Меню открывается влево от кнопки (не вниз) — не упирается в правый край экрана */
html.fo-theme .lang-select.open .lang-menu {
  position: absolute;
  z-index: 500;
  top: 0;
  right: calc(100% + 8px);
  left: auto;
  bottom: auto;
  min-width: 168px;
  max-width: min(200px, calc(100vw - 24px));
  box-sizing: border-box;
  margin: 0;
  transform: none;
}

html.fo-theme .header-cta {
  font-family: var(--font-sans) !important;
  font-size: .85rem !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* ========== Buttons (primary + ghost only) ========== */
html.fo-theme .btn,
html.fo-theme .btn-primary,
html.fo-theme .btn-ghost,
html.fo-theme a.btn-read-full {
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

html.fo-theme .btn-primary {
  background: var(--color-accent);
  color: #003d3d;
  border: none;
  box-shadow: var(--shadow-sm);
}

html.fo-theme .btn-primary:hover {
  background: var(--color-accent-hover);
  color: #003d3d;
  box-shadow: var(--shadow-md);
}

html.fo-theme .btn-ghost,
html.fo-theme a.btn-read-full {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-strong);
  color: var(--color-accent-hover);
  box-shadow: none;
}

html.fo-theme .btn-ghost:hover,
html.fo-theme a.btn-read-full:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-accent);
  color: var(--color-accent-hover);
}

html.fo-theme a.btn-read-full {
  font-size: .82rem;
  padding: 8px 16px;
}

/* ========== Hero: centered + full-width score strip ========== */
html.fo-theme .hero,
html.fo-theme .hero--v2 {
  padding: 48px 0 0 !important;
  background: var(--color-bg-alt) !important;
  border-bottom: 1px solid var(--color-border) !important;
}

html.fo-theme .hero--v2::before,
html.fo-theme .hero--v2::after {
  display: none !important;
}

html.fo-theme .hero--v2 > .container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  max-width: var(--container);
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  padding-bottom: 28px;
}

html.fo-theme .hero-top {
  text-align: center;
  width: 100%;
  max-width: var(--hero-content);
  margin: 0 auto;
  padding: 0 var(--container-pad) 44px;
  border: none;
  background: transparent;
}

html.fo-theme .hero-kicker {
  justify-content: center;
  margin-bottom: 20px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  border: 1px solid var(--color-border);
  color: var(--color-accent);
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: none;
}

html.fo-theme .hero-kicker .ico {
  color: var(--color-accent-2);
}

html.fo-theme .hero--v2 .hero-top h1 {
  max-width: none;
  margin-bottom: 20px;
  line-height: 1.12;
}

html.fo-theme .hero-sub {
  max-width: none;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

html.fo-theme .hero-meta,
html.fo-theme .hero-cta {
  justify-content: center;
}

html.fo-theme .meta-pill {
  border-radius: 999px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-text-soft);
  font-family: var(--font-sans);
  font-size: .8rem;
  box-shadow: none;
}

/* Score dashboard — three-column layout, site styling */
html.fo-theme .score-dashboard {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, 220px);
  grid-template-areas: "score metrics aside";
  gap: 0 22px;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0 0 32px;
  padding: 22px 26px;
  background: linear-gradient(105deg, #001818 0%, #002f2f 45%, #005050 100%);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

html.fo-theme .score-dashboard::before {
  display: none;
}

html.fo-theme .score-dashboard__col--score {
  grid-area: score;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}

html.fo-theme .score-dashboard__col--metrics {
  grid-area: metrics;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-width: 0;
}

html.fo-theme .score-dashboard__meter-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 4px;
  padding: 8px 0 10px;
}

html.fo-theme .score-dashboard__label {
  color: var(--color-text-soft);
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

html.fo-theme .score-dashboard__score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

html.fo-theme .score-dashboard__value {
  font-family: var(--font-display);
  font-size: clamp(3.75rem, 8.5vw, 5.75rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.03em;
  color: var(--color-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

html.fo-theme .score-dashboard__max {
  margin: 0 0 .16em;
  color: var(--color-text-muted);
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 600;
  line-height: 1;
}

html.fo-theme .score-meter {
  width: 100%;
  max-width: none;
  height: 10px;
  margin: 0;
  background: rgba(255, 255, 255, .2);
  border-radius: 999px;
}

html.fo-theme .score-meter__fill {
  background: linear-gradient(90deg, var(--color-accent), #d4c4a0);
  border-radius: 999px;
}

html.fo-theme .score-dashboard .score-badge {
  margin: 4px 0;
  padding: 8px 18px;
  white-space: nowrap;
  background: rgba(184, 160, 112, .28);
  color: #f8eed8;
  border-radius: 999px;
}

html.fo-theme .score-signals {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

html.fo-theme .score-signals li {
  flex: 1 1 calc(33.333% - 4px);
  min-width: 0;
  padding: 6px 10px;
  border-radius: 8px;
  border-left: none;
  background: rgba(255, 255, 255, .1);
  color: var(--color-text-soft);
  font-size: .72rem;
  line-height: 1.35;
}

html.fo-theme .score-dashboard__aside {
  grid-area: aside;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  align-self: stretch;
  min-width: 0;
  border-left: 1px solid rgba(184, 160, 112, .22);
  padding: 2px 0 2px 22px;
  margin: 0;
  text-align: left;
}

html.fo-theme .score-dashboard__aside .btn-block {
  margin-top: 0;
}

html.fo-theme .score-dashboard__aside .score-disclaimer + .btn,
html.fo-theme .score-dashboard__aside .score-disclaimer + .btn-block {
  margin-top: 14px;
}

html.fo-theme .score-dashboard__aside .btn + .score-disclaimer,
html.fo-theme .score-dashboard__aside .btn-block + .score-disclaimer {
  margin-top: 14px;
}

html.fo-theme .score-disclaimer {
  color: var(--color-text-muted);
  font-size: .72rem;
  line-height: 1.45;
  margin: 0;
}

/* ========== Author ========== */
html.fo-theme .author-strip {
  padding-top: 40px;
  padding-bottom: 16px;
}

/* Keep horizontal inset aligned with score-dashboard (.container pad) */
html.fo-theme .author-strip.container,
html.fo-theme section.verdict-panel.container {
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

html.fo-theme .author-strip__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  border: none;
  border-left: 5px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
}

html.fo-theme .author-strip__body {
  display: contents;
}

html.fo-theme .author-strip__avatar {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: start;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  background-color: var(--color-accent);
  color: #003d3d;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  box-shadow: none;
}

html.fo-theme .author-strip__name {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

html.fo-theme .author-strip__role {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  margin: 2px 0 0;
}

html.fo-theme .author-strip__bio {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 14px 0 0;
  max-width: none;
  width: 100%;
  font-size: .92rem;
  line-height: 1.65;
  color: var(--color-text-soft);
}

html.fo-theme .author-strip__meta {
  grid-column: 1 / -1;
  grid-row: 4;
  margin: 10px 0 0;
  max-width: none;
  width: 100%;
}

html.fo-theme .author-strip__avatar--photo {
  background-color: var(--color-border);
  border: var(--avatar-ring);
  box-shadow: var(--avatar-ring-shadow);
}

html.fo-theme .author-strip__role span {
  color: var(--color-accent);
  font-weight: 600;
}

/* ========== Review longread: metrics + result ========== */
html.fo-theme .review-metric-strip {
  gap: 12px;
  margin: 12px 0 20px;
}

html.fo-theme .review-metric-cell {
  background: var(--color-bg-soft);
  border-color: var(--color-border-strong);
}

html.fo-theme .review-metric-cell .num {
  color: var(--color-accent);
}

html.fo-theme .result-block {
  margin: 20px 0 28px;
  padding: 18px 22px 20px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  box-shadow: inset 3px 0 0 var(--color-accent);
  text-align: left;
}

html.fo-theme .result-block-label {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--color-accent);
  margin: 0 0 6px;
}

html.fo-theme .result-block-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  margin: 0 0 10px;
}

html.fo-theme .result-block-help {
  font-size: .9rem;
  color: var(--color-text-muted);
  max-width: none;
}

/* ========== Verdict: pros / cons cards ========== */
html.fo-theme section.verdict-panel {
  padding-top: 20px;
  padding-bottom: 52px;
}

html.fo-theme .verdict-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
  border: none;
  background: transparent;
  box-shadow: none;
}

html.fo-theme .verdict-col {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

html.fo-theme .verdict-col--plus {
  background: var(--color-surface);
  border-top: 4px solid var(--color-positive);
}

html.fo-theme .verdict-col--minus {
  background: var(--color-bg-soft);
  border-top: 4px solid var(--color-accent-2);
}

html.fo-theme .verdict-col h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.2;
  text-transform: none;
  border: none;
  padding: 0;
  margin: 0 0 20px;
  display: block;
}

html.fo-theme .verdict-col--plus h3 {
  color: var(--color-text);
}

html.fo-theme .verdict-col--minus h3 {
  color: var(--color-text);
}

/* ========== Sections ========== */
html.fo-theme .section-alt {
  background: var(--color-bg-soft);
  border: none;
}

html.fo-theme section.section-alt {
  padding-top: 56px;
}

html.fo-theme .section-alt + .section-alt {
  padding-top: 28px;
  border-top: none;
}

html.fo-theme .section-alt:has(+ .section-alt) {
  padding-bottom: 28px;
}

html.fo-theme .section-head--v2,
html.fo-theme .section-head.left.section-head--v2 {
  border-left: none;
  padding-left: 0;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 18px;
}

html.fo-theme .section-head--v2 + .article,
html.fo-theme .section-head.left.section-head--v2 + .article {
  margin-top: 0;
}

html.fo-theme .section-head--v2 .section-sub {
  margin-top: 2px;
}

html.fo-theme .section-head.left.section-head--v2 {
  text-align: left;
  margin-left: 0;
}

html.fo-theme .section-head--v2::before,
html.fo-theme .section-head.left.section-head--v2::before {
  content: none;
}

html.fo-theme .section-head--v2 .eyebrow {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 6px;
}

html.fo-theme .section-head--v2 h2 {
  border: none;
  margin-bottom: 6px;
}

/* ========== Signals: numbered list ========== */
html.fo-theme .signal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

html.fo-theme .signal-row {
  display: grid !important;
  grid-template-columns: 56px 1fr auto;
  gap: 16px 20px;
  padding: 22px 24px;
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-surface);
  counter-increment: signal;
  box-shadow: none !important;
  transform: none !important;
}

html.fo-theme .signal-row:last-child {
  border-bottom: none;
}

html.fo-theme .signal-list {
  counter-reset: signal;
}

html.fo-theme .signal-row::before {
  content: counter(signal, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: .5;
  grid-column: 1;
  align-self: center;
}

html.fo-theme .signal-row__icon {
  display: none;
}

html.fo-theme .signal-row > div {
  grid-column: 2;
}

html.fo-theme .signal-row .status {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  border-radius: 999px;
  border: none;
  background: var(--color-bg-soft);
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

html.fo-theme .signal-row:hover {
  background: var(--color-accent-soft);
}

/* ========== Review longread: sticky author card (desktop) ========== */
html.fo-theme.page-review-longread main,
html.fo-theme.page-review-longread .section--review,
html.fo-theme main:has(.review-page-grid),
html.fo-theme .section:has(.review-page-grid) {
  overflow: visible;
  overflow-x: visible;
}

html.fo-theme .container.review-page-grid {
  overflow: visible;
}

html.fo-theme .review-page-grid {
  overflow: visible;
}

/* Methodology step cards */
html.fo-theme .method-grid--steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html.fo-theme .method-card {
  background: linear-gradient(165deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
}

html.fo-theme .method-card h3 {
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -.01em;
}

html.fo-theme .method-num {
  background: rgba(0, 30, 30, .55);
  border-color: var(--color-border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

html.fo-theme .method-card p {
  border-top-color: rgba(184, 160, 112, .16);
  color: var(--color-text-muted);
}

@media (max-width: 1024px) {
  html.fo-theme .method-grid--steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  html.fo-theme .method-grid--steps {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  html.fo-theme .review-page-grid {
    align-items: stretch;
  }

  html.fo-theme .review-author-sticky-slot {
    align-self: stretch;
  }

  html.fo-theme .review-author-card {
    position: sticky;
    top: var(--sticky-sidebar-top, 108px);
    z-index: 5;
    max-height: calc(100vh - var(--sticky-sidebar-top, 108px) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

html.fo-theme .review-comment {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
}

html.fo-theme .review-comments-list {
  gap: 12px;
}

html.fo-theme .review-comment-meta {
  color: var(--color-text-muted);
}

html.fo-theme .review-comment-text {
  color: var(--color-text-soft);
}

html.fo-theme .review-comment-hub {
  padding-bottom: 64px;
}

html.fo-theme .review-comment-hub__panel {
  background: var(--color-surface);
  border-color: var(--color-border-strong);
}

html.fo-theme .review-comment-hub__title {
  font-family: var(--font-display);
  font-weight: 600;
}

html.fo-theme .review-comment-hub__panel .contact-form {
  background: var(--color-bg-soft);
}

@media (max-width: 980px) {
  html.fo-theme .review-page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: start;
  }

  html.fo-theme .review-author-sticky-slot {
    align-self: auto;
  }

  html.fo-theme .review-author-card {
    position: static;
    top: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
    width: 100%;
  }

  html.fo-theme .review-content {
    min-width: 0;
    width: 100%;
  }
}

/* ========== Reviews ========== */
html.fo-theme .reviews-summary--compact {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

html.fo-theme .review-list {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html.fo-theme .page-reviews-body .filter-tabs {
  max-width: 100%;
  min-width: 0;
}

/* Отзывы: типографика формы */
html.fo-theme .page-reviews-main #review-form .contact-form-wrap,
html.fo-theme .page-reviews-main #review-form .contact-form {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

html.fo-theme .page-reviews-main #review-form .section-head {
  max-width: 100%;
  padding-inline: 0;
}

html.fo-theme .page-reviews-main .contact-form .form-field label,
html.fo-theme .page-reviews-main .contact-form .form-check span {
  overflow-wrap: anywhere;
}

html.fo-theme .page-reviews-main .page-header h1,
html.fo-theme .page-reviews-main .page-header .page-sub,
html.fo-theme .page-reviews-main .page-header .hero-meta {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  html.fo-theme .page-reviews-main .page-header .hero-meta {
    justify-content: center;
    gap: 8px;
  }

  html.fo-theme main:has(#reviewForm) .meta-pill {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  html.fo-theme .reviews-summary--compact {
    position: static;
    top: auto;
  }
}

html.fo-theme .reviews-summary--compact .rs-score {
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

html.fo-theme .reviews-summary--compact .rs-num {
  font-size: clamp(3rem, 4vw, 4rem);
  line-height: 1;
}

html.fo-theme .reviews-summary--compact .rs-stars {
  margin: 0;
  justify-content: center;
}

html.fo-theme .reviews-summary--compact .rs-count {
  display: block;
  margin: 0;
  text-align: center;
}

html.fo-theme .review-list {
  border: none;
  gap: 16px;
}

html.fo-theme .review-row {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-accent);
}

html.fo-theme .review-row:hover {
  border-left: 1px solid var(--color-border);
  border-top-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

html.fo-theme .rp-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-accent);
}

html.fo-theme .rp-card:hover {
  border-top-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}

html.fo-theme .rp-card .rp-card__avatar {
  border: var(--avatar-ring, 2px solid var(--color-border-strong));
  box-shadow: var(--avatar-ring-shadow, none);
}

html.fo-theme .similar-review-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border-strong);
  color: var(--color-text-soft);
  font-weight: 600;
  font-size: .82rem;
  width: fit-content;
}

html.fo-theme .similar-review-card:hover .read-more {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #003d3d;
}

html.fo-theme .review-row .avatar {
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #003d3d;
  border: none;
  box-shadow: none;
}

html.fo-theme .review-row .avatar.avatar--photo {
  background-color: var(--color-border);
  border: var(--avatar-ring);
  box-shadow: var(--avatar-ring-shadow);
}

html.fo-theme .rs-num,
html.fo-theme .trust-score-num {
  color: var(--color-accent);
  background: none;
  -webkit-background-clip: unset;
}

/* ========== FAQ ========== */
html.fo-theme .faq-item {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

html.fo-theme .faq-item[open] {
  border-color: var(--color-accent);
  background: var(--color-accent-soft);
}

html.fo-theme .faq-question {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ========== Footer ========== */
html.fo-theme .site-footer {
  background: var(--color-footer) !important;
  color: var(--color-text-soft);
  border-top: none !important;
  margin-top: 56px;
}

html.fo-theme .site-footer a:hover {
  color: var(--color-accent-hover);
}

html.fo-theme .footer-col {
  background: rgba(255, 255, 255, .04);
  border-color: var(--color-border);
  border-radius: var(--radius-md);
}

html.fo-theme .footer-col h4 {
  font-family: var(--font-sans);
  color: var(--color-accent);
  font-weight: 600;
  letter-spacing: .08em;
}

html.fo-theme .footer-col a {
  color: var(--color-text-muted);
}

html.fo-theme .footer-col a:hover {
  color: var(--color-text);
}

/* ========== Inner pages ========== */
html.fo-theme .page-header {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

html.fo-theme .page-header::before {
  display: none;
}

html.fo-theme .page-header .container {
  width: 100%;
  max-width: min(var(--container), 100%);
  margin-left: auto;
  margin-right: auto;
  min-width: 0;
  box-sizing: border-box;
}

html.fo-theme .page-header h1,
html.fo-theme .page-header .page-sub {
  max-width: 100%;
}

html.fo-theme .page-header .hero-meta {
  justify-content: flex-start;
  max-width: 100%;
  min-width: 0;
}

html.fo-theme .about-hero {
  background: var(--color-bg-soft);
  border-bottom: 1px solid var(--color-border);
  /* padding set above with logo sizing */
}

html.fo-theme .contact-card,
html.fo-theme .article-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

html.fo-theme .score-sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background: linear-gradient(105deg, #001818 0%, #002f2f 45%, #005050 100%);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  border-left: 5px solid var(--color-accent);
}

html.fo-theme .score-sidebar__label {
  color: var(--color-text-soft);
  text-align: center;
}

html.fo-theme .score-sidebar__value {
  color: var(--color-text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}

html.fo-theme .score-sidebar .score-meter {
  background: rgba(255, 255, 255, .2);
}

html.fo-theme .score-sidebar .score-meter__fill {
  background: linear-gradient(90deg, var(--color-accent), #d4c4a0);
}

html.fo-theme .score-sidebar .score-badge {
  margin: 10px 0 14px;
  padding: 8px 18px;
  background: rgba(184, 160, 112, .28);
  color: #f8eed8;
  border-radius: 999px;
  align-self: center;
}

html.fo-theme .score-sidebar .btn + .score-disclaimer,
html.fo-theme .score-sidebar .btn-block + .score-disclaimer {
  margin-top: 14px;
}

html.fo-theme .score-sidebar .score-signals {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 24px;
}

html.fo-theme .score-sidebar__foot {
  padding-top: 8px;
  gap: 14px;
}

html.fo-theme .score-sidebar .score-signals li {
  flex: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: none;
  background: rgba(255, 255, 255, .1);
  color: var(--color-text-soft);
  font-size: .8rem;
  line-height: 1.35;
}

/* Obzor: sticky «Индекс · Fintech Observer» (desktop) */
html.fo-theme:has(.split-grid--score) body {
  overflow-x: visible;
}

html.fo-theme main:has(.split-grid--score),
html.fo-theme .section:has(.split-grid--score),
html.fo-theme .container.split-grid--score,
html.fo-theme .split-grid--score {
  overflow: visible;
  overflow-x: visible;
}

@media (min-width: 901px) {
  html.fo-theme .split-grid--score {
    align-items: start;
  }

  html.fo-theme .split-grid--score .score-sidebar {
    position: sticky;
    top: var(--sticky-sidebar-top, calc(var(--site-header-h, 112px) + 20px));
    align-self: start;
    z-index: 5;
    height: fit-content;
    max-height: calc(100vh - var(--sticky-sidebar-top, 132px) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

@media (max-width: 900px) {
  html.fo-theme .split-grid--score .score-sidebar {
    position: static;
    top: auto;
    z-index: auto;
    max-height: none;
    overflow: visible;
  }
}

html.fo-theme input,
html.fo-theme textarea,
html.fo-theme select {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-strong) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--color-text) !important;
}

html.fo-theme input:focus,
html.fo-theme textarea:focus {
  border-color: var(--color-accent) !important;
  box-shadow: 0 0 0 3px var(--color-accent-soft) !important;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  html.fo-theme .score-dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "score"
      "metrics"
      "aside";
    gap: 18px;
    padding: 20px 18px;
  }

  html.fo-theme .score-dashboard__col--score,
  html.fo-theme .score-dashboard__col--metrics {
    padding-bottom: 0;
    border-bottom: none;
  }

  html.fo-theme .score-dashboard__score {
    justify-content: center;
  }

  html.fo-theme .score-dashboard__label {
    text-align: center;
  }

  html.fo-theme .score-dashboard__meter-head {
    flex-wrap: wrap;
    justify-content: center;
  }

  html.fo-theme .score-meter {
    width: 100%;
  }

  html.fo-theme .score-signals {
    flex-direction: column;
  }

  html.fo-theme .score-signals li {
    flex: 1 1 auto;
    width: 100%;
  }

  html.fo-theme .score-dashboard__aside {
    border-left: none;
    border-top: 1px solid rgba(184, 160, 112, .22);
    padding: 16px 0 0;
    text-align: center;
    align-items: center;
  }

  html.fo-theme .score-dashboard__aside .btn-block {
    width: 100%;
    max-width: 320px;
    margin-top: 0;
  }

  html.fo-theme .verdict-panel {
    grid-template-columns: 1fr;
  }

  html.fo-theme .site-header--v2 .main-nav--pills li:not(:last-child)::after {
    display: none;
  }

  html.fo-theme .site-header--v2 .logo {
    font-size: clamp(1rem, 4.2vw, 1.35rem);
  }

  html.fo-theme .logo-img--mark:not(.logo-img--lg) {
    width: clamp(40px, 11vw, 52px);
    height: clamp(40px, 11vw, 52px);
  }

  html.fo-theme .logo-mark {
    width: clamp(40px, 11vw, 52px);
    height: clamp(40px, 11vw, 52px);
  }

  html.fo-theme .site-header,
  html.fo-theme .site-header--v2 {
    max-width: 100%;
    overflow-x: visible;
    overflow-y: visible;
  }

  html.fo-theme .site-header--v2 .header-right,
  html.fo-theme .site-header--v2 .header-right .lang-select {
    overflow: visible;
  }

  html.fo-theme .site-header--v2 .header-right .lang-select {
    margin: 0;
    transform: none;
  }

  html.fo-theme .header-cta {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    min-height: 36px;
    font-size: .78rem !important;
    line-height: 1;
    white-space: nowrap;
  }

  html.fo-theme .site-header,
  html.fo-theme .site-header--v2 {
    border-bottom: none !important;
    box-shadow: none !important;
  }

  html.fo-theme .site-header--v2 .header-inner {
    padding-bottom: 0;
    overflow-x: visible;
  }

  html.fo-theme .site-header--v2 .main-nav {
    display: block;
    flex: 0 0 100vw;
    justify-content: flex-start;
    left: auto;
    width: 100vw;
    max-width: 100vw;
    min-width: 100vw;
    margin: 8px calc(50% - 50vw) 0;
    padding: 0;
    transform: none;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border-strong) !important;
    background: rgba(0, 0, 0, .22);
  }

  html.fo-theme .site-header--v2 .main-nav--pills {
    width: 100%;
    max-width: none;
  }

  html.fo-theme .site-header--v2 .main-nav-scroll {
    position: relative;
    width: 100%;
    min-width: 0;
  }

  html.fo-theme .site-header--v2 .main-nav-scroll-hint {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 40px;
    box-sizing: border-box;
    pointer-events: none;
    color: var(--color-accent);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  html.fo-theme .site-header--v2 .main-nav-scroll-hint--start {
    left: 0;
    justify-content: flex-start;
    padding-left: 6px;
    background: linear-gradient(
      270deg,
      transparent 0%,
      rgba(0, 20, 20, 0.55) 38%,
      rgba(0, 20, 20, 0.88) 100%
    );
  }

  html.fo-theme .site-header--v2 .main-nav-scroll-hint--end {
    right: 0;
    justify-content: flex-end;
    padding-right: 6px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(0, 20, 20, 0.55) 38%,
      rgba(0, 20, 20, 0.88) 100%
    );
  }

  html.fo-theme .site-header--v2 .main-nav-scroll.is-overflowing:not(.is-at-start) .main-nav-scroll-hint--start {
    opacity: 1;
    visibility: visible;
  }

  html.fo-theme .site-header--v2 .main-nav-scroll.is-overflowing:not(.is-at-end) .main-nav-scroll-hint--end {
    opacity: 1;
    visibility: visible;
  }

  html.fo-theme .site-header--v2 .main-nav-scroll.is-overflowing ul {
    padding-left: 36px;
    padding-right: 36px;
  }

  html.fo-theme .site-header--v2 .main-nav--pills ul {
    background: transparent;
    border: none;
    border-radius: 0;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  html.fo-theme .site-header--v2 .main-nav--pills a::after {
    left: 4px;
    right: 4px;
  }
}

@media (min-width: 901px) {
  html.fo-theme .site-header--v2 .main-nav-scroll-hint {
    display: none !important;
  }

  html.fo-theme .site-header--v2 .main-nav-scroll.is-overflowing ul {
    padding-left: max(8px, env(safe-area-inset-left, 0px));
    padding-right: max(8px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 720px) {
  html.fo-theme .site-header--v2 .header-inner {
    padding-top: 10px;
    padding-bottom: 0;
  }
}

@media (max-width: 768px) {
  html.fo-theme .author-strip__inner {
    grid-template-columns: 56px 1fr;
    gap: 12px 16px;
    padding: 20px 18px;
  }

  html.fo-theme .author-strip__body {
    display: contents;
  }

  html.fo-theme .author-strip__avatar {
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: start;
  }

  html.fo-theme .author-strip__name {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    margin-bottom: 0;
  }

  html.fo-theme .author-strip__role {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 2px;
  }

  html.fo-theme .author-strip__bio,
  html.fo-theme .author-strip__meta {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  html.fo-theme .author-strip__bio {
    grid-row: 3;
    margin-top: 4px;
  }

  html.fo-theme .author-strip__meta {
    grid-row: 4;
  }

  html.fo-theme .signal-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 6px 12px;
    padding: 16px 18px;
    align-items: start;
  }

  html.fo-theme .signal-row::before {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: start;
    font-size: 1.15rem;
    line-height: 1.2;
    padding-top: 2px;
  }

  html.fo-theme .signal-row > div {
    display: contents;
  }

  html.fo-theme .signal-row h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: center;
    font-size: 1rem;
  }

  html.fo-theme .signal-row p {
    grid-column: 2 / 4;
    grid-row: 2;
    margin: 0;
  }

  html.fo-theme .signal-row .status {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    margin-top: 0;
    white-space: nowrap;
  }

  html.fo-theme .reviews-summary--compact {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  html.fo-theme .reviews-summary--compact .rs-score {
    width: 100%;
    max-width: 100%;
  }

  html.fo-theme .reviews-summary--compact .rs-bars {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  html.fo-theme .filters-row .filter-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    padding: 8px;
    border-radius: var(--radius-lg);
    background: var(--color-bg-soft);
    overflow-x: clip;
  }

  html.fo-theme .filters-row label.filter-tab,
  html.fo-theme .filters-row button.filter-tab {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 999px;
  }

  html.fo-theme .review-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px 14px;
    padding: 16px 18px;
    align-items: start;
  }

  html.fo-theme .review-row header > div {
    display: contents;
  }

  html.fo-theme .review-row .avatar {
    display: inline-flex !important;
    grid-column: 1;
    grid-row: 1 / 4;
    align-self: start;
    width: 60px;
    height: 60px;
    border-radius: 50%;
  }

  html.fo-theme .review-row .rev-name {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
  }

  html.fo-theme .review-row .rev-meta {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
  }

  html.fo-theme .review-row .rev-stars {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    justify-self: start;
    margin-top: 4px;
  }

  html.fo-theme .review-row > p {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 10px;
  }

  html.fo-theme .review-row .btn-read-full {
    grid-column: 1 / -1;
    grid-row: 5;
    margin-top: 8px;
  }
}

@media (max-width: 480px) {
  html.fo-theme .review-row {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  html.fo-theme .review-row .avatar {
    width: 52px;
    height: 52px;
  }
}

/* Cookie consent banner */
html.fo-theme .fo-cookie-banner {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10050;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(0, 38, 38, .72) 0%, var(--color-bg-soft) 24%);
  border-top: 1px solid var(--color-border-strong);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, .35);
  backdrop-filter: blur(10px);
}

html.fo-theme .fo-cookie-banner.is-visible {
  display: block;
}

html.fo-theme .fo-cookie-banner__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

html.fo-theme .fo-cookie-banner__content {
  flex: 1 1 280px;
  min-width: 0;
}

html.fo-theme .fo-cookie-banner__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}

html.fo-theme .fo-cookie-banner__text {
  margin: 0 0 8px;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

html.fo-theme .fo-cookie-banner__link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

html.fo-theme .fo-cookie-banner__link:hover {
  color: var(--color-accent-hover);
}

html.fo-theme .fo-cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  html.fo-theme .fo-cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }

  html.fo-theme .fo-cookie-banner__actions {
    width: 100%;
  }

  html.fo-theme .fo-cookie-banner__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Мобильное меню языка: влево от кнопки (не вниз — иначе обрезается низом шапки) */
@media (max-width: 900px) {
  html.fo-theme .lang-select.open .lang-menu {
    position: absolute;
    top: 0;
    right: calc(100% + 8px);
    left: auto;
    bottom: auto;
    z-index: 1000;
    transform: none;
    max-height: none;
    overflow: visible;
  }
}
