/* ==========================================================================
   FastPos — foaia de stil principală
   Sistem construit pe pachetul de branding v1 (04_Culori/FastPos_Tokens.css)
   Motiv vizual: "traseul" — trasee ortogonale cu colțuri rotunjite,
   preluate din geometria monogramei FP. Fără gradienți, fără blur,
   fără umbre de elevație: doar culoare plată, linii de 1px și tipografie.
   ========================================================================== */

/* --- 1. Fonturi (subsetate Latin + diacritice RO, self-hosted) ------------ */

@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rubik";
  src: url("../fonts/Rubik-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/NotoSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans";
  src: url("../fonts/NotoSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- 2. Tokenuri ---------------------------------------------------------- */

:root {
  /* Culori de brand — identice cu FastPos_Tokens.css */
  --navy: #162f4b;
  --coral: #ff4b5c;
  --cloud: #f5f6f8;
  --ink: #142334;
  --slate: #607184;
  --white: #ffffff;

  /* Derivate, pentru profunzime fără gradient */
  --navy-deep: #0e2035;
  --cloud-warm: #e7eaf0;
  /* Slate din pachetul de brand da 4.16:1 pe gri-cald, sub pragul AA de 4.5.
     Pentru text secundar folosim o nuanta mai inchisa a aceleiasi culori:
     4.82:1 pe gri-cald, 5.37:1 pe cloud. --slate ramane neatins. */
  --slate-text: #56677a;

  --line: rgba(22, 47, 75, 0.14);
  --line-strong: rgba(22, 47, 75, 0.3);
  --line-dark: rgba(245, 246, 248, 0.16);
  --line-dark-strong: rgba(245, 246, 248, 0.34);

  /* Tipografie */
  --font-head: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Ritm */
  --radius: 16px;
  --radius-sm: 10px;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1320px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);

  color-scheme: light;
}

/* --- 3. Reset ------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--coral);
  color: var(--white);
}

/* --- 4. Utilitare de layout ---------------------------------------------- */

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

.skip {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--white);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  transition: top 0.18s;
}
.skip:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Eticheta de secțiune. Marcajul e pătratul cu colțuri rotunjite — forma de bază
   a identității (monograma și iconul sunt construite din ea) — nu o liniuță.
   Textul rămâne în propoziție, fără majuscule răsfirate. */
.sec-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.sec-label b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.on-dark .sec-label {
  color: var(--white);
  /* Aceeasi corectie optica precum la navigatie: pe fundal inchis, textul
     bold mic are nevoie de putin aer intre litere. */
  letter-spacing: 0.015em;
}
.on-dark .sec-label b {
  background: var(--white);
  color: var(--navy);
}

/* Titlu de secțiune + index numeric supradimensionat */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem 3rem;
  padding-bottom: 2.75rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 900px) {
  .sec-head {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
    align-items: end;
  }
}
.sec-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
}
.sec-head .sec-note {
  color: var(--slate-text);
  font-size: 1.0625rem;
  max-width: 46ch;
}
.on-dark .sec-head {
  border-color: var(--line-dark);
}
.on-dark h2,
.on-dark h3 {
  color: var(--white);
}
.on-dark .sec-note {
  color: rgba(245, 246, 248, 0.72);
}

section {
  padding-block: var(--section-y);
}

/* --- 5. Butoane ----------------------------------------------------------- */

.btn {
  --btn-bg: var(--navy);
  --btn-fg: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.16s, border-color 0.16s,
    color 0.16s;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn .arw {
  transition: transform 0.16s ease;
}
.btn:hover .arw {
  transform: translateX(4px);
}

.btn--coral {
  --btn-bg: var(--coral);
  --btn-fg: var(--white);
}
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--navy);
}
.on-dark .btn--ghost {
  --btn-fg: var(--white);
  border-color: var(--line-dark-strong);
}
.on-dark .btn--ghost:hover {
  border-color: var(--white);
}
.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--navy);
}

/* --- 6. Antet ------------------------------------------------------------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-head.is-stuck {
  border-bottom-color: var(--line-dark);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 5rem;
}

.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
  flex: none;
  text-decoration: none;
}
.brand svg {
  height: 34px;
  width: auto;
}

.nav {
  display: none;
  margin-left: auto;
  gap: 0.35rem;
}
@media (min-width: 1040px) {
  .nav {
    display: flex;
  }
}
/* Textul deschis pe fond inchis pare optic mai gros decat invers, iar Rubik Bold
   la 15px isi inchide contraformele. Navigatia sta pe Regular, cu un pic de
   spatiere intre litere; starea activa se marcheaza prin alb plin si linia coral,
   nu prin ingrosare. */
.nav a {
  position: relative;
  padding: 0.6rem 0.95rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1rem;
  letter-spacing: 0.005em;
  color: rgba(245, 246, 248, 0.82);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color 0.16s;
}
.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--white);
}
/* Sublinierea = un fragment de "traseu", nu o linie simplă */
.nav a::after {
  content: "";
  position: absolute;
  left: 0.95rem;
  right: 0.95rem;
  bottom: 0.35rem;
  height: 3px;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

.head-cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1040px) {
  .head-cta {
    margin-left: 0;
  }
}
.head-phone {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border: 2px solid var(--line-dark-strong);
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  transition: background-color 0.16s, color 0.16s, border-color 0.16s;
}
.head-phone:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}
@media (min-width: 560px) {
  .head-phone {
    display: inline-flex;
  }
}

/* Sub 560px nu incape numarul scris, dar apelul trebuie sa ramana la un deget
   distanta: il pastram ca buton patrat, mereu vizibil in antet. */
.head-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--coral);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
}
@media (min-width: 560px) {
  .head-call {
    display: none;
  }
}

/* Sub 400px, logoul la marime intreaga plus butonul de apel si meniul
   depasesc latimea cu cativa pixeli. Micsoram logoul si strangem spatiile. */
@media (max-width: 400px) {
  .brand img {
    width: 124px;
    height: auto;
  }
  .head-inner {
    gap: 0.75rem;
  }
  .head-cta {
    gap: 0.5rem;
  }
}

/* Comutator de limbă. Sub 560px nu mai incape in antet si trece in meniu. */
.lang {
  display: none;
  align-items: center;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--line-dark-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
}
@media (min-width: 560px) {
  .lang {
    display: inline-flex;
  }
}
.lang > * {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 40px;
  padding: 0 0.45rem;
  text-decoration: none;
}
.lang a {
  color: rgba(245, 246, 248, 0.75);
  transition: color 0.16s, background-color 0.16s;
}
.lang a:hover {
  color: var(--white);
  background: rgba(245, 246, 248, 0.1);
}
.lang .lang-on {
  background: var(--white);
  color: var(--ink);
}
/* In meniul mobil apare oricum, pe toata latimea randului */
.menu-mobile .lang {
  display: inline-flex;
  margin-top: 1.25rem;
}

/* Buton meniu mobil — două bare care devin X */
.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 48px;
  height: 48px;
  padding: 0 12px;
  background: none;
  border: 2px solid var(--line-dark-strong);
  border-radius: var(--radius-sm);
}
@media (min-width: 1040px) {
  .burger {
    display: none;
  }
}
.burger span {
  display: block;
  height: 2.5px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.22s, opacity 0.18s;
}
.burger span:nth-child(2) {
  width: 70%;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(4.25px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-4.25px) rotate(-45deg);
}

.menu-mobile {
  display: none;
  border-top: 1px solid var(--line-dark);
  background: var(--ink);
  padding-block: 1rem 1.75rem;
}
.menu-mobile.is-open {
  display: block;
}
@media (min-width: 1040px) {
  .menu-mobile,
  .menu-mobile.is-open {
    display: none;
  }
}
.menu-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.menu-mobile a span {
  color: rgba(245, 246, 248, 0.6);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
}
.menu-mobile .menu-call {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  border-bottom: 0;
  color: var(--white);
  /* Explicit, nu mostenit: `.menu-mobile a` (18.4px) bate `.btn` prin
     specificitate. La 19px bold, albul pe coral se califica drept text mare
     si trece pragul de 3:1; la 18.4px ar cadea sub el. */
  font-size: 1.1875rem;
}

/* --- 7. Hero -------------------------------------------------------------- */

.hero {
  padding-top: clamp(3rem, 6vw, 5.5rem);
  padding-bottom: 0;
  position: relative;
}

.hero-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4rem);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 5rem);
  }
}

.hero h1 {
  font-size: clamp(2.7rem, 7.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.018em;
  margin-bottom: 1.6rem;
}
.hero h1 .accent {
  color: var(--coral);
}

.hero-lead {
  font-size: clamp(1.0625rem, 1.55vw, 1.3rem);
  color: var(--slate-text);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.75rem;
}

/* Trei repere de încredere, separate prin linii verticale */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.75rem;
}
.hero-facts li + li {
  padding-left: clamp(1.1rem, 3vw, 2.5rem);
  margin-left: clamp(1.1rem, 3vw, 2.5rem);
  border-left: 1px solid var(--line);
}
.hero-facts b {
  display: block;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}
.hero-facts span {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--slate-text);
  letter-spacing: 0.02em;
}

/* Schema "traseu" din dreapta */
.hero-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 520px;
}
.hero-art svg {
  width: 100%;
  height: auto;
}
.rail {
  fill: none;
  stroke: var(--navy);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.1;
}
.rail-live {
  fill: none;
  stroke: var(--coral);
  stroke-width: 13;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node {
  fill: var(--navy);
}
.node--coral {
  fill: var(--coral);
}
.node--hollow {
  fill: var(--cloud);
  stroke: var(--navy);
  stroke-width: 9;
}

@media (prefers-reduced-motion: no-preference) {
  .rail-live {
    stroke-dasharray: 130 900;
    animation: trace 5.5s cubic-bezier(0.55, 0, 0.45, 1) infinite;
  }
  .rail-live--b {
    animation-delay: -1.9s;
  }
  .rail-live--c {
    animation-delay: -3.6s;
  }
  @keyframes trace {
    from {
      stroke-dashoffset: 1030;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
}

/* Bandă orizontală cu domeniile — derulare continuă */
.ticker {
  margin-top: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding-block: 1.15rem;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 8%,
    #000 92%,
    transparent
  );
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: slide 46s linear infinite;
  }
  .ticker:hover .ticker-track {
    animation-play-state: paused;
  }
  @keyframes slide {
    to {
      transform: translateX(-50%);
    }
  }
}
.ticker-track li {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding-inline: 1.6rem;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--navy);
  white-space: nowrap;
}
.ticker-track li::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--coral);
  flex: none;
}

/* --- 8. Domenii (index cu rânduri extensibile) ---------------------------- */

/* Blocul cel mai lung al paginii sta pe bleumarin; randurile si starea deschisa
   se inverseaza fata de restul site-ului. */
.band-navy {
  background: var(--navy);
}


.seg {
  border-bottom: 1px solid var(--line-dark);
}
.seg[open] {
  background: rgba(245, 246, 248, 0.055);
}

.seg-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.75rem);
  padding: clamp(1.15rem, 2.4vw, 1.6rem) clamp(0.75rem, 2vw, 1.5rem);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.18s, padding-left 0.18s;
}
.seg-summary::-webkit-details-marker {
  display: none;
}
.seg-summary:hover {
  background: rgba(245, 246, 248, 0.045);
}
.seg[open] .seg-summary:hover {
  background: transparent;
}

.seg-idx {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  /* 0.55 scadea la 4.46:1 cand randul e deschis, fiindca fundalul se
     lumineaza cu 5.5% alb. 0.62 trece pragul in ambele stari. */
  color: rgba(245, 246, 248, 0.62);
  transition: color 0.18s;
  font-variant-numeric: tabular-nums;
}
.seg-summary:hover .seg-idx,
.seg[open] .seg-idx {
  color: var(--white);
}

.seg-icon {
  width: 46px;
  height: 46px;
  flex: none;
  color: var(--cloud);
  transition: color 0.18s, transform 0.22s cubic-bezier(0.3, 0.8, 0.3, 1);
}
.seg-summary:hover .seg-icon {
  transform: translateY(-3px);
}
.seg[open] .seg-icon {
  color: var(--coral);
}
@media (max-width: 599px) {
  .seg-icon {
    width: 34px;
    height: 34px;
  }
}

.seg-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.7vw, 1.95rem);
  letter-spacing: -0.025em;
  color: var(--white);
  line-height: 1.15;
}
.seg-kicker {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.9375rem;
  letter-spacing: 0;
  color: rgba(245, 246, 248, 0.68);
  margin-top: 0.2rem;
}
@media (max-width: 767px) {
  .seg-kicker {
    display: none;
  }
}

/* Indicatorul +/− desenat din două bare */
.seg-toggle {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border: 2px solid var(--line-dark-strong);
  border-radius: 50%;
  transition: border-color 0.18s, background-color 0.18s, transform 0.25s;
}
.seg-toggle::before,
.seg-toggle::after {
  content: "";
  position: absolute;
  inset: 50% 25%;
  height: 2.5px;
  margin-top: -1.25px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.25s cubic-bezier(0.3, 0.8, 0.3, 1),
    background-color 0.18s;
}
.seg-toggle::after {
  transform: rotate(90deg);
}
.seg-summary:hover .seg-toggle {
  border-color: var(--white);
}
.seg[open] .seg-toggle {
  background: var(--coral);
  border-color: var(--coral);
  transform: rotate(180deg);
}
.seg[open] .seg-toggle::before,
.seg[open] .seg-toggle::after {
  background: var(--white);
}
.seg[open] .seg-toggle::after {
  transform: rotate(0deg);
}

.seg-body {
  padding: 0 clamp(0.75rem, 2vw, 1.5rem) clamp(2rem, 3.5vw, 2.75rem);
  display: grid;
  gap: 1.75rem 3rem;
}
@media (min-width: 880px) {
  .seg-body {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    padding-left: calc(clamp(0.75rem, 2vw, 1.5rem) + 46px + 1.75rem + 2.2rem);
  }
}
.seg-body p {
  color: rgba(245, 246, 248, 0.74);
  max-width: 42ch;
}

.seg-list,
.cap-tags {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 2rem;
  align-content: start;
}
.seg-list li,
.cap-tags li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.96875rem;
  color: var(--white);
}
.seg-list li::before,
.cap-tags li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 2px solid var(--coral);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: no-preference) {
  .seg[open] .seg-body > * {
    animation: rise 0.42s cubic-bezier(0.22, 0.9, 0.3, 1) both;
  }
  .seg[open] .seg-body > *:nth-child(2) {
    animation-delay: 0.06s;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
}

.segments-foot {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  color: rgba(245, 246, 248, 0.74);
  font-size: 0.96875rem;
}

/* --- 9. Bloc navy (de ce noi) --------------------------------------------- */

/* Banda alternativa: al doilea plan luminos, nu bleumarin. Paginile alterneaza
   cloud / gri-cald prin mijloc, ca sa nu se adune prea mult albastru. */
.band-alt {
  background: var(--cloud-warm);
  position: relative;
  overflow: hidden;
}
/* Traseu decorativ în fundal, tăiat de marginea blocului */
.band-alt .bg-rail {
  position: absolute;
  top: -40px;
  right: -120px;
  width: min(620px, 60vw);
  opacity: 0.07;
  pointer-events: none;
  color: var(--navy);
}

.reasons {
  display: grid;
  gap: 0;
}
@media (min-width: 760px) {
  .reasons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1140px) {
  .reasons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.reason {
  padding: 1.75rem 0 2rem;
  border-top: 1px solid var(--line);
  position: relative;
}
/* Doua coloane: prima din fiecare rand se lipeste de marginea din stanga,
   ca sa fie aliniata cu titlul sectiunii. */
@media (min-width: 760px) {
  .reason {
    padding: 2.25rem clamp(1.25rem, 2.5vw, 2.25rem) 2.5rem
      clamp(1.25rem, 2.5vw, 2.25rem);
    border-right: 1px solid var(--line);
  }
  .reason:nth-child(odd) {
    padding-left: 0;
  }
  .reason:nth-child(2n) {
    border-right: 0;
  }
}
/* Patru coloane: doar prima mai are alinierea la margine. */
@media (min-width: 1140px) {
  .reason,
  .reason:nth-child(2n) {
    border-right: 1px solid var(--line);
  }
  .reason:nth-child(odd) {
    padding-left: clamp(1.25rem, 2.5vw, 2.25rem);
  }
  .reason:first-child {
    padding-left: 0;
  }
  .reason:last-child {
    border-right: 0;
  }
}
.reason h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}
.reason p {
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--slate-text);
}

/* --- 10. Competențe (rânduri, nu carduri) --------------------------------- */

.cap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 3rem;
  padding-block: clamp(2rem, 4vw, 3.25rem);
  border-bottom: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 900px) {
  .cap {
    grid-template-columns: 5.5rem minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
.cap-mark {
  display: flex;
  align-items: center;
}
.cap-mark svg {
  width: 52px;
  height: 52px;
  color: var(--navy);
  flex: none;
}
.cap h3 {
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  margin-bottom: 0.65rem;
}
.cap-sub {
  color: var(--slate-text);
  max-width: 40ch;
}


/* --- 11. Proces (pași pe traseu) ------------------------------------------ */

.process {
  background: var(--cloud-warm);
}
.steps {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 820px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }
}
.step {
  position: relative;
  padding-top: 3.25rem;
}
@media (min-width: 820px) {
  .step {
    padding-right: 2rem;
  }
}
/* punctul + linia orizontală care leagă pașii */
.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--cloud-warm);
  border: 4px solid var(--navy);
  z-index: 1;
}
.step::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 18px;
  right: 0;
  height: 2px;
  background: var(--line);
}
/* Pe mobil devine o cronologie verticala: sina la stanga, textul langa ea,
   ca sa nu ramana spatiu gol sub fiecare punct. */
@media (max-width: 819px) {
  .steps {
    gap: 2.25rem;
  }
  .step {
    padding-top: 0;
    padding-left: 2.75rem;
  }
  .step::before {
    top: 2px;
  }
  .step::after {
    top: 22px;
    left: 8px;
    right: auto;
    bottom: -2.25rem;
    width: 2px;
    height: auto;
    background: var(--line-strong);
  }
  .step:last-child::after {
    display: none;
  }
  .step p {
    max-width: none;
  }
}
.step:first-child::before {
  border-color: var(--coral);
}
.step:last-child::after {
  background: transparent;
}
.step b {
  display: block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--slate-text);
  margin-bottom: 0.75rem;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}
.step p {
  color: var(--slate-text);
  font-size: 0.96875rem;
  max-width: 30ch;
}

/* --- 12. Contact ---------------------------------------------------------- */

.contact {
  background: var(--navy-deep);
  color: rgba(245, 246, 248, 0.82);
}
.contact-grid {
  display: grid;
  gap: clamp(3rem, 6vw, 4.5rem);
}
@media (min-width: 960px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(3rem, 7vw, 6rem);
  }
}

/* Numărul de telefon ca element principal */
.phone-hero {
  display: inline-block;
  padding-top: 0.25rem;
  font-family: var(--font-head);
  font-weight: 700;
  /* Ramane cel mai mare element din coloana lui (urmatorul e la 16px), dar
     sub titlul sectiunii (54px): un numar de telefon nu trebuie sa cantareasca
     mai mult decat propriul lui titlu. */
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 0.35rem;
  border-bottom: 4px solid var(--coral);
  transition: color 0.16s;
  margin-bottom: 0.75rem;
}
.phone-hero:hover {
  color: var(--coral);
}

.contact-rows {
  margin-top: 2.75rem;
  border-top: 1px solid var(--line-dark);
}
.contact-rows > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.05rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.96875rem;
}
.contact-rows dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 246, 248, 0.5);
  padding-top: 0.25rem;
}
.contact-rows dd {
  margin: 0;
  color: var(--white);
}
.contact-rows a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 75, 92, 0.6);
  transition: border-color 0.16s;
}
.contact-rows a:hover {
  border-color: var(--coral);
}

/* Formular */
.form-fields {
  display: grid;
  gap: 1.15rem;
}
@media (min-width: 620px) {
  .form-row2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 246, 248, 0.6);
  margin-bottom: 0.5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.1rem;
  background: rgba(245, 246, 248, 0.06);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.16s, background-color 0.16s;
}
.field textarea {
  resize: vertical;
  min-height: 118px;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F5F6F8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 3rem;
}
.field select option {
  background: var(--navy-deep);
  color: var(--white);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--coral);
  background: rgba(245, 246, 248, 0.1);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(245, 246, 248, 0.38);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(245, 246, 248, 0.64);
}
.form-consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  accent-color: var(--coral);
}
.form-consent a {
  color: var(--white);
}

.field label .optional {
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  /* 0.42 dadea 3.76:1, sub pragul AA de 4.5. */
  color: rgba(245, 246, 248, 0.62);
}

/* Capcana pentru roboti: scoasa complet din flux, din ordinea de tabulare si
   din arborele de accesibilitate. Nu folosim display:none, fiindca unii roboti
   il detecteaza si sar peste camp. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  font-size: 0.8125rem;
  color: rgba(245, 246, 248, 0.5);
  margin-top: 0.75rem;
  min-height: 1.4em;
}
/* Starile de raspuns dupa trimitere */
.form-note.este-bun {
  color: var(--white);
  font-weight: 700;
}
.form-note.este-rau {
  color: #ffb3ba;
}

/* --- 13. Subsol ----------------------------------------------------------- */

.site-foot {
  background: var(--navy);
  color: rgba(245, 246, 248, 0.6);
  padding-block: clamp(3rem, 5vw, 4.5rem) 2rem;
  font-size: 0.9375rem;
}
.foot-top {
  display: grid;
  gap: 2.5rem 3rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid var(--line-dark);
}
@media (min-width: 840px) {
  .foot-top {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }
}
.foot-top svg.wordmark {
  height: 32px;
  width: auto;
  margin-bottom: 1.25rem;
}
.foot-top h4 {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  /* 0.45 dadea 3.79:1 pe bleumarin, sub pragul AA de 4.5 pentru 12px.
     0.62 urca la 5.5:1 si ramane vizibil secundar. */
  color: rgba(245, 246, 248, 0.62);
  margin-bottom: 1.1rem;
}
.foot-top li {
  padding-block: 0.3rem;
}
.foot-top a {
  text-decoration: none;
  color: rgba(245, 246, 248, 0.78);
  transition: color 0.16s;
}
.foot-top a:hover {
  color: var(--coral);
}
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  padding-top: 1.75rem;
  font-size: 0.8125rem;
}
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

/* --- 13b. Reglaje pentru ecrane mici ------------------------------------- */

/* Evidentierea gri de la atingere, inlocuita cu una de brand */
@media (hover: none) {
  a,
  button,
  summary,
  label {
    -webkit-tap-highlight-color: rgba(255, 75, 92, 0.18);
  }
}

@media (max-width: 767px) {
  /* Tinte tactile de minimum 44px pentru legaturile din liste */
  .foot-top li {
    padding-block: 0;
  }
  .foot-top li a,
  .foot-legal a,
  .contact-rows a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .foot-bottom {
    gap: 0.25rem 2rem;
  }

  /* Butonul din josul sectiunii de domenii ocupa toata latimea */
  .segments-foot {
    display: grid;
    gap: 1.25rem;
    justify-items: start;
  }
  .segments-foot .btn {
    width: 100%;
    justify-content: center;
  }

  /* Randul de actiuni din hero: butoane de latime intreaga, usor de nimerit */
  .hero-actions {
    display: grid;
    gap: 0.75rem;
  }
  .hero-actions .btn {
    justify-content: center;
  }
}

@media (max-width: 479px) {
  /* Sub 480px eticheta si valoarea nu mai incap una langa alta */
  .contact-rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
  .contact-rows dt {
    padding-top: 0;
  }

  .hero-facts span {
    font-size: 0.75rem;
  }
}

/* --- 14. Revelare la derulare --------------------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.9, 0.3, 1),
      transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1);
  }
  .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

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

/* --- 15. Tipar ------------------------------------------------------------ */

@media print {
  .site-head,
  .ticker,
  .hero-art,
  .burger,
  form {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .seg-body {
    display: block !important;
  }
}

/* --- 16. Pagini de text (politici) --------------------------------------- */

.legal {
  padding-top: clamp(3rem, 6vw, 5rem);
}
.legal-head {
  padding-bottom: 2.5rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.legal-head h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
}
.legal-body {
  max-width: 68ch;
}
.legal-body h2 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  margin-top: 2.75rem;
  margin-bottom: 0.9rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.legal-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.legal-body p,
.legal-body ul {
  margin-bottom: 1rem;
  color: var(--ink);
}
.legal-body ul li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.4rem;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 2px solid var(--coral);
}
.legal-body a {
  color: var(--navy);
  text-underline-offset: 3px;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 2px;
}
/* Un buton in interiorul textului isi pastreaza culorile proprii: regula de
   mai sus e mai specifica decat .btn si i-ar face eticheta invizibila. */
.legal-body a.btn {
  color: var(--btn-fg);
  text-decoration: none;
}
.legal-body dl {
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
}
.legal-body dt {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-text);
  padding-top: 0.3rem;
}
.legal-body dd {
  margin: 0;
}
.legal-updated {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--slate-text);
}

/* Stivuirea listei de definitii din paginile legale sta aici, dupa regulile
   de baza din sectiunea 16, ca sa nu fie anulata de ele. */
@media (max-width: 479px) {
  .legal-body dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.2rem;
  }
  .legal-body dt {
    padding-top: 0;
  }
  .legal-body dd {
    margin-bottom: 0.9rem;
  }
}

/* Lista de competente sta pe fundal luminos, deci isi pastreaza culorile proprii
   (selectorul e partajat cu lista din domenii, care e pe bleumarin). */
.cap-tags li {
  border-bottom-color: var(--line);
  color: var(--ink);
}
