:root{
  --bg:#f6f7f9;
  --card:#ffffff;
  --text:#1b1f24;
  --muted:#6b7280;
  --brand:#e11d2e;
  --brand2:#b91522;
  --border:#e5e7eb;
  --shadow:0 8px 24px rgba(0,0,0,.08);
  --radius:14px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;color:var(--text);background:var(--bg);max-width:100%;overflow-x:hidden}
a{color:inherit;text-decoration:none}
.container{max-width:1200px;margin:0 auto;padding:0 16px}
@media (max-width:480px){.container{padding:0 12px}}

/* Topbar */
.topbar{position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--border)}
.topbar__inner{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;height:62px}
.logo{display:flex;align-items:center;gap:10px;font-weight:900;letter-spacing:.5px;flex:0 0 auto;white-space:nowrap}
.logo__mark{color:var(--brand);font-size:20px}
.logo__text{font-size:18px}
.nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex:1 1 auto;
  min-width:0;
  justify-content:flex-start;
  padding:0 12px;
  flex-wrap:nowrap;
  overflow-x:auto;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.nav::-webkit-scrollbar{display:none}
.nav a{white-space:nowrap}
.nav a{display:flex;align-items:center;gap:8px;padding:10px 10px;border-radius:10px;color:#111}
.nav a:hover{background:rgba(225,29,46,.08)}
.nav .is-active{background:rgba(225,29,46,.10);color:var(--brand)}
.nav__spacer{flex:1}

/* In this static demo we keep the nav centered and icons pinned right */
.nav__spacer{display:none}
.nav__icons{display:flex;gap:8px}
.iconbtn{width:38px;height:38px;border-radius:12px;border:1px solid var(--border);background:#fff;display:grid;place-items:center;cursor:pointer;text-decoration:none;color:#111}
.iconbtn:hover{border-color:rgba(225,29,46,.4)}

/* On smaller screens hide the long nav and use the burger drawer.
   This prevents the menu from sliding under other header elements. */
@media (max-width: 980px){
  .nav{display:none}
}

/* Mobile drawer */
.drawer-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:60;display:none}
.drawer{position:fixed;top:0;right:0;height:100%;width:min(380px, 86vw);background:#fff;z-index:61;transform:translateX(100%);transition:transform .18s ease;box-shadow:-20px 0 50px rgba(0,0,0,.18);display:flex;flex-direction:column}
.drawer__head{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;border-bottom:1px solid var(--border)}
.drawer__title{font-weight:900;letter-spacing:.2px}
.drawer__close{width:40px;height:40px;border-radius:14px;border:1px solid var(--border);background:#fff;cursor:pointer}
.drawer__nav{padding:10px;display:flex;flex-direction:column;gap:6px;overflow:auto}
.drawer__nav a{display:flex;align-items:center;gap:10px;padding:12px;border-radius:12px}
.drawer__nav a:hover{background:rgba(225,29,46,.08)}
.drawer__footer{margin-top:auto;padding:12px 14px;border-top:1px solid var(--border);color:var(--muted);font-size:12px}

.drawer.is-open{transform:translateX(0)}
.drawer-backdrop.is-open{display:block}

/* Layout */
.layout{display:grid;grid-template-columns:280px 1fr;gap:18px;margin-top:16px}
@media (max-width: 980px){.layout{grid-template-columns:1fr}.sidebar{order:2}}

.sidebar{position:sticky;top:78px;align-self:start}
.sidecard{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px}
.sidebtn{display:flex;align-items:center;gap:10px;justify-content:center;padding:12px 14px;border-radius:12px;font-weight:700;border:1px solid var(--border)}
.sidebtn + .sidebtn{margin-top:10px}
.sidebtn--tg{background:#0ea5e9;color:#fff;border-color:#0ea5e9}
.sidebtn--add{background:#22c55e;color:#fff;border-color:#22c55e}


/* Listing CTAs moved under cards */
.listingCtas{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 0}
.listingCtas .sidebtn{flex:1 1 240px;max-width:360px}
.listingCtas .sidebtn + .sidebtn{margin-top:0}
@media (max-width:480px){
  .listingCtas .sidebtn{flex:1 1 100%;max-width:none}
}

/* Filters */
.filtersShell{margin-top:14px}
.filtersTop{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.filtersTop__title{font-size:16px;margin:0;font-weight:900;letter-spacing:.2px}
.filtersOpenBtn{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer}
.filtersOpenBtn:hover{border-color:rgba(225,29,46,.35)}
.filtersChips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px solid var(--border);background:#fff;border-radius:999px;padding:8px 10px;font-size:12px;cursor:pointer;white-space:nowrap}
.chip b{font-weight:900}
.filtersQuick{margin-top:10px;background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:12px}
.filtersQuick .filtersBar{display:grid;grid-template-columns:160px 160px 180px 1fr;gap:10px;align-items:end}
.fGroup{display:flex;flex-direction:column;gap:6px}
.fGroup label{font-size:12px;color:var(--muted);font-weight:700}
.fGroup--grow{min-width:220px}
/* v104: search input spans full width */
.filtersQuick .filtersBar .fGroup--grow{grid-column:1 / -1}

.filtersBar select,.filtersBar input{width:100%;border:1px solid var(--border);border-radius:12px;padding:10px 12px;background:#fff;outline:none}
.filtersBar input::placeholder{color:var(--muted)}
.btn{border:1px solid var(--border);background:#fff;border-radius:12px;padding:10px 12px;font-weight:800;cursor:pointer}
.btn--primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn:hover{border-color:rgba(225,29,46,.35)}

.filtersGrid{margin-top:12px;display:grid;grid-template-columns:repeat(3, minmax(0, 1fr));gap:12px}
.facc{border:1px solid var(--border);border-radius:14px;background:#fff;overflow:hidden}
.facc summary{list-style:none;cursor:pointer;padding:12px 12px;font-weight:900;display:flex;align-items:center;justify-content:space-between}
.facc summary::-webkit-details-marker{display:none}
.facc summary:after{content:'▾';color:var(--muted);font-weight:900}
.facc[open] summary:after{transform:rotate(180deg)}
.facc__grid{padding:0 12px 12px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.chk{display:flex;align-items:center;gap:8px;font-size:13px;color:#111}
.chk input{width:16px;height:16px}

/* Drawer (mobile filters) */
.filtersDrawer{position:fixed;left:0;right:0;bottom:0;top:72px;background:#fff;z-index:80;transform:translateY(110%);transition:transform .2s ease, opacity .2s ease;display:flex;flex-direction:column;border-top-left-radius:18px;border-top-right-radius:18px;box-shadow:0 -20px 60px rgba(0,0,0,.25);opacity:0;visibility:hidden;pointer-events:none}
.filtersDrawer__head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border)}
.filtersDrawer__title{font-weight:900}
.filtersDrawer__close{width:42px;height:42px;border-radius:14px;border:1px solid var(--border);background:#fff;cursor:pointer}
.filtersDrawer__body{padding:12px 14px;overflow:auto}

/* v15: Filters layout inside the drawer */
.filtersDrawer__body .filtersAccordions{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap:14px;
  align-items:start;
}
.filtersDrawer__body details.facc{width:100%}
.filtersDrawer__body details.facc > summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  cursor:pointer;
  user-select:none;
  padding:10px 12px;
  border-radius:12px;
  background:#fff;
  border:1px solid #eaeaea;
  font-weight:700;
}
.filtersDrawer__body details.facc[open] > summary{border-color:#ddd}
.filtersDrawer__body .facc__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:8px 14px;
  padding:12px 12px 6px;
}
.filtersDrawer__body .fopt{display:flex;align-items:flex-start;gap:8px;font-size:14px;line-height:1.25}
.filtersDrawer__body .fopt input{margin-top:2px}
.filtersDrawer__body .fopt span{word-break:break-word}
@media (max-width: 560px){
  .filtersDrawer__body .facc__grid{grid-template-columns:1fr}
}

/* v15: Profile map + rating */
.mapBox{background:#fff;border:1px solid #ececec;border-radius:14px;overflow:hidden}
.mapBox iframe{display:block;width:100%;height:220px;border:0}

.ratingBox{background:#fff;border:1px solid #ececec;border-radius:14px;padding:14px}
.ratingStars{display:flex;gap:6px;margin:10px 0 6px}
.ratingStars button{width:36px;height:36px;border-radius:10px;border:1px solid #e5e5e5;background:#fff;cursor:pointer;font-size:18px;line-height:1}
.ratingStars button.is-on{border-color:#d6d6d6;background:#f5f5f5}
.ratingMeta{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.ratingMeta .muted{color:#7a7a7a;font-size:13px}
.filtersDrawer__foot{padding:12px 14px;border-top:1px solid var(--border)}
.filtersBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:79;display:none}
.filtersShell.is-open .filtersDrawer,.filtersDrawer.is-open{transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto}
.filtersShell.is-open .filtersBackdrop,.filtersBackdrop.is-open{display:block;pointer-events:auto}

/* Desktop: make filters a centered modal (not full-screen) */
@media (min-width: 981px){
  .filtersDrawer{
    left:50%;
    right:auto;
    top:96px;
    bottom:auto;
    width:min(980px, calc(100% - 48px));
    max-height:calc(100vh - 140px);
    border-radius:18px;
    border:1px solid rgba(0,0,0,.08);
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    transform:translate(-50%,-14px);
    opacity:0;
    pointer-events:none;
  }
  .filtersShell.is-open .filtersDrawer{
    transform:translate(-50%,0);
    opacity:1;
    pointer-events:auto;
  }

  /* a bit more air between accordion blocks */
  .filtersDrawer__body .filtersAccordions{gap:16px}
  .filtersDrawer__body details.facc{margin-bottom:6px}
  .filtersDrawer__body .facc__grid{gap:10px 18px}
}

@media (max-width: 980px){
  .filtersQuick .filtersBar{grid-template-columns:1fr 1fr}
  .fGroup--grow{grid-column:1 / -1}
  .filtersGrid{display:none}
  .filtersOpenBtn{display:inline-flex}
}

/* Promo */
.promo{display:flex;gap:10px;overflow:auto;padding-bottom:6px}
.promo__item{flex:0 0 180px;height:88px;border-radius:16px;background:#111;color:#fff;display:flex;align-items:end;padding:10px;border:1px solid rgba(255,255,255,.06)}
.promo__item strong{font-size:13px}

/* Stats */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
@media (max-width: 720px){.stats{grid-template-columns:1fr}}
.stat{background:#e9f5ff;border:1px solid #cfe9ff;border-radius:14px;padding:12px;display:flex;align-items:center;justify-content:space-between}
.stat:nth-child(2){background:#ecfeff;border-color:#cffafe}
.stat:nth-child(3){background:#f0fdf4;border-color:#dcfce7}
.stat b{font-size:18px}
.stat span{color:var(--muted);font-weight:600}

/* Cards grid */
.grid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width: 720px){.grid{grid-template-columns:repeat(2, minmax(0,1fr))}}
/* keep 2 columns even on wide screens to avoid text/price overflow */


.card{position:relative;background:var(--card);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);overflow:hidden;display:flex;min-width:0}
.card__inner{display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;padding:12px;flex:1;min-height:214px;min-width:0}
.card__img{width:150px;height:190px;border-radius:12px;overflow:hidden;background:#111}
.card__img img{width:100%;height:100%;object-fit:cover;display:block}
.card__meta{display:flex;flex-direction:column;gap:8px;min-width:0;overflow:hidden}
.card__name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.card__desc{min-width:0}
.pricegrid{margin-top:auto}

@media (max-width:480px){
  .card__inner{grid-template-columns:120px minmax(0,1fr);min-height:200px}
  .card__img{width:120px;height:170px}
  .card__desc{-webkit-line-clamp:2}
}
.card__title{display:flex;align-items:center;gap:8px}
.badge{font-size:11px;font-weight:900;padding:3px 7px;border-radius:999px;background:rgba(225,29,46,.12);color:var(--brand)}
.card__name{font-weight:900}
.card__desc{color:var(--muted);font-size:13px;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}

/* Prevent price table from jumping when text wraps */
.pricegrid{margin-top:auto;table-layout:fixed}
.pricegrid th,.pricegrid td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card__row{display:flex;gap:10px;flex-wrap:wrap;color:#111;font-size:13px}
.card__row span{display:flex;gap:6px;align-items:center;color:#111}
.muted{color:var(--muted)}
.pricegrid{width:100%;border-collapse:collapse;font-size:12px;margin-top:4px;table-layout:fixed}
.pricegrid th,.pricegrid td{padding:4px 6px;border-top:1px solid var(--border)}
.pricegrid td,.pricegrid th{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pricegrid th{text-align:left;color:var(--muted);font-weight:700}

.ribbon{position:absolute;top:12px;left:-42px;transform:rotate(-35deg);width:140px;text-align:center;font-weight:900;font-size:12px;padding:6px 0;color:#fff;background:#111;box-shadow:0 6px 14px rgba(0,0,0,.25)}
.ribbon--real{background:#0ea5e9}
.ribbon--top{background:var(--brand)}
.ribbon--new{background:#22c55e}

/* Breadcrumbs */
.breadcrumbs{font-size:12px;color:var(--muted);background:#fff;border:1px solid var(--border);border-radius:14px;padding:10px 12px}
.breadcrumbs a{color:var(--muted)}

/* Profile */
.profile{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:var(--shadow);padding:16px}
.profile__head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.h1{font-size:28px;margin:0}
.cta{display:flex;gap:10px;align-items:center}
.btn{border-radius:12px;border:1px solid var(--border);background:#fff;padding:10px 12px;font-weight:800;cursor:pointer}
.btn--primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn--primary:hover{background:var(--brand2)}

.profile__grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:12px}
@media (max-width: 980px){.profile__grid{grid-template-columns:1fr}}
.gallery{background:#111;border-radius:16px;overflow:hidden;border:1px solid #222}
.gallery__main{position:relative;max-width:750px;max-height:1100px;margin:0 auto}
.gallery__main img{width:100%;height:auto;max-width:750px;max-height:1100px;object-fit:contain;display:block}
.gallery__thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;padding:10px;background:#0b0b0b}
.gallery__thumbs button{border:0;padding:0;background:transparent;cursor:pointer;border-radius:10px;overflow:hidden;outline:2px solid transparent}
.gallery__thumbs button.is-active{outline-color:rgba(225,29,46,.9)}
.gallery__thumbs img{width:100%;height:64px;object-fit:cover;display:block}

.panel{border:1px solid var(--border);border-radius:16px;padding:14px}
.panel h2{font-size:16px;margin:0 0 10px}
.panel p{margin:0;color:var(--muted);line-height:1.45}
.list{margin:10px 0 0;padding-left:18px;color:var(--muted)}
.list li{margin:6px 0}

.prices{margin-top:14px}
.prices table{width:100%;border-collapse:collapse}
.prices th,.prices td{padding:10px;border-top:1px solid var(--border);font-size:13px}
.prices th{color:var(--muted);text-align:left}
.warn{margin-top:10px;background:#fff1f2;border:1px solid #fecdd3;color:#991b1b;padding:10px;border-radius:12px;font-weight:700;font-size:13px}

.footer{margin:28px 0 40px;color:var(--muted);font-size:12px}

/* ===== Compatibility layer (older classnames in demo HTML) ===== */
/* Some demo pages were generated with different classnames than the main CSS.
   To avoid broken layout (like huge unstyled photo blocks), we map them here. */

/* Profile header */
.profileHead{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:6px 0 10px}
.profileTitle{font-size:28px;margin:0;font-weight:900;letter-spacing:-0.01em}
.profileActions{display:flex;gap:10px;align-items:center}

/* Profile main grid */
.profileLayout{display:grid;grid-template-columns:1.2fr 1fr;gap:18px;align-items:start}
@media (max-width: 980px){.profileLayout{grid-template-columns:1fr}}

/* Gallery */
.galleryMain{background:linear-gradient(135deg,#333,#111);border-radius:18px;overflow:hidden;min-height:420px;max-width:750px;max-height:1100px;margin:0 auto;display:flex;align-items:center;justify-content:center;box-shadow:var(--shadow)}
.galleryMain img{width:100%;height:auto;max-width:750px;max-height:1100px;object-fit:contain;display:block}
.galleryThumbs{display:flex;gap:10px;margin-top:10px;overflow:auto;padding-bottom:2px}
.galleryThumbs img{width:96px;height:72px;object-fit:cover;border-radius:12px;border:1px solid var(--border);opacity:.9;flex:0 0 auto}
.galleryThumbs img:hover{opacity:1}

/* Right column card */
.profileCard{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:14px;box-shadow:var(--shadow)}
.sectionTitle{font-size:18px;margin:12px 0 10px;font-weight:900}
.bullets{margin:0;padding-left:18px;color:var(--text)}
.bullets li{margin:6px 0;color:var(--muted)}

/* Price table */
.priceTable{width:100%;border-collapse:separate;border-spacing:0 8px}
.priceTable th{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);text-align:left;padding:0 10px}
.priceTable td{background:#fafafa;border:1px solid var(--border);padding:10px;border-radius:12px}
.priceTable tr td:first-child{border-top-right-radius:0;border-bottom-right-radius:0}
.priceTable tr td:last-child{border-top-left-radius:0;border-bottom-left-radius:0}
@media (prefers-color-scheme: dark){
  /* Fix contrast in price block for dark mode / forced dark themes */
  .priceTable th{color:rgba(255,255,255,.65)}
  .priceTable td{background:#0d0f14;color:#f9fafb;border-color:rgba(255,255,255,.12)}
}

/* Service list */
.checklist{margin:0;padding-left:18px}
.checklist li{margin:6px 0}

/* Meta */
.profileMeta{margin-top:12px;font-size:13px;color:var(--muted)}
.profileMeta b{color:var(--text)}


/* v7 fixes */
footer.siteFooter{padding:18px 0;border-top:1px solid rgba(0,0,0,.06);background:#fff}
footer.siteFooter .container{display:flex;align-items:center;justify-content:space-between;gap:12px}
footer.siteFooter .footerNote{color:#6b7280;font-size:14px;line-height:1.4}

/* Make sure main content has safe bottom space (profile especially) */
main{padding-bottom:56px}
.profilePage main{padding-bottom:72px}

/* Breadcrumb spacing on profile */
.profilePage .breadcrumbs{margin-top:18px;margin-bottom:14px}

/* Phone block on profile aligned with gallery */
.profileContact{display:flex;align-items:center;gap:10px;margin-top:8px}
.profileContact .phoneBtn{flex:1}

/* Buttons as icon buttons */
.iconBtn{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;border:1px solid rgba(0,0,0,.1);background:#fff;cursor:pointer}
.iconBtn:hover{background:#f3f4f6}
.iconBtn svg{width:20px;height:20px}

/* Card text clamp to prevent overflow */
.card .cardTitle{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card .cardDesc{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:54px}
.card .priceMini{table-layout:fixed;width:100%}
.card .priceMini td,.card .priceMini th{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}


.brSpacer{height:12px}

.profileParams dl{display:grid;grid-template-columns:160px 1fr;gap:8px 14px;margin:10px 0 0}
.profileParams dt{color:#6b7280}
.profileParams dd{margin:0;color:#111827}

.profileReviews ul{margin:10px 0 0;padding-left:18px}
.profileReviews li{margin:8px 0}


/* v8 icons */
.iconBtn{color:#111827}
.iconBtn.tg{color:#229ED9}
.iconBtn.wa{color:#25D366}
.iconBtn.tg:hover{background:rgba(34,158,217,.08)}
.iconBtn.wa:hover{background:rgba(37,211,102,.10)}
.iconBtn svg{display:block}


/* v8 profile alignment */
.profileLayout{display:grid;grid-template-columns: 1.45fr 1fr;gap:18px;align-items:start}
.profileLeft{min-width:0}
.profileRight{min-width:0}
.profileRight .profileContact{margin:0 0 12px 0}
.profileTopRow{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
.profileTopRow h1{margin:0}
.profileTopRow .profileContact{display:none} /* old location hidden if exists */


/* v8 subpage header fixes */
.siteHeader .topNav a{white-space:nowrap}


/* v8 footer wrapper */
.footerWrap{border-top:1px solid rgba(0,0,0,.06);background:#fff;margin-top:24px}
.footerWrap .footer{max-width:1200px;margin:0 auto;padding:18px 16px;display:flex;justify-content:space-between;gap:12px}


/* v8 drawer */
.drawerBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);opacity:0;pointer-events:none;transition:.2s;z-index:50}
.drawerBackdrop.open{opacity:1;pointer-events:auto}
.mobileDrawer{position:fixed;top:0;right:-340px;width:320px;max-width:92vw;height:100vh;background:#fff;z-index:60;transition:.25s;box-shadow:-12px 0 30px rgba(0,0,0,.18);padding:14px}
.mobileDrawer.open{right:0}
.mobileDrawer__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.mobileDrawer__title{font-weight:700}
.mobileDrawer__nav{display:flex;flex-direction:column;gap:8px}
.mobileDrawer__nav a{padding:10px 12px;border-radius:12px;border:1px solid rgba(0,0,0,.08)}
.mobileDrawer__nav a:hover{background:#f3f4f6}


/* v9 breadcrumb spacing */
.breadcrumbs{margin-top:12px;margin-bottom:10px}
/* v9 footer alignment */
.footer.container{max-width:1200px;margin:0 auto;padding:18px 16px;display:flex;justify-content:space-between;gap:12px}


/* v10 spacing fixes */
.breadcrumbs{margin-top:6px;margin-bottom:6px}
.profileTitle{margin-top:6px}
/* reviews inside left column */
.profileLeft .profileReviews{margin-top:18px}
.profileLeft .profileReviews h2{margin:0 0 10px}
/* reduce huge empty below grid by moving reviews; keep after-grid spacing small if any remains */
.afterProfile{margin-top:18px}


/* v10 filters */
.filtersBar{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:12px;display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.filtersBar .fGroup{display:flex;flex-direction:column;gap:6px;min-width:160px}
.filtersBar label{font-size:12px;color:#6b7280}
.filtersBar select,.filtersBar input{border:1px solid rgba(0,0,0,.12);border-radius:12px;padding:10px 12px;font:inherit;background:#fff}
.filtersBar .fActions{margin-left:auto;display:flex;gap:10px}
.filtersBar .btn{white-space:nowrap}
@media(max-width:820px){
  .filtersBar .fActions{margin-left:0;width:100%}
  .filtersBar .fGroup{min-width:140px;flex:1}
}

/* v10.1 breadcrumbs override */
.profilePage .breadcrumbs{margin-top:10px!important;margin-bottom:8px!important}


/* v11 profile spacing + reviews style */
.profilePage .breadcrumbs{margin-top:6px!important;margin-bottom:4px!important}
.profilePage .brSpacer{height:6px!important}
.profileTitle{margin-top:4px!important}

/* reviews block as light card (avoid dark/selection look) */
.profileReviews{margin-top:16px;padding:14px 16px;border:1px solid rgba(0,0,0,.08);border-radius:16px;background:#fff}
.profileReviews h2{margin:0 0 10px;font-size:20px}
.profileReviews ul{margin:0;padding-left:18px}
.profileReviews li{margin:8px 0;line-height:1.5}
.profileReviews strong{font-weight:700}

/* home: more air between header area and filters */
.filtersSection{margin-top:18px}


/* v12: keep profile sidebar on wide screens; stack only on narrow */
@media (min-width: 980px){
  .profileLayout{grid-template-columns: 1.45fr 1fr !important;}
}
@media (max-width: 979px){
  .profileLayout{grid-template-columns: 1fr !important;}
}

/* v12: reviews inside gallery should stay light */
.gallery .afterProfile{margin-top:16px}
.gallery .profileReviews{background:#fff;border:1px solid rgba(255,255,255,.12);border-color:rgba(0,0,0,.10)}


.filtersBlock{margin-top:32px}
.filtersGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.filterGroup{background:#fff;border-radius:12px;padding:12px;border:1px solid rgba(0,0,0,.08)}
.filterGroup h4{margin-bottom:8px;font-size:14px}
.filterGroup label{display:block;font-size:13px;margin-bottom:6px}

.gallery .profileReviews{margin-top:32px}

/* --- v26 fixes: profile spacing + after-photo blocks --- */
.profilePage .breadcrumbs{margin-bottom:2px!important}
.profilePage .brSpacer{height:0!important}
.profileTitle{margin-top:0!important}

/* Move reviews/map outside the photo frame */
.afterProfileStack{margin-top:18px}
.afterProfileStack .profileReviews{margin:0 0 16px}
.afterProfileStack .profileMap{margin:0}

/* SEO facets internal links */
.seoFacets{margin:14px 0 10px;padding:12px 12px 10px;border:1px solid var(--line);border-radius:16px;background:var(--card);overflow:hidden;}
.seoFacets.is-collapsed{display:none;}
.seoFacets__title{font-weight:700;margin:0 0 12px;}
/* Groups (По районам / По возрасту / ...) */
.seoFacets__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.seoFacets__group{min-width:0;}
.seoFacets__groupTitle{font-weight:600;font-size:13px;margin:0 0 8px;opacity:.9;}
.seoFacets__links{display:flex;flex-wrap:wrap;gap:8px;}

/* Chips */
.seoFacets__chip{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;border:1px solid rgba(0,0,0,.12);background:#fff;text-decoration:none;color:inherit;max-width:100%;white-space:nowrap;}
.seoFacets__chip:hover{border-color:rgba(0,0,0,.22);}

.seoFacets__note{margin-top:12px;font-size:12px;opacity:.75;line-height:1.35;}

@media (max-width: 820px){
  .seoFacets__grid{grid-template-columns:1fr;}
  .seoFacets__chip{white-space:normal;}
}

.page-title{font-size:32px;font-weight:800;margin:18px 0 8px;}

/* --- Drawer locks & Picks drawer --- */
html.is-locked, body.is-locked{overflow:hidden;touch-action:none}

.picksBackdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:79;display:none}
.picksBackdrop.is-open{display:block}

.picksDrawer{position:fixed;top:88px;left:50%;transform:translateX(-50%) translateY(12px);width:min(980px,calc(100vw - 32px));max-height:calc(100vh - 120px);background:#fff;z-index:80;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);opacity:0;visibility:hidden;pointer-events:none;transition:transform .18s ease, opacity .18s ease;display:flex;flex-direction:column}
.picksDrawer.is-open{transform:translateX(-50%) translateY(0);opacity:1;visibility:visible;pointer-events:auto}

.picksDrawer__header{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--border)}
.picksDrawer__title{font-weight:900}
.picksDrawer__close{width:42px;height:42px;border-radius:14px;border:1px solid var(--border);background:#fff;cursor:pointer}
.picksDrawer__body{padding:12px 14px;overflow:auto;flex:1;min-height:0;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}

/* picksDrawer mobile */
@media (max-width: 700px){
  .picksDrawer{top:12px;max-height:calc(100vh - 24px);width:calc(100vw - 16px);border-radius:16px}
}

/* Ensure seoFacets looks neat inside drawer */
#seoFacets{margin:0}
#seoFacets .facetChips{display:flex;flex-wrap:wrap;gap:10px}
#seoFacets .facetChips a{display:inline-flex;align-items:center;padding:10px 12px;border:1px solid var(--border);border-radius:999px;text-decoration:none}
#seoFacets .facetChips a:hover{background:#f6f7fb}


/* --- Drawer robustness: allow JS to toggle .is-open on drawer/backdrop directly --- */
.filtersDrawer.is-open{transform:translateY(0)}
.filtersBackdrop.is-open{display:block}
.filtersBackdrop{pointer-events:none}
.filtersBackdrop.is-open{pointer-events:auto}
/* Ensure the drawer itself is interactive only when open */
.filtersDrawer{pointer-events:none}
.filtersDrawer.is-open{pointer-events:auto}

/* --- SEO text accordion (UX: keep cards first) --- */
.seoAccordion{margin-top:18px;border:1px solid var(--border);border-radius:18px;background:#fff;overflow:hidden}
details.seo-toggle{margin-top:18px}

.seoAccordion__summary{cursor:pointer;list-style:none;padding:14px 16px;font-weight:900}
.seoAccordion__summary::-webkit-details-marker{display:none}
.seoAccordion__body{padding:0 16px 16px 16px;color:var(--muted);font-size:14px;line-height:1.6}
.seoAccordion__body .seoIntro, .seoAccordion__body .seo-text{margin:0}
.seoAccordion__body p{margin:10px 0 0 0}


/* === SEO internal nav (generator output) === */
#seo-nav{margin:32px auto;max-width:1100px;padding:16px;border-top:1px solid #eee;font-size:14px}
#seo-nav > div:first-child{font-weight:700;margin-bottom:8px}
#seo-nav div{line-height:1.35}
#seo-nav ul{columns:2;-webkit-columns:2;-moz-columns:2;margin:10px 0 14px;padding-left:22px}
#seo-nav li{break-inside:avoid;margin:0 0 4px}
#seo-nav a{text-decoration:underline;text-underline-offset:2px}
@media (max-width:700px){#seo-nav ul{columns:1;-webkit-columns:1;-moz-columns:1}}

.profileCardText{margin-top:10px;color:var(--text);line-height:1.45}


/* --- v27 fixes: updated-date spacing + sidebar order --- */
.profileExtras{margin-top:22px;}
.profileUpdated{margin-top:10px;}
.profileParams{margin-bottom:12px;}
.profileRight .profileReviews{margin:0 0 14px;}
.profileRight .profileMap{margin:14px 0 0;}

/* --- v28 profile layout: warn under photo + wide two-column blocks --- */
.galleryUnder{padding:12px;background:#0b0b0b;border-top:1px solid rgba(255,255,255,.08)}
.galleryUnder .warn{margin:0}

.profileWide{margin-top:18px}
.profileTwoCols{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:stretch}
@media (max-width: 980px){.profileTwoCols{grid-template-columns:1fr}}
.profileCol{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:14px;box-shadow:var(--shadow)}
.profileCol .sectionTitle{margin-top:0}
.profileCol .profileMeta{margin-top:0}
.profileCol .profileParams{margin:0}
.profileCol .profileParams h2{margin:0 0 10px;font-size:18px}
.profileCol .profileParams dl{margin-top:0}

.layout.layout--full{grid-template-columns:1fr}
.filtersTopRight{margin-left:auto;display:flex;align-items:center;gap:10px}
.filtersTopRight .sidebtn{margin-top:0;padding:10px 12px}
.filtersTopRight .sidebtn + .sidebtn{margin-top:0}
@media (max-width: 980px){.filtersTopRight{width:100%;justify-content:flex-end}}


/* v8.1 spacing tweaks */
.profileCard + .profileCard{margin-top:16px}
.profileCard + .profileReviews{margin-top:26px}
.h1.h1--spaced{margin:0 0 14px}


/* v9: scroll-to-top button (only appears on big listings) */
.toTopBtn{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--brand2);
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 18px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  z-index: 999;
}
.toTopBtn:hover{transform: translateY(-1px); background: var(--brand2)}

/* v9: SEO category blocks (Другие услуги / Другие национальности / Районы города) in 3 columns */
.seoLinksRow{margin-top:18px}
.seoLinksRow__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.seoLinksCol{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  padding: 14px;
}
.seoLinksCol .seoLinks__title{margin:0 0 10px}
.seoLinksCol .seoLinks__list{margin:0; padding-left:18px}
@media (max-width: 980px){
  .seoLinksRow__grid{grid-template-columns:1fr}
}


/* Scroll-to-top button */
.scrollTopBtn{position:fixed;right:18px;bottom:18px;width:46px;height:46px;border-radius:14px;border:1px solid var(--brand2);background:var(--brand);color:#fff;display:grid;place-items:center;box-shadow:var(--shadow);cursor:pointer;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .15s ease, transform .15s ease;z-index:80}
.scrollTopBtn:hover{background:var(--brand2)}
.scrollTopBtn.is-visible{opacity:1;pointer-events:auto;transform:translateY(0)}
@media (max-width:480px){.scrollTopBtn{right:12px;bottom:12px}}


/* --- Rating stars (profile) --- */
.profileRating{margin-top:18px;padding-top:14px;border-top:1px solid var(--border)}
.stars{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.stars button{width:34px;height:34px;border-radius:10px;border:1px solid var(--border);background:#fff;cursor:pointer;line-height:1;font-size:18px;display:grid;place-items:center}
.stars button:hover{border-color:rgba(225,29,46,.45)}
.stars button.is-on{background:rgba(225,29,46,.10);border-color:rgba(225,29,46,.45)}
.stars button:focus-visible{outline:2px solid rgba(225,29,46,.55);outline-offset:2px}
.ratingThanks{margin-top:8px}


/* Empty state (injected by app.js when filters return 0 results) */
.empty{display:none;padding:18px;margin:18px 0;border:1px dashed var(--border);border-radius:16px;text-align:center;background:#fafafa;color:#666}
.empty b{display:block;margin-bottom:6px;color:#111}


/* profile: back button row */
.profileNavRow{margin:10px 0 14px;display:flex;gap:10px;flex-wrap:wrap}

/* ==============================
   v111 UI tweaks
   1) Profile crumbs + back button on one row
   2) Card preview: район + телефон на одной строке
   ============================== */

/* 1) Profile: breadcrumbs + back button in one horizontal bar */
.crumbbar{display:flex;align-items:stretch;gap:10px;margin:12px 0 10px}
.crumbbar .breadcrumbs{flex:1 1 auto;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
.crumbbar .profileNavRow{flex:0 0 auto;display:flex;margin:0}
.crumbbar .profileNavRow .btn{display:flex;align-items:center;justify-content:center;font-size:12px;padding:10px 12px;border-radius:14px;white-space:nowrap;height:100%}

@media (max-width:520px){
  .crumbbar{flex-wrap:wrap}
  .crumbbar .profileNavRow{width:100%}
  .crumbbar .profileNavRow .btn{width:100%;height:100%}
}

/* 2) Listing cards: keep district + phone on the same row */
.card__row--placephone{justify-content:flex-start}


/* Utility classes injected by prelaunch hardening */
.u-pt-18{padding-top:18px}
.u-mt-14{margin-top:14px}
.u-404-wrap{max-width:860px;margin:0 auto}
.u-404-code{font-weight:900;letter-spacing:.5px;font-size:48px;line-height:1}
.u-404-desc{margin:10px 0 0}
.u-404-tg{margin-top:16px}


/* --- Viewport/scroll fixes (pre-prod QA) -----------------------------------
   Avoid 100vh issues on iOS Safari with dynamic address bar by using --app-vh
   (set in assets/js/app.*.js). */
.mobileDrawer{height:calc(var(--app-vh, 1vh) * 100)}
@media (min-width: 981px){
  .filtersDrawer{max-height:calc(var(--app-vh, 1vh) * 100 - 140px)}
}
.picksDrawer{max-height:calc(var(--app-vh, 1vh) * 100 - 120px)}
@media (max-width: 980px){
  .picksDrawer{max-height:calc(var(--app-vh, 1vh) * 100 - 24px)}
}

/* --- Accessibility + conversion hardening (v200) ------------------------- */

/* 2) Focus styles for keyboard users (WCAG 2.4.7) */
:where(a, button, input, select, textarea, summary, [role="button"], [tabindex]):focus-visible{
  outline:2px solid rgba(225,29,46,.55);
  outline-offset:2px;
}
/* Some controls previously removed outlines; restore for :focus-visible */
:where(.filtersBar select, .filtersBar input, .btn, .iconbtn, .iconBtn):focus-visible{
  outline:2px solid rgba(225,29,46,.55);
  outline-offset:2px;
}

/* 5) Profile: phone CTA must be the primary action */
.profileContact .phoneBtn{
  background:var(--brand);
  border-color:var(--brand);
  color:#fff;
}
.profileContact .phoneBtn:hover{
  background:var(--brand2);
  border-color:var(--brand2);
}

/* 9) Disabled/reset button state */
.btn:disabled, .btn.is-disabled{
  opacity:.5;
  cursor:not-allowed;
}
.btn:disabled{pointer-events:none}

/* 10) Active nav highlight (desktop + mobile drawer) */
.nav a.is-active{background:rgba(225,29,46,.08);border-color:rgba(225,29,46,.28);color:var(--brand)}
.mobileDrawer__nav a.is-active{background:rgba(225,29,46,.08);border-color:rgba(225,29,46,.28);color:var(--brand);font-weight:800}

/* 6) Sticky contact bar (mobile profile) */
.stickyContactBar{display:none}
@media (max-width: 980px){
  .stickyContactBar{
    display:flex;
    position:fixed;
    left:12px;
    right:12px;
    bottom:12px;
    z-index:60;
    gap:10px;
    align-items:center;
    padding:10px;
    border:1px solid rgba(0,0,0,.10);
    background:rgba(255,255,255,.98);
    backdrop-filter:saturate(1.2) blur(6px);
    border-radius:16px;
    box-shadow:0 8px 28px rgba(0,0,0,.12);
  }
  .stickyContactBar .phoneBtn{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  body.hasStickyContact main{padding-bottom:130px}
}
