/* ============================================================================
   MetaMed — stilul site-ului
   Design tokens preluate din tema live (verificate în browser):
     --theme #226daf · --theme2 #164477 · --title #000d44 · --body #788094
     accent portocaliu #f36f21 · verdele sublinierii #04ce78 · font Montserrat
   Scris de la zero (fără CSS din tema comercială Mediax).
   Imaginile sunt servite AVIF cu fallback WebP (vezi eng/optimize-images.mjs).
   ========================================================================= */

/* ---------- Font self-hosted (Montserrat variabil 400–800) ----------
   Self-hosted, nu Google Fonts CDN: elimină un round-trip către un terț,
   evită transferul IP-ului vizitatorului în afara UE (GDPR) și scoate
   fonturile de pe calea critică externă.
   `latin-ext` e obligatoriu pentru diacriticele românești (ș, ț, ă, î, â). */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --theme: #226daf;
  --theme2: #164477;
  --title: #000d44;
  /* Textul de corp: nuanța din temă (#788094) dădea un contrast de 3,95:1 pe
     alb și 3,68:1 pe fundalurile deschise — sub pragul de 4,5:1 cerut de WCAG
     AA pentru text normal. Aceasta e cea mai apropiată nuanță care trece pe
     toate cele trei fundaluri (4,85 / 4,52 / 4,56). Diferența se vede greu;
     lizibilitatea pentru pacienții cu vedere slabă, în schimb, se vede. */
  --body: #69718a;
  /* Nuanțele din tema site-ului actual. Cele dinainte erau mai albastre și mai
     saturate — o diferență mică, dar prezentă pe fiecare secțiune și bordură. */
  --smoke: #f5f7fa;
  --smoke2: #f5f8fd;
  --line: #d8dde1;
  /* Aerul dintre secțiuni, într-un singur loc. Câteva secțiuni suprascriu o
     singură latură (CTA pe mobil, banda echipei) — dacă valoarea ar fi scrisă
     de mână acolo, ar rămâne în urmă la prima ajustare și secțiunile acelea ar
     avea alt ritm decât restul paginii. */
  --sec-pad: clamp(56px, 7vw, 88px);
  --white: #fff;
  --orange: #f36f21;
  /* Galbenul stelelor de evaluare, ca pe site-ul actual (erau galbene, nu albastre). */
  --yellow: #ffb539;
  --green: #04ce78;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --radius: 20px;
  --shadow: 0 14px 40px -18px rgba(0, 13, 68, .22);
  --maxw: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; } /* decorațiunile absolute nu creează scroll orizontal */
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7;
  color: var(--body); background: var(--white); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: color .2s; }
h1, h2, h3, h4 { margin: 0; color: var(--title); font-weight: 700; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--theme); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 4vw, 30px); }
section { scroll-margin-top: 110px; }
/* Umplerea secțiunilor. Măsurat pe prima pagină, golul dintre două secțiuni era
   de 200–270px — două umpleri de 120px puse cap la cap. Redus la 88px: golul
   scade la ~176px, secțiunile rămân aerisite, dar pagina se scurtează cu vreo
   600px pe prima pagină, deci mai puțină derulare până la conținutul util. */
.sec { padding: var(--sec-pad) 0; }
.sec--smoke { background: var(--smoke); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--theme2); color: #fff; padding: 12px 18px; z-index: 200; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* titluri de secțiune */
.sub-title { display: inline-flex; align-items: center; gap: 10px; color: var(--theme); font-weight: 500; font-size: 18px; text-transform: uppercase; line-height: 28px; margin-bottom: 18px; }
.sub-title img { width: 24px; height: 24px; }
.sec-title { font-size: clamp(30px, 3.6vw, 48px); font-weight: 600; margin-bottom: 24px; }
.sec-text { max-width: 640px; }
.text-center { text-align: center; }
.text-center .sec-text { margin-inline: auto; }
.text-center .sub-title { justify-content: center; }

/* butoane */
.th-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--theme2); color: #fff; font-weight: 700; font-size: 14px; line-height: 1;
  text-transform: uppercase; padding: 20px 30px; min-width: 170px; border-radius: 30px;
  border: 1px solid var(--theme2); cursor: pointer; transition: all .4s ease-in-out;
  font-family: var(--font); text-align: center;
}
/* Portocaliul și verdele temei sunt culori DESCHISE: textul alb pe ele dă 2,95:1
   și 1,98:1, mult sub pragul WCAG de 4,5:1 — pe butonul principal al unui site
   medical, adică exact acolo unde contează. Păstrăm culorile de fundal exact ca
   în temă și schimbăm doar textul, pe albastrul închis al site-ului: 6,23:1 pe
   portocaliu și 9,28:1 pe verde. Pe albastru, textul alb rămâne (9,87:1). */
.th-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--title); transform: translateY(-3px); }
.th-btn--outline { background: transparent; color: var(--theme2); }
.th-btn--white { background: #fff; border-color: #fff; color: var(--theme2); }
.th-btn--orange { background: var(--orange); border-color: var(--orange); color: var(--title); }
/* Programare prin WhatsApp — a doua cale, sub formular, ca pe site-ul actual. */
.th-btn--wa { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 12px; background: #25d366; border-color: #25d366; color: var(--title); }
.th-btn--wa:hover { background: #1da851; border-color: #1da851; color: var(--title); }
.th-btn--wa svg { width: 18px; height: 18px; }
.th-btn--orange:hover { background: var(--theme2); border-color: var(--theme2); color: #fff; }

/* apariție la scroll */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .strip-track { animation: none; flex-wrap: wrap; width: auto; }
  .shape-med { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ TOPBAR ============ */
.topbar { background: var(--theme2); color: #fff; font-size: 14.5px; }
.topbar .container { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); padding-top: 9px; padding-bottom: 9px; }
.tb-item { display: inline-flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.tb-item b { font-weight: 600; }
.tb-item:hover { color: #cfe0f2; }
.tb-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .85); display: grid; place-items: center; }
.tb-ic svg { width: 14px; height: 14px; }
.tb-social { margin-left: auto; display: inline-flex; align-items: center; gap: 14px; white-space: nowrap; }
.tb-social a { display: inline-flex; color: #fff; }
.tb-social a:hover { color: #cfe0f2; }
.tb-social svg { width: 16px; height: 16px; }
@media (max-width: 1200px) { .tb-item:nth-of-type(2) { display: none; } }
@media (max-width: 1023px) { .topbar { display: none; } }

/* ============ HEADER ============ */
.header { position: sticky; top: 0; z-index: 90; background: #fff; box-shadow: 0 10px 20px rgba(2, 29, 53, .06); }
.header .container { display: flex; align-items: center; gap: 26px; }
.logo img { height: 64px; width: auto; }
.main-menu { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0 0 0 auto; padding: 0; }
.main-menu > li { list-style: none; position: relative; }
.main-menu a { font-weight: 600; font-size: 16px; text-transform: uppercase; color: var(--title); padding: 37px 0; display: inline-block; }
.main-menu a:hover, .main-menu a[aria-current="page"] { color: var(--theme); }
.main-menu .has-sub > a::after { content: " +"; color: var(--theme); }
.sub-menu { position: absolute; top: 100%; left: -18px; margin: 0; min-width: 260px; background: #fff; border-radius: 0 0 14px 14px; box-shadow: var(--shadow); padding: 10px 0; opacity: 0; visibility: hidden; transform: scaleY(0); transform-origin: top; transition: .4s ease-in-out; z-index: 95; }
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: scaleY(1); }
.sub-menu li { list-style: none; }
.sub-menu a { display: block; padding: 8px 22px; font-size: 14px; text-transform: none; }
.header-cta { display: flex; align-items: center; gap: 14px; margin-left: 6px; }
.menu-toggle { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; transition: .2s; flex: 0 0 auto; }
.menu-toggle:hover { border-color: var(--theme); }
.menu-toggle span { position: relative; width: 20px; height: 2px; background: var(--theme2); display: block; }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--theme2); }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
@media (max-width: 1023px) {
  .main-menu, .header-cta .th-btn { display: none; }
  .header .container { padding-top: 12px; padding-bottom: 12px; }
  .logo img { height: 52px; }
}

/* ============ DRAWER (meniu mobil) ============ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .75); opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; z-index: 98; border: 0; padding: 0; }
.drawer { position: fixed; top: 0; right: 0; height: 100dvh; width: min(450px, calc(100vw - 15px)); background: #fff; z-index: 99; transform: translateX(105%); transition: transform 1s ease; will-change: transform; display: flex; flex-direction: column; padding: 60px 30px 40px; overflow-y: auto; }
/* `display: flex` de mai sus bate regula implicită a browserului pentru
   atributul `hidden`, deci sertarul „închis" rămânea în pagină: scos din ecran
   cu `translateX`, dar tot focalizabil cu Tab și tot citit de cititoarele de
   ecran — un meniu invizibil prin care utilizatorul de tastatură trecea pe
   fiecare pagină. JS-ul îl marca deja corect cu `hidden`; abia acum contează. */
.drawer[hidden] { display: none; }
body.drawer-open .drawer { transform: none; }
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
body.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-head img { height: 46px; }
.drawer-close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; color: var(--theme2); line-height: 1; }
.drawer-close:hover { background: var(--theme2); color: #fff; }
.drawer-menu { list-style: none; margin: 0 0 24px; padding: 0; border-top: 1px solid var(--line); }
.drawer-menu > li { border-bottom: 1px solid var(--line); }
.drawer-menu a { display: block; padding: 13px 4px; font-weight: 600; color: var(--title); font-size: 15px; }
.drawer-menu a:hover { color: var(--theme); }
.drawer-menu .d-sub { list-style: none; padding: 0 0 8px 16px; margin: 0; display: none; }
.drawer-menu .d-sub a { font-weight: 500; font-size: 14px; padding: 7px 4px; color: var(--body); }
.drawer-menu li.open .d-sub { display: block; }
.d-toggle { display: flex; align-items: center; justify-content: space-between; cursor: pointer; width: 100%; background: none; border: 0; font-family: var(--font); font-weight: 600; font-size: 15px; color: var(--title); padding: 13px 4px; text-align: left; }
.d-toggle::after { content: "+"; color: var(--theme); font-weight: 700; padding-right: 6px; transition: .2s; }
li.open > .d-toggle::after { content: "–"; }
.drawer-info { font-size: 14px; line-height: 2; }
.drawer-info a { color: var(--body); }
.drawer-info a:hover { color: var(--theme); }
.drawer-info b { color: var(--title); }

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden; background-color: var(--smoke2);
  background-image: image-set(url("/img/hero-bg.avif") type("image/avif"), url("/img/hero-bg.webp") type("image/webp"));
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* Banda de titlu a paginilor interioare („--hero-pad") folosește fundalul din
   tema site-ului actual, recuperat de pe serverul vechi. Prima pagină păstrează
   hero-ul ei, cu fotografia mare. */
.hero[style*="--hero-pad"] {
  background-image: image-set(url("/img/breadcumb-bg.avif") type("image/avif"),
                              url("/img/breadcumb-bg.webp") type("image/webp"));
}
.hero-img { position: absolute; right: 4%; bottom: 0; top: 0; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; }
.hero-img img { height: 92%; width: auto; max-width: 48vw; object-fit: contain; object-position: bottom; }
.hero .container { position: relative; z-index: 2; padding-top: clamp(90px, 12vw, 200px); padding-bottom: clamp(90px, 12vw, 200px); }
@media (max-width: 900px) { .hero-img { display: none; } }
.hero .sub-title { margin-bottom: 27px; }
.hero h1 { font-size: clamp(38px, 4.5vw, 64px); font-weight: 700; line-height: 1.12; margin: 0 0 18px; max-width: 820px; }
.line-text { color: var(--theme); position: relative; display: inline-block; }
.line-text::after {
  content: ""; position: absolute; left: 0; bottom: -8px; width: 100%; height: 22px;
  background: url('data:image/svg+xml,<svg width="288" height="22" viewBox="0 0 288 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 10.2839C33.4393 5.13087 76.1911 2 123.041 2C194.686 2 256.746 9.32162 287 20" stroke="%2304CE78" stroke-width="3"/></svg>') no-repeat left bottom/100% auto;
  /* Linia se „desenează" de la stânga la dreapta la încărcare, ca pe site-ul
     actual, unde nu e statică. Animăm lățimea zonei de fundal, nu conturul
     SVG-ului: acesta e imagine de fundal, deci stroke-dasharray nu-l atinge. */
  animation: linie-desen .9s ease-out .25s both;
}
@keyframes linie-desen {
  from { background-size: 0% auto; }
  to   { background-size: 100% auto; }
}
/* Cine a cerut mai puțină mișcare vede linia direct desenată. */
@media (prefers-reduced-motion: reduce) {
  .line-text::after { animation: none; background-size: 100% auto; }
}
.hero p { font-size: 16.5px; max-width: 600px; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; }
/* forma translucidă din spatele fotografiei (decor din tema originală) */
.hero-pattern { position: absolute; right: 3%; bottom: 0; width: min(828px, 62vw); height: auto; opacity: .55; pointer-events: none; z-index: 0; }
@media (max-width: 900px) { .hero-pattern { display: none; } }

.shape-mockup { position: absolute; pointer-events: none; z-index: 0; }
.shape-med { right: 5%; bottom: 7%; width: 110px; animation: jump 3.5s ease-in-out infinite; }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-22px); } }

/* bandă cu servicii (marquee) */
.strip { background: var(--theme2); color: #fff; overflow: hidden; padding: 16px 0; }
.strip-track { display: flex; gap: 0; width: max-content; animation: marquee 28s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-track span { display: inline-flex; align-items: center; gap: 16px; padding: 0 26px; font-weight: 600; font-size: 16px; white-space: nowrap; }
.strip-track span::after { content: "✚"; color: #7fb1dd; font-size: 14px; margin-left: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ DESPRE ============ */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.about-media { position: relative; }
/* proporția fotografiei de pe site-ul actual (546x457) */
.about-media img { border-radius: var(--radius); aspect-ratio: 6/5; object-fit: cover; width: 100%; height: auto; }
/* selector mai specific decât `.about-media img`, altfel decorul ar fi întins
   la lățimea fotografiei */
/* Pastilele plutesc în STÂNGA, SUB fotografie — cam la nivelul rândului cu
   „Vezi specializările" din coloana de text (cerința beneficiarului). Cu
   `z-index: -1` stăteau în spatele fotografiei și nu se vedeau deloc; acum sunt
   în întregime sub ea, deci pot sta deasupra fără să acopere nimic. Spațiul de
   dedesubt e umplerea secțiunii + umplerea secțiunii următoare — loc gol. */
.about-media img.about-decor { position: absolute; right: -60px; bottom: -150px; left: auto; top: auto;
                               width: 190px; height: auto; aspect-ratio: auto; border-radius: 0;
                               pointer-events: none; z-index: 1;
                               animation: jump 3.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .about-decor { animation: none; } }
@media (max-width: 900px) { .about-decor { display: none; } }

/* Cartea cu adresa stă cu baza pe baza fotografiei mari (bottom: 0), nu plutind
   deasupra ei — aliniere cerută de beneficiar, ca pe site-ul actual. */
.about-card { position: absolute; right: -10px; bottom: 0; background: #fff; padding: 22px 26px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; max-width: 230px; }
.about-card b { display: block; color: var(--theme2); font-size: 17px; font-weight: 700; line-height: 1.45; margin-bottom: 8px; }
.about-card .stars { color: var(--yellow); letter-spacing: 3px; font-size: 15px; margin-bottom: 8px; }
.about-card a { display: block; color: var(--title); font-weight: 600; font-size: 14.5px; line-height: 1.7; }
.about-card a:hover { color: var(--theme); }
.about-list { list-style: none; margin: 8px 0 26px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.about-list li { position: relative; padding-left: 30px; font-weight: 600; color: var(--title); font-size: 15px; }
/* Iconița de pe site-ul actual: Font Awesome `fa-heart-pulse` (solid).
   Folosim glifa OFICIALĂ, aceeași geometrie, servită ca SVG local
   (/img/heart-pulse.svg, 989 octeți) în loc de webfont-ul complet — un font de
   iconițe pentru un singur simbol ar costa zeci de KB și ar intra în bugetul
   de performanță (criteriu de acceptanță: Lighthouse ≥ 90).
   Prin `mask`, nu `background-image`: culoarea vine din CSS, deci iconița
   urmează tema și nu trebuie duplicat fișierul pentru fiecare nuanță.
   Licență: iconițele Font Awesome Free sunt CC BY 4.0 — atribuirea e păstrată
   în antetul fișierului SVG, nu o ștergeți. */
.about-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 19px; height: 17px;
  background-color: var(--theme);
  -webkit-mask: url("/img/heart-pulse.svg") no-repeat center / contain;
          mask: url("/img/heart-pulse.svg") no-repeat center / contain;
}
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-card { position: static; max-width: none; margin-top: 18px; } }

/* ============ SPECIALITĂȚI ============ */
/* Flex, nu grid: dacă pe ultimul rând rămân 1–2 carduri, sunt centrate,
   nu lipite în stânga (și nici întinse pe toată lățimea). */
.services { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 44px; }
.services > * { flex: 0 1 calc(33.333% - 16px); min-width: 280px; }
@media (max-width: 900px) { .services > * { flex-basis: calc(50% - 12px); } }
@media (max-width: 620px) { .services > * { flex-basis: 100%; } }
.service-card { position: relative; background: #fff; border-radius: var(--radius); padding: 40px 28px 34px; text-align: center; transition: all .4s ease-in-out; overflow: hidden; box-shadow: 0 8px 30px -20px rgba(0, 13, 68, .18); }
.service-card::before {
  content: ""; position: absolute; inset: 0;
  background-image: image-set(url("/img/service_card_bg.avif") type("image/avif"), url("/img/service_card_bg.webp") type("image/webp"));
  /* Sus-dreapta, ca pe site-ul actual (`.box-shape { top:0; right:0 }`). */
  background-repeat: no-repeat; background-position: right top; background-size: 140px;
  transition: opacity .4s ease-in-out; pointer-events: none;
}
.service-card > * { position: relative; }
.service-icon { width: 84px; height: 84px; border-radius: 50%; background: var(--smoke); display: grid; place-items: center; margin: 0 auto 20px; transition: all .4s ease-in-out; }
.service-icon img { width: 50px; height: 50px; object-fit: contain; transition: transform .4s ease-in-out; }
.service-card h3 { font-size: 23px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.service-card h3 a { transition: color .4s ease-in-out; }
.service-card p { font-size: 14.5px; margin-bottom: 20px; transition: color .4s ease-in-out; }
/* Pe pagina de specialități, sub slogan apare și descrierea specialității.
   Fără `opacity`: pe alb ar coborî contrastul sub pragul WCAG 2.2 AA (4,5:1). */
.service-card { display: flex; flex-direction: column; }
.service-card .service-tagline { font-weight: 600; margin-bottom: 8px; }
.service-card .service-desc { font-size: 13.5px; line-height: 1.65; color: #5b6478; }
/* Descrierile au lungimi diferite; butonul rămâne aliniat la baza cardului. */
.service-card .service-link { margin-top: auto; align-self: center; }
.service-card:hover .service-desc { color: #cfe0f2; }
.service-link { display: inline-flex; align-items: center; justify-content: center; background: var(--theme2); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; padding: 14px 26px; border-radius: 30px; transition: all .4s ease-in-out; }
.service-link:hover { background: var(--orange); color: var(--title); }
.service-card:hover { background: var(--theme2); box-shadow: var(--shadow); transform: translateY(-6px); }
.service-card:hover::before { opacity: 0; }
.service-card:hover h3 a { color: #fff; }
.service-card:hover p { color: #cfe0f2; }
.service-card:hover .service-icon { background: var(--theme); }
.service-card:hover .service-icon img { transform: rotateY(180deg); }
.service-card:hover .service-link { background: var(--orange); color: var(--title); }

/* ============ CTA ============ */
/* Ca pe site-ul actual: fotografia stă la dimensiunea ei naturală și se sprijină
   exact pe baza benzii albastre (nu e centrată vertical, nu are spațiu dedesubt). */
/* Fundalul benzii CTA, recuperat din tema site-ului actual. Culoarea rămâne
   dedesubt: dacă imaginea nu se încarcă, banda arată tot ca pe original. */
.cta { position: relative; overflow: hidden; padding-bottom: 0;
       background: var(--theme2) image-set(url("/img/cta_bg_6.avif") type("image/avif"),
                                           url("/img/cta_bg_6.webp") type("image/webp"))
                   center / cover no-repeat; }
/* `minmax(0, 1fr)`, nu `1fr`: altfel coloana s-ar lăți cât fotografia (771px),
   iar textul ar rămâne strivit. Așa coloanele sunt egale, iar imaginea iese
   controlat peste marginea din dreapta. */
.cta .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: end; }
/* fără `text-wrap: balance` aici: pe site-ul actual titlul curge pe toată lățimea
   coloanei (3 rânduri), iar echilibrarea l-ar strânge pe 5 rânduri */
.cta h2 { color: #fff; font-size: clamp(26px, 3.75vw, 48px); margin-bottom: 14px; text-wrap: normal; }
.cta p { color: #cfe0f2; margin-bottom: 28px; font-size: 17px; }
.cta-text { padding-bottom: var(--sec-pad); }
/* Fotografia rămâne la dimensiunea ei și depășește coloana spre dreapta, fiind
   decupată de marginea secțiunii — exact ca pe site-ul actual. */
.cta-img { align-self: end; line-height: 0; }
.cta-img img { width: 771px; max-width: none; height: auto; display: block; }
@media (max-width: 900px) {
  .cta { padding-bottom: var(--sec-pad); }
  .cta .container { grid-template-columns: 1fr; }
  .cta-text { padding-bottom: 0; }
  .cta-img { display: none; }
}

/* ============ DE CE NOI ============ */
.why {
  background-color: var(--smoke);
  background-image: image-set(url("/img/why_bg_3.avif") type("image/avif"), url("/img/why_bg_3.webp") type("image/webp"));
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
/* `stretch`, ca ambele coloane să aibă aceeași înălțime. Cu `start`, coloana de
   fotografii își impunea înălțimea naturală și cobora cu sute de pixeli sub
   ultimul punct din listă. Înălțimea rândului o dă acum TEXTUL: fotografiile au
   `height: 100%` și `min-height: 0`, deci nu contribuie cu înălțime proprie. */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: stretch; }
/* fotografiile sunt pătrate pe site-ul actual (546x546), nu turtite */
/* Fotografiile umplu exact înălțimea coloanei de text, nu mai mult: pătrate,
   coborau cu mult sub ultimul punct din listă și lăsau un gol vizibil. */
/* `minmax(0, 1fr)` pe rânduri, nu `1fr`: altfel rândul nu poate coborî sub
   dimensiunea intrinsecă a imaginii, iar întinderea n-are niciun efect. */
.why-media { display: grid; gap: 22px; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
             align-self: stretch; min-height: 0; }
/* `height: auto` e necesar: altfel atributul height din HTML face înălțimea
   definită, iar aspect-ratio e ignorat. */
/* `height: 100%` + `aspect-ratio: auto`: înălțimea vine din grilă (jumătate din
   coloana de text), nu din proporția imaginii. `object-fit: cover` taie curat. */
.why-media img { border-radius: var(--radius); aspect-ratio: auto; object-fit: cover; width: 100%; height: 100%; }
.why-media picture { display: block; min-height: 0; }
.why-item { position: relative; display: flex; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.why-item:last-child { border-bottom: none; }
.why-item:not(:last-child)::before { content: ""; position: absolute; left: 25px; top: 72px; bottom: -6px; width: 1.5px; background: var(--theme); opacity: .45; }
.why-num { flex: 0 0 auto; font-size: 16px; font-weight: 700; color: var(--theme); background: #fff; border: 1.5px solid var(--theme); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.why-item h3 { font-size: 18px; margin-bottom: 4px; }
.why-item p { font-size: 14.5px; margin: 0; }
/* Sub 900px grila se pliază pe o coloană: fotografiile nu mai au alături textul
   după a cărui înălțime să se potrivească, iar `minmax(0, 1fr)` s-ar rezolva la
   ZERO — containerul n-are înălțime definită, imaginile au `height: 100%`, deci
   nimeni nu dă înălțimea. Rezultatul ar fi rânduri de 0px: fotografiile dispar
   complet, și nici nu se încarcă (fiind `loading="lazy"`, nu intră niciodată în
   ecran). Pe mobil revin deci la proporția lor pătrată, ca în tema originală. */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-media { grid-template-rows: auto auto; }
  .why-media img { height: auto; aspect-ratio: 1; }
}

/* ============ CIFRE ============ */
/* Banda cu cifre NU e pe toată lățimea (cerința beneficiarului, ca în tema
   originală): albastrul e un card rotunjit, lat cât containerul, nu o bandă
   din margine în margine.
   Din tema originală se reproduce și suprapunerea: cardul intră peste secțiunea
   următoare, efectul care dă adâncime compoziției. Doar aici — restul secțiunilor
   rămân plate, ca să nu complice comportamentul pe ecrane mici. */
.counters { position: relative; z-index: 2; margin-bottom: -99px; }
@media (max-width: 900px) { .counters { margin-bottom: 0; } }
.counters .container { background: var(--theme2); border-radius: 24px;
                       display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                       gap: 26px; padding: 52px clamp(20px, 4vw, 56px); text-align: center; }
.counter b { display: block; font-size: clamp(38px, 4.6vw, 64px); font-weight: 600; color: #a7dae9; line-height: 1.1; }
.counter span { color: #fff; font-weight: 600; font-size: 16px; }
/* Separatoarele verticale dintre cifre, ca în original — doar pe ecrane late,
   unde cifrele stau sigur pe un singur rând. */
@media (min-width: 1000px) {
  .counter + .counter { border-left: 1px solid rgba(255, 255, 255, .22); }
}

/* ============ ECHIPA (Swiper) ============ */
/* Titlul secțiunii de echipă e centrat, ca în tema originală. */
.team-head { text-align: center; }
.slider-btn { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--theme2); font-size: 18px; cursor: pointer; transition: .2s; display: grid; place-items: center; }
.slider-btn:hover { background: var(--theme2); color: #fff; border-color: var(--theme2); }
.slider-btn:disabled { opacity: .45; cursor: default; }
/* Săgețile stau ÎNAINTE și DUPĂ poze (stânga/dreapta caruselului), centrate pe
   verticala fotografiilor — ca în tema originală, nu lângă titlu. */
.team-wrap { position: relative; }
.team-arrow { position: absolute; top: 45%; transform: translateY(-50%); z-index: 5; box-shadow: var(--shadow); }
.team-arrow--prev { left: -25px; }
.team-arrow--next { right: -25px; }
@media (max-width: 1320px) { .team-arrow--prev { left: 4px; } .team-arrow--next { right: 4px; } }
/* Umplerea de sus desparte titlul centrat de rândul de fotografii. */
.team-slider { padding: 54px 4px 10px; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; height: auto; }
.team-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.team-img { background: var(--smoke2); aspect-ratio: 1/1; overflow: hidden; }
.team-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: .4s ease-in-out; }
.team-card:hover .team-img img { transform: scale(1.06); }
.team-body { padding: 18px 20px 22px; text-align: center; }
.team-body h3 { font-size: 19px; font-weight: 600; }
.team-body p { font-size: 13.5px; margin: 4px 0 0; min-height: 40px; }

/* ============ PROGRAMARE ============ */
.appt { background: var(--smoke2); }
/* Trei coloane, ca pe site-ul actual: program · fotografii · formular */
/* Două coloane: programul clinicii + cardul alb comun (poze + formular).
   `start`, nu `center`: cardul din dreapta e mai înalt cu vreo 80px, iar
   centrarea lăsa 110px de gol deasupra programului — spațiu mort, vizibil. */
.appt-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }

/* Caseta cu programul: fundal navy, peste care se suprapune un chenar
   decorativ ce iese în stânga, sus și jos — ca pe site-ul actual. */
.appt-hours { position: relative; z-index: 2; justify-self: start; max-width: 338px; padding: 40px 30px; border-radius: var(--radius); }
.appt-hours::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--theme2); border-radius: var(--radius); }
.appt-hours-frame { position: absolute; z-index: -2; top: -40px; bottom: -40px; left: -60px; right: 138px; border: 3px solid #d8dde1; border-radius: var(--radius); }
.appt-hours-title { color: var(--white); font-size: 30px; font-weight: 600; line-height: 1.417; margin: -10px 0 15px; }

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 14px; color: var(--white); font-size: 16px; line-height: 28px; padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.hours-list li:last-child { padding-bottom: 0; margin-bottom: -8px; border-bottom: 0; }
.hours-time { white-space: nowrap; }
/* două fotografii decalate, ca pe site-ul actual */
/* Cardul alb comun: fotografiile în stânga, formularul în dreapta — ca pe
   site-ul actual, nu două insule separate pe fundalul secțiunii. */
.appt-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
             padding: clamp(24px, 3.5vw, 40px);
             display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
             gap: clamp(20px, 3vw, 36px); align-items: center; }
.appt-media { display: grid; gap: 18px; align-content: center; }
.appt-img { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
/* Formularul nu mai are card propriu: cardul e cel comun. */
.appt-form { background: none; border-radius: 0; box-shadow: none; padding: 0; }
.appt-form h2 { font-size: 24px; margin-bottom: 20px; text-align: center; }
/* Butonul WhatsApp stă sub card, centrat, ca în original. */
.appt-wa { text-align: center; margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.appt-form input, .appt-form select, .appt-form textarea { width: 100%; font-family: var(--font); font-size: 14.5px; color: var(--title); background: #f5f7fa; border: 1px solid transparent; border-radius: 27px; padding: 17px 22px; margin-bottom: 14px; outline: none; transition: .2s; }
.appt-form :is(input, select, textarea):focus { border-color: var(--theme); background: #fff; }
.appt-form textarea { min-height: 110px; resize: vertical; border-radius: 18px; }
.form-note { font-size: 12.5px; line-height: 1.6; margin: 0 0 14px; }
.form-msg { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 14px; }
.form-msg--ok { background: #e7f6ec; color: #1c7c3d; }
.form-msg--err { background: #fdecec; color: #a32020; }
.field-error { display: block; color: #a32020; font-size: 12.5px; margin: -8px 0 12px 22px; }
/* Chenarul iese în afara containerului, deci îl păstrăm doar pe ecranele largi,
   unde are loc; sub 1100px programul trece deasupra cardului. */
@media (max-width: 1100px) {
  .appt-grid { grid-template-columns: 1fr; }
  .appt-hours-frame { display: none; }
  .appt-hours { max-width: none; justify-self: stretch; }
}
/* Pe ecrane înguste, cardul comun se așază pe o coloană: pozele deasupra,
   una lângă alta, formularul dedesubt. */
@media (max-width: 760px) {
  .appt-card { grid-template-columns: 1fr; }
  .appt-media { grid-template-columns: 1fr 1fr; align-items: start; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ PROCES ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 38px; }
.step-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
/* pe site-ul actual imaginea pasului e un pătrat mic (176x176), nu o bandă lată */
.step-img { position: relative; display: flex; justify-content: center; padding-top: 24px; }
.step-img img { width: 176px; height: 176px; object-fit: cover; border-radius: 14px; }
.step-num { position: absolute; left: 18px; bottom: -20px; width: 52px; height: 52px; border-radius: 50%; background: var(--theme); color: #fff; font-weight: 800; display: grid; place-items: center; border: 4px solid #fff; }
.step-body { padding: 32px 20px 24px; }
.step-body h3 { font-size: 18px; margin-bottom: 6px; }
.step-body p { font-size: 14px; margin: 0; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
/* Ca pe site-ul actual: carduri gri fără bordură, mai aerisite. */
.acc-item { background: var(--smoke); border: none; border-radius: 20px; margin-bottom: 24px; overflow: hidden; }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; background: none; border: none; font-family: var(--font); font-weight: 500; font-size: 18px; color: var(--title); text-align: left; padding: 22px 30px; cursor: pointer; }
.acc-btn::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: var(--smoke2); color: var(--theme); font-size: 18px; display: grid; place-items: center; transition: .25s; }
.acc-item.open .acc-btn::after { content: "–"; background: var(--theme); color: #fff; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.acc-panel p { padding: 0 22px 20px; font-size: 14.5px; margin: 0; }
/* fotografia e patrata pe site-ul actual (546x546) */
.faq-media img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; width: 100%; height: auto; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }

/* ============ Fundaluri decorative de secțiune ============ */
/* Recuperate din tema site-ului actual (audit vizual, 2026-07-30). Fără ele,
   secțiunile erau plate: pe original fiecare are un fundal discret, care dă
   adâncime fără să concureze cu textul. Culoarea rămâne dedesubt, ca fundalul
   să nu fie indispensabil dacă imaginea nu se încarcă. */
.sec-bg { background-repeat: no-repeat; }
.sec-bg--specialitati { background-image: image-set(url("/img/bg-1.avif") type("image/avif"),
                                                    url("/img/bg-1.webp") type("image/webp"));
                        background-position: center; background-size: cover; }
/* Banda de cifre intră peste această secțiune (vezi `.counters`), deci titlul
   are nevoie de spațiu suplimentar sus, ca să nu fie acoperit. */
.sec-bg--echipa { padding-top: calc(var(--sec-pad) + 99px); }
@media (max-width: 900px) { .sec-bg--echipa { padding-top: var(--sec-pad); } }
.sec-bg--echipa { background-image: image-set(url("/img/team_bg_1-1.avif") type("image/avif"),
                                              url("/img/team_bg_1-1.webp") type("image/webp"));
                  background-position: top center; }
.sec-bg--proces { background-image: image-set(url("/img/process_bg_1.avif") type("image/avif"),
                                              url("/img/process_bg_1.webp") type("image/webp"));
                  background-position: center; background-size: cover; }
.sec-bg--blog { background-image: image-set(url("/img/blog_bg_1.avif") type("image/avif"),
                                            url("/img/blog_bg_1.webp") type("image/webp"));
                background-position: center; background-size: cover; }

/* ============ Banner PNRR (obligație de vizibilitate) ============ */
/* Banner-ul oficial stă în capul paginii, înaintea barei de contact și a meniului:
   ghidul cere ca siglele să fie vizibile în partea de sus a ecranului, fără derulare.
   Imaginea e policromă, la lățime completă, cu proporția originală păstrată. */
.pnrr { background: #fff; }
.pnrr-banner { display: block; line-height: 0; }
.pnrr-banner img { display: block; width: 100%; height: auto; max-width: 1517px; margin: 0 auto; }
/* Mențiunea obligatorie, imediat sub banner. */
.pnrr-mentiune { margin: 0; padding: 7px 16px 9px; text-align: center;
                 font-size: 12px; line-height: 1.45; color: #5b6478;
                 border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .pnrr-mentiune { font-size: 11px; padding: 6px 12px 8px; } }

/* ============ Pagina de eroare ============ */
.eroare .container { text-align: center; max-width: 720px; }
.eroare-img { width: min(420px, 82vw); height: auto; margin: 0 auto 34px; display: block; }
.eroare-titlu { font-size: clamp(24px, 3vw, 36px); font-weight: 600; margin-bottom: 14px; }
.eroare-text { max-width: 520px; margin: 0 auto 30px; }
.eroare-actiuni { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
/* Butonul secundar: aceeași formă, fără umplere, ca acțiunea principală să rămână evidentă. */
.eroare-actiuni .th-btn:not(.th-btn--orange) { background: transparent; color: var(--theme2);
                                               box-shadow: inset 0 0 0 2px var(--theme2); }
.eroare-actiuni .th-btn:not(.th-btn--orange):hover { background: var(--theme2); color: #fff; }
.eroare-sugestii { margin: 34px 0 0; font-size: 14.5px; }
.eroare-sugestii a { color: var(--theme); font-weight: 600; text-decoration: underline; }

/* ---- Întrebări frecvente pe bandă albastră (prima pagină) ----
   Ca pe site-ul actual: fondul e albastru, iar fotografia se sprijină exact pe
   baza benzii — nu e centrată vertical și nu are spațiu dedesubt. Același tipar
   ca la secțiunea CTA: `padding-bottom: 0` pe secțiune + `align-items: end` pe
   grilă, cu `overflow: hidden` ca imaginea să fie tăiată curat de marginea benzii. */
.faq-sec { background: var(--theme2); padding-bottom: 0; overflow: hidden; }
.faq-sec .faq-grid { align-items: end; }
.faq-sec .sec-title { color: #fff; }
.faq-sec .sub-title { color: #fff; }
/* Fotografia își păstrează proporția reală și stă lipită de bază, fără colțuri
   rotunjite: altfel s-ar vedea o margine curbată peste banda albastră.
   `width: 100%` pe coloană: la dimensiunea naturală părea pierdută în chenar. */
.faq-sec .faq-media { align-self: end; }
.faq-sec .faq-media img { border-radius: 0; aspect-ratio: auto; object-fit: contain;
                          display: block; margin: 0 auto; width: 100%; max-width: 520px;
                          vertical-align: bottom; }
/* Pe ecrane mici imaginea trece sub text; rămâne lipită de baza benzii. */
@media (max-width: 900px) {
  .faq-sec .faq-media { margin-top: 28px; }
  .faq-sec .faq-media img { margin-left: auto; margin-right: auto; max-width: 380px; }
}

/* ============ TESTIMONIALE ============ */
.testi { position: relative; background: #fff; }
/* Titlul rămâne centrat; cardurile din interior sunt aliniate la stânga. */
.testi .container { position: relative; max-width: 860px; text-align: center; }
.testi .testi-slider { text-align: left; }
.testi-slider { margin-top: 34px; }
/* Card de testimonial ca pe site-ul actual: fond gri, text aliniat la stânga,
   stele aurii sus, autorul jos, iar semnul de citat în colțul din dreapta-jos. */
.testi-slide { position: relative; display: flex; flex-direction: column; align-items: flex-start;
               gap: 14px; height: auto; text-align: left;
               background: var(--smoke); border-radius: var(--radius); padding: 36px 40px 34px; }
.testi-stars { color: var(--yellow); letter-spacing: 3px; font-size: 16px; }
.testi-slide blockquote { margin: 0; font-size: clamp(15px, 1.6vw, 18px); color: var(--title); font-weight: 500; line-height: 1.8; }
.testi-slide cite { font-style: normal; font-weight: 700; color: var(--theme); }
.testi-quote { position: absolute; right: 40px; bottom: 40px; width: 56px; height: 56px;
               opacity: .5; pointer-events: none; }
@media (max-width: 620px) {
  .testi-slide { padding: 28px 24px 26px; }
  .testi-quote { right: 20px; bottom: 20px; width: 40px; height: 40px; }
}

/* puncte Swiper — stil propriu */
.swiper-pagination-bullet { width: 10px; height: 10px; background: #c3d4e6; opacity: 1; transition: .2s; }
.swiper-pagination-bullet-active { background: var(--theme); transform: scale(1.35); }

/* ============ PAGINĂ DE SPECIALITATE ============ */
/* Bară laterală în stânga, conținut în dreapta — ca pe site-ul actual. */
.spec-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(28px, 4vw, 52px); align-items: start; }
.spec-side { display: grid; gap: 24px; position: sticky; top: 100px; }
.side-box { background: var(--smoke); border-radius: var(--radius); padding: 30px 28px; }
.side-box--dark { background: var(--theme2); color: var(--white); }
.side-title { font-size: 22px; margin-bottom: 20px; }
.side-box--dark .side-title { color: var(--white); }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list li + li { margin-top: 4px; }
.side-list a { display: block; padding: 12px 16px; border-radius: 12px; background: #fff; color: var(--title); font-size: 15px; font-weight: 500; transition: .25s; }
.side-list a:hover { background: var(--theme); color: #fff; }
.side-box--dark .hours-list li { padding-bottom: 12px; margin-bottom: 12px; font-size: 15px; }

.spec-text h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin: 34px 0 14px; }
.spec-text h2:first-child { margin-top: 0; }
.spec-text p { margin-bottom: 14px; }
.spec-text ul { list-style: none; margin: 6px 0 18px; padding: 0; }
.spec-text li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.spec-text li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--theme) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}

.spec-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 22px; margin-top: 26px; }

@media (max-width: 992px) {
  .spec-layout { grid-template-columns: 1fr; }
  .spec-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) { .spec-side { grid-template-columns: 1fr; } }

/* ============ PAGINI INTERIOARE ============ */
/* Text în stânga, date de contact în dreapta (pagina „Despre"). */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.about-grid p { margin-bottom: 18px; }
.about-side { display: grid; gap: 16px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; background: var(--smoke); border-radius: 16px; padding: 22px 24px; }
.info-card svg { flex: 0 0 auto; width: 22px; height: 22px; margin-top: 3px; color: var(--theme); }
.info-card span { display: block; font-size: 13.5px; color: var(--body); margin-bottom: 3px; }
.info-card strong { color: var(--title); font-size: 16px; font-weight: 600; line-height: 1.6; }
.info-card a { color: inherit; }
.info-card a:hover { color: var(--theme); }

/* Cele patru argumente, fără imagine — doar titlu și explicație. */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 40px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: .3s; }
/* Iconița celor patru argumente, cu cercul din spate — ca pe site-ul actual,
   unde iconița de 60px stă peste un cerc din culoarea de fundal deschisă. */
.feature .f-icon { position: relative; display: inline-grid; place-items: center;
                   width: 60px; height: 60px; margin-bottom: 18px; }
.feature .f-icon::before { content: ""; position: absolute; inset: -20px -10px 0 -10px;
                           background: var(--smoke); border-radius: 50%; }
.feature .f-icon img { position: relative; width: 60px; height: 60px; object-fit: contain; }
.feature:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.feature h3 { font-size: 19px; margin-bottom: 10px; }
.feature p { font-size: 14.5px; margin: 0; }

/* Testimoniale fără carusel, pe paginile interioare. */
/* varianta cu carusel e îngustă; cea în grilă are nevoie de toată lățimea */
/* Grila de testimoniale (pagina Despre) primește fundalul din tema originală. */
.testi--grid { background: #fff image-set(url("/img/testi_bg_3.avif") type("image/avif"),
                                          url("/img/testi_bg_3.webp") type("image/webp"))
                          center / cover no-repeat; }
.testi--grid .container { max-width: var(--maxw); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 34px; text-align: center; }
.testi-grid .testi-slide { margin: 0; background: var(--smoke); border-radius: var(--radius); padding: 32px 26px; }

/* Numărul din fața întrebării frecvente, ca pe site-ul actual. */
.acc-num { color: var(--theme); font-weight: 700; margin-right: 8px; }

/* Întreabă medicul: text în stânga, formular în dreapta. */
.ask-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 60px); align-items: start; }
.ask-form { position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 40px); }
.ask-form :is(input, select, textarea) { width: 100%; font-family: var(--font); font-size: 14.5px; color: var(--title); background: #f5f7fa; border: 1px solid transparent; border-radius: 27px; padding: 17px 22px; margin-bottom: 14px; outline: none; transition: .2s; }
.ask-form :is(input, select, textarea):focus { border-color: var(--theme); background: #fff; }
.ask-form textarea { min-height: 130px; resize: vertical; border-radius: 18px; }

/* Date de contact, pe patru coloane. */
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }

/* Harta: raport fix, ca să nu sară așezarea la încărcare. */
.map-wrap { margin-top: 38px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { display: block; width: 100%; aspect-ratio: 16 / 6; min-height: 320px; border: 0; }

/* Realizările clinicii, pe ani. */
.timeline { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 20px; }
.timeline li { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.timeline-an { flex: 0 0 auto; min-width: 74px; height: 42px; display: grid; place-items: center; border-radius: 21px; background: var(--theme2); color: var(--white); font-weight: 700; font-size: 15px; }
.timeline h3 { font-size: 18px; margin-bottom: 6px; }
.timeline p { font-size: 14.5px; margin: 0; }

/* Căile de contact, pe două coloane. */
.contact-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; margin-top: 40px; }
.contact-info article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 30px 24px; }
.contact-info h3 { font-size: 19px; margin-bottom: 12px; }
.contact-info p { font-size: 14.5px; margin-bottom: 12px; }
.contact-info p:last-child { margin-bottom: 0; }
.contact-info a { color: var(--theme); font-weight: 600; }

/* Articol: text în stânga, navigație către restul blogului în dreapta. */
.articol-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.articol-side { display: grid; gap: 24px; position: sticky; top: 100px; }
.articol-side .side-title { font-size: 19px; margin-bottom: 18px; }
.articol-side .side-list a { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.articol-side .side-list b { color: var(--theme); font-weight: 700; }
.articol-side .side-list a:hover b { color: #fff; }
.articol-side .recent-post { gap: 14px; margin-bottom: 18px; }
.articol-side .recent-post:last-child { margin-bottom: 0; }
.articol-side .recent-post h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; margin: -2px 0 5px; }
.articol-side .recent-post h3 a { color: var(--title); }
.articol-side .recent-post h3 a:hover { color: var(--theme); }
.articol-side .recent-post-date { color: var(--body); font-size: 13px; }
.articol-side .side-box--dark .side-title,
.articol-side .side-box--dark p { color: var(--white); }

@media (max-width: 1000px) {
  .articol-layout { grid-template-columns: 1fr; }
  .articol-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) { .articol-side { grid-template-columns: 1fr; } }

/* Avertismentul de urgență: trebuie să sară în ochi, e informație critică. */
.urgenta { display: flex; gap: 20px; align-items: flex-start; margin-top: 26px; background: #fdf0e8; border: 1px solid var(--orange); border-left-width: 5px; border-radius: 16px; padding: 26px 30px; }
.urgenta svg { flex: 0 0 auto; width: 26px; height: 26px; margin-top: 4px; color: var(--orange); }
.urgenta h3 { font-size: 18px; margin-bottom: 8px; }
/* Pe fundalul deschis al casetei, textul de corp obișnuit dă doar 4,34:1,
   iar portocaliul linkului 2,65:1. Aici merg nuanțe mai închise: 4,92:1 și
   4,74:1. Caseta e pentru urgențe medicale — trebuie citită repede. */
.urgenta p { font-size: 14.5px; margin: 0; color: #5f6980; }
.urgenta a { color: #b8480a; font-weight: 700; }

/* Categoriile articolelor. */
.categorii { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; }
.categorii-eticheta { font-weight: 600; color: var(--title); font-size: 14.5px; margin-right: 4px; }
.categorie { display: inline-flex; align-items: center; gap: 7px; background: var(--smoke); border-radius: 999px; padding: 8px 16px; font-size: 13.5px; color: var(--title); }
.categorie b { color: var(--theme); }

@media (max-width: 860px) { .about-grid, .ask-grid { grid-template-columns: 1fr; } .timeline li { flex-direction: column; gap: 14px; } }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 38px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .3s; }
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.blog-card img { aspect-ratio: 392/225; object-fit: cover; width: 100%; height: auto; }
/* Caruselul de pe prima pagină: cardurile trebuie să aibă aceeași înălțime,
   ca butonul „Citește mai mult" să stea aliniat pe toate. */
.blog-slider { padding: 38px 4px 10px; }
.blog-slider .swiper-slide { height: auto; }
.blog-slider .blog-card { display: flex; flex-direction: column; height: 100%; }
.blog-slider .blog-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; gap: 8px; }
.blog-slider .blog-body .service-link { margin-top: auto; }

.blog-body { padding: 22px 24px 26px; }
.blog-meta { font-size: 13px; color: var(--theme); font-weight: 600; margin-bottom: 8px; display: block; }
.blog-body h3 { font-size: 17.5px; line-height: 1.45; }
.blog-body h3 a:hover { color: var(--theme); }

/* ============ FOOTER ============ */
/* Subsol bicolor, ca pe site-ul actual: corpul e mai ÎNCHIS decât banda de
   copyright de dedesubt (#000D44 vs #164477), nu invers. */
.footer { background: #000d44; color: #969eb2; }
.newsletter { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.newsletter .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 40px; padding-bottom: 40px; }
.newsletter h3 { color: #fff; font-size: clamp(20px, 2.4vw, 28px); }
.news-form { display: flex; gap: 10px; flex-wrap: wrap; }
.news-form input { min-width: min(320px, 72vw); font-family: var(--font); font-size: 14.5px; border: none; border-radius: 999px; padding: 15px 22px; outline: none; }
/* Rândul de consimțământ trece pe linia a doua (flex-basis 100%) și se aliniază
   la DREAPTA, ca să se termine unde se termină butonul „Mă abonez".
   `align-items: center` — nu `flex-start`: altfel caseta de bifat rămâne lipită
   de partea de sus, dezaliniată față de text. */
.news-consent { flex-basis: 100%; font-size: 12.5px; color: #b7cde3; display: flex; gap: 8px;
                align-items: center; }
.news-consent input[type="checkbox"] { flex: 0 0 auto; width: 15px; height: 15px; margin: 0;
                                       accent-color: var(--orange); cursor: pointer; }
.news-consent a { color: #fff; text-decoration: underline; }

/* În subsol, consimțământul stă PE ACELAȘI RÂND cu butonul „Mă abonez", imediat
   în dreapta lui — textul poate curge pe două rânduri în interiorul zonei lui,
   dar nu coboară sub buton (cerința beneficiarului). `flex: 1` îl întinde pe
   restul rândului; în formularele de pe fond deschis (programare, întrebări)
   clasa rămâne pe rând propriu, sub câmpuri. */
.news-form { align-items: center; }
.news-form .news-consent { flex: 1 1 240px; flex-basis: auto; max-width: 400px; line-height: 1.5; }
/* Pe ecrane înguste rândul oricum se rupe; consimțământul revine sub câmpuri. */
@media (max-width: 900px) { .news-form .news-consent { flex-basis: 100%; max-width: none; } }
/* Patru coloane, în proporțiile de pe site-ul actual:
   identitate · link-uri rapide · specializări · noutăți */
.footer-grid { display: grid; grid-template-columns: minmax(0, 315fr) minmax(0, 200fr) minmax(0, 283fr) minmax(0, 300fr); gap: 34px; padding: 100px 0 46px; color: var(--white); }
.footer-grid .widget-title { color: var(--white); font-size: 24px; font-weight: 500; line-height: 1; text-transform: capitalize; margin: -3px 0 38px; }
/* Sublinierea în degrade de sub titlurile din subsol, ca pe site-ul actual. */
.footer-grid .widget-title::after { content: ""; display: block; width: 92px; height: 2px;
                                    margin-top: 20px;
                                    background: linear-gradient(to right, var(--theme), transparent); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid a { color: var(--white); }
.footer-grid a:hover { color: var(--orange); }

/* Sigla verticală albă, ca pe site-ul actual. Fără fundal alb în spate: acela
   exista doar pentru că înainte se folosea logoul colorat, care altfel s-ar fi
   pierdut pe albastru. */
.footer-about img { height: auto; width: 152px; max-width: 60%; margin-bottom: 20px; }
.footer-about p { color: var(--white); font-size: 16px; line-height: 28px; margin: -8px 0 20px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 16px; line-height: 26px; }
.footer-contact svg { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 5px; color: var(--orange); }

/* Fiecare link e precedat de o săgeată, ca pe site-ul actual. */
.footer-links li { margin-bottom: 12px; font-size: 16px; line-height: 21px; }
.footer-links a { position: relative; display: inline-block; padding-left: 16px; }
.footer-links a::before { content: "›"; position: absolute; left: 0; top: -1px; font-size: 17px; line-height: 1.2; }

.recent-post { display: flex; gap: 14px; margin-bottom: 22px; }
.recent-post-img { flex: 0 0 auto; }
.recent-post-img img { width: 85px; height: 85px; object-fit: cover; border-radius: 12px; }
.recent-post h5 { color: var(--white); font-size: 16px; font-weight: 500; line-height: 24px; margin: -3px 0 6px; }
.recent-post-date { display: flex; align-items: center; gap: 7px; font-size: 14px; color: #b7cde3; }
.recent-post-date svg { width: 14px; height: 14px; color: var(--orange); }

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--theme); }
.socials svg { width: 16px; height: 16px; }

/* Banda de copyright e o culoare distinctă, mai deschisă decât corpul subsolului. */
.copyright { background: var(--theme2); font-size: 16px; color: #b7cde3; padding: 12px 0; }
.copyright .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.copyright a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.copyright a:hover { color: var(--orange); }
.copyright-legal { display: flex; gap: 20px; font-size: 14px; }

@media (max-width: 1100px) { .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 64px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* înapoi sus */
/* Ca pe site-ul actual: buton alb cu bordură și săgeată albastră, care urcă la apariție. */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
          background: #fff; color: var(--theme); border: 2px solid var(--theme); font-size: 18px;
          cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(45px);
          transition: .3s; z-index: 80; box-shadow: var(--shadow); }
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--theme); color: #fff; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: opacity .2s; transform: none; } }

/* ============ BANNER COOKIE ============ */
.cookie-banner { position: fixed; inset: auto 0 0 0; z-index: 120; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 40px -20px rgba(0, 13, 68, .3); }
.cookie-inner { max-width: var(--maxw); margin: 0 auto; padding: 20px clamp(16px, 4vw, 30px); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.cookie-text { flex: 1 1 420px; }
.cookie-text strong { display: block; color: var(--title); margin-bottom: 4px; }
.cookie-text p { margin: 0; font-size: 14px; }
.cookie-text a { color: var(--theme); font-weight: 600; text-decoration: underline; }
/* ambele butoane au aceeași dimensiune: refuzul nu e „mai greu" decât acceptul */
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .th-btn { min-width: 160px; padding: 15px 24px; }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .cookie-actions .th-btn { flex: 1; min-width: 0; } }
