.site-header,
.site-footer {
    --layout-navy: #1d2f59;
    --layout-navy-soft: #304b86;
    --layout-navy-deep: #162748;
    --layout-orange: #2563eb;
    --layout-orange-deep: #1d4ed8;
    --layout-orange-soft: #93c5fd;
    --layout-gold: #bfdbfe;
    --layout-cream: #ffffff;
    --layout-cream-soft: #ffffff;
    --layout-card: rgba(255, 255, 255, 0.98);
    --layout-text: #22314d;
    --layout-white: #ffffff;
    --layout-shadow: 0 18px 40px rgba(29, 47, 89, 0.14);
    --layout-radius-pill: 999px;
}

.site-header,
.site-footer,
.site-header *,
.site-footer * {
    box-sizing: border-box;
}

.site-header,
.site-footer {
    font-family: 'Poppins', 'Lato', sans-serif;
}

.site-header a,
.site-footer a {
    color: inherit;
    text-decoration: none;
}

.shared-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.site-header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
 background: linear-gradient(180deg, var(--layout-cream) 0%, var(--layout-cream-soft) 100%);
    border-bottom: 1px solid rgba(29, 47, 89, 0.08);
    box-shadow: 0 10px 28px rgba(29, 47, 89, 0.08);

}

.main-nav {
    background: transparent;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: 20px;
}

.logo-text {
    display: inline-block;
    max-width: 220px;
    /*color: var(--layout-orange-soft);*/
     color:#1d4ed8;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.15;
}

.site-logo .logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-contact-mobile {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    white-space: nowrap;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--layout-orange-soft);
    background: rgba(255, 255, 255, 0.08);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.nav-phone {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    white-space: nowrap;
}

.nav-phone span {
    /*color: var(--layout-orange-soft);*/
    color:#1d4ed8;
    font-weight: 800;
}

.btn-nav-contact,
.newsletter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--layout-radius-pill);
    background: linear-gradient(90deg, var(--layout-orange) 0%, var(--layout-orange-soft) 100%);
    color: var(--layout-white);
    font-size: 14px;
    font-weight: 700;
    border: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    transition: all 0.3s ease;
}

.btn-nav-contact:hover,
.newsletter-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.nav-link .chevron {
    transition: transform 0.3s ease;
    margin-top: 1px;
}

.nav-item.has-dropdown:hover .nav-link .chevron {
    transform: rotate(180deg);
}

.dropdown-menu,
.sub-menu {
    list-style: none;
    margin: 0;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 360px;
    max-width: 420px;
    padding: 8px 0;
    background: var(--layout-card);
    border-radius: 12px;
    border: 1px solid rgba(29, 47, 89, 0.08);
    box-shadow: var(--layout-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    pointer-events: none;
    z-index: 100;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: var(--layout-text);
    line-height: 1.4;
}

.dropdown-menu li a:hover,
.sub-menu li a:hover {
    background: #eff6ff;
    color: var(--layout-orange);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.has-submenu {
    position: relative;
}

.has-submenu > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.arrow-right {
    flex-shrink: 0;
    margin-left: 8px;
}

.sub-menu {
    position: absolute;
    top: -8px;
    left: 100%;
    min-width: 240px;
    padding: 8px 0;
    background: var(--layout-card);
    border-radius: 12px;
    border: 1px solid rgba(29, 47, 89, 0.08);
    box-shadow: var(--layout-shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateX(6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    pointer-events: none;
    z-index: 200;
}

.sub-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--layout-text);
    white-space: nowrap;
}

.dropdown-menu li.has-submenu:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    pointer-events: auto;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    margin-left: auto;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--layout-orange-soft);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger-active span:nth-child(2) { opacity: 0; }
.nav-hamburger-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 998;
}

.nav-overlay-active {
    display: block;
}

.site-footer {
    background: linear-gradient(135deg, var(--layout-navy) 0%, var(--layout-navy-soft) 48%, var(--layout-navy-deep) 100%);
    color: var(--layout-white);
}

.footer-top {
    padding: 72px 0 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.8fr) repeat(3, minmax(170px, 1fr));
    gap: 32px;
    align-items: start;
}

.footer-logo {
    margin-bottom: 18px;
    display: inline-block;
}

.footer-logo-text {
    display: inline-block;
    color: var(--layout-orange-soft);
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.12;
}

.footer-brand-logo {
    display: block;
    width: clamp(170px, 18vw, 260px);
    height: auto;
    max-width: 100%;
}

.footer-brand-desc,
.footer-contact-item,
.footer-links li a,
.footer-newsletter-desc,
.footer-copyright,
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.68);
}

.footer-brand-desc,
.footer-newsletter-desc {
    font-size: 13px;
    line-height: 1.75;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.footer-phone {
    color: var(--layout-orange-soft);
    font-weight: 500;
}

.footer-phone:hover {
    color: var(--layout-gold);
}

.footer-feature-link {
    display: inline-block;
    margin-top: 16px;
}

.footer-feature-img {
    display: block;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--layout-orange-soft);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--layout-orange);
    color: var(--layout-white);
    transform: translateY(-2px);
}

.footer-certs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--layout-radius-pill);
    background: rgba(147, 197, 253, 0.12);
    border: 1px solid rgba(147, 197, 253, 0.32);
    color: var(--layout-orange-soft);
    font-size: 11px;
    font-weight: 600;
}

.footer-col-title {
    margin-bottom: 18px;
    color: var(--layout-orange-soft);
    font-size: 14px;
    font-weight: 600;
}

.footer-col-spacer {
    margin-top: 24px;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links li a {
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--layout-orange);
    padding-left: 4px;
}

.footer-bottom {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.2);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-copyright,
.footer-bottom-links a {
    font-size: 12px;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-bottom-links a:hover {
    color: var(--layout-orange);
}

@media (max-width: 1100px) {
    .shared-container {
        padding: 0 20px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 1024px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-right {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 82%;
        max-width: 340px;
        height: 100vh;
        padding: 72px 0 40px;
        flex-direction: column;
        align-items: stretch;
        background: var(--layout-card);
        overflow-y: auto;
        transition: left 0.32s ease;
        box-shadow: 4px 0 30px rgba(0, 0, 0, 0.18);
        z-index: 999;
    }

    .nav-menu.nav-open { left: 0; }
    .nav-item { border-bottom: 1px solid rgba(29, 47, 89, 0.06); }
    .nav-contact-mobile { display: block; }

    .nav-link {
        justify-content: space-between;
        padding: 14px 18px;
        color: var(--layout-text);
        border-radius: 0;
    }

    .nav-link:hover {
        color: var(--layout-orange-deep);
        background: rgba(37, 99, 235, 0.1);
    }

    .has-dropdown .dropdown-menu,
    .dropdown-menu li.has-submenu > .sub-menu {
        position: static;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .has-dropdown .dropdown-menu { background: #f8fafc; }
    .dropdown-menu li.has-submenu > .sub-menu { background: #eef2f6; }
    .has-dropdown.dropdown-open > .dropdown-menu,
    .dropdown-menu li.has-submenu.submenu-open > .sub-menu { display: block; }

    .dropdown-menu li a {
        padding: 11px 32px;
        font-size: 14px;
    }

    .sub-menu li a {
        padding: 10px 48px;
        font-size: 13px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-newsletter,
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .shared-container { padding: 0 16px; }

    .footer-top { padding: 52px 0 36px; }

    .footer-brand-logo {
        width: clamp(150px, 46vw, 220px);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}
