/* IBM Plex Sans (SIL Open Font License), găzduit local; fișier variabil, acoperă 400 și 500 */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/plex-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/plex-sans-latin.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;
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f6f8;
  --text: #17151d;
  --text-2: #5a5764;
  --line: #e3e1e8;
  --accent: #4b2c9e;
  --accent-hover: #2e1a66;
  --accent-soft: #eeebfa;
  --on-accent: #ffffff;
  --mark: #c6bcee;
  --ill-soft: #cfccd8;
  --ill-fill: #efeef3;
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121118;
    --bg-alt: #19181f;
    --text: #ecebf1;
    --text-2: #a6a3b1;
    --line: #2c2a35;
    --accent: #a898ec;
    --accent-hover: #c6bcee;
    --accent-soft: #221c3a;
    --on-accent: #1e1150;
    --mark: #3d3466;
    --ill-soft: #4a4756;
    --ill-fill: #22212b;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }

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

h1, h2, h3 { font-weight: 500; line-height: 1.2; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.125rem; }
p { margin: 0; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }

/* Antet */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; height: 4.5rem; }

.logo {
  display: block;
  width: 10.5rem;
  aspect-ratio: 921 / 169;
  background: var(--text);
  -webkit-mask: url("../img/logo.svg") no-repeat center / contain;
  mask: url("../img/logo.svg") no-repeat center / contain;
}

.nav { display: flex; align-items: center; gap: 1.75rem; font-size: 0.9375rem; }
.nav a { text-decoration: none; color: var(--text-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .lang { font-size: 0.8125rem; letter-spacing: 0.04em; }

.menu { display: none; }

/* Butoane */
.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.nav .btn { color: var(--on-accent); padding: 0.5rem 1rem; }

.link-arrow { font-weight: 500; text-decoration: none; }
.link-arrow::after { content: " →"; }

/* Hero */
.hero { padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3.5rem, 8vw, 6rem); }
.hero-frame { position: relative; padding: clamp(1.5rem, 4vw, 3rem) 0; }
.crop { position: absolute; width: 1.25rem; height: 1.25rem; border-color: var(--mark); border-style: solid; border-width: 0; }
.crop.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.crop.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.crop.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.crop.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

.hero-inner { max-width: 46rem; padding: 0 clamp(1.5rem, 4vw, 3rem); }
.hero .lead { margin-top: 1.5rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 38rem; }
.hero .actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

.slogan { margin-top: 1rem; height: 1.6em; color: var(--accent); font-size: 1.0625rem; overflow: hidden; }
.slogan span { display: block; transition: opacity 0.6s ease; }
.slogan span.out { opacity: 0; }

/* Secțiuni */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--bg-alt); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--text-2); max-width: 38rem; }

/* Date cheie */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.facts div { padding: 1.5rem 1.5rem 0 0; }
.facts dt { font-size: 1.5rem; font-weight: 500; }
.facts dd { margin: 0.25rem 0 0; color: var(--text-2); font-size: 0.9375rem; }

/* Lista de produse */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.list h3 { font-size: 1.125rem; }
.list p { color: var(--text-2); }
.list .go { color: var(--text-2); transition: transform 0.15s, color 0.15s; }
.list a:hover h3, .list a:hover .go { color: var(--accent); }
.list a:hover .go { transform: translateX(4px); }

/* Două coloane */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); }
.split p + p { margin-top: 1rem; }
.split .muted { color: var(--text-2); }

.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.specs dt { color: var(--text-2); }
.specs dd { margin: 0; }

/* Pași */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--text); padding-top: 1rem; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-size: 0.8125rem; color: var(--text-2); margin-bottom: 0.75rem; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1rem; }
.steps p { margin-top: 0.4rem; font-size: 0.9375rem; color: var(--text-2); }

/* Încheiere */
.cta { padding: clamp(3.5rem, 8vw, 6rem) 0; border-top: 1px solid var(--line); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.cta p { color: var(--text-2); margin-top: 0.75rem; max-width: 34rem; }
.cta .contact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.cta .contact-line a:not(.btn) { text-decoration: none; }

/* Subsol */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; font-size: 0.875rem; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: 0.8125rem; font-weight: 500; color: var(--text); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0.35rem; }
.site-footer a { text-decoration: none; }
.site-footer address { font-style: normal; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }

/* Pagini interioare */
.page-head { padding: clamp(3rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3rem); }
.crumbs { font-size: 0.875rem; color: var(--text-2); margin-bottom: 1.25rem; }
.crumbs a { text-decoration: none; }
.crumbs span { margin: 0 0.4rem; }
.page-head .lead { margin-top: 1.25rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 42rem; }

.prose { max-width: 42rem; }
.prose h2 { font-size: 1.375rem; margin: 2.75rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.5rem; }
.prose p + p { margin-top: 1rem; }
.prose ul { margin: 0.75rem 0 0; padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }
.prose li::marker { color: var(--text-2); }
.faq h2 { font-size: 1.125rem; margin: 2.25rem 0 0.5rem; }
.faq h2:first-child { margin-top: 0; }
.faq p { color: var(--text-2); }
.note { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 2px solid var(--accent); background: var(--bg-alt); font-size: 0.9375rem; color: var(--text-2); }

.aside-cta { border-top: 1px solid var(--text); padding-top: 1rem; }
.aside-cta p { color: var(--text-2); font-size: 0.9375rem; margin: 0.5rem 0 1.25rem; }

/* Formular */
.form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem 1.5rem; max-width: 46rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.4rem; }
.form .opt { font-weight: 400; color: var(--text-2); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 0.65rem 0.8rem;
}
.form textarea { min-height: 8rem; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form .check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; font-size: 0.9375rem; color: var(--text-2); }
.form .check input { width: auto; margin-top: 0.3rem; }
.form button { border: 0; cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -9999px; }

/* Ilustrații */
.ill { display: block; width: 100%; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ill * { vector-effect: non-scaling-stroke; }
.ill .l { stroke: var(--text); stroke-width: 1.25; }
.ill .s { stroke: var(--text-2); stroke-width: 1; }
.ill .t { stroke: var(--ill-soft); stroke-width: 1.5; }
.ill .a { stroke: var(--accent); stroke-width: 1.5; }
.ill .w { stroke-width: 2.5; }
.ill .d { stroke-dasharray: 4 3; }
.ill .f { fill: var(--bg); }
.ill .g { fill: var(--ill-fill); }
.ill .lbl { fill: var(--text-2); stroke: none; font: 400 15px var(--font); }
.ill .lbl.acc { fill: var(--accent); }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.hero-grid .hero-inner { max-width: none; }
.hero-art { padding-right: clamp(1.5rem, 4vw, 3rem); }

.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
.tiles a { display: block; text-decoration: none; }
.tile-art { background: var(--bg-alt); border-radius: 8px; padding: 0.75rem 1rem; transition: background-color 0.15s; }
.section.alt .tile-art { background: var(--bg); }
.tiles h3 { margin-top: 1rem; font-size: 1.0625rem; }
.tiles p { margin-top: 0.3rem; font-size: 0.9375rem; color: var(--text-2); }
.tiles a:hover h3 { color: var(--accent); }
.tiles a:hover .tile-art { background: var(--accent-soft); }

.head-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.head-art { background: var(--bg-alt); border-radius: 8px; padding: 1rem 1.25rem; max-width: 26rem; justify-self: end; width: 100%; }
.figure { margin: 2rem 0 0; max-width: 30rem; }

/* Mobil */
@media (max-width: 60rem) {
  .section-head, .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .head-split { grid-template-columns: minmax(0, 1fr); }
  .hero-art { padding: 0 clamp(1.5rem, 4vw, 3rem); }
  .head-art { justify-self: start; }
}

@media (max-width: 48rem) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-size: 0.9375rem; padding: 0.5rem 0; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; right: 0; top: 2.75rem; z-index: 5;
    min-width: 13rem; padding: 1.25rem; background: var(--bg);
    border: 1px solid var(--line); border-radius: 8px;
  }
  .list a { grid-template-columns: minmax(0, 1fr) auto; gap: 0.25rem 1rem; }
  .list p { grid-column: 1; }
  .list .go { grid-row: 1; grid-column: 2; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero-inner { padding: 0 1.25rem; }
  .facts dt { font-size: 1.2rem; }
  .form { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
