@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --color-header-bg: #F5F2F4;
    --color-footer-bg: #F5F2F4;

    --header-height: 120px;
    --padding-sides: 100px;
    --footer-height: 100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-size: 17px;
    font-family: "Inter", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #F5F2F4;
}

header {
    position: fixed;
    width: 100%;
    padding: 20px var(--padding-sides);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-header-bg);
    height: var(--header-height);
    z-index: 100;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

header .logo img {
    height: 150px;
}

.header-right {
    display: flex;
    align-items: center;
}

header nav ul {
    display: flex;
    flex-direction: row;
    list-style: none;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-divider {
    width: 1px;
    height: 28px;
    background: #c8c8c8;
    margin: 0 4px;
}

.logout-form {
    display: inline;
    margin: 0;
    padding: 0;
}

.btn-danger-soft {
    background: #e8e8e8;
    color: #8a3a39;
}

.btn-danger-soft:hover {
    background: #d4d4d4;
    color: #8a3a39;
}

.burger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
    flex-shrink: 0;
}

.burger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #2a2a2a;
    transition: transform 0.25s, opacity 0.25s;
    transform-origin: center;
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

main {
    padding: 140px 0;
    min-height: 90vh;
}

footer {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-shrink: 0;
    justify-content: space-between;
    width: 100%;
    padding: 20px var(--padding-sides);
    background-color: var(--color-footer-bg);
}

footer .left {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

footer .left .logo img {
    height: 90px;
}

footer .left p {
    font-size: 16px;
    color: #2c2c2c;
}

footer .right {
    display: flex;
    flex-direction: column;
    text-align: end;
    padding-top: 20px;
    justify-content: space-between;
}

footer .right a {
    color: #2c2c2c;
    text-decoration: none;
    font-size: 16px;
}

footer .right a:hover {
    text-decoration: underline;
}

h1 {
    text-align: center;
}

@media (max-width: 1444px) {
    :root {
        --padding-sides: 60px;
    }

    header .btn-selected,
    header .btn {
        width: 100px;
        height: 36px;
        line-height: 36px;
        font-size: 12px;
    }
}

@media (max-width: 1200px) {
    :root {
        --padding-sides: 30px;
    }
    header .btn-selected,
    header .btn {
        width: 90px;
        height: 28px;
        line-height: 28px;
        font-size: 12px;
    }
}


@media (max-width: 1100px) {
    :root {
        --header-height: 70px;
        --padding-sides: 20px;
    }

    header {
        padding: 0 20px;
    }

    header .logo img {
        height: 80px;
    }

    .burger-btn {
        display: flex;
    }

    .header-right {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--color-header-bg);
        overflow-y: auto;
        padding: 24px 20px;
        z-index: 99;
    }

    .header-right.open {
        display: flex;
        flex-direction: column;
    }

    header nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 200px;
    }

    header nav ul li {
        width: 100%;
    }

    header nav ul .btn,
    header nav ul .btn-selected {
        width: 100%;
        display: block;
        text-align: center;
    }

    header .btn-selected,
    header .btn {
        width: 400px;
    }

    

    .nav-divider {
        width: 100%;
        height: 1px;
        margin: 8px 0;
    }

    .logout-form {
        display: block;
        width: 100%;
    }

    .logout-form .btn-danger-soft {
        width: 100%;
    }

    main {
        padding: 60px 0;
    }

    footer {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    footer .right {
        text-align: left;
        padding-top: 0;
    }
}