:root {
    --home-accent: #16b8ac;
    --home-footer: #f5f5f5;
}

.header {
    height: 85px;
    border-bottom: 1px solid #f1f1f1;
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: none;
}

.header .container,
.footer .container {
    width: min(1600px, calc(100% - 160px));
    margin: 0 auto;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.header .logo {
    display: flex;
    align-items: center;
    flex: 0 0 182px;
    height: 100%;
    color: inherit;
    white-space: normal;
    line-height: 1;
}

.header .logo img {
    display: block;
    width: 182px;
    max-width: none;
    height: 44px;
    object-fit: contain;
}

.header .nav {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    gap: 62px;
    margin-left: 90px;
    margin-right: auto;
}

.header .nav a {
    position: relative;
    padding: 0;
    font-size: 14px;
    color: #222;
    line-height: 84px;
}

.header .nav a.active {
    color: var(--home-accent);
    font-weight: 400;
}

.header .nav a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    width: 38px;
    height: 3px;
    background: var(--home-accent);
    transform: translateX(-50%);
}

.header-tools {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 16px;
    color: #2d2d2d;
    font-size: 14px;
}

.header-tools .language-switch,
.header-right .language-switch {
    border-color: #dce4ea;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 10px 22px rgba(15, 23, 42, 0.06);
}

.header-tools .language-option,
.header-right .language-option {
    min-width: 62px;
    font-size: 13px;
}

.header-tools .language-option.active,
.header-right .language-option.active {
    background: linear-gradient(135deg, #13b8ac 0%, #0f8f86 100%);
}

.mobile-language {
    display: none;
    position: relative;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 34px 0 12px;
    border: 1px solid #dddddd;
    background: #ffffff;
    color: #333333;
    font-size: 13px;
    border-radius: 12px;
}

.mobile-language select {
    border: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: inherit;
    font: inherit;
    padding-right: 2px;
    outline: none;
}

.mobile-language::after {
    content: "";
    position: absolute;
    right: 13px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid #666;
    border-bottom: 1.5px solid #666;
    transform: translateY(-65%) rotate(45deg);
    pointer-events: none;
}

.menu-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: #586270;
}

.tool {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icon-search,
.icon-globe {
    position: relative;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

.icon-search::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 1px;
    width: 12px;
    height: 12px;
    border: 2px solid #333;
    border-radius: 50%;
}

.icon-search::after {
    content: "";
    position: absolute;
    right: 1px;
    bottom: 1px;
    width: 7px;
    height: 2px;
    background: #333;
    transform: rotate(45deg);
    transform-origin: right center;
}

.icon-globe {
    border: 2px solid #333;
    border-radius: 50%;
}

.icon-globe::before,
.icon-globe::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 1px;
    bottom: 1px;
    width: 2px;
    background: #333;
    transform: translateX(-50%);
}

.icon-globe::after {
    left: 1px;
    right: 1px;
    top: 50%;
    width: auto;
    height: 2px;
    transform: translateY(-50%);
}

.footer {
    background: var(--home-footer);
    border-top: 1px solid #efefef;
    margin-top: 0;
    padding: 0;
}

.footer-main {
    padding: 76px 0 48px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr repeat(5, 1fr);
    gap: 46px;
}

.footer-contact {
    padding-right: 42px;
    border-right: 1px solid #e6e6e6;
}

.footer-contact h4,
.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    color: inherit;
}

.footer-contact .strong {
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 28px;
    color: inherit;
}

.footer-contact .small {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: #666666;
    line-height: 2.15;
}

.footer-bottom {
    border-top: 1px solid #ebebeb;
    padding: 18px 0;
    color: #b2b2b2;
    font-size: 13px;
}

.footer-bottom .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;
    flex-wrap: wrap;
}

@media (max-width: 1440px) {
    .header .container,
    .footer .container {
        width: calc(100% - 80px);
    }
}

@media (max-width: 1200px) {
    .header .container,
    .footer .container {
        width: calc(100% - 64px);
    }

    .header .nav {
        gap: 34px;
        margin-left: 42px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 36px;
    }

    .footer-contact {
        grid-column: 1 / -1;
        padding-right: 0;
        padding-bottom: 24px;
        border-right: 0;
        border-bottom: 1px solid #e6e6e6;
    }
}

@media (max-width: 860px) {
    .header .container,
    .footer .container {
        width: calc(100% - 32px);
    }

    .header {
        height: 72px;
    }

    .header-inner {
        position: relative;
    }

    .header .logo img {
        width: 150px;
        height: 36px;
    }

    .header .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        width: 100vw;
        z-index: 25;
        margin: 0;
        min-width: 0;
        min-height: calc(100dvh - 72px);
        padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
        overflow-y: auto;
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.98);
        border-top: 1px solid #eef1f3;
        border-bottom: 1px solid #eef1f3;
        backdrop-filter: blur(10px);
        box-shadow: 0 18px 26px rgba(15, 37, 46, 0.08);
    }

    .header .nav.open {
        display: flex;
    }

    .header .nav a {
        width: 100%;
        line-height: 1.4;
        padding: 18px 16px;
        font-size: 17px;
        color: #556171;
    }

    .header .nav a.active::after {
        left: 16px;
        right: 16px;
        bottom: 0;
        width: auto;
        height: 3px;
        transform: none;
    }

    .menu-toggle {
        display: inline-flex;
    }

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

    .footer-main {
        padding: 44px 0 32px;
    }

    .footer-links {
        display: none;
    }
}

@media (max-width: 560px) {
    .header .container,
    .footer .container {
        width: calc(100% - 24px);
    }

    .header-tools {
        gap: 8px;
    }

    .header-tools .language-option,
    .header-right .language-option {
        min-width: 48px;
        padding: 8px 10px;
        font-size: 12px;
    }

    .header .nav {
        top: 72px;
        min-height: calc(100dvh - 72px);
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-bottom .container {
        gap: 10px;
        justify-content: flex-start;
    }
}
