/* SmartSupply — pagina principală (smartsupply.ro). Culori: smartsupply-brand.md */

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter/inter-latin.woff2") format("woff2-variations");
    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: "Inter";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("/fonts/inter/inter-latin-ext.woff2") format("woff2-variations");
    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;
}

:root {
    --navy: #1E3A8A;
    --navy-900: #172554;
    --navy-950: #0F1B3D;
    --orange: #F97316;
    --orange-600: #EA580C;
    --orange-50: #FFF7ED;
    --ink: #0F172A;
    --muted: #475569;
    --line: #E2E8F0;
    --soft: #F8FAFC;
    --soft-blue: #EFF4FF;
    --green: #16A34A;
    --radius: 18px;
    --shadow: 0 18px 50px -20px rgba(15, 27, 61, .35);
    --wrap: 1200px;
}

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

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

body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 750; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

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

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

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

/* ---------- Butoane ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: .95rem;
    text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
    white-space: nowrap;
}
.btn-lg { padding: 15px 24px; font-size: 1.02rem; border-radius: 14px; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(249, 115, 22, .7); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-1px); }
.btn-ghost { color: var(--navy); border-color: #C7D2FE; background: #fff; }
.btn-ghost:hover { border-color: var(--navy); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }

/* ---------- Antet ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(15, 27, 61, .5); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.brand img { width: 190px; height: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav > a:hover { color: var(--orange-600); }
.nav-actions { display: flex; gap: 10px; margin-left: 8px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding: 64px 0 80px;
    background:
        radial-gradient(900px 500px at 85% 10%, rgba(249, 115, 22, .12), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(30, 58, 138, .08), transparent 60%),
        linear-gradient(#fff, var(--soft));
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--orange-600); margin-bottom: 14px; }
.accent { color: var(--orange); display: block; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .93rem; font-weight: 600; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2 9 19.2 20 8.2l-1.5-1.5z'/%3E%3C/svg%3E") center/14px no-repeat; flex: none; }

.hero-visual { position: relative; min-height: 600px; }

/* ---------- Telefon (machetă pentru capturi) ---------- */
.phone {
    margin: 0;
    width: 280px; aspect-ratio: 9 / 19.5;
    border-radius: 44px; padding: 11px;
    background: linear-gradient(145deg, #1F2937, #0B1120);
    box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, .06);
    position: relative;
}
.phone::before {
    content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    width: 84px; height: 24px; background: #0B1120; border-radius: 14px; z-index: 2;
}
.phone-screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.screen-ph {
    height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 24px; text-align: center;
    background:
        repeating-linear-gradient(135deg, rgba(30, 58, 138, .04) 0 12px, transparent 12px 24px),
        linear-gradient(180deg, var(--soft-blue), #fff);
    border: 2px dashed #C7D2FE; border-radius: 34px;
    color: var(--navy);
}
.screen-ph strong { font-size: .95rem; line-height: 1.3; }
.screen-ph small { font-size: .7rem; color: var(--muted); word-break: break-all; }
.ph-icon { font-size: 2.2rem; line-height: 1; color: var(--orange); }

.phone-back { position: absolute; right: 0; top: 10px; transform: rotate(6deg); opacity: .95; }
.phone-front { position: absolute; left: 8%; top: 40px; z-index: 2; transform: rotate(-3deg); }

.float-card {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
    background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow);
    font-size: .9rem;
}
.float-card div { display: flex; flex-direction: column; line-height: 1.25; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-order { left: -2%; bottom: 120px; }
.float-ok { right: 4%; bottom: 40px; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot-orange { background: var(--orange); box-shadow: 0 0 0 5px rgba(249, 115, 22, .18); }
.dot-green { background: var(--green); box-shadow: 0 0 0 5px rgba(22, 163, 74, .16); }

/* ---------- Public țintă ---------- */
.audience { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.audience .wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.audience p { margin: 0; font-weight: 700; color: var(--muted); font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chips li { padding: 6px 12px; border-radius: 999px; background: var(--soft-blue); color: var(--navy); font-weight: 600; font-size: .86rem; }

/* ---------- Secțiuni ---------- */
section { padding: 88px 0; }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }
.section-head.left { text-align: left; margin: 0; }
.section-head.on-dark h2 { color: #fff; }
.section-head.on-dark p { color: #CBD5E1; }

/* Definiție */
.definition { background: #fff; }
.def-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.answer { font-size: 1.12rem; }
.def-list { background: var(--soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; }
.def-list li { padding-left: 28px; position: relative; color: var(--muted); }
.def-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 12px; border-radius: 4px; background: var(--orange); }
.def-list strong { color: var(--ink); }

/* Problema */
.problem { background: var(--soft); }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vs-col { border-radius: var(--radius); padding: 32px; }
.vs-col ul { display: grid; gap: 12px; }
.vs-col li { padding-left: 32px; position: relative; }
.vs-before { background: #fff; border: 1px solid var(--line); }
.vs-before h3 { color: var(--muted); }
.vs-before li::before { content: "✕"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #FEE2E2; color: #DC2626; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.vs-after { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.vs-after li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; }

/* Pași */
.step-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step-grid p { color: var(--muted); margin: 0; font-size: .97rem; }
.step-n { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--orange-50); color: var(--orange-600); font-weight: 800; font-size: 1.15rem; margin-bottom: 16px; }

/* Telefon (secțiunea întunecată) */
.mobile { background: linear-gradient(180deg, var(--navy), var(--navy-950)); color: #fff; }
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.screen-item { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.screen-item .phone { width: 100%; max-width: 250px; }
.screen-item figcaption { text-align: center; color: #CBD5E1; font-size: .93rem; }
.screen-item figcaption strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: 4px; }

/* Funcții */
.features { background: #fff; }
.feat-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.feat-title { margin-bottom: 18px; }
.tag { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.tag-navy { background: var(--soft-blue); color: var(--navy); }
.tag-orange { background: var(--orange-50); color: var(--orange-600); }
.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .2s, transform .2s; }
.feat:hover { border-color: #C7D2FE; transform: translateY(-2px); }
.feat svg { width: 36px; height: 36px; padding: 7px; border-radius: 10px; background: var(--soft-blue); fill: var(--navy); margin-bottom: 12px; }
.feat p { color: var(--muted); font-size: .95rem; margin: 0; }
.feat-block-client { background: var(--orange-50); border-radius: var(--radius); padding: 28px; border: 1px solid #FED7AA; }
.client-list { display: grid; gap: 14px; margin-bottom: 20px; }
.client-list li { color: #44403C; font-size: .97rem; padding-left: 26px; position: relative; }
.client-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); }
.client-list strong { color: var(--ink); }
.link-arrow { font-weight: 700; color: var(--orange-600); text-decoration: none; }
.link-arrow::after { content: " →"; }

/* SnapMenu */
.partner { background: var(--soft); padding: 64px 0; }
.partner-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 40px; }
.partner-grid p { color: var(--muted); }
.partner-points { display: grid; gap: 12px; }
.partner-points li { background: var(--soft-blue); border-radius: 12px; padding: 14px 16px; font-weight: 700; color: var(--navy); }

/* Comparație */
.compare { background: #fff; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .96rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
tbody th { font-weight: 700; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
.col-us { background: rgba(30, 58, 138, .05); color: var(--navy); font-weight: 700; }
thead .col-us { background: var(--navy); color: #fff; }

/* Prețuri */
.pricing { background: var(--soft); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.price-card h3 { font-size: 1.05rem; color: var(--muted); }
.price { font-size: 1.3rem; font-weight: 700; margin: 6px 0 0; }
.price span { font-size: 3.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.price-note { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price-card ul { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 18px; }
.price-card li { padding-left: 26px; position: relative; font-size: .95rem; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price-card-main { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: var(--shadow); }
.price-card-main h3, .price-card-main .price-note { color: #C7D2FE; }
.price-card-main .price span { color: var(--orange); }
.price-card-main ul { border-color: rgba(255, 255, 255, .15); }
.price-card-main li::before { color: var(--orange); }

.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; align-items: center; }
.calc-inputs { display: grid; gap: 8px; }
.calc label { font-weight: 600; font-size: .95rem; color: var(--muted); margin-top: 6px; }
.calc input { font: inherit; font-size: 1.1rem; font-weight: 700; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; width: 100%; }
.calc input:focus { border-color: var(--navy); outline: none; }
.calc-result { background: var(--soft-blue); border-radius: var(--radius); padding: 28px; text-align: center; }
.calc-sum { font-size: 1.3rem; font-weight: 700; color: var(--navy); margin: 0 0 6px; }
.calc-sum span { font-size: 3rem; font-weight: 800; letter-spacing: -.03em; }
.calc-explain { color: var(--muted); margin: 0; }
.small-print { color: var(--muted); font-size: .85rem; margin: 18px 0 0; text-align: center; }

/* Întrebări */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq-list { display: grid; gap: 12px; }
details { border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s; }
details[open] { border-color: #C7D2FE; background: var(--soft); }
summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--soft-blue); color: var(--navy); display: grid; place-items: center; font-weight: 800; }
details[open] summary::after { content: "–"; background: var(--orange); color: #fff; }
details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* CTA final */
.final-cta { background: linear-gradient(120deg, var(--navy), var(--navy-900)); color: #fff; padding: 72px 0; }
.final-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.final-grid h2 { color: #fff; }
.final-grid p { color: #CBD5E1; margin: 0; }
.final-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* Subsol */
.site-footer { background: var(--navy-950); color: #CBD5E1; padding: 64px 0 24px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .9fr 1.3fr; gap: 36px; }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer a { color: #E2E8F0; text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer ul { display: grid; gap: 10px; }
.footer-brand img { width: 170px; margin-bottom: 14px; }
.footer-brand p { margin-bottom: 14px; }
address { font-style: normal; line-height: 1.8; }
address strong { color: #fff; }
.footer-family { display: grid; gap: 12px; align-content: start; }
.family-card { display: block; border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 14px 16px; transition: border-color .2s, background .2s; }
.family-card:hover { border-color: var(--orange); background: rgba(255, 255, 255, .04); }
.family-card strong { display: block; color: #fff; }
.family-card span { font-size: .86rem; color: #94A3B8; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding-top: 20px; font-size: .85rem; color: #94A3B8; }
.footer-bottom p { margin: 0; }

/* ---------- Apariție la derulare ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .btn, .feat { transition: none; }
}

/* ---------- Ecrane mai mici ---------- */
@media (max-width: 1080px) {
    .nav > a { display: none; }
    .feat-split, .def-grid, .faq-grid, .partner-grid { grid-template-columns: 1fr; }
    .faq .section-head { position: static; }
    .screens { grid-template-columns: repeat(2, 1fr); }
    .step-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
    body { font-size: 16px; }
    section { padding: 64px 0; }
    .hero { padding: 36px 0 56px; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-visual { min-height: 540px; max-width: 420px; margin: 0 auto; width: 100%; }
    .phone-front { left: 0; }
    .phone-back { right: 0; }
    .float-order { left: 0; }
    .vs, .price-grid, .calc, .final-grid { grid-template-columns: 1fr; }
    .final-actions { justify-content: flex-start; }

    .menu-toggle { display: block; }
    .nav {
        position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); padding: 8px 24px 20px;
        box-shadow: 0 20px 40px -20px rgba(15, 27, 61, .4);
        transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav.open { transform: none; opacity: 1; visibility: visible; }
    .nav > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
    .nav-actions { flex-direction: column; margin: 16px 0 0; }
    .nav-actions .btn { width: 100%; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 560px) {
    .wrap { padding: 0 18px; }
    .brand img { width: 160px; }
    .hero-cta .btn { width: 100%; }
    .hero-visual { min-height: 500px; }
    .phone { width: 205px; border-radius: 36px; padding: 9px; }
    .phone::before { top: 16px; width: 64px; height: 18px; }
    .phone-back { right: 6px; top: 0; }
    .phone-front { top: 30px; }
    .float-ok { right: 0; bottom: 30px; }
    .phone-screen, .screen-ph { border-radius: 29px; }
    .screens { grid-template-columns: 1fr 1fr; gap: 18px; }
    .screen-item figcaption { font-size: .84rem; }
    .step-grid { grid-template-columns: 1fr; }
    .feat-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .vs-col, .partner-grid, .calc, .price-card { padding: 22px; }
    .audience .wrap { gap: 10px; }
}

/* ---------- Butoane mici ---------- */
.btn-link { background: transparent; border: 0; color: var(--navy); text-decoration: underline; padding: 11px 8px; box-shadow: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #E2E8F0; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--orange); }

/* ---------- Bannerul de cookie-uri ---------- */
.cookie-banner {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
    max-width: 1100px; margin: 0 auto;
    background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 20px;
    box-shadow: 0 24px 60px -20px rgba(15, 27, 61, .45);
    animation: cookie-in .35s ease;
}
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 22px 26px; }
.cookie-copy h2 { font-size: 1.05rem; margin-bottom: 6px; letter-spacing: 0; }
.cookie-copy p { margin: 0; font-size: .92rem; color: var(--muted); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { padding: 10px 16px; }
.cookie-actions [hidden] { display: none; }
.cookie-options { display: grid; gap: 10px; margin-top: 14px; }
.cookie-options[hidden] { display: none; }
.cookie-option { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.cookie-option input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex: none; }
.cookie-option strong { color: var(--ink); }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Pagini legale ---------- */
.legal { padding: 48px 0 80px; background: var(--soft); }
.legal-grid { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.legal-nav { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.legal-nav-title { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 10px; }
.legal-nav ul { display: grid; gap: 4px; }
.legal-nav a { display: block; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
.legal-nav a:hover { background: var(--soft-blue); }
.legal-nav a.active { background: var(--navy); color: #fff; }
.legal-nav-contact { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px 48px; min-width: 0; }
.legal-body h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.legal-body h2 { font-size: 1.3rem; margin-top: 2em; scroll-margin-top: 96px; }
.legal-body p, .legal-body li { color: #334155; }
.legal-body ul { list-style: disc; padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }
.legal-body table { min-width: 560px; }
.legal-body .table-scroll { margin: 0 0 1em; }
.legal-body code { font-size: .88em; background: var(--soft-blue); color: var(--navy); padding: 2px 6px; border-radius: 6px; }
.legal-lead { font-size: 1.08rem; }
.legal-updated { color: var(--muted); font-size: .9rem; margin-top: -4px; }
.crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); }

@media (max-width: 860px) {
    .legal-grid { grid-template-columns: 1fr; }
    .legal-nav { position: static; }
    .legal-body { padding: 26px 20px; }
    .cookie-inner { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .cookie-actions { justify-content: stretch; }
    .cookie-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner { animation: none; }
}
.legal-nav .legal-nav-contact a { display: inline; padding: 0; color: var(--navy); }
.legal-nav .legal-nav-contact a:hover { background: none; text-decoration: underline; }
