:root {
    --primary: #0077B6;
    --primary-dark: #005F91;
    --primary-soft: #E6F6FE;
    --secondary: #90E0EF;
    --accent: #00B4D8;
    --success: #16a34a;
    --warning: #f59e0b;
    --ink: #0f172a;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-light: #f6fbff;
    --bg-white: #ffffff;
    --border-color: #dbe7ef;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
    --shadow-xl: 0 28px 70px rgba(15, 23, 42, 0.16);
    --radius: 16px;
    --radius-lg: 28px;
    --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-main);
    color: var(--text-main);
    background: var(--bg-light);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.section { padding: clamp(56px, 7vw, 96px) 0; }
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

h1, h2, h3, h4 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.08; }
h1 { font-size: clamp(2.25rem, 5vw, 4.9rem); font-weight: 900; margin-bottom: 1.25rem; }
h1 span { color: var(--primary); }
h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }
.hero-lead, .lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-muted); max-width: 720px; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(219, 231, 239, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}
.nav-shell {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(260px, 520px) auto auto;
    gap: 1rem;
    align-items: center;
}
.brand, .logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}
.brand em, .logo span { color: var(--accent); font-style: normal; }
.brand-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    box-shadow: 0 12px 25px rgba(0, 119, 182, 0.22);
}
.brand-icon svg { width: 22px; height: 22px; }

.header-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    width: 100%;
}
.header-search-field { position: relative; }
.header-search-field svg, .header-search-field i {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--primary);
    pointer-events: none;
}
.header-search-field input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 14px;
    padding: 0 1rem 0 2.75rem;
    color: var(--ink);
    outline: none;
    box-shadow: var(--shadow-sm);
}
.header-search-field input::placeholder { color: #94a3b8; }
.header-search-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 119, 182, 0.12);
}
.header-search-btn, .btn-primary {
    border: 0;
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(0, 119, 182, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.header-search-btn:hover, .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(0, 119, 182, 0.28); }
.desktop-nav { display: inline-flex; align-items: center; gap: 1rem; justify-self: end; }
.desktop-nav a { color: var(--text-main); text-decoration: none; font-weight: 800; font-size: 0.95rem; }
.desktop-nav a:hover { color: var(--primary); }
.nav-cta, .cta-header {
    background: var(--ink);
    color: #fff !important;
    padding: 0.7rem 1rem;
    border-radius: 999px;
}
.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    color: var(--ink);
    background: #fff;
    cursor: pointer;
}
.mobile-nav {
    display: none;
    border-top: 1px solid var(--border-color);
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.mobile-nav.active { display: block; }
.mobile-nav nav { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.mobile-nav a { display: block; padding: 1rem 0; text-decoration: none; font-weight: 800; color: var(--ink); border-bottom: 1px solid var(--border-color); }

.hero, .hero-compact, .hero-small {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 18%, rgba(144, 224, 239, 0.55), transparent 28%),
        radial-gradient(circle at 88% 10%, rgba(0, 119, 182, 0.14), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #eef9ff 100%);
}
.hero::after, .hero-compact::after, .hero-small::after {
    content: '';
    position: absolute;
    inset: auto -8% -42% -8%;
    height: 280px;
    background: #fff;
    transform: rotate(-3deg);
    transform-origin: left top;
}
.hero > .container, .hero-compact > .container, .hero-small > .container { position: relative; z-index: 1; }
.hero { padding: clamp(64px, 8vw, 112px) 0; }
.hero-compact, .hero-small { padding: clamp(44px, 6vw, 76px) 0; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}
.hero-content, .hero-text-side { max-width: 720px; }
.hero-badge, .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 900;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.hero-cta-group { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn-outline {
    min-height: 46px;
    padding: 0.8rem 1.25rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 119, 182, 0.24);
    background: #fff;
    color: var(--primary) !important;
    font-weight: 900;
    text-decoration: none;
    transition: transform 0.22s ease, background 0.22s ease;
}
.btn-outline:hover { transform: translateY(-2px); background: var(--primary-soft); }
.btn-lg { min-height: 52px; padding-inline: 1.45rem; }
.hero-features { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.feature-item, .trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}
.feature-item svg, .trust-pill svg { width: 18px; height: 18px; color: var(--primary); }

.pa-form-card {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(219, 231, 239, 0.95);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.pa-form-header {
    background: linear-gradient(135deg, var(--ink), #123b5a);
    color: #fff;
    padding: 1.35rem 1.5rem;
    text-align: center;
}
.pa-form-header h3, .pa-form-header h4 { color: #fff !important; margin: 0; font-size: 1.25rem; }
.pa-form-header p { margin: 0.4rem 0 0; color: rgba(255, 255, 255, 0.74); font-size: 0.92rem; }
.pa-form-body { padding: clamp(1rem, 3vw, 1.6rem); min-height: 360px; background: #fff; }
#DevisProxContent { width: 100% !important; max-width: 100% !important; min-height: 330px; }

.card {
    background: #fff;
    padding: 1.6rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(0, 119, 182, 0.22); }
.card a { color: var(--primary); }

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}
.article-card, .sidebar-card, .info-box {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.article-card { padding: clamp(1.4rem, 3vw, 2.2rem); }
.sidebar-card { padding: 1.35rem; }
.sidebar-stack { display: grid; gap: 1rem; position: sticky; top: 96px; }
.cta-box { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border: none; }
.cta-box h3, .cta-box a { color: #fff; }
.cta-box p { color: rgba(255,255,255,0.86); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 800; }
.breadcrumb a:hover { text-decoration: underline; }

.tag-container { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 42px;
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 119, 182, 0.18);
    background: #fff;
    color: var(--primary) !important;
    font-weight: 850;
    font-size: 0.92rem;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}
.tag svg { width: 16px; height: 16px; }
.tag:hover { transform: translateY(-2px); background: var(--primary); border-color: var(--primary); color: #fff !important; box-shadow: var(--shadow-md); }
.link-styled { color: var(--primary); text-decoration: none; font-weight: 800; }
.link-styled:hover { text-decoration: underline; }

.map-box, #map { height: 360px; min-height: 320px; border-radius: var(--radius); border: 1px solid var(--border-color); overflow: hidden; background: var(--primary-soft); box-shadow: var(--shadow-sm); }
.step-list { list-style: none; display: grid; gap: 1rem; margin: 1.5rem 0; }
.step-list li { display: grid; grid-template-columns: 34px 1fr; gap: 0.85rem; align-items: start; }
.step-list span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 900; }
.notice-box { background: var(--primary-soft); padding: 1.5rem; border-radius: var(--radius); border-left: 5px solid var(--primary); margin: 1.6rem 0; }

.footer {
    background: var(--ink);
    color: #94a3b8;
    padding: 4rem 0 1.5rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer h4 { color: #fff; margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: #cbd5e1; text-decoration: none; }
.footer a:hover { color: #fff; }
.footer-desc { color: #94a3b8; max-width: 430px; }
.footer-links { list-style: none; display: grid; gap: 0.7rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); margin-top: 2rem; padding-top: 1.5rem; color: #94a3b8; }
.footer .tag { background: rgba(255,255,255,0.06); color: #fff !important; border-color: rgba(255,255,255,0.14); }

.cookie-banner {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 3000;
    width: min(420px, calc(100vw - 36px));
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
}
.cookie-banner.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}
.cookie-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(0, 119, 182, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}
.cookie-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 12px 24px rgba(0, 119, 182, 0.22);
}
.cookie-icon svg { width: 21px; height: 21px; }
.cookie-copy { padding-right: 1.6rem; }
.cookie-title {
    margin: 0 0 0.2rem;
    color: var(--ink);
    font-size: 0.98rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.cookie-desc {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}
.cookie-link {
    display: inline-flex;
    margin-top: 0.45rem;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 850;
    text-decoration: none;
}
.cookie-link:hover { text-decoration: underline; }
.cookie-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 0.1rem;
}
.cookie-btn {
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.cookie-btn:hover { transform: translateY(-1px); }
.cookie-btn-light {
    background: #f8fafc;
    color: var(--ink);
    border-color: var(--border-color);
}
.cookie-btn-light:hover { background: var(--primary-soft); color: var(--primary); }
.cookie-btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 119, 182, 0.2);
}
.cookie-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.cookie-close:hover { background: var(--ink); color: #fff; transform: rotate(4deg); }
.cookie-close svg { width: 16px; height: 16px; }

.reveal-on-scroll { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-on-scroll.revealed { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
    .nav-shell { grid-template-columns: auto minmax(240px, 1fr) auto; }
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: grid; place-items: center; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-form-side { max-width: 560px; width: 100%; }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .container { width: min(100% - 24px, 1180px); }
    .nav-shell { min-height: auto; padding: 0.75rem 0; grid-template-columns: 1fr auto; gap: 0.75rem; }
    .brand { font-size: 1.1rem; }
    .brand-icon { width: 38px; height: 38px; border-radius: 12px; }
    .header-search { grid-column: 1 / -1; grid-row: 2; grid-template-columns: 1fr auto; }
    .header-search-btn { padding-inline: 0.9rem; }
    .hero, .hero-compact, .hero-small { padding: 46px 0 56px; }
    .hero::after, .hero-compact::after, .hero-small::after { display: none; }
    .hero-cta-group { flex-direction: column; }
    .hero-cta-group a { width: 100%; }
    .hero-features { display: grid; grid-template-columns: 1fr; }
    .content-grid { grid-template-columns: 1fr; }
    .sidebar-stack { position: static; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
    }
    .cookie-card {
        grid-template-columns: 36px 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
        border-radius: 18px;
    }
    .cookie-icon {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }
    .cookie-copy { padding-right: 1.8rem; }
    .cookie-desc { font-size: 0.8rem; }
    .cookie-actions { justify-content: stretch; }
    .cookie-btn { flex: 1; }
}

@media (max-width: 430px) {
    h1 { font-size: 2.05rem; }
    .header-search { grid-template-columns: 1fr; }
    .header-search-btn { width: 100%; }
    .tag { width: 100%; justify-content: center; text-align: center; }
    .pa-form-body { padding: 0.8rem; }
    .cookie-card { grid-template-columns: 1fr; }
    .cookie-icon { display: none; }
    .cookie-copy { padding-right: 1.8rem; }
    .cookie-actions { display: grid; grid-template-columns: 1fr 1fr; }
}