/* подключение шрифтов */
/* ubuntu-regular - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/ubuntu-v20-cyrillic_latin-regular.eot'); /* IE9 Compat Modes */
  src: url('../fonts/ubuntu-v20-cyrillic_latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/ubuntu-v20-cyrillic_latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/ubuntu-v20-cyrillic_latin-regular.woff') format('woff'), /* Modern Browsers */
       url('../fonts/ubuntu-v20-cyrillic_latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/ubuntu-v20-cyrillic_latin-regular.svg#Ubuntu') format('svg'); /* Legacy iOS */
}

/* ubuntu-500 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/ubuntu-v20-cyrillic_latin-500.eot'); /* IE9 Compat Modes */
  src: url('../fonts/ubuntu-v20-cyrillic_latin-500.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/ubuntu-v20-cyrillic_latin-500.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/ubuntu-v20-cyrillic_latin-500.woff') format('woff'), /* Modern Browsers */
       url('../fonts/ubuntu-v20-cyrillic_latin-500.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/ubuntu-v20-cyrillic_latin-500.svg#Ubuntu') format('svg'); /* Legacy iOS */
}

/* ubuntu-700 - cyrillic_latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Ubuntu';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/ubuntu-v20-cyrillic_latin-700.eot'); /* IE9 Compat Modes */
  src: url('../fonts/ubuntu-v20-cyrillic_latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('../fonts/ubuntu-v20-cyrillic_latin-700.woff2') format('woff2'), /* Super Modern Browsers */
       url('../fonts/ubuntu-v20-cyrillic_latin-700.woff') format('woff'), /* Modern Browsers */
       url('../fonts/ubuntu-v20-cyrillic_latin-700.ttf') format('truetype'), /* Safari, Android, iOS */
       url('../fonts/ubuntu-v20-cyrillic_latin-700.svg#Ubuntu') format('svg'); /* Legacy iOS */
}

/* global style */
*,*::after,*::before{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --yellow: #e8cb0f;
    --dark-gray: #2a363b;
    --light-gray: #f2f2f2;
    --bg: #f1f2f6;
    --text: #324046;
    --time: 4s;
    --qty: 3;
}

body{
    font-family: 'Ubuntu', sans-serif;
    background-color: var(--bg);
    font-size: 18px;
    font-weight: 400;
    color: var(--text);
}

a{
    text-decoration: none;
}

ul{
    list-style: none;
}

section{
    padding: 3% 15%;
}

header, footer{
    padding: 1% 15%;
}

.section-title{
    font-size: 42px;
    font-weight: 500;
    text-align: center;
    margin: 1rem 0 1rem 0;
}

.btn{
    background-color: var(--yellow);
    color: var(--text);
    padding: 10px 25px;
    border-radius: 30px;
    border: 1px solid var(--yellow);
    transition: all 0.3s ease;
}

.btn:hover{
    background-color: #fff;
}

.active{
    border-bottom: 2px dashed var(--yellow);
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--dark-gray);
}
.header__call {
    display: flex;
    align-items: center;
}
.call-text {
    margin-right: 30px;
}

/* header adaptive*/
@media (max-width: 1024px){
    .header{
        flex-wrap: wrap;
        justify-content: space-around;
        line-height: 2.5;
    }

    .tel-icon{
        margin-top: 15px;
    }
}

@media (min-width: 320px) and (max-width: 480px){
    .header{
        padding: 1% 5%;
        font-size: 18px;
    }

    .logo-img{
        max-width: 80%;
    }

    .header__logo{
        text-align: center;
    }

    .tel-icon{
        margin-top: 15px;
    }
}

/* menu */
.nav {
    background-color: var(--dark-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}
.menu {
    display: flex;
    justify-content: center;
}
.menu__item {
    padding: 30px 55px;
}
.menu-link {
    color: #fff;
    text-transform: uppercase;
    transition: all 0.5s ease;
}

.menu-link:hover{
    color: var(--yellow);
}

/* menu adaptive*/
@media (max-width: 1280px){
    .menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .menu__item {
        padding: 20px 30px;
    }
}

@media (min-width: 320px) and (max-width: 480px){
    .nav{
position: relative;
z-index: 0;
padding: 1% 0% 10%;
    }

}

/* о компании */
.about {
    background-image: url(../img/index/about.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 80vh;
    text-align: center;
}
.about-title {
    font-size: 48px;
    font-weight: 700;
    margin-top: 80px;
}
.about__content {
    margin-top: 80px;
}
.about__content-text {
    font-size: 24px;
    line-height: 2;
}

@media (max-width: 1200px){

    .about{
        height: 65vh;
        padding: 1% 6%;
    }

    .about-title{
        margin-top: 50px;
        font-size: 38px;
    }

    .about__content{
        margin-top: 50px;
    }

    .about__content-text{
        font-size: 20px;
        line-height: 1.8;
    }
}

@media(max-width: 700px){
    .about{
        background-image: url(../img/index/about-adapt.jpg);
        height: 55vh;
        padding: 1% 6%;
    }

    .about-title{
        margin-top: 50px;
        font-size: 32px;
    }

    .about__content{
        margin-top: 50px;
    }

    .about__content-text{
        font-size: 18px;
        line-height: 1.6;
    }
}

@media(max-width: 700px){
    .about{
        background-image: none;
        height: 70vh;
    }
}

/* мы в цифрах */
.number{
    background-color: var(--light-gray);
    scroll-margin-top: 1em;
}

.number__inner{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    text-align: center;
    margin-top: 70px;
}

.number-item{
    font-size: 26px;
    flex: 0 0 20%;
    /* opacity: 0; */
    animation: number-opacity  5s forwards;}

.number-item__link{
    background-color: var(--yellow);
    display: inline-block;
    border-radius: 50%;
    padding: 40px;
    color: var(--dark-gray);
    font-weight: 700;
}

.number-item__link:hover{
    background-color: var(--dark-gray);
    color: var(--yellow);
}

.number-inner__text{
    margin-top: 30px;
    line-height: 1.3;
}

@keyframes number-opacity{
    0%{
        opacity: 0;
    }

    50%{
        opacity: 0.5;
    }
    100%{
        opacity: 1;
    }
}

@media (max-width:1024px){
    .number{
        padding: 5%;
    }

    .section-title{
        font-size: 32px;
    }

    .number-item{
        font-size: 22px;
        flex: 1 0 50%;
        margin-bottom: 20px;
    }

    .number-inner__text{
        margin-top: 10px;
        line-height: 1.3;
    }
}

@media (max-width:666px){
    .number{
        padding: 5%;
    }

    .number__inner{
        margin-top: 30px;
    }

    .number-item{
        font-size: 20px;
        flex: 1 0 100%;
        margin-bottom: 20px;
    }

    .number-inner__text{
        margin-top: 10px;
    }

    .number-item__link{
        padding: 30px;
    }
}

/* преимущества */
.feature {
    background-color: #fff;
}
.feature__list {
    font-size: 24px;
    margin-top: 50px;
    counter-reset: number-circle;
}

.list-item {
    position: relative;
    padding: 0 0 30px 80px;
    line-height: 1.5;
    margin: 0 1.5em 0;
}

.list-item::before{
    position: absolute;
    content: counter(number-circle);
    counter-increment: number-circle;
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid var(--yellow);
    border-radius: 50%;
    color: var(--yellow);
    top: 8px;
    left: 0;
    text-align: center;
    vertical-align: middle;
}

.text_color {
    color: var(--yellow);
    font-weight: 500;
}

/* feature adaptive */
@media (max-width: 1024px){
    .feature{
        padding: 3% 5%;
    }

    .feature__list{
        font-size: 22px;
    }
}

@media (max-width: 480px){
    .feature{
        padding: 3% 5%;
    }

    .feature__list{
        font-size: 18px;
        margin-top: 30px;
    }

    .list-item{
        padding: 0 0 20px 0;
        text-align: center;
    }

    .list-item::before{
        display: none;
    }
}

/* портфолио */
.portfolio {
    background-color: var(--light-gray);
}

.portfolio__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.portfolio-item {
    border-radius: 5px;
    min-height: 32vh;
    background-size: cover;
    background-position: center;
    align-content: center;
    transition: all 0.5s;
}

.portfolio-item:nth-child(2){
    grid-column: 2/4;

}

.portfolio-item:nth-child(4){
    grid-column: 1/3;
}

.portfolio-item:nth-child(6){
    grid-column: 4;
    grid-row: 2/4;
}

.portfolio-item:hover{
    transform: scale(1.2);
    border: 3px solid var(--yellow);
}

.portfolio_button{
grid-column: 1/5;
text-align: center;
margin-top: 50px;
}

.btn-portfolio{
    padding: 20px 25px;
}

@media (max-width: 1200px){
    .portfolio{
        padding: 3% 5%;
    }
}

@media (max-width: 1024px){
    .portfolio__inner{
        grid-template-columns: repeat(3, 1fr);
        margin: 60px 0 20px;
    }

    .portfolio_button{
        grid-column: 1/4;
        margin: 40px 20px;
    }

    .btn-portfolio{
        padding: 15px 20px;
    }
}

@media (max-width: 768px){
.portfolio__inner{
    grid-template-columns: repeat(2fr, 1fr);
    margin: 60px 0 20px;
}

.portfolio-item {
    min-height: 25vh;
}

.portfolio-item:hover{
    transform: scale(1.1);
}
}

/* услуги */
.services{
    scroll-margin-top: 50px;
    background-color: #fff;
}

.services__inner{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 50px 0 0 0;
    align-items: center;
}

.service-item{
    position: relative;
    z-index: 0;
}

.service-item-img{
    object-fit: cover;
    max-width: 100%;
}

.service-item-img:hover{
    filter:grayscale(50%);
    filter: contrast(50%);
    transition: all 0.5s;
}

.indent{
    padding: 20px 30px 20px 0;
    font-size: 18px;
    line-height: 1.3;
}

.service-item:nth-child(3),
.service-item:nth-child(6),
.service-item:nth-child(8){
    padding-left: 30px;
}

.service-item-title{
    color: var(--yellow);
    margin-bottom: 20px;
}

.service-item:nth-child(2)::before,
.service-item:nth-child(4)::before{
    position: absolute;
    content: "";
    border: 20px solid transparent;
    border-right: 20px solid var(--yellow);
    top: 50%;
    right: 100%;
    z-index: 1;
}

.service-item:nth-child(5)::before,
.service-item:nth-child(7)::before{
    position: absolute;
    content: "";
    border: 20px solid transparent;
    border-left: 20px solid var(--yellow);
    top: 50%;
    left: 100%;
    z-index: 1;
}

@media (max-width: 1440px){
    .services{
        padding: 3% 5%;
    }
}

@media (max-width: 1200px){
    .services__inner{
        grid-template-columns: repeat(2, 1fr);
        margin: 30px 0;
    }

    .service-item:nth-child(3){
    padding-left: 0;
}
}

@media (max-width: 768px){

    .service-item:nth-child(5)::before,
    .service-item:nth-child(7)::before,
    .service-item:nth-child(2)::before,
    .service-item:nth-child(4)::before
    {
        border: none;
        border-left: none;
        border-right: none;
    } 
}

@media (max-width: 540px){
    .services__inner{
        grid-template-columns: repeat(1, 1fr);
        margin: 30px 0;
    }

    .service-item:nth-child(6),
    .service-item:nth-child(8){
        padding-left: 0;
    }

    .service-item:nth-child(5)::before,
    .service-item:nth-child(7)::before,
    .service-item:nth-child(2)::before,
    .service-item:nth-child(4)::before
    {
        border: none;
        border-left: none;
        border-right: none;
    } 

    .service-item:nth-child(5){
        order: 5;
    }

    .service-item:nth-child(6){
        order: 4;
    }

    .service-item:nth-child(7){
        order: 8;
    }

    .service-item:nth-child(8){
        order: 7;
    }
}

/* заявка */
.request{
    background-image: url(../img/index/request.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 50vh;
    background-attachment: fixed;
    padding: 3% 5%;
}

.white{
    color: #fff;
}

.request__form{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 150px;
}

.request__form-input{
    width: 20%;
    font-size: 18px;
    border-radius: 2px;
    border: none;
    padding: 15px;
    margin: 0 20px;
}

.request__form-input:focus{
    outline: none;
    border: 2px solid var(--yellow);
}

.btn-form{
    padding: 15px 35px;
    font-size: 18px;
}

@media (max-width: 1200px){
    .request{
        height: 40vh;
        padding: 3%;
    }

    .request__form-input{
        font-size: 16px;
        width: 30%;
    }

    .btn-form{
        font-size: 16px;
    }
}

@media (max-width: 1024px){

    .request{
        height: 50vh;
        padding: 3%;
    }

    .request__form{
        flex-direction: column;
        margin: 50px;
    }

    .request__form-input{
        width: 70%;
        margin: 20px 0;
    }
}

@media (max-width:520px){
    .request{
        height: 55vh;
    }

    .request__form-input{
        width: 95%;
        margin: 10px 0;
        font-size: 14px;
    }

    .request__form{
        margin-top: 20px;
    }

    .btn-form{
        font-size: 14px;
        margin-top: 20px;
    }
}

/* footer */
.footer{
    display: flex;
    justify-content: space-between;
    background-color: var(--dark-gray);
    color: #fff;
    align-items: center;
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: auto;
}

.list-item-link {
    color: #fff;
    line-height: 2;
    transition: all 0.5s;
}

.list-item-link:hover{
    color: var(--yellow);
}

.social__icon-link{
    font-size: 24px;
    color: var(--yellow);
    margin: 0 5px;
    transition: all 0.5s;
}

.social__icon-link:hover{
    color: #fff;
}

.footer__text{
    margin-bottom: 15px;
}

.contact__list-item{
    line-height: 2;
}

.contact__list-item i{
    color: var(--yellow);
    margin-right: 5px;
    font-size: 24px;
}

#mybtn{
    /* display: none; */
    position: fixed;
    border: 1px solid var(--yellow);
    bottom: 20px;
    right: 30px;
    z-index: 20;
    border-radius: 5px;
    background-color: var(--dark-gray);
    outline: none;
    cursor: pointer;
    padding: 5px;
    transition: all 0.5s;
}

#mybtn:hover{
    background-color: var(--yellow);
}

@media (max-width: 1200px) {
    .footer{
        padding: 1% 10%;
    }
}

@media (max-width: 1024px) {
    .footer {
        padding: 1% 5%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        text-align: center;
    }

    .footer__logo {
        order: 1;
    }

    .footer__link {
        order: 3;
    }

    .footer__social {
        order: 4;
    }

    .footer__contact {
        order: 2;
    }
}

@media (max-width: 768px) {
    .footer{
        grid-template-columns: 1fr;
    }

    #mybtn {
        display: none;
    }
}



/* страница hall */
.section-subtitle{
    text-align: center;
    font-size: 32px;
    font-weight: 500;
    margin: 1.5em 1em;
}

.rent-list{
    padding: 15px 0;
    border-bottom: 1px solid var(--yellow);
    cursor: pointer;
}

.rent-list-title{
    font-size: 22px;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.rent-list-title::webkit-datails-marker {
    display: none;
}

.rent-list-title::before {
    content:"+";
    font-size: 48px;
    color: var(--yellow);
    margin-right: 10px;
}

details[open] .rent-list-title::before {
    content: "-";
}

.list{
    list-style: disc;
    line-height: 2;
    padding-left: 20px;
}

/* описание зала */

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


/* неуаправляемый слайдер */
.hall-slider{
position: relative;
width: 50%;
height: 27em;
overflow: hidden;
}

.slide{
    position: absolute;
    width: 100%;
    height: 100%;
    left: -100%;
    animation: slide calc(var(--time) * var(--qty)) linear infinite;
    z-index: 0;
}

.slide:nth-child(2){
animation-delay: var(--time);
}

.slide:nth-child(3){
    animation-delay: calc(var(--time) * 2);
}

@keyframes slide {
    0%{
        z-index: 10;
    }

    7%{
        left: 0;
    }

    66%{
        left: 0;
    }

    100%{
        left: -100%;
    }
}

.hall-text{
    width: 45%;
    line-height: 1.5;
}

.hall-text-btn{
    margin: 20px 0; 
}

.hall-text-list{
    list-style: disc;
    padding-left: 15px;
}

/* таблица */
.hall-table{
    max-width: 100%;
    border-collapse: collapse;
}

.head-table {
    font-weight: 500;
}

.hall-table td{
    padding: 15px;
    border-bottom: 1px solid var(--yellow);
}

.hall-table tr{
    transition: all 0.5s;
}

.hall-table tr:hover{
    background-color: #e4e4e4;
}

/* hall adaptive */
@media (max-width: 1200px){

    .hall__description{
        display: flex;
        justify-content: center;
        flex-direction: column;
        padding: 3% 10%;
}

.hall-text{
    width: 100%;
    line-height: 1.5;
}

.hall-slider{
    width: 100%;
}

.milan-slide{
    order: 1;
}

.milan-text{
    order: 2;
}
}

@media (max-width: 768px){
.hall-table{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hall-table thead, 
.hall-table tbody,
.hall-table tr{
display: contents;
}

.hall-table td{
    display: block;
    text-align: center;
    padding: 10px;
}

.hall-table td:hover{
    background-color: #e4e4e4;
}
.hall-table td:nth-of-type(1){
    order: 1;
}

.hall-table td:nth-of-type(2){
    order: 2;
}

.hall-table td:nth-of-type(3){
    order: 3;
}

.hall-table td:nth-of-type(4){
    order: 4;
}

.section-subtitle{
    margin: 0.5em 0em;
}

.hall-slider{
    height: 17em;
}
}

@media (max-width: 480px){
    .hall-slider{
        height: 10em;
    }
}

/* контакты */

.contacts-title {
    margin-top: 1.4em;
}

.info {
    padding: 3% 14%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.info-item {
    background-color: #fff;
    padding: 38px 30px;
    width: 45%;
}

.info-item-title {
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 20px;
}

.info-parking {
    background-color: #fff;
    padding: 38px 40px;
    margin: 0% 18%;
    width: 65%;
}

.info-item-location {
    display: flex;
    justify-content: space-between;
}

.location-img {
    object-fit: cover;
    max-width: 49%;
}

/* contacts adaptive */
@media (max-width: 920px) {
    .info{
        padding: 3% 10%;
        flex-direction: column;
    }

    .info-item-location {
        flex-direction: column;
        justify-content: center;
    }

    .location-img {
        object-fit: cover;
        max-width: 100%;
    }

    .info-item {
        width: 90%;
        margin-bottom: 20px;
    }

    .title-adapt {
        font-size: 26px;
        margin: 1.5em 1em;
    }

    .info-parking {
         padding: 38px 40px;
    margin: 0% 18%;
    width: 70%;
}
}

@media (max-width: 450px) {
    .info-item i{
        display: none;
    }

    .info-parking {
    padding: 38px 40px;
    /* margin: 0% 18%; */
    width: 90%;
    margin: 0 auto;
}
}

/* портфолио */

.photo-filter{
    margin: 50px 0;
}

.filter-radio{
    position: absolute;
    display: none;
}

.filter-controls{
    text-align: center;
    margin-bottom: 2rem;
}

.filter-controls *{
    display: inline-block;
}

.controls-label{
    background-color: var(--yellow);
    padding: 0.5rem 1rem;
    border-radius: 0.7rem;
    margin: 0.25rem;
    cursor: pointer;
}

.portfolio-grid{
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.5em;
}

.portfolio__item{
    position: relative;
    z-index: 0;
    transition: 1s;
}

.portfolio-img{
    width: 100%;
    height: 40vh;
    object-fit: cover;
    border-radius: 5px
}

/* фильтр */

[value="all"]:checked~.portfolio__item[data-category]{
    display: block;
}

[value="family"]:checked~.portfolio-grid
.portfolio__item:not([data-category~="family"]),
[value="friends"]:checked~.portfolio-grid
.portfolio__item:not([data-category~="friends"]),
[value="love"]:checked~.portfolio-grid
.portfolio__item:not([data-category~="love"]),
[value="person"]:checked~.portfolio-grid
.portfolio__item:not([data-category~="person"]),
[value="baby"]:checked~.portfolio-grid
.portfolio__item:not([data-category~="baby"]),
[value="pet"]:checked~.portfolio-grid
.portfolio__item:not([data-category~="pet"])
{
    display: none;
}

@media (max-width: 1440px){
    .portfolio-grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px){
    .portfolio-grid{
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px){
    .portfolio-img{
        height: 25vh;    
    }
    .photo-filter{
        margin: 30px 0;
    }
}

@media (max-width: 480px){
    .portfolio-grid{
        grid-template-columns: 1fr;
    }

    .controls-label{
        font-size: 14px;
        
    }
    .portfolio-img{
        aspect-ratio: 1 / 1;
    }
}

.photo__slider {
    margin: 0 auto;
    width: 70%;
    height: 70vh;
    overflow: hidden;
    border: 2px solid var(--yellow);
    position: relative;
}

input[name="slide"] {
    position: absolute;
    visibility: hidden;
}

.slides__control {
    position: absolute;
    background-color: var(--dark-gray);
    display: flex;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
}

.bar {
    display: inline-block;
    width: 25px;
    height: 4px;
    background-color: var(--yellow);
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.5s;
}

.bar:hover {
    transform: scale(1.2);
    background-color: #fff;
}

.slides {
    display: flex;
    width: 400%;
    height: 100%;
}

.picture_active {
    width: 25%;
    transition: all 0.7s linear;
}

#sl1:checked~.picture_active {
    margin-left: 0;
}

#sl2:checked~.picture_active {
    margin-left: -25%;
}

#sl3:checked~.picture_active {
    margin-left: -60%;
}

#sl4:checked~.picture_active {
    margin-left: -90%;
}

/* slider JS */
.swiper {
    width: 70%;
    margin: 0 auto;
}

.swiper-wrapper img {
    max-width: 100%;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--yellow);
    
}

.slider-title {
    margin: 30px 0;
}

/* slider adaptive */
@media (max-width: 1200px) {
    .photo__slider {
        width: 90%;
        height: 80vh;
    }

    #sl3:checked~.picture_active {
        margin-left: -65%;
    }
    
    #sl4:checked~.picture_active {
        margin-left: -110%;
    }

    .swiper {
        width: 90%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .photo__slider,
    .hidden {
        display: none;
    }
}

/***************************BOOKING PAGE***************************/
.booking__scheme {
    display: flex;
    justify-content: center;
    margin: 50px 0;
}

.booking__forma{
    margin: 50px 0 20px;
}

.form__contacts{
    background-color: var(--dark-gray);
    color: #fff;
    line-height: 2;
}

.form-title{
    margin: 0 0 1rem 0;
}

.form-img{
    max-width: 100%;
    object-fit: cover;
    margin: 30px 0;
}

.booking__forma{
    background-color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking__form label{
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
}

.full{
    grid-column: 1/3;
}

.order{
    display: flex;
    justify-content: flex-start;
    margin-top: 20px;
}

.booking__form input, 
.booking__form textarea, 
.booking__form select{
    width: 100%;
    padding: 1em;
    border: 1px solid var(--yellow);
    font-size: 18px;
}

.booking__form input:focus, 
.booking__form textarea:focus, 
.booking__form select:focus{
outline: none;
border-color: var(--dark-gray);
}

.booking__form input::placeholder, 
.booking__form textarea::placeholder, 
.booking__form select::placeholder{
    font-family: 'Ubuntu', sans-serif;
}

.full-checkbox{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

/* стилизация check-box */
.check-box{
    width: 1px;
    height: 1px;
    position: absolute;
    overflow: hidden;
    clip: rect(0,0,0,0);
    padding-left: 22px;
}

.square{
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid var(--yellow);
    margin-left: -30px;
    margin-top: 3px;
}

.check-box:checked + .square::before{
    position: absolute;
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--dark-gray);
    top: 20%;
    left: 20%;
    /* transform: translate(-50%, -50%); */
}

.check-box:focus + .square{
    box-shadow: 0 0 0 1px #adaeae;
}

/* адаптаиця страницы брони */
@media (min-width: 1274px){
    .booking__forma{
        display: grid;
        grid-template-columns: 1fr 2fr;
    }

    .booking__forma > * {
        padding: 2em;
    }
}

@media (min-width: 768px) and (max-width: 1273px){
    .booking{
        padding: 1% 5%;
    }

    .scheme{
        max-width: 100%;
    }

    .booking__scheme{
        margin: 30px 0;
    }

    .booking__forma{
        min-width: 100%;
        padding: 2em 1em 2em;
        display: block;
    }

    .form__contacts{
        /* display: flex; */
        align-items: center;
        /* flex-direction: column; */
        padding: 1em;
    }

    .booking__form{
        display: flex;
        flex-direction: column;
        padding: 1em;
    }

    .order{
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

@media (min-width: 480px) and (max-width: 767px){
    .booking{
        padding: 1% 5%;
    }

    .scheme{
        max-width: 90%;
    }

    .form-img{
        display: none;
    }

    .form__contacts{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 1em;
    }

    .booking__form{
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1em;
    }

    .booking__form input, 
.booking__form textarea, 
.booking__form select{
    width: 100%;
    padding: 0.7em;
    font-size: 16px;
}

    .booking__forma{
        min-width: 100%;
        padding: 2em 1em 2em;
        display: block;
    }

.order{
    margin-top: 20px;
    display: flex;
    justify-content: center;
}
}

@media (min-width: 320px) and (max-width: 479px){
    .full-checkbox{
        flex-direction: column;
        margin-left: 2em;
    }

    .booking{
        padding: 1% 5%;
    }

    .scheme{
        max-width: 100%;
    }

        .form-img{
        display: none;
    }
.form__contacts{
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        padding: 1em;
    }

    .booking__form{
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1em;
    }

        .booking__forma{
        min-width: 100%;
        padding: 2em 1em 2em;
        display: block;
    }

    .order{
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }

}
