/* ==========================================================================
   Booking Med Travel — shared frontend styles
   Every page loads this file; page-only styles live in css/<page>.css.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    --navy: #162b40;
    --ink: #1c2b47;
    --text: #4f5d75;
    --muted: #7c889c;
    --primary: #0a66ff;
    --primary-600: #0052d9;
    --primary-50: #eaf3ff;
    --cyan: #1cc6d6;
    --cyan-50: #e6fafc;
    --line: #e2e9f3;
    --line-soft: #edf2f8;
    --bg: #ffffff;
    --bg-soft: #f5f9ff;
    --star: #f5a623;

    --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(19, 35, 63, .05);
    --shadow-sm: 0 4px 14px rgba(26, 72, 140, .07);
    --shadow: 0 10px 30px rgba(26, 72, 140, .09);
    --shadow-lg: 0 22px 50px rgba(26, 72, 140, .13);
    --shadow-blue: 0 10px 24px rgba(10, 102, 255, .28);

    --container: 1320px;
    /* Side space grows with the screen: 24px on small laptops/tablets up to 48px, so 150%-scaled 14" laptops (~1280px) don't look cramped. */
    --gutter: clamp(24px, 3.6vw, 48px);
    --header-h: 88px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, h5, p { margin: 0; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--navy); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.lucide { width: 20px; height: 20px; stroke-width: 1.75; flex-shrink: 0; }

/* ---------- 3. Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section { padding-block: 56px; position: relative; }
.section--tight { padding-block: 36px; }

/* ---------- 4. Typography ---------- */
.eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 14px;
}
.h-display {
    font-size: clamp(34px, 3.44vw, 49.5px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.055em;
}
.h-section {
    font-size: clamp(26px, 2.6vw, 38px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.h-block {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.lead { font-size: 17px; color: var(--text); margin-top: 8px; }
.text-primary { color: var(--primary); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

/* ---------- 5. Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 44px;
    padding: 0 22px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    border: 1.5px solid transparent;
    transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-600); box-shadow: var(--shadow-blue); }
.btn--outline { border-color: var(--primary); color: var(--ink); background: #fff; }
.btn--outline:hover { background: var(--primary-50); color: var(--primary); }
.btn--block { width: 100%; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--lg { height: 54px; padding: 0 34px; font-size: 16px; }

/* White pill with soft shadow (phone, "Ask Mia", "Explore all treatments"…) */
.pill-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 48px;
    padding: 0 26px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-sm);
    color: var(--ink);
    font-weight: 600;
    font-size: 15px;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.pill-btn .lucide { color: var(--primary); }
.pill-btn:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #cfe0fb; }

/* Arrow nudges right on hover anywhere it is used. */
.has-arrow .lucide-arrow-right { transition: transform .3s var(--ease); }
.has-arrow:hover .lucide-arrow-right { transform: translateX(4px); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    transition: color .25s var(--ease);
}
.link-arrow:hover { color: var(--primary); }
.link-arrow--primary { color: var(--primary); }
.link-arrow--primary:hover { color: var(--primary-600); }

.icon-btn {
    width: 44px; height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow-xs);
    transition: box-shadow .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn:hover { color: var(--primary); box-shadow: var(--shadow-sm); border-color: #cfe0fb; }
.icon-btn--soft { color: var(--primary); }

/* ---------- 6. Small shared pieces ---------- */
/* Round white icon holder with soft ring */
.icon-circle {
    width: 54px; height: 54px;
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 6px 18px rgba(26, 72, 140, .1), inset 0 0 0 1px var(--line-soft);
}
.icon-circle .lucide { width: 24px; height: 24px; }
.icon-circle--sm { width: 42px; height: 42px; }
.icon-circle--sm .lucide { width: 20px; height: 20px; }
.icon-circle--cyan { color: var(--cyan); }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 6px;
    background: #f3f6fb;
    color: var(--text);
    font-size: 12px;
    line-height: 1.2;
}
.chip .lucide { width: 14px; height: 14px; color: var(--primary); }
.chip--soft-blue { background: var(--primary-50); color: var(--primary-600); border-radius: var(--radius-pill); padding: 6px 12px; }

.flag {
    width: 22px; height: 15px;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
    flex-shrink: 0;
}
.flag--round { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.flag-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.flag-label--pill { padding: 4px 12px 4px 6px; background: #f6f8fc; border-radius: var(--radius-pill); color: var(--ink); font-size: 13px; }

.surface {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* ---------- 7. Doctor card (also used on doctor listing pages) ---------- */
.doctor-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px 16px 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xs);
    height: 100%;
    transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.doctor-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #d6e4f8; }
.doctor-card__main { display: grid; grid-template-columns: 165px 1fr; gap: 20px; }
.doctor-card__photo { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 165 / 203; background: #eef3f9; }
.doctor-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.doctor-card:hover .doctor-card__photo img { transform: scale(1.04); }
.rating-badge {
    position: absolute;
    left: 3px; bottom: 0;
    padding: 6px 16px 6px 13px;
    background: #fff;
    border-radius: 10px 10px 0 0;
    min-width: 108px;
}
.rating-badge__score { display: flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 700; font-size: 23px; color: var(--navy); line-height: 1.2; }
.rating-badge__score .lucide { width: 21px; height: 21px; color: var(--star); fill: var(--star); stroke: var(--star); }
.rating-badge__count { font-size: 12px; color: var(--muted); }
.doctor-card__body { display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
.doctor-card__title { font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.doctor-card__name { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; margin-top: 6px; }
.doctor-card__facts { margin-top: auto; display: grid; gap: 12px; padding-bottom: 6px; }
.doctor-card__facts li { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.doctor-card__facts .lucide { width: 18px; height: 18px; color: var(--primary); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- 8. Hospital card (also used on hospital listing pages) ---------- */
.hospital-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .35s var(--ease), transform .35s var(--ease), border-color .35s var(--ease);
}
.hospital-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: #d6e4f8; }
.hospital-card__media { aspect-ratio: 470 / 207; overflow: hidden; background: #e8eef7; }
.hospital-card__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hospital-card:hover .hospital-card__media > img { transform: scale(1.05); }
.hospital-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 18px; }
.hospital-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hospital-card__name { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; padding-top: 4px; }
.score-badge {
    flex-shrink: 0;
    padding: 7px 8px;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.1;
}
.hospital-card__location { margin-top: 18px; }
.hospital-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.hospital-card__text { font-size: 13.5px; color: var(--muted); margin-top: 16px; line-height: 1.5; flex: 1; }
.hospital-card .card-actions { margin-top: 20px; }
/* Head of department (condition pages), in place of the description. */
.hospital-card__head-of { display: flex; align-items: center; gap: 12px; flex: 1; margin-top: 14px; }
.hospital-card__head-of img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: top; background: #eef3f9; }
.hospital-card__head-of strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.hospital-card__head-of small { font-size: 12px; color: var(--muted); }

/* ---------- 9. Carousel ---------- */
.carousel { position: relative; --per-view: 3; --gap: 22px; }
.carousel__viewport { overflow: hidden; margin: -10px; padding: 10px; }
.carousel__track {
    display: flex;
    gap: var(--gap);
    transition: transform .6s var(--ease);
    will-change: transform;
}
.carousel__track.is-jumping { transition: none; }
.carousel__slide { flex: 0 0 calc((100% - var(--gap) * (var(--per-view) - 1)) / var(--per-view)); min-width: 0; }
.carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px; height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transform: translateY(-50%);
    transition: box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.carousel__arrow:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-blue); }
.carousel__arrow--prev { left: -46px; }
.carousel__arrow--next { right: -46px; }
.carousel__dots { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }
.carousel__dot {
    width: 8px; height: 8px;
    border-radius: var(--radius-pill);
    background: #cfdcef;
    transition: width .35s var(--ease), background .35s var(--ease);
}
.carousel__dot.is-active { background: var(--primary); width: 22px; }

/* ---------- 10. Accordion ---------- */
.accordion { display: grid; gap: 12px; }
.accordion__item {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .4s var(--ease);
}
.accordion__item:hover, .accordion__item.is-open { box-shadow: var(--shadow-sm); border-color: #d3e2f7; }
/* Open item: a blue bar grows down the left edge and the background warms to light blue. */
.accordion__item::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--cyan));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .45s var(--ease);
}
.accordion__item.is-open { background: linear-gradient(180deg, #f5f9ff, #fff); border-color: #c6dbf8; }
.accordion__item.is-open::before { transform: scaleY(1); }
.accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    text-align: left;
    font-size: 15px;
    color: var(--ink);
}
.accordion__trigger { padding: 9px 12px 9px 18px; transition: color .25s var(--ease); }
.accordion__trigger .lucide {
    flex: none;
    width: 30px; height: 30px;
    padding: 6px;
    border-radius: 50%;
    color: var(--primary);
    transition: transform .4s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.accordion__item:hover .accordion__trigger .lucide { background: var(--primary-50); }
.accordion__item.is-open .accordion__trigger { color: var(--primary-600); font-weight: 500; }
.accordion__item.is-open .accordion__trigger .lucide { transform: rotate(180deg); background: var(--primary); color: #fff; }
/* The answer slides in as the panel opens. */
.accordion__panel p { opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .4s var(--ease); }
.accordion__item.is-open .accordion__panel p { opacity: 1; transform: none; transition-delay: .12s; }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }

/*
 * Scroll list: <div class="scroll-list" data-scroll-list> stops growing at --list-h and scrolls inside,
 * with a soft fade at the bottom while more items are hidden below (common.js adds .is-end).
 */
.scroll-list {
    max-height: var(--list-h, 440px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 2px 10px 4px 4px;
    margin: -2px -10px -4px -4px;
    scrollbar-width: thin;
    scrollbar-color: #c6d8f2 transparent;
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent);
    mask-image: linear-gradient(180deg, #000 82%, transparent);
}
.scroll-list.is-end { -webkit-mask-image: none; mask-image: none; }
.scroll-list::-webkit-scrollbar { width: 6px; }
.scroll-list::-webkit-scrollbar-thumb { background: #c6d8f2; border-radius: 6px; }
.scroll-list::-webkit-scrollbar-thumb:hover { background: #9fbfe9; }

/* ---------- 11. Choice controls (radio cards / segmented) ---------- */
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    transition: border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.choice:hover .choice__box { border-color: #b9d1f5; }
.choice input:checked + .choice__box { border-color: var(--primary); background: #f0f6ff; box-shadow: 0 6px 16px rgba(10, 102, 255, .08); }
.choice input:focus-visible + .choice__box { outline: 2px solid var(--primary); outline-offset: 2px; }
.radio-dot {
    width: 20px; height: 20px;
    margin-left: auto;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1.5px solid #c9d3e2;
    position: relative;
    transition: border-color .25s var(--ease);
}
.radio-dot::after {
    content: '';
    position: absolute;
    inset: 3.5px;
    border-radius: 50%;
    background: var(--primary);
    transform: scale(0);
    transition: transform .25s var(--ease);
}
.choice input:checked + .choice__box .radio-dot { border-color: var(--primary); }
.choice input:checked + .choice__box .radio-dot::after { transform: scale(1); }

/* ---------- 12. Header ---------- */
.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease);
}
.site-header.is-sticky {
    position: fixed;
    height: 64px;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(19, 35, 63, .05);
    animation: header-in .4s var(--ease);
}
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 36px; height: 36px; border-radius: 50%; }
.brand__name { font-family: var(--font-heading); font-weight: 700; font-size: 22px; letter-spacing: -0.03em; color: var(--navy); }
/* Middle of the bar: the menu, the sticky section menu or the search box, one at a time. */
.site-header__center { position: relative; flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; justify-content: center; }
.site-nav, .site-nav--sections { transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
.site-nav--sections { display: none; }
.site-nav__list { display: flex; gap: 21px; }
.site-nav__link { position: relative; font-size: 13.5px; color: var(--text); padding: 6px 0; white-space: nowrap; transition: color .25s var(--ease); }
.site-nav--sections .site-nav__link { font-size: 14px; color: var(--ink); }
.site-nav__link::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--primary); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__phone-mobile { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 16px; }
.header-phone { height: 41px; padding: 0 16px; font-weight: 500; font-size: 14px; gap: 12px; }
.site-header__actions .icon-btn { width: 40px; height: 40px; }
.header-search-btn.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Header search: replaces the menu while open. */
.header-search {
    position: absolute;
    inset: 0;
    margin: auto;
    width: min(100%, 560px);
    height: 44px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 0 18px;
    background: #fff;
    border: 1px solid #cfdff5;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 24px rgba(10, 102, 255, .1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px) scale(.97);
    transition: opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.header-search__icon { flex: none; width: 18px; height: 18px; color: var(--muted); }
.header-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: transparent; font-size: 14px; color: var(--ink); }
.header-search input::placeholder { color: #8692a6; }
.header-search__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease); }
.header-search__close:hover { background: var(--primary-50); color: var(--primary); }
.header-search__close .lucide { width: 16px; height: 16px; }
.is-searching .header-search { opacity: 1; visibility: visible; transform: none; }

/* Sticky: compact bar, the section menu replaces the main menu, outlined phone pill. */
.is-sticky .brand__mark { width: 32px; height: 32px; }
.is-sticky .brand__name { font-size: 20px; }
.is-sticky .header-phone { height: 38px; box-shadow: none; border-color: var(--line); }
.is-sticky .site-header__actions .icon-btn { width: 38px; height: 38px; }
.lang-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); }
.lang-switch .lucide { width: 22px; height: 22px; }
.lang-switch .lang-switch__caret { width: 14px; height: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 18px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* In-page links land below the sticky bar. */
section[id], .stories[id] { scroll-margin-top: 80px; }

@media (min-width: 992px) {
    .is-sticky .site-nav { display: none; }
    .is-sticky .site-nav--sections { display: block; }
    .is-searching .site-nav, .is-searching .site-nav--sections { opacity: 0; visibility: hidden; transform: translateY(-8px); }
}

/* ---------- 13. Footer ---------- */
.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 40px 0 30px;
    /* As in the mockup: a very pale blue band with a crisp top edge and no line, a touch bluer
       towards the right, easing to near-white at the bottom. */
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .85) 100%),
                linear-gradient(90deg, #f8fcff 0%, #f8fcff 55%, #eff9fe 100%);
}
.site-footer__top { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.brand--footer .brand__name { font-size: 20px; }
.site-footer__links { display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink); }
.site-footer__links a, .site-footer__legal a { transition: color .25s var(--ease); }
.site-footer__links a:hover, .site-footer__legal a:hover { color: var(--primary); }
.site-footer__meta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-footer__social { color: var(--navy); transition: color .25s var(--ease), transform .25s var(--ease); }
.site-footer__social:hover { color: var(--primary); transform: translateY(-2px); }
.site-footer__lang { display: inline-flex; align-items: center; gap: 8px; margin-left: 30px; font-size: 14px; color: var(--muted); }
.site-footer__lang .lucide { width: 14px; height: 14px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; font-size: 12.5px; color: var(--muted); }
.site-footer__legal { display: flex; gap: 30px; }
.site-footer__note { margin-top: 18px; font-size: 12px; color: #9aa5b6; }

/* ---------- 14. Scroll reveal & motion ---------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
    transition-delay: var(--delay, 0s);
}
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(.94); }
/* Hero: fly in from the bottom-right corner of the screen, or rise from well below. */
[data-reveal="corner"] { transform: translate(55vw, 140px) rotate(6deg) scale(.9); }
[data-reveal="rise"] { transform: translateY(140px); }
[data-reveal="corner"], [data-reveal="rise"] { transition: opacity .6s var(--ease), transform 1.3s cubic-bezier(.16, 1, .3, 1); transition-delay: var(--delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/*
 * Cascade (lists): <div data-cascade> slides its children in one after another, from the right,
 * or rising with data-cascade="up". JS adds .is-in, then .is-done. :where() keeps the specificity at
 * zero so each item's own hover transform still wins afterwards.
 */
:where([data-cascade]:not(.is-in)) > * { opacity: 0; transform: translateX(40px); }
:where([data-cascade="up"]:not(.is-in)) > * { transform: translateY(24px); }
:where([data-cascade].is-in:not(.is-done)) > * {
    transition: opacity .6s var(--ease), transform .8s cubic-bezier(.16, 1, .3, 1), box-shadow .3s var(--ease), border-color .3s var(--ease), background .4s var(--ease);
    transition-delay: calc(var(--cascade-start, .15s) + var(--k, 0) * .1s);
}

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-soft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(28, 198, 214, .45); } 100% { box-shadow: 0 0 0 14px rgba(28, 198, 214, 0); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
/* Shared small motions. They animate the individual translate / rotate / scale properties, never `transform`,
   so they combine with whatever transform an element already has (e.g. a pill centred with translateX(-50%)). */
@keyframes pop-in { from { opacity: 0; translate: 0 14px; scale: .8; } }            /* entrance pop: pills, badges */
@keyframes arrow-nudge { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 5px 0; } 90% { translate: 0 0; } } /* "→" inviting a click, looped */
@keyframes wiggle { 25% { rotate: -7deg; } 60% { rotate: 6deg; } }                 /* playful shake on hover */

/*
 * Curtain reveal (card lists): <div data-curtain> around .doctor-card items.
 * Photos open like a curtain, details slide in line by line, ratings count up. JS adds .is-in, then .is-done.
 */
[data-curtain] .doctor-card { opacity: 0; }
[data-curtain] .doctor-card__photo { clip-path: inset(100% 0 0 0 round 10px); }
[data-curtain] .doctor-card__body > *,
[data-curtain] .card-actions > *,
[data-curtain] .rating-badge { opacity: 0; transform: translateY(18px); }
[data-curtain] .rating-badge__score .lucide { transform: scale(0) rotate(-90deg); }
[data-curtain] .doctor-card__body > :nth-child(2) { --j: 1; }
[data-curtain] .doctor-card__body > :nth-child(3) { --j: 2; }
[data-curtain] .doctor-card__body > :nth-child(4) { --j: 3; }
[data-curtain] .rating-badge { --j: 2; }
[data-curtain] .card-actions > :nth-child(1) { --j: 5; }
[data-curtain] .card-actions > :nth-child(2) { --j: 6; }
[data-curtain].is-in .doctor-card {
    opacity: 1;
    transition: opacity .45s var(--ease) calc(var(--i, 0) * .25s), transform .25s ease-out, box-shadow .3s var(--ease), border-color .3s var(--ease);
}
[data-curtain].is-in .doctor-card__photo {
    clip-path: inset(0 0 0 0 round 10px);
    transition: clip-path 1s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .25s + .1s);
}
[data-curtain].is-in .doctor-card__body > *,
[data-curtain].is-in .card-actions > *,
[data-curtain].is-in .rating-badge {
    opacity: 1;
    transform: none;
    transition: opacity .6s var(--ease), transform .7s var(--ease);
    transition-delay: calc(var(--i, 0) * .25s + .6s + var(--j, 0) * .09s);
}
[data-curtain].is-in .rating-badge__score .lucide {
    transform: none;
    transition: transform .6s cubic-bezier(.3, 1.6, .5, 1) calc(var(--i, 0) * .25s + 1.2s);
}
[data-curtain].is-done .doctor-card,
[data-curtain].is-done .doctor-card * { transition-delay: 0s; }

/*
 * Lens reveal (hospital lists): <div data-lens> around .hospital-card items. JS adds .is-in, then .is-done.
 * The photo wipes open diagonally while zooming out, the score pops, the chips pop one by one, then the rest rises.
 */
[data-lens] .hospital-card { opacity: 0; transform: translateY(30px); }
[data-lens] .hospital-card__media { clip-path: polygon(0 0, 0 0, 0 100%, 0 100%); }
[data-lens] .hospital-card__media > img { transform: scale(1.3); }
[data-lens] .score-badge { opacity: 0; transform: scale(.4); }
[data-lens] .chip { opacity: 0; transform: scale(.6) translateY(8px); }
[data-lens] .hospital-card__head .hospital-card__name,
[data-lens] .hospital-card__location,
[data-lens] .hospital-card__text,
[data-lens] .hospital-card .card-actions { opacity: 0; transform: translateY(14px); }
[data-lens] .hospital-card__location { --j: 1; }
[data-lens] .chip:nth-child(1) { --j: 2; }
[data-lens] .chip:nth-child(2) { --j: 3; }
[data-lens] .chip:nth-child(3) { --j: 4; }
[data-lens] .hospital-card__text { --j: 5; }
[data-lens] .hospital-card .card-actions { --j: 6; }
[data-lens].is-in .hospital-card {
    opacity: 1;
    transform: none;
    transition: opacity .6s var(--ease) calc(var(--i, 0) * .22s), transform .8s var(--ease) calc(var(--i, 0) * .22s), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
[data-lens].is-in .hospital-card__media {
    clip-path: polygon(0 0, 130% 0, 100% 100%, 0 100%);
    transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1) calc(var(--i, 0) * .22s + .15s);
}
[data-lens].is-in .hospital-card__media > img { transform: scale(1); transition: transform 1.8s var(--ease) calc(var(--i, 0) * .22s + .15s); }
[data-lens].is-in .score-badge { opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .6s cubic-bezier(.3, 1.7, .5, 1); transition-delay: calc(var(--i, 0) * .22s + .9s); }
[data-lens].is-in .chip { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .55s cubic-bezier(.3, 1.6, .5, 1); transition-delay: calc(var(--i, 0) * .22s + .7s + var(--j, 0) * .08s); }
[data-lens].is-in .hospital-card__head .hospital-card__name,
[data-lens].is-in .hospital-card__location,
[data-lens].is-in .hospital-card__text,
[data-lens].is-in .hospital-card .card-actions { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * .22s + .7s + var(--j, 0) * .08s); }
[data-lens].is-done .hospital-card,
[data-lens].is-done .hospital-card * { transition-delay: 0s; }
[data-lens].is-done .hospital-card__media > img { transition: transform .9s var(--ease); }

/* Accreditation badge on the hospital photo: two logos at a time; common.js slides them one by one. */
.accredit {
    position: absolute;
    top: 5%; right: 3.5%;
    z-index: 2;
    width: 41%;
    height: 33%;
    overflow: hidden;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(19, 35, 63, .12);
}
.accredit__track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.65, 0, .35, 1); }
.accredit__track.is-jumping { transition: none; }
.accredit__item { flex: 0 0 50%; display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; padding: 9px 10px; }
.accredit__item img { display: block; width: 100%; height: 100%; object-fit: contain; }
[data-lens] .accredit { opacity: 0; transform: scale(.7); transform-origin: top right; }
[data-lens].is-in .accredit { opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .6s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--i, 0) * .22s + 1s); }
[data-lens].is-done .accredit { transition-delay: 0s; }

/* The same logos as an inline pill with a "next" arrow (program page hero):
   <div class="accredit-pill" data-ticker> <div class="accredit accredit--inline"><div class="accredit__track">…
   </div></div> <button class="accredit-pill__next" data-ticker-next> </div> — common.js drives both. */
.accredit-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 36px;
    padding: 0 4px 0 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.accredit-pill:hover { box-shadow: var(--shadow-sm); border-color: #cfe0fb; }
.accredit--inline { position: relative; top: auto; right: auto; z-index: auto; width: 116px; height: 100%; background: none; border-radius: 0; box-shadow: none; }
.accredit--inline .accredit__track { transition-duration: .6s; }
.accredit--inline .accredit__item { padding: 0 6px; }
.accredit--inline .accredit__item img { width: auto; max-width: 100%; height: 20px; }
.accredit-pill__next { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ink); transition: background .25s var(--ease), color .25s var(--ease); }
.accredit-pill__next:hover { background: var(--primary-50); color: var(--primary); }
.accredit-pill__next .lucide { width: 16px; height: 16px; }

/* Hospital hover (every list): a light sweep crosses the photo, which zooms and pans; the card gets a soft blue glow. */
.hospital-card__media { position: relative; }
.hospital-card__media::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -70%;
    width: 45%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-18deg);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .hospital-card:hover { border-color: #b9d3fb; box-shadow: 0 0 0 1px rgba(10, 102, 255, .12), 0 20px 42px rgba(10, 102, 255, .14); }
    .hospital-card:hover .hospital-card__media > img { transform: scale(1.08) translateX(-2%); }
    .hospital-card:hover .hospital-card__media::after { animation: photo-sweep 1s var(--ease); }
    .hospital-card:hover .score-badge { animation: badge-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
    .hospital-card .chip { transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
    .hospital-card:hover .chip { background: var(--primary-50); border-color: #cfe0fb; }
}
@keyframes photo-sweep { to { left: 130%; } }
@keyframes badge-pop { 50% { transform: scale(1.18); } }

/* AI glow: wrap an input in .ai-glow and a cyan-blue-violet border spins round it while it has focus. */
.ai-glow { position: relative; isolation: isolate; }
.ai-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    z-index: -1;
    border-radius: 14px;
    padding: 2px;
    background: conic-gradient(from var(--spin), var(--cyan), var(--primary), #8b5cf6, var(--cyan));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity .35s var(--ease);
    animation: border-spin 3s linear infinite;
}
.ai-glow:focus-within::before { opacity: 1; }

/* Shine: a light streak crosses the button every few seconds. */
.btn--shine { position: relative; overflow: hidden; }
.btn--shine::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
    animation: btn-shine 3.4s ease-in-out 1s infinite;
}

/* Odometer: <span data-odometer="1200" data-suffix="+"> digits roll like a slot machine when it scrolls into view. */
.odo { display: inline-flex; overflow: hidden; font-variant-numeric: tabular-nums; height: 1.1em; line-height: 1.1em; vertical-align: top; }
.odo__col { display: flex; flex-direction: column; align-self: flex-start; transition: transform 1.8s cubic-bezier(.2, .9, .25, 1); transition-delay: calc(var(--c, 0) * .12s + var(--s, 0) * .2s); }
.odo__col > span { height: 1.1em; }

/*
 * 3D tilt + glowing border (card lists): <div data-tilt> around .doctor-card items.
 * The card leans towards the cursor, a cyan-blue border spins round it and "Send Request" shines; the inside stays white. Mouse only.
 */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
[data-tilt] .carousel__viewport { margin: -22px; padding: 22px; }
[data-tilt] .carousel__track { perspective: 1200px; }
[data-tilt] .doctor-card { position: relative; transform-style: preserve-3d; transition: transform .25s ease-out, box-shadow .3s var(--ease), border-color .3s var(--ease); }
[data-tilt] .doctor-card::before {
    content: '';
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s var(--ease);
    inset: -1.5px;
    z-index: -1;
    padding: 2px;
    background: conic-gradient(from var(--spin), transparent 0 55%, var(--cyan) 70%, var(--primary) 85%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: border-spin 2.4s linear infinite;
}
[data-tilt] .doctor-card .btn--primary { position: relative; overflow: hidden; }
[data-tilt] .doctor-card .btn--primary::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: -60%;
    width: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
    transform: skewX(-20deg);
    opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
    [data-tilt] .doctor-card:hover {
        transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
        box-shadow: 0 18px 38px rgba(26, 72, 140, .16);
        border-color: transparent;
    }
    [data-tilt] .doctor-card:hover::before { opacity: 1; }
    [data-tilt] .doctor-card:hover .btn--primary::after { opacity: 1; animation: btn-shine 2.2s ease-in-out infinite; }
}
@keyframes border-spin { to { --spin: 360deg; } }
@keyframes btn-shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    [data-reveal] { opacity: 1; transform: none; }
    :where([data-cascade]) > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- 15. Responsive ---------- */
@media (max-width: 1420px) {
    .carousel__arrow--prev { left: -18px; }
    .carousel__arrow--next { right: -18px; }
}
@media (max-width: 1280px) {
    .site-nav__list { gap: 16px; }
    .header-phone span { display: none; }
    .header-phone { width: 41px; padding: 0; justify-content: center; }
}
@media (max-width: 1400px) {
    .doctor-card__main { grid-template-columns: 140px 1fr; gap: 16px; }
    .doctor-card__name { font-size: 17.5px; }
}
@media (max-width: 1200px) {
    /* Small laptops: tighten the bar so menu and buttons never touch. */
    .site-header__inner { gap: 16px; }
    .site-nav__list { gap: 14px; }
    .site-nav__link { font-size: 13px; }
    .site-header__actions { gap: 12px; }
    .lang-switch span, .lang-switch .lang-switch__caret { display: none; }
}
@media (max-width: 1100px) {
    .carousel { --per-view: 2; }
    .doctor-card__main { grid-template-columns: 124px 1fr; gap: 14px; }
    .doctor-card__title { margin-top: 12px; }
    .doctor-card__facts { gap: 8px; }
    .doctor-card__facts li { font-size: 12px; gap: 8px; }
    .rating-badge { min-width: 0; padding: 4px 12px 4px 10px; }
    .rating-badge__score { font-size: 19px; }
}
@media (max-width: 991px) {
    :root { --header-h: 72px; }
    .nav-toggle { display: inline-flex; }
    .header-phone { display: none; }
    .site-nav {
        position: fixed;
        inset: var(--header-h) 12px auto;
        padding: 18px;
        margin: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }
    .site-header.is-sticky .site-nav { top: 64px; }
    .site-header__center { position: static; flex: 1; }
    .header-search { inset: auto 12px auto 12px; top: calc(100% + 8px); width: auto; margin: 0; }
    .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
    .site-nav__list { flex-direction: column; gap: 0; }
    .site-nav__link { display: block; padding: 13px 6px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
    .site-nav__link::after { display: none; }
    .site-nav__phone-mobile { display: inline-flex; width: 100%; margin-top: 16px; }
    .site-footer__meta { margin-left: 0; }
    .site-footer__lang { margin-left: 0; }
}
@media (max-width: 767px) {
    /* No breadcrumbs on phones, on any page. */
    .breadcrumb { display: none !important; }
    [data-tilt] .carousel__viewport { margin: -10px; padding: 10px; }
    :root { --gutter: 16px; }
    body { font-size: 14.5px; }
    .section { padding-block: 40px; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .carousel { --per-view: 1; --gap: 16px; }
    .carousel__arrow { display: none; }
    .lang-switch { display: none; }
    .site-header__inner { gap: 8px; }
    .site-header__actions { gap: 6px; margin-left: auto; }
    .site-header__actions .icon-btn, .nav-toggle { width: 38px; height: 38px; }
    .brand { gap: 8px; min-width: 0; flex-shrink: 1; }
    /* Never let the logo push the buttons off-screen: the name shortens with "…" first. */
    .brand__name { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
    .site-header__actions { flex-shrink: 0; }
    .brand__mark { width: 32px; height: 32px; }
    .brand__name { font-size: 17px; }
    /* Footer on phones: centred, links as a 2-column grid of soft buttons, round icon buttons. */
    .site-footer { margin-top: 24px; padding: 32px 0 26px; text-align: center; }
    .site-footer__top { flex-direction: column; align-items: center; gap: 22px; }
    .brand--footer { justify-content: center; }
    .brand--footer .brand__name { font-size: 19px; }
    .site-footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
    .site-footer__links a {
        display: block;
        padding: 11px 8px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        color: var(--ink);
    }
    .site-footer__links a:active { background: var(--primary-50); border-color: #cfe0fb; }
    .site-footer__meta { justify-content: center; gap: 10px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
    .site-footer__social, .site-footer__lang {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 999px;
    }
    .site-footer__social { width: 40px; }
    .site-footer__social .lucide { width: 18px; height: 18px; }
    .site-footer__lang { gap: 6px; padding: 0 16px; color: var(--ink); }
    .site-footer__bottom { flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; }
    .site-footer__legal { justify-content: center; gap: 0; }
    .site-footer__legal li + li::before { content: '\00b7'; margin: 0 10px; color: #a7b2c4; }
    .site-footer__note { max-width: 300px; margin: 14px auto 0; line-height: 1.5; }
}
@media (max-width: 420px) {
    .doctor-card__main { grid-template-columns: 120px 1fr; gap: 14px; }
    .doctor-card__name { font-size: 17px; }
    .rating-badge { min-width: 0; padding: 4px 10px; }
    .rating-badge__score { font-size: 18px; }
}

@media (max-width: 380px) {
    /* Small phones (320-380px): smaller logo and buttons so the menu button stays on screen. */
    .site-header__inner { gap: 6px; }
    .brand { gap: 6px; }
    .brand__mark { width: 28px; height: 28px; }
    .brand__name { font-size: 15px; }
    .site-header__actions { gap: 4px; }
    .site-header__actions .icon-btn, .nav-toggle { width: 36px; height: 36px; }
}
@media (max-width: 360px) {
    .site-header__actions .icon-btn--soft { display: none; }
}

@media (min-width: 768px) and (max-width: 1199px) {
    /* Footer on tablets and small laptops: logo left and icon buttons right, then the links as one row of pills. */
    .site-footer__top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
    .brand--footer { grid-column: 1; grid-row: 1; }
    .site-footer__meta { grid-column: 2; grid-row: 1; gap: 10px; }
    .site-footer__links {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-content: space-between;
        gap: 10px;
        padding-top: 20px;
        border-top: 1px solid var(--line);
    }
    .site-footer__links a {
        display: block;
        padding: 9px 16px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 999px;
        font-size: 13.5px;
        font-weight: 500;
    }
    .site-footer__links a:hover { border-color: #cfe0fb; }
    .site-footer__social, .site-footer__lang {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 40px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 999px;
    }
    .site-footer__social { width: 40px; }
    .site-footer__social .lucide { width: 18px; height: 18px; }
    .site-footer__lang { gap: 6px; margin-left: 0; padding: 0 16px; color: var(--ink); }
    .site-footer__bottom { align-items: center; margin-top: 24px; }
}
