:root {
    --primary-color: #004d99;
    --accent-color: #e95420;
    --dark-color: #111827;
    --text-color: #263238;
    --muted-color: #64748b;
    --light-bg: #f5f5f5;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--light-bg);
    color: var(--text-color);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

a { color: inherit; }

.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-content {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-decoration: none;
}

.brand img { width: 42px; height: 42px; object-fit: contain; }

.site-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

.site-nav a {
    border-radius: 7px;
    color: #334155;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 8px 10px;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] { background: #e8f1fb; color: var(--primary-color); }

.hero {
    background: linear-gradient(135deg, #003f7d 0%, var(--primary-color) 65%, #0b62b3 100%);
    color: #fff;
    padding: 64px 0 72px;
}

.eyebrow {
    align-items: center;
    color: #ffe1d6;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    gap: 8px;
    letter-spacing: 0.1em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.eyebrow::before { background: var(--accent-color); content: ''; height: 3px; width: 28px; }

.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.12; margin: 0; max-width: 760px; }

.hero p { color: #dbeafe; font-size: 1.08rem; margin: 18px 0 0; max-width: 700px; }

.page-content { padding: 52px 0 68px; }

.content-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) minmax(250px, 1fr); }

.content-card,
.side-card,
.step-card {
    background: #fff;
    border: 1px solid #e7edf4;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.content-card { padding: clamp(24px, 4vw, 40px); }

.content-card h2 { color: var(--primary-color); font-size: 1.55rem; line-height: 1.25; margin: 0 0 14px; }

.content-card h2:not(:first-child) { margin-top: 32px; }

.content-card p { margin: 0 0 16px; }

.content-card ul { margin: 0; padding-left: 22px; }

.content-card li { margin-bottom: 10px; }

.accent-list li::marker { color: var(--accent-color); }

.side-card { align-self: start; padding: 28px; }

.side-card h2 { color: var(--primary-color); font-size: 1.25rem; margin: 0 0 12px; }

.side-card p { color: var(--muted-color); margin: 0 0 20px; }

.button {
    background: var(--accent-color);
    border-radius: 7px;
    color: #fff;
    display: inline-block;
    font-weight: 800;
    padding: 11px 16px;
    text-decoration: none;
}

.button:hover { background: #c94318; }

.steps { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.step-card { padding: 24px; }

.step-number {
    align-items: center;
    background: #e8f1fb;
    border-radius: 50%;
    color: var(--primary-color);
    display: inline-flex;
    font-size: 1rem;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    margin-bottom: 14px;
    width: 34px;
}

.step-card h2 { color: var(--primary-color); font-size: 1.12rem; margin: 0 0 8px; }

.step-card p { color: var(--muted-color); font-size: 0.95rem; margin: 0; }

.notice {
    background: #fff4ef;
    border-left: 4px solid var(--accent-color);
    border-radius: 0 8px 8px 0;
    margin-top: 28px;
    padding: 16px 18px;
}

.notice p { margin: 0; }

.main-footer {
    background: var(--dark-color);
    color: #d1d5db;
    margin: 30px auto 20px;
    max-width: 1240px;
    padding: 46px 0 20px;
    width: 95%;
}

.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.4fr 1fr 1fr; }

.footer-title { color: #fff; font-size: 1.08rem; margin: 0 0 18px; }

.footer-title::after { background: var(--accent-color); content: ''; display: block; height: 3px; margin-top: 8px; width: 38px; }

.footer-about { color: #a0aec0; margin: 0 0 18px; max-width: 400px; }

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a { color: #d1d5db; text-decoration: none; }

.footer-links a:hover,
.footer-links a[aria-current="page"] { color: var(--accent-color); }

.footer-contact { text-align: right; }

.footer-contact .footer-title::after { margin-left: auto; }

.footer-contact strong { color: #fff; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); color: #94a3b8; font-size: 0.9rem; margin-top: 32px; padding-top: 18px; text-align: center; }

@media (max-width: 760px) {
    .container { width: min(100% - 28px, 1120px); }
    .header-content { padding: 14px 0; }
    .site-nav { justify-content: flex-start; }
    .hero { padding: 46px 0 52px; }
    .content-grid,
    .footer-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .footer-contact { text-align: left; }
    .footer-contact .footer-title::after { margin-left: 0; }
}

/* Navbar principal și subnavbar */
.site-header { background: #fff; border: 0; box-shadow: none; }

.site-header .navbar-top {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: auto minmax(260px, 520px) auto;
    max-width: 1440px;
    min-height: 76px;
    padding: 12px 24px;
    width: 100%;
}

.site-logo { display: inline-flex; line-height: 0; text-decoration: none; }

.site-logo img { display: block; height: 52px; object-fit: contain; width: auto; }

.top-search { position: relative; width: 100%; }

.top-search input {
    background: #f8fafc;
    border: 1px solid #d8e0ea;
    border-radius: 7px;
    color: #1f2937;
    font: inherit;
    outline: none;
    padding: 11px 46px 11px 15px;
    width: 100%;
}

.top-search input:focus { background: #fff; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(0, 77, 153, 0.12); }

.top-search button { background: transparent; border: 0; color: var(--primary-color); cursor: pointer; font-size: 1.05rem; padding: 10px 14px; position: absolute; right: 0; top: 0; }

.top-actions { align-items: center; display: flex; gap: 6px; justify-content: flex-end; }

.top-action { align-items: center; border-radius: 7px; color: var(--primary-color); display: inline-flex; flex-direction: column; font-size: 0.72rem; font-weight: 700; gap: 3px; min-width: 58px; padding: 5px 7px; text-align: center; text-decoration: none; }

.top-action i { font-size: 1.22rem; }

.top-action:hover { background: #e8f1fb; }

.site-subnav { background: var(--primary-color); box-shadow: 0 3px 8px rgba(0, 46, 91, 0.2); }

.site-subnav .subnav-content { align-items: stretch; display: flex; max-width: 1440px; min-width: max-content; padding: 0 24px; width: 100%; }

.subnav-link,
.subnav-dropdown summary { align-items: center; color: #fff; cursor: pointer; display: flex; font-size: 0.92rem; font-weight: 700; gap: 8px; min-height: 54px; padding: 0 15px; text-decoration: none; white-space: nowrap; }

.subnav-link:hover,
.subnav-dropdown summary:hover { background: #003d7a; }

.subnav-dropdown { position: relative; }

.subnav-dropdown summary { list-style: none; }

.subnav-dropdown summary::-webkit-details-marker { display: none; }

.subnav-dropdown summary .fa-chevron-down { font-size: 0.7rem; }

.subnav-menu { background: #fff; border-radius: 0 0 8px 8px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18); display: none; left: 0; min-width: 210px; padding: 8px 0; position: absolute; top: 54px; z-index: 11; }

.subnav-dropdown[open] .subnav-menu { display: block; }

.subnav-menu a { color: #27364a; display: block; font-size: 0.9rem; padding: 9px 14px; text-decoration: none; }

.subnav-menu a:hover { background: #eaf3fb; color: var(--primary-color); }

.subnav-category summary { background: var(--accent-color); }

.subnav-category summary:hover { background: #c94318; }

.subnav-config { background: #e6ae00; color: #172033; }

.subnav-config:hover { background: #f3be13; }

.subnav-contact { margin-left: auto; }

.subnav-contact i { font-size: 1rem; }

@media (max-width: 900px) {
    .site-header .navbar-top { gap: 12px; grid-template-columns: auto 1fr; min-height: 0; padding: 10px 15px; width: 100%; }
    .site-logo img { height: 42px; }
    .top-search { grid-column: 1 / -1; grid-row: 2; }
    .top-actions { gap: 2px; }
    .top-action { min-width: 49px; padding: 4px; }
    .site-subnav { overflow-x: auto; }
    .site-subnav .subnav-content { padding: 0; }
    .subnav-contact { margin-left: 0; }
}
