/* ============================================================
   База Массажа · дизайн v2 (Ocean marketplace)
   Общий CSS для всех страниц. Источник истины блоков — frontend/templates/v2/.
   ============================================================ */
:root {
  --brand: #0891B2;
  --brand-2: #0E7490;
  --brand-dark: #155E75;
  --brand-soft: #E0F5FA;
  --brand-soft-2: #F2FBFD;
  --ink: #14222B;
  --ink-2: #2A3E4A;
  --muted: #6B7E88;
  --muted-2: #8FA1AB;
  --line: #DFEAEE;
  --line-2: #EAF2F5;
  --surface: #ffffff;
  --surface-2: #F6FAFC;
  --ok: #169269;
  --warning: #b26b00;
  --shadow: 0 12px 32px rgba(8, 100, 140, 0.08), 0 2px 7px rgba(8, 80, 115, 0.05);
  --shadow-soft: 0 7px 18px rgba(8, 100, 140, 0.06);
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 10px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
img { display: block; max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, p { margin-top: 0; }
.svg-icon { width: 18px; height: 18px; flex: 0 0 auto; }
[x-cloak] { display: none !important; }

/* ===== HEADER ===== */
.header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-2); }
.header-main { height: 72px; display: flex; align-items: center; gap: 16px; }
.brand { flex: 0 0 auto; display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; font-size: 27px; letter-spacing: -0.04em; color: var(--brand-2); white-space: nowrap; }
.brand span { color: var(--brand-dark); }
.brand small { font-size: 1em; letter-spacing: -0.05em; color: var(--brand-dark); }
.icon-btn, .city-button, .search-mini, .profile-button { border: 1px solid var(--line); background: #fff; border-radius: var(--radius-sm); min-height: 38px; display: inline-flex; align-items: center; color: var(--ink-2); }
.icon-btn { width: 40px; justify-content: center; color: var(--brand-dark); display: none; }
.city-button { padding: 0 12px; gap: 8px; color: var(--brand-dark); font-weight: 600; cursor: pointer; box-shadow: 0 1px 2px rgba(8,80,115,.03); }
.city-button:hover { border-color: var(--brand); }
.search-mini { flex: 1 1 340px; max-width: 420px; gap: 9px; padding: 0 14px; color: var(--muted); }
.search-mini input { width: 100%; border: 0; outline: none; color: var(--ink); background: transparent; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nav-links a:not(.btn):hover { color: var(--brand-2); }
.profile-button { padding: 0 10px; justify-content: center; width: 38px; color: var(--brand-dark); }
.subnav { border-top: 1px solid var(--line-2); }
.subnav-inner { height: 48px; display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--ink-2); overflow-x: auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a:first-child { color: var(--brand-dark); font-weight: 700; }
.subnav a:hover { color: var(--brand-2); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 700; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--brand), #0E7490); box-shadow: 0 8px 18px rgba(8, 145, 178, .24); }
.btn-primary:hover { color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand-dark)); }
.btn-outline { color: var(--brand-dark); border-color: var(--line); background: #fff; box-shadow: 0 2px 5px rgba(8,80,115,.04); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }

/* ===== SHARED ELEMENTS ===== */
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.breadcrumbs a { color: var(--brand-dark); }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--brand-soft); border: 1px solid var(--line); color: var(--brand-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.ok { color: #087250; background: #eefbf5; border-color: #d3efe3; }
.badge.top { color: #7A5A1E; background: #FBF3E1; border-color: #EFDFBC; }
.status-line { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-size: 12.5px; font-weight: 600; }
.status-line::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.status-line.idle { color: var(--muted); }
.status-line.idle::before { background: var(--muted-2); }
.price { color: var(--ink); font-weight: 800; }
.fav-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--muted); cursor: pointer; transition: .15s; box-shadow: 0 1px 2px rgba(8,80,115,.03); }
.fav-btn:hover { color: var(--brand-2); border-color: var(--brand-2); }
.fav-btn.active { color: #E23D3D; border-color: #F2C4C4; background: #FEF5F5; }
.fav-btn svg { width: 19px; height: 19px; }

/* ===== НИЖНЯЯ МОБИЛЬНАЯ НАВИГАЦИЯ ===== */
.bottom-nav { display: none; }

/* ===== FOOTER ===== */
.footer { padding: 38px 0; border-top: 1px solid var(--line-2); background: #fff; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr repeat(3, .72fr); gap: 30px; }
.footer h3 { margin: 0 0 12px; font-size: 15px; }
.footer p, .footer a { color: var(--muted); font-size: 14px; }
.footer a { display: block; margin: 8px 0; }
.footer a:hover { color: var(--brand-2); }
.footer .brand { margin-bottom: 12px; }

/* ============================================================
   ГЛАВНАЯ (home)
   ============================================================ */
.hero { border-bottom: 1px solid var(--line-2); background: linear-gradient(105deg, #EFF9FC 0%, #F1F8F5 65%, #fff 100%); overflow: hidden; }
.hero-inner { min-height: 430px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 20px; }
.hero-copy { padding: 66px 0 64px; position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.72); color: var(--brand-dark); font-weight: 700; font-size: 13px; }
.hero h1 { max-width: 600px; margin-bottom: 18px; font-weight: 800; font-size: clamp(38px, 5.2vw, 60px); line-height: 1.02; letter-spacing: -0.04em; color: #0B1B22; }
.hero-lead { max-width: 560px; margin-bottom: 28px; color: var(--ink-2); font-size: 19px; }
.hero-art { align-self: stretch; display: flex; align-items: center; justify-content: flex-end; padding: 40px 0; }
.hero-art img { width: min(560px, 100%); aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 22px 46px rgba(8, 100, 140, .14); }
.search-panel { width: min(820px, 100%); display: grid; grid-template-columns: 1.1fr .72fr auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); overflow: hidden; }
.search-field { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 18px; border-right: 1px solid var(--line-2); color: var(--muted); }
.search-field input, .search-field select { width: 100%; border: 0; outline: none; color: var(--ink); background: transparent; }
.search-panel .btn { margin: 8px; min-height: 44px; min-width: 128px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.example-line { margin: 15px 0 0; color: var(--ink-2); font-size: 14px; }
.example-line b { color: var(--ink); }

.section { padding: 58px 0; }
.section.compact { padding: 42px 0; }
.section-muted { background: var(--brand-soft-2); border-block: 1px solid var(--line-2); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.section-title { font-size: 28px; line-height: 1.15; letter-spacing: -0.035em; margin: 0; }
.section-subtitle { color: var(--muted); margin: 8px 0 0; max-width: 640px; }
.link-more { color: var(--brand-dark); font-weight: 700; white-space: nowrap; background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.link-more:hover { color: var(--brand-2); }

.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.category-card { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.category-card img { width: 100%; height: 124px; object-fit: cover; border-bottom: 1px solid var(--line-2); }
.category-card-body { padding: 13px 13px 14px; }
.category-card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.category-card p { margin: 0; font-size: 13px; color: var(--muted); }

.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.trust-card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.trust-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--brand-dark); background: var(--brand-soft); border: 1px solid var(--line); }
.trust-card h3 { font-size: 16px; margin: 0 0 5px; }
.trust-card p { margin: 0; color: var(--muted); font-size: 14px; }

.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.specialist-tile { display: grid; grid-template-columns: 86px 1fr; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: transform .18s ease, box-shadow .18s ease; }
.specialist-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-photo { width: 86px; height: 86px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line-2); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.specialist-tile h3 { margin: 7px 0 5px; font-size: 17px; }
.specialist-tile p { margin: 0 0 3px; color: var(--muted); font-size: 14px; }
.tile-rating { color: var(--brand-dark); font-weight: 700; font-size: 14px; }
.tile-rating .star { color: var(--warning); }

.cities-row { display: flex; flex-wrap: wrap; gap: 10px; }
.city-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 1px 2px rgba(8,80,115,.03); font-weight: 600; transition: .15s; }
.city-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.city-chip small { color: var(--muted); font-weight: 500; font-size: 13px; }
.city-chip.all { color: var(--brand-dark); }

.cta-band { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding: 28px; border-radius: var(--radius-lg); background: linear-gradient(110deg, #E9F6FA, #fff 48%, #F1F8F5); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.cta-band h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.03em; }
.cta-band p { margin: 0; color: var(--muted); }

/* ============================================================
   КАТАЛОГ (catalog)
   ============================================================ */
.page-hero { padding: 34px 0 30px; background: linear-gradient(105deg, #EFF9FC, #F6FBFD 48%, #fff); border-bottom: 1px solid var(--line-2); }
.page-hero .breadcrumbs { margin-top: 0; }
.page-title-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.page-title-row h1 { margin: 0 0 8px; font-weight: 800; font-size: clamp(32px, 4.2vw, 46px); line-height: 1.05; letter-spacing: -0.035em; }
.page-title-row p { margin: 0; max-width: 670px; color: var(--muted); font-size: 17px; }
.stats-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stat-box { min-width: 114px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; box-shadow: var(--shadow-soft); }
.stat-box strong { display: block; font-size: 20px; line-height: 1.1; }
.stat-box span { color: var(--muted); font-size: 12px; }
.quick-search { margin-top: 24px; display: grid; grid-template-columns: 1.1fr .9fr .72fr auto; gap: 10px; }
.input-box, .select-box { min-height: 46px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; display: flex; align-items: center; gap: 9px; padding: 0 12px; color: var(--muted); box-shadow: 0 1px 2px rgba(8,80,115,.03); }
.input-box input, .select-box select { width: 100%; border: 0; outline: none; background: transparent; color: var(--ink); }

.catalog-section { padding: 30px 0 64px; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filter-panel { position: sticky; top: 94px; padding: 18px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.filter-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.filter-title h2 { margin: 0; font-size: 18px; }
.filter-reset { color: var(--brand-dark); font-size: 13px; font-weight: 700; }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line-2); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.check-list { display: grid; gap: 9px; }
.check-item { display: flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.check-item input { accent-color: var(--brand); width: 16px; height: 16px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-row input { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; outline-color: var(--brand); }
.catalog-main { min-width: 0; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink-2); font-size: 13px; box-shadow: 0 1px 2px rgba(8,80,115,.03); }
.chip.applied { background: var(--brand-soft); border-color: #BFE3EF; color: var(--brand-dark); font-weight: 600; }
.chip .x { color: var(--muted-2); font-weight: 700; cursor: pointer; }
.sort-box { min-height: 38px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; background: #fff; color: var(--ink-2); }

/* Карточка анкеты в каталоге */
.cards-list { display: grid; gap: 14px; }
.master-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) 185px; gap: 18px; align-items: start; padding: 16px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-soft); transition: box-shadow .18s ease, border-color .18s ease; }
.master-card:hover { box-shadow: var(--shadow); border-color: var(--line); }
.photo-box { position: relative; width: 112px; height: 112px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line-2); flex: none; }
.slider { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider img { width: 100%; height: 100%; flex: none; object-fit: cover; scroll-snap-align: start; }
.slider a { flex: none; width: 100%; height: 100%; display: block; scroll-snap-align: start; }
.slider a img { scroll-snap-align: unset; }
.photo-box .initial-photo-container { height: 100%; }
.photo-box .slider-placeholder { position: absolute; inset: 0; pointer-events: none; }
.photo-overlay, .dots, .badge.on-photo, .fav-photo { display: none; }
.master-content { min-width: 0; }
.btn-mobile { display: none; }
.master-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.master-top h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.master-top h3 a:hover { color: var(--brand-2); }
.master-meta { color: var(--muted); font-size: 14px; display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 10px; }
.service-tag { min-height: 26px; display: inline-flex; align-items: center; padding: 0 8px; border-radius: var(--radius-sm); color: var(--brand-dark); background: var(--brand-soft-2); border: 1px solid var(--line-2); font-size: 12px; font-weight: 600; }
.master-description { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.master-side { display: grid; justify-items: end; gap: 9px; text-align: right; }
.side-top { display: flex; align-items: center; gap: 10px; }
.price-wrap { display: grid; justify-items: end; gap: 3px; }
.rating { font-weight: 800; color: var(--brand-dark); }
.rating .star { color: var(--warning); }
.master-side .price { font-size: 18px; }
.muted-small { color: var(--muted); font-size: 13px; }
.master-side .btn { width: 100%; min-height: 40px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.page-link { min-width: 38px; min-height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink-2); box-shadow: 0 1px 2px rgba(8,80,115,.03); }
.page-link.active { color: #fff; background: var(--brand); border-color: var(--brand); }

.page-link.disabled { opacity: .45; pointer-events: none; }
.page-note { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Полноэкранная модалка карты (открытие/закрытие — Alpine, контент — htmx) */
.map-modal { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; }
.map-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.map-modal-head h2 { margin: 0; font-size: 18px; }
.map-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.legend-dot.women { background: #FE2E2E; }   /* цвета пинов map_masters.js */
.legend-dot.men { background: #0404B4; }
.legend-dot.salon { background: #088A08; }
.map-close { display: inline-flex; width: 40px; cursor: pointer; }
.map-modal-body { flex: 1; min-height: 0; position: relative; }
.map-modal-body #map { position: absolute; inset: 0; }

.seo-box { margin-top: 26px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); }
.seo-box summary { cursor: pointer; list-style: none; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.seo-box summary::-webkit-details-marker { display: none; }
.seo-box p { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.mobile-filters-btn { display: none; }
#mf-toggle { display: none; }

/* ============================================================
   АНКЕТА (profile)
   ============================================================ */
.page-alert { margin: 14px 0; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid #EFDFBC; background: #FBF3E1; color: #7A5A1E; font-size: 14px; text-align: center; }

/* Центрированная модалка (контакты, авторизация, ограничения) */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(9, 24, 31, .55); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 16px 16px; overflow-y: auto; }
.modal-box { position: relative; width: min(440px, 100%); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 24px; }
.modal-box h2 { font-size: 20px; letter-spacing: -0.02em; margin-bottom: 10px; padding-right: 32px; }
.modal-box p { color: var(--ink-2); font-size: 14.5px; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 50%; }
.modal-close:hover { color: var(--ink); background: var(--surface-2); }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.modal-note { color: var(--muted); font-size: 13px; text-align: center; margin: 10px 0 0; }
.modal-box .btn.wide { width: 100%; }

/* Модалка выбора города (универсальная) */
.modal-city-overlay { align-items: flex-start; padding-top: 7vh; }
.modal-box.modal-city { width: min(560px, 100%); padding: 0; display: flex; flex-direction: column; max-height: 82vh; }
.modal-city-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 22px 24px 4px; }
.modal-city-head h2 { margin: 0; font-size: 20px; letter-spacing: -0.02em; }
.modal-city-head .modal-note { margin: 4px 0 0; }
.modal-city-head .modal-close { position: static; }
.city-search { display: flex; align-items: center; gap: 10px; margin: 16px 24px 4px; padding: 0 16px; min-height: 52px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); box-shadow: 0 1px 2px rgba(8,80,115,.03); transition: border-color .15s, box-shadow .15s; }
.city-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.city-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; }
.city-modal-form { display: flex; flex-direction: column; min-height: 0; }
.city-list { padding: 12px 24px 24px; overflow-y: auto; }
.city-group-label { margin: 6px 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.city-tile { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; box-shadow: 0 1px 2px rgba(8,80,115,.03); transition: border-color .15s, background .15s, color .15s; }
.city-tile:hover { border-color: var(--brand); background: var(--brand-soft-2); color: var(--brand-dark); }
.city-tile .svg-icon { color: var(--muted-2); }
.city-tile:hover .svg-icon { color: var(--brand); }
.city-tile-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.city-tile.current { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); box-shadow: 0 0 0 1px var(--brand); }
.city-tile.current .svg-icon { color: var(--brand); }
.city-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.city-row + .city-row { margin-top: 2px; }
.city-row:hover { background: var(--surface-2); }
.city-row .svg-icon { color: var(--muted-2); flex: 0 0 auto; }
.city-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.city-row-text strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-row-text small { font-size: 13px; color: var(--muted); }
.city-row.current { background: var(--brand-soft); }
.city-row.current .city-row-text strong { color: var(--brand-dark); }
.city-row.current .svg-icon { color: var(--brand); }
.city-row .check, .city-tile .check { margin-left: auto; color: var(--brand); flex: 0 0 auto; }
.city-empty { padding: 20px 4px; text-align: center; color: var(--muted); font-size: 14px; }

.profile-map { height: 400px; border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden; }
.work-note.off { background: var(--surface-2); border-color: var(--line); color: var(--muted); }
.desc-text p { margin: 0 0 10px; }
.profile-page .breadcrumbs { margin-top: 18px; }
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius-lg); }
.gallery::-webkit-scrollbar { display: none; }
.gallery a { flex: none; width: calc((100% - 50px) / 6); scroll-snap-align: start; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line-2); transition: opacity .15s; }
.gallery a:hover img { opacity: .92; }
.gallery-dots { display: none; }
.gallery-overlay { display: none; }

.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; margin-top: 24px; align-items: start; }
.pcol { min-width: 0; }
.name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.name-row h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.05; letter-spacing: -0.035em; }
.name-row .badge { min-height: 26px; padding: 0 9px; font-size: 12.5px; }
.name-row .fav-btn { width: 42px; height: 42px; margin-left: auto; }
.name-row .fav-btn svg { width: 20px; height: 20px; }
.profile-grid .status-line { font-size: 14px; margin-top: 10px; }
.profile-grid .status-line::before { width: 8px; height: 8px; }

.price-card { margin-top: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface-2); overflow: hidden; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line-2); }
.price-row:first-child { border-top: 0; }
.price-row .lbl { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-weight: 500; }
.price-row .lbl svg { color: var(--brand-2); }
.price-row .val { font-weight: 800; font-size: 17px; white-space: nowrap; }
.price-row .val.no { color: var(--muted); font-weight: 600; }

.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cta-row .btn { min-height: 48px; }
.quick-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.fact { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; box-shadow: 0 1px 2px rgba(8,80,115,.03); }
.fact span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.fact strong { font-size: 15px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: transparent; padding: 12px 16px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--brand-dark); border-bottom-color: var(--brand); }
.tab-pane { display: none; padding-top: 18px; }
.tab-pane.active { display: block; }

.rating-line { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--brand-dark); margin-bottom: 12px; }
.rating-line .star { color: var(--warning); }
.rating-line a { color: var(--brand-2); font-weight: 600; }
.desc-text { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.desc-text.clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.expand-btn { margin-top: 10px; border: 0; background: transparent; color: var(--brand-2); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; }

.metro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.metro-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border-radius: 999px; background: var(--brand-soft); border: 1px solid #BFE3EF; color: var(--brand-dark); font-size: 13.5px; font-weight: 600; }
.map-canvas { height: 300px; border-radius: var(--radius); border: 1px solid var(--line-2); position: relative;
  background:
    linear-gradient(90deg,transparent 49%,color-mix(in oklab,var(--brand) 12%,transparent) 50%,transparent 51%),
    linear-gradient(0deg,transparent 49%,color-mix(in oklab,var(--brand) 9%,transparent) 50%,transparent 51%),
    radial-gradient(circle at 30% 30%,color-mix(in oklab,var(--warning) 18%,transparent),transparent 32%),
    radial-gradient(circle at 72% 62%,color-mix(in oklab,var(--brand) 20%,transparent),transparent 32%),
    var(--surface-2);
  background-size: 48px 48px, 48px 48px, auto, auto, auto; }
.map-pin { position: absolute; top: 44%; left: 48%; width: 36px; height: 36px; border-radius: 14px 14px 14px 4px; transform: rotate(-45deg); background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 22px -12px var(--brand); }
.map-pin svg { transform: rotate(45deg); }

.sched-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.sched-day { padding: 12px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; text-align: center; }
.sched-day h4 { margin: 0 0 4px; font-size: 14px; }
.sched-day p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.sched-day.today { border-color: var(--brand); background: var(--brand-soft-2); box-shadow: 0 0 0 1px var(--brand); }
.sched-day.off { background: var(--surface-2); color: var(--muted); }
.sched-day.off p { color: var(--muted); }
.work-note { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 8px 12px; border-radius: var(--radius-sm); background: #eefbf5; border: 1px solid #d3efe3; color: #087250; font-size: 13.5px; font-weight: 600; }

.owner-panel { margin-top: 26px; }
.owner-panel h3 { margin: 0 0 4px; font-size: 17px; }
.owner-panel a:not(.btn) { color: var(--brand-dark); font-weight: 600; }
.owner-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

.reviews-sect { margin-top: 44px; }
.sect-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sect-head h2 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.sect-head .summary { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-weight: 700; }
.sect-head .summary .star { color: var(--warning); }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review-card { padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.review-head strong { font-size: 15px; }
.review-head span { color: var(--muted); font-size: 13px; }
.review-stars { color: var(--warning); font-size: 14px; letter-spacing: 2px; margin-bottom: 8px; }
.review-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.reviews-actions { display: flex; gap: 10px; margin-top: 18px; }

/* ============================================================
   КОНТЕНТ-СТРАНИЦЫ (о сервисе, документы, инфо)
   ============================================================ */
.content-hero { padding: 36px 0 30px; background: linear-gradient(105deg, #EFF9FC, #F6FBFD 48%, #fff); border-bottom: 1px solid var(--line-2); }
.content-hero h1 { margin: 0; font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.06; letter-spacing: -0.035em; }
.content-hero .lead { margin: 12px 0 0; color: var(--ink-2); font-size: 17px; max-width: 640px; }
.content-narrow { max-width: 880px; }
.content-body { padding: 34px 0 10px; }
.content-body h2 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.02em; }
.content-body h3 { font-size: 16px; }
.content-body p, .content-body li { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.content-body ul, .content-body ol { margin: 0 0 14px; padding-left: 22px; }
.content-body li { margin-bottom: 7px; }
.content-body li > ul, .content-body li > ol { margin-top: 7px; margin-bottom: 0; }
.content-body a:not(.btn) { color: var(--brand-dark); font-weight: 600; }
.content-body a:not(.btn):hover { color: var(--brand-2); }
.content-section { margin-top: 34px; }
.content-section:first-child { margin-top: 0; }
.content-indent { margin-left: 18px; }
.content-note { color: var(--muted); font-size: 13.5px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; }
.card-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.info-card { padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.info-card h3 { margin: 10px 0 6px; font-size: 16px; }
.info-card p { margin: 0; font-size: 14px; color: var(--muted); }
.step-num { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--line); color: var(--brand-dark); font-weight: 800; font-size: 14px; }
.icon-tile { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); color: var(--brand-dark); background: var(--brand-soft); border: 1px solid var(--line); }
.icon-tile svg { width: 20px; height: 20px; }

.faq-item { margin-bottom: 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 2px rgba(8,80,115,.03); overflow: hidden; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); transform: rotate(45deg); transition: transform .18s ease; margin-top: -4px; }
.faq-item[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.faq-item .faq-body { padding: 0 16px 14px; }
.faq-item .faq-body p { margin: 0; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 16px 0; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-soft); }
.plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-soft); }
.plan-card h3 { margin: 0 0 2px; font-size: 17px; }
.plan-price { margin: 0 0 12px; font-size: 20px; font-weight: 800; color: var(--brand-dark); }
.plan-card ul { margin: 0 0 18px; padding-left: 20px; }
.plan-card .btn { margin-top: auto; width: 100%; }

.content-cta { margin-top: 40px; padding: 28px 24px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(110deg, #E9F6FA, #fff 48%, #F1F8F5); }
.content-cta .cta-lead { margin: 0 0 16px; font-size: 18px; font-weight: 700; color: var(--ink); }
.content-cta .cta-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 1060px) {
  .nav-links { gap: 14px; font-size: 13px; }
  /* home */
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: 1fr; }
  /* catalog */
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .master-card { grid-template-columns: 100px minmax(0, 1fr); }
  .photo-box { width: 100px; height: 100px; }
  .master-side { grid-column: 2; justify-items: start; text-align: left; grid-template-columns: 1fr 1fr; width: 100%; align-items: center; }
  .price-wrap { justify-items: start; }
  /* profile */
  .gallery a { width: calc((100% - 30px) / 4); }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .container { padding: 0 18px; }
  body { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .bottom-nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(8, 80, 115, .06); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 60px; color: var(--ink-2); font-size: 11px; font-weight: 600; }
  .bottom-nav a:hover { color: var(--brand-2); }
  .bottom-nav .svg-icon { width: 21px; height: 21px; }
  .bottom-nav .icon-wrap { position: relative; display: inline-flex; }
  .bottom-nav .nav-badge { position: absolute; top: -5px; right: -11px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 10px; line-height: 16px; font-weight: 700; text-align: center; }
  .footer { margin-bottom: 0; }
  .header-main { height: 64px; gap: 12px; }
  .brand { font-size: 27px; }
  .icon-btn { display: inline-flex; }
  .search-mini, .nav-links .hide-mobile, .nav-links .btn { display: none; }
  /* город на мобиле — иконка-пин без подписи */
  .city-button { padding: 0; width: 40px; justify-content: center; }
  .city-button-label { display: none; }
  .nav-links { margin-left: auto; gap: 10px; }
  .subnav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* home */
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 42px 0 36px; }
  .hero h1 { font-size: 44px; max-width: 520px; }
  .hero-lead { font-size: 17px; }
  .hero-art { display: none; }
  .search-panel { grid-template-columns: 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--line-2); min-height: 56px; }
  .search-panel .btn { width: auto; margin: 10px; }
  .section { padding: 42px 0; }
  .section-head { align-items: start; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .category-card img { height: 112px; }
  .trust-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; padding: 20px; }

  /* content */
  .card-grid, .card-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .content-body { padding-top: 26px; }

  /* catalog */
  .page-title-row { grid-template-columns: 1fr; }
  .quick-search { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  /* мобильная карточка: большой слайдер фото */
  .master-card { display: flex; flex-direction: column; padding: 0; gap: 0; overflow: hidden; border-radius: 12px; }
  .photo-box { order: 0; width: 100%; height: auto; aspect-ratio: 4 / 5; border: 0; border-radius: 0; }
  .badge.on-photo { display: inline-flex; position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; }
  .fav-photo { display: inline-flex; position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); backdrop-filter: blur(8px); color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer; }
  .fav-photo.active { color: #E23D3D; }
  .fav-photo svg { width: 21px; height: 21px; }
  .dots { display: flex; gap: 5px; position: absolute; inset-inline: 0; bottom: 86px; justify-content: center; z-index: 2; }
  .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
  .dots i.on { background: #fff; }
  .photo-overlay { display: flex; flex-direction: column; gap: 3px; position: absolute; inset-inline: 0; bottom: 0; padding: 46px 14px 14px; background: linear-gradient(to top, rgba(9,24,31,.74), transparent); color: #fff; z-index: 1; }
  .photo-overlay strong { font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
  .photo-overlay .okline { display: inline-flex; align-items: center; gap: 6px; color: #7BE3B1; font-size: 13px; font-weight: 600; }
  .master-side { order: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px 0; text-align: left; }
  .price-wrap { order: 0; margin-right: auto; display: flex; align-items: baseline; gap: 8px; justify-items: start; }
  .master-side .price { font-size: 20px; }
  .master-side .rating { order: 1; }
  .side-top { order: 2; width: 100%; }
  .master-card .fav-btn { display: none; }
  .master-side .btn { display: none; }
  .master-content { order: 2; padding: 8px 14px 14px; }
  .master-top { display: none; }
  .service-tags { display: none; }
  .master-meta { margin-bottom: 8px; }
  .btn-mobile { display: flex; width: 100%; margin-top: 12px; }

  /* profile: фулскрин-слайдер галереи */
  .gallery { border-radius: var(--radius-lg); }
  .gallery a { width: 100%; }
  .gallery img { border-radius: 0; border: 0; aspect-ratio: 4 / 5; }
  .gallery-wrap { border-radius: var(--radius-lg); overflow: hidden; }
  .gallery-dots { display: flex; gap: 5px; position: absolute; inset-inline: 0; bottom: 92px; justify-content: center; z-index: 2; }
  .gallery-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5); }
  .gallery-dots i.on { background: #fff; }
  .gallery-overlay { display: flex; flex-direction: column; gap: 3px; position: absolute; inset-inline: 0; bottom: 0; padding: 46px 16px 16px; background: linear-gradient(to top, rgba(9,24,31,.74), transparent); color: #fff; pointer-events: none; }
  .gallery-overlay strong { font-weight: 800; font-size: 26px; letter-spacing: -0.02em; }
  .gallery-overlay .okline { display: inline-flex; align-items: center; gap: 6px; color: #7BE3B1; font-size: 13.5px; font-weight: 600; }
  .name-row h1 { display: none; }
  .name-row .badge { display: none; }
  .profile-grid { margin-top: 16px; gap: 20px; }
  .cta-row { grid-template-columns: 1fr; }
  .sched-grid { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { white-space: nowrap; }
}

@media (max-width: 520px) {
  .container { padding: 0 14px; }
  .modal-city-overlay { padding: 0; align-items: stretch; }
  .modal-box.modal-city { width: 100%; max-height: 100vh; border-radius: 0; }
  .modal-city-head { padding: 18px 16px 4px; }
  .city-search { margin: 14px 16px 4px; }
  .city-list { padding: 12px 16px 20px; }
  .city-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .header-main { height: 58px; }
  .brand { font-size: 24px; }
  .profile-button { width: 36px; min-height: 36px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* home */
  .hero-copy { padding: 34px 0 30px; }
  .hero h1 { font-size: 37px; letter-spacing: -0.05em; }
  .hero-lead { font-size: 16px; }
  .section-title { font-size: 24px; }
  .section-head { flex-direction: column; gap: 8px; }
  .category-grid { display: flex; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .category-grid::-webkit-scrollbar { display: none; }
  .category-card { min-width: 152px; scroll-snap-align: start; }
  .category-card img { height: 104px; }
  .specialist-tile { grid-template-columns: 74px 1fr; padding: 12px; }
  .tile-photo { width: 74px; height: 74px; }

  /* content */
  .card-grid, .card-grid.cols-2, .card-grid.cols-4 { grid-template-columns: 1fr; }
  .content-hero h1 { font-size: 30px; }

  /* catalog */
  .stats-line { display: none; }
  .page-title-row h1 { font-size: 36px; }
  .catalog-section { padding-top: 20px; }
  .filter-panel { display: none; }
  .mobile-filters-btn { display: inline-flex; align-items: center; gap: 8px; }
  #mf-toggle:checked ~ .catalog-layout .filter-panel { display: block; }
}
