/* Malecat site */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ------------ HEADER ------------- */
.header {
    padding: 1rem 2rem 1rem 1rem;
    background: #F2EBDF;
    border: 2px dotted brown;
    align-items: center;
    margin: 0 auto;
    width: 100%;

    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    /* display: grid;
    grid-template-columns: 50% 50%; */
}

.Playfair {
    font-family: 'Playfair Display', serif;
    color: brown;
    font-size: 2.5rem;
}

.color-change {
    animation-name: colorchange;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-delay: 2s;
    animation-iteration-count: infinite;
}

@keyframes colorchange {
    0% {
        color: brown;
    }

    25% {
        color: black;
    }

    50% {
        color: brown;
    }

    75% {
        color: black;
    }

    100% {
        color: brown;
    }
}

.logo2 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: brown;
    font-size: 0.7rem;
    text-align: center;
}

.logo3 {
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    color: brown;
    text-align: center;
}

.leftheader {
    /* flex-basis: 20%; */
    text-align: center;
}

.rightheader {
    /* flex-basis: 80%; */
    padding-left: 0.5rem;
    margin: 0;
}

.rightheader h1 {
    font-size: 1.3rem;
    margin: 0;
    color: black;
    text-indent: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ---------------- BODY and General------------------ */

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(226, 226, 226, 0.625);
}

.paragraph {
    /* color: grey; */
    text-align: justify;
}

.indent {
    text-indent: 2rem;
}

.wrapper {
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100%;
}

/* input:invalid {
    border: 2px dotted red;
} */

/* ------------------ NAV ---------------- */

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    text-align: center;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

nav li {
    width: auto;
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    background-color: #F2EBDF;
    border: 2px solid grey;
    /* display: inline-block; */
    flex-basis: 20%;
}

nav a {
    padding: 0.7rem;
    text-decoration: none;
    text-align: center;
    display: block;
    /*займет всею территорию */
}

nav a:link {
    color: black;
}

nav a:hover {
    background-color: whitesmoke;
    color: red;
}

@media (min-width: 670px) {

    .header {
        display: flex;
        flex-flow: row nowrap;
        justify-content: space-between;
    }

    nav {
        padding: 0.5rem;
        text-transform: uppercase;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }
}

a:link {
    text-decoration: none;
    color: rgb(25, 122, 236)
}

a:hover {
    color: red
}

.grid__body {
    /* display: grid; */
    /* grid-template-areas: 
        "about__head"; */
    /* grid-template:
        [start] "about about" 100px [row-2]
        [row-2] "about__box-left about__box-right" 1fr [row3] / 1fr 1fr
        [row3] "diplom__left diplom__right" 1fr [row4] / 1fr 1fr
        [row4] "sert__header sert__header" 1fr [row5] 
        [row5] "sert__left sert__right" 1fr [row-end]; */

    border: 0px solid gray;
    border-left: 0;
    border-right: 0;
    border-top: 0;

    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}



.about__header {
    grid-row: span;
    grid-column: 1 / 3;
    text-align: center;
    padding: 1rem 0 1rem 0;
}

.about__img-box {
    padding: 1rem 0 1rem 0;
    border: 1px solid black;
    width: 100%;
    text-align: center;
    overflow: hidden;
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    background-color: white;
}

.about__img {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.about__text {
    padding: 1rem 0 1rem 0;
    text-align: justify;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
}


.diplom__img {
    max-width: 400px;
}

.diplom__left {
    padding: 1rem 0 1rem 0;
    grid-row: 3 / 4;
    grid-column: 1 / 2;
    text-align: justify;
}

.diplom__img-box {
    padding: 1rem 0 1rem 0;
    grid-row: 3 / 4;
    grid-column: 2 / 3;
    background-color: white;
    border: 1px solid black;
    /* grid-area: diplom__right; */
}

@media (min-width: 992px) {
    .grid__body {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 6rem minmax(auto, 320px) 1fr 6rem minmax(about, 500px) 300px;
    }

    .about__text {
        padding: 1rem 2rem 1rem 2rem;
    }

    .diplom__left {
        padding: 1rem 2rem 1rem 2rem;
    }
}

/* ----------------------- Sert ----------- */
.sert__header {
    padding: 1rem 0 1rem 0;
    grid-row: 4 / 5;
    grid-column: 1 / 3;
    text-align: center;
}

.sert__box-img {
    padding: 1rem 0 1rem 0;
    border: 0px solid black;
    width: 100%;
    text-align: center;
    overflow: hidden;
    grid-row: 5 / 6;
    grid-column: 1 / 2;
}

.sert__img {
    width: 100%;
    max-width: 400px;
    border: 2px solid grey;
}

.sert__text {
    padding: 1rem 2rem 1rem 2rem;
    text-align: left;
    grid-row: 5 / 6;
    grid-column: 2 / 3;
}

.sert__after {
    padding: 2rem 0 2rem 0;
    background-color: lavender;
    width: 100%;
    grid-row: 6 / 7;
    grid-column: 1 / 3;
}

.smaller {
    font-size: smaller;
    color: #594D43;
}

.center {
    text-align: center;
}


/* .clearfix:after {content: "";display: table; clear: both;} */
.fig {
    /* display: block; Блочный элемент (для старых браузеров) */
    text-align: center;
    /* Выравнивание по центру */
    font-style: italic;
    /* Курсивное начертание */
    margin-top: 0;
    /* Отступ сверху */
    margin-bottom: 5px;
    /* Отступ снизу */
    color: black;
    /* Цвет подрисуночной подписи */
    font-size: 0.7rem;
    width: 100%;
}

/* ---------------------- Contact Form ------------ */

.contact-wrapper {
    background-color: white;
    text-align: center;
    max-width: 100%;
}

.contact-form {
    margin: 0 auto;
    padding: 1rem 0 0 0;
}

legend {
    font-size: 1.5em;
    padding: 0 0.3rem;
    margin: 0 auto;
    color: gray;
}

.contact-form fieldset {
    padding: 2rem;
    margin: 0 auto;
    border: 5px solid lightgray;
    background-color: whitesmoke;
    width: 90%;
}

.contact-form__line {
    margin-bottom: 1rem;
    padding-bottom: 1.2rem;
    position: relative;
}

/* .contact-form__line.success i.fa-check-circle {
    visibility: visible;
    color: green;
}
.contact-form__line.error i.fa-exclamation-circle {
    visibility: visible;
    color: red;
} */

.small {
    opacity: 0;
    color: red;
    text-align: right;
    position: absolute;
    bottom: 0;
    right: 20px;
}

/* .contact-form__line i {
    visibility: hidden;
    position: absolute;
    top: 37px;
    right: 30px;
} */
.visible {
    opacity: 1;
}

.contact-form__label {
    display: inline-block;
    /* float: left; */
    text-align: left;
    width: 100%;
    /* float: none; */
    margin: 0 0 5px 0;
}

.contact-form__input {
    width: 100%;
    height: 3rem;
    font-size: 1rem;
    padding-left: 0.5rem;
    border: solid 2px darkgray;
    display: block;
    font-family: inherit;
    border-radius: 3px;
    transition: all 0.5s ease 0s;
}

.contact-form__input_success {
    border-color: green;
}

.contact-form__input_error {
    border-color: red;
}

/* .contact-form__input.valid {
        color: #156815;
    }
    .contact-form__input.invalid {
        color: #FF0000;
    } */

.contact-form__input:focus {
    outline: none;
    /* border-color: lightskyblue; */
    box-shadow: 0 0 15px gray;
}

.textarea {
    height: 10rem;
    padding: 0.5rem;
    text-align: left;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    min-height: 120px;
    resize: vertical;
    /* margin: 0 auto; */
}

/* input:not([type="radio"]){
    display: block;
    margin: 0 auto;
    margin-bottom: 2rem;
    width: 20rem;
    font-size: 1rem;
    padding: 0.3rem 1rem;
    border: 1px solid lightgray;
} */

@media (min-width: 620px) {
    .contact-form {
        max-width: 900px;
    }

    .contact-form__line {
        text-align: right;
        /* border: 2px solid red; */
        padding-top: 20px;
    }

    .contact-form__label {
        padding-right: 0.5rem;
        text-align: left;
        display: inline;
    }

    .contact-form__input {
        display: inline-block;
    }

    .contact-form__input_width-short {
        width: 50%;
    }
}

/* ----- Button ----- */
.contact-button {
    margin: 1rem 1rem 1rem 1rem;
    background-color: #F2EBDF;
    border: 2px solid grey;
    padding: 1rem;
    cursor: pointer;
    transition: 0.4s;
    text-transform: uppercase;
    font-weight: 800;
}

.contact-button:hover {
    background-color: whitesmoke;
    cursor: pointer;
    color: red;
}

.contact-button:disabled {
    cursor: not-allowed;
    display: disabled;
}

.contact-button:disabled:hover {
    cursor: not-allowed;
    display: disabled;
}

/* -------------- SLIDE ----------------- */
.swiper-slide {
    text-align: center;
}

.galery-img {
    height: 600px;
}

/* .swiper-container {
    width: 100%;
    height: 100%;
  }
  .swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #fff; */

/* Center slide text vertically */
/* display: -webkit-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
  }

  .swiper-pagination-bullet {
    width: 20px;
    height: 20px;
    text-align: center;
    line-height: 20px;
    font-size: 12px;
    color: #000;
    opacity: 1;
    background: rgba(0, 0, 0, 0.2);
  }

  .swiper-pagination-bullet-active {
    color: #fff;
    background: #007aff;
  } */

/* --------------------- FOOTER --------------- */


footer {
    background-color: #F2EBDF;
    padding: 10px;
    text-align: center;
    border-top: 2px dotted brown;
}

footer ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

footer li {
    display: inline-block;
    padding: 1rem;
}

.blur {
    color: gray;
    text-shadow: -1px -2px 0.5em;
    text-indent: 0;
    margin: 0;
}