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

.site-shell.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.site-shell > .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-shell.header .nav {
    min-height: 80px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0;
}

.site-shell.header .logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.site-shell.header .logo-img {
    display: block;
    width: auto;
    height: 50px;
    max-width: 240px;
    object-fit: contain;
}

.site-shell.header .nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-shell.header .nav-menu li {
    margin: 0;
    padding: 0;
}

.site-shell.header .nav-item--has-submenu {
    position: relative;
}

.site-shell.header .nav-menu a {
    color: #1d2129;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-shell.header .nav-menu a:hover,
.site-shell.header .nav-menu a.active {
    color: #0066cc;
}

.site-shell.header .nav-primary-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.site-shell.header .nav-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.site-shell.header .nav-item--has-submenu.is-open > .nav-primary-link .nav-chevron {
    transform: translateY(2px) rotate(225deg);
}

.site-shell.header .nav-submenu {
    position: absolute;
    top: calc(100% + 28px);
    left: 50%;
    width: max-content;
    min-width: 250px;
    max-width: 320px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e4e9f0;
    border-top: 3px solid #0066cc;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(20, 35, 60, 0.16);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.site-shell.header .nav-item--has-submenu.is-open > .nav-submenu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.site-shell.header .nav-submenu li {
    margin: 0;
}

.site-shell.header .nav-submenu a {
    display: block;
    padding: 10px 12px;
    border-radius: 4px;
    color: #344054;
    font-size: 14px;
    line-height: 1.45;
    white-space: normal;
}

.site-shell.header .nav-submenu a:hover,
.site-shell.header .nav-submenu a:focus-visible {
    background: #f2f7ff;
    color: #0066cc;
    outline: none;
}

.site-shell.header .nav-menu .tel {
    color: #0066cc;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
}

.site-shell.header .menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1d2129;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.site-shell.footer {
    padding: 50px 0 20px;
    background: #222;
    color: #fff;
}

.site-shell.footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.site-shell.footer .footer-col {
    flex: 1 1 0;
    min-width: 220px;
}

.site-shell.footer .footer-col h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 18px;
    line-height: 1.4;
}

.site-shell.footer .footer-col p {
    margin: 0 0 8px;
    color: #999;
    font-size: 16px;
    line-height: 1.7;
}

.site-shell.footer a {
    color: #999 !important;
    text-decoration: none;
}

.site-shell.footer a:hover {
    color: #999 !important;
    text-decoration: underline;
}

.site-shell.footer .copyright {
    padding-top: 20px;
    color: #888;
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

body > .site-shell.header + main {
    margin-top: 80px;
}

@media (max-width: 1180px) {
    .site-shell.header .nav-menu {
        gap: 18px;
    }

    .site-shell.header .nav-menu a,
    .site-shell.header .nav-menu .tel {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .site-shell.header .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        overflow-y: auto;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 38px 20px 28px;
        background: #fff;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
        transition: left 0.3s ease;
    }

    .site-shell.header .nav-menu.active {
        left: 0;
    }

    .site-shell.header .nav-menu li {
        margin: 0 0 20px;
    }

    .site-shell.header .nav-item--has-submenu {
        width: min(100%, 340px);
    }

    .site-shell.header .nav-primary-link {
        justify-content: center;
        width: 100%;
    }

    .site-shell.header .nav-submenu {
        position: static;
        width: 100%;
        min-width: 0;
        max-width: none;
        max-height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0 8px;
        border: 0;
        border-radius: 6px;
        background: #f5f8fc;
        box-shadow: none;
        opacity: 1;
        visibility: hidden;
        transform: none;
        transition: max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease, visibility 0.25s ease;
    }

    .site-shell.header .nav-item--has-submenu.is-open > .nav-submenu {
        max-height: 520px;
        margin-top: 12px;
        padding: 8px;
        visibility: visible;
        transform: none;
    }

    .site-shell.header .nav-submenu li {
        margin: 0;
    }

    .site-shell.header .nav-submenu a {
        padding: 11px 12px;
        text-align: left;
    }

    .site-shell.header .nav-menu a,
    .site-shell.header .nav-menu .tel {
        font-size: 16px;
    }

    .site-shell.header .menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .site-shell > .container {
        width: calc(100% - 32px);
    }

    .site-shell.footer {
        padding-top: 40px;
    }

    .site-shell.footer .footer-content {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .site-shell.footer .footer-col {
        min-width: 0;
    }

    .site-shell.footer .footer-col p {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .site-shell.header .logo-img {
        height: 42px;
        max-width: 210px;
    }
}
