/* Vitrine is a browsable service storefront. It keeps the catalog as the visual center. */
.public-template-vitrine {
  --vt-width: 1160px;
  background: var(--bg);
  color: var(--text);
}
.vt-skip { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 16px; transform: translateY(-160%); border-radius: 8px; background: var(--surface); color: var(--text); }
.vt-skip:focus { transform: translateY(0); }
.vt-header { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: minmax(150px,1fr) auto auto auto; gap: 20px; min-height: 76px; padding: 10px max(22px,calc((100vw - var(--vt-width)) / 2)); border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 96%,transparent); color: var(--text); backdrop-filter: blur(14px); }
.vt-brand { min-width: 0; font-size: 1rem; }
.vt-brand .public-site-logo { max-width: min(220px,40vw); height: 46px; }
.vt-brand:not(:has(.public-site-logo)) { font-size: clamp(1rem,2vw,1.2rem); font-weight: 780; letter-spacing: -.025em; }
.vt-location-short { align-self: center; color: var(--muted); font-size: .84rem; }
.vt-location-short span { color: var(--accent); }
.vt-menu { justify-self: end; gap: 18px; }
.vt-menu a { color: var(--muted); }
.vt-menu a:hover,.vt-menu a:focus-visible { color: var(--accent); }
.vt-header-cta { min-width: 110px; min-height: 44px; padding: 0 18px; border-radius: 9px; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.vt-main { width: min(calc(100% - 44px),var(--vt-width)); margin: auto; padding: 28px 0 52px; }
.vt-intro { display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,32%); align-items: center; gap: clamp(26px,6vw,78px); padding: 12px 0 34px; }
.vt-intro-copy { min-width: 0; }
.vt-label { margin: 0 0 8px; color: var(--accent); font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.vt-intro h1 { max-width: 18ch; margin: 0; font-size: clamp(2.1rem,4.4vw,3.6rem); line-height: 1.04; letter-spacing: -.045em; overflow-wrap: anywhere; }
.vt-description { max-width: 58ch; margin: 14px 0 0; color: var(--muted); line-height: 1.6; }
.vt-address { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }
.vt-browse-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; margin-top: 14px; color: var(--accent); font-weight: 700; text-decoration: none; }
.vt-browse-link:hover { color: var(--accent-hover); }
.vt-intro-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; margin: 16px 12px 0 0; padding: 0 20px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-text); font: inherit; font-weight: 760; text-decoration: none; cursor: pointer; }
.vt-intro-cta:hover { background: var(--accent-hover); }
.vt-intro-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.vt-cover { height: 172px; margin: 0; overflow: hidden; border-radius: 14px; background: var(--bg-soft); }
.vt-cover img { width: 100%; height: 100%; object-fit: cover; }
.vt-catalog,.vt-team,.vt-contact,.vt-gallery,.vt-reviews { padding: 32px 0; scroll-margin-top: 90px; }
.vt-team,.vt-contact,.vt-gallery,.vt-reviews { border-top: 1px solid color-mix(in srgb,var(--line) 72%,transparent); }
.vt-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.vt-section-head .vt-label { margin-bottom: 5px; }
.vt-section-head h2 { margin: 0; font-size: clamp(1.45rem,2.6vw,1.9rem); line-height: 1.14; letter-spacing: -.03em; }
.vt-count { color: var(--muted); font-size: .88rem; }
.vt-search-label { display: block; margin: 0 0 6px; font-size: .84rem; font-weight: 650; }
.vt-search-wrap { display: flex; align-items: center; gap: 10px; width: min(100%,520px); min-height: 48px; margin: 0 0 16px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.vt-search-wrap > span { color: var(--muted); font-size: 1.3rem; }
.vt-search-wrap input { flex: 1; width: 100%; min-width: 0; min-height: 44px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.vt-search-wrap:focus-within { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 2px; }
.vt-search-wrap button { min-height: 44px; padding: 0 8px; border: 0; background: transparent; color: var(--accent); font: inherit; font-size: .86rem; font-weight: 700; cursor: pointer; }
.vt-search-wrap button[hidden] { display: none; }
.vt-filter-status { min-height: 0; margin: -8px 0 12px; color: var(--muted); font-size: .85rem; }
.vt-filter-status:empty { display: none; }
.vt-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: stretch; gap: 14px; }
.vt-service-card { display: grid; grid-template-columns: minmax(0,1fr); min-width: 0; min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); transition: border-color 140ms ease,box-shadow 140ms ease; }
.vt-service-card.has-image { grid-template-columns: 96px minmax(0,1fr); }
.vt-service-card:hover { border-color: color-mix(in srgb,var(--accent) 55%,var(--line)); box-shadow: 0 5px 18px rgba(30,38,50,.06); }
.vt-service-card[hidden] { display: none; }
.vt-service-image { width: 96px; height: 100%; min-height: 190px; object-fit: cover; background: var(--bg-soft); }
.vt-service-content { display: flex; flex-direction: column; min-width: 0; padding: 13px 14px 12px; }
.vt-index { color: var(--accent); font-size: .72rem; font-weight: 750; letter-spacing: .08em; }
.vt-service-content h3 { margin: 5px 0 0; font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
.vt-service-content > p { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.55em; margin: 6px 0 12px; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.vt-service-content footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 54px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.vt-service-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; color: var(--muted); font-size: .84rem; }
.vt-service-meta strong { color: var(--text); font-weight: 700; }
.vt-service-content footer button { display: inline-flex; width: auto; min-width: 104px; align-items: center; justify-content: center; gap: 6px; min-height: 44px; flex: 0 0 auto; padding: 0 13px; border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--line)); border-radius: 8px; background: color-mix(in srgb,var(--accent) 7%,var(--surface)); color: var(--accent); font: inherit; font-size: .84rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.vt-service-content footer button .public-service-image { display: none; }
.vt-service-content footer button:hover { border-color: var(--accent); background: color-mix(in srgb,var(--accent) 13%,var(--surface)); }
.vt-empty-search { margin: 0; padding: 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; }
.vt-team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,280px),1fr)); gap: 12px; }
.vt-person { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 86px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; }
.vt-person:hover { border-color: color-mix(in srgb,var(--accent) 55%,var(--line)); }
.vt-person-photo { flex: 0 0 58px; width: 58px !important; height: 58px !important; margin: 0 !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: color-mix(in srgb,var(--accent) 10%,var(--bg-soft)) !important; color: var(--accent) !important; font-size: 1rem !important; }
.vt-person-photo.public-professional-placeholder { font-weight: 750; }
.vt-person-photo img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.vt-person > span:nth-child(2) { display: grid; gap: 4px; min-width: 0; }
.vt-person strong,.vt-person small { overflow-wrap: anywhere; }
.vt-person small { color: var(--muted); line-height: 1.35; }
.vt-person-arrow { margin-left: auto; color: var(--accent); font-size: 1.15rem; }
.vt-contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,210px),1fr)); gap: 16px 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb,var(--bg-soft) 34%,var(--surface)); }
.vt-contact-grid > div { min-width: 0; }
.vt-contact-grid strong { font-size: .9rem; }
.vt-contact-grid p { margin: 5px 0 0; color: var(--muted); line-height: 1.5; }
.vt-contact-links { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.vt-contact-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--accent); font-weight: 700; text-decoration: none; }
.vt-gallery-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.vt-gallery-grid button { min-width: 0; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-soft); cursor: zoom-in; }
.vt-gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.vt-review-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 10px; }
.vt-review-grid article { padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.vt-review-grid article > p { margin: 0; color: var(--accent); letter-spacing: .08em; }
.vt-review-grid blockquote { margin: 8px 0; line-height: 1.55; }
.vt-review-grid footer { color: var(--muted); font-size: .9rem; }
.vt-unavailable { margin: 20px 0; padding: 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.vt-footer { width: min(calc(100% - 44px),var(--vt-width)); grid-template-columns: minmax(0,1fr) auto; gap: 8px 18px; padding: 24px 0 30px; }
.vt-footer strong { color: var(--text); }
.vt-footer .public-site-logo { max-width: min(220px,48vw); height: 42px; }
.vt-footer > span { grid-column: 1; color: var(--muted); }
.vt-footer small { grid-column: 2; grid-row: 1 / span 2; }
.vt-mobile-cta { display: none; }
.public-template-vitrine :is(button,a):focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body:has(.public-template-vitrine) .public-chat-launcher { display: flex; width: auto; min-width: 56px; height: 48px; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 15px; border-radius: 999px; box-shadow: 0 6px 18px rgba(18,25,33,.22); }
body:has(.public-template-vitrine) .public-chat-launcher::after { content: "Chat"; font: inherit; font-size: .88rem; font-weight: 750; }
body:has(.public-template-vitrine) .public-chat-launcher:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

@media (max-width: 760px) {
  .vt-header { grid-template-columns: minmax(0,1fr) auto auto; gap: 8px; min-height: 68px; padding: 8px 15px; }
  .vt-brand .public-site-logo { max-width: min(180px,42vw); height: 40px; }
  .vt-location-short { display: none; }
  .vt-header .public-menu-toggle { min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); }
  .vt-header.menu-open { background: var(--surface); }
  .vt-header.menu-open .public-menu { position: absolute; top: calc(100% + 1px); right: 0; left: 0; display: grid; gap: 0; padding: 6px 15px 10px; border-bottom: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 22px rgba(0,0,0,.08); }
  .vt-header.menu-open .public-menu a { min-height: 48px; border-bottom: 1px solid var(--line); color: var(--text); }
  .vt-header.menu-open .public-menu a:last-child { border: 0; }
  .vt-header .vt-header-cta { display: none; }
  .vt-main { width: calc(100% - 30px); padding: 18px 0 100px; }
  .vt-intro { grid-template-columns: 1fr; gap: 14px; padding: 3px 0 22px; }
  .vt-intro h1 { font-size: clamp(2rem,8vw,2.6rem); }
  .vt-description { margin-top: 9px; }
  .vt-intro-cta { min-height: 48px; margin-top: 12px; }
  .vt-cover { height: 150px; border-radius: 11px; }
  .vt-catalog,.vt-team,.vt-contact,.vt-gallery,.vt-reviews { padding: 24px 0; scroll-margin-top: 78px; }
  .vt-section-head { margin-bottom: 12px; }
  .vt-service-grid { grid-template-columns: 1fr; gap: 9px; }
  .vt-service-card { min-height: 174px; border-radius: 11px; }
  .vt-service-card.has-image { grid-template-columns: 76px minmax(0,1fr); }
  .vt-service-image { width: 76px; min-height: 174px; }
  .vt-service-content { padding: 10px 11px; }
  .vt-service-content h3 { font-size: .98rem; }
  .vt-service-content > p { min-height: 2.45em; margin: 4px 0 8px; font-size: .83rem; }
  .vt-service-content footer { gap: 6px; padding-top: 7px; }
  .vt-service-content footer button { min-width: 96px; min-height: 44px; }
  .vt-team-grid { grid-template-columns: 1fr; gap: 9px; }
  .vt-person { min-height: 78px; }
  .vt-contact-grid { grid-template-columns: 1fr; gap: 12px; padding: 13px; }
  .vt-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .vt-gallery-grid button { aspect-ratio: 4 / 3; }
  .vt-review-grid { grid-template-columns: 1fr; }
  .vt-footer { width: calc(100% - 30px); padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .vt-footer .public-site-logo { max-width: min(200px,62vw); height: 40px; }
  .vt-mobile-cta { position: fixed; right: 88px; bottom: calc(14px + env(safe-area-inset-bottom)); left: 15px; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 50px; max-width: 480px; margin-inline: auto; box-shadow: 0 8px 24px rgba(0,0,0,.16); }
  body:has(.public-template-vitrine) .public-chat { right: 14px; bottom: calc(15px + env(safe-area-inset-bottom)); }
  body:has(.public-template-vitrine) .public-chat-launcher { height: 50px; min-height: 50px; padding-inline: 13px; }
}

@media (max-width: 380px) {
  .vt-header { grid-template-columns: minmax(0,1fr) auto; }
  .vt-header .vt-menu-toggle { justify-self: end; }
  .vt-brand .public-site-logo { max-width: 42vw; height: 36px; }
  .vt-person { gap: 10px; padding-inline: 10px; }
  .vt-person-photo { flex-basis: 50px; width: 50px !important; height: 50px !important; }
  .vt-service-card.has-image { grid-template-columns: 64px minmax(0,1fr); }
  .vt-service-image { width: 64px; }
  .vt-service-content { padding-inline: 9px; }
  .vt-service-content footer { align-items: flex-end; }
  .vt-service-meta { flex-direction: column; gap: 2px; }
  .vt-service-content footer button { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-service-card { transition: none; }
}
