/* TAXMATES — stiluri comune pentru toate paginile site-ului (temă luminoasă și întunecată). */

/* Fonturile din kitul de brand: Libre Caslon Text (titluri, ca în logo) și Libre Franklin (text). */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/libre-caslon-text-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: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/libre-caslon-text-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: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/libre-caslon-text-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: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/libre-caslon-text-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: 100 900; font-display: swap;
  src: url(fonts/libre-franklin-latin-ext-wght-normal.woff2) format("woff2-variations"), url(fonts/libre-franklin-latin-ext-wght-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: 100 900; font-display: swap;
  src: url(fonts/libre-franklin-latin-wght-normal.woff2) format("woff2-variations"), url(fonts/libre-franklin-latin-wght-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; }

/* Layout: dosarul — titlu Caslon aliniat la stânga și ștampila roșie aplicată o singură dată;
   tarifele pe carton bej, ca pe coperta unui dosar, cu linii punctate de formular;
   subsol închis cu marginea unei table de șah, ca în simbolul „Tabla TM”. */
:root {
  --bg: #ffffff;
  --text: #434343;          /* antracit TAXMATES */
  --muted: #625e59;
  --surface: #e9dfcd;       /* bejul cartonului de dosar */
  --surface-line: #b3a07c;
  --rule: #e4ddd1;
  --accent: #8c1a10;        /* roșu cărămiziu TAXMATES */
  --btn: #8c1a10;
  --btn-hover: #5c1009;
  --on-btn: #ffffff;
  --field-bg: #ffffff;
  --field-line: #625e59;
  --foot-bg: #434343;
  --foot-text: #f4efe7;
  --foot-muted: #cdc6bb;
  --foot-rule: #5d5a57;
  --board-dark: #434343;    /* tabla de șah din subsol: antracit + roșu, în ambele teme */
  --board-light: #8c1a10;
  --logo-t: #8c1a10;        /* logo „Color · pe deschis” */
  --logo-m: #434343;
  --logo-tax: #8c1a10;
  --logo-mates: #434343;
  --logo-white: #ffffff;
  --stamp-blend: multiply;
  --error: #8c1a10;

  --font-display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --font-body: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
  --measure: 32em;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 3.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161512; --text: #ece6db; --muted: #a8a091;
    --surface: #221f1b; --surface-line: #5a5246; --rule: #34302a;
    --accent: #d4513c; --btn: #b8402b; --btn-hover: #d4553d; --on-btn: #ffffff;
    --field-bg: #121110; --field-line: #6f675b;
    --foot-bg: #0e0d0b; --foot-text: #ece6db; --foot-muted: #a8a091; --foot-rule: #2c2924;
    --board-dark: #434343; --board-light: #8c1a10;
    --logo-t: #ffffff; --logo-m: #ffffff; --logo-tax: #ffffff; --logo-mates: #ffffff; /* „Alb” pe fundal închis */
    --stamp-blend: normal; --error: #e57a66;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #161512; --text: #ece6db; --muted: #a8a091;
  --surface: #221f1b; --surface-line: #5a5246; --rule: #34302a;
  --accent: #d4513c; --btn: #b8402b; --btn-hover: #d4553d; --on-btn: #ffffff;
  --field-bg: #121110; --field-line: #6f675b;
  --foot-bg: #0e0d0b; --foot-text: #ece6db; --foot-muted: #a8a091; --foot-rule: #2c2924;
  --board-dark: #434343; --board-light: #8c1a10;
  --logo-t: #ffffff; --logo-m: #ffffff; --logo-tax: #ffffff; --logo-mates: #ffffff;
  --stamp-blend: normal; --error: #e57a66;
  color-scheme: dark;
}

/* Elemente care au o variantă pentru fiecare temă (sigla NETOPIA). */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 1.4rem + 1.4vw, 2.65rem); line-height: 1.1; letter-spacing: -.005em; }
h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.125rem; line-height: 1.3; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 30;
  background: var(--text); color: var(--bg); padding: .6rem 1rem; text-decoration: none;
}
.skip:focus { top: .75rem; color: var(--bg); }

/* ---------- Logo „Tabla TM” ---------- */
.logo { display: block; height: 40px; width: auto; }
.logo .lt { fill: var(--logo-t); }
.logo .lm { fill: var(--logo-m); }
.logo .ltax { fill: var(--logo-tax); }
.logo .lmates { fill: var(--logo-mates); }
.logo.white .lt, .logo.white .lm, .logo.white .ltax, .logo.white .lmates { fill: var(--logo-white); }

/* ---------- Antet ---------- */
.top {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 1.1rem;
}
.site-head { background: var(--bg); border-bottom: 1px solid var(--rule); }
.brand { margin-right: auto; display: block; padding-block: 5px; }
.top nav { display: flex; gap: 1.6rem; font-size: 1rem; }
.top nav a { text-decoration: none; white-space: nowrap; }
.top nav a:hover { text-decoration: underline; }
.top-tel {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  border: 1.5px solid var(--text); border-radius: 2px;
  padding: .45rem .9rem;
  font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums lining-nums;
  text-decoration: none; white-space: nowrap;
}
.top-tel:hover { border-color: var(--accent); }
.theme-toggle {
  display: inline-grid; place-items: center; flex: none;
  width: 2.75rem; height: 2.75rem; padding: 0;
  border: 1.5px solid var(--rule); border-radius: 50%;
  background: transparent; color: var(--text); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle svg { width: 1.2rem; height: 1.2rem; }
@media (max-width: 760px) {
  .top { gap: .75rem; }
  .top nav { display: none; }
  .logo { height: 34px; }
  .top-tel { padding: .35rem .7rem; font-size: .9375rem; }
}
@media (max-width: 900px) { .top nav { display: none; } }
@media (max-width: 520px) { .top-tel { display: none; } }

/* ---------- Deschidere ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 40rem) auto;
  justify-content: start;
  column-gap: clamp(2rem, 7vw, 7rem);
  align-items: center;
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}
.hero-text { display: grid; gap: 1.5rem; min-width: 0; }
.hero h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 1.15rem + 3.1vw, 3.6rem);
  line-height: 1.08; letter-spacing: -.012em;
}
.lead { max-width: 32em; font-size: clamp(1.0625rem, .98rem + .35vw, 1.25rem); line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .5rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  border: 0; border-radius: 2px;
  background: var(--btn); color: var(--on-btn);
  font-family: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.2;
  font-variant-numeric: lining-nums;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--btn-hover); color: var(--on-btn); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn-ghost:hover { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.05rem; font-size: .9375rem; }
.text-link { display: inline-block; padding-block: .55rem; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em; }

.stamp {
  width: clamp(180px, 20vw, 252px); height: auto;
  color: var(--accent);
  transform: rotate(-9deg);
  mix-blend-mode: var(--stamp-blend);
  shape-rendering: geometricPrecision;
  overflow: visible;
  align-self: center;
}
.stamp text, .stamp-m text { font-family: var(--font-display); font-weight: 700; font-variant-numeric: lining-nums; }
.stamp .ring, .stamp-m .ring { font-size: 13.5px; }
.stamp .small, .stamp-m .small { font-size: 12.5px; letter-spacing: .14em; }
.stamp .big, .stamp-m .big { font-size: 58px; letter-spacing: -.01em; }
@media (prefers-reduced-motion: no-preference) {
  .stamp { animation: press .55s cubic-bezier(.2, .8, .25, 1.12) .3s both; }
}
@keyframes press {
  from { transform: rotate(-2deg) scale(1.45); opacity: 0; }
  55%  { opacity: 1; }
  to   { transform: rotate(-9deg) scale(1); opacity: 1; }
}
.promise { margin-top: -.5rem; font-size: .9375rem; color: var(--muted); }
.proof {
  display: flex; align-items: center; gap: 1rem; max-width: 54ch;
  padding-top: 1.25rem; border-top: 1px solid var(--rule);
}
.proof p { font-size: 1rem; line-height: 1.5; max-width: 34em; }
.proof strong { font-weight: 650; }
.on-mobile { display: none !important; }
@media (max-width: 760px) {
  .on-mobile { display: flex !important; }
  .on-desktop { display: none !important; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .actions { gap: .75rem 1.25rem; }
}

/* ---------- Cum lucrăm ---------- */
.steps { padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule); }
.steps > h2 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.steps-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.5rem;
  counter-reset: pas;
}
.steps-list li {
  counter-increment: pas;
  display: grid; gap: .55rem; align-content: start;
  padding-top: 1rem; border-top: 2px solid var(--text);
  min-width: 0;
}
.steps-list li::before {
  content: counter(pas);
  font-family: var(--font-display); font-weight: 700;
  font-size: 2.5rem; line-height: 1; color: var(--accent);
  font-variant-numeric: lining-nums tabular-nums;
}
.steps-list h3 { font-size: 1.125rem; }
.steps-list p { font-size: 1rem; line-height: 1.55; color: var(--muted); max-width: 38ch; }
@media (max-width: 760px) {
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps-list li {
    grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; row-gap: .3rem;
    padding-block: 1.1rem; border-top-width: 1px;
  }
  .steps-list li:first-child { border-top-width: 2px; }
  .steps-list li::before { grid-row: 1 / span 2; font-size: 2.1rem; }
}

/* ---------- Tarife ---------- */
.kraft { background: var(--surface); }
.tarife {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.tarife-intro { align-self: start; position: sticky; top: 2rem; display: grid; gap: 1rem; }
.tarife-intro p { max-width: 36ch; }
.tarife-intro .valid { font-weight: 600; }
.tarife-body { display: grid; gap: clamp(2.5rem, 4vw, 3.25rem); min-width: 0; }
.group h3 { padding-bottom: .65rem; border-bottom: 2px solid var(--text); }

.prices { list-style: none; margin: 0; padding: 0; }
.prices > li, .prices .row {
  display: flex; align-items: flex-end; align-items: last baseline;
  gap: .6rem; padding-block: .62rem;
}
.prices > li.bundle { display: block; padding-block: 0 .6rem; }
.sublist {
  margin: 0; padding-left: 1.15rem; display: grid; gap: .2rem;
  font-size: .9375rem; line-height: 1.45; color: var(--muted);
}
@media (max-width: 560px) {
  .prices > li, .prices .row { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; }
  .prices > li.bundle { display: block; }
  .prices .dots { display: none; }
}
.prices .op { flex: 0 1 auto; min-width: 0; }
.prices .dots {
  flex: 1 1 1.5rem; min-width: 1.25rem;
  border-bottom: 2px dotted var(--surface-line);
  transform: translateY(-.32em);
}
.price {
  flex: none; white-space: nowrap;
  font-weight: 650; font-variant-numeric: tabular-nums lining-nums;
}
.price small { font-size: .8em; font-weight: 500; color: var(--muted); margin-left: .12em; }

.conds { margin: 0; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
.conds dt, .conds dd { margin: 0; padding-block: .9rem; border-top: 1px solid var(--surface-line); }
.conds dt { font-weight: 650; padding-right: 1.5rem; }
.conds dd { max-width: 32em; }
.calc { display: block; margin-top: .35rem; font-variant-numeric: tabular-nums lining-nums; color: var(--muted); }
@media (max-width: 860px) {
  .tarife { grid-template-columns: minmax(0, 1fr); }
  .tarife-intro { position: static; }
}
@media (max-width: 640px) {
  .conds { grid-template-columns: minmax(0, 1fr); }
  .conds dt { padding-bottom: .2rem; }
  .conds dd { border-top: 0; padding-top: 0; }
}

/* ---------- Plata ---------- */
.plata {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 2rem clamp(2rem, 5vw, 5rem); align-items: center;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.plata-text { display: grid; gap: 1rem; max-width: var(--measure); min-width: 0; }
.netopia-box { justify-self: start; padding: 1rem .75rem; border: 1px solid var(--rule); background: var(--bg); }
.netopia-box img { width: min(330px, 100%); }
@media (max-width: 800px) { .plata { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2.5rem clamp(2rem, 5vw, 5rem); align-items: start;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: 1px solid var(--rule);
}
.contact-intro { display: grid; gap: 1rem; min-width: 0; }
.direct { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--text); }
.direct li {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem;
  padding-block: 1rem 1.15rem; border-bottom: 1px solid var(--rule);
}
.direct .who { display: grid; gap: 0; min-width: 0; justify-items: start; }
.direct .k { font-size: .9375rem; color: var(--muted); }
.direct .v {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); line-height: 1.15;
  color: var(--text); overflow-wrap: anywhere; font-variant-numeric: lining-nums;
  text-decoration: none; padding-block: .55rem;
}
.direct a.v:hover { color: var(--accent); text-decoration: underline; text-decoration-thickness: 2px; }
.row-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.form-panel { min-width: 0; padding: clamp(1.25rem, 3vw, 2.25rem); background: var(--surface); border-radius: 2px; }
.form-panel > h3 { margin-bottom: .4rem; }
.form-panel > .hint { margin-bottom: 1.4rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: .35rem; min-width: 0; align-content: start; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9375rem; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: .7rem .8rem;
  border: 1.5px solid var(--field-line); border-radius: 2px;
  background: var(--field-bg); color: var(--text);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field ::placeholder { color: var(--muted); opacity: .85; }
.field select { appearance: none; padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: right 1.1rem center, right .75rem center; background-size: .35rem .35rem; background-repeat: no-repeat; }
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--text); }
.field [aria-invalid="true"], .consent [aria-invalid="true"] { border-color: var(--error); outline-color: var(--error); }
.hint { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.consent {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; align-items: start;
  font-size: .9375rem; line-height: 1.5;
}
.consent input { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; accent-color: var(--btn); cursor: pointer; }
.consent label { cursor: pointer; min-height: 2.75rem; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; }
.status { min-height: 1.5em; font-size: .9375rem; line-height: 1.45; }
.status[data-kind="ok"] { font-weight: 600; }
.status[data-kind="err"] { color: var(--error); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 860px) { .contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Subsol ---------- */
.board {
  height: 20px;
  background: repeating-conic-gradient(var(--board-dark) 0 25%, var(--board-light) 0 50%) 0 0 / 20px 20px;
}
.foot { background: var(--foot-bg); color: var(--foot-text); }
.foot-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2rem clamp(2rem, 4vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 2rem;
  font-size: .9375rem; line-height: 1.7;
}
.foot .logo { height: 34px; margin-bottom: 1.25rem; }
.foot h2 { margin-bottom: .5rem; font-size: 1.0625rem; color: var(--foot-text); }
.foot a { color: var(--foot-text); }
.foot a:hover { color: var(--logo-white); text-decoration-thickness: 2px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot ul a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.foot address { font-style: normal; }
.marks { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
.anpc { display: block; width: 250px; height: 50px; }
.anpc img { width: 250px; height: 50px; }
.anpc:hover { outline: 2px solid var(--foot-muted); outline-offset: 2px; }
.netopia-dark { width: min(240px, 100%); }
.foot-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
  padding-block: 1.25rem; border-top: 1px solid var(--foot-rule);
}
.foot-legal { font-size: .875rem; color: var(--foot-muted); }
.theme-switch {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.5rem; padding: .4rem .95rem;
  border: 1px solid var(--foot-rule); border-radius: 999px; background: transparent; color: var(--foot-text);
  font: inherit; font-size: .875rem; cursor: pointer;
}
.theme-switch:hover { border-color: var(--foot-muted); }
.theme-switch svg { width: 1rem; height: 1rem; }
.foot h2 { font-family: var(--font-body); font-weight: 650; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .marks { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Bara de contact pe telefon ---------- */
.bar { display: none; }
@media (max-width: 760px) {
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg); border-top: 1px solid var(--rule);
  }
  .bar a {
    display: flex; align-items: center; justify-content: center; min-height: var(--bar-h);
    background: var(--bg); color: var(--text);
    font-weight: 650; text-decoration: none;
  }
  .bar a + a { border-left: 1px solid var(--rule); }
  .bar a.primary { background: var(--btn); color: var(--on-btn); }
  .has-bar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Pagini legale ---------- */
.doc { max-width: 47rem; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.doc > * + * { margin-top: 1rem; }
.doc > h1 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.4rem); line-height: 1.08; }
.doc > .updated { margin-top: .9rem; color: var(--muted); font-size: .9375rem; }
.doc > h2 { margin-top: 2.75rem; font-size: clamp(1.4rem, 1.25rem + .7vw, 1.75rem); line-height: 1.2; }
.doc > h2 + * { margin-top: .75rem; }
.doc p, .doc li { max-width: 32em; }
.doc ul, .doc ol { margin-bottom: 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
.doc .note { padding: 1rem 1.25rem; background: var(--surface); border-radius: 2px; }
.doc .form-panel { margin-top: 1.5rem; }
.model { padding: 1.25rem; border: 1px solid var(--rule); border-radius: 2px; }
.model p + p { margin-top: .6rem; }
.back { font-size: 1rem; text-decoration: none; white-space: nowrap; }
.back:hover { text-decoration: underline; }
@media (max-width: 520px) { .back { display: none; } }
[data-tel-text] { white-space: nowrap; }

/* ---------- Tarife: detalii pliate, plata, chemare la acțiune ---------- */
.multi { display: grid; gap: .5rem; }
.multi p, .pay-row p, .faq-more { max-width: var(--measure); }
.multi h3 { padding-bottom: .65rem; border-bottom: 2px solid var(--text); }
.more { border-top: 2px solid var(--text); }
.more > summary, .faq-list summary {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding-block: .95rem; cursor: pointer; list-style: none; font-weight: 650;
}
.more > summary::-webkit-details-marker, .faq-list summary::-webkit-details-marker { display: none; }
.more > summary::after, .faq-list summary::after {
  content: "+"; flex: none; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--accent);
}
.more[open] > summary::after, .faq-list details[open] > summary::after { content: "−"; }
.more > summary:hover, .faq-list summary:hover { color: var(--accent); }
.more .conds { margin-bottom: .75rem; }
.conds a { color: var(--text); }
.pay-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem;
  padding-top: 1.25rem; border-top: 1px solid var(--surface-line);
}
.pay-row p { flex: 1 1 20rem; min-width: 0; font-size: .9375rem; line-height: 1.55; }
.pay-logo { flex: none; padding: .45rem .35rem; background: var(--bg); border-radius: 2px; }
.pay-logo img { width: 240px; }
.tarife-cta { display: grid; gap: 1rem; padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--bg); border-radius: 2px; }
.tarife-cta p {
  max-width: 32ch; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 1.05rem + .6vw, 1.55rem); line-height: 1.3;
}

/* ---------- Formular: alegerea modului de contact, erori ---------- */
.choice { margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { padding: 0; margin-bottom: .45rem; font-size: .9375rem; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills label {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .45rem 1rem .45rem .8rem;
  border: 1.5px solid var(--field-line); border-radius: 999px; background: var(--field-bg);
  font-size: .9375rem; font-weight: 600; cursor: pointer;
}
.pills input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--btn); }
.pills label:has(input:checked) { border-color: var(--btn); box-shadow: inset 0 0 0 1px var(--btn); }
.field-error { margin: 0; font-size: .875rem; font-weight: 600; line-height: 1.4; color: var(--error); }
.field-error:empty { display: none; }
.consent .field-error { grid-column: 2; }
.after-send { flex-basis: 100%; font-size: .9375rem; }

/* ---------- Întrebări frecvente ---------- */
.faq {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 1.5rem clamp(2rem, 5vw, 5rem); align-items: start;
  padding-block: clamp(3rem, 7vw, 5.5rem); border-top: 1px solid var(--rule);
}
.faq-list { border-top: 2px solid var(--text); min-width: 0; }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary { font-size: 1.0625rem; }
.faq-list details p { max-width: 32em; padding-bottom: 1.1rem; }
.faq-more { grid-column: 2; }
@media (max-width: 860px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-more { grid-column: auto; }
}

/* ---------- Tranziții scurte la interacțiune ---------- */
a, button, summary, .pills label, .field input, .field select, .field textarea {
  transition: color .18s ease, background-color .18s ease, border-color .18s ease,
              box-shadow .18s ease, text-decoration-color .18s ease;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
picture { display: contents; }

/* ---------- Ștampila: inelul cu text se rotește la trecerea cursorului ---------- */
.stamp .stamp-ring { transform-origin: 120px 120px; transform-box: view-box; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .stamp:hover .stamp-ring { animation: stamp-spin 9s linear infinite; }
}
@keyframes stamp-spin { to { transform: rotate(360deg); } }

/* ---------- Banda de încredere: 24 de ore + 800 de dosare ---------- */
.trust { background: var(--surface); border-block: 1px solid var(--surface-line); }
.trust-grid {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 1.25rem clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.25rem, 3vw, 1.75rem);
}
.trust-item { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.trust-item p { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.5; color: var(--text); }
.trust-item strong { font-weight: 700; }
.trust-mark {
  flex: none; display: grid; place-items: center; width: 3.25rem; height: 3.25rem;
  border-radius: 50%; background: var(--bg); color: var(--accent);
}
.trust-icon { width: 1.6rem; height: 1.6rem; }
@media (max-width: 760px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tarife: rezumat și carduri ---------- */
.price-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
}
.price-cards li {
  display: grid; grid-template-rows: 1fr auto; gap: .5rem;
  padding: 1rem 1.1rem 1.1rem; background: var(--bg); border-radius: 2px;
  border-top: 3px solid var(--accent);
}
.pc-name { font-size: .9375rem; font-weight: 600; line-height: 1.3; }
.pc-val {
  font-family: var(--font-display); font-weight: 700; color: var(--accent);
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); line-height: 1.05; font-variant-numeric: lining-nums;
}
.pc-val small { font-family: var(--font-body); font-size: .45em; font-weight: 600; color: var(--muted); }
.pc-from { display: block; font-family: var(--font-body); font-size: .4em; font-weight: 600; color: var(--muted); margin-bottom: .2em; }
.pc-val { white-space: nowrap; }
@media (max-width: 1100px) { .price-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.group { background: var(--bg); border-radius: 2px; padding: clamp(1rem, 2.5vw, 1.5rem); }
.group h3 { font-size: 1.1875rem; }
.price { font-size: 1.0625rem; color: var(--accent); }
.prices .dots { border-bottom-color: var(--surface-line); }
.more { border-top: 0; padding-block: .25rem; }
.more[open] { padding-bottom: 1rem; }
.tarife-cta { border: 2px solid var(--text); }

/* ---------- Hover pe câmpuri, opțiuni și logo; apăsare pe bara de jos ---------- */
.pills label:hover { border-color: var(--text); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text); }
.brand:hover { opacity: .8; }
.bar a:active { background: var(--surface); }
.bar a.primary:active { background: var(--btn-hover); }
.btn:active { transform: translateY(1px); }

.pills label:has(input:checked):hover { border-color: var(--btn-hover); box-shadow: inset 0 0 0 1px var(--btn-hover); }

/* ---------- Cuprins în paginile legale lungi ---------- */
.toc { margin-top: 1.75rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: 2px; }
.toc h2 { margin: 0 0 .25rem; font-family: var(--font-body); font-size: 1rem; font-weight: 650; }
.toc ul { display: block; margin: 0; padding: 0; list-style: none; columns: 2 16rem; column-gap: 2rem; }
.toc li { break-inside: avoid; }
.toc a { display: inline-block; padding-block: .55rem; text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.doc > h2 { scroll-margin-top: 1rem; }

/* ---------- Butonul de temă cu etichetă vizibilă ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  width: auto; height: 2.75rem; padding: 0 .95rem 0 .75rem; border-radius: 999px;
  font: inherit; font-size: .9375rem; font-weight: 600; white-space: nowrap;
}
.theme-toggle svg { flex: none; }
@media (max-width: 760px) { .logo { height: 30px; } .theme-toggle { padding: 0 .8rem 0 .65rem; font-size: .875rem; } }
@media (max-width: 349px) {
  .theme-toggle { width: 2.75rem; padding: 0; justify-content: center; }
  .theme-toggle .tt-label { display: none; }
}
@media (min-width: 901px) and (max-width: 1100px) { .top { gap: 1rem; } .top nav { gap: 1.1rem; } }

/* ---------- Antet fix pe calculator ---------- */
@media (min-width: 901px) {
  .site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 25; }
  .site-head .top { padding-block: .8rem; }
  main section[id], #cerere, .doc > h2, .toc { scroll-margin-top: 6rem; }
  .tarife-intro { top: 6.5rem; }
}

/* ---------- Telefon: butoane mai mici și ștampila care se rotește singură ---------- */
.actions-m { flex-direction: column; align-items: stretch; gap: .5rem; }
.cta-row { display: flex; align-items: center; gap: .75rem; }
.cta-btns { display: grid; gap: .6rem; flex: 1 1 auto; min-width: 0; }
.btn-m { min-height: 2.875rem; padding: .6rem 1rem; font-size: .9375rem; text-align: center; }
.actions-m .text-link { align-self: flex-start; }
.stamp-m {
  position: relative; flex: none; display: block;
  width: clamp(92px, 29vw, 128px); aspect-ratio: 1;
  color: var(--accent); mix-blend-mode: var(--stamp-blend);
  transform: rotate(-9deg);
}
.stamp-m svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; shape-rendering: geometricPrecision; }
@media (prefers-reduced-motion: no-preference) {
  .stamp-m { animation: press .55s cubic-bezier(.2, .8, .25, 1.12) .3s both; }
  .stamp-m .sm-ring { animation: stamp-spin 16s linear infinite; will-change: transform; }
}
.btn-m { flex-wrap: wrap; column-gap: .3em; row-gap: 0; }
@media (max-width: 359px) {
  .btn-m { padding-inline: .7rem; font-size: .875rem; }
  .stamp-m { width: 86px; }
  .cta-row { gap: .6rem; }
}

/* ---------- Ecrane tactile: zonă de atingere mai mare pentru linkurile din text ---------- */
@media (pointer: coarse) {
  .foot address { line-height: 2; }
  .foot address a { padding-block: .45rem; }
  .faq-more a, .doc p a, .doc li a, .conds a, .consent a { padding-block: .35rem; }
}
/* Pe telefon, culoarea de „hover” nu rămâne agățată după atingere; apăsarea are propriul răspuns. */
@media (hover: none) {
  .btn:hover { background: var(--btn); color: var(--on-btn); }
  .btn-ghost:hover { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
  .btn:active { background: var(--btn-hover); }
  .btn-ghost:active { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
}
