/* findmodel UI (design 2026-11). Generated from v2/mockup/assets/style.css with the fm- prefix + WordPress layer below. Values: tokens.css only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fmx-bg); color: var(--fmx-text);
  font: var(--fmx-fs-base)/var(--fmx-lh-body) var(--fmx-font-sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--fmx-bottom-nav-h) + var(--fmx-safe-bottom));
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--fmx-primary); text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--fmx-font-display); line-height: var(--fmx-lh-tight); letter-spacing: var(--fmx-tracking-tight); font-weight: 700; margin: 0 0 var(--fmx-s-3); color: var(--fmx-ink); }
h1 { font-size: var(--fmx-fs-3xl); }
h2 { font-size: var(--fmx-fs-2xl); }
h3 { font-size: var(--fmx-fs-xl); letter-spacing: -0.02em; }
h4 { font-size: var(--fmx-fs-lg); letter-spacing: -0.01em; }
p { margin: 0 0 var(--fmx-s-4); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--fmx-focus); outline-offset: 2px; border-radius: var(--fmx-radius-sm); }
.fm-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fm-skip-link { position: absolute; left: var(--fmx-s-2); top: -4rem; background: var(--fmx-primary); color: var(--fmx-on-primary); padding: var(--fmx-s-2) var(--fmx-s-4); z-index: var(--fmx-z-modal); border-radius: var(--fmx-radius-md); }
.fm-skip-link:focus { top: var(--fmx-s-2); }
.fm-container { width: 100%; max-width: var(--fmx-container); margin: 0 auto; padding: 0 var(--fmx-gutter); }
.fm-section { padding: var(--fmx-s-7) 0; }
.fm-section-alt { background: var(--fmx-surface); }
.fm-section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--fmx-s-3); margin-bottom: var(--fmx-s-5); flex-wrap: wrap; }
.fm-section-head h2 { margin: var(--fmx-s-1) 0 0; }
.fm-section-head p { margin: var(--fmx-s-2) 0 0; color: var(--fmx-text-muted); font-size: var(--fmx-fs-lg); max-width: 40rem; }
.fm-eyebrow { display: inline-flex; align-items: center; gap: var(--fmx-s-2); font-size: var(--fmx-fs-xs); font-weight: 700; letter-spacing: var(--fmx-tracking-caps); text-transform: uppercase; color: var(--fmx-primary); }
.fm-muted { color: var(--fmx-text-muted); }

/* ---- Плейсхолдер иконки ---- */
.fm-ic { display: inline-block; flex: none; width: 1.25rem; height: 1.25rem; vertical-align: -0.2em; }
.fm-ic-sm { width: 0.875rem; height: 0.875rem; }
.fm-ic-ph { border: 1.5px dashed currentColor; border-radius: 0.375rem; opacity: 0.55; }
.fm-icon-btn[data-fm-fav][aria-pressed="true"] .fm-ic, .fm-profile-actions [data-fm-fav][aria-pressed="true"] .fm-ic { fill: currentColor; }
.fm-ph-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fm-card-media > .fm-ph-img { position: absolute; inset: 0; }
.fm-flag { width: 2.5rem; height: 1.875rem; flex: none; border-radius: var(--fmx-radius-sm); object-fit: cover; box-shadow: 0 0 0 1px var(--fmx-border); }
.fm-flag-none { display: inline-block; background: var(--fmx-surface); }
.fm-brand { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: var(--fmx-radius-md); background: var(--fmx-surface); color: var(--fmx-primary); }
.fm-brand-svg { width: 1.25rem; height: 1.25rem; }
.fm-logo-svg { display: block; height: 1.5rem; width: auto; max-width: 100%; }
.fm-site-header .fm-logo { min-width: 0; flex: 0 1 auto; }
@media (min-width: 480px) { .fm-logo-svg { height: 2rem; } }
.fm-logo-b { fill: var(--fmx-primary); }
.fm-step-ic { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: var(--fmx-s-5); border-radius: var(--fmx-radius-md); background: var(--fmx-primary-soft); color: var(--fmx-primary); }
.fm-step-ic .fm-ic { width: 1.5rem; height: 1.5rem; }
.fm-step:nth-child(2) .fm-step-ic { background: var(--fmx-violet-soft); color: var(--fmx-violet); }
.fm-empty-ic { display: grid; place-items: center; width: 4rem; height: 4rem; margin: 0 auto var(--fmx-s-4); border-radius: 50%; background: var(--fmx-primary-soft); color: var(--fmx-primary); }
.fm-empty-ic .fm-ic { width: 1.75rem; height: 1.75rem; }
.fm-cta-art svg { display: block; width: 100%; height: auto; }

/* ---- Плейсхолдер служебной графики ---- */
.fm-ph { display: grid; place-items: center; background: var(--fmx-primary-soft); border: 1.5px dashed var(--fmx-primary); color: var(--fmx-primary); font-size: var(--fmx-fs-xs); font-weight: 700; letter-spacing: 0.04em; text-align: center; border-radius: var(--fmx-radius-md); padding: var(--fmx-s-1); }

/* ---- Кнопки ---- */
.fm-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--fmx-s-2); min-height: var(--fmx-touch-min); padding: 0 var(--fmx-s-5); border-radius: var(--fmx-radius-md); border: 1px solid transparent; font-weight: 600; font-size: var(--fmx-fs-base); letter-spacing: -0.01em; text-decoration: none; transition: background var(--fmx-dur) var(--fmx-ease), color var(--fmx-dur) var(--fmx-ease), border-color var(--fmx-dur) var(--fmx-ease), box-shadow var(--fmx-dur) var(--fmx-ease), transform var(--fmx-dur-fast) var(--fmx-ease); white-space: nowrap; }
.fm-btn:active { transform: translateY(1px); }
.fm-btn-primary { background: var(--fmx-primary); color: var(--fmx-on-primary); box-shadow: var(--fmx-shadow-btn); }
.fm-btn-primary:hover { background: var(--fmx-primary-hover); }
.fm-btn-accent { background: var(--fmx-gradient); color: var(--fmx-on-primary); box-shadow: var(--fmx-shadow-btn-accent); }
.fm-btn-accent:hover { filter: brightness(1.08); }
.fm-btn-ghost { background: var(--fmx-surface-raised); border-color: var(--fmx-border); color: var(--fmx-ink); box-shadow: var(--fmx-shadow-sm); }
.fm-btn-ghost:hover { border-color: var(--fmx-border-strong); background: var(--fmx-surface); }
.fm-btn-block { width: 100%; }
.fm-btn-lg { min-height: 3.25rem; font-size: var(--fmx-fs-lg); padding: 0 var(--fmx-s-6); }
.fm-icon-btn { display: inline-grid; place-items: center; width: var(--fmx-touch-min); height: var(--fmx-touch-min); border-radius: var(--fmx-radius-md); border: 1px solid var(--fmx-border); background: var(--fmx-surface-raised); color: var(--fmx-ink); position: relative; text-decoration: none; transition: background var(--fmx-dur) var(--fmx-ease), color var(--fmx-dur) var(--fmx-ease), border-color var(--fmx-dur) var(--fmx-ease); }
.fm-icon-btn:hover { border-color: var(--fmx-border-strong); background: var(--fmx-surface); }
.fm-icon-btn[aria-pressed="true"] { color: var(--fmx-on-primary); border-color: var(--fmx-pink); background: var(--fmx-pink); }
.fm-icon-btn.fm-is-compare[aria-pressed="true"] { border-color: var(--fmx-primary); background: var(--fmx-primary); }

.fm-count-dot { position: absolute; top: -6px; right: -6px; min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: var(--fmx-radius-pill); background: var(--fmx-pink); color: var(--fmx-on-primary); font-size: var(--fmx-fs-xs); font-weight: 700; line-height: 1.25rem; text-align: center; box-shadow: 0 0 0 2px var(--fmx-surface-raised); }
.fm-count-dot:empty { display: none; }

/* ---- Логотип ---- */
.fm-logo { display: inline-flex; align-items: center; gap: var(--fmx-s-2); text-decoration: none; color: var(--fmx-ink); font-family: var(--fmx-font-display); font-weight: 700; font-size: var(--fmx-fs-lg); letter-spacing: -0.03em; }
.fm-logo .fm-ph { width: 2.25rem; height: 2.25rem; padding: 0; font-size: 0.5625rem; border-radius: var(--fmx-radius-md); }
.fm-logo b { color: var(--fmx-primary); font-weight: 700; }

/* ---- Шапка: на телефоне полоса, с 768px плавающая пилюля ---- */
.fm-site-header { position: sticky; top: 0; z-index: var(--fmx-z-sticky); background: var(--fmx-surface-raised); border-bottom: 1px solid var(--fmx-border); }
.fm-site-header .fm-container { display: flex; align-items: center; gap: var(--fmx-s-3); min-height: 3.75rem; }
.fm-main-nav { display: none; gap: var(--fmx-s-1); margin-left: var(--fmx-s-4); }
.fm-main-nav a { padding: var(--fmx-s-2) var(--fmx-s-3); border-radius: var(--fmx-radius-pill); color: var(--fmx-text-muted); text-decoration: none; font-weight: 500; font-size: var(--fmx-fs-sm); transition: color var(--fmx-dur) var(--fmx-ease), background var(--fmx-dur) var(--fmx-ease); }
.fm-main-nav a:hover { color: var(--fmx-ink); background: var(--fmx-surface); }
.fm-main-nav a[aria-current="page"] { color: var(--fmx-primary); background: var(--fmx-primary-soft); font-weight: 600; }
.fm-nav-dd { position: relative; }
.fm-nav-dd > button { display: inline-flex; align-items: center; gap: .4rem; padding: var(--fmx-s-2) var(--fmx-s-3); border: 0; border-radius: var(--fmx-radius-pill); background: none; color: var(--fmx-text-muted); font-weight: 500; font-size: var(--fmx-fs-sm); transition: color var(--fmx-dur) var(--fmx-ease), background var(--fmx-dur) var(--fmx-ease); }
.fm-nav-dd > button::after { content: ""; width: .4rem; height: .4rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--fmx-dur) var(--fmx-ease); }
.fm-nav-dd > button:hover, .fm-nav-dd.is-open > button { color: var(--fmx-ink); background: var(--fmx-surface); }
.fm-nav-dd.is-open > button::after { transform: translateY(1px) rotate(-135deg); }
.fm-nav-dd-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); padding-top: var(--fmx-s-3); width: 26rem; display: none; z-index: var(--fmx-z-sheet); }
.fm-nav-dd-inner { padding: var(--fmx-s-3); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); box-shadow: var(--fmx-shadow-lg); }
.fm-nav-dd.is-open .fm-nav-dd-panel { display: block; }
.fm-nav-dd-panel ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.fm-nav-dd-panel li a { display: flex; justify-content: space-between; align-items: center; gap: var(--fmx-s-2); padding: var(--fmx-s-2) var(--fmx-s-3); border-radius: var(--fmx-radius-md); color: var(--fmx-ink); text-decoration: none; font-size: var(--fmx-fs-sm); font-weight: 500; }
.fm-nav-dd-panel li a:hover, .fm-nav-dd-panel li a:focus-visible { background: var(--fmx-primary-soft); color: var(--fmx-primary); }
.fm-nav-dd-panel li small { color: var(--fmx-text-muted); font-size: var(--fmx-fs-xs); font-weight: 500; }
.fm-nav-dd-all { display: block; margin-top: var(--fmx-s-2); padding: var(--fmx-s-2) var(--fmx-s-3) 0; border-top: 1px solid var(--fmx-border); color: var(--fmx-primary); font-size: var(--fmx-fs-sm); font-weight: 600; text-decoration: none; }
.fm-header-actions { margin-left: auto; display: flex; gap: var(--fmx-s-2); }
.fm-header-search { display: none; }

/* ---- Поиск ---- */
.fm-search { position: relative; display: flex; align-items: center; gap: var(--fmx-s-1); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border-strong); border-radius: var(--fmx-radius-lg); padding-left: var(--fmx-s-4); color: var(--fmx-text-muted); box-shadow: var(--fmx-shadow-sm); transition: border-color var(--fmx-dur) var(--fmx-ease), box-shadow var(--fmx-dur) var(--fmx-ease); }
.fm-search:focus-within { border-color: var(--fmx-primary); box-shadow: 0 0 0 4px var(--fmx-primary-soft); }
.fm-search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 3rem; font-size: var(--fmx-fs-base); outline: none; padding: 0 var(--fmx-s-1); color: var(--fmx-ink); }
.fm-search input::placeholder { color: var(--fmx-text-muted); }
.fm-search .fm-btn { margin: 5px; border-radius: var(--fmx-radius-md); }
.fm-search-results { position: absolute; left: 0; right: 0; top: calc(100% + var(--fmx-s-2)); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); box-shadow: var(--fmx-shadow-lg); z-index: var(--fmx-z-sheet); overflow: hidden; text-align: left; padding: var(--fmx-s-2); }
.fm-search-results a { display: flex; align-items: center; gap: var(--fmx-s-3); padding: var(--fmx-s-2); border-radius: var(--fmx-radius-md); color: var(--fmx-ink); text-decoration: none; font-weight: 500; }
.fm-search-results a:hover, .fm-search-results a:focus { background: var(--fmx-surface); }
.fm-search-results img { width: 2.5rem; height: 2.5rem; border-radius: var(--fmx-radius-md); object-fit: cover; }
.fm-search-results small { color: var(--fmx-text-muted); display: block; font-weight: 400; }
.fm-search-empty { padding: var(--fmx-s-3); color: var(--fmx-text-muted); }

/* ---- Hero: свечения + тонкая сетка ---- */
.fm-hero { position: relative; overflow: hidden; padding: var(--fmx-s-7) 0 var(--fmx-s-7); text-align: center; isolation: isolate;
  background:
    radial-gradient(40rem 22rem at 15% 0%, var(--fmx-glow-blue), transparent 70%),
    radial-gradient(36rem 22rem at 85% 10%, var(--fmx-glow-violet), transparent 70%),
    radial-gradient(30rem 18rem at 50% 100%, var(--fmx-glow-sky), transparent 70%),
    var(--fmx-bg); }
.fm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--fmx-border) 1px, transparent 1px), linear-gradient(90deg, var(--fmx-border) 1px, transparent 1px); background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%); opacity: 0.6; }
.fm-hero .fm-eyebrow { background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-pill); padding: var(--fmx-s-1) var(--fmx-s-3) var(--fmx-s-1) var(--fmx-s-2); box-shadow: var(--fmx-shadow-sm); color: var(--fmx-ink); letter-spacing: 0.04em; text-transform: none; font-weight: 600; font-size: var(--fmx-fs-sm); }
.fm-hero .fm-eyebrow::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: var(--fmx-radius-pill); background: var(--fmx-sky); box-shadow: 0 0 0 4px var(--fmx-glow-sky); }
.fm-hero .fm-eyebrow .fm-ic { display: none; }
.fm-hero h1 { max-width: 52rem; margin: var(--fmx-s-5) auto var(--fmx-s-4); }
.fm-hero h1 span { display: inline-block; color: var(--fmx-violet-ink); background: var(--fmx-violet-soft); border-radius: var(--fmx-radius-md); padding: 0 0.18em 0.04em; }
.fm-hero .fm-lead { max-width: 38rem; margin: 0 auto var(--fmx-s-6); color: var(--fmx-text-muted); font-size: var(--fmx-fs-lg); }
.fm-hero .fm-search { max-width: 40rem; margin: 0 auto; box-shadow: var(--fmx-shadow-lg); border-color: var(--fmx-border); }
.fm-quick-cats { display: flex; justify-content: center; gap: var(--fmx-s-2); flex-wrap: wrap; margin: var(--fmx-s-5) 0 var(--fmx-s-6); }
.fm-quick-cats a { display: inline-flex; align-items: center; gap: var(--fmx-s-2); min-height: var(--fmx-touch-min); padding: 0 var(--fmx-s-4); border-radius: var(--fmx-radius-pill); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); color: var(--fmx-ink); font-weight: 600; font-size: var(--fmx-fs-sm); text-decoration: none; box-shadow: var(--fmx-shadow-sm); transition: border-color var(--fmx-dur) var(--fmx-ease), color var(--fmx-dur) var(--fmx-ease); }
.fm-quick-cats a:hover { border-color: var(--fmx-primary); color: var(--fmx-primary); }
.fm-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 40rem; margin: 0 auto; background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); box-shadow: var(--fmx-shadow-sm); }
.fm-hero-stats div { padding: var(--fmx-s-4) var(--fmx-s-2); }
.fm-hero-stats div + div { border-left: 1px solid var(--fmx-border); }
.fm-hero-stats strong { display: block; font-family: var(--fmx-font-display); font-size: var(--fmx-fs-2xl); letter-spacing: var(--fmx-tracking-tight); line-height: 1.1; background: var(--fmx-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fm-hero-stats div:nth-child(n+2) strong { font-size: var(--fmx-fs-lg); line-height: 2rem; letter-spacing: -0.02em; }
.fm-hero-stats span { font-size: var(--fmx-fs-xs); color: var(--fmx-text-muted); font-weight: 500; }

/* ---- Карточка модели ---- */
.fm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fmx-s-3); }
.fm-card { position: relative; display: flex; flex-direction: column; background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); overflow: hidden; box-shadow: var(--fmx-shadow-sm); transition: box-shadow var(--fmx-dur) var(--fmx-ease), transform var(--fmx-dur) var(--fmx-ease), border-color var(--fmx-dur) var(--fmx-ease); }
.fm-card:hover { box-shadow: var(--fmx-shadow-md); transform: translateY(-3px); border-color: var(--fmx-border-strong); }
.fm-card-media { position: relative; flex: none; aspect-ratio: var(--fmx-photo-ratio); background: var(--fmx-surface); overflow: hidden; margin: 6px 6px 0; border-radius: calc(var(--fmx-radius-lg) - 6px); }
.fm-card-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--fmx-ease); }
.fm-card:hover .fm-card-media > img { transform: scale(1.03); }
.fm-card-media .fm-ph, .fm-card-media > span.fm-ph { position: absolute; inset: 0; border-radius: 0; }
.fm-card-badges { position: absolute; top: var(--fmx-s-2); left: var(--fmx-s-2); display: flex; flex-direction: column; align-items: flex-start; gap: var(--fmx-s-1); }
.fm-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: var(--fmx-radius-sm); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.35; color: var(--fmx-on-primary); background: var(--fmx-primary); box-shadow: 0 2px 8px rgb(0 0 0 / 0.18); }
.fm-badge .fm-ic { display: none; }
.fm-badge-new { background: var(--fmx-new); }
.fm-badge-top { background: var(--fmx-ink); }
.fm-badge-top::before { content: ""; width: .4rem; height: .4rem; border-radius: var(--fmx-radius-pill); background: var(--fmx-star); }
.fm-badge-free { background: var(--fmx-success); }
.fm-badge-sponsored { background: var(--fmx-sponsor); }
.fm-card-tools { position: absolute; top: var(--fmx-s-2); right: var(--fmx-s-2); display: flex; flex-direction: column; gap: var(--fmx-s-2); }
.fm-card-tools .fm-icon-btn { border-color: transparent; box-shadow: var(--fmx-shadow-sm); border-radius: var(--fmx-radius-pill); }
.fm-card-media-foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: var(--fmx-s-1) var(--fmx-s-3); flex-wrap: wrap; overflow: hidden; padding: var(--fmx-s-6) var(--fmx-s-3) var(--fmx-s-2); background: linear-gradient(transparent, var(--fmx-overlay)); color: var(--fmx-on-primary); font-size: var(--fmx-fs-xs); font-weight: 600; }
.fm-card-media-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.fm-card-body { display: flex; flex-direction: column; gap: 2px; padding: var(--fmx-s-3) var(--fmx-s-3) var(--fmx-s-3); flex: 1; }
.fm-card-name { display: flex; align-items: flex-start; gap: .35rem; line-height: 1.3; font-family: var(--fmx-font-display); font-weight: 700; font-size: var(--fmx-fs-base); letter-spacing: -0.02em; color: var(--fmx-ink); text-decoration: none; min-width: 0; }
.fm-card-name > span:first-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; } /* имя целиком, с эмодзи модели */
.fm-card-name .fm-verified { margin-top: .15em; }
.fm-card-name::after { content: ""; position: absolute; inset: 0; } /* вся карточка кликабельна */
.fm-verified { color: var(--fmx-primary); display: inline-flex; }
.fm-card-user { font-size: var(--fmx-fs-sm); color: var(--fmx-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-card-price { display: flex; align-items: center; justify-content: space-between; gap: var(--fmx-s-2); margin: var(--fmx-s-2) 0 var(--fmx-s-3); padding-top: var(--fmx-s-2); border-top: 1px solid var(--fmx-border); font-size: var(--fmx-fs-sm); }
.fm-price { font-family: var(--fmx-font-display); font-weight: 700; font-size: var(--fmx-fs-lg); letter-spacing: -0.02em; color: var(--fmx-ink); }
.fm-price small { font-family: var(--fmx-font-sans); font-weight: 500; font-size: var(--fmx-fs-xs); color: var(--fmx-text-muted); letter-spacing: 0; }
.fm-price-free { color: var(--fmx-success); }
.fm-card-body .fm-btn { margin-top: auto; position: relative; z-index: 1; }
.fm-card-tools, .fm-card-badges { z-index: 2; }

/* Рекламный блок внутри сетки */
.fm-sponsored-block { grid-column: 1 / -1; position: relative; background: var(--fmx-promo-bg); border-radius: var(--fmx-radius-xl); padding: var(--fmx-s-5) var(--fmx-s-4); color: var(--fmx-on-primary); overflow: hidden; }
.fm-sponsored-block .fm-section-head { margin-bottom: var(--fmx-s-4); }
.fm-sponsored-block h2 { font-size: var(--fmx-fs-xl); color: var(--fmx-on-primary); }
.fm-sponsored-block .fm-section-head p { color: var(--fmx-on-promo-muted); font-size: var(--fmx-fs-base); }
.fm-sponsored-block .fm-card { border-color: var(--fmx-promo-border); box-shadow: var(--fmx-shadow-md); }
.fm-ad-label { display: inline-flex; align-items: center; gap: var(--fmx-s-2); font-size: var(--fmx-fs-xs); color: var(--fmx-sponsor); font-weight: 700; text-transform: uppercase; letter-spacing: var(--fmx-tracking-caps); }
.fm-ad-label::before { content: ""; width: .45rem; height: .45rem; border-radius: var(--fmx-radius-pill); background: currentColor; }
.fm-sponsored-block .fm-ad-label, .fm-promo .fm-ad-label { color: var(--fmx-on-primary); }
.fm-sponsored-block .fm-ad-label::before, .fm-promo .fm-ad-label::before { background: var(--fmx-star); }

/* ---- Feed ---- */
.fm-feed { display: grid; gap: var(--fmx-s-4); }
.fm-feed-item { position: relative; background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); overflow: hidden; box-shadow: var(--fmx-shadow-sm); transition: box-shadow var(--fmx-dur) var(--fmx-ease); }
.fm-feed-item:hover { box-shadow: var(--fmx-shadow-md); }
.fm-feed-cover { aspect-ratio: var(--fmx-cover-ratio); background: var(--fmx-surface); margin: 6px 6px 0; border-radius: calc(var(--fmx-radius-lg) - 6px); overflow: hidden; }
.fm-feed-cover img { width: 100%; height: 100%; object-fit: cover; }
.fm-feed-cover .fm-ph { height: 100%; border-radius: 0; }
.fm-feed-main { display: grid; grid-template-columns: auto 1fr; gap: var(--fmx-s-3); padding: 0 var(--fmx-s-4) var(--fmx-s-4); }
.fm-feed-avatar { width: 5.5rem; height: 5.5rem; margin-top: -2.75rem; border-radius: var(--fmx-radius-lg); border: 4px solid var(--fmx-surface-raised); object-fit: cover; background: var(--fmx-surface); position: relative; box-shadow: var(--fmx-shadow-sm); }
.fm-feed-head { padding-top: var(--fmx-s-2); min-width: 0; }
.fm-feed-head .fm-card-badges { position: static; flex-direction: row; flex-wrap: wrap; margin-bottom: var(--fmx-s-1); }
.fm-feed-bio { grid-column: 1 / -1; color: var(--fmx-text-muted); font-size: var(--fmx-fs-sm); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; white-space: pre-line; }
.fm-feed-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--fmx-s-2) var(--fmx-s-4); font-size: var(--fmx-fs-sm); color: var(--fmx-text-muted); }
.fm-feed-stats span { display: inline-flex; align-items: center; gap: .35rem; }
.fm-feed-actions { grid-column: 1 / -1; display: flex; gap: var(--fmx-s-2); align-items: center; }
.fm-feed-actions .fm-btn-primary { flex: 1; position: relative; z-index: 1; }
.fm-feed-item .fm-card-tools { position: static; flex-direction: row; }
.fm-feed-item .fm-card-tools .fm-icon-btn { border-color: var(--fmx-border); box-shadow: none; }

/* ---- Плитки категорий и стран ---- */
.fm-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fmx-s-3); }
.fm-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 9rem; border-radius: var(--fmx-radius-lg); overflow: hidden; color: var(--fmx-on-primary); text-decoration: none; background: var(--fmx-dark); isolation: isolate; box-shadow: var(--fmx-shadow-sm); transition: transform var(--fmx-dur) var(--fmx-ease), box-shadow var(--fmx-dur) var(--fmx-ease); }
.fm-tile:hover { transform: translateY(-3px); box-shadow: var(--fmx-shadow-md); }
.fm-tile-mosaic { position: absolute; inset: 0; z-index: -2; }
.fm-tile-mosaic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform 400ms var(--fmx-ease); }
.fm-tile:hover .fm-tile-mosaic img { transform: scale(1.04); }
.fm-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 15%, var(--fmx-overlay) 55%, var(--fmx-dark)); z-index: -1; }
.fm-tile > .fm-ph { position: absolute; inset: 0; z-index: -2; border-radius: 0; background: var(--fmx-dark-raised); border-color: var(--fmx-dark-border); color: var(--fmx-dark-muted); align-items: start; padding-top: var(--fmx-s-4); }
.fm-tile-body { padding: var(--fmx-s-4); }
.fm-tile strong { display: block; font-family: var(--fmx-font-display); font-size: var(--fmx-fs-lg); letter-spacing: -0.02em; }
.fm-tile small { color: var(--fmx-dark-muted); font-weight: 500; }
.fm-countries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fmx-s-2); }
.fm-country { display: flex; align-items: center; gap: var(--fmx-s-3); min-height: 4.25rem; padding: var(--fmx-s-3); border-radius: var(--fmx-radius-lg); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); text-decoration: none; color: var(--fmx-ink); box-shadow: var(--fmx-shadow-sm); transition: border-color var(--fmx-dur) var(--fmx-ease), box-shadow var(--fmx-dur) var(--fmx-ease); }
.fm-country:hover { border-color: var(--fmx-primary); box-shadow: 0 0 0 4px var(--fmx-primary-soft); }
.fm-country .fm-ph { width: 2.5rem; height: 1.875rem; flex: none; border-radius: var(--fmx-radius-sm); font-size: 0.5625rem; padding: 0; }
.fm-country strong { display: block; font-size: var(--fmx-fs-sm); font-weight: 600; }
.fm-country small { color: var(--fmx-text-muted); }
.fm-chips { display: flex; gap: var(--fmx-s-2); overflow-x: auto; scrollbar-width: none; padding: 2px 2px var(--fmx-s-1); }
.fm-chips::-webkit-scrollbar { display: none; }
.fm-chip { display: inline-flex; align-items: center; gap: var(--fmx-s-1); min-height: 2.25rem; padding: 0 var(--fmx-s-3); border-radius: var(--fmx-radius-pill); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); color: var(--fmx-ink); font-size: var(--fmx-fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; transition: border-color var(--fmx-dur) var(--fmx-ease), color var(--fmx-dur) var(--fmx-ease); }
a.fm-chip:hover { border-color: var(--fmx-primary); color: var(--fmx-primary); }
.fm-chip small { color: var(--fmx-text-muted); font-weight: 500; }
.fm-chip-active { background: var(--fmx-ink); border-color: var(--fmx-ink); color: var(--fmx-on-primary); font-weight: 600; }
.fm-chip-active small { color: var(--fmx-dark-muted); }
a.fm-chip-active:hover { color: var(--fmx-on-primary); border-color: var(--fmx-ink); }
.fm-chip button { border: 0; background: none; padding: 0; display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; color: inherit; }

/* ---- Тёмная рекламная плашка (главная, профиль) ---- */
.fm-promo { position: relative; overflow: hidden; color: var(--fmx-on-primary); border-radius: var(--fmx-radius-xl); padding: var(--fmx-s-6) var(--fmx-s-4); background: var(--fmx-promo-bg); box-shadow: var(--fmx-shadow-lg); }
.fm-promo .fm-section-head p { color: var(--fmx-on-promo-muted); }
.fm-promo h2 { color: var(--fmx-on-primary); }
.fm-promo .fm-card { border-color: var(--fmx-promo-border); box-shadow: var(--fmx-shadow-md); }

/* ---- How it works ---- */
.fm-steps { display: grid; gap: var(--fmx-s-3); counter-reset: step; }
.fm-step { position: relative; background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); padding: var(--fmx-s-5); box-shadow: var(--fmx-shadow-sm); }
.fm-step .fm-ph { width: 3rem; height: 3rem; border-radius: var(--fmx-radius-md); margin-bottom: var(--fmx-s-5); font-size: 0.5625rem; padding: 0; }
.fm-step h3 { font-size: var(--fmx-fs-lg); }
.fm-step h3::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--fmx-s-2); font-family: var(--fmx-font-sans); font-size: var(--fmx-fs-xs); font-weight: 700; letter-spacing: var(--fmx-tracking-caps); color: var(--fmx-primary); }
.fm-step p { margin: 0; color: var(--fmx-text-muted); font-size: var(--fmx-fs-sm); }
.fm-score-formula { margin-top: var(--fmx-s-5); display: flex; flex-wrap: wrap; gap: var(--fmx-s-2); }

/* ---- Текстовый SEO-блок ---- */
.fm-prose { max-width: 48rem; color: var(--fmx-text); }
.fm-prose h2 { margin-top: var(--fmx-s-2); }
.fm-prose h3, .fm-prose h4 { margin-top: var(--fmx-s-6); }
.fm-prose p, .fm-prose li { color: var(--fmx-text-muted); }
.fm-prose ul, .fm-prose ol { padding-left: var(--fmx-s-5); margin: 0 0 var(--fmx-s-4); }
.fm-prose li { margin-bottom: var(--fmx-s-1); }
.fm-prose li::marker { color: var(--fmx-primary); font-weight: 700; }
.fm-table-wrap { overflow-x: auto; margin: 0 0 var(--fmx-s-4); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); background: var(--fmx-surface-raised); box-shadow: var(--fmx-shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: var(--fmx-fs-sm); }
th, td { padding: var(--fmx-s-3) var(--fmx-s-4); text-align: left; border-bottom: 1px solid var(--fmx-border); vertical-align: top; }
th { background: var(--fmx-surface); font-weight: 600; white-space: nowrap; color: var(--fmx-ink); }
td { color: var(--fmx-text-muted); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
.fm-prose-collapsed { max-height: 22rem; overflow: hidden; position: relative; }
.fm-prose-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem; background: linear-gradient(transparent, var(--fmx-surface)); }
.fm-section:not(.fm-section-alt) .fm-prose-collapsed::after { background: linear-gradient(transparent, var(--fmx-bg)); }

/* ---- Add your profile ---- */
.fm-cta-band { position: relative; overflow: hidden; display: grid; gap: var(--fmx-s-5); align-items: center; border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-xl); padding: var(--fmx-s-6) var(--fmx-s-4); box-shadow: var(--fmx-shadow-md); background: radial-gradient(30rem 20rem at 100% 0%, var(--fmx-glow-violet), transparent 70%), radial-gradient(26rem 18rem at 0% 100%, var(--fmx-glow-sky), transparent 70%), var(--fmx-surface-raised); }
.fm-cta-band ul { list-style: none; padding: 0; margin: 0 0 var(--fmx-s-5); display: grid; gap: var(--fmx-s-2); }
.fm-cta-band li { display: flex; gap: var(--fmx-s-2); align-items: center; font-weight: 500; }
.fm-cta-band li .fm-ic { color: var(--fmx-success); opacity: 1; }
.fm-cta-band > .fm-ph { aspect-ratio: 4 / 3; border-radius: var(--fmx-radius-lg); }
.fm-form-row { display: flex; flex-direction: column; gap: var(--fmx-s-2); }
.fm-input { min-height: 3rem; border: 1px solid var(--fmx-border-strong); border-radius: var(--fmx-radius-md); padding: 0 var(--fmx-s-4); background: var(--fmx-surface-raised); font-size: var(--fmx-fs-base); width: 100%; box-shadow: var(--fmx-shadow-sm); }
.fm-input:focus { outline: none; border-color: var(--fmx-primary); box-shadow: 0 0 0 4px var(--fmx-primary-soft); }

/* ---- FAQ ---- */
.fm-faq { display: grid; gap: var(--fmx-s-2); max-width: 48rem; }
.fm-faq details { background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); box-shadow: var(--fmx-shadow-sm); transition: border-color var(--fmx-dur) var(--fmx-ease); }
.fm-faq details[open] { border-color: var(--fmx-border-strong); }
.fm-faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--fmx-s-3); min-height: var(--fmx-touch-min); padding: var(--fmx-s-4) var(--fmx-s-5); font-family: var(--fmx-font-display); font-weight: 600; font-size: var(--fmx-fs-lg); letter-spacing: -0.015em; color: var(--fmx-ink); cursor: pointer; list-style: none; }
.fm-faq summary::-webkit-details-marker { display: none; }
.fm-faq summary .fm-ic { display: none; }
.fm-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: var(--fmx-radius-pill); background: var(--fmx-surface); color: var(--fmx-ink); font-family: var(--fmx-font-sans); font-size: var(--fmx-fs-lg); font-weight: 500; transition: transform var(--fmx-dur) var(--fmx-ease), background var(--fmx-dur) var(--fmx-ease); }
.fm-faq details[open] summary::after { transform: rotate(45deg); background: var(--fmx-primary-soft); color: var(--fmx-primary); }
.fm-faq details > div { padding: 0 var(--fmx-s-5) var(--fmx-s-5); color: var(--fmx-text-muted); }

/* ---- Подвал ---- */
.fm-site-footer { position: relative; overflow: hidden; background: radial-gradient(40rem 20rem at 90% 0%, rgb(192 38 211 / 0.25), transparent 70%), var(--fmx-dark); color: var(--fmx-dark-muted); padding: var(--fmx-s-7) 0 var(--fmx-s-5); margin-top: var(--fmx-s-7); font-size: var(--fmx-fs-sm); }
.fm-site-footer .fm-logo { color: var(--fmx-on-primary); display: inline-flex; margin-bottom: var(--fmx-s-3); }
.fm-site-footer .fm-logo b { color: var(--fmx-sky); }
.fm-site-footer .fm-logo-b { fill: var(--fmx-sky); }
.fm-site-footer .fm-logo .fm-ph { background: var(--fmx-dark-raised); border-color: var(--fmx-dark-border); color: var(--fmx-dark-muted); }
.fm-footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--fmx-s-5); margin-bottom: var(--fmx-s-6); }
.fm-footer-cols h4, .fm-footer-cols .fm-footer-h { color: var(--fmx-on-primary); font-size: var(--fmx-fs-sm); font-family: var(--fmx-font-sans); letter-spacing: var(--fmx-tracking-caps); text-transform: uppercase; font-weight: 600; margin-bottom: var(--fmx-s-3); }
.fm-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fmx-s-1); }
.fm-site-footer a { color: var(--fmx-dark-muted); text-decoration: none; display: inline-block; padding: .2rem 0; transition: color var(--fmx-dur) var(--fmx-ease); }
.fm-site-footer a:hover { color: var(--fmx-on-primary); }
.fm-footer-brand { grid-column: 1 / -1; max-width: 22rem; }
.fm-footer-legal { border-top: 1px solid var(--fmx-dark-border); padding-top: var(--fmx-s-4); display: flex; flex-wrap: wrap; gap: var(--fmx-s-2) var(--fmx-s-4); justify-content: space-between; }

/* ---- Нижняя навигация (телефон) ---- */
.fm-bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--fmx-z-sticky); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--fmx-bottom-nav-h) + var(--fmx-safe-bottom)); padding-bottom: var(--fmx-safe-bottom); background: var(--fmx-surface-raised); border-top: 1px solid var(--fmx-border); box-shadow: 0 -8px 24px -12px rgb(16 24 40 / 0.15); }
.fm-bottom-nav a, .fm-bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: .6875rem; font-weight: 500; color: var(--fmx-text-muted); text-decoration: none; border: 0; background: none; position: relative; }
.fm-bottom-nav [aria-current="page"] { color: var(--fmx-primary); font-weight: 700; }
.fm-bottom-nav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--fmx-primary); }
.fm-bottom-nav .fm-count-dot { top: 4px; right: calc(50% - 1.5rem); }

/* ---- Панель сравнения ---- */
.fm-compare-bar { position: fixed; left: var(--fmx-s-2); right: var(--fmx-s-2); bottom: calc(var(--fmx-bottom-nav-h) + var(--fmx-safe-bottom) + var(--fmx-s-2)); z-index: var(--fmx-z-sticky); display: flex; align-items: center; gap: var(--fmx-s-3); padding: var(--fmx-s-2) var(--fmx-s-2) var(--fmx-s-2) var(--fmx-s-3); background: var(--fmx-dark); color: var(--fmx-on-primary); border: 1px solid var(--fmx-dark-border); border-radius: var(--fmx-radius-lg); box-shadow: var(--fmx-shadow-lg); }
.fm-compare-bar[hidden] { display: none; }
.fm-compare-thumbs { display: flex; flex: 1; min-width: 0; }
.fm-compare-thumbs img { width: 2.25rem; height: 2.25rem; border-radius: var(--fmx-radius-pill); border: 2px solid var(--fmx-dark); object-fit: cover; margin-left: -0.5rem; }
.fm-compare-thumbs img:first-child { margin-left: 0; }
.fm-compare-bar .fm-label { font-size: var(--fmx-fs-sm); white-space: nowrap; color: var(--fmx-dark-muted); }
.fm-compare-bar .fm-icon-btn { background: transparent; border-color: transparent; color: var(--fmx-on-primary); }

/* ---- Модальные окна и шторки ---- */
.fm-sheet-backdrop { position: fixed; inset: 0; background: var(--fmx-overlay); z-index: var(--fmx-z-modal); display: flex; align-items: flex-end; justify-content: center; }
.fm-sheet-backdrop[hidden] { display: none; }
.fm-sheet { background: var(--fmx-surface-raised); width: 100%; max-height: 90vh; display: flex; flex-direction: column; border-radius: var(--fmx-radius-xl) var(--fmx-radius-xl) 0 0; box-shadow: var(--fmx-shadow-lg); }
.fm-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--fmx-s-3); padding: var(--fmx-s-4) var(--fmx-s-5); border-bottom: 1px solid var(--fmx-border); }
.fm-sheet-head h2 { margin: 0; font-size: var(--fmx-fs-xl); }
.fm-sheet-body { overflow: auto; padding: var(--fmx-s-5); flex: 1; }
.fm-sheet-foot { padding: var(--fmx-s-3) var(--fmx-s-5) calc(var(--fmx-s-3) + var(--fmx-safe-bottom)); border-top: 1px solid var(--fmx-border); display: flex; gap: var(--fmx-s-2); }
.fm-sheet-foot .fm-btn { flex: 1; }
.fm-compare-table th { position: sticky; left: 0; background: var(--fmx-surface); z-index: 1; }
.fm-compare-table td { min-width: 9rem; }
.fm-compare-table img { width: 4rem; height: 4rem; border-radius: var(--fmx-radius-md); object-fit: cover; margin-bottom: var(--fmx-s-2); }
.fm-compare-table a { color: var(--fmx-ink); text-decoration: none; }
.fm-compare-table .fm-best { color: var(--fmx-success); font-weight: 700; }
.fm-empty { text-align: center; padding: var(--fmx-s-7) var(--fmx-s-4); color: var(--fmx-text-muted); }
.fm-empty .fm-ph { width: 4rem; height: 4rem; margin: 0 auto var(--fmx-s-4); border-radius: var(--fmx-radius-lg); padding: 0; }
.fm-empty strong, .fm-empty h2 { color: var(--fmx-ink); }
.fm-fav-list { display: grid; gap: var(--fmx-s-2); }
.fm-fav-row { display: flex; align-items: center; gap: var(--fmx-s-3); padding: var(--fmx-s-2); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); }
.fm-fav-row img { width: 3rem; height: 3rem; border-radius: var(--fmx-radius-md); object-fit: cover; }
.fm-fav-row a { flex: 1; min-width: 0; color: var(--fmx-ink); text-decoration: none; font-weight: 600; }
.fm-fav-row a small { display: block; color: var(--fmx-text-muted); font-weight: 400; }

/* ---- Страница категории ---- */
.fm-cat-hero { background: radial-gradient(36rem 16rem at 0% 0%, var(--fmx-glow-blue), transparent 70%), radial-gradient(30rem 16rem at 100% 0%, var(--fmx-glow-violet), transparent 70%), var(--fmx-bg); border-bottom: 1px solid var(--fmx-border); margin-bottom: var(--fmx-s-4); }
.fm-crumbs { display: flex; flex-wrap: wrap; gap: var(--fmx-s-1); font-size: var(--fmx-fs-sm); color: var(--fmx-text-muted); margin: 0; padding: var(--fmx-s-5) 0 var(--fmx-s-3); list-style: none; }
.fm-crumbs li + li::before { content: "/"; margin-right: var(--fmx-s-1); color: var(--fmx-border-strong); }
.fm-crumbs a { color: var(--fmx-text-muted); text-decoration: none; }
.fm-crumbs a:hover { color: var(--fmx-primary); }
.fm-page-head { padding-bottom: var(--fmx-s-5); }
.fm-page-head p { color: var(--fmx-text-muted); max-width: 44rem; font-size: var(--fmx-fs-lg); }
.fm-toolbar { position: sticky; top: 3.75rem; z-index: calc(var(--fmx-z-sticky) - 1); background: var(--fmx-bg); display: flex; align-items: center; gap: var(--fmx-s-2); padding: var(--fmx-s-2) 0; flex-wrap: wrap; }
.fm-toolbar .fm-result-count { font-size: var(--fmx-fs-sm); color: var(--fmx-text-muted); margin-right: auto; font-weight: 500; }
.fm-select { min-height: var(--fmx-touch-min); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-md); background: var(--fmx-surface-raised); padding: 0 var(--fmx-s-3); font-size: var(--fmx-fs-base); font-weight: 500; box-shadow: var(--fmx-shadow-sm); }
.fm-view-switch { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-md); background: var(--fmx-surface); }
.fm-view-switch button { display: inline-grid; place-items: center; width: 2.5rem; height: 2.375rem; border: 0; border-radius: calc(var(--fmx-radius-md) - 3px); background: none; color: var(--fmx-text-muted); }
.fm-view-switch button[aria-pressed="true"] { background: var(--fmx-surface-raised); color: var(--fmx-ink); box-shadow: var(--fmx-shadow-sm); }
.fm-view-switch button[aria-pressed="true"] .fm-ic { opacity: 1; }
.fm-active-filters { display: flex; flex-wrap: wrap; gap: var(--fmx-s-2); margin-bottom: var(--fmx-s-3); }
.fm-active-filters:empty { display: none; }
.fm-catalog-layout { display: grid; gap: var(--fmx-s-4); }
.fm-filters-panel { display: none; }
.fm-filter-group { border-bottom: 1px solid var(--fmx-border); padding: var(--fmx-s-4) 0; }
.fm-filter-group:first-child { padding-top: 0; }
.fm-filter-group h3 { font-family: var(--fmx-font-sans); font-size: var(--fmx-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--fmx-tracking-caps); color: var(--fmx-ink); margin-bottom: var(--fmx-s-2); display: flex; justify-content: space-between; align-items: center; }
.fm-filter-group h3 small { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--fmx-violet-ink); background: var(--fmx-violet-soft); padding: 0 .4rem; border-radius: var(--fmx-radius-sm); }
.fm-opt { display: flex; align-items: center; gap: var(--fmx-s-2); min-height: 2.25rem; font-size: var(--fmx-fs-sm); cursor: pointer; border-radius: var(--fmx-radius-sm); }
.fm-opt:hover { color: var(--fmx-primary); }
.fm-opt input { width: 1.125rem; height: 1.125rem; accent-color: var(--fmx-primary); flex: none; }
.fm-opt span { flex: 1; }
.fm-opt small { color: var(--fmx-text-muted); font-variant-numeric: tabular-nums; background: var(--fmx-surface); padding: 0 .4rem; border-radius: var(--fmx-radius-sm); }
.fm-opt-list { max-height: 13rem; overflow: auto; }
.fm-seg { display: flex; flex-wrap: wrap; gap: var(--fmx-s-2); }
.fm-seg label { cursor: pointer; }
.fm-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fm-seg input:checked + span { background: var(--fmx-ink); color: var(--fmx-on-primary); border-color: var(--fmx-ink); }
.fm-seg input:focus-visible + span { outline: 3px solid var(--fmx-focus); outline-offset: 2px; }
.fm-seg span { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0 var(--fmx-s-3); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-pill); font-size: var(--fmx-fs-sm); font-weight: 500; background: var(--fmx-surface-raised); transition: border-color var(--fmx-dur) var(--fmx-ease); }
.fm-seg span:hover { border-color: var(--fmx-border-strong); }
.fm-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--fmx-s-2); margin: var(--fmx-s-7) 0 var(--fmx-s-2); }
.fm-pager a, .fm-pager span { display: inline-grid; place-items: center; min-width: var(--fmx-touch-min); height: var(--fmx-touch-min); padding: 0 var(--fmx-s-3); border-radius: var(--fmx-radius-md); border: 1px solid var(--fmx-border); background: var(--fmx-surface-raised); color: var(--fmx-ink); text-decoration: none; font-weight: 600; box-shadow: var(--fmx-shadow-sm); }
.fm-pager a:hover { border-color: var(--fmx-primary); color: var(--fmx-primary); }
.fm-pager [aria-current="page"] { background: var(--fmx-primary); border-color: var(--fmx-primary); color: var(--fmx-on-primary); box-shadow: var(--fmx-shadow-btn); }
.fm-pager .fm-gap { border: 0; background: none; min-width: auto; box-shadow: none; }
.fm-pager [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.fm-pager-note { text-align: center; color: var(--fmx-text-muted); font-size: var(--fmx-fs-sm); }

/* ---- Страница модели ---- */
.fm-profile-cover { position: relative; aspect-ratio: var(--fmx-cover-ratio); max-height: 22rem; width: 100%; background: var(--fmx-surface); overflow: hidden; }
.fm-profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.fm-profile-cover .fm-ph { height: 100%; border-radius: 0; }
.fm-profile-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgb(10 15 31 / 0.35)); }
.fm-profile-top { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: var(--fmx-s-3) var(--fmx-s-4); position: relative; align-items: start; }
.fm-profile-top > * { min-width: 0; }
.fm-profile-photo { position: relative; z-index: 1; aspect-ratio: 3 / 4; margin-top: -3.5rem; border-radius: var(--fmx-radius-lg); overflow: hidden; border: 4px solid var(--fmx-bg); background: var(--fmx-surface); box-shadow: var(--fmx-shadow-lg); }
.fm-profile-photo img, .fm-profile-photo .fm-ph { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.fm-profile-info { display: contents; }
.fm-profile-info > .fm-card-badges { position: static; flex-direction: row; flex-wrap: wrap; grid-column: 2; padding-top: var(--fmx-s-3); }
.fm-profile-info h1 { grid-column: 1 / -1; font-size: var(--fmx-fs-2xl); margin: 0; overflow-wrap: anywhere; }
.fm-profile-info h1 .fm-verified .fm-ic { width: 1.5rem; height: 1.5rem; margin-left: var(--fmx-s-2); opacity: 0.8; }
.fm-profile-info .fm-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--fmx-s-2) var(--fmx-s-4); color: var(--fmx-text-muted); font-size: var(--fmx-fs-sm); }
.fm-profile-info .fm-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.fm-profile-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); box-shadow: var(--fmx-shadow-sm); }
.fm-profile-kpis div { padding: var(--fmx-s-3) var(--fmx-s-2); text-align: center; }
.fm-profile-kpis div + div { border-left: 1px solid var(--fmx-border); }
.fm-profile-kpis strong { display: block; font-family: var(--fmx-font-display); font-size: var(--fmx-fs-lg); letter-spacing: -0.02em; color: var(--fmx-ink); white-space: nowrap; }
.fm-profile-kpis small { color: var(--fmx-text-muted); font-size: var(--fmx-fs-xs); font-weight: 500; }
.fm-profile-info .fm-profile-actions { grid-column: 1 / -1; }
.fm-profile-actions { display: flex; gap: var(--fmx-s-2); align-items: center; }
.fm-profile-actions .fm-btn-accent { flex: 1; }
.fm-profile-actions .fm-icon-btn { width: 3.25rem; height: 3.25rem; }
.fm-profile-grid { display: grid; gap: var(--fmx-s-4); margin-top: var(--fmx-s-4); }
.fm-panel { background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); padding: var(--fmx-s-5); box-shadow: var(--fmx-shadow-sm); }
.fm-panel h2 { font-size: var(--fmx-fs-xl); margin-bottom: var(--fmx-s-4); }
.fm-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--fmx-s-2); }
.fm-stat { background: var(--fmx-surface); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-md); padding: var(--fmx-s-3) var(--fmx-s-4); display: flex; flex-direction: column; gap: var(--fmx-s-2); }
.fm-stat .fm-ic { color: var(--fmx-primary); opacity: 0.7; }
.fm-stat strong { display: block; font-family: var(--fmx-font-display); font-size: var(--fmx-fs-xl); letter-spacing: -0.03em; color: var(--fmx-ink); line-height: 1.15; }
.fm-stat small { color: var(--fmx-text-muted); font-size: var(--fmx-fs-xs); font-weight: 500; }
.fm-bio { white-space: pre-line; overflow-wrap: anywhere; color: var(--fmx-text); }
.fm-bio.is-clamped { max-height: 12rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.fm-link-btn { border: 0; background: none; color: var(--fmx-primary); font-weight: 600; padding: var(--fmx-s-2) 0; min-height: var(--fmx-touch-min); display: inline-flex; align-items: center; gap: var(--fmx-s-2); }
.fm-link-btn:hover { color: var(--fmx-primary-hover); }
.fm-plans { display: grid; gap: var(--fmx-s-2); }
.fm-plan { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--fmx-s-3); padding: var(--fmx-s-3) var(--fmx-s-4); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-md); transition: border-color var(--fmx-dur) var(--fmx-ease); }
.fm-plan:hover { border-color: var(--fmx-border-strong); }
.fm-plan-best { border: 2px solid var(--fmx-primary); background: var(--fmx-primary-soft); box-shadow: 0 0 0 4px var(--fmx-primary-soft); }
.fm-plan strong { display: block; font-weight: 600; }
.fm-plan small { color: var(--fmx-text-muted); }
.fm-plan .fm-save { display: inline-block; margin-top: 2px; color: var(--fmx-success); background: var(--fmx-success-soft); font-weight: 700; font-size: var(--fmx-fs-xs); padding: 0 .4rem; border-radius: var(--fmx-radius-sm); }
.fm-tag-group + .fm-tag-group { margin-top: var(--fmx-s-4); }
.fm-tag-group h3 { font-family: var(--fmx-font-sans); font-size: var(--fmx-fs-xs); font-weight: 700; color: var(--fmx-text-muted); text-transform: uppercase; letter-spacing: var(--fmx-tracking-caps); margin-bottom: var(--fmx-s-2); }
.fm-tag-group .fm-chips { flex-wrap: wrap; overflow: visible; }
.fm-links { display: grid; gap: var(--fmx-s-2); }
.fm-link-row { display: flex; align-items: center; gap: var(--fmx-s-3); min-height: 3.5rem; padding: var(--fmx-s-2) var(--fmx-s-3); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-md); color: var(--fmx-ink); text-decoration: none; font-weight: 600; transition: border-color var(--fmx-dur) var(--fmx-ease), background var(--fmx-dur) var(--fmx-ease); }
.fm-link-row:hover { border-color: var(--fmx-primary); background: var(--fmx-primary-soft); }
.fm-link-row .fm-ph { width: 2.25rem; height: 2.25rem; border-radius: var(--fmx-radius-md); flex: none; font-size: .5625rem; padding: 0; }
.fm-link-row > span:not(.fm-ic):not(.fm-ph):not(.fm-brand) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-link-row small { color: var(--fmx-text-muted); display: block; font-weight: 400; }
.fm-sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--fmx-bottom-nav-h) + var(--fmx-safe-bottom)); z-index: var(--fmx-z-sticky); padding: var(--fmx-s-2) var(--fmx-gutter); background: var(--fmx-surface-raised); border-top: 1px solid var(--fmx-border); display: flex; gap: var(--fmx-s-3); align-items: center; }
.fm-sticky-cta .fm-btn { flex: 1; }
.fm-sticky-cta .fm-price { white-space: nowrap; }
body.has-sticky-cta { padding-bottom: calc(var(--fmx-bottom-nav-h) + var(--fmx-safe-bottom) + 4rem); }
body.has-sticky-cta .fm-compare-bar { bottom: calc(var(--fmx-bottom-nav-h) + var(--fmx-safe-bottom) + 4.5rem); }
.fm-score { display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; color: var(--fmx-ink); }
.fm-score::before { content: ""; width: .5rem; height: .5rem; border-radius: var(--fmx-radius-pill); background: var(--fmx-star); }
.fm-score .fm-ic { display: none; }

/* ---- Breakpoints ---- */
@media (min-width: 480px) {
  .fm-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-stats { grid-template-columns: repeat(3, 1fr); }
  .fm-form-row { flex-direction: row; }
}
@media (min-width: 768px) {
  body, body.has-sticky-cta { padding-bottom: 0; }
  .fm-bottom-nav, .fm-sticky-cta { display: none; }
  .fm-compare-bar, body.has-sticky-cta .fm-compare-bar { left: 50%; right: auto; transform: translateX(-50%); bottom: var(--fmx-s-4); min-width: 28rem; }
  .fm-site-header { background: transparent; border-bottom: 0; padding-top: var(--fmx-s-3); }
  .fm-site-header .fm-container { background: rgb(255 255 255 / 0.92); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-pill); box-shadow: var(--fmx-shadow-md); padding: 0 var(--fmx-s-2) 0 var(--fmx-s-4); min-height: 3.75rem; max-width: calc(var(--fmx-container) - 2 * var(--fmx-gutter)); }
  .fm-main-nav { display: flex; }
  .fm-header-actions .fm-icon-btn { border-radius: var(--fmx-radius-pill); }
  .fm-toolbar { top: 5rem; }
  .fm-section { padding: var(--fmx-s-8) 0; }
  .fm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--fmx-s-4); }
  .fm-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fmx-s-4); }
  .fm-tile { min-height: 11rem; }
  .fm-countries { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--fmx-s-3); }
  .fm-steps { grid-template-columns: repeat(2, 1fr); gap: var(--fmx-s-4); }
  .fm-cta-band { grid-template-columns: 1.3fr 1fr; padding: var(--fmx-s-7); }
  .fm-footer-cols { grid-template-columns: 2fr repeat(4, 1fr); }
  .fm-footer-brand { grid-column: auto; }
  .fm-hero { margin-top: -4.5rem; padding: calc(var(--fmx-s-8) + 4.5rem) 0 var(--fmx-s-8); }
  .fm-cat-hero { margin-top: -4.5rem; padding-top: 4.5rem; }
  .fm-profile-cover { margin-top: -4.5rem; }
  .fm-sheet-backdrop { align-items: center; padding: var(--fmx-s-4); }
  .fm-sheet { border-radius: var(--fmx-radius-xl); max-width: 60rem; max-height: 85vh; }
  .fm-sheet.fm-sheet-sm { max-width: 30rem; }
  .fm-profile-top { grid-template-columns: 15rem minmax(0, 1fr); gap: var(--fmx-s-6); }
  .fm-profile-photo { margin-top: -8rem; border-width: 6px; border-radius: var(--fmx-radius-xl); }
  .fm-profile-info { display: flex; flex-direction: column; gap: var(--fmx-s-3); padding-top: var(--fmx-s-4); }
  .fm-profile-info > .fm-card-badges { padding-top: 0; }
  .fm-profile-kpis { max-width: 36rem; }
  .fm-profile-actions .fm-btn-accent { flex: none; }
  .fm-stats { grid-template-columns: repeat(4, 1fr); }
  .fm-feed-main { grid-template-columns: auto 1fr auto; }
  .fm-feed-avatar { width: 11rem; height: 11rem; margin-top: -5.5rem; border-width: 5px; }
  .fm-feed-actions { grid-column: auto; grid-row: 1; grid-column-start: 3; padding-top: var(--fmx-s-2); }
  .fm-feed-actions .fm-btn-primary { flex: none; }
  .fm-feed .fm-sponsored-block .fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-sponsored-block { padding: var(--fmx-s-6); }
  .fm-promo { padding: var(--fmx-s-7); }
}
@media (min-width: 1024px) {
  .fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-header-search { display: block; flex: 0 1 17rem; margin-left: auto; }
  .fm-header-search .fm-search { border-radius: var(--fmx-radius-pill); box-shadow: none; background: var(--fmx-surface); border-color: transparent; }
  .fm-header-search .fm-search input { min-height: 2.5rem; }
  .fm-header-actions { margin-left: 0; }
  .fm-catalog-layout { grid-template-columns: 16.5rem minmax(0, 1fr); align-items: start; gap: var(--fmx-s-5); }
  .fm-filters-panel { display: block; position: sticky; top: 9.5rem; max-height: calc(100vh - 10.5rem); overflow: auto; background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); padding: var(--fmx-s-5); box-shadow: var(--fmx-shadow-sm); }
  .fm-catalog-layout .fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-toolbar .fm-btn-filters { display: none; }
  .fm-steps { grid-template-columns: repeat(4, 1fr); }
  .fm-profile-grid { grid-template-columns: minmax(0, 1fr) 23rem; align-items: start; gap: var(--fmx-s-5); }
  .fm-profile-side { position: sticky; top: 6rem; display: grid; gap: var(--fmx-s-4); }
}
@media (min-width: 1280px) {
  .fm-tiles.fm-tiles-wide { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* =========================================================================
   WordPress layer: fonts, WP markup (pagination, content), hubs, feed view,
   forms, compare page. Values come from tokens.css only.
   ========================================================================= */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(../fonts/jakarta-latin.woff2) format("woff2"); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#fm-main:focus { outline: none; }
.fm-mb { margin-bottom: var(--fmx-s-4); }
.fm-mb-xs { margin-bottom: var(--fmx-s-2); }
.fm-center { text-align: center; }
.fm-section-tight { padding: var(--fmx-s-4) 0 0; }
.fm-section-flush { padding-top: 0; }
.fm-site-header .fm-search .fm-btn { display: none; }
.fm-menu-btn { display: inline-grid; }
body.fm-sheet-open { overflow: hidden; }
.fm-toast { position: fixed; left: 50%; top: 5rem; transform: translateX(-50%); background: var(--fmx-dark); color: var(--fmx-on-primary); padding: var(--fmx-s-2) var(--fmx-s-4); border-radius: var(--fmx-radius-pill); z-index: var(--fmx-z-modal); font-size: var(--fmx-fs-sm); box-shadow: var(--fmx-shadow-md); }
.fm-toast[hidden] { display: none; }

/* page head of service pages, hubs, search */
.fm-pagehead { padding-bottom: var(--fmx-s-5); }
.fm-pagehead h1 { margin-top: var(--fmx-s-2); }
.fm-lead-sub, .fm-page-subtitle { color: var(--fmx-text-muted); font-size: var(--fmx-fs-lg); max-width: 46rem; }
.fm-page-title { font-size: var(--fmx-fs-2xl); margin-top: var(--fmx-s-4); }
.fm-breadcrumb { display: flex; flex-wrap: wrap; gap: var(--fmx-s-1); align-items: center; font-size: var(--fmx-fs-sm); color: var(--fmx-text-muted); padding: var(--fmx-s-5) 0 var(--fmx-s-2); }
.fm-breadcrumb a { color: var(--fmx-text-muted); text-decoration: none; }
.fm-breadcrumb a:hover { color: var(--fmx-primary); }
.fm-breadcrumb-sep { color: var(--fmx-border-strong); }
.fm-breadcrumb svg.fm-breadcrumb-sep { width: 1em; height: 1em; }
.fm-article { max-width: 48rem; }
.fm-prose { overflow-wrap: anywhere; }
.fm-prose a { color: var(--fmx-primary); }
.fm-prose img { border-radius: var(--fmx-radius-md); height: auto; }
.fm-prose blockquote { margin: 0 0 var(--fmx-s-4); padding: var(--fmx-s-3) var(--fmx-s-4); border-left: 3px solid var(--fmx-primary); background: var(--fmx-surface); border-radius: 0 var(--fmx-radius-md) var(--fmx-radius-md) 0; }

/* chips as lists (hub jump nav, legacy pills) */
.fm-chips-wrap { flex-wrap: wrap; overflow: visible; list-style: none; margin: 0; padding: 2px; }
ul.fm-chips { list-style: none; margin: 0; }
.fm-chips li a { display: inline-flex; align-items: center; gap: var(--fmx-s-1); min-height: 2.25rem; padding: 0 var(--fmx-s-3); border-radius: var(--fmx-radius-pill); background: var(--fmx-surface-raised); border: 1px solid var(--fmx-border); color: var(--fmx-ink); font-size: var(--fmx-fs-sm); font-weight: 500; text-decoration: none; white-space: nowrap; }
.fm-chips li a:hover { border-color: var(--fmx-primary); color: var(--fmx-primary); }
.fm-chips small { color: var(--fmx-text-muted); font-weight: 500; }
.fm-jump-nav { padding: var(--fmx-s-2) var(--fmx-gutter) var(--fmx-s-4); }
.fm-menu-h { font-family: var(--fmx-font-sans); font-size: var(--fmx-fs-xs); text-transform: uppercase; letter-spacing: var(--fmx-tracking-caps); color: var(--fmx-text-muted); margin: var(--fmx-s-5) 0 var(--fmx-s-2); }
.fm-menu-list { list-style: none; margin: var(--fmx-s-4) 0 0; padding: 0; display: grid; gap: 2px; }
.fm-menu-list a { display: block; padding: var(--fmx-s-3) var(--fmx-s-2); border-radius: var(--fmx-radius-md); color: var(--fmx-ink); text-decoration: none; font-weight: 600; font-size: var(--fmx-fs-lg); }
.fm-menu-list a:hover { background: var(--fmx-surface); }

/* link grids (hubs, related categories, 404) */
.fm-linkgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--fmx-s-2); }
.fm-linkgrid a { display: flex; justify-content: space-between; align-items: center; gap: var(--fmx-s-2); min-height: var(--fmx-touch-min); padding: var(--fmx-s-2) var(--fmx-s-3); border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-md); background: var(--fmx-surface-raised); color: var(--fmx-ink); text-decoration: none; font-size: var(--fmx-fs-sm); font-weight: 500; transition: border-color var(--fmx-dur) var(--fmx-ease); }
.fm-linkgrid a:hover { border-color: var(--fmx-primary); color: var(--fmx-primary); }
.fm-linkgrid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-linkgrid-flags a { justify-content: flex-start; }
.fm-linkgrid-flags span { flex: 1; min-width: 0; }
.fm-linkgrid .fm-flag { width: 1.75rem; height: 1.3125rem; border-radius: 4px; }
.fm-linkgrid small { color: var(--fmx-text-muted); font-variant-numeric: tabular-nums; flex: none; }
.fm-group { padding: var(--fmx-s-5) var(--fmx-gutter); }
.fm-group .fm-section-header { margin-bottom: var(--fmx-s-3); }
.fm-group .fm-section-header h2 { font-size: var(--fmx-fs-xl); margin: 0; }
.fm-group .fm-section-header p { margin: var(--fmx-s-1) 0 0; color: var(--fmx-text-muted); }
.fm-showall { margin-top: var(--fmx-s-3); }
.fm-showall summary { cursor: pointer; color: var(--fmx-primary); font-weight: 600; min-height: var(--fmx-touch-min); display: inline-flex; align-items: center; }
.fm-showall .fm-linkgrid { margin-top: var(--fmx-s-2); }
.fm-section-header { display: flex; align-items: end; justify-content: space-between; gap: var(--fmx-s-3); flex-wrap: wrap; margin-bottom: var(--fmx-s-4); }

/* grid helpers: sponsored slot spans the row, AJAX / server block inside the grid */
.fm-grid > [data-fm-sponsored] { grid-column: 1 / -1; min-height: 1px; }
.fm-ot-lazy:empty { min-height: 0; }
.fm-sponsored-block .fm-grid { gap: var(--fmx-s-3); }
.fm-card-ad .fm-card-body { gap: 2px; }
.fm-card-title { margin: 0; font-size: inherit; line-height: inherit; letter-spacing: inherit; }
.fm-card-loc { color: var(--fmx-text-muted); }
.fm-card-bio { display: none; margin: var(--fmx-s-1) 0 0; color: var(--fmx-text-muted); font-size: var(--fmx-fs-sm); }
.fm-card-name { position: static; }
.fm-card .fm-card-name::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.fm-card-tools, .fm-card-badges, .fm-card-body .fm-btn { z-index: 2; }
.fm-empty .fm-ph { width: 4rem; height: 4rem; margin: 0 auto var(--fmx-s-4); }

/* Feed view: the same card as a wide row with bio */
.fm-grid.is-feed { grid-template-columns: minmax(0, 1fr); gap: var(--fmx-s-3); }
.fm-grid.is-feed > .fm-card { flex-direction: row; align-items: stretch; }
.fm-grid.is-feed .fm-card-media { width: 8.5rem; margin: 6px; flex: none; align-self: flex-start; }
.fm-grid.is-feed .fm-card-media-foot { display: none; }
.fm-grid.is-feed .fm-card-tools { flex-direction: row; top: auto; bottom: var(--fmx-s-2); right: var(--fmx-s-2); }
.fm-grid.is-feed .fm-card-tools .fm-icon-btn { width: 2.25rem; height: 2.25rem; }
.fm-grid.is-feed .fm-card-body { padding: var(--fmx-s-3) var(--fmx-s-4) var(--fmx-s-3) var(--fmx-s-2); }
.fm-grid.is-feed .fm-card-bio { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.fm-grid.is-feed .fm-card-body .fm-btn { align-self: flex-start; padding: 0 var(--fmx-s-5); }
.fm-grid.is-feed > [data-fm-sponsored] .fm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* WordPress pagination */
.navigation.pagination { margin: var(--fmx-s-7) 0 var(--fmx-s-2); }
.navigation.pagination .nav-links { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: var(--fmx-s-2); }
.navigation.pagination .page-numbers { display: inline-grid; place-items: center; min-width: var(--fmx-touch-min); height: var(--fmx-touch-min); padding: 0 var(--fmx-s-3); border-radius: var(--fmx-radius-md); border: 1px solid var(--fmx-border); background: var(--fmx-surface-raised); color: var(--fmx-ink); text-decoration: none; font-weight: 600; box-shadow: var(--fmx-shadow-sm); }
.navigation.pagination a.page-numbers:hover { border-color: var(--fmx-primary); color: var(--fmx-primary); }
.navigation.pagination .page-numbers.current { background: var(--fmx-primary); border-color: var(--fmx-primary); color: var(--fmx-on-primary); box-shadow: var(--fmx-shadow-btn); }
.navigation.pagination .page-numbers.dots { border: 0; background: none; box-shadow: none; min-width: auto; }
.fm-jump { display: flex; justify-content: center; align-items: center; gap: var(--fmx-s-2); margin: var(--fmx-s-3) 0; font-size: var(--fmx-fs-sm); color: var(--fmx-text-muted); }
.fm-jump[hidden] { display: none; }
.fm-jump .fm-input { width: 6rem; min-height: var(--fmx-touch-min); }

/* catalog layout without filters */
.fm-catalog-layout.fm-no-filters { grid-template-columns: minmax(0, 1fr); }
.fm-catalog-main { min-width: 0; }
.fm-select-block { width: 100%; }
.fm-filters-form .fm-filter-group h3 label { cursor: pointer; }
.fm-filter-actions { display: grid; gap: var(--fmx-s-2); padding-top: var(--fmx-s-4); }
.fm-js .fm-filters-panel .fm-filter-actions .fm-btn-primary { display: none; }
.fm-sheet .fm-filter-actions .fm-btn-primary { display: inline-flex; }
.fm-result-count b { color: var(--fmx-ink); }

/* forms */
.fm-field { display: grid; gap: var(--fmx-s-1); margin-bottom: var(--fmx-s-3); }
.fm-field label, .fm-field > span { font-weight: 600; font-size: var(--fmx-fs-sm); }
.fm-field input, .fm-field textarea, .fm-field select, .fm-add-form input[type="text"], .fm-add-form input[type="email"], .fm-add-form textarea { width: 100%; min-height: 3rem; border: 1px solid var(--fmx-border-strong); border-radius: var(--fmx-radius-md); padding: var(--fmx-s-2) var(--fmx-s-4); background: var(--fmx-surface-raised); font-size: var(--fmx-fs-base); }
.fm-field textarea { min-height: 7rem; }
.fm-form-grid { display: grid; gap: var(--fmx-s-3); }
.fm-check { display: flex; gap: var(--fmx-s-2); align-items: flex-start; font-size: var(--fmx-fs-sm); margin: var(--fmx-s-2) 0; }
.fm-check input { margin-top: .2rem; accent-color: var(--fmx-primary); }
.fm-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--fmx-s-3); max-height: 16rem; overflow: auto; }
.fm-hp { position: absolute !important; left: -9999px; }
.fm-notice { padding: var(--fmx-s-3) var(--fmx-s-4); border-radius: var(--fmx-radius-md); margin-bottom: var(--fmx-s-4); background: var(--fmx-primary-soft); color: var(--fmx-ink); }
.fm-notice-error { background: var(--fmx-pink-soft); }
.fm-notice-success { background: var(--fmx-success-soft); }
.fm-add-form, .fm-contact-form { max-width: 48rem; }
.fm-contact-form { margin-top: var(--fmx-s-5); }
fieldset.fm-filter-group { border: 0; padding: 0; margin: var(--fmx-s-3) 0; }

/* compare page */
.fm-table-wrap.fmx-compare { overflow-x: auto; }
.fm-compare-table td { min-width: 10rem; }
.fm-compare-table td.is-best { color: var(--fmx-success); font-weight: 700; }
.fm-compare-table img { width: 4.5rem; height: 6rem; object-fit: cover; border-radius: var(--fmx-radius-md); }
.fmx-cmp-remove { border: 0; background: none; color: var(--fmx-primary); font-weight: 600; padding: var(--fmx-s-1) 0; cursor: pointer; }
.fmx-chip, .fm-tag { display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 var(--fmx-s-2); margin: 2px; border-radius: var(--fmx-radius-pill); border: 1px solid var(--fmx-border); color: var(--fmx-ink); font-size: var(--fmx-fs-xs); text-decoration: none; }
.fmx-soc-ic { width: 1rem; height: 1rem; }

/* 404 */
.fm-404 .fm-search { max-width: 36rem; margin: var(--fmx-s-5) auto 0; }

@media (min-width: 480px) {
  .fm-linkgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fm-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .fm-menu-btn { display: none; }
  .fm-linkgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-group { padding-left: 0; padding-right: 0; }
  .fm-grid.is-feed .fm-card-media { width: 13rem; }
  .fm-grid.is-feed .fm-card-tools { top: var(--fmx-s-2); bottom: auto; flex-direction: column; }
  .fm-grid.is-feed > [data-fm-sponsored] .fm-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fm-toast { top: 6rem; }
}
@media (min-width: 1024px) {
  .fm-linkgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .fm-grid.is-feed .fm-card-media { width: 15rem; }
}
.fm-mt { margin-top: var(--fmx-s-3); }
.fm-plan-price { text-align: right; }
.fm-profile-main { display: grid; gap: var(--fmx-s-4); min-width: 0; }
.fm-profile-cover > .fm-ph { height: 100%; border-radius: 0; }
.fm-bio.fm-prose-collapsed { max-height: 12rem; }
.fm-bio.fm-prose-collapsed::after { background: linear-gradient(transparent, var(--fmx-surface-raised)); }
.fm-prose table { display: block; max-width: 100%; overflow-x: auto; border: 1px solid var(--fmx-border); border-radius: var(--fmx-radius-lg); }
select, .fm-select { cursor: pointer; }
.fm-crumbs a, .fm-breadcrumb a { display: inline-flex; align-items: center; min-height: 24px; }
.fm-card-loc { display: none; }
@media (min-width: 768px) { .fm-card-loc { display: inline; } }
.fm-more-filters { border-bottom: 1px solid var(--fmx-border); }
.fm-more-filters > summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--fmx-touch-min); padding: var(--fmx-s-3) 0; cursor: pointer; list-style: none; font-size: var(--fmx-fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: var(--fmx-tracking-caps); color: var(--fmx-primary); }
.fm-more-filters > summary::-webkit-details-marker { display: none; }
.fm-more-filters > summary::after { content: "+"; font-size: var(--fmx-fs-lg); font-weight: 500; transition: transform var(--fmx-dur) var(--fmx-ease); }
.fm-more-filters[open] > summary::after { transform: rotate(45deg); }
.fm-more-filters .fm-filter-group:last-child { border-bottom: 0; }
.fm-badge-sponsored { background: var(--fmx-sponsor-bg); color: var(--fmx-sponsor-ink); }

.fm-flag { width: 2rem; height: 2rem; border-radius: 50%; box-shadow: 0 0 0 1px var(--fmx-border); }
.fm-linkgrid .fm-flag { width: 1.5rem; height: 1.5rem; border-radius: 50%; }
