@import url("./base/reset.css");
@import url("./base/variables.css");
@import url("./base/typography.css");

.site-header {
    display: none;
}

@media (max-width:1024px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 56px;
        background: #fff;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        gap: 10px;
        z-index: 500;
        padding: 0 12px;
    }

    .site-header .mobile-logo img {
        height: 28px;
        display: block;
    }

    .hamburger {
        margin-left: auto;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

nav.sidebar {
    width: 330px;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    background: white;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 50;
}

.backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

.sidebar .logo {
    margin-bottom: 40px;
    display: block;
}

.sidebar .menu-item {
    position: relative;
    display: inline-block !important;
    width: max-content !important;
    text-decoration: none !important;
    margin-bottom: 30px;
    color: #A2ABC0;
    font-size: var(--font-md);
    padding-right: 1.2em;
    transition: color .25s ease, font-weight .25s ease;
}

.sidebar .menu-item::before {
    content: "";
    position: absolute;
    left: 0;
    right: 1.2em;
    bottom: 0;
    height: 2px;
    background: #003E7D;

    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .22s ease;
}

.sidebar .menu-item:hover::before,
.sidebar .menu-item.on::before {
    transform: scaleY(1);
}

.sidebar .menu-item:hover,
.sidebar .menu-item.on {
    color: #003E7D;
    font-weight: 600;
}

.sidebar .menu-item.on::after,
.sidebar .menu-item:hover::after {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: .9em;
    color: #003E7D;
    pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
}

.sidebar .footer {
    margin-top: auto;
    text-align: center;
    color: #6F7686;
    font-size: var(--font-md);
}

@media (max-width:1024px) {

    nav.sidebar {
        width: 78vw;
        max-width: 340px;
        overflow-y: auto;
        padding: calc(24px + env(safe-area-inset-top, 0px)) 20px 24px;
        transform: translateX(-100%);
        will-change: transform;
    }

    nav.sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar .logo img {
        height: 36px;
        width: auto;
    }

    .sidebar .menu-item {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .sidebar .footer {
        font-size: 14px;
        padding-top: 16px;
    }

    .sidebar .sidebar-close {
        width: 40px;
        height: 40px;
    }

    .content,
    .main-footer {
        margin-left: 0 !important;
    }
}

@media (max-width:768px) {
    nav.sidebar {
        width: 84vw;
        max-width: 300px;
        padding: calc(20px + env(safe-area-inset-top, 0px)) 16px 20px;
    }

    .sidebar .logo img {
        height: 32px;
    }

    .sidebar .menu-item {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .sidebar .footer {
        font-size: 13px;
    }
}

@media (max-width:480px) {
    nav.sidebar {
        width: 92vw;
        max-width: 280px;
    }

    .sidebar .logo img {
        height: 28px;
    }

    .sidebar .menu-item {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .sidebar .footer {
        font-size: 12px;
    }

    .site-header {
        height: 54px;
    }

    .site-header .mobile-logo img {
        width: 140px;
        height: auto;
    }
}

.main-footer {
    padding: 44px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #003E7D;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 330px;
}

.main-footer p {
    margin: 4px 0;
    font-size: 15px;
}

.main-footer .contacts {
    display: flex;
    gap: 52px;
    margin-top: 25px;
    font-size: var(--fong-md);
    font-weight: 600;
}

.main-footer .contacts strong {
    margin-right: 5px;
    color: rgba(255, 255, 255, 0.6);
}

.main-footer .contacts span {
    color: #99DDFF;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 40px;
    color: rgba(255, 255, 255, 0.2);
    font-size: 13px;
}

.footer-right img {
    width: 230px;
    height: auto;
}

@media (max-width:1440px) {
    .main-footer {
        padding: 40px 48px;
    }

    .footer-right img {
        width: 200px;
    }
}

@media (max-width:1280px) {
    .main-footer {
        padding: 36px 40px;
    }

    .main-footer .contacts {
        gap: 36px;
    }

    .footer-right img {
        width: 190px;
    }
}

@media (max-width:1024px) {
    .main-footer {
        margin-left: 0;
        padding: 28px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .footer-right {
        align-items: flex-start;
        text-align: left;
        gap: 12px;
        font-size: 12px;
    }

    .footer-right img {
        width: 180px;
    }

    .main-footer p {
        font-size: 14px;
    }

    .main-footer .contacts {
        gap: 24px;
        flex-wrap: wrap;
        font-weight: 600;
    }
}

@media (max-width:768px) {
    .main-footer {
        padding: 24px 16px;
    }

    .main-footer p {
        font-size: 13.5px;
    }

    .main-footer .contacts {
        column-gap: 16px;
        row-gap: 8px;
    }

    .footer-right img {
        width: 160px;
    }
}

@media (max-width:480px) {
    .main-footer {
        padding: 20px 16px;
    }

    .main-footer p {
        font-size: 13px;
    }

    .main-footer .contacts {
        margin-top: 15px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .footer-right img {
        width: 140px;
    }
}

.content {
    margin-left: 330px;
    position: relative;
    background: white;
}

@media (max-width:1024px) {
    .content {
        margin-left: 0;
        padding-top: 56px;
    }
}

.sub-header {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 378px;
    display: flex;
    justify-content: space-between;
    padding: 50px 60px 30px 120px;
    background-color: #1877D8;
}

.product-visual {
    position: absolute;
    top: 0;
    right: -10px;
    width: 704px;
    height: 378px;
    opacity: 0.8;
    z-index: 1;
}

.sub-header .title {
    margin-top: auto;
    font-size: 120px;
    font-weight: 700;
    color: white;
    opacity: 0;
    transform: translateX(-50px);
    animation: slideIn 0.8s ease-out forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sub-header .header-quote {
    text-align: right;
}

.sub-header .header-quote .quote {
    color: rgba(255, 255, 255, 0.2);
    font-size: var(--font-2xl);
    font-weight: 400;
    line-height: 36px;
}

.sub-header .header-quote .corp {
    color: rgba(255, 255, 255, 0.4);
    font-size: var(--font-2xl);
    font-weight: 800;
    line-height: 36px;
}

@media (max-width:1280px) {
    .sub-header {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        gap: 8px;
        height: auto;
        min-height: 300px;
        padding: 36px 40px 24px 72px;
    }

    .product-visual {
        right: -24px;
        top: 0;
        width: 560px;
        height: auto;
        opacity: .78;
        z-index: 0;
        pointer-events: none;
    }

    .sub-header .title {
        margin: 0;
        font-size: 84px;
        z-index: 2;
    }

    .sub-header .header-quote {
        align-self: flex-end;
        text-align: right;
        z-index: 2;
    }

    .sub-header .header-quote .quote {
        font-size: 20px;
        line-height: 30px;
    }

    .sub-header .header-quote .corp {
        font-size: 22px;
        line-height: 30px;
    }
}

@media (max-width:1024px) {
    .sub-header {
        padding: calc(56px + 20px) 24px 18px 24px;
        min-height: 260px;
        gap: 6px;
    }

    .product-visual {
        right: -12vw;
        width: 70vw;
        opacity: .72;
    }

    .sub-header .title {
        font-size: 64px;
    }

    .sub-header .header-quote {
        align-self: flex-start;
        text-align: left;
    }

    .sub-header .header-quote .quote {
        font-size: 18px;
        line-height: 28px;
    }

    .sub-header .header-quote .corp {
        font-size: 20px;
        line-height: 28px;
    }
}

@media (max-width:768px) {
    .sub-header {
        min-height: 220px;
        padding: calc(56px + 16px) 16px 14px 16px;
        align-items: center;
        gap: 6px;
    }

    .product-visual {
        right: -16vw;
        top: -4px;
        width: 82vw;
        opacity: .7;
    }

    .sub-header .title {
        font-size: 48px;
        text-align: center;
    }

    .sub-header .header-quote {
        align-self: center;
        text-align: center;
    }

    .sub-header .header-quote .quote {
        font-size: 16px;
        line-height: 24px;
    }

    .sub-header .header-quote .corp {
        font-size: 18px;
        line-height: 24px;
    }
}

@media (max-width:480px) {
    .sub-header {
        min-height: 200px;
        padding: calc(54px + 14px) 14px 12px 14px;
    }

    .product-visual {
        right: -26vw;
        top: -8px;
        width: 92vw;
        opacity: .65;
    }

    .sub-header .title {
        font-size: 36px;
    }

    .sub-header .header-quote .quote {
        font-size: 14px;
        line-height: 20px;
    }

    .sub-header .header-quote .corp {
        font-size: 16px;
        line-height: 20px;
    }
}