/* ============================================================
   Solène Medical — brand layer (header, footer, booking popup,
   sl_* front-page sections). Ported from the approved prototype;
   every class is prefixed `sl-` so it cannot collide with main.css.
   ============================================================ */

:root {
    --sl-bg: #FFFFFF;
    --sl-ivory: #FAF6EF;
    --sl-sand: #EFE6D8;
    --sl-ink: #2B1F17;
    --sl-ink-soft: #6F6157;
    --sl-brown: #3A2A1F;
    --sl-brown-hi: #52402F;
    --sl-gold-text: #8A6206;
    --sl-gold-deep: #AC7A05;
    --sl-gold: #CB9C12;
    --sl-gold-soft: #DCB74D;
    --sl-gold-light: #F1E364;
    --sl-gold-grad: linear-gradient(120deg, #AC7A05 0%, #DCB74D 60%, #F1E364 100%);
    --sl-gold-ink-grad: linear-gradient(120deg, #9C6F05 0%, #C2930F 100%);
    --sl-on-dark: #F6EFE3;
    --sl-on-dark-soft: #CDBFAE;
    --sl-error: #A3361F;
    --sl-font: 'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --sl-wrap: 1240px;
    --sl-r: 14px;
    --sl-header-h: 76px;
}

html { scroll-padding-top: calc(var(--sl-header-h) + 12px); }

/* Legacy pages offset their content by --header-h (+ --banner-h) because the
   old header was fixed; the Solène header is fixed the same way, so the
   legacy token is pinned to its real height. */
:root { --header-h: var(--sl-header-h); }

.promo-banner { background: var(--sl-ink); color: var(--sl-on-dark); font-family: var(--sl-font); }
.promo-banner a { color: var(--sl-gold-light); }

.sl-scope, .sl-header, .sl-footer, .sl-booking, .sl-float, [class^="sl-section"] {
    font-family: var(--sl-font);
    color: var(--sl-ink);
    -webkit-font-smoothing: antialiased;
}
.sl-section h1, .sl-section h2, .sl-section h3,
.sl-booking h2 { margin: 0; text-wrap: balance; font-weight: 600; font-family: var(--sl-font); }
.sl-section p, .sl-booking p { margin: 0; }
.sl-section img { max-width: 100%; display: block; }
.sl-i { flex: none; }

.sl-wrap {
    max-width: calc(var(--sl-wrap) + 80px);
    margin-inline: auto;
    padding-left: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
}
.sl-band { padding-block: clamp(64px, 8vw, 112px); background: var(--sl-bg); }
.sl-band--ivory { background: var(--sl-ivory); }

.sl-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--sl-gold-text); line-height: 1.2;
}
.sl-eyebrow::before { content: "✦"; font-size: 13px; letter-spacing: 0; color: var(--sl-gold); }
.sl-eyebrow--light { color: rgba(255, 255, 255, .86); }
.sl-eyebrow--light::before { color: var(--sl-gold-light); }
.sl-h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.15; letter-spacing: -.015em; color: var(--sl-ink); }
.sl-nowrap { white-space: nowrap; }
.sl-gold-light { background: linear-gradient(120deg, #DCB74D 0%, #F1E364 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Buttons */
.sl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 54px; padding: 0 28px; border-radius: 999px;
    font: 600 15px/1 var(--sl-font); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
    border: 1px solid transparent; cursor: pointer;
    transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, color .3s ease;
}
.sl-btn--primary { background: var(--sl-brown); color: #fff; }
.sl-btn--primary:hover { background: var(--sl-brown-hi); color: #fff; box-shadow: 0 0 0 3px rgba(220, 183, 77, .55); }
.sl-btn--ghost { background: transparent; color: var(--sl-brown); border-color: rgba(58, 42, 31, .32); }
.sl-btn--ghost:hover { color: var(--sl-brown); border-color: var(--sl-gold-deep); box-shadow: 0 0 0 3px rgba(220, 183, 77, .25); }
/* border-box origin: otherwise the gradient restarts under the transparent 1px border and a light sliver shows at the left edge */
.sl-btn--gold { background: var(--sl-gold-grad) border-box; color: var(--sl-ink); }
.sl-btn--gold:hover { color: var(--sl-ink); box-shadow: 0 0 0 3px rgba(241, 227, 100, .35), 0 12px 30px rgba(172, 122, 5, .35); }
.sl-btn--glass { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sl-btn--glass:hover { color: #fff; border-color: var(--sl-gold-light); box-shadow: 0 0 0 3px rgba(241, 227, 100, .2); }
.sl-btn--sm { height: 44px; padding: 0 20px; font-size: 14px; }
.sl-btn--block { width: 100%; }
.sl-btn[disabled] { opacity: .6; cursor: progress; }
.sl-scope :focus-visible, .sl-header :focus-visible, .sl-footer :focus-visible, .sl-booking :focus-visible,
.sl-section :focus-visible, .sl-float :focus-visible { outline: 2px solid var(--sl-gold-deep); outline-offset: 3px; }

/* ── Header ─────────────────────────────────────────────── */
.sl-header {
    position: fixed; top: var(--banner-h, 0px); left: 0; right: 0; z-index: 1000;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(250, 246, 239, .95); border-bottom: 1px solid var(--sl-sand);
    backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
    transition: background-color .35s ease, border-color .35s ease;
}
.sl-front .sl-header:not(.is-solid) { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.sl-header__in { display: flex; align-items: center; gap: 32px; height: var(--sl-header-h); }
.sl-header__logo { display: block; line-height: 0; }
.sl-header__logo img { height: 44px; width: auto; }
.sl-nav { display: flex; gap: 22px; margin-left: auto; }
.sl-nav a { position: relative; text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--sl-ink); padding-block: 6px; transition: color .3s ease; }
/* Underline swipes in from the left on hover and leaves to the right on hover-out:
   the transform origin flips between the two states. */
.sl-nav a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
    background: var(--sl-gold-soft);
    transform: scaleX(0); transform-origin: right center;
    transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.sl-nav a:hover, .sl-nav a:focus-visible { color: var(--sl-ink); }
.sl-nav a { white-space: nowrap; }
/* The menu + phone + CTA do not fit between 1025 and 1240px: drop the phone block
   there (it stays in the hero, contacts, footer and the mobile drawer). */
@media (max-width: 1240px) { .sl-header .sl-header__phone { display: none; } }
.sl-nav a:hover::after, .sl-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
/* The page being viewed keeps its underline. */
.sl-nav a[aria-current="page"] { color: var(--sl-brown); }
.sl-nav a[aria-current="page"]::after { transform: scaleX(1); }
.sl-drawer__links a[aria-current="page"] { color: var(--sl-brown); font-weight: 600; }
/* Dropdown: opens on hover or keyboard focus, and on click/tap of the toggle (solene.js). */
.sl-nav { align-items: center; }
.sl-nav__item { position: relative; display: flex; align-items: center; gap: 2px; }
.sl-nav__toggle { display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; border: 0; background: none; font: 500 14.5px var(--sl-font); color: var(--sl-ink); cursor: pointer; white-space: nowrap; transition: color .3s ease; }
.sl-nav__toggle--icon { padding: 6px 2px; }
.sl-nav__toggle .sl-i { transition: transform .3s ease; }
.sl-nav__item.is-open .sl-nav__toggle .sl-i, .sl-nav__item:hover .sl-nav__toggle .sl-i { transform: rotate(180deg); }
.sl-nav__item.is-current > .sl-nav__toggle, .sl-nav__item.is-current > a { color: var(--sl-brown); }
.sl-nav__sub {
    position: absolute; top: calc(100% + 14px); left: 50%; z-index: 20; min-width: 340px;
    display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: #fff;
    border: 1px solid var(--sl-sand); box-shadow: 0 24px 50px rgba(43, 31, 23, .14);
    opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s .3s;
}
/* Invisible bridge over the gap so the pointer can travel from the trigger to the panel. */
.sl-nav__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.sl-nav__item:hover .sl-nav__sub, .sl-nav__item:focus-within .sl-nav__sub, .sl-nav__item.is-open .sl-nav__sub {
    opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .25s ease, transform .3s cubic-bezier(.2, .7, .2, 1), visibility 0s;
}
.sl-nav__item.is-closed .sl-nav__sub { opacity: 0; visibility: hidden; }
/* Sub-items: on hover the row warms up, a gold bar grows on the left, the title turns
   gold and an arrow slides in. The panel is always white, also over the transparent
   homepage header, so its colours are pinned for that state too. */
.sl-nav .sl-nav__sub a { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; row-gap: 2px; align-items: center; padding: 12px 16px 12px 18px; border-radius: 12px; color: var(--sl-ink); white-space: normal; transition: background-color .3s ease; }
.sl-nav .sl-nav__sub a::after { display: none; }
.sl-nav .sl-nav__sub a::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 2px; border-radius: 2px; background: var(--sl-gold-grad); transform: scaleY(0); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.sl-nav .sl-nav__sub a b { grid-column: 1; font-size: 15px; font-weight: 600; color: var(--sl-ink); transition: color .3s ease; }
.sl-nav .sl-nav__sub a span { grid-column: 1; font-size: 13px; font-weight: 400; color: var(--sl-ink-soft); }
.sl-nav__go { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .7, .2, 1); }
.sl-header .sl-nav .sl-nav__sub a:hover, .sl-header .sl-nav .sl-nav__sub a:focus-visible,
.sl-front .sl-header:not(.is-solid) .sl-nav .sl-nav__sub a:hover { background: var(--sl-ivory); color: var(--sl-ink); }
.sl-nav .sl-nav__sub a:hover::before, .sl-nav .sl-nav__sub a:focus-visible::before { transform: scaleY(1); }
.sl-nav .sl-nav__sub a:hover b, .sl-nav .sl-nav__sub a:focus-visible b, .sl-nav .sl-nav__sub a[aria-current="page"] b { color: var(--sl-gold-text); }
.sl-nav .sl-nav__sub a:hover .sl-nav__go, .sl-nav .sl-nav__sub a:focus-visible .sl-nav__go { opacity: 1; transform: none; }
.sl-nav .sl-nav__sub a[aria-current="page"]::before { transform: scaleY(1); }
.sl-front .sl-header:not(.is-solid) .sl-nav__toggle { color: #fff; }
.sl-front .sl-header:not(.is-solid) .sl-nav .sl-nav__sub a { color: var(--sl-ink); }
.sl-header__phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.25; color: var(--sl-ink); }
.sl-header__phone b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .3s ease; }
.sl-header__phone span { font-size: 12px; color: var(--sl-ink-soft); transition: color .3s ease; white-space: nowrap; }
.sl-icon-btn {
    display: none; width: 44px; height: 44px; border-radius: 50%;
    align-items: center; justify-content: center; padding: 0;
    border: 1px solid rgba(58, 42, 31, .2); background: transparent; color: var(--sl-brown); cursor: pointer; text-decoration: none;
    transition: color .3s ease, border-color .3s ease;
}
.sl-front .sl-header:not(.is-solid) .sl-nav a,
.sl-front .sl-header:not(.is-solid) .sl-header__phone b,
.sl-front .sl-header:not(.is-solid) .sl-icon-btn { color: #fff; }
.sl-front .sl-header:not(.is-solid) .sl-nav a:hover { color: #fff; }
.sl-front .sl-header:not(.is-solid) .sl-nav a::after { background: var(--sl-gold-light); }
.sl-front .sl-header:not(.is-solid) .sl-header__phone span { color: rgba(255, 255, 255, .75); }
.sl-front .sl-header:not(.is-solid) .sl-icon-btn { border-color: rgba(255, 255, 255, .45); }
.sl-front .sl-header:not(.is-solid) .sl-header__cta { background: var(--sl-gold-grad); color: var(--sl-ink); }

/* The menu stops fitting next to the logo and CTA below 1025px: it moves into the
   off-canvas drawer there; phones also drop the CTA and shrink the header. */
@media (max-width: 1024px) {
    .sl-header__logo { margin-right: auto; }
    .sl-nav, .sl-header__phone { display: none; }
    .sl-icon-btn { display: inline-flex; }
}
@media (max-width: 960px) {
    :root { --sl-header-h: 64px; }
    .sl-header__in { gap: 10px; }
    .sl-header__logo img { height: 34px; }
    .sl-header__cta { display: none; }
}

/* ── Off-canvas menu (≤1024px) ──────────────────────────── */
.sl-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1100;
    width: min(78vw, 380px);
    display: flex; flex-direction: column; gap: 28px;
    padding: calc(16px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 24px;
    background: var(--sl-ivory); color: var(--sl-ink); font-family: var(--sl-font);
    box-shadow: -24px 0 60px rgba(43, 31, 23, .18);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .45s;
}
.sl-drawer.is-open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.sl-drawer__overlay {
    position: fixed; inset: 0; z-index: 1090;
    background: rgba(43, 31, 23, .5); backdrop-filter: blur(2px);
    opacity: 0; transition: opacity .35s ease;
}
.sl-drawer__overlay.is-open { opacity: 1; }
.sl-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sl-drawer__head img { height: 32px; width: auto; }
.sl-drawer__close {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; padding: 0; flex: none;
    border: 1px solid rgba(58, 42, 31, .2); background: transparent; color: var(--sl-brown); cursor: pointer;
}
.sl-drawer__links { display: grid; }
.sl-drawer__group { display: grid; padding: 12px 0 8px; border-bottom: 1px solid var(--sl-sand); }
.sl-drawer__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sl-gold-text); padding: 4px 0; }
.sl-drawer__links .sl-drawer__group > a { border-bottom: 0; }
.sl-drawer__links a.sl-drawer__sub { position: relative; padding: 10px 0 10px 20px; font-size: 18px; border-bottom: 0; }
.sl-drawer__links a.sl-drawer__sub::before { content: "✦"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 10px; color: var(--sl-gold); }
.sl-drawer__links a {
    text-decoration: none; color: var(--sl-ink); font-size: 20px; font-weight: 500;
    padding: 16px 0; border-bottom: 1px solid var(--sl-sand);
}
.sl-drawer__foot { margin-top: auto; display: grid; gap: 10px; }
.sl-drawer__phone { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sl-ink); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sl-drawer__phone .sl-i { color: var(--sl-gold-deep); }
.sl-drawer__hours { font-size: 13px; color: var(--sl-ink-soft); margin-bottom: 8px; }
body.sl-menu-open { overflow: hidden; }
@media (min-width: 1025px) { .sl-drawer, .sl-drawer__overlay { display: none !important; } }

/* ── Hero ───────────────────────────────────────────────── */
.sl-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sl-ink); color: #fff; }
.sl-hero__media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.sl-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sl-hero__shade {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 60% 55% at 50% 52%, rgba(31, 22, 16, .38), rgba(31, 22, 16, 0) 70%),
        linear-gradient(180deg, rgba(31, 22, 16, .66) 0%, rgba(31, 22, 16, .40) 34%, rgba(31, 22, 16, .46) 70%, rgba(31, 22, 16, .74) 100%);
}
.sl-hero__content {
    min-height: clamp(620px, 100svh, 940px);
    display: grid; align-content: center; justify-items: center; gap: 22px; text-align: center;
    padding-block: calc(var(--sl-header-h) + 40px) 150px;
}
.sl-hero__content > * { animation: sl-fromRight .9s cubic-bezier(.2, .7, .2, 1) backwards; }
.sl-hero__content > :nth-child(2) { animation-delay: .12s; }
.sl-hero__content > :nth-child(3) { animation-delay: .26s; }
.sl-hero__content > :nth-child(4) { animation-delay: .4s; }
.sl-hero h1 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.028em; max-width: 18ch; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.sl-hero__claim { font-size: clamp(17px, 1.6vw, 21px); font-weight: 400; color: rgba(255, 255, 255, .9); max-width: 38ch; line-height: 1.5; }
.sl-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; }
.sl-hero__phone-num { font-variant-numeric: tabular-nums; }
.sl-hero__down {
    position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%);
    width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
    border: 1px solid rgba(255, 255, 255, .6); color: #fff; animation: sl-bob 2.6s ease-in-out infinite;
}
.sl-hero__down:hover { border-color: var(--sl-gold-light); color: var(--sl-gold-light); }
/* Starts at 0.01, not 0: Chrome skips fully transparent text as an LCP candidate, so the headline would only count once the animation ends. */
@keyframes sl-fromRight { from { opacity: .01; transform: translateX(56px); } }
@keyframes sl-bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }

.sl-perks-wrap { position: relative; z-index: 3; margin-top: -72px; background: linear-gradient(to bottom, transparent 0 72px, var(--sl-ivory) 72px); }
.sl-perks {
    list-style: none; margin: 0 auto; padding: 26px clamp(20px, 3vw, 36px); max-width: 1120px;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px;
    background: var(--sl-bg); border-radius: var(--sl-r); box-shadow: 0 24px 60px rgba(43, 31, 23, .13);
}
.sl-perks li { display: flex; align-items: center; gap: 14px; min-width: 0; margin: 0; }
.sl-perks__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sl-ivory); color: var(--sl-gold-deep); border: 1px solid var(--sl-sand); }
.sl-perks__text b { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--sl-ink); }
.sl-perks__text span { display: block; font-size: 13px; color: var(--sl-ink-soft); line-height: 1.4; }
.sl-hero + .sl-perks-wrap + .sl-directions, .sl-perks-wrap + .sl-directions { padding-top: clamp(56px, 6vw, 88px); }

@media (max-width: 960px) { .sl-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
    .sl-hero__down { display: none; }
    .sl-hero__content { padding-bottom: 120px; }
}
@media (max-width: 560px) { .sl-hero__actions .sl-btn { flex: 1 1 100%; } }
@media (max-width: 440px) { .sl-perks { grid-template-columns: minmax(0, 1fr); gap: 16px; } }

/* ── Section heads ──────────────────────────────────────── */
.sl-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 40px; align-items: end; margin-bottom: clamp(32px, 4vw, 52px); }
.sl-head__text { display: grid; gap: 16px; min-width: 0; justify-items: start; }
.sl-head__hint { font-size: 14px; color: var(--sl-ink-soft); display: flex; align-items: center; gap: 10px; margin: 0; }
.sl-head__hint .sl-touch { display: none; }
@media (hover: none) { .sl-head__hint .sl-mouse { display: none; } .sl-head__hint .sl-touch { display: inline; } }
@media (max-width: 760px) { .sl-head { grid-template-columns: minmax(0, 1fr); } }

/* ── Direction cards ────────────────────────────────────── */
.sl-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.sl-card {
    position: relative; overflow: hidden; isolation: isolate;
    aspect-ratio: 4 / 5; max-width: 100%;
    border-radius: var(--sl-r); background: var(--sl-sand); cursor: pointer;
}
.sl-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.sl-card::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(43, 31, 23, .80) 0%, rgba(43, 31, 23, .28) 34%, rgba(43, 31, 23, 0) 58%);
}
.sl-card__label { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: #fff; transition: opacity .3s ease; }
.sl-card__title { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.005em; color: #fff; line-height: 1.25; }
.sl-card__plus {
    position: absolute; z-index: 3; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
    display: grid; place-items: center;
    background: rgba(250, 246, 239, .92); color: var(--sl-brown);
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), background-color .3s ease;
}
.sl-card__panel {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; max-height: 100%; overflow: auto;
    display: grid; gap: 12px; align-content: start;
    padding: 24px 22px 22px;
    background: rgba(250, 246, 239, .97);
    transform: translateY(101%);
    transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.sl-card__panel h3 { font-size: 19px; color: var(--sl-ink); line-height: 1.25; }
.sl-card__rule { width: 36px; height: 1px; background: var(--sl-gold-grad); }
.sl-card__panel p { font-size: 14.5px; line-height: 1.55; color: var(--sl-ink-soft); }
.sl-card__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 4px; }
.sl-card__more {
    display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
    font: 500 14.5px/1.2 var(--sl-font); color: var(--sl-ink-soft); text-decoration: none;
    border-bottom: 1px solid var(--sl-sand); transition: color .3s ease, border-color .3s ease;
}
.sl-card__more:hover { color: var(--sl-brown); border-color: var(--sl-gold-soft); }
.sl-card__book {
    justify-self: start;
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 0; border-radius: 0; padding: 4px 0; cursor: pointer;
    font: 600 14.5px/1.2 var(--sl-font); color: var(--sl-brown);
    border-bottom: 1px solid var(--sl-gold-soft);
}
.sl-card__book .sl-i { transition: transform .3s ease; }
.sl-card__book:hover .sl-i { transform: translateX(4px); }

.sl-card.is-open .sl-card__panel, .sl-card:focus-visible .sl-card__panel, .sl-card:has(:focus-visible) .sl-card__panel { transform: none; }
.sl-card.is-open .sl-card__label, .sl-card:focus-visible .sl-card__label, .sl-card:has(:focus-visible) .sl-card__label { opacity: 0; }
.sl-card.is-open .sl-card__plus { transform: rotate(45deg); }
@media (hover: hover) {
    .sl-card:hover .sl-card__panel { transform: none; }
    .sl-card:hover .sl-card__label { opacity: 0; }
    .sl-card:hover img { transform: scale(1.05); }
    .sl-card:hover .sl-card__plus { transform: rotate(45deg); }
}
/* A card left alone in the last row stretches into a wide banner instead of leaving a gap. */
@media (min-width: 1101px) { .sl-cards > .sl-card:last-child:nth-child(4n+1) { grid-column: 1 / -1; aspect-ratio: 1240 / 370; } .sl-cards > .sl-card:last-child:nth-child(4n+1) img { object-position: 50% 30%; } }
@media (max-width: 1100px) { .sl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 601px) and (max-width: 1100px) { .sl-cards > .sl-card:last-child:nth-child(2n+1) { grid-column: 1 / -1; aspect-ratio: 2 / 1; } }
@media (max-width: 600px) {
    .sl-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .sl-card { aspect-ratio: 5 / 4; }
}

/* ── About ──────────────────────────────────────────────── */
.sl-about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.sl-about__text { display: grid; gap: 22px; min-width: 0; justify-items: start; }
.sl-about__body { display: grid; gap: 22px; }
.sl-about__body p { color: var(--sl-ink-soft); font-size: 17px; line-height: 1.65; max-width: 58ch; }
.sl-chips { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sl-chips li { margin: 0; padding: 8px 15px; border: 1px solid var(--sl-sand); border-radius: 999px; background: var(--sl-ivory); font-size: 14px; font-weight: 500; }
.sl-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; }
.sl-stat { border-top: 1px solid var(--sl-sand); padding-top: 20px; position: relative; }
.sl-stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 1px; background: var(--sl-gold-grad); }
.sl-stat b {
    display: block; font-size: clamp(44px, 5vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -.03em;
    background: var(--sl-gold-ink-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
    font-variant-numeric: tabular-nums;
}
.sl-stat span { display: block; margin-top: 12px; font-size: 15px; color: var(--sl-ink-soft); line-height: 1.45; max-width: 24ch; }
@media (max-width: 860px) { .sl-about { grid-template-columns: minmax(0, 1fr); } }

/* ── Contacts ───────────────────────────────────────────── */
.sl-contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.sl-contacts__info { display: grid; gap: 22px; align-content: center; min-width: 0; justify-items: start; }
.sl-contacts__rows { display: grid; gap: 14px; margin: 6px 0 4px; }
.sl-row { display: flex; gap: 14px; align-items: flex-start; }
.sl-row .sl-i { color: var(--sl-gold-deep); margin-top: 3px; }
.sl-row b { display: block; font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.sl-row a { text-decoration: none; color: inherit; }
.sl-row span { display: block; font-size: 14px; color: var(--sl-ink-soft); }
.sl-contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sl-contacts__actions .sl-btn { padding-inline: 24px; }
.sl-map { position: relative; min-height: 400px; border-radius: var(--sl-r); overflow: hidden; border: 1px solid var(--sl-sand); background: #F2ECE1; }
.sl-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .sl-contacts { grid-template-columns: minmax(0, 1fr); } .sl-map { min-height: 320px; } }
@media (max-width: 560px) { .sl-contacts__actions .sl-btn { flex: 1 1 100%; } }

/* ── Final CTA ──────────────────────────────────────────── */
.sl-final { text-align: center; display: grid; justify-items: center; gap: 22px; }
.sl-final img { width: 72px; height: 72px; object-fit: contain; }
.sl-final .sl-h2 { max-width: 20ch; }
.sl-final p { color: var(--sl-ink-soft); max-width: 52ch; font-size: 17px; }
.sl-final .sl-btn { margin-top: 6px; height: 58px; padding: 0 36px; font-size: 16px; }
@media (max-width: 560px) { .sl-final .sl-btn { width: 100%; } }

/* ── Footer ─────────────────────────────────────────────── */
.sl-footer { background: var(--sl-ink); color: var(--sl-on-dark); padding-block: 56px 32px; }
.sl-footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px; }
.sl-footer__logo { display: inline-block; line-height: 0; }
.sl-footer__logo img { height: 52px; width: auto; }
.sl-footer p, .sl-footer li { color: var(--sl-on-dark-soft); font-size: 14.5px; margin: 0; }
.sl-footer__heading { margin: 0 0 14px; font-family: var(--sl-font); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--sl-gold-soft); }
.sl-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sl-footer a { text-decoration: none; color: inherit; }
.sl-footer a:hover { color: var(--sl-gold-light); }
.sl-footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(246, 239, 227, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--sl-on-dark-soft); }
.sl-footer__about { display: grid; gap: 16px; align-content: start; }
@media (max-width: 760px) { .sl-footer__grid { grid-template-columns: minmax(0, 1fr); } .sl-front .sl-footer { padding-bottom: 96px; } }

/* ── Floating booking ───────────────────────────────────── */
.sl-float {
    position: fixed; z-index: 40;
    right: calc(24px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateY(160%); opacity: 0; pointer-events: none;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .4s ease;
}
.sl-float.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.sl-float .sl-btn--primary { box-shadow: 0 16px 34px rgba(43, 31, 23, .28), 0 0 0 3px rgba(220, 183, 77, .45); }
.sl-float__call { display: none; }
@media (max-width: 700px) {
    .sl-float {
        left: 0; right: 0; bottom: 0;
        display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px;
        background: rgba(250, 246, 239, .97); border-top: 1px solid var(--sl-sand);
        padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    }
    .sl-float .sl-btn { height: 48px; padding: 0 14px; }
    .sl-float .sl-btn--primary { box-shadow: none; }
    .sl-float__call { display: inline-flex; }
}

/* ── Booking dialog ─────────────────────────────────────── */
dialog.sl-booking {
    /* main.css resets every element's margin to 0, which disables the native
       dialog centring (margin: auto) — restore it explicitly. */
    position: fixed; inset: 0; margin: auto; height: fit-content;
    border: 0; padding: 0; border-radius: 20px; color: var(--sl-ink); background: var(--sl-bg);
    width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
    box-shadow: 0 30px 80px rgba(43, 31, 23, .30);
}
dialog.sl-booking::backdrop { background: rgba(43, 31, 23, .55); backdrop-filter: blur(3px); }
.sl-booking__in { position: relative; padding: 34px 30px 28px; display: grid; gap: 18px; }
.sl-booking__close {
    position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center; border: 0; padding: 0; background: var(--sl-ivory); color: var(--sl-brown); cursor: pointer;
}
.sl-booking h2 { font-size: 26px; letter-spacing: -.01em; padding-right: 40px; color: var(--sl-ink); }
.sl-booking__form { display: grid; gap: 18px; }
/* The display:grid rules above beat the UA [hidden] style; JS toggles `hidden`. */
.sl-booking [hidden] { display: none !important; }
.sl-booking__sub { font-size: 14.5px; color: var(--sl-ink-soft); margin-top: -8px !important; }
.sl-field { display: grid; gap: 7px; }
.sl-field label { font-size: 13px; font-weight: 600; color: var(--sl-ink); }
.sl-field input, .sl-field select {
    width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; margin: 0;
    border: 1px solid var(--sl-sand); background: var(--sl-ivory); color: var(--sl-ink);
    font: 500 15.5px var(--sl-font); transition: border-color .2s ease, box-shadow .2s ease;
}
.sl-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sl-brown) 50%), linear-gradient(135deg, var(--sl-brown) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 16px) 23px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.sl-field input:focus, .sl-field select:focus { outline: none; border-color: var(--sl-gold-deep); box-shadow: 0 0 0 3px rgba(220, 183, 77, .3); }
.sl-field input[aria-invalid="true"] { border-color: var(--sl-error); }
.sl-field__err { font-size: 12.5px; color: var(--sl-error); min-height: 1em; }
.sl-booking__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sl-booking__status { font-size: 13.5px; color: var(--sl-error); text-align: center; min-height: 1em; margin: 0; }
.sl-booking__legal { font-size: 12px; color: var(--sl-ink-soft); text-align: center; }
/* Home nurse visit mode of the popup */
.sl-booking__nurse { display: grid; gap: 10px; font-size: 14.5px; line-height: 1.55; color: var(--sl-ink-soft); margin-top: -6px; }
.sl-booking__area { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 5px 12px; border-radius: 999px; background: var(--sl-ivory); border: 1px solid var(--sl-sand); font-size: 13px !important; font-weight: 600; color: var(--sl-ink); }
.sl-booking__area .sl-i { color: var(--sl-gold-deep); }
.sl-booking__detail { display: inline-flex; align-items: center; gap: 6px; justify-self: start; padding: 6px 12px; border-radius: 999px; background: var(--sl-ivory); border: 1px solid var(--sl-sand); font-size: 13.5px !important; font-weight: 600; color: var(--sl-ink); }
.sl-booking__detail .sl-i { color: var(--sl-gold-deep); }
.sl-booking__nurse details { border: 1px solid var(--sl-sand); border-radius: 12px; padding: 10px 14px; background: var(--sl-bg); }
.sl-booking__nurse summary { cursor: pointer; font-weight: 600; color: var(--sl-brown); }
.sl-booking__nurse ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sl-booking__nurse li { position: relative; padding-left: 20px; font-size: 13.5px; color: var(--sl-ink); }
.sl-booking__nurse li::before { content: "✦"; position: absolute; left: 0; top: 0; font-size: 10px; line-height: 21px; color: var(--sl-gold); }
.sl-booking__nurse .sl-booking__benefits li::before { content: "✓"; font-size: 12px; color: var(--sl-gold-deep); }
.sl-booking__note { font-size: 12px; line-height: 1.5; color: var(--sl-ink-soft); }
.sl-booking__done { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 12px 0 4px; }
.sl-booking__done img { width: 64px; height: 64px; object-fit: contain; }
.sl-booking__done p { color: var(--sl-ink-soft); font-size: 15px; }

/* ── Reviews (layout sl_reviews): Google rating card + scroll-snap carousel ── */
/* The block is ivory; the bands after it swap so white and ivory keep alternating. */
.sl-reviews + .sl-band--ivory { background: var(--sl-bg); }
.sl-reviews + .sl-band--ivory + .sl-band:not(.sl-band--ivory) { background: var(--sl-ivory); }
.sl-rv-defs { position: absolute; }
.sl-rv-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(32px, 4vw, 48px); }
.sl-rv-head__text { display: grid; gap: 16px; max-width: 640px; }
.sl-rv-head__text p { color: var(--sl-ink-soft); }
.sl-rv-score { display: grid; grid-template-columns: auto auto; align-items: center; gap: 4px 18px; padding: 20px 24px; background: #fff; border: 1px solid var(--sl-sand); border-radius: 20px; box-shadow: 0 10px 30px rgba(58, 42, 31, .06); }
.sl-rv-score__num { grid-row: span 2; font-size: 52px; font-weight: 600; line-height: 1; letter-spacing: -.03em; background: var(--sl-gold-ink-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sl-rv-score__stars, .sl-rv-card__stars { display: flex; gap: 2px; }
.sl-rv-score__meta { font-size: 13px; color: var(--sl-ink-soft); display: flex; align-items: center; gap: 6px; }
.sl-rv-score__links { grid-column: 1 / -1; display: flex; gap: 16px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--sl-sand); font-size: 14px; font-weight: 600; }
.sl-rv-score__links a { color: var(--sl-gold-text); text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.sl-rv-score__links a:hover { border-color: currentColor; }
.sl-rv-star { width: 18px; height: 18px; fill: url(#sl-rv-gold); }
.sl-rv-star.is-off { fill: var(--sl-sand); }
.sl-rv-g { width: 16px; height: 16px; flex: none; }

.sl-rv__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; padding: 6px 2px 24px; margin: -6px -2px 0; }
.sl-rv__track::-webkit-scrollbar { display: none; }
.sl-rv-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; padding: 28px; background: #fff; border-radius: 20px; border: 1px solid var(--sl-sand); position: relative; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .45s ease; }
.sl-rv-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(58, 42, 31, .10); border-color: rgba(203, 156, 18, .45); }
.sl-rv-card__quote { position: absolute; top: 18px; right: 24px; width: 40px; height: 40px; fill: var(--sl-sand); }
.sl-section .sl-rv-card__text { font-size: 15.5px; line-height: 1.65; color: var(--sl-ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.sl-rv-card.is-open .sl-rv-card__text { -webkit-line-clamp: unset; }
.sl-rv-card__more { align-self: flex-start; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--sl-gold-text); cursor: pointer; }
.sl-rv-card__more[hidden] { display: none; }
.sl-rv-card__who { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--sl-sand); }
.sl-rv-card__ava { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sl-gold-grad); color: var(--sl-ink); font-weight: 600; font-size: 17px; }
.sl-rv-card__who b { display: block; font-size: 15px; font-weight: 600; color: var(--sl-ink); }
.sl-rv-card__who div span { font-size: 13px; color: var(--sl-ink-soft); display: flex; align-items: center; gap: 6px; }
.sl-rv-card__who .sl-rv-g { width: 14px; height: 14px; }

.sl-rv__nav { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.sl-rv__btn { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 1px solid rgba(58, 42, 31, .25); background: #fff; color: var(--sl-brown); display: grid; place-items: center; cursor: pointer; transition: border-color .25s ease, box-shadow .25s ease, opacity .25s ease; }
.sl-rv__btn:hover:not(:disabled) { border-color: var(--sl-gold-deep); box-shadow: 0 0 0 3px rgba(220, 183, 77, .25); }
.sl-rv__btn:disabled { opacity: .35; cursor: default; }
.sl-rv__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sl-rv__bar { flex: 1; height: 2px; background: var(--sl-sand); border-radius: 2px; overflow: hidden; }
.sl-rv__bar i { display: block; height: 100%; width: 30%; background: var(--sl-gold-grad); border-radius: 2px; transition: transform .3s ease, width .3s ease; }
.sl-rv__nav.is-static { display: none; }

@media (max-width: 1100px) { .sl-rv__track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 760px) {
    .sl-rv-head { grid-template-columns: minmax(0, 1fr); }
    .sl-rv-score { justify-self: start; }
    .sl-rv__track { grid-auto-columns: 86%; gap: 14px; }
    .sl-rv-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .sl-header, .sl-header *, .sl-section, .sl-section *, .sl-float, .sl-booking * {
        transition-duration: .01ms !important; animation: none !important;
    }
    html { scroll-behavior: auto; }
}
