/* =========================================================
   Cabinet stomatologic Dr. Alexandra Berehoi — Focșani
   Capitole de culoare luate din clădire: cerul și fațada ocru (hero),
   banda albastră de pe ușă (medicul), roșul firmei (tratamente),
   laboratorul (negru), fotoliile portocalii (cabinetul), ocrul fațadei (contact).
   ========================================================= */

/* ---------- fonturi (Cabinet Grotesk, Fontshare, găzduit local) ---------- */
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Cabinet Grotesk";
  src: url("../fonts/cabinet-grotesk-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}

:root {
  /* culori */
  --paper: #f4f4f2;
  --surface: #e7e7e2;
  --surface-2: #dcdcd6;
  --ink: #1a1a1a;
  --soft: #57554f;
  --red: #c8292b;          /* literele firmei */
  --red-2: #ad2023;
  --oxblood: #7a1c1e;      /* literele „scufundate” în fațadă */
  --ochre: #e2a845;        /* fațada */
  --ochre-2: #d4952e;
  --blue: #164c69;         /* banda de pe ușă */
  --blue-2: #1f5d7f;
  --orange: #f0601c;       /* fotoliile din sala de așteptare */
  --dark: #1a1a1a;         /* laboratorul */
  --dark-2: #2c2c29;
  --on-dark-soft: #b4b4ad;

  /* spațiu */
  --gutter: clamp(16px, 2.4vw, 32px);
  --header: 64px;
  --sec: clamp(88px, 11vw, 180px);

  /* tipografie: cinci trepte */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.15rem + 0.8vw, 2rem);
  --step-head: clamp(2.5rem, 1.2rem + 5vw, 5.5rem);
  --step-display: clamp(3.5rem, 11vw, 13.5rem);

  /* mișcare */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Cabinet Grotesk", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: var(--step-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -64px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 16px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.treat :focus-visible, .lab :focus-visible, .panel :focus-visible,
.rv-name :focus-visible, .rv-quote :focus-visible, .top[data-ink="red"] :focus-visible,
.top[data-ink="dark"] :focus-visible, .top[data-ink="blue"] :focus-visible { outline-color: var(--paper); }
::selection { background: var(--ink); color: var(--paper); }

.ic {
  width: 1.15em; height: 1.15em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

.h2 {
  font-weight: 800;
  font-size: var(--step-head);
  line-height: 0.92;
  letter-spacing: -0.035em;
}
.h3 {
  font-weight: 800;
  font-size: var(--step-lead);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.soft { color: var(--soft); }

/* ---------- butoane (colțuri drepte, o singură formă) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7em 1.2em;
  border: 0; border-radius: 0;
  font-weight: 500; font-size: var(--step-body); line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.btn:active { transform: scale(0.97); }
.btn-call { background: var(--red); color: #fff; }
.btn-ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .btn-call:hover { background: var(--red-2); }
  .btn-ink:hover { background: #000; }
}

/* =========================================================
   ANTET: ia culoarea capitolului de sub el
   ========================================================= */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header);
  background: var(--hbg, var(--paper));
  color: var(--hink, var(--ink));
  transition: background-color 300ms ease, color 300ms ease;
}
.top[data-ink="paper"] { --hbg: var(--paper); --hink: var(--ink); }
.top[data-ink="ochre"] { --hbg: var(--ochre); --hink: var(--ink); }
.top[data-ink="red"] { --hbg: var(--red); --hink: var(--paper); }
.top[data-ink="dark"] { --hbg: var(--dark); --hink: var(--paper); }
.top[data-ink="blue"] { --hbg: var(--blue); --hink: var(--paper); }
.top[data-ink="orange"] { --hbg: var(--orange); --hink: var(--ink); }

.top-in {
  height: 100%; max-width: 1440px; margin-inline: auto;
  display: flex; align-items: center; gap: clamp(12px, 2vw, 32px);
  padding-inline: var(--gutter);
}
.wordmark {
  margin-right: auto;
  font-weight: 800; font-size: var(--step-body);
  letter-spacing: -0.02em; text-decoration: none; white-space: nowrap;
}
.nav ul { display: flex; gap: clamp(14px, 1.8vw, 30px); }
.nav a {
  font-weight: 500; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 0.09em; text-underline-offset: 0.28em;
  transition: text-decoration-color var(--t-hover) ease;
}
.nav a[aria-current="true"] { text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration-color: currentColor; } }
.top-call { min-height: 44px; }
.top[data-ink="red"] .top-call { background: var(--paper); color: var(--red); }
.call-short { display: none; }
.menu-btn {
  display: none; min-height: 44px; padding: 0 14px;
  border: 0; border-radius: 0; background: transparent;
  font-weight: 500; cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 0.09em; text-underline-offset: 0.28em;
}

/* =========================================================
   HERO: firma de pe fațadă, peste două câmpuri
   ========================================================= */
.hero { position: relative; background: var(--ochre); }
.hero-stage {
  --seam: 50%;
  position: relative;
  height: 100svh; min-height: 620px; max-height: 1180px;
  overflow: hidden;
}
.hero-sky {                      /* câmpul de sus: cerul */
  position: absolute; inset: 0 0 calc(100% - var(--seam)) 0;
  background: var(--paper);
}
.sign-wrap {
  position: absolute; left: 50%; top: calc(var(--seam) - 1.147em);
  transform: translateX(-50%);
  font-size: var(--step-display);
  display: flex; flex-direction: column; align-items: flex-end;
}
.sign {
  position: relative;
  font-size: 1em; font-weight: 800; line-height: 0.86; letter-spacing: -0.035em;
  text-align: center; white-space: nowrap;
}
.sign-ink { display: block; }
.sign-up { color: var(--red); clip-path: inset(-0.4em -0.2em 0.573em -0.2em); }
.sign-down {
  position: absolute; inset: 0;
  color: var(--oxblood); clip-path: inset(1.147em -0.2em -0.4em -0.2em);
}
.plate {
  margin-top: 0.42em;
  background: var(--red); color: #fff;
  font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  padding: 0.38em 0.6em 0.44em;
  white-space: nowrap;
}
.hero-low {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.hero-status { font-weight: 800; }
.hero-sub { max-width: 40ch; }

.facade { padding: 0 var(--gutter) clamp(72px, 10vw, 150px); }
.facade-img, .facade figcaption { max-width: 1200px; margin-inline: auto; }
.facade-img { overflow: hidden; }
.facade-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.facade figcaption { margin-top: 14px; font-size: var(--step-small); font-weight: 500; }

/* =========================================================
   PROGRAMUL: file pentru zile, benzi pentru intervale
   ========================================================= */
.program { background: var(--paper); padding-block: var(--sec); }
.prog-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px 40px; flex-wrap: wrap;
}
.prog {
  display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 40px;
  margin-top: 56px;
}
.prog-tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  height: 64px; padding: 0 16px;
  border: 0; border-radius: 0; background: var(--surface);
  text-align: left; cursor: pointer;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.tab:active { transform: scale(0.98); }
.tab b { font-weight: 500; font-size: var(--step-body); line-height: 1.2; }
.tab .t-date { font-size: var(--step-small); color: var(--soft); line-height: 1.3; }
.tab .d-short { display: none; }
.tab.is-today .t-date { font-weight: 800; color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.tab[aria-selected="true"] .t-date { color: var(--on-dark-soft); }
.tab[aria-selected="true"].is-today .t-date { color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { background: var(--surface-2); } }

.prog-days { display: flex; flex-direction: column; gap: 28px; }
.day { display: flex; flex-direction: column; gap: 4px; }
.day[hidden] { display: none; }
.day-when { font-weight: 800; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.day-hours {
  font-weight: 800; font-size: var(--step-head); line-height: 0.95; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; margin: 10px 0 24px;
}
.band {
  display: grid; grid-template-columns: 22% minmax(0, 1fr) auto; align-items: center; gap: 4px 20px;
  min-height: 76px; padding: 12px 20px;
  background: var(--surface);
}
.band-on { background: var(--ochre); }
.b-time { font-weight: 800; font-size: var(--step-body); font-variant-numeric: tabular-nums; }
.b-what b { display: block; font-weight: 500; font-size: var(--step-body); line-height: 1.25; }
.b-what small { display: block; font-size: var(--step-small); line-height: 1.35; }
.band-off .b-what small { color: var(--soft); }
.b-live { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.band.is-now .b-live { font-weight: 800; }
.band.is-now .b-live::before {
  content: ""; display: inline-block; width: 0.62em; height: 0.62em; margin-right: 0.5em;
  background: var(--ink); vertical-align: 0.05em;
}
.band-on.is-now .b-live::before { background: var(--red); }
.prog-note { margin-top: 36px; max-width: 60ch; }

/* =========================================================
   MEDICUL: panou albastru, portret în forma dintelui
   ========================================================= */
.doctor { background: var(--paper); padding: 0 20px var(--sec); }
.panel {
  position: relative; overflow: hidden;
  min-height: 100svh;
  background: var(--blue); color: var(--paper);
  display: grid; grid-template-columns: 63% minmax(0, 1fr); grid-template-rows: auto 1fr;
  padding: 56px 56px 0;
}
.panel-title { grid-column: 1; grid-row: 1; }
.tooth {
  grid-column: 1; grid-row: 2; align-self: end;
  width: min(36vw, 560px);
  margin-top: 40px; margin-bottom: max(-2.2vw, -34px);
}
.tooth img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  clip-path: url(#tooth);
  background: var(--blue-2);
}
.panel-text {
  grid-column: 2; grid-row: 1 / span 2;
  display: flex; flex-direction: column; align-items: flex-start; gap: 64px;
  max-width: 380px; padding-bottom: 56px;
}
.pt-block h3 { font-weight: 800; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.panel .btn-call { margin-top: -16px; }

/* =========================================================
   TRATAMENTE: afiș pe roșul firmei
   ========================================================= */
.treat { background: var(--red); color: var(--paper); padding-block: 80px; }
.poster-word {
  display: block;
  font-weight: 800; font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.035em;
  transition: color var(--t-hover) ease;
}
.poster-head { color: var(--ink); }
.poster li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
}
.pl-note { font-size: var(--step-body); font-weight: 500; text-align: right; }
@media (hover: hover) and (pointer: fine) { .poster li:hover .poster-word { color: var(--ink); } }
.treat-foot { margin-top: 56px; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; max-width: 32ch; }
.treat-foot a { font-weight: 800; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }

/* =========================================================
   LABORATORUL: placa pătrată și text puțin
   ========================================================= */
.lab { background: var(--dark); color: var(--paper); }
.lab-in {
  max-width: 1440px; margin-inline: auto;
  display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh;
}
.lab-plate { position: relative; align-self: center; margin: 40px; aspect-ratio: 1 / 1; background: var(--dark-2); }
.lab-media {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 420ms ease, visibility 0s linear 420ms;
}
.lab-media.is-on { opacity: 1; visibility: visible; transition: opacity 420ms ease, visibility 0s; }
.lab-media img, .lab-media video { width: 100%; height: 100%; object-fit: cover; }
.lab-copy {
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 40px var(--gutter) 40px 0;
}
.lab-tabs { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.lab-tab {
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-size: var(--step-body); font-weight: 500; color: var(--on-dark-soft);
  text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 0.1em; text-underline-offset: 0.35em;
  transition: color var(--t-hover) ease, text-decoration-color var(--t-hover) ease;
}
.lab-tab[aria-selected="true"] { color: var(--paper); text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .lab-tab:hover { color: var(--paper); } }
.lab-mid p { max-width: 36ch; margin-top: 20px; }
.lab-cap { color: var(--paper); font-weight: 500; }
.lab-cells { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 72px; padding: 12px 16px;
  font-weight: 500; text-decoration: none; text-align: center;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.cell:active { transform: scale(0.98); }
.lab .cell-ink { background: var(--paper); color: var(--ink); }
.lab .cell-tone { background: var(--dark-2); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .lab .cell-ink:hover { background: #fff; }
  .lab .cell-tone:hover { background: #393935; }
}

/* =========================================================
   CABINETUL: fotografii lăsate pe portocaliul fotoliilor
   ========================================================= */
.rooms {
  background: var(--orange); color: var(--ink);
  min-height: 100svh; overflow: hidden;
  padding: var(--sec) var(--gutter) 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.drop-head {
  font-weight: 800; font-size: var(--step-display); line-height: 0.86; letter-spacing: -0.035em;
  text-align: center;
}
.prints {
  position: relative; width: 100%; max-width: 1300px;
  display: flex; justify-content: center; align-items: flex-start;
  margin-top: clamp(40px, 5vw, 72px);
}
.print {
  position: relative;
  width: 28vw; max-width: 420px; flex: none;
  padding: 8px; background: var(--paper);
  transform: rotate(var(--r, 0deg));
  transition: transform 200ms var(--ease-out);
}
.print img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.print-a { --r: -6deg; z-index: 1; }
.print-b { --r: 5deg; z-index: 2; margin-left: -4vw; margin-top: 72px; }
.print-c { --r: -3deg; z-index: 3; width: 20vw; max-width: 300px; margin-left: -2vw; margin-top: 24px; }
@media (hover: hover) and (pointer: fine) {
  .print:hover { --r: 0deg; z-index: 5; }
}
.drop-note { align-self: flex-start; margin-top: 48px; font-weight: 500; max-width: 46ch; }

/* =========================================================
   RECENZII
   ========================================================= */
.reviews { background: var(--paper); }
.rv-grid { display: grid; grid-template-columns: 5fr 7fr; min-height: 70svh; }
.rv-name {
  background: var(--dark); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 48px 32px 32px;
}
.rv-scores { display: flex; flex-direction: column; gap: 28px; }
.score { display: flex; align-items: baseline; gap: 18px; }
.score-num {
  font-weight: 800; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.score-txt { font-size: var(--step-lead); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.rv-who b { display: block; font-weight: 800; }
.rv-who span { color: var(--on-dark-soft); }
.rv-quote {
  background: var(--blue); color: var(--paper);
  padding: 48px clamp(28px, 4vw, 64px);
}
.rv-quote p {
  font-size: var(--step-lead); font-weight: 500; line-height: 1.2; letter-spacing: -0.01em;
  max-width: 26ch; text-indent: -0.42em;
}
.rv-more {
  max-width: 1440px; margin-inline: auto;
  padding: var(--sec) var(--gutter);
  display: grid; grid-template-columns: 7fr 5fr; gap: 64px clamp(40px, 6vw, 120px);
}
.rv-list { display: flex; flex-direction: column; gap: 48px; }
.rv-item p { font-size: var(--step-lead); font-weight: 500; line-height: 1.22; letter-spacing: -0.01em; text-indent: -0.42em; max-width: 34ch; }
.rv-item footer { margin-top: 12px; color: var(--soft); }
.dist { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.dist caption { text-align: left; font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 18px; }
.dist thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.dist th, .dist td { padding: 7px 0; text-align: left; font-weight: 400; }
.dist th { width: 5.5em; }
.dist td.num { width: 2.5em; font-weight: 800; }
.bar { display: block; height: 14px; background: var(--surface); }
.bar i { display: block; height: 100%; width: var(--w); background: var(--ink); }
.dist-note { margin-top: 18px; color: var(--soft); font-size: var(--step-small); }
.dist-links { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dist-links a, .hours-list a {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 500; text-decoration-thickness: 0.08em; text-underline-offset: 0.22em;
}

/* =========================================================
   CONTACT: banda de fotografii, adresa, trei celule
   ========================================================= */
.contact { background: var(--ochre); padding: 48px 0 var(--sec); }
.strip { overflow: hidden; margin-bottom: 72px; }
.strip-track { display: flex; gap: 8px; width: max-content; }
.strip img { height: 150px; width: auto; }
.contact .cells {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 40px;
}
.contact .cell { min-height: 96px; font-size: var(--step-body); }
.contact .cell-tone { background: var(--ochre-2); color: var(--ink); }
.contact .cell-ink { background: var(--red); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .contact .cell-tone:hover { background: #c98a28; }
  .contact .cell-ink:hover { background: var(--red-2); }
}
.cells-notes {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px; font-size: var(--step-small); font-weight: 500;
}
.cells-notes p:first-child { grid-column: 1 / span 2; max-width: 52ch; }
.cells-notes .cn-right { grid-column: 3; font-weight: 800; }
.contact-low {
  display: grid; grid-template-columns: 5fr 7fr; gap: 48px clamp(32px, 5vw, 96px);
  margin-top: 96px; align-items: start;
}
.hours-list h3 { font-weight: 800; font-size: var(--step-lead); letter-spacing: -0.02em; margin-bottom: 18px; }
.hours-list dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.hours-list dl div + div { margin-top: 2px; }
.hours-list dt { font-weight: 500; }
.hours-list dd { font-weight: 800; font-variant-numeric: tabular-nums; }
.hours-list dl div:nth-child(odd) { background: transparent; }
.hours-list p { margin-top: 28px; }
.map { position: relative; min-height: 400px; background: var(--ochre-2); display: grid; }
.map iframe { width: 100%; height: 100%; min-height: 400px; border: 0; display: block; }
.map-ph {
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 16px;
  padding: 32px;
}
.map-title { font-weight: 800; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; max-width: 22ch; }
.map-hint { font-size: var(--step-small); font-weight: 500; }

/* =========================================================
   SUBSOL: plăcuța de pe fațadă, cât tot ecranul
   ========================================================= */
.foot { background: var(--ochre); color: var(--ink); padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
.foot-plate {
  background: var(--red); color: #fff;
  font-weight: 800; font-size: var(--step-display); line-height: 0.92; letter-spacing: -0.035em;
  padding: 0.14em var(--gutter) 0.2em;
  overflow: hidden;
}
.foot-plate span { display: block; max-width: 7.2em; }
.foot-in { display: flex; flex-direction: column; gap: 6px; padding-top: 28px; font-size: var(--step-small); font-weight: 500; }
.foot-in a { text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
.foot-small { color: var(--ink); }

/* =========================================================
   MIȘCARE (doar cu JS; fără JS totul rămâne vizibil)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .js .sign-ink { animation: sign-in 1000ms var(--ease-out) both; }
  .js .sign-down { animation-delay: 60ms; }
  .js .plate { animation: plate-in 700ms var(--ease-out) 380ms both; }
  .js .hero-low > * { animation: rise var(--t-reveal) var(--ease-out) both; }
  .js .hero-low > :nth-child(1) { animation-delay: 560ms; }
  .js .hero-low > :nth-child(2) { animation-delay: 650ms; }

  .js .shutter { clip-path: inset(0 0 100% 0); transition: clip-path 1100ms var(--ease-in-out); }
  .js .shutter img { transform: scale(1.1); transition: transform 1500ms var(--ease-soft); }
  .js .shutter.is-in { clip-path: inset(0); }
  .js .shutter.is-in img { transform: none; }

  .js [data-reveal] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out);
    transition-delay: calc(var(--i, 0) * 80ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  .js .poster li[data-reveal] { transform: translateX(-24px); }
  .js .poster li[data-reveal].is-in { transform: none; }

  .js .tooth[data-reveal] { transform: translateY(60px) scale(0.96); transition-duration: 900ms, 1300ms; }
  .js .tooth[data-reveal].is-in { transform: none; }

  .js .print[data-reveal] { transform: translateY(80px) rotate(calc(var(--r) * 3)); transition-duration: 700ms, 1100ms; }
  .js .print[data-reveal].is-in { transform: rotate(var(--r)); }

  .js .band[data-reveal] { transform: translateY(16px); }
  .js .band[data-reveal].is-in { transform: none; }

  .strip-track { animation: drift 70s linear infinite; }
  .strip:hover .strip-track { animation-play-state: paused; }

  .facade-img img { will-change: transform; }
}
@keyframes sign-in { from { transform: translateY(0.35em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plate-in { from { transform: translateX(-0.6em); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drift { to { transform: translateX(-50%); } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav {
    position: fixed; inset: var(--header) 0 auto 0;
    background: var(--hbg, var(--paper)); color: var(--hink, var(--ink));
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.35); /* meniul plutește peste pagină. taste-skill-ignore */
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s linear var(--t-ui);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 12px 0; font-size: var(--step-lead); font-weight: 800; letter-spacing: -0.02em; }
  .menu-btn { display: inline-flex; align-items: center; }
  .panel { grid-template-columns: 56% minmax(0, 1fr); padding: 48px 40px 0; }
  .tooth { width: 44vw; }
  .lab-plate { margin: 32px; }
}

@media (max-width: 900px) {
  .lab-in { grid-template-columns: 1fr; min-height: 0; }
  .lab-plate { margin: 24px var(--gutter) 0; }
  .lab-copy { padding: 28px var(--gutter) 64px; gap: 28px; }
  .rv-grid { grid-template-columns: 1fr; }
  .rv-quote { order: -1; padding: 40px var(--gutter) 72px; }
  .rv-name { padding: 32px var(--gutter); }
  .rv-more { grid-template-columns: 1fr; }
  .contact-low { grid-template-columns: 1fr; margin-top: 72px; }
  .map, .map iframe { min-height: 320px; }
}

@media (max-width: 760px) {
  :root { --header: 58px; }
  .call-long { display: none; }
  .call-short { display: inline; }
  .top-call { padding-inline: 0.95em; }
  .hero-stage { --seam: 46%; min-height: 560px; }
  .hero-low { bottom: 40px; }
  .hero-sub { max-width: 28ch; }

  .prog { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .prog-head .btn { width: 100%; }
  .prog-tabs {
    position: sticky; top: var(--header); z-index: 5;
    flex-direction: row; gap: 4px;
    background: var(--paper); padding-block: 8px;
  }
  .tab { flex: 1 1 0; min-width: 0; height: 56px; padding: 0; align-items: center; }
  .tab .d-long, .tab .t-date { display: none; }
  .tab .d-short { display: inline; }
  .tab.is-today b::after { content: ""; display: block; width: 6px; height: 6px; margin: 4px auto 0; background: currentColor; }
  .band { grid-template-columns: 1fr auto; padding: 14px 16px; }
  .b-what { grid-column: 1 / -1; grid-row: 2; }
  .b-live { grid-column: 2; grid-row: 1; }

  .doctor { padding: 0 10px var(--sec); }
  .panel { display: flex; flex-direction: column; min-height: 0; padding: 40px 20px 0; }
  .panel-text { max-width: none; gap: 40px; padding-bottom: 0; margin-top: 36px; }
  .panel .btn-call { margin-top: -8px; width: 100%; }
  .tooth { width: 82vw; max-width: 420px; align-self: center; margin-top: 44px; margin-bottom: -4vw; }

  .treat { padding-block: 64px; }
  .poster-word { font-size: 15vw; }
  .poster li { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 22px; }
  .poster li:last-child { margin-bottom: 0; }
  .pl-note { font-size: var(--step-small); text-align: left; }
  .treat-foot { margin-top: 40px; }

  .lab-cells { grid-template-columns: 1fr; }
  .lab .cell { min-height: 60px; }

  .rooms { min-height: 0; padding-top: 72px; }
  .drop-head { font-size: 15vw; }
  .prints { margin-top: 32px; flex-wrap: wrap; }
  .print { width: 52vw; }
  .print-a { --r: -6deg; }
  .print-b { --r: 5deg; margin-left: -14vw; margin-top: 48px; }
  .print-c { width: 44vw; margin-left: 20vw; margin-top: -28vw; }
  .drop-note { margin-top: 40px; }

  .contact .cells { grid-template-columns: 1fr; }
  .contact .cell { min-height: 60px; }
  .cells-notes { grid-template-columns: 1fr; gap: 6px; }
  .cells-notes p:first-child, .cells-notes .cn-right { grid-column: 1; }
  .strip { margin-bottom: 48px; }
  .strip img { height: 110px; }
  .map-ph { padding: 24px 20px; }

  .sign-wrap { font-size: 15vw; }
  .foot-plate { font-size: 15vw; }

}

@media (max-width: 380px) {
  .top-in { gap: 8px; }
  .wordmark { font-size: 0.9375rem; }
  .top-call { padding-inline: 0.8em; }
  .top-call .ic { display: none; }
  .menu-btn { padding: 0 6px; }
}

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

/* =========================================================
   PAGINA DE CONFIDENȚIALITATE
   ========================================================= */
.page-legal .top .btn { min-height: 44px; }
.legal { max-width: 860px; padding-top: calc(var(--header) + clamp(56px, 8vw, 120px)); padding-bottom: var(--sec); }
.legal-lead { margin-top: 20px; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; max-width: 34ch; }
.legal h2 { margin-top: 56px; font-weight: 800; font-size: var(--step-lead); line-height: 1.1; letter-spacing: -0.02em; }
.legal p, .legal ul { margin-top: 14px; max-width: 64ch; }
.legal ul { display: flex; flex-direction: column; gap: 12px; }
.legal li { padding-left: 1.1em; text-indent: -1.1em; }
.legal li::before { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-right: 0.6em; background: var(--red); vertical-align: 0.1em; }
.legal a { font-weight: 500; text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }

/* =========================================================
   PAGINA 404: tot firma de pe fațadă
   ========================================================= */
.nf { position: relative; min-height: 100svh; background: var(--ochre); display: grid; place-items: center; overflow: hidden; }
.nf-sky { position: absolute; inset: 0 0 50% 0; background: var(--paper); }
.nf-in { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px var(--gutter); text-align: center; }
.nf-title { font-weight: 800; font-size: var(--step-head); line-height: 0.9; letter-spacing: -0.035em; color: var(--red); }
.nf-in .plate { margin-top: 18px; }
.nf-text { margin-top: 28px; max-width: 36ch; }
.nf-act { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
