/* credite.casa — CAR Sanitar Deva. Culori luate din sigla CAR Sanitar. */
:root {
  --navy: #05364a;
  --navy-2: #0a4a63;
  --teal: #3bbca7;
  --teal-d: #23917f;
  --purple: #766bae;
  --pink: #ef4b6e;
  --yellow: #f2cf12;
  --red: #ee3b24;
  --wa: #1fa855;
  --wa-d: #178a45;
  --ink: #12232b;
  --muted: #5a6b73;
  --line: #dfe7ea;
  --bg: #ffffff;
  --bg-2: #f4f8f9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(5, 54, 74, .12);
  --max: 1160px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Titillium Web", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-d); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Header */
.top { background: var(--navy); color: #cfe3ea; font-size: .9rem; }
.top .wrap { display: flex; gap: 18px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.top a { color: #fff; text-decoration: none; font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 42px; height: 42px; }
.brand b { display: block; font-size: 1.08rem; line-height: 1.1; }
.brand small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.2; }
nav.main { display: flex; gap: 22px; align-items: center; }
nav.main a { color: var(--ink); text-decoration: none; font-weight: 600; }
nav.main a:hover { color: var(--teal-d); }
@media (max-width: 1060px) { nav.main .hide-m { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-d); }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #4fd0bb; }
.btn-ghost { background: transparent; color: inherit; border: 2px solid currentColor; }
.btn-sm { padding: 9px 16px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 60%, #0d5a6e 100%); color: #fff; padding: 48px 0 56px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; opacity: .9; pointer-events: none; }
.hero::before { width: 340px; height: 340px; right: -110px; top: -120px; border: 46px solid var(--teal); opacity: .25; }
.hero::after { width: 18px; height: 18px; right: 6%; bottom: 28px; background: var(--red); box-shadow: -60px 10px 0 -3px var(--yellow), -110px -6px 0 -5px var(--pink); opacity: .85; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; } }
.eyebrow { display: inline-block; background: rgba(59,188,167,.18); color: #9fe7da; border: 1px solid rgba(59,188,167,.4); padding: 4px 12px; border-radius: 999px; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lead { font-size: 1.18rem; color: #d7e9ef; max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0 26px; max-width: 520px; }
.facts div { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; }
.facts b { display: block; font-size: 1.35rem; line-height: 1.1; color: #fff; }
.facts span { font-size: .85rem; color: #b9d3db; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { margin-top: 14px; font-size: .9rem; color: #a9c6cf; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: #a9c6cf; }
.crumbs a { color: #d7e9ef; }

/* Calculator card */
.calc { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 22px; }
.calc h2 { font-size: 1.3rem; margin-bottom: 14px; color: var(--navy); }
.field { margin-bottom: 14px; }
.field label, .lbl { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field label output { font-size: 1.15rem; color: var(--navy); font-weight: 700; }
select, input[type=text], input[type=tel], textarea {
  width: 100%; font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
select:focus, input:focus, textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(59,188,167,.25); }
input[type=range] { width: 100%; accent-color: var(--teal-d); height: 28px; }
.range-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-top: -2px; }
.result { background: var(--bg-2); border-radius: 12px; padding: 14px 16px; margin: 6px 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; }
.result .big { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.result .big b { font-size: 2rem; color: var(--navy); line-height: 1; }
.result small { display: block; color: var(--muted); font-size: .8rem; }
.result span b { font-size: 1.05rem; }
.calc .btn { width: 100%; }
.calc .fine { font-size: .78rem; color: var(--muted); margin: 10px 0 0; }

/* Sections */
section.block { padding: 64px 0; }
section.alt { background: var(--bg-2); }
.head { max-width: 720px; margin-bottom: 30px; }
.head p { color: var(--muted); font-size: 1.08rem; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 920px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; border-top: 5px solid var(--c, var(--teal)); }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #c9d8dd; }
.card h3 { color: var(--navy); margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .meta { display: flex; justify-content: space-between; align-items: end; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.card .meta small { display: block; color: var(--muted); font-size: .78rem; }
.card .dae { font-size: 1.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.card .go { font-weight: 700; color: var(--teal-d); }
.card.feat { grid-column: span 3; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; background: linear-gradient(120deg, #fff 55%, #e9f8f5); }
.card.feat h3 { font-size: 1.6rem; }
@media (max-width: 920px) { .card.feat { grid-column: span 2; } }
@media (max-width: 600px) { .card.feat { grid-column: span 1; grid-template-columns: 1fr; } }
.tag { display: inline-block; background: var(--yellow); color: var(--navy); font-weight: 700; font-size: .78rem; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 700; font-size: 1.2rem; margin-bottom: 12px; }
.step p { color: var(--muted); margin: 0; }

/* Eligibility */
.elig { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 820px) { .elig { grid-template-columns: 1fr; gap: 20px; } }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305364a' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7'/%3E%3C/svg%3E") center / 15px no-repeat; }
.towns { display: flex; flex-wrap: wrap; gap: 8px; }
.towns span { background: #fff; border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; font-weight: 600; color: var(--navy); }

/* Product page details */
.two { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
@media (max-width: 920px) { .two { grid-template-columns: 1fr; } }
.spec { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec th { width: 42%; color: var(--muted); font-weight: 600; }
.spec td { font-weight: 700; color: var(--navy); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.rep { background: #fffbe6; border: 1px solid #f3e3a0; border-left: 5px solid var(--yellow); border-radius: 12px; padding: 16px 18px; font-size: .96rem; margin-top: 18px; }
.rep b { color: var(--navy); }

/* Lead form */
.lead-box { background: #fff; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 24px; }
.lead-box h2 { font-size: 1.5rem; color: var(--navy); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 6px 0 16px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal-d); flex: none; }
.err { color: #c2261b; font-size: .85rem; margin-top: 4px; display: none; }
.invalid + .err, .field.invalid .err { display: block; }
.field.invalid input, .field.invalid select { border-color: #c2261b; }
.summary { background: var(--bg-2); border-radius: 10px; padding: 10px 14px; font-size: .95rem; margin-bottom: 14px; }
.summary b { color: var(--navy); }
.lead-box .btn { width: 100%; font-size: 1.08rem; }
.alt-contact { text-align: center; font-size: .92rem; color: var(--muted); margin-top: 12px; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.5rem; color: var(--teal-d); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* CTA band */
.band { background: var(--navy); color: #fff; padding: 46px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.band h2 { margin: 0; }
.band p { margin: 4px 0 0; color: #b9d3db; }

/* Footer */
footer.site { background: #031f2b; color: #a9c0c8; font-size: .92rem; padding: 46px 0 90px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 820px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site h4 { color: #fff; margin: 0 0 10px; font-size: 1rem; }
footer.site a { color: #d7e9ef; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 6px; }
.legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 18px; font-size: .82rem; }
.anpc { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.anpc a { display: inline-block; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; padding: 6px 10px; text-decoration: none; font-weight: 600; font-size: .8rem; }

/* Floating WhatsApp (mobile) */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
@media (min-width: 921px) { .fab { display: none; } }

/* Prose pages */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--navy); }

/* ---------- Chestionar ---------- */
.narrow { max-width: 760px; }
.form-page h1 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 18px; }
.progress-bar { height: 100%; width: 16%; background: linear-gradient(90deg, var(--teal), var(--purple)); transition: width .3s; }
.progress-label { display: flex; justify-content: space-between; font-size: .88rem; font-weight: 600; color: var(--muted); margin: 6px 0 18px; }
.js .qstep { display: none; }
.js .qstep.active { display: block; }
.qstep { border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 0 0 18px; background: #fff; box-shadow: var(--shadow); min-width: 0; }
.qstep legend { float: left; width: 100%; font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.qstep legend + * { clear: both; }
.qn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--navy); font-size: 1rem; flex: none; }
.lbl { display: block; font-weight: 600; margin-bottom: 8px; }
.opt { color: var(--muted); font-weight: 400; font-size: .85em; }
.hint { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills.stack { flex-direction: column; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; }
.pill span { display: block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; font-size: .95rem; transition: border-color .12s, background .12s; }
.pills.yn .pill span { min-width: 80px; text-align: center; }
.pill:hover span { border-color: #b8cbd1; }
.pill input:checked + span { border-color: var(--teal-d); background: #e7f7f4; color: var(--navy); box-shadow: inset 0 0 0 1px var(--teal-d); }
.pill input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.sub { margin-top: 12px; padding: 12px 14px; background: var(--bg-2); border-radius: 12px; }
.sub label { display: block; font-weight: 600; margin: 10px 0 6px; font-size: .95rem; }
.sub .lbl:first-child, .sub label:first-child { margin-top: 0; }
.estimate { background: #e7f7f4; border-radius: 10px; padding: 10px 14px; margin: 0 0 14px; }
.estimate:empty { display: none; }
.estimate .warn { color: #8a5a00; font-size: .9rem; }
.ferr { color: #c2261b; font-size: .86rem; margin-top: 6px; font-weight: 600; }
.has-err > input, .has-err > select, .has-err input[type=text] { border-color: #c2261b; }
.pills.invalid .pill span, .has-err .pills .pill span { border-color: #e6a19b; }
.consent.invalid span { color: #c2261b; }
.consent a { color: var(--teal-d); }
.alert { background: #fdecea; color: #8c1d14; border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; }
.qnav { display: flex; gap: 12px; justify-content: space-between; }
.qnav .btn { flex: 1; }
.qnav #qprev { flex: 0 0 auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Mulțumire ---------- */
.done { text-align: center; }
.done .badge { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--teal); margin-bottom: 14px; }
.done .badge svg { width: 38px; height: 38px; }
.done-box { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin: 22px 0; box-shadow: var(--shadow); }

.send-hint { background: var(--bg-2); border-radius: 10px; padding: 10px 14px; font-weight: 600; color: var(--navy); margin: 14px 0 0; }
.send-hint.ok { background: #e7f7f4; }
.req { color: #c2261b; }

.towns .town-link { background: var(--teal); color: var(--navy); border: 1px solid var(--teal-d); padding: 6px 12px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.towns .town-link:hover { background: #4fd0bb; }
.big-facts { grid-template-columns: repeat(4, 1fr); max-width: none; }
.big-facts div { background: var(--bg-2); border-color: var(--line); }
.big-facts b { color: var(--navy); font-size: 1.8rem; }
.big-facts span { color: var(--muted); }
@media (max-width: 700px) { .big-facts { grid-template-columns: repeat(2, 1fr); } }
.grid.team { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid.team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .grid.team { grid-template-columns: 1fr; } }
.grid.team .card:hover { transform: none; box-shadow: none; }

/* ---------- Ghiduri ---------- */
.hero-sm { padding: 40px 0 44px; }
.hero-sm h1 { font-size: clamp(1.8rem, 4.4vw, 2.7rem); max-width: 22em; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
@media (max-width: 920px) { .article-wrap { grid-template-columns: 1fr; } }
.article { max-width: 720px; font-size: 1.06rem; }
.article h2 { color: var(--navy); font-size: 1.55rem; margin-top: 1.6em; }
.article h3 { color: var(--navy); margin-top: 1.3em; }
.article ul, .article ol { padding-left: 1.3em; margin: 0 0 1em; }
.article li { margin-bottom: .4em; }
.article table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .97rem; }
.article th, .article td { border-bottom: 1px solid var(--line); padding: 9px 10px; text-align: left; vertical-align: top; }
.article thead th { background: var(--bg-2); color: var(--navy); }
.table-scroll { overflow-x: auto; }
.tip { background: #e7f7f4; border-left: 5px solid var(--teal); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.2em; }
.warn-box { background: #fffbe6; border-left: 5px solid var(--yellow); border-radius: 12px; padding: 14px 18px; margin: 0 0 1.2em; }
.tip p:last-child, .warn-box p:last-child { margin: 0; }
.disclaimer { font-size: .85rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 30px; }
.side { position: sticky; top: 86px; display: grid; gap: 16px; }
@media (max-width: 920px) { .side { position: static; } }
.side-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--teal)); border-radius: var(--radius); padding: 20px; }
.side-card.plain { border-top-width: 1px; }
.side-card small { color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; font-size: .72rem; }
.side-card h3 { color: var(--navy); margin: 4px 0 8px; }
.side-card p { color: var(--muted); font-size: .95rem; }
.side-card .side-dae { color: var(--ink); }
.side-card .btn { width: 100%; }
.side-link { display: block; text-align: center; margin-top: 10px; font-weight: 700; text-decoration: none; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { margin-bottom: 10px; line-height: 1.35; }
.side-card li a { color: var(--ink); font-weight: 600; text-decoration: none; }
.side-card li a:hover { color: var(--teal-d); }
