:root {
    --white-text: #F8FCFF;
    --accent-text: #1D6FB6;
    --seryy: #D9D9D9;
    --orange: #FFA55C;
    --transition: all .4s;
}

body {
    font-family: "Montserrat", "Arial", sans-serif;
    line-height: 1.5;
    color: black;
    background: var(--white-text);
}

.body--opened-menu {
    overflow: hidden;
}

.body--opened-modal {
    overflow: hidden;
}


.wrapper {
    min-height: 100%;
    width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 0 15px;
    height: 100%;
}

.main {
    flex-grow: 1;
}

.main__about {
    padding: 140px 0;
}

.button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FF9138;
    border-radius: 100px;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    padding: 3px 15px;
    height: 62px;
    transition: var(--transition);
}

.button:hover {
    background: #FFA55C;
}

.modal {
    position: fixed;
    inset: 0;
    background: #00000048;
    z-index: 15;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;
    transition: all .6s;

}

.body--opened-modal .modal {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.modal__window {
    background: var(--white-text);
    border-radius: 20px;
    padding: 0 60px 60px;
    max-width: 428px;
    position: relative;
}

.modal__cancel {
    position: absolute;
    top: 20px;
    right: 20px;
}

.modal__cancel path {
    transition: var(--transition);
}

.modal__cancel:hover path,
.modal__cancel:hover rect {
    stroke: #AC907A;
}

.modal__img {
    margin: -65px 15px 0 13px;
}

.modal__title {
    font-family: 'Gabriola';
    font-weight: 400;
    font-size: 42px;
    line-height: .9;
    letter-spacing: 0%;
    margin-bottom: 10px;

}

.modal__text {
    margin-bottom: 30px;
}

.modal__form-lable {
    position: relative;
    display: block;
    margin-bottom: 10px;
}

.field {
    position: relative;
    display: block;
}

.field span {
    position: absolute;
    top: 12px;
    left: 28px;
    font-size: 11px;
    color: #AC907A;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.field__input {
    display: block;
    width: 100%;
    background: #00000000;
    border: 1px solid #AC907A;
    border-radius: 100px;
    padding: 19px 42px 19px 28px;
    font-size: 16px;
    transition: var(--transition);
}

.field__input:hover {
    border-color: var(--orange);
}

.field__input::placeholder {
    color: #AC907A;
    transition: var(--transition);
}

.field__input:hover::placeholder {
    color: var(--orange);
}

.field__input:focus {
    padding: 26px 42px 12px 28px;
}

.field__input:focus+span {
    opacity: 1;
    visibility: visible;
}

/* ======================бургер======================================= */
.burger-icon {
    display: none;
    z-index: 15;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
}

.burger-icon span,
.burger-icon span::before,
.burger-icon span::after {
    display: block;
    width: 40px;
    height: 3px;
    border-radius: 50px;
    background: #000d18;
    transition: all 0.5s;
}

.burger-icon span {
    position: relative;
}

.burger-icon span::before,
.burger-icon span::after {
    content: '';
    position: absolute;
}

.burger-icon span::before {
    top: -8px;
}

.burger-icon span::after {
    bottom: -8px;
}


/* анимация бургера */
.body--opened-menu .burger-icon span {
    background: transparent;
}

.body--opened-menu .burger-icon span::before {
    top: 0px;
    transform: rotate(45deg);
}

.body--opened-menu .burger-icon span::after {
    bottom: 0px;
    transform: rotate(-45deg);
}

/* ============================================================================== */

.header {
    /* центр и низ изображения */
    background: url("../img/decor/bg-header.png") 50% 100%/ cover no-repeat;
}

.header__top {
    padding-top: 19px;
}

.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.nav {
    display: flex;
    justify-content: center;
}

.header__logo {
    max-width: 174px;
    z-index: 17;
}

/* Для изображения внутри ссылки */
.header__logo img {
    width: 100%;
}

.nav__list {
    display: flex;
    gap: 4vh 40px;

}

.nav__item:last-child {
    margin-right: 0px;
}

.nav__item-link {
    z-index: 1;
    color: #312c27;
    /* Зачем? */
    padding: 5px 0;
    position: relative;
}

.nav__item-link::before {

    display: block;
    color: #312c27;
    /* Зачем? */
    padding: 5px 0;

    content: "";
    position: absolute;
    left: -13px;
    top: -13px;
    z-index: -1;
    width: 34px;
    height: 34px;

    /* почему */
    border-radius: 50%;
    background: var(--orange);
    opacity: 0;
    transition: all 0.5s;
}

.nav__item-link:hover::before {
    opacity: 1;
}

.header-hero {
    padding: 50px 0 140px;
}

/* ======================================= */

.hero {
    padding: 50px 0 140px;
}

.hero-inner {
    display: flex;
    align-items: flex-end;

    /* мб так лучше? */
    justify-content: flex-start;
    align-items: center;
    gap: 137px;
}

.hero-left {
    justify-content: center;
}

.hero-left__content {
    position: relative;
    max-width: 540px;
}

.hero-info {
    margin-bottom: 20px;
}

.data {
    line-height: 1.6;
    text-transform: uppercase;
    color: #b197b2;
    margin-right: 10px;
}

.data:last-child {
    margin-right: 0px;
}

.data:first-of-type {
    position: relative;
}

.data:first-of-type::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 95%;
    transform: translateY(-50%);
    margin: 0 8px;
    width: 4px;
    height: 4px;
    background-color: #b197b2;
    border-radius: 50%;
}

.hero-left__title {
    font-family: 'Gabriola';
    font-size: 74px;
    line-height: 82%;
    color: black;
    margin-bottom: 20px;
}

.hero-left__text {
    color: black;
    margin-bottom: 40px;
    max-width: 360px;
}

.hero-left__button {
    max-width: 360px;
}


/* ============================================================================== */
.hero-right {
    position: relative;
}

.hero-right__foto {
    width: 100%;
    max-width: 400px;
}

.hero-right__move {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    position: absolute;
    right: -47%;
    top: 76%;
    min-width: 220px;
}

.hero-right__move--mobile {
    display: none;
}

.play {
    flex-shrink: 0;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    box-shadow: 0 4px 20px 0 rgba(184, 148, 126, 0.3);
    background: #FFE0CB;
    position: relative;
    margin-right: 10px;
}

.play::before {
    position: absolute;
    content: "";
    border: 1px solid var(--orange);
    inset: 5px;
    border-radius: 50%;
    box-shadow: 0 4px 20px 0 rgba(184, 148, 126, 0.3);
    opacity: 0;
    transition: all 0.5s;
}

.play:hover:before {
    opacity: 1;
}

.move {
    position: absolute;
    left: 30px;
    top: 25px;
}

/* ====Footer================================================================ */

/* height: 300px;
    background: url("../img/decor/bg-footer.png") 50% 100%/ cover no-repeat; */


.footer {
    background: #AB8261;
    padding: 60px 0 60px;
    max-height: 273px;
    color: #FFF9F4;
}

.footer-inner {
    display: grid;
    gap: 15px;
    justify-content: space-between;
    grid-template-columns: .9fr .9fr 1.1fr auto;
    grid-template-rows: auto auto;
}

.footer__col:first-child {

    margin-top: -30px;
}

.footer__col:last-child {
    justify-items: end;
}

.footer__logo {
    display: block;
    max-width: 240px;
}

.footer__logo img {
    width: 100%;
}

.footer__logo-text {}

.social {
    line-height: 0;
}

.social__list {
    display: flex;
    flex-direction: row;
    gap: 15px;
}


.social__link {
    display: block;
}

.social__svg {
    transition: var(--transition);
}

/* для плавного перехода к svg */
.social__svg path {
    transition: var(--transition);
}

.social__svg:hover path {
    fill: #FFA55C;
}

/* для выравния верха, тк мы используем padding сверху 5    */
.footer__col-list {
    margin-top: -5px;
}

.footer__col-item {
    margin-bottom: 10px;
}

.footer__col-item:last-child {
    margin-bottom: 0px;
}

.footer__col-link {
    display: inline-block;
    padding: 5px 0;
    z-index: 1;
    position: relative;
}

.footer__col-link::before {
    content: "";
    position: absolute;
    left: -13px;
    top: -13px;
    z-index: -1;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange);
    opacity: 0;
    transition: all 0.5s;
}

.footer__col-link:hover::before {
    opacity: 1;
}

.footer__contact-item {
    margin-bottom: 10px;
}

.footer__contact-item:last-child {
    margin-bottom: 0px;
}

.footer__col-tel {
    margin-bottom: 47px;
}

.footer__col-text {
    margin-left: 10px;
}

.footer__col-number {
    display: block;
    font-weight: 500;
    font-size: 24px;
    line-height: 160%;
    text-transform: uppercase;
    transition: var(--transition);
}

.footer__col-number:hover {
    color: var(--orange);
}

.footer__col-copy {
    color: #DEC5B1
}

/* ======================================================================= */



.section_aboutUs {}

.aboutUs-inner {
    /* для красивого позиционирования двух контентов а имеено картинки и всего остального */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 53px;
}

.aboutUs_img {
    border-radius: 20px;
    position: relative;

    /* если внутрь вставить, например, кнопку с position: absolute, она может вылезти за скруглённые края — и это будет выглядеть некрасиво. */
    overflow: hidden;
}

.aboutUs_img>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
}

.aboutUs__img-control {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    position: absolute;
    bottom: 4.7%;
    left: 5%;
    width: 300px;
    background: #957B97E5;
    border-radius: 20px;
    padding: 15px 20px;
    color: var(--white-text);
}

.aboutUs__img-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    box-shadow: 0 4px 20px 0 rgba(184, 148, 126, 0.3);
    background: var(--white-text);
    position: relative;

}

.aboutUs__img-button::before {
    position: absolute;
    content: "";
    border: 1px solid #CEAAD0;
    inset: 5px;
    border-radius: 50%;
    box-shadow: 0 4px 20px 0 rgba(184, 148, 126, 0.3);
    opacity: 0;
    transition: all 0.5s;
}

.aboutUs__img-button:hover::before {
    opacity: 1;
}

.img__text {
    text-align: left;
}

.aboutUs__body {}

.aboutUs__heading {
    margin-bottom: 30px;
}

.aboutUs__title {
    font-family: 'Gabriola';
    font-size: 74px;
    line-height: 0.82;
}

.aboutUs__title__text {}

.aboutUs__text {
    /* text-align: justify; */
    margin-bottom: 40px;
}

.aboutUs__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(2, 1fr);
}

.aboutUs__grid-item {
    border-radius: 20px;
    background: #FFE0CB;
    padding: 29px 24px;
    display: flex;
    gap: 15px;

    align-items: center;
    justify-content: center;

}

.aboutUs__grid-img {
    border: 1px solid #312C27;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

}

.aboutUs__grid-text {}





/* ========================================================================= */
@media (max-width: 1256px) {

    .hero-right__foto {
        margin: 0;
        max-width: 377px;
    }

    .hero-right__move {
        position: static;
        min-width: none;
        margin-top: 30px;
    }
}

@media (max-width: 1000px) {
    .footer-inner {
        display: grid;
        gap: 15px;
        justify-content: space-between;
        grid-template-columns: .9fr .9fr 1.1fr;
        grid-template-rows: auto 1;
    }

    .footer__contact-list {
        display: flex;
        gap: 95px;
    }

    .grid-1 {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .grid-2 {
        grid-column: 2;
        grid-row: 1;
        text-align: center;
    }

    .grid-3 {
        grid-column: 1/3;
        grid-row: 2;
    }

    .grid-4 {
        grid-column: 3/4;
        grid-row: 1/3;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
    }
}

@media (max-width: 874px) {
    .footer__contact-list {
        gap: 20px;
    }
}

@media (max-width: 753px) {
    .footer {
        max-height: none;
    }

    .footer-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        align-items: center;
    }

    .footer__logo {
        display: block;
        max-width: 240px;
    }

    .social__list {
        justify-content: center;
    }

    .footer__col-tel {
        margin-bottom: 10px;
    }

    .footer__logo-text {
        margin-bottom: 10px;
    }

}


@media (max-width: 900px) {
    .nav {
        position: fixed;
        inset: 0;
        z-index: 15;
        background: var(--white-text);
        padding: 26vh 15px 30px;
        font-size: 24px;


        /* анимация переъода выпадающего окна */
        transform: translateY(-50%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s;
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
    }

    .body--opened-menu .nav {
        transform: translateY(0%);
        opacity: 1;
        visibility: visible;
    }

    .burger-icon {
        display: flex;
    }
}

@media (max-width: 834px) {
    .hero-right__move--mobile {
        display: flex;
        margin-bottom: 10px;
    }

    .hero-inner {
        display: block;
    }

    .hero-left {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .hero-left__text {
        margin-bottom: 0;
    }

    .hero-right__move {
        margin-top: 15px;
    }

    .hero-right {
        display: none;
    }

    .hero-left__button {
        margin-top: 15px;
        padding: 3px 80px;
    }

    .hero-left__title {
        font-family: 'Gabriola';
        font-size: 12vw;
    }
}