




@media (min-width: 767px) {
    header {
        background-color: #000000!important;
    }
}





main {
    width: 100%;
    padding-top: 111px;
}

@media (max-width: 767px) {
    main {
        padding-top: 0;
    }
}


.booking {
    width: 100%;
    max-height: 80%;
    display: flex;
    flex-wrap: wrap;
}

@media (max-width: 767px) {
    .booking {
       flex-direction: column; 
    }
    
}

.booking-left {
    min-width: 50%;
    overflow: hidden;
    max-height: 820px;
    flex: 1 1 250px;
}



.cheese-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr) ;
    grid-template-rows: repeat(4, 1fr);
    width: 100%;
    height: 100%;
    /*margin-top: -25px;
    margin-bottom: -25px;*/
    align-content: center;
    object-fit: cover;
}

@media (max-width: 767px) {
    .booking-left{
        background-image: url(../assets/images-gallery/contact/contact.webp);
        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        min-height: 279px;

    }

    .cheese-board {
        display: none;
    }
}

.square {
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1/1;
}

.square:nth-child(1-4) {
    max-height: 80%;
}

.square:nth-child(16n+1),
.square:nth-child(16n+3),
.square:nth-child(16n+6),
.square:nth-child(16n+8),
.square:nth-child(16n+9),
.square:nth-child(16n+11),
.square:nth-child(16n+14),
.square:nth-child(16n+16) {
    background-color: #121212;
}

.square:nth-child(16n+2),
.square:nth-child(16n+4),
.square:nth-child(16n+5),
.square:nth-child(16n+7),
.square:nth-child(16n+10),
.square:nth-child(16n+12),
.square:nth-child(16n+13),
.square:nth-child(16n+15)  {
    background-color:#ffffff;
}


.booking-right {
    min-width: 50%;
    align-self: center;
    padding: 89px 30px;
    flex: 1 1 250px;
}



.booking-form {
    max-width: 465px;
    margin-left: 21%;
    margin-right: auto;
}

@media (max-width: 1270px) {
    .booking-form {
        margin-left: auto;
    }
}

.booking-form h2 {
    font-family: var(--bn);
    font-weight: 700;
    font-size: 32px;
    line-height: 110%;
    color: #000000;
}

.booking-form p {
    font-family: var(--pts);
    font-weight: 400;
    font-size: 22px;
    line-height: 125%;
    color: #000000;
    margin-top: 20px;
}



form {
    display: flex;
    flex-direction: column;
    gap: 34px;
    width: 90%;
    margin-top: 52px;
    outline: none;
}

@media (max-width: 767px) {
    .booking-right {
        padding: 26px 30px 35px;
    }

    .booking-form h2 {
        font-size: 28px;
    }

    .booking-form p {
        font-size: 18px;
    }

    form {
        width: 100%;
        margin-top: 45px;
    }
}

@media (max-width: 335px) {
    .booking-right {
        padding: 26px 15px 35px;
    }
}

form input:focus,
form textarea:focus {
    outline: none;
}

.form-group {

}

.form-group input,
.form-group textarea {
    max-width: 411px;
    border: none;
    border-bottom: 1px solid #292929;
    padding-top: 1.5px;
    padding-bottom: 10px;
    width: 100%;
    
    resize: none;

}

.form-input {

}

.form-group_double {
    display: flex;
}

.double-left {

}

.form-label {

}

.double-right {

}

.form-group input::placeholder,
#form-area::placeholder {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    color: #B2B2B2;
}

.submit-btn {
    width: 100%;
    height: 80px;
    border: 1px solid var(--button);
    border-radius: 10px;
    background-color: var(--button);
    font-family: var(--pts);
    font-size: 27.7px;
    font-weight: 700;
    line-height: 100%;
    color: #ffffff;
    transition: all 0.45s ease ;
}

@media (max-width: 767px) {
    .submit-btn{
        height: 53px;
        font-size: 18px;  
    }
    
}

.submit-btn:hover {
    background-color: #EB7F4C;
    border: 1px solid #EB7F4C;
    cursor: pointer;
}


/*------------ CALENDAR -------------*/

/* Стили для счетчика гостей */
.guests-counter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.counter-btn {
    width: 22px;
    height: 22px;
    border: 1px solid #292929;
    background: white;
    color: #292929;
    border-radius: 4px;
    font-size: 21px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.counter-btn:hover {
    background: #292929;
    color: white;
}

.guests-input {
    width: 29px !important;
    text-align: center;
    font-family: var(--pts);
    font-size: 18px;
    font-weight: 400;
    border: none;
    padding: 0px !important;
    background: white;
}

/* Стили для триггера даты и времени */
.datetime-trigger {
    width: 100%;
    border: none;
    border-bottom: 1px solid #292929 !important;
    background: white;
    cursor: pointer;
    text-align: left;
    padding: 0 !important;
    margin-top: 5px;
    height: auto;
}

.datetime-preview {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 100%;
    color: #B2B2B2;
    display: block;
    padding-top: 1.5px;
    padding-bottom: 10px;
    width: 100%;
}

.datetime-preview.has-selection {
    color: #292929;
    font-weight: 500;
}

/* Слайдер календаря */
.calendar-slider {
    position: fixed;
    top: 0;
    right: -400px;
    width: 380px;
    height: 100vh;
    background: white;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.calendar-slider.open {
    right: 0;
    max-width: 400px;
}

.calendar-header {
    display: flex;
    flex-direction: column-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 35px;
    padding: 0px 15px 12px 22px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.calendar-header h3 {
    font-family: var(--bn);
    font-size: 40px;
    font-weight: 700;
    margin: 0;
    color: #222B45;
    
}

.close-calendar {
    background: none;
    border: none;
    font-size: 33px;
    font-weight: bold;
    cursor: pointer;
    color: #222B45;
    padding: 5px;
}

.close-calendar:hover {
    color: #333;
}

.calendar-content {
    padding: 20px;
}

/* Навигация по месяцам */
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.month-nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.month-nav-btn:hover {
    background-color: #f0f0f0;
}

.current-month {
    font-weight: bold;
    font-size: 16px;
    font-family: var(--bn);
}

/* Календарь */
.calendar {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.week-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
}

.week-day {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    font-family: var(--pts);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day {
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    border: none;
    background: none;
    font-size: 14px;
    transition: background-color 0.2s;
    font-family: var(--pts);
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.calendar-day.selected {
    background-color: var(--button);
    color: white;
    border-radius: 4px;
}

.calendar-day.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

/* Временные слоты */
.time-section h4 {
    margin-bottom: 15px;
    color: #333;
    font-family: var(--bn);
    font-size: 18px;
    font-weight: 700;
    color: #222B45;
}

.time-slots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    background-color: #F1F3F8;
    font-family: var(--pts);
    font-size: 16px;
    font-weight: 700;
    color: #8B9CB3;
    transition: all 0.2s;
    
}

.time-slot:hover {
    border-color: var(--button);
}

.time-slot.selected {
    background-color: var(--button);
    color: white;
    border-color: var(--button);
}

.time-slot.disabled {
    color: #ccc;
    cursor: not-allowed;
    border-color: #f0f0f0;
}

/* Кнопка применения */
.calendar-actions {
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.apply-datetime {
    width: 100%;
    padding: 15px;
    background: var(--button);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    font-family: var(--pts);
    transition: background-color 0.3s;
}

.apply-datetime:hover {
    background: #EB7F4C;
}

/* Затемнение фона */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Адаптивность для календаря */
@media (max-width: 768px) {
    .calendar-slider {
        width: 100%;
        right: -100%;
    }
    
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .time-slots {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .guests-counter {
        justify-content: flex-start;
    }
}

/* Обновленные стили для формы */
.form-group_double {
    display: flex;
    justify-content: space-between;
    gap: 5px;
    max-width: 411px;
}

.double-left,
.double-right {
    flex: 1;
}

.form-label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #292929;
    margin-bottom: 5px;
    display: block;
}

/* Убираем стандартные стрелки у number input */
.guests-input::-webkit-outer-spin-button,
.guests-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.guests-input[type=number] {
    -moz-appearance: textfield;
}



/*-------FOOTER -----*/

@media screen and (max-width: 723px) {
    .foot-wrapper {
        justify-content: center;
    }

    .foot-right {
        text-align: center;
    }

    .foot-icon {
        justify-content: center;
    }
}

@media screen and (min-width: 723px) {
    .foot-right {
        margin-left: auto;
    }

    .foot-icon {
        justify-content: flex-end;
    }
}

footer {
    width: 100%;
    /*height: 175px;*/
    background-color: #121212;
    
}

.foot-wrapper {
    max-width: 74%;
    margin: 0 auto;
    padding-top: 50px;
    padding-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.foot-left {
    font-family: var(--bn);
    font-size: 26px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 6%;
    color: var(--txt-white);
}

.foot-right {
    font-family: var(--pts);
    font-size: 26px;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 0%;
    color: var(--txt-white);
    
    background-color: #121212;
}

.foot-icon {
    display: flex;
    
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}


/*------- LOCATION -----------*/

.location {
    width: 100%;
    display: flex;
}

.location-left {
    min-width: 50%;
    padding: 102px 25px;
    
}

.location-left_inform {
    font-family: var(--pts);
    font-weight: 700;
    max-width: 465px;
    margin-left: auto;
    margin-right: 8.43vw;
}

@media (max-width: 1270px) {
    .location-left {
        padding: 59px 30px;
        
    }

    .location-left_inform {
        margin: 0 auto;
    }
}



.location-left_inform h2 {
    font-size: 32px;
    line-height: 100%;
}

.location-left_inform h4 {
    font-size: 22px;
    line-height: 124%;
    margin-top: 69px;
}

.location-left_inform ul,
.location-left_inform p {
    font-size: 22px;
    line-height: 124%;
    font-weight: 400;
    margin-top: 39px;
    
}

@media (max-width: 767px) {
    .location {
        flex-direction: column-reverse;
    }

    .location-left {
        padding: 38px 30px 66px;
        
    }

    .location-left_inform h2 {
        font-size: 22px;
    }

    
    .location-left_inform h4,
    .location-left_inform ul,
    .location-left_inform p {
        font-size: 18px;
        margin-top: 31px;
        
    }
}

/*.location-left_inform p {
    font-size: 22px;
    line-height: 124%;
    font-weight: 400;
    margin-top: 39px;
}*/

.location-right {
    min-width: 50%;
    
}

.location_map {
    width: 100%;
    height: 100%;
}

.location_map iframe {
    min-height: 265px;
    display: block;
}