/* ============================================================
   HidroFlow.ro — Design System (mock-up)
   Tema: Roșu profesional / inginerie hidraulică
   ============================================================ */

:root {
  /* Brand red */
  --red-900: #5c0a12;
  --red-800: #780000;
  --red-700: #9d0208;
  --red-600: #c1121f;   /* primary */
  --red-500: #dc2f34;
  --red-400: #e5383b;
  --red-300: #f2777a;
  --red-100: #fde2e3;
  --red-50:  #fff5f5;

  /* Ink / neutrals */
  --ink-900: #0b1120;
  --ink-800: #131c2e;
  --ink-700: #1e293b;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;
  --white: #ffffff;

  /* Accents */
  --amber: #f59e0b;
  --green: #16a34a;
  --sky:   #0ea5e9;

  /* System */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
  --shadow: 0 4px 12px rgba(15,23,42,.08), 0 2px 4px rgba(15,23,42,.05);
  --shadow-lg: 0 18px 40px -12px rgba(120,0,0,.22), 0 8px 20px rgba(15,23,42,.08);
  --shadow-red: 0 10px 30px -8px rgba(193,18,31,.45);
  --ring: 0 0 0 4px rgba(193,18,31,.15);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 1200px;
  --nav-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-800);
  background: var(--slate-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink-900); margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Utility ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-600);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--red-600); border-radius: 2px; }
.text-muted { color: var(--slate-500); }
.center { text-align: center; }
.grid { display: grid; gap: 22px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.22rem; letter-spacing: -.03em; color: var(--ink-900); }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--red-500), var(--red-800));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-red);
  font-weight: 900; font-size: 1rem;
}
.brand span.dot { color: var(--red-600); }
.brand .logo svg { width: 21px; height: 21px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--slate-600);
  transition: all .16s ease;
}
.nav-links a:hover { color: var(--red-700); background: var(--red-50); }
.nav-links a.active { color: var(--red-700); background: var(--red-50); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink-800); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; font-size: .94rem; padding: 12px 22px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--red-500), var(--red-700)); color: #fff; box-shadow: var(--shadow-red); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -8px rgba(193,18,31,.55); }
.btn-ghost { background: #fff; color: var(--ink-800); border-color: var(--slate-200); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--red-300); color: var(--red-700); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--red-700); border-color: var(--red-300); }
.btn-outline:hover { background: var(--red-50); }
.btn-sm { padding: 8px 15px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(193,18,31,.14), transparent 60%),
    radial-gradient(900px 500px at 5% 110%, rgba(120,0,0,.10), transparent 55%),
    linear-gradient(180deg, #fff 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--slate-200);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--slate-200) 1px, transparent 1px), linear-gradient(90deg, var(--slate-200) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .35;
  -webkit-mask-image: radial-gradient(760px 420px at 70% 0%, #000, transparent 75%);
          mask-image: radial-gradient(760px 420px at 70% 0%, #000, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 84px 0 78px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.35rem); font-weight: 850; }
.hero h1 .hl { background: linear-gradient(120deg, var(--red-600), var(--red-800)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.16rem; color: var(--slate-600); max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 600; color: var(--slate-600); }
.hero-badge svg { width: 20px; height: 20px; color: var(--red-600); }

.slogan {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
  background: #fff; border: 1px solid var(--red-100); color: var(--red-800);
  padding: 8px 15px; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm);
}
.slogan .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); box-shadow: 0 0 0 0 rgba(220,47,52,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220,47,52,.5);} 70% { box-shadow: 0 0 0 10px rgba(220,47,52,0);} 100% { box-shadow: 0 0 0 0 rgba(220,47,52,0);} }

/* Hero visual: mock calculator card */
.hero-visual { position: relative; }
.mock-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--slate-100); background: var(--slate-50); }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-title { margin-left: 8px; font-size: .82rem; font-weight: 700; color: var(--slate-500); font-family: var(--font-mono); }
.mock-body { padding: 20px; display: grid; gap: 14px; }
.mock-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-label { font-size: .82rem; color: var(--slate-500); font-weight: 600; }
.mock-field { background: var(--slate-100); border-radius: 8px; height: 34px; flex: 1; max-width: 120px; display: flex; align-items: center; padding: 0 12px; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-800); font-weight: 600; }
.mock-result { margin-top: 6px; background: linear-gradient(135deg, var(--red-600), var(--red-800)); color: #fff; border-radius: var(--radius); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow-red); }
.mock-result .k { font-size: .8rem; opacity: .85; font-weight: 600; }
.mock-result .v { font-size: 1.5rem; font-weight: 800; font-family: var(--font-mono); }
.hero-float { position: absolute; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; }
.hero-float svg { width: 22px; height: 22px; color: var(--green); }
.hero-float.f1 { top: -22px; right: 18px; animation: floaty 5s ease-in-out infinite; }
.hero-float.f2 { bottom: -20px; left: -14px; animation: floaty 6s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translateY(0);} 50% { transform: translateY(-9px);} }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 78px 0; }
.section-sm { padding: 52px 0; }
.section-head { max-width: 640px; margin: 0 auto 46px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 820; }
.section-head p { color: var(--slate-500); font-size: 1.05rem; }
.section.alt { background: #fff; border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat .n { font-size: 2.1rem; font-weight: 850; color: var(--red-700); font-family: var(--font-mono); letter-spacing: -.03em; }
.stat .l { font-size: .85rem; color: var(--slate-500); font-weight: 600; margin-top: 4px; }

/* Category blocks */
.cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.cat-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; flex-shrink: 0; box-shadow: var(--shadow); }
.cat-icon svg { width: 28px; height: 28px; }
.cat-icon.apa { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.cat-icon.canal { background: linear-gradient(135deg, #d97706, #92400e); }
.cat-icon.util { background: linear-gradient(135deg, var(--red-500), var(--red-800)); }
.cat-head h3 { font-size: 1.5rem; margin: 0; }
.cat-head p { margin: 2px 0 0; color: var(--slate-500); font-size: .96rem; }

/* Tool cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: all .2s ease; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--red-500), var(--red-800)); transform: scaleY(0); transform-origin: top; transition: transform .22s ease; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--red-100); }
.card:hover::before { transform: scaleY(1); }
.card-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--red-600); display: grid; place-items: center; margin-bottom: 14px; }
.card-ic svg { width: 23px; height: 23px; }
.card h4 { font-size: 1.06rem; margin: 0 0 8px; }
.card p { font-size: .9rem; color: var(--slate-500); margin: 0 0 16px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--red-700); }
.card-link svg { width: 16px; height: 16px; transition: transform .18s ease; }
.card:hover .card-link svg { transform: translateX(4px); }
.tag { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 999px; }
.tag-std { background: var(--slate-100); color: var(--slate-500); }
.tag-new { background: var(--red-600); color: #fff; }
.tag-calib { background: #fff7ed; color: #b45309; border: 1px solid #fed7aa; }
.tag-pro { background: linear-gradient(135deg, var(--red-600), var(--red-800)); color: #fff; }

/* Feature list (why) */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.feature .fic { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--red-500), var(--red-800)); color: #fff; display: grid; place-items: center; margin-bottom: 16px; box-shadow: var(--shadow-red); }
.feature .fic svg { width: 25px; height: 25px; }
.feature h4 { font-size: 1.12rem; }
.feature p { color: var(--slate-500); font-size: .94rem; margin: 0; }

/* Partners */
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.partner { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 26px 20px; text-align: center; box-shadow: var(--shadow-sm); transition: all .18s ease; }
.partner:hover { border-color: var(--red-200); transform: translateY(-3px); box-shadow: var(--shadow); }
.partner .p-logo { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 12px; background: var(--slate-100); display: grid; place-items: center; color: var(--red-700); font-weight: 800; }
.partner .p-name { font-weight: 700; font-size: .95rem; }
.partner .p-role { font-size: .8rem; color: var(--slate-500); }

/* CTA band */
.cta {
  background: linear-gradient(135deg, var(--red-700), var(--red-900));
  border-radius: var(--radius-lg); padding: 56px; text-align: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(500px 300px at 50% -20%, #000, transparent); mask-image: radial-gradient(500px 300px at 50% -20%, #000, transparent); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta p { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 560px; margin: 0 auto 26px; }
.cta .btn-ghost { background: #fff; }
.cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.cta .btn-outline:hover { background: rgba(255,255,255,.12); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--ink-900); color: var(--slate-300); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 30px; margin-bottom: 44px; }
.footer .brand { color: #fff; }
.footer p { color: var(--slate-400); font-size: .92rem; max-width: 300px; }
.footer h5 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--slate-400); font-size: .92rem; transition: color .15s; }
.footer ul a:hover { color: var(--red-300); }
.footer-bottom { border-top: 1px solid var(--ink-700); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: var(--slate-500); }
.foot-stats { display: flex; gap: 26px; }
.foot-stats span b { color: var(--red-300); font-family: var(--font-mono); }

/* ============================================================
   TOOL / CALCULATOR PAGE
   ============================================================ */
.page-hero { background: linear-gradient(180deg, #fff, var(--slate-50)); border-bottom: 1px solid var(--slate-200); padding: 40px 0 34px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--slate-500); margin-bottom: 16px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--red-700); }
.breadcrumb svg { width: 15px; height: 15px; color: var(--slate-400); }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); max-width: 760px; }
.page-hero .lead { color: var(--slate-600); font-size: 1.08rem; max-width: 720px; }
.page-meta { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--slate-200); border-radius: 999px; padding: 6px 13px; font-size: .82rem; font-weight: 600; color: var(--slate-600); box-shadow: var(--shadow-sm); }
.chip svg { width: 15px; height: 15px; color: var(--red-600); }

.tool-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; padding: 46px 0 70px; }
.panel { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 20px 24px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; gap: 12px; }
.panel-head .ph-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--red-50); color: var(--red-600); display: grid; place-items: center; }
.panel-head .ph-ic svg { width: 20px; height: 20px; }
.panel-head h3 { margin: 0; font-size: 1.12rem; }
.panel-head p { margin: 1px 0 0; font-size: .84rem; color: var(--slate-500); }
.panel-body { padding: 24px; }

.field-group { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .85rem; font-weight: 650; color: var(--ink-700); display: flex; align-items: center; justify-content: space-between; }
.field label .unit { font-size: .76rem; color: var(--slate-400); font-weight: 600; font-family: var(--font-mono); }
.field-input { display: flex; align-items: center; background: var(--slate-50); border: 1.5px solid var(--slate-200); border-radius: 10px; transition: all .15s ease; overflow: hidden; }
.field-input:focus-within { border-color: var(--red-400); background: #fff; box-shadow: var(--ring); }
.field-input input, .field-input select { flex: 1; border: 0; background: transparent; padding: 11px 14px; font-family: var(--font); font-size: .95rem; color: var(--ink-800); outline: none; font-weight: 550; }
.field-input .suffix { padding: 0 13px; font-size: .82rem; color: var(--slate-400); font-weight: 700; font-family: var(--font-mono); border-left: 1px solid var(--slate-200); align-self: stretch; display: flex; align-items: center; background: var(--slate-100); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Results panel */
.results-hero { background: linear-gradient(135deg, var(--red-600), var(--red-800)); color: #fff; padding: 24px; }
.results-hero .rk { font-size: .82rem; opacity: .82; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.results-hero .rv { font-size: 2.6rem; font-weight: 850; font-family: var(--font-mono); letter-spacing: -.03em; line-height: 1.1; }
.results-hero .ru { font-size: 1rem; opacity: .8; font-weight: 600; }
.result-list { display: grid; }
.result-item { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--slate-100); }
.result-item:last-child { border-bottom: 0; }
.result-item .ri-k { font-size: .9rem; color: var(--slate-600); font-weight: 550; }
.result-item .ri-v { font-size: 1.02rem; font-weight: 750; font-family: var(--font-mono); color: var(--ink-900); }
.result-item .ri-v small { color: var(--slate-400); font-weight: 600; font-size: .78rem; }
.result-note { padding: 16px 24px; background: var(--red-50); font-size: .84rem; color: var(--red-800); display: flex; gap: 10px; }
.result-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.badge-ok { display: inline-flex; align-items: center; gap: 6px; background: #dcfce7; color: #15803d; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.badge-ok svg { width: 14px; height: 14px; }

/* Info/theory blocks */
.info-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 8px; }
.info-box { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.info-box h4 { display: flex; align-items: center; gap: 9px; font-size: 1.02rem; }
.info-box h4 svg { width: 19px; height: 19px; color: var(--red-600); }
.info-box p, .info-box li { font-size: .92rem; color: var(--slate-600); }
.info-box ul { margin: 0; padding-left: 18px; }
.formula { font-family: var(--font-mono); background: var(--ink-900); color: #fef2f2; padding: 14px 18px; border-radius: 10px; font-size: .9rem; overflow-x: auto; margin: 10px 0; }
.formula .op { color: var(--red-300); }

/* Related tools */
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 18px; display: flex; gap: 12px; align-items: center; transition: all .18s; box-shadow: var(--shadow-sm); }
.related-card:hover { border-color: var(--red-200); transform: translateY(-3px); box-shadow: var(--shadow); }
.related-card .rc-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--red-50); color: var(--red-600); display: grid; place-items: center; flex-shrink: 0; }
.related-card .rc-ic svg { width: 21px; height: 21px; }
.related-card h5 { margin: 0 0 2px; font-size: .92rem; }
.related-card p { margin: 0; font-size: .78rem; color: var(--slate-500); }

/* ---------- Filters bar (category pages) ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--slate-200); border-radius: 12px; padding: 10px 16px; min-width: 280px; flex: 1; max-width: 420px; box-shadow: var(--shadow-sm); }
.search svg { width: 19px; height: 19px; color: var(--slate-400); }
.search input { border: 0; outline: 0; background: transparent; flex: 1; font-size: .95rem; font-family: var(--font); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter { padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--slate-200); background: #fff; font-size: .86rem; font-weight: 600; color: var(--slate-600); cursor: pointer; transition: all .15s; }
.filter:hover { border-color: var(--red-300); color: var(--red-700); }
.filter.active { background: var(--red-600); color: #fff; border-color: var(--red-600); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.contact-card .cc-ic { width: 48px; height: 48px; border-radius: 13px; background: linear-gradient(135deg, var(--red-500), var(--red-800)); color: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow-red); }
.contact-card .cc-ic svg { width: 24px; height: 24px; }
.contact-card h4 { margin: 0 0 4px; }
.contact-card a { color: var(--red-700); font-weight: 650; }

/* ============================================================
   AUTH (login / înregistrare)
   ============================================================ */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h));
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
}
.auth-side {
  position: relative; overflow: hidden; color: #fff; padding: 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(150deg, var(--red-700), var(--red-900));
}
.auth-side::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px); background-size:42px 42px; -webkit-mask-image: radial-gradient(600px 400px at 20% 10%,#000,transparent 75%); mask-image: radial-gradient(600px 400px at 20% 10%,#000,transparent 75%); }
.auth-side > * { position: relative; z-index: 1; }
.auth-side .brand { color:#fff; font-size:1.4rem; }
.auth-side h2 { color:#fff; font-size:1.9rem; margin-top:36px; max-width:380px; }
.auth-side p { color:rgba(255,255,255,.82); max-width:380px; }
.auth-points { display:grid; gap:14px; margin-top:8px; }
.auth-point { display:flex; align-items:center; gap:12px; font-weight:600; font-size:.96rem; }
.auth-point svg { width:20px; height:20px; flex-shrink:0; }
.auth-quote { border-left:3px solid rgba(255,255,255,.5); padding-left:16px; font-style:italic; color:rgba(255,255,255,.9); }
.auth-main { display:grid; place-items:center; padding:48px 24px; background:var(--slate-50); }
.auth-card { width:100%; max-width:420px; }
.auth-head { margin-bottom:26px; }
.auth-head h1 { font-size:1.7rem; }
.auth-head p { color:var(--slate-500); margin:0; }
.auth-social { display:grid; gap:10px; margin-bottom:20px; }
.btn-social { background:#fff; border:1.5px solid var(--slate-200); color:var(--ink-800); font-weight:600; }
.btn-social:hover { border-color:var(--red-300); }
.auth-divider { display:flex; align-items:center; gap:14px; color:var(--slate-400); font-size:.82rem; margin:20px 0; }
.auth-divider::before, .auth-divider::after { content:""; height:1px; flex:1; background:var(--slate-200); }
.check { display:flex; align-items:flex-start; gap:10px; font-size:.86rem; color:var(--slate-600); }
.check input { margin-top:3px; accent-color:var(--red-600); width:16px; height:16px; }
.check a { color:var(--red-700); font-weight:600; }
.auth-row { display:flex; align-items:center; justify-content:space-between; font-size:.86rem; }
.auth-row a { color:var(--red-700); font-weight:600; }
.auth-alt { text-align:center; margin-top:22px; font-size:.92rem; color:var(--slate-500); }
.auth-alt a { color:var(--red-700); font-weight:700; }
.auth-note { text-align:center; font-size:.78rem; color:var(--slate-400); margin-top:16px; }
.strength { height:5px; border-radius:99px; background:var(--slate-200); overflow:hidden; margin-top:8px; }
.strength i { display:block; height:100%; width:45%; background:linear-gradient(90deg,var(--amber),var(--red-500)); border-radius:99px; }

/* ============================================================
   DOCUMENTAȚIE / GENERATOR PĂRȚI SCRISE
   ============================================================ */
.segbar { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border: 1px solid var(--slate-200); border-radius: 15px; padding: 8px; box-shadow: var(--shadow-sm); }
.segbar .seg { flex: 1; min-width: 108px; text-align: center; padding: 11px 12px; border-radius: 11px; font-weight: 650; font-size: .9rem; color: var(--slate-500); cursor: pointer; transition: all .15s ease; }
.segbar .seg small { display: block; font-size: .68rem; font-weight: 600; color: var(--slate-400); font-family: var(--font-mono); margin-top: 2px; }
.segbar .seg.active { background: linear-gradient(135deg, var(--red-600), var(--red-800)); color: #fff; box-shadow: var(--shadow-red); }
.segbar .seg.active small { color: rgba(255,255,255,.82); }
.segbar .seg:not(.active):hover { background: var(--red-50); color: var(--red-700); }
.subhead { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--slate-500); margin: 22px 0 12px; display: flex; align-items: center; gap: 8px; }
.subhead svg { width: 16px; height: 16px; color: var(--red-600); }
.checklist { display: grid; gap: 8px; }
.check-item { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--slate-200); border-radius: 10px; font-size: .9rem; font-weight: 550; cursor: pointer; }
.check-item input { width: 17px; height: 17px; accent-color: var(--red-600); flex-shrink: 0; }
.src-row { display: flex; align-items: center; gap: 11px; padding: 10px 13px; border: 1px solid var(--slate-200); border-radius: 10px; font-size: .88rem; font-weight: 550; }
.src-row .sdot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #dcfce7; flex-shrink: 0; }
.src-row .sstate { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--green); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.borderou-list { display: grid; gap: 1px; }
.brd-item { display: flex; align-items: center; gap: 11px; padding: 10px 6px; border-bottom: 1px dashed var(--slate-200); font-size: .9rem; }
.brd-item:last-child { border-bottom: 0; }
.brd-item .bno { font-family: var(--font-mono); font-size: .78rem; color: var(--red-700); font-weight: 700; min-width: 18px; }
.brd-item .bpg { margin-left: auto; font-family: var(--font-mono); font-size: .78rem; color: var(--slate-400); }
.brd-part { font-family: var(--font-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--slate-500); margin: 14px 0 8px; font-weight: 700; }
.brd-part:first-child { margin-top: 0; }
.ind-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ind-table td { padding: 10px 6px; border-bottom: 1px solid var(--slate-100); }
.ind-table tr:last-child td { border-bottom: 0; }
.ind-table td:last-child { text-align: right; font-family: var(--font-mono); font-weight: 700; color: var(--ink-900); white-space: nowrap; }
.doc-snippet { font-size: .92rem; color: var(--slate-600); line-height: 1.75; margin: 0; }
.doc-snippet .ins { background: var(--red-50); color: var(--red-800); font-family: var(--font-mono); font-weight: 700; padding: 1px 6px; border-radius: 5px; font-size: .84rem; }
.promo-mini { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 15px; padding: 18px 20px; }
.promo-mini .pm-h { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-300); margin-bottom: 8px; }
.promo-mini .pm-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: .86rem; color: #fff; }
.promo-mini .pm-row:last-child { border-bottom: 0; }
.promo-mini .pm-row b { font-family: var(--font-mono); color: var(--red-300); margin-right: 9px; }
@media (max-width: 768px){ .promo-grid { grid-template-columns: 1fr !important; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 440px; }
  .tool-layout { grid-template-columns: 1fr; }
  .cards, .features, .partner-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; background: #fff; padding: 12px; border-bottom: 1px solid var(--slate-200); box-shadow: var(--shadow-lg); gap: 2px; }
  .nav-toggle { display: block; }
  .cards, .features, .partner-grid, .stats, .footer-grid, .info-cols { grid-template-columns: 1fr; }
  .cta { padding: 36px 22px; }
  .section { padding: 54px 0; }
  .hero-inner { padding: 54px 0; }
  .foot-stats { flex-direction: column; gap: 8px; }
  .hide-xs { display: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
