html {height: 100%!important;}

body {
    font-size: 20px!important;
    width: 100%!important;
    display: flex!important;
    flex-direction: column!important;
    height: 100%!important;
}

.container {
    flex: 1 0 auto!important;
}

a {text-decoration: none;}

ul {margin-bottom: 0;}

ul li {list-style: none;}

header {
    align-items: center;
    box-shadow: 0 7px 30px 0 #323436;
    padding: 5%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(0, 0, 0, 0.5)), url(../main/bg_header.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: hard-light;
}

.logo {margin-left: 35%;}

.desktop_menu {
    display: flex;
    justify-content: space-between;
    margin-left: 10%;
    margin-right: -7%;
}

.desktop_menu li {
    display: inline-block!important;
}

.mobile_menu {
    display: none;
    width: 100%;
}

@media (min-width: 1300px) {
    .menu {
        display: none;
    }
}

@media (max-width: 1299px) {
    .desktop_menu {
        display: none;
    }

    .menu {
        font-size: 35px;
    }

    .mobile_menu {
        margin-top: 25px;
        text-align: center;
        font-size: 24px;
        padding: 0;
    }

    .mobile_menu li {
            margin-bottom: 25px;
        }
    .mobile_menu a {
            color: black;
        }
}

@media (max-width: 650px) {
    .menu {
        margin-left: -50px;
    }

    .logo {
        margin-left: 30px;
    }
}

.main-menu {
	color: #2d4b5b; /* Цвет обычной ссылки */
    font-size: 25px;
    position: relative;
    cursor: pointer;
    text-decoration: none; /* Убираем подчеркивание */
    text-shadow: 1px 1px 2px #5d71b4;
}

.main-menu:after {
	content: "";
    display: block;
    position: absolute;
    right: 0;
    bottom: -3px;
    width: 0;
    height: 2px; /* Высота линии */
    background-color: black; /* Цвет подчеркивания при исчезании линии*/
    transition: width 0.5s; /* Время эффекта */
}

.main-menu:hover:after {
	content: "";
    width: 100%;
    display: block;
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px; /* Высота линии */
    background-color: red; /* Цвет подчеркивания при появлении линии*/
    transition: width 0.5s;  /* Время эффекта */
}

.one {
  color: #fff;
  z-index: 2;
}

.bg_one {
    position: relative;
    height: 600px;
    background-image: url(../main/bg.jpg);
    /* background-repeat: no-repeat; */
    min-width: min-content;
    background-position: center center;
    background-attachment: fixed;
    background-size: cover;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    
}

.bg_one:after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

footer {
    height: 100%;
    color: white;
    background-color: #343232;
}

footer ul img {
    width: 35px;
    height: 35px;
}

footer ul li {display: inline-block;}

#gallery img {
        margin-bottom: 10%;
    }

@media (min-width: 440px) and (max-width: 990px) {
    p, .lead, li, #events {
        font-size: 18px;
    }
    h2 {font-size: 24px;}
    h4 {font-size: 20px;}
}

@media (max-width: 439px) {
    p, .lead, li, #events {
        font-size: 16px;
    }
    h2 {font-size: 22px;}
    h4 {font-size: 18px;}
    #about img {
        width: 100%;
    }
}

@media (max-width: 770px) {
    iframe {
        width: 100%;
    }
    .video {
        height: 100%;
    }
}

@media (max-width: 440px) {
    iframe {height: 100%}
}

.right {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .right {
        padding-top: 30px;
    }
    footer ul {
        padding-bottom: 30px;
    }
}

@media (max-width: 1400px) {
    .teas h5 {
        font-size: 18px;
    }
}

@media (max-width: 576px) {
    .tea {width: 100%}
}

#tea {width: 60%}

.categories {
    display: flex;
    justify-content: space-between;
}

.categories li {
    display: inline-block!important;
}

@media (max-width: 768px) and (min-width: 426px) {
    .categories {
        flex-wrap: wrap;
        justify-content: start;
    
    }
    .categories button {
        margin-top: 8px;
        margin-right: 8px;
    }
}

@media (max-width: 425px) {
    .categories {
        flex-direction: column;
    }
    .categories button {
        margin-top: 8px!important;
        width: 100%;
    }
    p {font-size: 14px;}
}

.certificate img {
    width: 100%;
}
