:root {
    --text-color: #000000;
    --link-size: 30px;
    --font-family: 'Oswald';
    --yellow-color: #b0eb3a;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* Oswald Medium */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald/static/Oswald-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* Oswald SemiBold */
@font-face {
    font-family: 'Oswald';
    src: url('../fonts/Oswald/static/Oswald-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}


header {
    padding: 2em 0;

    menu {
        display: flex;
        justify-content: space-between;

        @media (max-width: 450px) {
            flex-direction: column;
        }

        a {
            font-family: var(--font-family);
            font-weight: 600;
            text-decoration: none;
            color: var(--text-color);
            font-size: var(--link-size);
            transition: 0.25s ease-in-out;

            &:hover {
                color: var(--yellow-color);
            }
        }
    }
}

.container {
    position: relative;
}

.contacts-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin-left: 4em;
    display: flex;
    gap: 1em;
    background: #fff;
    padding: 0.5em 1em;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-10px);
    z-index: 10;

    a {
        text-decoration: none;
        color: var(--text-color);
        font-family: var(--font-family);
        font-weight: 500;
        transition: color 0.25s;

        &:hover {
            color: var(--yellow-color);
        }
    }
}

.contacts-menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.me {
    display: flex;
    justify-content: space-between;

    @media (max-width: 1000px) {
        flex-direction: column;
    }

    .me_text {
        color: var(--text-color);
        font-family: Verdana, Geneva, Tahoma, sans-serif;
        max-width: 580px;

        h1 {
            color: var(--text-color);
            font-family: var(--font-family)
        }

        .list {
            ul {
                list-style: none;
                padding-left: 0;
                margin-top: 1em;
                display: flex;
                flex-wrap: wrap;
                gap: 1em;

                @media (max-width: 1000px) {
                    margin-bottom: 2em;
                }

                li {
                    background: var(--text-color);
                    color: #fff;
                    font-family: var(--font-family);
                    font-weight: 500;
                    padding: 0.5em 1em;
                    border-radius: 8px;
                    cursor: default;
                    transition: 0.25s ease-in-out;

                    &:hover {
                        transform: translateY(-3px);
                        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
                        background-color: var(--yellow-color);
                        color: var(--text-color);
                    }
                }
            }
        }
    }

    .image {
        justify-content: end;

        img {
            max-width: 580px;
            width: 100%;
        }
    }
}

footer {
    padding: 2em 0;

    menu {
        display: flex;
        justify-content: space-between;

        @media (max-width: 450px) {
            flex-direction: column;
        }

        a {
            font-family: var(--font-family);
            font-weight: 600;
            text-decoration: none;
            color: var(--text-color);
            font-size: var(--link-size);
            transition: 0.25s ease-in-out;

            &:hover {
                color: var(--yellow-color);
            }
        }
    }
}

.container {
    width: 100%;
    padding-left: 4em;
    padding-right: 4em;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}Ï
