@import url('https://fonts.googleapis.com/css?family=Open+Sans|Roboto');

:root {
    --background-color: #f9f9f9;
    --blue: #0468ff;
    --light-blue: #CBDFFD;
    --dark-blue: #344586;
    --blue-rgb: 4, 104, 255;
    --grey: #A3A7C1;
    --light-grey: #EFEFEF;
    --button-border: #4079AD;
}

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

*::-webkit-scrollbar {
    width: 8px;
}

*::-webkit-scrollbar-track{
    background-color: var(--grey);
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}   

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-bottom: 0;
}

.all-content-container {
    display: flex;
    justify-content: space-around;
    max-width: 1900px;
    width: 90%;
    padding: 20px 50px;
    position: relative;
}

a {
    text-decoration: none;
}

body::-webkit-scrollbar {
    width: 0;
}

/* sidenav */

.sidenav {
    max-width: 360px;
    width: fit-content;
    padding: 4px;
    top: 20px;
    bottom: 0;
    z-index: 1;
    margin-right: 50px;
    height: 100%;
    position: -webkit-sticky;
    position: sticky;
    overflow: auto;
}

.sidenav-el {
    display: flex;
    align-items: center;
    width: 100%;
}

.sidenav-el:not(:last-child) {
    margin-bottom: 16px;
}

.sidenav-el img {
    float: left;
    margin-right: 16px;
}

.sidenav-el p {
    margin: 0;
}

.sidenav-title {
    color: var(--blue);
}

.sidenav-link {
    padding: 10px;
    color: #09121f;
    background-color: #ffffff;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid transparent;
}

.sidenav-link:hover,
.sidenav-link:focus {
    border: 1px solid black;
}

.active-link {
    background-color: rgba(var(--blue-rgb), 0.2);
}

.active-link img {
    filter: invert(36%) sepia(90%) saturate(4883%) hue-rotate(211deg) brightness(102%) contrast(105%);
}

.active-link p {
    color: var(--blue);
}

.content-wrapper {
    width: 70%;
}

/* main */

.main {
    display: flex;
    flex-direction: column;
    transform: translateX(0);
    transition: transform 0.5s;
    width: 100%;
}

section h2 {
    margin-bottom: 30px;
    margin-top: 30px;
}

/* topnav */

header {
    display: grid;
    grid-gap: 30px;
    margin-top: 40px;
    margin-bottom: 60px;
    grid-template-columns: 1.2fr .2fr .1fr;
    grid-template-areas:
        "left center right";
    width: 100%;
    transition: transform 0.5s; 
}

.header-el {
    display: flex;
    align-items: center;
}

.menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    margin-top: auto;
    margin-bottom: auto;
	position: relative;
	z-index:2;
	overflow: hidden;
    grid-area: button;
    cursor: pointer;
}

.menu-btn span {
	width: 30px;
	height: 2px;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #222222;
	transition: all 0.5s;
}

.menu-btn span:nth-of-type(2) {
	top: calc(50% - 5px);
}

.menu-btn span:nth-of-type(3) {
	top: calc(50% + 5px);
}

.menu.active {
    display: block;
	transform: translateX(0);
}

.menu-btn.active span:nth-of-type(1) {
    display: none;
}

.menu-btn.active span:nth-of-type(2) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(45deg);  
}

.menu-btn.active span:nth-of-type(3) {
    top: 50%;
    transform: translate(-50%, 0%) rotate(-45deg); 
}

.header-el img {
    margin-right: 9px;
}

.header-el p {
    margin: 0;
    padding: 0;
}

header input[type=text] {
    background: url("../images/main/search.png");
    background-repeat: no-repeat;
    background-position: 24px center;
    background-size: 16px;
    background-color: rgba(222, 222, 222, .5);
    padding: 12px 20px 12px 48px;
    border: 0;
    border-radius: 50px;
    grid-area: left;
}

header input[type=text]::placeholder {
    color: black;
    opacity: 1;
}

.btn {
    background-color: rgba(var(--blue-rgb), .2);
    border: 1px solid rgba(255, 255, 255, .0);
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
}

.btn:hover {
    border: 1px solid black;
}

.eye-btn {
    grid-area: center;
}

.enter-btn {
    grid-area: right;
    color: var(--blue);
}

.sidenav-btn {
    display: none;
    width: 100%;
    margin-bottom: 10px;
}

.sidenav .eye-button {
    margin-top:  50px;
}

.news {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    width: 70%;
}

.slideshow-container {
    width: 76%;
    position: relative;
    margin: auto;
    margin-right: 20px;
}

.mySlides {
    display: none;  
}
  
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
}
  
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
  
.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

.mySlides img {
    margin-bottom: 20px;
    border-radius: 8px;
    height: 100%;
}
  
.text {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20px;
    overflow-y: scroll;
}

.fade {
    -webkit-animation-name: fade;
    -webkit-animation-duration: 1.5s;
    animation-name: fade;
    animation-duration: 1.5s;
}

@-webkit-keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

.news-content {
    width: 100%;
    background-color: linear-gradient(45deg, var(--light-blue), var(--blue));
    border-radius: 8px;
}

.news-item p {
    margin: 0;
    margin-top: 8px;    
    overflow-y: auto;
}

.add-news-container {
    width: 30%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-2 img,
.news-3 img {
    width: 100%;
}

.news-2 p,
.news-3 p {
    overflow-y: scroll;
    margin: 0;
    width: 100%;
}

.news-2 {
    margin-bottom: 10px;
}

.news-3  {
    margin: 0;
}

/* Offers */

.offers {
    width: 100%;
    height: auto;
    display: flex;
    background: #ffffff;
}

.offers-container {
    width: 50%;
}

.content-container {
    padding: 34px;
    padding-top: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-container p {
    font-weight: bold;
    font-size: 1.5rem;
    margin: 0;
    margin-bottom: 30px;
    line-height: 2rem;
}

.offers-container .contact-us {
    border-radius: 8px;
    border: 1px solid var(--dark-blue);
    color: var(--dark-blue);
    background: inherit;
    text-decoration: none;
    padding: 14px 20px;
}

.offers-container .contact-us:hover,
.offers-container .contact-us:focus {
    background: var(--dark-blue);
    color: #ffffff;
}

.image-container img {
    width: 100%;
}

/* info */

.info-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    text-align: center;
    column-gap: 20px;
    row-gap: 40px;
    margin-top: 100px;
    margin-bottom: 60px;
}

.info-item {
    text-decoration: none;
    color: var(--dark-blue);
    padding: 4px;
}

.info-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 8px;
}

/* school results */

.results-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    margin-bottom: 70px;
}

.results-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.results-item h2 {
    color: var(--blue);
    font-size: 3.5rem;
    margin-top: 16px;
    margin-bottom: 0;
}

.results-item p {
    color: var(--grey);
    width: 60%;
}

/* Add services */

.add-services {
    margin-top: 60px;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.services-div {
    padding: 16px;
    width: 45%;
    min-height: 100px;
    background: var(--light-grey);
    display: flex;
    align-items: center;
    justify-content: space-around;
    border-radius: 8px;
}

.services-div * {
    margin: 0;
}

.services-div h3 {
    color: var(--blue);
    margin-bottom: 6px;
    font-size: 1.35rem;
}

.services-div p {
    color: var(--grey);
}

.blue-btn {
    height: fit-content;
    background: var(--blue);
    color: #ffffff;
    width: 120px;
    border-radius: 10px;
    padding: 10px;
}

.enroll-child img {
    height: 60px;
}

/* footer */

footer {
    margin-top: auto;
    width: 100%;
}

/* cooperation */

.cooperation {
    height: 100px;
    background: #fff;
}

.cooperation > ul {
    position: relative;
    margin-left: auto;
    margin-right: auto;
    height: 100%; 
}

ul li {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    float: left;
    width: 25%;
    list-style-type: none;
    padding: 20px;
    height: 100%;
    opacity: 0;
    text-align: center;
    transition: 1s opacity; 
}

ul li img {
    width: 60px;
}

.active-cooperator {
    opacity: 1;
}

/* contact us */

.footer-contact-us {
    margin-top: 40px;
}

.contact-us-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 25px;
    margin-left: 40px;
    margin-right: 40px;
    padding-left: 40px;
    padding-right: 40px;
}

.contact-us-container div:not(:last-child) {
    margin-right: 25px;
}

.social {
    grid-area: social;
    width: 240px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.social img {
    width: 35px;
}

.contacts {
    grid-area: contacts;
    /* width: 28%; */
}

.contacts h2 {
    color: var(--blue);
    margin-bottom: 6px;
    margin-top: 0;
}

.contacts p {
    color: var(--grey);
    line-height: 22px;
}

.contact-us-container .btn {
    grid-area: btn;
    width: fit-content;
}

.footer-info {
    background: var(--blue);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 50px;
    color: #ffffff;
    font-size: .75em;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: auto;
    transition: none;
}

/* School info */

.info-links {
    margin-top: 16px;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
}

.info-link:not(:last-child) {
    margin-bottom: 16px;
}

.info-link {
    padding: 16px 8px;
    font-size: 1.25rem;
    border-radius: 10px;
}

/* News */

.news-events-section {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 100px;
}

.grid-centerer {
    display: flex;
    justify-content: center;
}

.grid-container {
    width: fit-content;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.grid-element-container {
    width: 100%;
    max-width: 340px;
}

.grid-element {
    border-radius: 8px;
    background: linear-gradient(to left, #CBDFFD, #5BA1FF);
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.grid-element > div {
    margin: 12px;
    width: calc(100% - 24px);
    text-align: left;
    overflow-y: auto;
    height: 100px;
}

.grid-element p {
    font-size: 1.25rem;
}

.grid-element img {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    width: 100%;
    height: 200px;
}

/* Enroll to school */

/* Vacancies */

.vacancies {
    margin: 48px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vacancies h3 {
    font-size: 4rem;
    color: var(--blue);
}

.vacancies p {
    text-align: center;
    color: var(--grey);
}

/* Documents */

.documents {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    margin-bottom: 30px;
}

.documents h2,
.documents a {
    margin-bottom: 12px;
}

.document {
    font-weight: bold;
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 16px;
}

.document img {
    width: 40px;
    margin-right: 50px;
}

/* Food */

.food {
    margin: 32px auto 20px auto;
}

.food h2 {
    margin-bottom: 20px;
}

.food-grid {
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    grid-template-areas: 
        "first first"
        "second second"
        "second second"
        "third fourth"
        "fifth fifth";
    gap: 30px;
}

.food-grid > * {
    border-radius: 12px;
}

.light-blue-btn, .supplier-information {
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
}

.light-blue-btn {
    font-size: 1.25rem;
}

.food-menu {
    grid-area: first;
    display: flex;
    justify-content: space-between;
    padding: 32px;
    padding-top: 28px;
}

.food-menu div {
    text-align: left;
}

.food-menu h3 {
    font-weight: normal;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.food-menu .btn {
    background-color: var(--dark-blue);
    color: white;
    font-size: 1rem;
    border-radius: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.food-menu p {
    font-size: 1rem;
}

.supplier-information {
    grid-area: second;
    background-color: #ffffff;
    padding: 24px 48px;
}

.rules {
    grid-area: third;
}

.benefit {
    grid-area: fourth;
}

.price {
    grid-area: fifth;
}

.supplier-information {
    border-radius: 12px;
}

/* Contact us */

.form-container {
    width: 70%;
    margin: 40px auto;
}

.form-container label {
    font-weight: bold;
    margin-left: 4px;
}

.form-container input {
    margin-bottom: 16px;
    height: 30px;
}

.form-container i {
    margin-left: -30px;
    cursor: pointer;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 12px;
}

.form-container input,
.form-container textarea {
    padding: 6px;
    margin-top: 4px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid var(--button-border);
    font-size: 1rem;
}

#agree {
    width: auto;
    height: auto;
    margin: 0;
}

.form-container .agree-container {
    display: flex;
    align-items: center;
    margin: 20px auto;    
}

.form-container .submit-btn {
    border: none;
    background-color: var(--light-blue);
    color: var(--dark-blue);
    font-size: 1.25rem;
    height: auto;
    padding: 8px;
    cursor: pointer;
}

/* Login */

#password {
    margin-bottom: 8px;
}

.form-buttons {
    display: flex;
    justify-content: space-between;
    vertical-align: top;
}

.form-buttons .submit-btn {
    max-width: 50%;
    width: fit-content;
    padding: 8px 48px;
    border: 1px solid var(--light-blue);
    font-size: 1rem;
    font-weight: bold;
}

.form-buttons .submit-btn:hover {
    border: 1px solid var(--button-border);
}

.form-buttons a {
    color: var(--blue);
}

/* Services */

section + .services {
    margin: 40px auto auto auto;
}

section + .services div {
    margin-left: 30px;
}

section + .services div > * {
    margin-bottom: 20px;
}

section + .services h2 {
    margin-bottom: 30px;
}

section + .services div .unmargin {
    margin-bottom: 0;
}

.spec-links-container a {
    margin: 0;
}

.spec-link {
    display: flex;
    flex-direction: row;
    color: var(--black);
    text-decoration: underline;
}

.spec-link:hover,
#services-order:hover {
    color: var(--blue);
}

.spec-link img {
    margin-top: 2px;
    margin-left: 4px;
    margin-right: 8px;
    height: 16px;
}

#services-order {
    display: block; 
    color: var(--black);
    text-decoration: underline;
}

/* Exam */

.useful-links .spec-links-container {
    border-radius: 8px;
    padding: 20px;
    background: #ffffff;
}

/* Distance learning */

.education {
    margin-top: 30px;
}

.education > * {
    margin-bottom: 30px;
}

.education .documents {
    margin-top: 8px;
}

.link-document {
    background: none;
    padding: 0;
    text-decoration: underline;
    border: none;
}

.link-document:hover {
    text-decoration: none;
    border: none;
    color: var(--dark-blue);
}

.link-document img {
    margin-right: 20px;
}

@media (max-width: 1300px) {
    .content-wrapper {
        width: 100%;
    }

    .sidenav {
        position: fixed;
    }

    .all-content-container {
        width: 100%;
        flex-direction: column;
    }

    .all-content-container {
        padding-left: 40px;
    }

    header {
        margin-left: 0;
        grid-template-columns: .1fr 1.2fr .6fr .2fr;
        grid-template-areas:
            "button left center right";
        position: fixed;
        top: -40px;
        left: 0;
        z-index: 2;
        background-color: var(--light-blue);
        padding: 10px;
    }

    header input[type=text] {
        background-color: #ffffff;
    }

    .menu {
        transform: translateX(-200%);
        transition: transform 0.5s; 
        top: 56px;
        bottom: 0;
        background-color: var(--light-blue);    
        z-index: 3;
        padding: 20px;
        padding-bottom: 80px;
        overflow: scroll;
    }

    .menu-btn {
        display: block;
        background-color: #ffffff;
        border-radius: 50%;
        padding: 20px;
    }

    .main {
        margin-top: 70px;
    }

    .cooperation,
    .contact-us-container {
        padding-left: 0;
    }

    .contact-us-container {
        justify-content: space-around;
    }
}

@media (max-width: 1100px) {
    .content-container p {
        font-size: 1.25rem;
    }

    .cooperators img {
        width: 80px;
    }

    .contact-us-container div:not(:last-child) {
        margin-right: 80px;
    }
}

@media (max-width: 950px) {
    header {
        grid-template-columns: repeat(1fr, 6);
        grid-template-rows: repeat(1fr, 2);
        gap: 8px;
    }

    header input[type=text] {
        grid-column: 2 / 6;
    }

    .eye-button {
        grid-column: 1 / 3;
        grid-row: 2;
    }

    .enter-btn {
        grid-column: 3 / 6;
        grid-row: 2;
    }

    .main {
        margin-top: 120px;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }   

    .footer-contact-us {
        justify-content: space-around;
    }

    .social {
        width: auto;
        flex-direction: column;
        justify-content: space-around;
    }

    .services-div h3 {
        font-size: 1em;
    }

    .services-div p {
        font-size: .75em;
    }

    .food-info a {
        font-size: .75em;
        margin-left: 10px;
    }

    .enroll-child img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 900px) {
    header input[type=text] {
        width: 100%;
    }

    .news {
        flex-direction: column;
        width: 80%;
    }
    
    .slideshow-container {
        width: 100%;
        position: relative;
        margin: auto;
        margin-bottom: 10px;
    }

    .add-news-container {
        flex-direction: row;
        width: 100%;
        justify-content: space-around;
    }
    
    .news-2 {
        margin-right: 30px;
    }

    .offers {
        flex-direction: column-reverse;
    }

    .offers-container {
        width: 100%;
    }

    .content-container p {
        font-size: 1.5rem;
    }

    .cooperators img {
        width: 60px;
    }

    .contact-us-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        grid-template-areas: 
            "contacts social"
            "contacts btn";
    }

    .social {
        flex-direction: row;
        justify-content: space-between;
        width: 16%;
    }

    .social img {
        width: 30px;
    }

    .contacts h2 {
        font-size: 1em;
    }

    .contacts p {
        font-size: .75em;
    }

    .contact-us-container button {
        width: 100%;
    } 

    .info-item img {
        width: 50px;
        height: 50px;
    }

    .school-results h2 {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .results-item h2 {
        font-size: 2rem;
    }

    .results-item p {
        font-size: 1rem;
    }

    .footer-info {
        flex-direction: column;
    }
}

@media (max-width: 735px) {
    .content-container {
        background-color: #ffffff;
    }

    .contact-us-container {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: repeat(2, 1fr);
        grid-template-areas: 
            "contacts social"
            "contacts btn";
        column-gap: 20px;
    }

    .contacts {
        width: 100%;
    }

    .social {
        width: 100%;
    }

    .contact-us-container .btn {
        width: 100%;
    }

    section + .contact-us {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .news {
        width: 100%;
    }

    .swiper {
        width: 340px;
        height: 200px;
    }

    .swiper-slide img {
        height: 90%;
    }

    .info-container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 10px;
    }

    .services-container {
        flex-direction: column;
    }

    .services-div:not(:last-child) {
        margin-bottom: 10px;
    }
    
    .services-div {
        width: 80%;
        font-size: 1.25rem;
    }
}

@media (max-width: 600px) {
    .all-content-container {
        padding: 30px;
        padding-top: 20px   ;
    }

    .content-container p {
        font-size: 1.25em;
    }

    .info-item p {
        font-size: .8rem;
    }

    .school-results h2 {
        font-size: 1.2rem;
    }

    .results-item:not(:last-child) {
        margin-right: 8px;
    }

    .results-item p {
        width: 100%;
    }

    .grid-container {
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 30px;
    }

    .services-div h3 {
        font-size: 1rem;
    }

    .contact-us-container {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        margin-bottom: 25px;
        padding-left: 80px;
        padding-right: 80px;
    }

    .contact-us-container div {
        margin-bottom: 20px;
    }   

    .social,
    .contacts {
        width: 100%;
        margin: 0 auto;
    }

    .contacts h2 {
        font-size: 1.25rem;
    }

    .contacts p {
        font-size: 1rem;
    }

    section + .services div {
        margin-left: 16px;
    }
}

@media (max-width: 400px) {
    .menu {
        width: 100%;
    }

    .menu.active {
        left: 0;
    }
}