/* =====================================================================
   ORTO-CLASS — tema „Material"
   Forme și umbre inspirate de Material 3; ritm editorial, tipografie mare.
   Culorile pornesc de la identitatea ORTO-CLASS: albastrul logo-ului și
   portocaliul de accent de pe site-ul istoric.
   ===================================================================== */

:root {
    /* culori de bază */
    --navy-950: #071427;
    --navy-900: #0b1d36;
    --navy-800: #11294b;
    --navy-700: #1a3a66;
    --blue-600: #1a6fae;          /* text și butoane pe alb — contrast AA */
    --blue-500: #2592d0;          /* albastrul logo-ului */
    --blue-300: #7cc4f0;          /* accent pe fundal închis */
    --orange-500: #ff7b29;
    --orange-400: #ff934d;

    /* suprafețe și text */
    --surface: #ffffff;
    --surface-tint: #f3f6fa;
    --surface-high: #e9eef5;
    --outline: #dbe3ec;
    --text: #0b1d36;
    --text-2: #4b5b70;
    --text-on-dark: #f4f8fc;
    --text-on-dark-2: #b6c5d8;

    /* containere tonale: fundal / conținut */
    --tone-blue-bg: #dcedfb;   --tone-blue-fg: #0f5a93;
    --tone-peach-bg: #ffe6d6;  --tone-peach-fg: #a8480b;
    --tone-mint-bg: #d8f2e5;   --tone-mint-fg: #17704b;
    --tone-lilac-bg: #e8e2fb;  --tone-lilac-fg: #5a3fb0;
    --tone-sun-bg: #fff0c2;    --tone-sun-fg: #825c00;
    --tone-rose-bg: #fde1e5;   --tone-rose-fg: #ad2640;

    /* forme */
    --r-xs: 8px;
    --r-sm: 12px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 999px;

    /* elevație */
    --e1: 0 1px 2px rgba(11, 29, 54, .06), 0 1px 3px 1px rgba(11, 29, 54, .05);
    --e2: 0 2px 6px rgba(11, 29, 54, .07), 0 8px 24px rgba(11, 29, 54, .08);
    --e3: 0 12px 28px rgba(11, 29, 54, .14), 0 28px 64px rgba(11, 29, 54, .12);

    --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ease: cubic-bezier(.2, 0, 0, 1);
    --wrap: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --topbar-h: 72px;
}

/* ---------------------------------------------------------------- bază */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: var(--r-sm);
    background: var(--navy-900); color: #fff; font-weight: 600;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- butoane */

.btn {
    position: relative; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 24px;
    border: 0; border-radius: var(--r-full);
    font: 600 1rem/1 var(--font); letter-spacing: .01em;
    cursor: pointer; white-space: nowrap;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease), color .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: .9375rem; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.0625rem; }

.btn-filled { background: var(--blue-600); color: #fff; }
.btn-filled:hover { background: #155d93; box-shadow: var(--e1); }

.btn-accent { background: var(--orange-500); color: var(--navy-950); }
.btn-accent:hover { background: var(--orange-400); box-shadow: 0 8px 24px rgba(255, 123, 41, .35); }

.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1.5px #fff; }

.icon-btn {
    position: relative; overflow: hidden;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border: 0; border-radius: var(--r-full);
    background: transparent; color: var(--text); font-size: 1.125rem; cursor: pointer;
    transition: background-color .2s var(--ease);
}
.icon-btn:hover { background: var(--surface-high); }
.icon-btn-light { color: #fff; background: rgba(255, 255, 255, .12); }
.icon-btn-light:hover { background: rgba(255, 255, 255, .24); }

/* efectul ripple, adăugat din JS */
.ripple {
    position: absolute; border-radius: 50%; pointer-events: none;
    background: currentColor; opacity: .18; transform: scale(0);
    animation: ripple .6s var(--ease) forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.chip {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border-radius: var(--r-full);
    font-size: .875rem; font-weight: 600; letter-spacing: .01em;
}
.chip-on-dark { background: rgba(255, 255, 255, .1); color: var(--text-on-dark); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }
.pulse::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange-500);
    animation: pulse 2s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(3); opacity: 0; } }

/* containere tonale, folosite de iconuri și carduri */
.tone-blue  { background: var(--tone-blue-bg);  color: var(--tone-blue-fg); }
.tone-peach { background: var(--tone-peach-bg); color: var(--tone-peach-fg); }
.tone-mint  { background: var(--tone-mint-bg);  color: var(--tone-mint-fg); }
.tone-lilac { background: var(--tone-lilac-bg); color: var(--tone-lilac-fg); }
.tone-sun   { background: var(--tone-sun-bg);   color: var(--tone-sun-fg); }
.tone-rose  { background: var(--tone-rose-bg);  color: var(--tone-rose-fg); }

/* ---------------------------------------------------------------- bara de sus */

.topbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    transition: box-shadow .25s var(--ease);
}
.topbar.is-scrolled { box-shadow: 0 1px 0 var(--outline), 0 6px 20px rgba(11, 29, 54, .06); }

.topbar-inner { display: flex; align-items: center; gap: 24px; height: var(--topbar-h); }
.brand img { width: auto; height: 24px; }

.menu { display: flex; gap: 4px; margin-left: auto; }
.menu a {
    position: relative; padding: 10px 16px; border-radius: var(--r-full);
    color: var(--text-2); font-weight: 600; font-size: .9375rem;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.menu a:hover { background: var(--surface-tint); color: var(--text); }
.menu a.is-active { background: var(--tone-blue-bg); color: var(--tone-blue-fg); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; }

/* ---------------------------------------------------------------- hero */

.hero { padding: 8px 12px 0; }

.hero-panel {
    position: relative; overflow: hidden;
    border-radius: var(--r-xl);
    background: linear-gradient(160deg, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
    color: var(--text-on-dark);
    padding-block: clamp(56px, 8vw, 104px) clamp(56px, 7vw, 88px);
}

.hero-glow { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.hero-glow-1 { width: 520px; height: 520px; right: -140px; top: -180px; background: rgba(37, 146, 208, .45); }
.hero-glow-2 { width: 340px; height: 340px; left: -160px; bottom: -240px; background: rgba(255, 123, 41, .14); }

.hero-grid {
    position: relative;
    display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(32px, 5vw, 72px); align-items: center;
}

.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.display {
    font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.6rem);
    font-weight: 800; line-height: 1.02; letter-spacing: -.035em;
    color: #fff; text-wrap: balance;
}
.display .accent, .display .text-accent { color: var(--orange-500); }

.lead { max-width: 34em; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; color: var(--text-on-dark-2); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--text-on-dark); font-weight: 500; font-size: .9375rem; }
.trust i { color: var(--blue-300); }

.hero-media { position: relative; padding: 28px 8px 36px; }

.media-card {
    position: relative; overflow: hidden;
    border-radius: var(--r-xl); background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    transform: rotate(-1.2deg);
}
.media-card img { width: 100%; aspect-ratio: 1000 / 657; object-fit: cover; }

.float-card {
    position: absolute; display: flex; align-items: center; gap: 12px;
    padding: 12px 18px 12px 12px; border-radius: var(--r-lg);
    background: #fff; color: var(--text); box-shadow: var(--e3);
    font-size: .9375rem; line-height: 1.25;
    animation: float 6s ease-in-out infinite;
}
.float-card strong { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.float-card small { color: var(--text-2); font-weight: 500; }
.float-card-1 { left: -10px; bottom: 4px; }
.float-card-2 { right: -6px; top: 0; animation-delay: -3s; }
.float-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); font-size: 1.125rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.stats {
    position: relative; margin: clamp(40px, 6vw, 72px) 0 0;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px;
}
.stat { padding: 20px 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.stat dt { color: var(--text-on-dark-2); font-size: .9375rem; }
.stat dd { margin: 4px 0 0; order: -1; font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.stat { display: flex; flex-direction: column; }

/* ---------------------------------------------------------------- secțiuni */

.section { padding-block: clamp(72px, 9vw, 128px); }
.section-tint { background: var(--surface-tint); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
    font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem);
    font-weight: 800; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance;
}
.section-head p:not(.eyebrow) { margin-top: 16px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); color: var(--text-2); }

.eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-size: .8125rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-600);
}

.empty { padding: 32px; border-radius: var(--r-lg); background: var(--surface-tint); color: var(--text-2); text-align: center; }

/* ---------------------------------------------------------------- despre: carduri tonale */

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.feature {
    display: flex; flex-direction: column; gap: 12px;
    padding: 28px; border-radius: var(--r-xl);
    transition: transform .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature h3 { color: var(--text); font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.feature p { color: var(--text-2); }

.feature-icon {
    display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px;
    border-radius: var(--r-lg); background: rgba(255, 255, 255, .75); font-size: 1.375rem;
}

/* ---------------------------------------------------------------- servicii */

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.service {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; gap: 10px;
    padding: 24px; border-radius: var(--r-lg);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--outline);
    transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.service.is-clickable { cursor: pointer; }
.service.is-clickable:hover { box-shadow: inset 0 0 0 1px transparent, var(--e2); transform: translateY(-3px); }

.service-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: var(--r-md); font-size: 1.25rem; }

.service h3 { font-size: 1.0625rem; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.service p {
    color: var(--text-2); font-size: .9375rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* subsolul se lipește de baza cardului: toate cardurile dintr-un rând se termină la fel */
.service-foot {
    display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    margin-top: auto; padding-top: 14px;
    box-shadow: inset 0 1px 0 var(--outline);
}

.price {
    display: inline-flex; align-items: baseline; gap: 4px;
    font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.price small { font-size: .8125rem; font-weight: 600; color: var(--text-2); }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-600); font-weight: 700; font-size: .9375rem; }
.text-link i { transition: transform .25s var(--ease); }
.service.is-clickable:hover .text-link i { transform: translateX(4px); }

/* ---------------------------------------------------------------- filiale */

.branch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.branch {
    display: flex; flex-direction: column; gap: 18px;
    padding: 24px; border-radius: var(--r-lg);
    background: var(--surface); box-shadow: inset 0 0 0 1px var(--outline);
}

.branch-head { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.branch-head h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-full); font-size: .8125rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status.is-open { background: var(--tone-mint-bg); color: var(--tone-mint-fg); }
.status.is-closed { background: var(--surface-high); color: var(--text-2); }

.branch-info { display: flex; flex-direction: column; gap: 10px; }
.branch-info li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; color: var(--text); font-size: .9375rem; line-height: 1.5; }
.branch-info i { margin-top: 4px; color: var(--blue-600); text-align: center; }
.branch-info a { color: var(--text); font-weight: 600; }
.branch-info a:hover { color: var(--blue-600); }

.schedule { padding: 16px; border-radius: var(--r-md); background: var(--surface-tint); }
.schedule-title { margin-bottom: 8px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.schedule-title i { margin-right: 4px; }
.schedule li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 10px; margin-inline: -10px; border-radius: var(--r-xs); font-size: .9375rem; }
.schedule li span:first-child { color: var(--text-2); }
.schedule li span:last-child { font-weight: 600; font-variant-numeric: tabular-nums; }
.schedule li.is-today { background: var(--surface); box-shadow: var(--e1); }
.schedule li.is-today span:first-child { color: var(--text); font-weight: 700; }

/* butoane doar cu icon; numele serviciului rămâne în „title" și pentru cititoarele de ecran */
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.map-btn {
    position: relative; overflow: hidden;
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: var(--r-sm);
    box-shadow: inset 0 0 0 1px var(--outline);
    color: var(--text-2); font-size: 1.125rem;
    transition: background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.map-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px transparent, var(--e1); }
.map-btn.is-google:hover { background: var(--tone-blue-bg); color: var(--tone-blue-fg); }
.map-btn.is-waze:hover   { background: var(--tone-mint-bg); color: var(--tone-mint-fg); }
.map-btn.is-apple:hover  { background: var(--surface-high); color: var(--text); }

/* ---------------------------------------------------------------- contact */

.section-cta { padding-top: 0; }

.cta {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; align-items: flex-start; gap: 20px;
    padding: clamp(40px, 6vw, 80px);
    border-radius: var(--r-xl);
    background: var(--navy-900); color: var(--text-on-dark);
}
.cta h2 { position: relative; max-width: 14em; color: #fff; font-size: clamp(2.25rem, 1.4rem + 3.4vw, 4rem); font-weight: 800; line-height: 1.04; letter-spacing: -.035em; }
.cta p { position: relative; max-width: 36em; color: var(--text-on-dark-2); font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); }
.cta .actions { position: relative; margin-top: 8px; }
.cta-glow { position: absolute; width: 560px; height: 560px; right: -160px; bottom: -280px; border-radius: 50%; background: rgba(37, 146, 208, .4); filter: blur(80px); }

/* ---------------------------------------------------------------- subsol */

.footer { padding-block: 40px; border-top: 1px solid var(--outline); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.footer-brand img { height: 19px; width: auto; }
.footer-brand p { color: var(--text-2); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-links a { padding: 8px 12px; border-radius: var(--r-full); color: var(--text-2); font-weight: 600; font-size: .875rem; }
.footer-links a:hover { background: var(--surface-tint); color: var(--text); }

/* ---------------------------------------------------------------- buton flotant
   Atenție: clasa NU se poate numi „fab" — e clasa Font Awesome pentru iconurile de marcă
   (Waze, Apple), iar stilurile de aici le-ar face invizibile. */

.to-top {
    position: fixed; right: 20px; bottom: 20px; z-index: 90;
    display: grid; place-items: center; width: 56px; height: 56px;
    border-radius: var(--r-md); background: var(--navy-900); color: #fff; font-size: 1.125rem;
    box-shadow: var(--e3);
    opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--navy-700); }

/* ---------------------------------------------------------------- dialog */

.scrim {
    position: fixed; inset: 0; z-index: 300;
    display: flex; align-items: center; justify-content: center; padding: 24px;
    background: rgba(7, 20, 39, .55);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; transition: opacity .25s var(--ease);
}
.scrim[hidden] { display: none; }
.scrim.is-open { opacity: 1; }

.dialog {
    width: 100%; max-width: 680px; max-height: min(86vh, 900px);
    display: flex; flex-direction: column; overflow: hidden;
    border-radius: 28px; background: var(--surface); box-shadow: var(--e3);
    transform: translateY(24px) scale(.98); transition: transform .3s var(--ease);
}
.scrim.is-open .dialog { transform: none; }

.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px 24px 20px 32px; background: var(--tone-blue-bg); }
.dialog-head .price {
    padding: 6px 14px; border-radius: var(--r-full);
    background: var(--navy-900); color: #fff; font-size: 1rem; font-weight: 700;
}
.dialog-head .price small { color: rgba(255, 255, 255, .75); }

.dialog-head h2 { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 12px; }
.dialog-head .icon-btn:hover { background: rgba(11, 29, 54, .08); }

.dialog-body { overflow-y: auto; padding: 24px 32px 32px; overscroll-behavior: contain; }

.rich { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.rich > * + * { margin-top: 14px; }
.rich h3, .rich h4 { color: var(--text); font-weight: 700; letter-spacing: -.01em; line-height: 1.35; margin-top: 24px; }
.rich h3 { font-size: 1.125rem; }
.rich h4 { font-size: 1rem; }
.rich > :first-child { margin-top: 0; }
.rich strong { color: var(--text); font-weight: 700; }
.rich p:has(+ ul), .rich p:has(+ ol) { margin-bottom: -6px; }
.rich ul, .rich ol { padding-left: 1.4rem; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li { padding-left: .25rem; }
.rich li + li { margin-top: 6px; }
.rich li::marker { color: var(--blue-500); }
.rich blockquote { margin: 0; padding: 14px 18px; border-radius: var(--r-md); background: var(--tone-blue-bg); color: var(--text); }
.rich a { color: var(--blue-600); text-decoration: underline; text-underline-offset: 3px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.gallery:empty { display: none; }
.gallery button { padding: 0; border: 0; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--surface-tint); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .3s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }

.zoom { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 64px 72px; background: rgba(7, 20, 39, .92); }
.zoom[hidden] { display: none; }
.zoom img { max-width: 100%; max-height: 100%; border-radius: var(--r-md); object-fit: contain; }
.zoom-close { position: absolute; top: 16px; right: 16px; }
.zoom-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.zoom-prev { left: 16px; }
.zoom-next { right: 16px; }

body.has-dialog { overflow: hidden; }

/* ---------------------------------------------------------------- apariție la derulare */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- adaptare */

@media (max-width: 1080px) {
    .feature-grid, .service-grid, .branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .menu a { padding: 10px 12px; }
}

@media (max-width: 900px) {
    :root { --topbar-h: 64px; }

    .menu-toggle { display: inline-grid; }
    /* meniul devine panou fixat, deci nu mai împinge butoanele spre dreapta */
    .topbar-inner { gap: 12px; }
    .topbar-actions { margin-left: auto; }
    .menu {
        position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h) + 4px);
        flex-direction: column; gap: 2px; padding: 10px;
        border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--e3);
        opacity: 0; transform: translateY(-8px); pointer-events: none;
        transition: opacity .2s var(--ease), transform .2s var(--ease);
    }
    .menu.is-open { opacity: 1; transform: none; pointer-events: auto; }
    .menu a { padding: 14px 16px; font-size: 1rem; }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-media { max-width: 560px; }
}

@media (max-width: 640px) {
    .hero { padding: 4px 8px 0; }
    .hero-panel { border-radius: var(--r-lg); }
    .topbar-call span { display: none; }
    .topbar-call { width: 44px; padding: 0; }
    .brand img { height: 20px; }

    .feature-grid, .service-grid, .branch-grid { grid-template-columns: 1fr; }
    .feature, .service, .branch { padding: 22px; }

    .actions { width: 100%; }
    .actions .btn { flex: 1 1 100%; }

    .float-card { padding: 10px 14px 10px 10px; font-size: .875rem; }
    .float-card strong { font-size: 1.0625rem; }
    .float-icon { width: 38px; height: 38px; }
    .float-card-1 { left: 0; bottom: 0; }
    .float-card-2 { right: 0; top: 4px; }

    /* dialogul devine foaie de jos */
    .scrim { align-items: flex-end; padding: 0; }
    .dialog { max-width: none; max-height: 92vh; border-radius: 28px 28px 0 0; transform: translateY(40px); }
    .dialog-head { padding: 24px 16px 18px 24px; }
    .dialog-body { padding: 20px 24px 32px; }

    .zoom { padding: 64px 12px; }
    .zoom-nav { top: auto; bottom: 16px; transform: none; }
    .zoom-prev { left: calc(50% - 56px); }
    .zoom-next { right: calc(50% - 56px); }
}

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