@import url('https://fonts.googleapis.com/css2?family=Dela+Gothic+One&family=Montserrat+Alternates:wght@500&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Dela+Gothic+One&family=Montserrat+Alternates:wght@500&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    color: #DEDEDE;
}

body {
    background-color: #040404;
}

.greeting-container {
    background-image: url(Mask\ group.png);
    background-size: cover;
    height: 900px;
}

header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 80%;
    margin: 0 auto;
}
.logo{
    width: auto;
}
header ul {
    display: flex;
    gap: 75px;
    align-items: center;
    list-style: none;
}

header li {
    transition: 0.2s;
    text-align: center;
}

header a {
    text-decoration: none;
    text-transform: uppercase;
    color: #DEDEDE;
    font-size: 14px;
}

#burger {
    background: none;
    border: none;
    margin-right: 15px;
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    width: 30px;
    z-index: 50;
    cursor: pointer;
}

.burger span {
    height: 3px;
    width: 100%;
    background: rgb(255, 255, 255);
    border-radius: 5px;
}


.page-title {
    font-family: 'Montserrat Alternates';
    font-weight: 500;
    font-size: 40px;
    text-transform: uppercase;
    color: #DEDEDE;
    text-align: center;
    margin-bottom: 60px;
}

.teachers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.teacher-card {
    width: 28%;
    overflow: hidden;
}

.teacher-img {
    width: 100%;
    overflow: hidden;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.teacher-info {
    padding-top: 25px;
} 

.teacher-info h3 {
    font-family: 'Montserrat Alternates';
    font-weight: 500;
    font-size: 20px;
    color: #DEDEDE;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.teacher-age,
.teacher-post,
.teacher-email {
    font-size: 14px;
    color: #a7a7a7;
    line-height: 1.6;
    margin-bottom: 8px;
}

.teacher-email {
    word-break: break-all;
}

.no-teachers {
    text-align: center;
    font-size: 18px;
    color: #a7a7a7;
    padding: 60px 0;
    grid-column: 1 / -1;
}

.error {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 10px;
    margin: 20px auto;
    max-width: 600px;
}

/* Футер */
footer {
    margin: 2% 7%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.img-footer {
    width: 30%;
}

.img-footer img {
    width: 100%;
}

.link-cntr {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.links-cntr1,
.links-cntr2 {
    display: inline-flex;
    flex-direction: column;
    gap: 20px;
}

footer a,
footer p {
    color: #a7a7a7;
    text-decoration: none;
}

.icons-links {
    display: flex;
    align-items: center;
    gap: 50px;
}

header li:hover {
    transform: scale(1.05);
}

.link-cntr a {
    transition: 0.2s;
}

.link-cntr a:hover {
    transform: scale(1.05);
    color: #DEDEDE;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .teacher-card {
        width: 45%;
    }
    
    header ul {
        gap: 80px;
    }
}

@media (max-width: 768px) {
    .teacher-card {
        width: 80%;
    }
    
    .page-title {
        font-size: 32px;
    }
    
    header ul {
        gap: 50px;
    }
    
    .teacher-info h3 {
        font-size: 18px;
    }
}

@media (max-width: 426px) {
    .burger {
        display: flex;
    }

    .links {
        display: none;
    }

    header {
        justify-content: space-between;
    }

    .links {
        position: absolute;
        top: 0;
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        background-color: black;
        justify-content: center;
        align-items: flex-start;
        gap: 10px;
        z-index: 5;
        transition: .1s all linear;
        transform: translateX(-120%);
    }

    .links.open {
        transform: translateX(0%);
    }

    .links.open li {
        padding: 20px 100px;
    }

    .links {
        font-size: 14px;
    }

    .logo {
        width: 150px;
    }

    header a {
        font-size: 12px;
    }

    .links.open li {
        padding: 20px 50px;
    }

    .teacher-card {
        width: 90%;
    }

    .page-title {
        font-size: 24px;
    }

    .teacher-info h3 {
        font-size: 16px;
    }

    .teacher-age,
    .teacher-post,
    .teacher-email {
        font-size: 12px;
    }

    footer a,
    footer p {
        font-size: 10px;
    }

    .img-footer {
        display: none;
    }

    .icons-links img {
        width: 30px;
    }

    footer {
        margin: 7%;
    }

    .teachers-grid {
        gap: 20px;
    }
}