:root {
    --navy-dark: #070e20;
    --navy-main: #0b1736;
    --navy-card: #11224d;
    --blue-accent: #2563eb;
    --blue-light: #38bdf8;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --bg-soft-blue: #eef4fa;
    --border-color: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #f8fafc;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease-in-out;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

/* TOP BAR */
.top-bar {
    background-color: #040814;
    color: #94a3b8;
    font-size: 0.78rem;
    padding: 0.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
}

.top-bar-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span {
    color: #cbd5e1;
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    gap: 1.5rem;
}

.top-bar-right a:hover {
    color: #ffffff;
}

/* MAIN HEADER */
header, .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--navy-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease-in-out;
}

header.header-hidden {
    transform: translateY(-100%);
}

.nav-container, .header__container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

/* LOGO STYLES */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    max-height: 40px;
}

.logo img {
    height: 40px;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: #ffffff;
    color: var(--navy-dark);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.2rem;
    position: relative;
    flex-shrink: 0;
}

.logo-icon::after {
    content: '';
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: var(--blue-accent);
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .sub {
    font-size: 0.65rem;
    color: #94a3b8;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links, .nav__list {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    align-items: center;
}

.nav-links a, .nav__list a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #cbd5e1;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active,
.nav__list a:hover,
.nav__list a.active {
    color: #ffffff;
}

.nav-links a.active, .nav__list a.active {
    position: relative;
}

.nav-links a.active::after, .nav__list a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--blue-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.lang-select {
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.btn-header, .btn--consultation {
    background: #ffffff;
    color: var(--navy-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.65rem 1.2rem;
    border: none;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.btn-header:hover, .btn--consultation:hover {
    background: #e2e8f0;
}

/* BURGER MENU */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition);
}

.burger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* SECTIONS COMMON */
.section {
    padding: 5rem 2rem;
    max-width: 1320px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.section-title-group h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.section-title-group p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* PAGE HERO */
.page-hero-wrapper {
    background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-main) 100%);
    color: #ffffff;
    padding: 4rem 2rem 4.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-hero-container {
    max-width: 1320px;
    margin: 0 auto;
}

.page-breadcrumbs {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.page-hero-wrapper h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.page-hero-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    max-width: 720px;
    line-height: 1.6;
}

/* CTA BANNER PRE-FOOTER */
.cta-banner {
    background: var(--navy-dark);
    color: #ffffff;
    padding: 4.5rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-container {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cta-text-group .tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #38bdf8;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-text-group h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.cta-text-group p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.btn-cta-white {
    background: #ffffff;
    color: var(--navy-dark);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: var(--transition);
}

.btn-cta-white:hover {
    background: #e2e8f0;
}

/* FOOTER */
footer, .footer {
    background: #040814;
    color: #94a3b8;
    padding: 4.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-container, .footer__container {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand .logo, .footer__logo {
    margin-bottom: 1.2rem;
}

.footer-brand p, .footer__info p {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.6;
}

.footer-address {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-col a {
    color: #94a3b8;
    transition: var(--transition);
    font-size: 0.82rem;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1320px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #475569;
}

/* MODAL STYLES */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 20, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.modal__content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.modal__close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal__close:hover {
    color: var(--navy-dark);
}

.modal__form .form-group {
    margin-bottom: 1.2rem;
}

.modal__form label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.modal__form input,
.modal__form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    background: var(--bg-page);
    transition: var(--transition);
}

.modal__form input:focus,
.modal__form textarea:focus {
    outline: none;
    border-color: var(--blue-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn--submit {
    width: 100%;
    padding: 0.85rem;
    background-color: var(--blue-accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn--submit:hover {
    background-color: #1d4ed8;
}

/* MEDIA QUERIES */
@media (max-width: 992px) {
    .burger {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--navy-dark);
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-links, .nav__list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 1.2rem;
    }

    .nav-links a, .nav__list a {
        font-size: 1rem;
        display: block;
        width: 100%;
    }

    .btn--consultation {
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .footer-container { grid-template-columns: 1fr; }
    .cta-container { flex-direction: column; align-items: flex-start; }
    .footer-bottom { flex-direction: column; gap: 1rem; align-items: flex-start; }
}