/* Шапка */
header {
    display: flex;
    width: 100%;
    height: 120px;
    background-color: #0072C6;
    color: white;
    align-items: center;
    
}
header img {
    margin-left: 75px;
    height: 100px;
    margin-right: 260px;
    box-shadow: none;	
}
header img:hover {
    transform: scale(1.1);
}
header a {
    padding: 0px;
}
/* Подвал */
footer a {
    padding: 0px;
}
footer {
    display: flex;
    margin-top: auto;
    background-color: #0072C6;
    color: #AFC5D6;
    font-size: 27px;
    text-align: right;
    padding: 30px 35px;
}
footer img {
    margin-left: 34px;
    height: 50px;
    width: 50px;
    margin-right: 325px;
    box-shadow: none;
}
footer img:hover {
    transform: scale(1.3);
}
footer p {
    color: white;
}
/* Стили тела */
img {
    box-shadow: 10px 9px 10px rgb(41, 40, 40);
}
h1 {
    margin: 3em;
}
h2 {
    font-size: 60px;
}
h3 {
    font-size: 35px;
    color: rgb(23, 99, 157);
}
/* Меню */
ul {
    width: max-content;
    display: flex;
    font-size: 24px; 
    margin-top: 25px;
    margin-left: 24px;
}
li {
    list-style-type: none;
    background-color: #0072C6;
    padding-top: 3px;
    padding-bottom: 3px;
    margin-left: 13px;
    border-radius: 10px;
}
a { 
    padding: 3px 30px;
    text-decoration: none;
    color: white;
    font-family: Verdana;
    
}
li:hover {
    background-color: rgb(28, 149, 149);
    box-shadow: -1px 2px 9px 6px rgba(0, 0, 0, 0.424);
    transform: scale(1.1);
}

p {
    font-family: Arial;
    color:rgb(23, 99, 157);
}
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;

}
/* Стили контейнеров */
.custom-container {
    display: flex;
    height: max-content;
    margin: 50px 70px;
}
.custom-container img {
    width: auto;
    height: auto;
    margin-right: 50px;
}
.text-container {
    display: flex;
    flex-direction: column;
    padding: 30px 20px; 
    text-align: left;
    font-size: 28px;
}
.text-container p {
margin: 0.5px;
}
.custom-container-lab {
    display: flex;
    flex-direction: column;  
    align-items: center;  
    margin: 20px 70px;
}

.custom-container-lab img {
    object-fit: cover; 
    width: 100%; 
    height: 500px;
}
.text-container-lab {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 35px 0;
    text-align: left;
    font-size: 28px;
}
.text-container-lab p {
    margin: 0.5px;
    color: rgb(23, 99, 157)
    }
.lab-list {
    margin: 8px 0px;
}
.lab-list-item::before {
    content: "\2022"; 
    color: #265f9b; 
    margin-right: 10px; 
}
.custom-container-contacts {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 90%;
    height: max-content;
    margin: 20px auto 40px 70px;
}

.custom-container-contacts-img,
.custom-container-contacts-map {
    flex: 1;
    max-width: calc(50% - 50px); 
    height: 600px;
    margin-bottom: 20px; 
}

.custom-container-contacts-img img {
    width: 100%;
    height: 85%;
    object-fit: cover;
}
.text-bottom {
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    padding-top: 30px;
    line-height: 0.5; 
    color: #337bb3;
    font-size: 22px;
}
/* Мастер-классы */
.custom-container-master-class {
    display: flex;
    height: max-content;  
    width: 1460px;
    margin: 70px 70px; /* 180 */

}

.custom-container-master-class img {
    height: 400px; 
    width: auto;
    margin-right: 50px; 
}

.text-container-master-class {
    display: flex;
    flex-direction: column;
   padding: 0px 30px; 
    font-size: 27px;
}
.text-container-master-class p {
    margin-bottom: 0.7rem;
}
.container {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: max-content; 
  }
  
  .text {
    color:#265f9b;
    text-align: center;
    font-size: 30px;
  }
/* Медия-запросы (Адаптация)*/
@media screen and (min-width: 2560px){
        ul {
        font-size: 39px;
    }
    li {
        margin-left: 20px;
    }
  }
@media screen and (max-width: 1900px) {
    ul {
     font-size: 26px;
    }
    nav a{
        padding: 8px 30px;
    }
    .custom-container-master-class {
        width: 1350px;
    }
    footer img {
        margin-right: 200px;
    }
}
@media screen and (max-width: 1600px) {
    ul {

        font-size: 20px;
    }
    nav a{
        padding: 8px 30px;
    }
    .custom-container-contacts-map {
        max-width: calc(50% - -40px); 
    }
}
@media screen and (max-width: 1400px) {
    ul {
        font-size: 20px; 
    }
    nav a{
        padding: 8px 9px;
    }
    .custom-container-contacts-img,
    .custom-container-contacts-map {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px; 
    }
    footer img {
        margin-right: 100px;
    }
    .custom-container-master-class {
        width: 1150px; 
    }
    .text-container-master-class {
       padding: 0px 55px; 
    }
    h3 {
        text-align: center;
    }
    .custom-container-master-class img {
        margin-right: -10px;
    }
    .custom-container {
        align-items: center;
        margin: 10px auto;
        flex-direction: column;
        width: 900px;
    }
    .text-container {
        display: flex;
        flex-direction: column;
        padding: 30px 0px;
        text-align: justify;
        font-size: 28px;
    }
    .custom-container img {
        margin: auto;
    }
}

@media (max-width: 1200px) {
    ul {
        font-size: 18.5px;
    }
    header img {
        margin-right: 160px;
    }
    nav a{
        padding: 8px 12px
    }
    .custom-container-master-class {
           align-items: center; 
           margin: 10px auto; 
           flex-direction: column;
           width: 700px;
    } 
    .text-container-master-class {
        margin: 30px 0px;
    }
}
@media screen and (max-width: 1024px) {
    ul {
        font-size: 18.5px;
        margin-left: -30px;
    }
    nav a{
        padding: 6px 10px;
    }
    header img {
        margin-right: 50px;
    }
    .custom-container-master-class {
           align-items: center; 
           margin: 10px auto; 
           flex-direction: column;
           width: 700px;
    } 
    h3 {
        text-align: center;
    }
    .custom-container-master-class img {
        margin-right: -10px;
    }
    .text-container-master-class {
        margin: 30px 0px;
}
}
@media screen and (max-width: 768px) {
    ul {
        width: 100%;
        font-size: 14px;
    }
    nav {
        margin-left: -14px;
    }
    nav a{
        padding: 6px 2px;
    }
    .custom-container-master-class {
        align-items: center; 
        margin: 10px auto; 
        flex-direction: column;
        width: 700px;
 } 
 .custom-container-master-class img {
    margin-right: -10px;
}
.text-container-master-class {
        margin: 30px 0px;
}
}

