.page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header__top-strip,
.footer__bottom-strip {
    height: 0.5cm;
    background: linear-gradient(to right, #7ed957, #1b5e20);
}

.header__top-strip {
    border-bottom: 1px solid #000;
}

.footer__bottom-strip {
    text-align: center;
    border-top: 1px solid #000;
}

.header__content,
.main,
.footer__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.header__content {
    display: flex;
    flex-direction: column;
    padding: 18px 24px 20px;
    gap: 14px;
}

.header__brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    letter-spacing: 0.5px;
}

.header__nav {
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

.header__menu {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header__menu-item {
    margin: 0;
    padding: 0;
}

.header__menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid #000;
    background: #f4f4f4;
    color: #111;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .header__menu-link:hover {
        background: #2f8f2f;
        color: #fff;
    }

.main {
    flex: 1;
}

.header__language {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-switcher__label {
    font-size: 14px;
    line-height: 1;
    color: #111;
    white-space: nowrap;
}

.language-switcher__dropdown {
    position: relative;
    min-width: 160px;
}

.language-switcher__current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #000;
    background: #f4f4f4;
    color: #111;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    list-style: none;
    box-sizing: border-box;
    user-select: none;
}

    .language-switcher__current::-webkit-details-marker {
        display: none;
    }

    .language-switcher__current::after {
        content: "";
        width: 7px;
        height: 7px;
        border-right: 1px solid #111;
        border-bottom: 1px solid #111;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.2s ease;
    }

.language-switcher__dropdown[open] .language-switcher__current::after {
    transform: rotate(225deg) translateY(-2px);
}

.language-switcher__current:hover {
    background: #eeeeee;
}

.language-switcher__current:focus-visible {
    outline: 2px solid #2f8f2f;
    outline-offset: 2px;
}

.language-switcher__list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 20;
    width: 100%;
    min-width: 160px;
    margin: 0;
    padding: 4px 0;
    border: 1px solid #000;
    background: #fff;
    list-style: none;
    box-sizing: border-box;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.language-switcher__item {
    margin: 0;
    padding: 0;
}

.language-switcher__link {
    display: block;
    width: 100%;
    padding: 8px 12px;
    color: #111;
    background: #fff;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    box-sizing: border-box;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .language-switcher__link:hover {
        background: #2f8f2f;
        color: #fff;
    }

.language-switcher__link--active {
    background: #e7f5e5;
    color: #1b5e20;
    font-weight: 600;
    cursor: default;
}

.noscript-warning {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid #b7d8b3;
    border-left: 4px solid #2f8f2f;
    background: #f7fbf6;
    color: #111;
    box-sizing: border-box;
}

.noscript-warning__title {
    margin: 0 0 10px;
    color: #1b5e20;
    font-size: 22px;
    line-height: 1.25;
}

.noscript-warning__text {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.5;
}

.noscript-warning__actions {
    margin: 14px 0 0;
}

.noscript-warning__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #1b5e20;
    background: #fff;
    color: #1b5e20;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background-color 0.2s ease, color 0.2s ease;
}

    .noscript-warning__link:hover {
        background: #2f8f2f;
        color: #fff;
    }

    .noscript-warning__link:focus-visible {
        outline: 2px solid #2f8f2f;
        outline-offset: 2px;
    }

@media (max-width: 768px) {
    .header__content {
        padding: 14px 12px 16px;
        gap: 10px;
    }

    .header__brand {
        font-size: 28px;
    }

    .header__menu {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        width: 100%;
    }

    .header__menu-item {
        width: 100%;
    }

    .header__menu-link {
        width: 100%;
        box-sizing: border-box;
        justify-content: flex-start;
        padding: 8px 12px;
        font-size: 13px;
    }

    .header__language {
        justify-content: stretch;
    }

    .language-switcher {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .language-switcher__label {
        font-size: 13px;
    }

    .language-switcher__dropdown {
        width: 100%;
        min-width: 0;
    }

    .language-switcher__current {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
    }

    .language-switcher__list {
        left: 0;
        right: auto;
        width: 100%;
        min-width: 0;
    }

    .language-switcher__link {
        padding: 9px 12px;
        font-size: 13px;
    }

    .noscript-warning {
        margin-bottom: 16px;
        padding: 14px 14px;
    }

    .noscript-warning__title {
        font-size: 19px;
    }

    .noscript-warning__text {
        font-size: 14px;
    }

    .noscript-warning__link {
        width: 100%;
        box-sizing: border-box;
    }
}
