/* Pireutehnical · laborator de tehnică dentară, Brăila
   Direcția: catalogul de specimene. Fiecare lucrare stă singură pe un cartonaș de culoare plată,
   la aceeași scară, numită simplu. Culorile vin din siglă: albastrul și verdele arcadei, grafitul sferei. */

/* ---------- fonturi (găzduite local, cu ă â î ș ț) ---------- */
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/libre-franklin-latin-600-normal.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; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/libre-franklin-latin-ext-600-normal.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: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-franklin-latin-700-normal.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; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/libre-franklin-latin-ext-700-normal.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: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-normal.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; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-400-normal.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: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-400-italic.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; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("../fonts/source-serif-4-latin-ext-400-italic.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; }

/* ---------- jetoane ---------- */
:root {
  /* culorile siglei: albastrul și verdele arcadei, grafitul sferei, argintiul π-ului */
  --ground: #f3f3f1;
  --ground-2: #e6e6e3;
  --paper: #fafafa;
  --ink: #1b1b1d;
  --ink-soft: #55555a;
  --graphite: #363638;
  --graphite-2: #2a2a2c;
  --on-dark: #f3f3f1;
  --on-dark-soft: #b4b4b9;
  --blue: #0a9bfc;
  --blue-2: #45b3fd;
  --blue-3: #9cd5fe;
  --green: #67e41f;
  --porcelain: #e4dfd3;
  --silver: #bdbdc1;
  --steel: #8a8a8e;
  --accent: var(--blue);

  --font-display: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* cinci trepte de mărime; titlurile folosesc toate aceeași treaptă mare */
  --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.25rem, 1.15rem + 0.35vw, 1.5rem);
  --step-head: clamp(2rem, 0.9rem + 3.1vw, 3.5rem);

  --m: clamp(16px, 2.2vw, 32px);
  --section: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.55 var(--font-text);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, dl, dd, figure, blockquote, ol { margin: 0; padding: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; text-wrap: balance; }
h1, h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.15; font-weight: 600; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--blue); color: var(--ink); }
.skip { position: absolute; left: var(--m); top: -100px; z-index: 50; background: var(--ink); color: var(--on-dark); padding: 12px 18px; font: 600 var(--step-small) var(--font-display); }
.skip:focus { top: var(--m); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px;
  background: var(--accent); color: var(--ink);
  font: 700 var(--step-body)/1 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none;
  transition: background-color .2s, transform .15s var(--ease);
}
.btn:hover { background: var(--blue-2); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn--small { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.link { font: 600 var(--step-body) var(--font-display); transition: color .2s; }
.link:hover { color: var(--ink-soft); }

/* câmpurile de culoare ale cartonașelor */
.f-blue { background: var(--blue); }
.f-green { background: var(--green); }
.f-porcelain { background: var(--porcelain); }
.f-graphite { background: var(--graphite); }
.f-silver { background: var(--silver); }

/* poziția protezei pe cartonaș: centrată sau lipită de marginea pe unde intră mâna.
   Imaginea ocupă tot cartonașul; distanța până la margini e padding, deci cartonașul întreg e poza. */
.pos-c img, img.pos-c, .pos-b img, img.pos-b, .pos-bl img, img.pos-bl, .pos-l img, img.pos-l, .pos-w img, img.pos-w {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.pos-c img, img.pos-c { padding: 12%; }
.pos-b img, img.pos-b { padding: 8% 10% 0; object-position: 50% 100%; }
.pos-bl img, img.pos-bl { padding: 16% 10% 0 0; object-position: 0 100%; }
.pos-l img, img.pos-l { padding: 12% 10% 12% 0; object-position: 0 50%; }
.pos-w img, img.pos-w { padding: 10% 0; }

/* textul curent nu trece de 60 de semne pe rând */
main p { max-width: 60ch; }

/* ---------- prima pagină + catalogul fixat ---------- */
.cat { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.mark {
  position: absolute; z-index: 3; top: var(--m); left: var(--m);
  display: inline-flex; align-items: center; gap: 12px;
  font: 700 var(--step-body)/1 var(--font-display); letter-spacing: -0.02em; text-decoration: none;
}
.mark img { width: 44px; height: 44px; }
.cat__plate {
  grid-column: 2; grid-row: 1; align-self: start;
  position: sticky; top: 0; height: 100svh;
  background: var(--graphite); color: var(--on-dark);
  display: grid; place-items: center;
}
.nav { position: absolute; top: var(--m); right: var(--m); display: flex; gap: 4px 24px; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  font: 600 var(--step-small)/1 var(--font-display); text-decoration: none; color: var(--on-dark);
  padding: 14px 0; transition: color .2s;
}
.nav a:hover { color: var(--blue-2); text-decoration: underline; }
.plate { width: min(46vw, 76svh); }
.plate__tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--blue); transition: background-color .7s var(--ease); }
.plate__tile[data-field="green"] { background: var(--green); }
.plate__tile[data-field="porcelain"] { background: var(--porcelain); }
.plate__tile[data-field="silver"] { background: var(--silver); }
.plate__img { opacity: 0; transform: translateY(24px) scale(.96); transition: opacity .5s var(--ease), transform .8s var(--ease); }
.plate__img.is-on { opacity: 1; transform: none; }
.plate__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font: 600 var(--step-small)/1.35 var(--font-display); }
.plate__cap span + span { color: var(--on-dark-soft); font-weight: 600; }

.cat__text { grid-column: 1; grid-row: 1; }
.hero { min-height: 100svh; display: flex; align-items: flex-end; padding: 0 var(--m) 40px; }
.hero__body { max-width: 40rem; }
.hero h1 { font-size: min(var(--step-head), 4.6vw); }
.hero__lead { max-width: 38ch; margin: 20px 0 28px; }
.entry {
  min-height: 92svh; padding: 64px var(--m);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  max-width: 44rem;
}
.entry p { margin-top: 24px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin-top: 36px; }
.facts div, .about__facts div { display: contents; }
.facts dt { font: 600 var(--step-small)/1.6 var(--font-display); color: var(--ink-soft); padding-top: 2px; }
.facts dd { margin: 0; }
.entry .link { margin-top: 36px; }
.entry__tile { display: none; }

/* ---------- lucrările: grilă în trepte, cu celule goale ---------- */
.work {
  display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 16px; row-gap: 56px;
  align-items: start; padding: var(--section) var(--m);
}
.spec__tile { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.spec figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 12px; }
.spec figcaption span:first-child { font: 600 var(--step-body)/1.25 var(--font-display); letter-spacing: -0.01em; }
.spec figcaption span + span { font: 600 var(--step-small)/1.3 var(--font-display); color: var(--ink-soft); white-space: nowrap; }
.w1, .w6 { grid-column: span 2; }
.w1 .spec__tile, .w6 .spec__tile { aspect-ratio: 3 / 2; }
.w1 { grid-column: 1 / 3; grid-row: 1; }
.work__title { grid-column: 3; grid-row: 1; font-size: min(var(--step-head), 4vw); }
.w2 { grid-column: 4; grid-row: 1; }
.w3 { grid-column: 2; grid-row: 2; }
.w4 { grid-column: 3; grid-row: 2; }
.w5 { grid-column: 1; grid-row: 3; }
.w6 { grid-column: 3 / 5; grid-row: 3; }
.w7 { grid-column: 2; grid-row: 4; }
.work__note { grid-column: 3 / 5; grid-row: 4; align-self: end; max-width: 60ch; }

/* ---------- etapele: trei cartonașe care cresc ---------- */
.steps {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto auto;
  column-gap: 10px; padding: 0 var(--m) var(--section);
}
.steps__title { grid-column: 1 / 8; grid-row: 1; align-self: start; }
.steps__list { display: contents; list-style: none; }
.step { display: grid; grid-template-rows: subgrid; grid-row: 1 / span 2; }
.s1 { grid-column: 1 / 4; }
.s2 { grid-column: 4 / 8; }
.s3 { grid-column: 8 / 13; }
.step__tile { position: relative; overflow: hidden; align-self: end; }
.s1 .step__tile { height: max(32vh, 260px); }
.s2 .step__tile { height: max(44vh, 340px); }
.s3 .step__tile { height: max(62vh, 480px); }
.step__tile .ink-multiply { position: absolute; left: 10%; top: 10%; width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.s2 .step__tile img { position: absolute; left: 8%; top: 7%; width: 84%; height: 86%; object-fit: contain; }
.step__text { padding-top: 20px; max-width: 30em; }
.step__text p { margin-top: 10px; }
.credit { font: 600 var(--step-small)/1.4 var(--font-display); color: var(--ink-soft); }
.step__text .credit { margin-top: 14px; }
.steps__note { grid-column: 8 / 13; grid-row: 3; margin-top: 48px; color: var(--ink-soft); max-width: 60ch; }

/* ---------- întrebări ---------- */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; padding: 0 var(--m) var(--section); }
.faq__title { grid-column: 1 / 5; align-self: start; position: sticky; top: 96px; padding-right: 24px; }
.faq__list { grid-column: 5 / 13; display: grid; gap: 8px; }
.faq details { background: var(--ground-2); transition: background-color .25s; }
.faq details:hover { background: #dcdcd8; }
.faq details[open] { background: var(--accent); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; position: relative;
  font: 600 var(--step-lead)/1.25 var(--font-display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.plus { position: absolute; right: 24px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: var(--ink); transition: transform .3s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
.faq__a { padding: 0 24px 28px; }
.faq__a p { max-width: 52ch; }

/* ---------- educația ---------- */
.about { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 16px; padding: 0 var(--m) var(--section); }
.about__title { grid-column: 1 / 13; font-size: min(var(--step-head), 4vw); }
.about__lead { grid-column: 1 / 7; margin-top: 24px; font-size: var(--step-lead); line-height: 1.4; max-width: 30em; }
.about__row { grid-column: 1 / 13; display: grid; grid-template-columns: subgrid; margin-top: 72px; align-items: start; }
.about__photo { grid-column: 1 / 9; position: relative; overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.about__paper { position: absolute; top: 0; right: 0; width: 320px; padding: 20px; background: var(--paper); }
.about__paper p { font-style: italic; font-size: var(--step-body); line-height: 1.45; }
.about__side { grid-column: 9 / 13; }
.about__map { aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 8%; }
.about__map svg { width: 100%; height: auto; overflow: visible; }
.about__map .ro { fill: var(--graphite); }
.about__map .route { stroke: var(--paper); stroke-width: 4; fill: none; }
.about__map .dot { fill: var(--paper); }
.about__map .dot--home { fill: var(--blue); stroke: var(--paper); stroke-width: 4; }
.about__map text { fill: var(--paper); font: 600 19px var(--font-display); }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 20px; }
.about__facts div { display: block; }
.about__facts dt { font: 600 var(--step-small)/1.4 var(--font-display); color: var(--ink-soft); }
.about__facts dd { margin: 0 0 16px; }

/* ---------- contact: câmp albastru ---------- */
.contact { background: var(--blue); color: var(--ink); padding-top: 48px; overflow: hidden; }
.strip { overflow: hidden; }
.strip__track { display: flex; gap: 8px; width: max-content; animation: drift 70s linear infinite; }
.strip__track img { height: 150px; width: auto; flex: none; }
.strip:hover .strip__track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-50% - 4px)); } }
.contact__inner { padding: 72px var(--m) clamp(72px, 8vw, 120px); }
.contact__title { font-size: min(var(--step-head), 4vw); }

.slip-form { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: 8px; }
.bar { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 8px; }
.cell { position: relative; display: block; height: 96px; background: var(--blue-2); transition: background-color .2s; }
.cell:hover { background: #63c0fd; }
.cell:focus-within { background: var(--blue-3); }
.cell__k { position: absolute; left: 20px; top: 16px; font: 600 var(--step-small)/1 var(--font-display); pointer-events: none; }
.cell select {
  -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%;
  padding: 34px 52px 0 20px; border: 0; border-radius: 0; background: transparent; color: var(--ink);
  font: 700 var(--step-lead)/1.1 var(--font-display); letter-spacing: -0.015em; cursor: pointer;
}
.cell select:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
label.cell::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 14px; height: 9px; margin-top: 6px;
  background: var(--ink); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none;
  transition: transform .2s var(--ease);
}
label.cell:hover::after { transform: translateY(2px); }
.cell--go {
  border: 0; border-radius: 0; background: var(--graphite); color: var(--on-dark); cursor: pointer;
  font: 700 var(--step-lead)/1.1 var(--font-display); letter-spacing: -0.015em; text-align: center; padding: 0 16px;
  transition: background-color .2s, transform .15s var(--ease);
}
.cell--go:hover { background: var(--ink); }
.cell--go:active { transform: scale(.985); }
.bar__note { margin-top: 12px; max-width: 60ch; font: 600 var(--step-small)/1.45 var(--font-display); }
.bar__note--a { grid-column: 1; }
.bar__note--b { grid-column: 3 / 5; }

.contact__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; margin-top: 72px; align-items: start; }
.slip { grid-column: 1 / 6; display: grid; grid-template-columns: minmax(120px, 34%) 1fr; background: var(--paper); }
.slip__spec { position: relative; aspect-ratio: 1; background: var(--green); overflow: hidden; transition: background-color .5s var(--ease); }
.slip__spec img { position: absolute; left: 8%; top: 8%; width: 84%; height: 84%; object-fit: contain; transition: opacity .35s, transform .5s var(--ease); }
.slip__spec.is-swapping img { opacity: 0; transform: translateY(10px) scale(.96); }
.slip__spec[data-field="porcelain"] { background: var(--porcelain); }
.slip__spec[data-field="silver"] { background: var(--silver); }
.slip__spec[data-field="graphite"] { background: var(--graphite); }
.slip__body { padding: 20px 24px 24px; }
.slip__title { font: 700 var(--step-body)/1.2 var(--font-display); letter-spacing: -0.01em; }
.slip__lines { margin-top: 12px; white-space: pre-line; line-height: 1.7; }
.contact__lines { grid-column: 6 / 10; padding-left: 8px; }
.contact__tel { display: inline-block; font: 700 var(--step-head)/1 var(--font-display); letter-spacing: -0.035em; text-decoration: none; transition: color .2s; }
.contact__tel:hover { color: var(--paper); }
.contact__mail { display: inline-block; margin-top: 14px; font: 600 var(--step-lead)/1.2 var(--font-display); overflow-wrap: anywhere; }
.contact__lines address { font-style: normal; margin-top: 20px; }
.contact__links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 20px; font: 600 var(--step-body)/1.4 var(--font-display); }
.contact__map { grid-column: 10 / 13; }
.contact__mapbox { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--blue); }
.contact__mapbox img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.contact__pin { position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: var(--graphite); }
.contact__pin::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; background: var(--graphite); opacity: .35; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(.4); opacity: .5; } to { transform: scale(1.6); opacity: 0; } }
.contact__map figcaption { margin-top: 10px; font: 600 var(--step-small)/1.4 var(--font-display); }

/* ---------- subsolul: π-ul construit ---------- */
.foot { background: var(--graphite); color: var(--on-dark); padding: clamp(72px, 8vw, 120px) var(--m) calc(32px + env(safe-area-inset-bottom)); }
.pi {
  display: grid; gap: 4px;
  grid-template-columns: 12fr 8fr 46fr 8fr 9fr 17fr;
  grid-template-rows: 22fr 78fr;
  height: 34svh; min-height: 240px;
}
.pi > span { display: block; }
.pi__bar { grid-column: 1 / -1; grid-row: 1; background: var(--blue); }
.pi__leg--l { grid-column: 2; grid-row: 2; background: var(--green); }
.pi__leg--r { grid-column: 4; grid-row: 2; background: var(--steel); }
.pi__foot { grid-column: 5; grid-row: 2; align-self: end; aspect-ratio: 1; background: var(--steel); border-top-right-radius: 100%; }
.pi__name { grid-column: 3; grid-row: 2; align-self: end; padding: 0 0 0 20px; font: 700 var(--step-head)/0.9 var(--font-display); letter-spacing: -0.035em; }
.foot__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px 16px; margin-top: 56px; }
.foot__nav { grid-column: 1 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; align-content: start; }
.foot__nav a, .foot__links a { font: 600 15px/1 var(--font-display); text-decoration: none; padding: 10px 0; transition: color .2s; }
.foot__nav a:hover, .foot__links a:hover { color: var(--blue-2); text-decoration: underline; }
.foot__links { grid-column: 5 / 9; display: flex; flex-direction: column; align-items: flex-start; }
.foot__contact { grid-column: 9 / 13; display: grid; gap: 16px; }
.foot__contact a { text-decoration: none; }
.foot__contact a:hover { text-decoration: underline; }
.foot__credits { margin-top: 56px; max-width: 60ch; font: 600 var(--step-small)/1.5 var(--font-display); color: var(--on-dark-soft); }
.foot__last { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; font: 600 var(--step-small)/1.4 var(--font-display); color: var(--on-dark-soft); }


/* ---------- mișcarea: fiecare parte a unei secțiuni intră la rândul ei ---------- */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .rise.is-in { opacity: 1; transform: none; }
.about__photo img { transform: scale(1.06); transition: transform 2.6s var(--ease); }
.about__photo.is-in img { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .plate__img { transform: none; transition: opacity .2s; }
  .about__photo img { transform: none; transition: none; }
  .strip__track { animation: none; }
  .strip { overflow-x: auto; }
  .contact__pin::after { animation: none; }
}

/* ---------- ecrane medii ---------- */
@media (max-width: 1100px) {
  .contact__lines { grid-column: 6 / 13; }
  .contact__map { grid-column: 6 / 10; }
  .slip { grid-row: span 2; }
}

/* ---------- telefon și tabletă: o coloană, cartonașul fixat sus ---------- */
@media (max-width: 900px) {
  :root { --section: 112px; }
  /* pe telefon cartonașul nu mai stă fixat peste text: fiecare fel de lucrare își are cartonașul lui */
  .cat { display: block; }
  .mark { color: var(--on-dark); }
  .cat__plate { position: static; height: auto; padding: 88px var(--m) 28px; }
  .nav a:not(:last-child) { display: none; }
  .plate { width: min(100%, 52svh); }
  .plate__img:not(:first-child) { display: none; }
  .plate__cap { display: none; }
  .hero { min-height: 0; padding: 28px var(--m) 72px; align-items: flex-start; }
  .hero h1 { font-size: var(--step-head); }
  .hero__lead { margin: 16px 0 24px; }
  .hero .btn { width: 100%; }
  .entry { min-height: 0; max-width: none; padding: 0 var(--m) 72px; justify-content: flex-start; }
  .entry__tile { display: block; width: 100%; margin-bottom: 24px; }
  .entry__tile .spec__tile { aspect-ratio: 1; }
  .entry p { margin-top: 16px; }
  .facts { margin-top: 24px; gap: 6px 20px; }

  .work { grid-template-columns: 1fr 1fr; column-gap: 10px; row-gap: 32px; }
  .work__title { grid-column: 1 / -1; grid-row: 1; font-size: var(--step-head); }
  .w1 { grid-column: 1 / -1; grid-row: 2; }
  .w2 { grid-column: 1; grid-row: 3; }
  .w3 { grid-column: 2; grid-row: 3; }
  .w4 { grid-column: 2; grid-row: 4; }
  .w6 { grid-column: 1 / -1; grid-row: 5; }
  .w5 { grid-column: 1; grid-row: 6; }
  .w7 { grid-column: 2; grid-row: 6; }
  .work__note { grid-column: 1 / -1; grid-row: 7; }
  .spec figcaption { flex-direction: column; gap: 2px; }

  .steps { display: block; }
  .steps__list { display: grid; gap: 36px; margin-top: 32px; }
  .step, .s1, .s2, .s3 { display: block; grid-column: auto; grid-row: auto; }
  .s1 .step__tile { height: 56vw; }
  .s2 .step__tile { height: 74vw; }
  .s3 .step__tile { height: 92vw; }
  .steps__note { margin-top: 36px; }

  .faq { display: block; }
  .faq__title { position: static; margin-bottom: 28px; }
  .faq summary { min-height: 64px; padding: 18px 56px 18px 20px; font-size: 1.125rem; }
  .plus { right: 20px; }
  .faq__a { padding: 0 20px 22px; }

  .about { display: block; }
  .about__title { font-size: var(--step-head); }
  .about__lead { font-size: 1.125rem; }
  .about__row { display: block; margin-top: 36px; }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__paper { position: static; width: auto; padding: 16px 0 0; background: none; }
  .about__side { margin-top: 32px; }
  .about__map { aspect-ratio: 3 / 2; }

  .contact__title { font-size: var(--step-head); }
  .strip__track img { height: 110px; }
  .contact__inner { padding-top: 48px; }
  .slip-form { display: block; }
  .bar { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .cell { height: 72px; }
  .cell__k { top: 12px; }
  .cell select { padding-top: 28px; }
  .cell--go { height: 60px; }
  .bar__note { margin-top: 10px; }
  .contact__row { display: block; margin-top: 48px; }
  .contact__lines { padding: 0; margin-top: 40px; }
  .contact__map { margin-top: 40px; max-width: 520px; }

  .pi { grid-template-rows: 22fr 78fr auto; height: 22svh; min-height: 180px; }
  .pi__name { grid-column: 1 / -1; grid-row: 3; padding: 20px 0 0; }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__nav { grid-column: 1 / -1; }
  .foot__links { grid-column: 1 / -1; }
  .foot__contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) and (min-width: 600px) {
  .slip { max-width: 640px; }
}

@media (max-width: 599px) {
  .slip { grid-template-columns: 1fr; }
  .slip__spec { aspect-ratio: 2 / 1; }
}

/* ---------- paginile simple: confidențialitate, 404 ---------- */
.page-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: var(--m); }
.page-top .mark { position: static; color: var(--ink); }
.page-top .btn { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.doc { padding: clamp(48px, 8vw, 120px) var(--m) var(--section); max-width: 52rem; }
.doc h1 { font-size: var(--step-head); }
.doc .doc__date { margin-top: 16px; color: var(--ink-soft); font: 600 var(--step-small)/1.4 var(--font-display); }
.doc h2 { font-size: var(--step-lead); letter-spacing: -0.02em; line-height: 1.2; margin-top: 48px; }
.doc p { margin-top: 14px; max-width: 62ch; }
.doc .btn { margin-top: 36px; }
.lost { min-height: 70svh; display: grid; align-content: center; padding: 64px var(--m); }
.lost h1 { font-size: var(--step-head); max-width: 14em; }
.lost p { margin-top: 20px; max-width: 40ch; }
.lost__actions { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 32px; }
