:root {
    --ink: #1a150f;
    --navy: #172033;
    --navy-deep: #121a2b;
    --brass: #8a6230;
    --brass-bright: #d7b56d;
    --cream: #f3eee6;
    --paper: #f7f4ef;
    --white: #fffcf8;
    --muted: #5e584f;
    --line: rgba(23, 32, 51, 0.12);
    --danger: #8c2f2f;
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --sans: "Avenir Next", Avenir, "Segoe UI", "Helvetica Neue", sans-serif;
    --max: 1120px;
    --header: 118px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
}

html:not(.notice-ok) body { padding-bottom: 96px; }

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

a { color: inherit; }

h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.15rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.45rem; }

p { margin: 0 0 0.9em; }

ul { margin: 0; padding: 0; }

.wrap {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
}

.skip {
    position: absolute;
    left: 12px;
    top: -48px;
    background: white;
    color: var(--navy);
    padding: 8px 12px;
    z-index: 80;
}

.skip:focus { top: 12px; }

:focus-visible {
    outline: 2px solid var(--brass-bright);
    outline-offset: 3px;
}

::selection {
    background: #e7d3a8;
    color: #1a140c;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--brass);
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead {
    font-size: 1.15rem;
    max-width: 40rem;
    color: var(--muted);
}

.fine, .legal-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.topbar {
    background: #0d1320;
    color: rgba(244, 239, 230, 0.78);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.topbar-inner,
.header-inner,
.cta-inner,
.foot-base {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-inner { min-height: 36px; }
.topbar a { text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--navy-deep);
    color: #f4efe6;
    border-bottom: 1px solid rgba(215, 181, 109, 0.35);
}

.header-inner { min-height: 78px; position: relative; }

.logo, .footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo img,
.footer-logo {
    height: 46px;
    width: auto;
    background: #fff;
    padding: 6px 10px;
    display: block;
}

.footer-logo { margin-bottom: 14px; }

.logo-mark {
    display: grid;
    place-items: center;
    color: var(--brass-bright);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text strong {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.logo-text small {
    margin-top: 4px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.62rem;
    color: var(--brass-bright);
}

.nav {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.nav a {
    color: rgba(244, 239, 230, 0.78);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 9px;
}

.nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 var(--brass-bright); }

.nav-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    color: #f4efe6;
    border: 1px solid rgba(244, 239, 230, 0.3);
    min-height: 40px;
    padding: 0 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 2px;
    text-decoration: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

.btn-gold {
    background: var(--brass-bright);
    color: #1c1408;
    border-color: var(--brass-bright);
}

.btn-gold:hover { background: #e4c88a; }

.btn-dark {
    background: var(--navy);
    color: #f4efe6;
}

.btn-dark:hover { background: #24344f; }

.btn-line {
    background: transparent;
    color: var(--navy);
    border-color: rgba(23, 32, 51, 0.28);
}

.btn-line:hover { border-color: var(--navy); }

.hero { padding: 72px 0 36px; }

.hero-grid,
.contact-grid,
.split,
.calc-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: start;
}
.hero-grid { align-items: center; }

.hero h1 { max-width: 12em; }

.hero-actions, .cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.hero-panel {
    background: var(--navy-deep);
    color: #f4efe6;
    padding: 28px 26px;
    align-self: stretch;
}

.hero-panel .eyebrow { color: var(--brass-bright); }

.hero-points { list-style: none; display: grid; gap: 18px; }
.hero-points strong {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    color: var(--brass-bright);
}
.hero-points span { color: rgba(244, 239, 230, 0.8); }

.hero-points-light {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
}
.hero-points-light strong {
    display: block;
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--brass);
}
.hero-points-light span { color: var(--muted); font-size: 0.9rem; }

.hero-photo { margin: 0; }
.hero-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.partner-grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 0;
    padding: 0;
}
.partner-grid li {
    background: #fff;
    border: 1px solid var(--line);
    min-height: 104px;
    display: grid;
    place-items: center;
    padding: 16px 18px;
}
.partner-grid img {
    max-width: 100%;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.promise {
    border-block: 1px solid var(--line);
    background: var(--white);
}

.promise-grid,
.cards,
.steps,
.quotes,
.foot-grid,
.stat-grid {
    display: grid;
    gap: 22px;
}

.promise-grid { grid-template-columns: repeat(3, 1fr); }
.promise article { padding: 28px 8px; }
.promise h2 { font-size: 1.55rem; }

.section { padding: 84px 0; }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-muted { background: #efeae2; }
.section-tight { padding-top: 28px; }

.cards, .blog-grid { grid-template-columns: repeat(3, 1fr); }
.blog-grid { display: grid; gap: 22px; }
.blog-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card div { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card h2 { font-size: 1.35rem; margin: 0; }
.blog-card p { margin: 0; }
.article-cover { margin: 0 0 28px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.card, .quote, .info-card, .calc-result, .sim-box, .founder {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 24px;
}

.card { min-height: 100%; display: flex; flex-direction: column; }
.card .index {
    font-family: var(--serif);
    color: var(--brass);
    font-size: 1.3rem;
}
.card a, .prose a, .fine a, .cookie-bar a, .legal-note a {
    color: #6d4e1e;
}
.card .btn { margin-top: auto; align-self: flex-start; }

.steps { grid-template-columns: repeat(4, 1fr); }
.step-no {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--brass);
    display: block;
    margin-bottom: 8px;
}

.quotes { grid-template-columns: 1fr 1fr; }
.quote {
    margin: 0;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 16px;
    align-items: start;
}
.quote img {
    width: 76px;
    height: 76px;
    object-fit: cover;
    object-position: center top;
}
.quote p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.4; }
.quote footer { color: var(--muted); font-size: 0.92rem; }

.cta-band {
    background: var(--navy-deep);
    color: #f4efe6;
    padding: 56px 0;
}
.cta-band p { color: rgba(244, 239, 230, 0.78); max-width: 38rem; }
.cta-band .btn-line { color: #f4efe6; border-color: rgba(244, 239, 230, 0.4); }

.page-hero { padding: 54px 0 10px; }
.page-hero h1 { max-width: 16em; }

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.88rem;
}
.crumbs a { color: var(--brass); text-decoration: none; }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; color: rgba(23, 32, 51, 0.35); }

.prose { max-width: 46rem; padding-bottom: 48px; }
.prose h2 { margin-top: 1.8em; }
.prose ul, .check-list { padding-left: 1.1rem; }
.prose li, .check-list li { margin: 0.35em 0; }

.split { align-items: center; }
.about-stack { max-width: 760px; }
.about-stack .hero-photo { max-width: 420px; margin: 0 auto 32px; }
.founder { display: grid; grid-template-columns: 240px 1fr; gap: 22px; align-items: start; }
.founder-photo { width: 100%; height: 300px; object-fit: cover; object-position: center 20%; }
.monogram {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border: 1px solid var(--brass-bright);
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--brass);
}

.faq { display: grid; gap: 12px; }
.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 8px 18px;
}
.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    padding: 12px 0;
}
.faq-item p { color: var(--muted); }

.contact-grid { align-items: start; }
.info-card h2 { font-size: 1.7rem; }
.info-card a { color: #6d4e1e; }

.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .choice-legend { font-size: 0.92rem; }
.req { color: var(--brass); }
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    border: 1px solid rgba(23, 32, 51, 0.18);
    background: var(--white);
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
    border-radius: 2px;
}
textarea { min-height: 140px; resize: vertical; }
.field-error { color: var(--danger); font-size: 0.88rem; margin: 0; }
.alert {
    background: #f8ece6;
    border: 1px solid #e2c8bc;
    color: #6d2e24;
    padding: 14px 16px;
}
.alert-ok {
    background: #e7f3ea;
    border: 1px solid #b7d7c0;
    color: #1e4d32;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.alert-ok p, .alert p { margin: 0.35em 0; }
.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: start;
    padding: 14px;
    border: 1px solid rgba(138, 98, 48, 0.35);
    background: #fbf7f0;
}
.consent input { width: 18px; height: 18px; margin-top: 4px; }
.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.sim-box { margin-bottom: 16px; background: #f8f3ea; }
.sim-box h2 { font-size: 1.3rem; }

.calc-layout { align-items: start; }
.calc-form, .calc-result { background: var(--white); border: 1px solid var(--line); padding: 22px; }
.calc-result { position: sticky; top: 108px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
    position: relative;
    border: 1px solid var(--line);
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.92rem;
}
.choice input { position: absolute; opacity: 0; }
.choice:has(input:checked),
.choice:focus-within { background: var(--navy); color: #f4efe6; border-color: var(--navy); }
.range-row { display: grid; gap: 8px; }
input[type="range"] { width: 100%; accent-color: var(--brass); }
input[readonly] { background: #f3f0ea; }
.bank-compare { margin-bottom: 28px; }
.bank-compare h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 8px; }
.bank-list { display: grid; gap: 8px; margin-top: 14px; }
.bank-row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr auto;
    gap: 12px;
    align-items: center;
    width: 100%;
    text-align: left;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 12px 14px;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.bank-row.is-selected { border-color: var(--navy); background: #f8f3ea; }
.bank-row strong { font-variant-numeric: tabular-nums; }
.rate-table input { width: 100%; min-width: 72px; padding: 8px; }
.rate-imported { outline: 2px solid var(--brass); background: #fbf6ea; }
.import-bar { margin-bottom: 18px; }
.import-bar .fine { margin-top: 8px; }
.import-result { margin-bottom: 22px; }
.import-result h2 { font-size: 1.4rem; margin: 16px 0 8px; }
.check-inline { display: flex; gap: 8px; align-items: center; white-space: nowrap; font-size: 0.88rem; }
.admin-links { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-rate {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin: 0 0 12px;
    font-variant-numeric: tabular-nums;
}
.calc-result dl { margin: 0 0 16px; }
.calc-result dl div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid var(--line);
}
.calc-result dt { color: var(--muted); }
.calc-result dd { margin: 0; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
caption { text-align: left; padding: 12px; color: var(--muted); }

.site-footer {
    background: var(--navy-deep);
    color: rgba(244, 239, 230, 0.82);
    padding: 56px 0 28px;
}
.foot-grid { grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr; align-items: start; }
.site-footer h2 { color: #f4efe6; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--sans); }
.site-footer a { color: #f4efe6; text-decoration: none; }
.site-footer li { list-style: none; margin: 0.35em 0; }
.foot-base { display: block; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(244, 239, 230, 0.12); }
.site-footer .legal-note, .site-footer .fine { color: rgba(244, 239, 230, 0.62); }

.cookie-bar {
    position: fixed;
    z-index: 50;
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: 920px;
    margin: 0 auto;
    background: var(--navy-deep);
    color: #f4efe6;
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.cookie-bar p { margin: 0; font-size: 0.92rem; }
.cookie-bar a { color: var(--brass-bright); }
html.notice-ok .cookie-bar { display: none; }

.badge {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--line);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.badge-nou { background: #f3e6c8; }
.badge-citit { background: #e7eef8; }
.badge-in_lucru, .badge-dosar { background: #e7f3ea; }
.badge-inchis, .badge-pierdut { background: #eee; }
.badge-contactat { background: #e7eef8; }
.badge-intalnire { background: #efe7f6; }
.badge-oferta { background: #f8efe0; }
.badge-client { background: #dceee4; }
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.search-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; margin-bottom: 22px; }
.doc-list { list-style: none; margin: 0 0 16px; padding: 0; }
.doc-list li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ask-list { list-style: none; margin: 0 0 12px; padding: 0; }
.ask-list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ask-list form { margin: 0; }
.portal-link { width: 100%; margin: 0 0 12px; padding: 8px; font-size: 0.85rem; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.cal-nav h2 { margin: 0; font-size: 1.5rem; }
.cal, .cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head span { font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); padding: 6px; }
.cal-day {
    min-height: 92px;
    border: 1px solid var(--line);
    background: var(--white);
    padding: 6px;
    color: inherit;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cal-day.is-out { background: transparent; color: var(--muted); }
.cal-day.is-today { outline: 2px solid var(--brass); }
.cal-day.is-selected { background: #f8f3ea; }
.cal-day strong { font-size: 0.85rem; }
.cal-chip { font-size: 0.72rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.is-done { text-decoration: line-through; color: var(--muted); }
.cal-chip.is-late { color: #6d2e24; }
.task-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.task-row form { margin: 0; }

.admin-bar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

@media (max-width: 980px) {
    .nav-toggle { display: inline-flex; }
    .header-cta { display: none; }
    .nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--navy-deep);
        flex-direction: column;
        padding: 8px 20px 18px;
        border-bottom: 1px solid rgba(215, 181, 109, 0.35);
    }
    .nav.is-open { display: flex; }
    .hero-grid,
    .contact-grid,
    .split,
    .calc-layout,
    .promise-grid,
    .cards,
    .blog-grid,
    .steps,
    .quotes,
    .foot-grid,
    .form-row,
    .founder,
    .hero-points-light { grid-template-columns: 1fr; }
    .partner-grid { grid-template-columns: repeat(2, 1fr); }
    .bank-row { grid-template-columns: 1fr; }
    .calc-result { position: static; }
    .hero { padding-top: 42px; }
    .section { padding: 56px 0; }
}

@media (max-width: 700px) {
    .wrap { width: min(var(--max), calc(100% - 28px)); }
    .topbar-inner span:last-child { display: none; }
    .cookie-bar { align-items: flex-end; }
    .cookie-bar .btn { flex: 0 0 auto; padding-inline: 14px; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media print {
    .site-header, .topbar, .cookie-bar, .cta-band, .site-footer, .nav-toggle { display: none !important; }
    body { background: white; padding: 0; }
}
