.site-shell-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(17, 17, 17, 0.07);
}

.site-shell-header .container {
    width: min(calc(100% - 24px), 1320px);
}

.site-shell-header__bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 88px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.site-brand img {
    width: 152px;
    height: auto;
    display: block;
}

.site-brand__copy {
    max-width: 220px;
    color: var(--otz-text-soft);
    font-size: 12px;
    line-height: 1.35;
}

.site-shell-header__toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--otz-line);
    border-radius: 14px;
    background: #fff;
    color: var(--otz-brand);
    cursor: pointer;
}

.site-shell-nav {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.site-shell-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: nowrap;
}

.site-shell-nav__item {
    position: relative;
}

.site-shell-nav__item-head {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

.site-shell-nav__link,
.site-shell-nav__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #282828;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.site-shell-nav__item-head > .site-shell-nav__link {
    padding-right: 6px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.site-shell-nav__button--icon {
    width: auto;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px 0 8px;
    margin-left: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.site-shell-nav__button::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    opacity: 0.62;
    transition: transform 0.2s ease;
}

.site-shell-nav__button--icon::after {
    margin-left: 0;
}

.site-shell-nav__item:hover > .site-shell-nav__link,
.site-shell-nav__item:hover > .site-shell-nav__button,
.site-shell-nav__item:focus-within > .site-shell-nav__link,
.site-shell-nav__item:focus-within > .site-shell-nav__button,
.site-shell-nav__link:hover,
.site-shell-nav__button:hover,
.site-shell-nav__item:hover > .site-shell-nav__item-head > .site-shell-nav__link,
.site-shell-nav__item:focus-within > .site-shell-nav__item-head > .site-shell-nav__link,
.site-shell-nav__item.is-open > .site-shell-nav__item-head > .site-shell-nav__link,
.site-shell-nav__item:hover > .site-shell-nav__item-head > .site-shell-nav__button--icon,
.site-shell-nav__item:focus-within > .site-shell-nav__item-head > .site-shell-nav__button--icon,
.site-shell-nav__item.is-open > .site-shell-nav__item-head > .site-shell-nav__button--icon {
    background: var(--otz-accent-soft);
    color: var(--otz-brand);
    box-shadow: inset -1px 0 0 rgba(245, 73, 3, 0.1), inset 0 1px 0 rgba(245, 73, 3, 0.1), inset 0 -1px 0 rgba(245, 73, 3, 0.1), inset 0 0 0 0 rgba(245, 73, 3, 0);
}

.site-shell-nav__item:hover > .site-shell-nav__item-head > .site-shell-nav__link,
.site-shell-nav__item:focus-within > .site-shell-nav__item-head > .site-shell-nav__link,
.site-shell-nav__item.is-open > .site-shell-nav__item-head > .site-shell-nav__link {
    box-shadow: inset 1px 0 0 rgba(245, 73, 3, 0.1), inset 0 1px 0 rgba(245, 73, 3, 0.1), inset 0 -1px 0 rgba(245, 73, 3, 0.1), inset 0 0 0 0 rgba(245, 73, 3, 0);
}

.site-shell-nav__panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    display: grid;
    gap: 18px;
    min-width: 280px;
    padding: 24px;
    border: 1px solid var(--otz-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 56px rgba(11, 2, 106, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.site-shell-nav__panel--wide {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    min-width: 840px;
}

.site-shell-nav__panel--compact {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
    min-width: 420px;
}

.site-shell-nav__panel--about {
    grid-template-columns: 1fr;
    min-width: 240px;
    width: max-content;
    max-width: min(280px, calc(100vw - 32px));
}


.site-shell-nav__item:hover > .site-shell-nav__panel,
.site-shell-nav__item:focus-within > .site-shell-nav__panel,
.site-shell-nav__item.is-open > .site-shell-nav__panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.site-shell-nav__item.is-open > .site-shell-nav__button::after {
    transform: rotate(-135deg) translateY(1px);
}

.site-shell-nav__group {
    display: grid;
    gap: 10px;
}

.site-shell-nav__title {
    color: var(--otz-accent);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-shell-nav__sub-link {
    color: var(--otz-brand);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-shell-nav__sub-link:hover,
.site-shell-nav__sub-link:focus-visible {
    color: var(--otz-accent-strong);
}

.site-shell-header__contact {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.site-shell-header__contact-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    border: 1px solid rgba(11, 2, 106, 0.1);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.96));
    box-shadow: 0 18px 36px rgba(11, 2, 106, 0.08);
}

.site-shell-header__contact-meta {
    display: grid;
    gap: 4px;
    justify-items: start;
}

.site-shell-header__email,
.site-shell-header__phone {
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    color: var(--otz-text);
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.site-shell-header__phone {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
}

.site-shell-header__email {
    font-size: 13px;
    font-weight: 600;
}

.site-shell-header__messengers {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 12px;
    border-left: 1px solid rgba(11, 2, 106, 0.1);
}

.site-shell-header__messenger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(11, 2, 106, 0.1);
    border-radius: 14px;
    background: #fff;
    color: var(--otz-brand);
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-shell-header__messenger:hover {
    transform: translateY(-1px);
    background: var(--otz-accent-soft);
    border-color: rgba(245, 73, 3, 0.2);
    color: var(--otz-accent-strong);
    box-shadow: 0 10px 18px rgba(245, 73, 3, 0.12);
}

.site-shell-header__phone:hover,
.site-shell-header__phone:focus-visible {
    color: var(--otz-accent-strong);
}

.site-shell-header__email:hover,
.site-shell-header__email:focus-visible {
    color: var(--otz-accent-strong);
}

.site-shell-header__toggle:hover {
    background: var(--otz-accent-soft);
    border-color: rgba(245, 73, 3, 0.18);
}

.site-shell-header__mobile-contact {
    display: none;
}

.site-shell-header__mobile-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(11, 2, 106, 0.1);
    background: #fff;
    color: var(--otz-brand);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-shell-header__mobile-link--phone {
    color: var(--otz-accent-strong);
}

.site-shell-header__mobile-link:hover,
.site-shell-header__mobile-link:focus-visible {
    background: var(--otz-accent-soft);
    border-color: rgba(245, 73, 3, 0.2);
    box-shadow: 0 8px 18px rgba(245, 73, 3, 0.1);
}

.site-shell-header__toggle,
.site-shell-nav__link,
.site-shell-nav__button,
.site-shell-nav__sub-link,
.site-shell-header__phone,
.site-shell-header__email,
.site-shell-header__messenger,
.site-shell-header__mobile-link,
.site-mobile-call {
    outline: none;
}

.site-shell-header__toggle:focus-visible,
.site-shell-nav__link:focus-visible,
.site-shell-nav__button:focus-visible,
.site-shell-nav__sub-link:focus-visible,
.site-shell-header__phone:focus-visible,
.site-shell-header__email:focus-visible,
.site-shell-header__messenger:focus-visible,
.site-shell-header__mobile-link:focus-visible,
.site-mobile-call:focus-visible {
    box-shadow: 0 0 0 3px rgba(245, 73, 3, 0.2);
}

.site-shell-footer {
    background: #fff;
    border-top: 1px solid var(--otz-line);
}

.site-shell-footer__main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
    gap: 28px;
    padding: 56px 0 34px;
}

.site-shell-footer__brand {
    display: grid;
    gap: 18px;
}

.site-shell-footer__brand img {
    width: 168px;
    height: auto;
}

.site-shell-footer__descr {
    max-width: 290px;
    color: var(--otz-brand);
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
}

.site-shell-footer__text {
    max-width: 320px;
    color: var(--otz-text-soft);
    font-size: 15px;
}

.site-shell-footer__column {
    display: grid;
    align-content: start;
    gap: 14px;
}

.site-shell-footer__title {
    color: var(--otz-brand);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-shell-footer__links {
    display: grid;
    gap: 10px;
}

.site-shell-footer__links a,
.site-shell-footer__contact a {
    color: #272727;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.site-shell-footer__contact {
    display: grid;
    gap: 12px;
    color: var(--otz-text-soft);
    font-size: 15px;
}

.site-shell-footer__messengers {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
}

.site-shell-footer__legal {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 30px;
    border-top: 1px solid var(--otz-line);
    color: rgba(17, 17, 17, 0.72);
    font-size: 14px;
}

.site-shell-footer__company {
    display: grid;
    gap: 4px;
}

.site-shell-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 18px;
}

.site-shell-footer__legal-links a {
    color: rgba(17, 17, 17, 0.72);
}

.site-mobile-call {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--otz-accent-strong);
    color: #fff;
    box-shadow: 0 22px 44px rgba(245, 73, 3, 0.28);
    font-weight: 800;
}

.site-mobile-call svg {
    flex: 0 0 auto;
}

@media (max-width: 1199px) {
    .site-shell-header .container {
        width: min(calc(100% - 20px), 1320px);
    }

    .site-shell-header__bar {
        grid-template-columns: auto minmax(0, 1fr) auto;
        justify-content: initial;
        gap: 10px;
    }

    .site-shell-header__toggle {
        display: inline-flex;
    }

    .site-shell-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        padding: 20px;
        border: 1px solid var(--otz-line);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 28px 56px rgba(11, 2, 106, 0.14);
    }

    .site-shell-nav.is-open {
        display: block;
    }

    .site-shell-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .site-shell-nav__link,
    .site-shell-nav__button {
        justify-content: space-between;
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 16px;
        background: #f7f7f7;
    }

    .site-shell-nav__panel,
    .site-shell-nav__panel--wide,
    .site-shell-nav__panel--compact {
        position: static;
        min-width: 0;
        grid-template-columns: 1fr;
        margin-top: 8px;
        padding: 18px;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: #fff;
    }

    .site-shell-nav__panel--about {
        width: 100%;
        max-width: none;
    }
    .site-shell-nav__item.is-open > .site-shell-nav__panel {
        display: grid;
    }

    .site-shell-nav__item:hover > .site-shell-nav__panel,
    .site-shell-nav__item:focus-within > .site-shell-nav__panel {
        transform: none;
    }

    .site-shell-header__contact {
        display: none;
    }

    .site-shell-header__mobile-contact {
        display: grid;
        justify-self: end;
        gap: 4px;
        min-width: 0;
        text-align: right;
    }

    .site-shell-header__mobile-link {
        justify-content: flex-end;
        min-height: auto;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .site-shell-header__mobile-link:hover,
    .site-shell-header__mobile-link:focus-visible {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }

    .site-shell-footer__main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1360px) {
    .site-brand__copy {
        display: none;
    }

    .site-brand img {
        width: 144px;
    }

    .site-shell-nav__link,
    .site-shell-nav__button {
        padding: 0 10px;
        font-size: 13px;
    }

    .site-shell-header__contact-card {
        gap: 12px;
        padding: 8px 8px 8px 14px;
    }

    .site-shell-header__phone {
        font-size: 12px;
    }

}

@media (max-width: 767px) {
    .site-brand img {
        width: 136px;
    }

    .site-brand__copy {
        display: none;
    }

    .site-shell-footer__main {
        grid-template-columns: 1fr;
        padding-top: 42px;
    }

    .site-shell-footer__legal {
        flex-direction: column;
    }

    .site-shell-footer__legal-links {
        justify-content: flex-start;
    }

    .site-shell-header__mobile-contact {
        gap: 2px;
    }

    .site-shell-header__mobile-link {
        font-size: 12px;
    }

    .site-mobile-call {
        display: inline-flex;
    }
}

.site-shell-header__contact-card .site-shell-header__messengers .site-shell-header__messenger:last-child,
.site-shell-footer__messengers .site-shell-header__messenger:last-child {
    background-image: url('https://maxicons.ru/icons/Max_logo_black.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
}

.site-shell-header__contact-card .site-shell-header__messengers .site-shell-header__messenger:last-child svg,
.site-shell-footer__messengers .site-shell-header__messenger:last-child svg {
    display: none;
}


@media (max-width: 1199px) {
    .site-shell-nav__item-head {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
        gap: 10px;
    }

    .site-shell-nav__button--icon {
        width: 48px;
        min-width: 48px;
        min-height: 48px;
        border-radius: 16px;
        background: #f7f7f7;
    }

    .site-shell-nav__item-head > .site-shell-nav__link {
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        padding: 0 16px;
        border-radius: 16px;
        background: #f7f7f7;
    }
}
