:root {
    --color-primary: #20b0e6;
    --color-red: #f04e4b;
    --color-yellow: #ffcc4d;
    --color-pink: #f4a6c9;
    --color-text: #222222;
    --color-white: #ffffff;
    --page-width: 1180px;

    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--color-text);
    background: var(--color-white);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

/* Shared site header */
.site-header {
    width: 100%;
    border-bottom: 1px solid #f3e2ea;
    background: var(--color-white);
}

.site-header__inner {
    width: min(100% - 48px, var(--page-width));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo img {
    width: 142px;
    height: auto;
}

.primary-navigation {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 27px;
}

.primary-navigation__link {
    position: relative;
    padding: 29px 0 25px;
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.primary-navigation__link[aria-current="page"] {
    color: var(--color-red);
    font-weight: 700;
}

.primary-navigation__link[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 3px;
    border-radius: 999px;
    background: var(--color-red);
}

.language-switcher {
    width: 42px;
    height: 28px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 999px;
    color: var(--color-white);
    background: var(--color-primary);
    font-size: 11px;
    font-weight: 700;
}

/* Shared site footer */
.site-footer {
    width: 100%;
    color: var(--color-white);
    background: var(--color-primary);
}

.site-footer__inner {
    width: min(100% - 56px, var(--page-width));
    margin: 0 auto;
}

.site-footer__main {
    min-height: 245px;
    padding: 36px 0 34px;
    display: grid;
    grid-template-columns: minmax(280px, 1.7fr) repeat(3, minmax(130px, 0.75fr));
    gap: 52px;
}

.site-footer__brand {
    max-width: 300px;
}

.site-footer__logo {
    display: inline-block;
    margin-bottom: 20px;
}

.site-footer__logo img {
    width: 165px;
    height: auto;
}

.site-footer__brand p {
    max-width: 285px;
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.site-footer__dots {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-footer__dots span {
    width: 10px;
    height: 10px;
    display: block;
    border-radius: 50%;
}

.site-footer__dots span:nth-child(1),
.site-footer__dots span:nth-child(5) {
    background: var(--color-red);
}

.site-footer__dots span:nth-child(2) {
    background: var(--color-yellow);
}

.site-footer__dots span:nth-child(3) {
    background: var(--color-pink);
}

.site-footer__dots span:nth-child(4) {
    background: var(--color-white);
}

.site-footer__column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.site-footer__column h2 {
    margin: 8px 0 18px;
    color: var(--color-yellow);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer__column a,
.site-footer__column p {
    margin: 0 0 12px;
    font-size: 11px;
    line-height: 1.3;
}

.site-footer__bottom {
    min-height: 52px;
    border-top: 1px solid rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 9px;
}

.site-footer__bottom p {
    margin: 0;
}

/* Full-height page layout */
main {
    flex: 1;
}

/* Shared navigation container */
.site-navigation-panel {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-navigation-panel .primary-navigation,
.site-navigation-panel .language-switcher {
    margin-left: 0;
}

.mobile-menu-toggle,
.mobile-menu-close,
.mobile-menu-overlay {
    display: none;
}

/* Mobile navigation */
@media (max-width: 900px) {
    body.nav-open {
        overflow: hidden;
    }

    .site-header {
        position: relative;
        z-index: 1000;
    }

    .site-header__inner {
        width: min(100% - 32px, var(--page-width));
        min-height: 68px;
        gap: 16px;
    }

    .site-logo img {
        width: 118px;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 10px;
        display: inline-flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 5px;
        border: 0;
        border-radius: 12px;
        color: var(--color-white);
        background: var(--color-primary);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 100%;
        height: 2px;
        border-radius: 999px;
        background: currentColor;
    }

    .site-navigation-panel {
        position: fixed;
        top: 0;
        right: 0;
        z-index: 1002;
        width: min(82vw, 320px);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 24px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        background: var(--color-white);
        box-shadow: -18px 0 42px rgba(32, 70, 90, 0.16);
        transform: translateX(105%);
        transition: transform 220ms ease;
    }

    .site-header.is-menu-open .site-navigation-panel {
        transform: translateX(0);
    }

    .mobile-menu-close {
        width: 42px;
        height: 42px;
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        color: var(--color-white);
        background: var(--color-red);
        font-size: 28px;
        line-height: 1;
        cursor: pointer;
    }

    .primary-navigation {
        width: 100%;
        margin: 28px 0 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-navigation__link {
        width: 100%;
        padding: 16px 10px;
        border-bottom: 1px solid #f3e2ea;
        color: var(--color-primary);
        font-size: 15px;
        line-height: 1.2;
    }

    .primary-navigation__link[aria-current="page"] {
        padding-left: 16px;
        border-left: 4px solid var(--color-red);
        color: var(--color-red);
        background: rgba(240, 78, 75, 0.06);
    }

    .primary-navigation__link[aria-current="page"]::after {
        display: none;
    }

    .site-navigation-panel .language-switcher {
        width: 50px;
        height: 34px;
        margin-top: auto;
        align-self: flex-start;
    }

    .mobile-menu-overlay {
        position: fixed;
        inset: 0;
        z-index: 1001;
        width: 100%;
        height: 100%;
        display: block;
        border: 0;
        background: rgba(20, 35, 45, 0.44);
        cursor: pointer;
    }

    .mobile-menu-overlay[hidden] {
        display: none;
    }
}

/* Shared responsive footer */
@media (max-width: 900px) {
    .site-footer__inner {
        width: min(100% - 40px, var(--page-width));
    }

    .site-footer__main {
        min-height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px;
    }

    .site-footer__brand {
        max-width: none;
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .site-footer__inner {
        width: min(100% - 28px, var(--page-width));
    }

    .site-footer__main {
        padding: 32px 0;
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .site-footer__brand {
        grid-column: auto;
    }

    .site-footer__bottom {
        padding: 16px 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 10px;
    }
}

/* Shared buttons */
.button {
    box-sizing: border-box;
    min-height: 40px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.button--primary {
    color: var(--color-white);
    background: var(--color-red);
}

.button--secondary {
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    background: var(--color-yellow);
}
