* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Quicksand', sans-serif;
    max-height: 100%;
    background: #000;
    color: white;
}

a {
    text-decoration: none;
}

.wrap {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
}

.stub-target {
    height: 5em;
}

.technologies {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 1em;
}

.technology {
    background: #49aec0;
    padding: 0.3em;
    color: black;
    text-align: center;
    font-weight: 700;
}

.link {
    color: white;
    border-bottom: 1px solid black;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.link:hover {
    color: #49aec0;
    border-bottom-color: white;
}

.link:active {
    color: white;
    border-bottom-color: #49aec0;
}

.link-top {
    margin: 0 1em;
    padding: 0.5em 0;
}

.name-site {
    font-size: 2em;
    color: black;
    background: white;
    padding: 0.5em 1em;
    transition: background-color 0.3s, width 0.2s, height 0.3s, padding 0.3s;
    text-align: center;
    height: 5rem;
    width: 10em;
    margin: 0;
}

.name-site-hidden {
    width: 4em;
}

.name-site-hidden-mobile {
    height: 0;
    padding: 0;
}

.name-site:hover {
    color: black;
    background: #49aec0;
}

.nav-top {
    display: flex;
    align-items: center;
    background: #000;
    overflow: hidden;
    height: 5em;
    transition: height 0.2s;
}

.nav-top-hidden {
    height: 3em;
}

.nav-top-links {
    display: flex;
    justify-content: center;
    background: #000;
}

.wrap-main-text {
    margin: 0 10em;
}

.main-text {
    margin-bottom: 8em;
}

.title-wrap {
    display: flex;
    align-items: center;
}

.main-text-title {
    margin-bottom: 1em;
}

.title-h {
    font-size: 5em;
    padding-top: 4em;
}

.title-p {
    font-size: 2em;
    margin-top: 5em;
    margin-bottom: 10em;
}

.grogu {
    height: 30em;
}

.wrap-projects {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1em;
    margin-bottom: 15em;
}

.project {
    position: relative;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
    opacity: 0.8;
    transition: filter 0.3s, opacity 0.3s;
    backface-visibility: hidden;
}

.project:hover .project-img {
    filter: grayscale(0);
    opacity: 1;
}

.project:active .project-img {
    opacity: 0.3;
}

.project-text {
    position: absolute;
    left: 0;
    bottom: 0;
    color: white;
    background: #000;
    font-size: 1.5em;
    padding: 0.1em;
}

.geek-link {
    color: #49aec0;
}

.geek-link:hover {
    color: white;
}


/* Footer */

.footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0.5em 0;
    background: #555;
}

.footer-elem {
    align-self: center;
    justify-self: center;
}

.footer-text {
    font-size: 1.2em;
}

.footer-social {
    display: flex;
    align-items: center;
}

.social-icon {
    width: 2rem;
    height: 2rem;
    padding: 0.2rem;
}

.social-a {
    background: #ffffff;
    box-shadow: 0 0 1rem 0.5rem white;
    border-radius: 2rem;
    opacity: 0.6;
    margin: 0.5rem;
    display: flex;
    transition: background-color 0.5s, box-shadow 1s;
}

.social-a:hover {
    background: #49aec0;
    box-shadow: 0 0 1rem 0.5rem #49aec0;
    opacity: 1;
}

.social-lamp-obj {
    width: 40px;
}


/* Media requests */
@media screen and (max-width: 1024px) {
    .wrap-projects {
        grid-template-columns: repeat(3, 1fr);
    }

    .wrap-main-text {
        margin: 5em;
    }

    .technologies {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .title-wrap {
        flex-direction: column;
    }

    .name-site {
        width: inherit;
    }

    .title-h {
        font-size: 3em;
    }

    .title-p {
        font-size: 1.5em;
        margin-bottom: 1em;
    }

    .nav-top {
        align-items: stretch;
        flex-direction: column;
        overflow: visible;
    }

    .wrap-projects {
        grid-template-columns: repeat(2, 1fr);
    }

    .wrap-main-text {
        margin: 3em;
    }

    .footer {
        grid-template-columns: 1fr;
    }

    .stub-target {
        height: 10em;
    }

    .footer-elem {
        margin-bottom: 1em;
    }

    .technologies {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media screen and (max-width: 425px) {
    .wrap-projects {
        grid-template-columns: 1fr;
    }

    .wrap-main-text {
        margin: 1em;
    }

    .title-h {
        font-size: 3em;
    }

    .title-p {
        font-size: 1.5em;
        margin-top: 5em;
    }

    .grogu {
        height: 20em;
    }

    .technologies {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* полоса прокрутки (скроллбар) */
::-webkit-scrollbar {
    width: 8px;
    background-color: #000;
}

/* ползунок скроллбара */
::-webkit-scrollbar-thumb {
    background-color: #275d69;
    border-radius: 9em;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #49aec0;
}