/* ==========================================================================
   Starh Workover Services — design system
   Ink (oțel brunat) + Paper (developant rece) + Amber (semnal / indicație)
   Archivo (display, lățime extinsă) · IBM Plex Sans (text) · IBM Plex Mono (etichete)
   ========================================================================== */

/* ---------- Fonts (self-hosted, subset Latin + diacritice românești) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-ro.woff2") format("woff2");
  font-weight: 500 800;
  font-stretch: 100% 125%;
  font-display: swap;
  unicode-range: U+0102-0103, U+0218-021B, U+015E-015F, U+0162-0163;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-400-ro.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0102-0103, U+0218-021B, U+015E-015F, U+0162-0163;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-500-ro.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0102-0103, U+0218-021B, U+015E-015F, U+0162-0163;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/plex-sans-600-ro.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0102-0103, U+0218-021B, U+015E-015F, U+0162-0163;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2013-2014, U+2018-201E, U+2022, U+2026, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500-ro.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0102-0103, U+0218-021B, U+015E-015F, U+0162-0163;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #0c1824;
  --ink-2: #132331;
  --ink-3: #22374a;
  --steel: #4a5b6a;
  --steel-2: #8698a8;
  --fog: #b3c0cb;
  --paper: #f2f4f6;
  --white: #ffffff;
  --tint: #f7f9fa;
  --rule: #d6dde3;
  --field: #b4c0ca;
  --amber: #f99223;
  --amber-2: #fbaa52;
  --amber-deep: #b8650a;
  --wa: #128c7e;
  --danger: #b42318;
  --danger-bg: #fdf1f0;
  --ok: #17663f;
  --ok-bg: #eef7f1;

  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --header-h: 72px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --maxw: 1240px;
  --radius: 4px;
  --radius-lg: 8px;
  --overlap: 3.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow: 0 1px 2px rgba(12, 24, 36, 0.06), 0 18px 40px -22px rgba(12, 24, 36, 0.35);
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 0 auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 750;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--amber);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--amber);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.on-dark .eyebrow {
  color: var(--fog);
}

/* Semnătura: fasciculul unghiular (V-path) care traversează o tablă */
.vpath {
  width: 30px;
  height: 12px;
  flex: none;
  overflow: visible;
}

.vpath__plate {
  stroke: currentColor;
  stroke-width: 1;
  opacity: 0.45;
}

.vpath__beam {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.8;
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.1s 0.25s var(--ease) forwards;
}

.page-title {
  margin-top: 1.1rem;
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 800;
  font-stretch: 115%;
  line-height: 1;
  letter-spacing: -0.022em;
}

.lead {
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 40rem;
}

.mini-title {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  font-stretch: normal;
  line-height: 1.3;
}

/* ---------- Buttons & links ---------- */
.btn {
  --btn-h: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: var(--btn-h);
  padding: 0 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--amber);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--amber-2);
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--white);
}

.btn--ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.btn--dark {
  background: var(--ink);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--ink-3);
}

.btn--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--white);
}

.btn--sm {
  --btn-h: 2.5rem;
  padding: 0 1.1rem;
  font-size: 0.92rem;
}

.btn--block {
  width: 100%;
  --btn-h: 3.25rem;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.75;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s, border-color 0.3s;
  view-transition-name: site-header;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  text-decoration: none;
}

.brand__logo {
  width: 52px;
  height: 52px;
  flex: none;
}

.brand__sub {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.62rem;
  line-height: 1.4;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

/* RO / EN */
.lang {
  display: inline-flex;
  margin-left: 1.1rem;
  margin-right: auto;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.lang__opt {
  display: inline-grid;
  place-items: center;
  min-width: 2.15rem;
  height: 1.75rem;
  padding: 0 0.45rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--fog);
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.2s, color 0.2s;
}

.lang__opt:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.lang__opt[aria-current="true"] {
  background: var(--amber);
  color: var(--ink);
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.6rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fog);
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.2rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.site-nav__link:hover,
.site-nav__link[aria-current="page"] {
  color: var(--white);
}

.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav__item--cta {
  margin-left: 0.85rem;
}

.site-nav__cta[aria-current="page"] {
  background: transparent;
  border-color: var(--amber);
  color: var(--amber);
}

.site-nav__extra {
  display: none;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: 0.85rem;
}

.header-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  transition: background-color 0.2s, border-color 0.2s;
}

.header-btn svg {
  width: 20px;
  height: 20px;
}

.header-btn--call:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.header-btn--wa:hover {
  background: #25d366;
  border-color: #25d366;
}

.menu-toggle {
  display: none;
}

/* Home: header transparent peste fotografie, devine solid la scroll */
.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.page-home .site-header.is-scrolled,
.menu-open .page-home .site-header,
.page-home.menu-open .site-header {
  background: var(--ink);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.page-home .site-nav__link {
  color: #e3e9ee;
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--overlap));
  min-height: calc(100svh - var(--overlap));
  padding-top: var(--header-h);
  color: var(--white);
  background: var(--ink);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 74% 58%;
  filter: brightness(0.9) saturate(1.25);
  animation: hero-settle 2.4s var(--ease) both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 24, 36, 0.88) 0, rgba(12, 24, 36, 0.5) calc(var(--header-h) + 2rem), rgba(12, 24, 36, 0) calc(var(--header-h) + 10rem)),
    linear-gradient(90deg, rgba(12, 24, 36, 0.95) 0%, rgba(12, 24, 36, 0.84) 40%, rgba(12, 24, 36, 0.4) 72%, rgba(12, 24, 36, 0.2) 100%),
    linear-gradient(0deg, rgba(12, 24, 36, 0.9) 0%, rgba(12, 24, 36, 0) 42%);
}

.hero__content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "text text" "actions iso";
  align-content: center;
  column-gap: 2rem;
  padding-block: clamp(2.5rem, 7vh, 5rem) clamp(2rem, 5vh, 3.5rem);
}

.hero__text {
  grid-area: text;
}

.iso {
  grid-area: iso;
  align-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
  margin-top: -6rem;
}

.iso__label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fog);
}

.iso__list {
  display: flex;
  gap: 0.85rem;
}

.iso-badge {
  width: clamp(88px, 7.6vw, 112px);
  height: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.4s var(--ease);
}

.iso__list li:hover .iso-badge {
  transform: translateY(-3px) rotate(-5deg);
}

.iso-badge__ring {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.05em;
  fill: #f8cf7e;
}

.iso-badge__ring--sm {
  font-size: 9px;
  letter-spacing: 0.2em;
}

.iso-badge__iso {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 112%;
  font-size: 13px;
  letter-spacing: 0.22em;
  fill: #f8cf7e;
}

.iso-badge__num {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 25px;
  fill: #ffffff;
}

.iso-badge__num--long {
  font-size: 21px;
}

.iso-badge__cert {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 7.5px;
  letter-spacing: 0.24em;
  fill: #f8cf7e;
}

.hero__title {
  margin-top: 1.25rem;
  font-size: clamp(2.2rem, 0.9rem + 4vw, 4.1rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -0.026em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--muted {
  color: var(--fog);
}

.hero__lead {
  max-width: 36rem;
  margin-top: 1.5rem;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  line-height: 1.55;
  color: #d3dce3;
}

.hero__actions {
  grid-area: actions;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.1rem;
}

.hero__strip {
  position: relative;
  z-index: 2;
  margin-bottom: calc(-1 * var(--overlap));
}

.svc-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  backdrop-filter: blur(14px) saturate(1.15);
}

.svc-strip > li {
  background: rgba(12, 24, 36, 0.8);
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  height: 100%;
  padding: 1.2rem 1.2rem 1.35rem;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.25s;
}

.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}

.svc-card:hover {
  background: rgba(255, 255, 255, 0.05);
}

.svc-card:hover::before,
.svc-card:focus-visible::before {
  transform: scaleX(1);
}

.svc-card:focus-visible {
  outline-offset: -3px;
}

.svc-card__top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.55rem;
}

.svc-card__icon {
  width: 30px;
  height: 30px;
}

.svc-card__code {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--fog);
}

.svc-card__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.06rem;
  line-height: 1.15;
}

.svc-card__desc {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #c5d0d8;
}

.svc-card__arrow {
  position: absolute;
  right: 1.1rem;
  top: 1.45rem;
  width: 20px;
  height: 20px;
  color: var(--amber);
  transition: transform 0.35s var(--ease);
}

.svc-card:hover .svc-card__arrow {
  transform: translateX(4px);
}

/* Iconițe tehnice */
.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .acc {
  stroke: var(--amber-deep);
}

.on-dark .icon .acc {
  stroke: var(--amber);
}

.icon .acc--dots {
  stroke-width: 2.6;
}

/* ---------- Inner pages ---------- */
.page-intro {
  padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(1.25rem, 2.5vw, 2rem);
}

.page-intro__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem 4rem;
  align-items: end;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-block: clamp(2rem, 4.5vw, 3.25rem) clamp(2rem, 4vw, 2.75rem);
}

.about__text .lead {
  margin-top: 1.5rem;
}

.principles {
  margin-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.principles__item {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 0.4rem 1.75rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.principles__title {
  font-size: 1.08rem;
  font-stretch: 106%;
  line-height: 1.25;
}

.principles__text {
  font-size: 0.98rem;
  color: var(--steel);
}

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__media {
  min-height: 420px;
}

.about__media img {
  position: absolute;
  inset: 0;
  object-position: 68% 50%;
}

.media__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.domains {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.domains__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.domains__item {
  padding: 1.25rem 1.4rem 1.35rem;
  background: var(--white);
}

.domains__name {
  font-size: 1.05rem;
  font-stretch: 108%;
  line-height: 1.2;
}

.domains__text {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--steel);
  line-height: 1.45;
}

/* CTA band */
.cta-band {
  background: var(--ink-2);
  color: var(--white);
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

.cta-band__title {
  font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.85rem);
  font-stretch: 112%;
}

.cta-band__text {
  margin-top: 0.4rem;
  color: var(--fog);
}

/* ---------- Services (tabs) ---------- */
.svc {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc__side {
  display: none;
}

.js .svc__side {
  display: flex;
  flex-direction: column;
  background: var(--tint);
  border-right: 1px solid var(--rule);
}

.svc__tablist {
  display: flex;
  flex-direction: column;
}

.js .svc {
  align-items: stretch;
}

.no-tabs .svc,
html:not(.js) .svc {
  grid-template-columns: minmax(0, 1fr);
}

.svc__tab {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 0.15rem 0.9rem;
  width: 100%;
  padding: 1.2rem 1.35rem;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  transition: background-color 0.2s;
}

.svc__tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transition: transform 0.35s var(--ease);
}

.svc__tab:hover {
  background: #eef2f5;
}

.svc__tab[aria-selected="true"] {
  background: var(--white);
  margin-right: -1px;
}

.svc__tab[aria-selected="true"]::before {
  transform: scaleY(1);
}

.svc__tab:focus-visible {
  outline-offset: -3px;
}

.svc__tab-icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
}

.svc__tab-code {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.svc__tab-name {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 108%;
  font-size: 1.02rem;
  line-height: 1.2;
}

.svc__tab-hint {
  margin-top: auto;
  padding: 1.2rem 1.35rem;
  font-size: 0.85rem;
  color: var(--steel);
}

.svc-panel {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

html:not(.js) .svc-panel + .svc-panel {
  border-top: 1px solid var(--rule);
}

.svc-panel:focus-visible {
  outline-offset: -4px;
}

.svc-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.svc-panel__code {
  flex: none;
  min-width: 4.4rem;
  padding: 0.55rem 0.6rem 0.5rem;
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.6rem;
  line-height: 1;
  text-align: center;
  color: var(--ink);
  background: var(--amber);
  border-radius: var(--radius);
}

.svc-panel__title {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 800;
  font-stretch: 114%;
  line-height: 1.05;
}

.svc-panel__what {
  margin-top: 0.55rem;
  color: var(--steel);
  max-width: 44rem;
}

.svc-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  margin-top: 1.75rem;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.steps__item {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  font-size: 0.98rem;
  line-height: 1.5;
}

.steps__item::before {
  content: counter(step, decimal-leading-zero);
  display: grid;
  place-items: center;
  height: 1.7rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--tint);
}

.steps__item strong {
  font-weight: 600;
}

.figure {
  margin: 0;
}

.figure__frame {
  padding: 0.75rem;
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
}

.figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--steel);
}

.svc-panel__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-top: 1.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 2.5rem;
  margin: 0;
}

.meta__term {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.meta__def {
  margin: 0.3rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

/* ---------- Diagrams (shared) ---------- */
.dg {
  width: 100%;
  height: auto;
  font-family: var(--f-mono);
}

.dg-plate {
  fill: url(#dg-hatch);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.dg-weld {
  fill: url(#dg-hatch-weld);
  stroke: var(--ink);
  stroke-width: 1.2;
}

.dg-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.4;
}

.dg-thin {
  fill: none;
  stroke: var(--steel-2);
  stroke-width: 1;
}

.dg-dash {
  fill: none;
  stroke: var(--steel-2);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.dg-amber {
  fill: var(--amber);
}

.dg-amber-line {
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dg-ink {
  fill: var(--ink);
}

.dg-label {
  font-size: 12px;
  fill: var(--steel);
  letter-spacing: 0.02em;
}

.dg-label--strong {
  fill: var(--ink);
  font-weight: 500;
}

.dg-dot {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 1.4;
}

.dg-screen {
  fill: var(--ink);
}

.dg-screen-grid {
  stroke: #22374a;
  stroke-width: 1;
}

.dg-screen-label {
  font-size: 10.5px;
  fill: var(--fog);
  letter-spacing: 0.08em;
}

.dg-trace {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.dg-gate {
  stroke: var(--white);
  stroke-width: 2;
}

.dg-beam {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linejoin: round;
}

.dg-beam-glow {
  fill: none;
  stroke: var(--amber);
  stroke-width: 12;
  stroke-linejoin: round;
  opacity: 0.16;
}

.dg-flaw-hit {
  fill: var(--amber);
  opacity: var(--hit, 0);
}

/* Animații care pornesc când panoul devine activ */
.svc-panel.is-active .dg-draw,
html:not(.js) .dg-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.8s 0.2s var(--ease) forwards;
}

.svc-panel.is-active .dg-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: bleed 1.4s 0.5s var(--ease) both;
}

.svc-panel.is-active .dg-fade {
  animation: fade 0.8s 1.1s var(--ease) both;
}

.svc-panel.is-active .dg-grow {
  transform-box: fill-box;
  transform-origin: bottom;
  animation: grow-y 0.7s var(--ease) both;
  animation-delay: calc(0.25s + var(--i, 0) * 0.12s);
}

/* ---------- Process ---------- */
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--rule);
}

.timeline::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  animation: grow-x 1.9s 0.35s var(--ease) forwards;
}

.timeline__item {
  position: relative;
  padding-top: 1.85rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  z-index: 1;
  width: 13px;
  height: 13px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  animation: dot-on 0.4s var(--ease) forwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.45s);
}

.timeline__num {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.timeline__title {
  margin-top: 0.45rem;
  font-size: 1.35rem;
  font-stretch: 112%;
}

.timeline__text {
  margin-top: 0.55rem;
  font-size: 0.98rem;
  color: var(--steel);
}

.process-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-block: clamp(2.5rem, 5vw, 3.75rem);
}

.checklist-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-lg);
}

.checklist-card__title {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem);
  font-stretch: 112%;
}

.checklist {
  margin: 1.25rem 0 1.75rem;
}

.checklist__item {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  gap: 0.8rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--ink-3);
  color: #dbe3e9;
  font-size: 0.98rem;
}

.checklist__item svg {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.22rem;
  stroke: var(--amber);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checklist-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.process-photo {
  min-height: 360px;
}

.process-photo img {
  position: absolute;
  inset: 0;
  object-position: 40% 45%;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.contact__info .lead {
  margin-top: 1.4rem;
}

.contact-list {
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
}

.contact-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.contact-list__label {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.contact-list__value {
  font-family: var(--f-display);
  font-weight: 700;
  font-stretch: 110%;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  text-decoration: none;
  background: linear-gradient(var(--amber), var(--amber)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.35s var(--ease);
}

.contact-list__value:hover {
  background-size: 100% 2px;
}

.contact-list__value--wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-list__value--wa svg {
  width: 24px;
  height: 24px;
  flex: none;
  color: var(--wa);
}

.contact__tip {
  margin-top: 1.75rem;
}

.contact__tip-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--steel);
}

.contact__tip-list li {
  position: relative;
  padding-left: 1.1rem;
}

.contact__tip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 1px;
}

.form-card {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem 1rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field__label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.3;
}

.field__req {
  color: var(--danger);
}

.field__opt,
.field__count {
  font-weight: 400;
  color: var(--steel);
  font-size: 0.82rem;
}

.input {
  display: block;
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  border: 1px solid var(--field);
  border-radius: var(--radius);
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.input::placeholder {
  color: #7f8d99;
}

.input:hover {
  border-color: var(--steel-2);
}

.input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(249, 146, 35, 0.45);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

textarea.input {
  min-height: 8.5rem;
  resize: vertical;
}

select.input {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230c1824' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 18px;
  cursor: pointer;
}

.field__error {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.4rem;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--danger);
}

.field__error svg {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 1px;
}

.check {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--steel);
  cursor: pointer;
}

.check__input {
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0.05rem 0 0;
  border: 1px solid var(--field);
  border-radius: 3px;
  background: var(--white) center / 14px no-repeat;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}

.check__input:checked {
  background-color: var(--ink);
  border-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23f99223' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
}

.check__input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.check__input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.check a {
  color: var(--ink);
  font-weight: 500;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__actions {
  margin-top: 1.4rem;
}

.form__note {
  margin-top: 0.75rem;
  font-size: 0.82rem;
  color: var(--steel);
  text-align: center;
}

.form-alert {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--danger);
  background: var(--danger-bg);
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: var(--radius);
}

.form-alert svg {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.form-alert:focus {
  outline: none;
}

.form-alert__list {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.15rem;
}

.form-alert__list a {
  color: var(--danger);
  font-weight: 500;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(12, 24, 36, 0.25);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.btn[aria-busy="true"] .spinner {
  display: inline-block;
}

.btn[aria-busy="true"] .btn__icon {
  display: none;
}

.form-result {
  text-align: left;
}

.form-result:focus {
  outline: none;
}

.form-result__badge {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
}

.form-result__badge--info {
  background: #fdf3e4;
  color: var(--amber-deep);
}

.form-result__badge svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-result__title {
  margin-top: 1.1rem;
  font-size: 1.6rem;
  font-stretch: 112%;
}

.form-result__text {
  margin-top: 0.6rem;
  color: var(--steel);
}

.form-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.form-result__status {
  min-height: 1.4em;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--ok);
}

/* ---------- Prose (legal) ---------- */
.prose {
  max-width: 46rem;
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.prose h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.3rem;
  font-stretch: 110%;
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: #26343f;
}

.prose ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.prose li + li {
  margin-top: 0.35rem;
}

.prose a {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- 404 ---------- */
.not-found {
  display: grid;
  align-content: center;
  min-height: 60vh;
  padding-block: 4rem;
}

.not-found__code {
  font-family: var(--f-display);
  font-weight: 800;
  font-stretch: 125%;
  font-size: clamp(5rem, 3rem + 10vw, 10rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 2.75rem 1.5rem;
  background: var(--ink);
  color: var(--fog);
  font-size: 0.95rem;
}

.page-home .site-footer {
  padding-top: calc(var(--overlap) + 2.5rem);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 2rem 3rem;
}

.footer-logo {
  display: inline-block;
}

.footer-logo img {
  width: 118px;
  height: auto;
}

.site-footer__about {
  margin-top: 1rem;
  max-width: 22rem;
  line-height: 1.55;
}

.footer-title {
  margin-bottom: 0.85rem;
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 0.72rem;
  font-stretch: normal;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-2);
}

.footer-list {
  display: grid;
  gap: 0.45rem;
}

.footer-list--2 {
  grid-template-columns: repeat(2, max-content);
  column-gap: 2.5rem;
}

.footer-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.site-footer a {
  color: #e2e8ed;
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer a:hover {
  color: var(--amber);
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-3);
  font-size: 0.85rem;
}

.site-footer__legal p + p {
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--steel-2);
}

/* ---------- Motion ---------- */
[data-reveal] {
  animation: rise 0.8s var(--ease) both;
  animation-delay: var(--d, 0s);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes grow-y {
  from {
    transform: scaleY(0);
  }
}

@keyframes grow-x {
  to {
    transform: scaleX(1);
  }
}

@keyframes dot-on {
  to {
    border-color: var(--amber-deep);
    background: var(--amber);
  }
}

@keyframes bleed {
  from {
    opacity: 0;
    transform: scale(0.3, 0.6);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes hero-settle {
  from {
    transform: scale(1.06);
  }
  to {
    transform: none;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  @view-transition {
    navigation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .svc-card {
    padding-inline: 1rem;
  }

  .svc-card__title {
    font-size: 0.98rem;
    font-stretch: 100%;
  }

  .svc-card__arrow {
    right: 0.9rem;
  }
}

@media (max-width: 1100px) {
  .site-nav__link {
    padding-inline: 0.65rem;
  }

  .site-nav__link::after {
    left: 0.65rem;
    right: 0.65rem;
  }

  .svc {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .svc-panel__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-panel__fig {
    max-width: 520px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 64px;
  }

  .brand__logo {
    width: 46px;
    height: 46px;
  }

  .header-actions {
    margin-left: 0;
  }

  .header-btn {
    width: 42px;
    height: 42px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    color: var(--white);
  }

  .menu-toggle {
    position: relative;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .menu-toggle__bars,
  .menu-toggle__bars::before {
    position: absolute;
    left: 11px;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }

  .menu-toggle__bars {
    top: 17px;
  }

  .menu-toggle__bars::before {
    content: "";
    left: 0;
    top: 8px;
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars {
    top: 21px;
    transform: rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-toggle__bars::before {
    top: 0;
    transform: rotate(-90deg);
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    padding: 1.25rem var(--gutter) 2rem;
    background: var(--ink);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s, transform 0.35s var(--ease), visibility 0s 0.35s;
  }

  .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.35s var(--ease);
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    padding: 1rem 0;
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.65rem;
    color: var(--white);
    border-bottom: 1px solid var(--ink-3);
  }

  .site-nav__link::after {
    display: none;
  }

  .site-nav__link[aria-current="page"] {
    color: var(--amber);
  }

  .site-nav__item--cta {
    margin: 0;
  }

  .site-nav__cta,
  .site-nav__cta[aria-current="page"] {
    --btn-h: auto;
    justify-content: flex-start;
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink-3);
    border-radius: 0;
    font-family: var(--f-display);
    font-weight: 700;
    font-stretch: 112%;
    font-size: 1.65rem;
    color: var(--white);
  }

  .site-nav__cta[aria-current="page"] {
    color: var(--amber);
  }

  .site-nav__cta:hover {
    background: transparent;
  }

  .site-nav__extra {
    display: grid;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 2rem;
    color: var(--fog);
  }

  .site-nav__extra a {
    color: var(--white);
    font-weight: 500;
    text-decoration: none;
  }

  .menu-open {
    overflow: hidden;
  }
}

@media (max-width: 860px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "actions" "iso";
  }

  .iso {
    align-items: flex-start;
    margin-top: 2rem;
  }

  .iso-badge {
    width: 84px;
  }

  .hero__media img {
    object-position: 82% 40%;
  }

  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(12, 24, 36, 0.86) 0%, rgba(12, 24, 36, 0.72) 45%, rgba(12, 24, 36, 0.78) 70%, rgba(12, 24, 36, 0.95) 100%);
  }

  .page-intro__row,
  .about,
  .contact,
  .process-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__media {
    min-height: 300px;
    order: -1;
  }

  .contact__tip {
    display: none;
  }

  .svc-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc-strip > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .domains__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .js .svc {
    grid-template-columns: minmax(0, 1fr);
  }

  .js .svc__side {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .svc__tablist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .svc__tab {
    padding: 0.9rem 1rem;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 0.1rem 0.7rem;
  }

  .svc__tablist {
    gap: 1px;
    background: var(--rule);
  }

  .svc__tab {
    border-bottom: 0;
    background: var(--tint);
  }

  .svc__tab:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .svc__tab[aria-selected="true"] {
    margin-right: 0;
  }

  .svc__tab::before {
    top: auto;
    right: 0;
    width: auto;
    height: 3px;
    transform: scaleX(0);
  }

  .svc__tab[aria-selected="true"]::before {
    transform: scaleX(1);
  }

  .svc__tab-icon {
    width: 26px;
    height: 26px;
  }

  .svc__tab-hint {
    display: none;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 2rem;
    border-top: 0;
  }

  .timeline::after {
    display: none;
  }

  .timeline__item {
    border-top: 1px solid var(--rule);
  }

  .process-photo {
    min-height: 260px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --overlap: 2rem;
  }

  .svc-panel {
    padding: 1.4rem 1.1rem;
  }

  .figure__frame {
    padding: 0.35rem;
  }

  .dg-label {
    font-size: 15px;
  }

  .dg-screen-label {
    font-size: 13px;
  }

  body {
    font-size: 1rem;
  }

  .brand__sub {
    letter-spacing: 0.16em;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .svc-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-card {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.1rem 0.9rem;
    padding: 1rem 3rem 1rem 1.1rem;
  }

  .svc-card__top {
    grid-row: span 3;
    margin: 0;
    align-self: start;
  }

  .svc-card__code {
    display: none;
  }

  .svc-card__arrow {
    top: 50%;
    bottom: auto;
    margin-top: -10px;
  }

  .svc-card:hover .svc-card__arrow {
    transform: translateX(3px);
  }

  .principles__item {
    grid-template-columns: minmax(0, 1fr);
  }

  .domains__list,
  .timeline,
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .svc-panel__head {
    flex-direction: column;
    gap: 0.9rem;
  }

  .svc-panel__foot .btn {
    width: 100%;
  }

  .site-footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-list--2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__base {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .brand__sub {
    display: none;
  }

  .lang {
    margin-left: 0.6rem;
  }

  .lang__opt {
    min-width: 2rem;
    height: 1.9rem;
  }
}

@media (max-width: 360px) {
  .site-header__inner {
    gap: 0.5rem;
  }

  .header-btn,
  .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

/* ==========================================================================
   Temă închisă pentru paginile interioare (ca prima pagină): <body class="theme-dark">
   ========================================================================== */
.theme-dark {
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --text: #d6dee5;
  background: #0b141d linear-gradient(180deg, #0a1018 0%, #0c1926 35%, #0f2236 100%);
  color: var(--text);
}

.theme-dark :focus-visible {
  outline-color: var(--amber);
}

.theme-dark .page-title,
.theme-dark h1,
.theme-dark h2,
.theme-dark h3,
.theme-dark .svc__tab-name,
.theme-dark .meta__def,
.theme-dark .steps__item strong,
.theme-dark .not-found__code {
  color: var(--white);
}

.theme-dark .lead,
.theme-dark .principles__text,
.theme-dark .domains__text,
.theme-dark .svc-panel__what,
.theme-dark .timeline__text,
.theme-dark .figure figcaption,
.theme-dark .contact__tip-list,
.theme-dark .svc__tab-hint,
.theme-dark .form__note,
.theme-dark .field__opt,
.theme-dark .field__count,
.theme-dark .check {
  color: var(--fog);
}

.theme-dark .eyebrow,
.theme-dark .mini-title,
.theme-dark .meta__term,
.theme-dark .svc__tab-code,
.theme-dark .timeline__num,
.theme-dark .contact-list__label {
  color: var(--steel-2);
}

.theme-dark .steps__item,
.theme-dark .prose p,
.theme-dark .prose ul {
  color: var(--text);
}

.theme-dark a:not(.btn) {
  color: inherit;
}

.theme-dark .lang__opt[aria-current="true"] {
  color: var(--ink);
}

.theme-dark .prose a,
.theme-dark .check a,
.theme-dark .svc__tab-hint a {
  color: var(--amber);
}

.theme-dark .icon {
  color: var(--white);
}

.theme-dark .icon .acc {
  stroke: var(--amber);
}

/* linii și carduri */
.theme-dark .principles,
.theme-dark .principles__item,
.theme-dark .contact-list,
.theme-dark .contact-list__item,
.theme-dark .svc-panel__foot,
.theme-dark .timeline,
.theme-dark .timeline__item {
  border-color: var(--line);
}

.theme-dark .domains__list {
  background: var(--line);
  border-color: var(--line);
}

.theme-dark .domains__item {
  background: #0e1d2c;
}

.theme-dark .cta-band {
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--line);
}

.theme-dark .svc {
  background: rgba(10, 20, 30, 0.6);
  border-color: var(--line);
}

.theme-dark .svc__side {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.theme-dark .svc__tablist {
  background: transparent;
}

@media (max-width: 860px) {
  .theme-dark .svc__tablist {
    background: var(--line);
  }

  .theme-dark .svc__tab {
    background: #0e1b28;
  }

  .theme-dark .svc__tab[aria-selected="true"] {
    background: #172a3c;
  }
}

.theme-dark .svc__tab {
  background: transparent;
  border-color: var(--line);
}

.theme-dark .svc__tab:hover {
  background: var(--surface);
}

.theme-dark .svc__tab[aria-selected="true"] {
  background: var(--surface-2);
}

.theme-dark .steps__item::before {
  background: var(--surface);
  border-color: var(--line);
  color: var(--white);
}

/* diagramele rămân pe „hârtie” deschisă, ca niște fișe tehnice */
.theme-dark .figure__frame {
  background: #eef2f5;
  border-color: transparent;
}

.theme-dark .btn--dark {
  background: var(--amber);
  color: var(--ink);
}

.theme-dark .btn--dark:hover {
  background: var(--amber-2);
}

.theme-dark .btn--outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.theme-dark .btn--outline:hover {
  background: var(--white);
  color: var(--ink);
}

.theme-dark .timeline__item::before {
  background: #0c1926;
  border-color: var(--fog);
}

.theme-dark .checklist-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.theme-dark .media {
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

/* formular */
.theme-dark .form-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}

.theme-dark .field__label {
  color: var(--white);
}

.theme-dark .field__req {
  color: #ff8a7a;
}

.theme-dark .input {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}

.theme-dark .input::placeholder {
  color: #8a9aa8;
}

.theme-dark .input:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.theme-dark .input:focus {
  border-color: var(--amber);
}

.theme-dark select.input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
}

.theme-dark select.input option {
  color: var(--ink);
}

.theme-dark .check__input {
  background-color: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.3);
}

.theme-dark .check__input:checked {
  background-color: var(--amber);
  border-color: var(--amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230c1824' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5'/%3E%3C/svg%3E");
}

.theme-dark .field__error,
.theme-dark .form-alert,
.theme-dark .form-alert__list a {
  color: #ff9a8b;
}

.theme-dark .form-alert {
  background: rgba(180, 35, 24, 0.15);
  border-color: rgba(255, 120, 100, 0.35);
}

.theme-dark .input[aria-invalid="true"] {
  border-color: #ff8a7a;
}

.theme-dark .form-result__text {
  color: var(--fog);
}

.theme-dark .site-footer {
  background: rgba(0, 0, 0, 0.3);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .theme-dark .svc__tab {
    background: #0e1b28;
  }

  .theme-dark .svc__tab[aria-selected="true"] {
    background: #172a3c;
  }
}
