/* Шапка */
@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter-Bold.otf') format('opentype');
    font-weight: 700;
}

* {
    font-family: "Inter";
    font-weight: 300;
}

header {
    width: 100%;
    background-color: #fff;
    position: fixed;
    box-shadow: 0px 2px 17px 1px rgba(18, 31, 41, 0.24);
}

.top .flex {
    display: flex;
    justify-content: space-between;
    width: 80%;
    margin: 0 auto 0 auto;
    max-width: 1536px;   
}

.logo {
    height: 80px;
}

.menu {
    display: none;
}

.nav {
    width: 70%;
}

.nav ul {
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    font-size: 25px;
    font-weight: 300;
    text-align: center;
    height: 40px;
    padding-left: 0;
    margin: 35px 0 0 0;
}

.nav a {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 0 solid #0000007c; 
    transition: 0.1s;
}

.nav a:hover {
    border-bottom-width: 3px;
    color: #575656;
}

/* Тело */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0 auto 0 auto;
}

main .flex {
    display: flex;
    justify-content: space-between;
    max-width: 1536px;
    min-width: 320px;
    width: 80%;
    margin: 0 auto 50px auto;
}

.inflex {
    width: 100%;
}

h1 {
    font-weight: 700;
    margin-bottom: 35px;
    text-align: center;
}

h2 {
    font-weight: 700;
    margin-bottom: 35px;
}

/* О нас */

#about {
    padding-top: 120px;
}

.about_img {
    min-width: 300px;
    min-height: 320px;
    width: 45%;
}

.about_img .photo{
    border-radius: 3px;
    border-top-left-radius: 50px;
    border-bottom-right-radius: 50px;
    width: 100%;
    height: 100%;
    box-shadow: 3px 3px 7px #04356cb6;
}

#about .inflex .about_info {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 5%;
}

.about_text {

    width: 50%;
    font-size: 20px;
}

.about_text p {
    margin: 0;
    line-height: 40px;
    text-align: justify;
}

.about_text p:not(:last-child) {
    margin-bottom: 5%;
}

.about_text .color {
    color: #357db8;
}

/* Услуги */

.cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5%;
}

.card {
    transition: all 0.5s ease;
    min-width: 300px;
    width: 25%;
    height: auto;
    border: #236092 3px solid;
    border-radius: 30px;
    margin-bottom: 50px;
    padding-bottom: 25px;
}

.card:hover {
    transition-delay: 0.15s;
    width: 26%;
    padding-top: 10px;
    box-shadow: 4px 4px 5px #6dace0;
}

.card:hover img {
    transition-delay: 0.15s;
    width: 36%;
    margin: 20px 32% 0 32%;
}

.card img {
    width: 34%;
    margin: 30px 33% 0 33%;
    transition: all 0.5s ease;
}

.card h3 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0 10px 0;
}

.card h4, .card li {
    padding: 5px 10px 0 0;
    font-size: 18px;
    font-weight: 700;
    color: #575656;
    line-height: 28px;
    margin: 0 auto 0 auto;
}

/* Сертификаты */

.certificat_case {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.certificat_case img {
    transition: all 0.5s ease;
    min-width: 300px;
    width: 25%;
    height: 50%;
    border-radius: 15px;
    margin: 0 auto 50px auto;
    gap: 2%;
}

.certificat_case img:hover {
    transition-delay: 0.5s;
    width: 30%;
    box-shadow: 2px 2px 5px #b8b8b8;
}

/* Обратная связь */

#feedback .flex {
    justify-content: center;
}

#feedback form {
    width: 80%;
    min-width: 300px;
    font-size: 20px;
}

#feedback .label {
    margin: 15px 0 15px 0;
}

#feedback input, #feedback textarea {
    font-size: 18px;
    width: 100%;
    border-radius: 15px;
    padding: 5px 0 5px 5px;
}

#feedback input {
    height: 30px;
}

#feedback textarea {
    height: 80px;
}

#feedback .btn {
    margin: 15px auto 0 auto;
    display: flex;
    justify-content: center;
}

#feedback button {
    font-size: 18px;
    width: 40%;
    height: 35px;
    border-radius: 15px;
    cursor: pointer;
}

#feedback .sequrity {
    font-size: 18px;
    margin: 20px 0 20px 0;
}

#feedback .sequrity a{
    color: #357db8;
    text-decoration: none;
}

#feedback .sequrity input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#feedback .sequrity input:checked {
    accent-color: #357db8;
}

/* Контакты */

.contact_case {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10%;
}

.contact_info {
    width: 30%;
    min-width: 250px;
}

.contact_info h3 {
    margin: 0;
}

.contact_info p {
    margin: 10px 0 0 0;
    color: #575656;
    font-size: 20px;
}

.icon {
    display: flex;
    margin-top: 15px;
    align-items: center;
}

.icon .ico {
    width: 30px;
    margin-right: 15px;
}

#message {
    width: 28px;
    height: 22px;
}

.icon img {
    height: 30px;
}

.messangers {
    margin-top: 20px;
    display: flex;
    gap: 25px;
}

.messangers img {
    width: 60px;
    height: 60px;
}

.map {
    min-width: 450px;
    width: 55%; 
    border: 0;
}

/* Подвал */

#up-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #236092;
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    text-decoration: none;
    font-size: 26px;
    line-height: 40px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
    z-index: 999;
}

#up-button:hover {
    opacity: 1;
}

#up-button:before {
    content: "\2191";
    display: inline-block;
}

footer {
    overflow: hidden;
    margin-top: 30px;
}

footer .logo {
    height: 80px;
}

footer .flex {
    width: 80%;
    margin: 0 auto 0 auto;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer h2 {
    text-align: center;
    font-size: 20px;
    line-height: 25px;
    color: #575656;
    margin-bottom: 10px;
    margin-top: 10px;
}

.line {
    width: 100%;
    height: 1px;
    background-color: #b8b8b8;
}

.warning {
	position: fixed;
	bottom: 0;
	left: 0;
	display: none;
	justify-content: center;
	width: 100%;
	padding: 30px;
	box-sizing: border-box;
	background-color: #c1e1fc;
}

.warning-active {
	display: flex;
}

.warning_apply {
    cursor: pointer;
    border-radius: 10px;
    border-color: #236092bb;
    margin: 0 2% 0 2%;
    width: 50px;
    height: 30px;
    background-color: #236092bb;
    color: #fff;
}

.warning_text {
    font-size: 20px;
}

.warning_read {
	display: block;
    font-size: 20px;
    color: #04346c;
}

/* Информация */

#info p {
    font-size: 20px;
    font-family: 'Times New Roman', Times, serif;
}

/* Адаптивность */

@media (min-width:1900px) {
    .card {
        max-width: 350px;
        width: 25%;
    }

    .about_text {
        font-size: 30px;
    }
}

@media (max-width:1700px) {
    .about_text p{
        font-size: 20px;
        line-height: 30px;
    }
}

@media (min-width:1400px) {
    .about_text {
        font-size: 25px;
    }
}

@media (max-width:1300px) {
    .nav {
        width: 80%;
    }

    .about_text {
        font-size: 20px;
    }

    .certificat_case img:hover {
        width: 27%;
    }

}

@media (max-width:1150px) {
    .nav {
        display: none;
    }

    .menu {
        display: block;
    }

    .burger {
        z-index: 5;
        align-items: center;
        width: 50px;
        height: 80px;
        cursor: pointer;
        border: none;
        background-color: #fff;
        background-image: url(img/Menu.svg);
        background-repeat: no-repeat;
        background-position: center center;
    }
    
    .menu_item {
        list-style: none;
        background-color: #fff;
        margin:0;
        padding: 0;
    }
    
    .menu_link {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .menu_link li {
        margin-bottom: 5px;
    }
    
    .nav_link {
        text-decoration: none;
        display: block;
        text-align: center;
    }

    #menu {
        position: fixed;
        left: 0;
        width: 100%;
        border: 1px solid #ccc;
        z-index: 999;
        display: none;
    }
    
    #menu[open] {
        display: block;
    }
    
    #menu .nav_link {
        padding: 15px;
        font-size: 1.1em;
    }

    .nav_link {
        color: #04346c;
        list-style-type: none;
        text-decoration: none;
        font-size: 18px;
    }

    main .flex {
        margin-bottom: 0;
    }

    .about_text p {
        font-size: 15px;
        line-height: 25px;
    }

}

@media (max-width:1000px) {
    .certificat_case img:last-child {
        margin-bottom: 0;
    }
    
    .contact_case {
        gap: 5%;
    }

    .warning_text, .warning_read {
        font-size: 16px;
    }
}

@media (max-width:925px) {
    #about .inflex .about_info {
        justify-content: center;
        gap: 5%;
    }

    .about_img {
        min-width: 300px;
        min-height: 320px;
        width: 100%;
    }

    .about_text {
        width: 100%;
        font-size: 25px;
        margin-top: 30px;
    }

    .about_text p {
        font-size: 16px;
        line-height: 25px;
    }

    .about_text p:not(:last-child) {
        margin-bottom: 15px;
    }

    .card:hover {
        width: 25%;
        padding-top: 5px;
    }

    .contact_info {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .contact_block:last-child .icon {
        margin-top: 0;
    }

    .contact_block {
        width: 45%;
        margin-bottom: 30px;
    }

    .messangers {
        padding-left: 25px;
    }

    .map {
        min-width: 320px;
        width: 100%;
        height: 400px;
    }
}

@media (max-width:810px) {

    .certificat_case img:hover {
        width: 80%;
    }

    .warning_apply {
        border-radius: 5px;
        width: 30px;
        height: 20px;
        font-size: 14px;
        padding: 0;
    }

    .warning_text, .warning_read {
        font-size: 14px;
    }

}

@media (max-width:730px) {
    h2 {
        font-size: 25px;
    }

    .about_text p {
        line-height: 25px;
    }

    .contact_info h3 {
        font-size: 20px;
    }

    .contact_info p {
        font-size: 16px;
    }

    .messangers {
        margin-top: 15px;
        gap: 20px;
        padding-left: 15px;
    }

    .messangers img {
        width: 50px;
        height: 50px;
    }

    footer h2 {
        margin-top: 0;
        font-size: 16px;
        line-height: 20px;
    }

    .warning {
        padding: 15px;
        flex-wrap: wrap;
        text-align: center;
    }

    .warning_apply {
        height: 30px;
        width: 50px;
        border-radius: 10px;
        margin-right: 20px;
    }

    .warning_text {
        margin-bottom: 10px;
    }

    .warning_read {
        padding-top: 5px;
    }

}

@media (max-width:550px) {
    #feedback .sequrity {
        font-size: 16px;
    }

    #up-button {
        bottom: 25px;
        right: 20px;    
        width: 40px;
        height: 40px;
        line-height: 40px;
    }    
}

@media (max-width:445px) {
    .logo {
        height: 50px;
    }
    
    .burger {
        height: 50px;
        width: 30px;
    }

    .menu_item li {
        padding: 3px 0 3px 0;
        margin: 0;
    }

    #about {
        padding-top: 80px;
    }

    .about_text {
        text-align: center;
        line-height: 20px;
    }

    .card:hover {
        padding-top: 5px;
        box-shadow: 4px 4px 5px #6dace0;
    }

    .card:hover img {
        width: 34%;
        margin: 20px 33% 0 33%;
    }

    .contact_block {
        width: 40%;
    }

    .contact_info h3 {
        font-size: 16px;
    }

    .contact_info p {
        font-size: 12px;
    }

    .messangers {
        margin-top: 10px;
        gap: 15px;
        padding-left: 5px;
    }

    .messangers img {
        width: 40px;
        height: 40px;
    }

    .icon .ico {
        margin-right: 5px;
    }

    h2 {
        font-size: 20px;
    }

    footer h2 {
        font-size: 16px;
    }
}

@media (max-width:360px) {
    .flex {
        width: 95%;
    }
    
    h2 {
        padding-left: 10px;
    }

    .about_img {
        padding: 0 10px 0 10px;
    }

    .about_text p {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .card, .certificat_case img {
        min-width: 260px;
        height: auto;
        margin-bottom: 30px;
    }

}