* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    font-family: 'Inter', sans-serif;
    background-color: #eff0f4;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}
a {
    text-decoration: none;
    color: inherit;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ========= HERO ========= */
.hero-section {
    width: 100%;
    min-height: 90vh;
    background: url("photos/Rectangle 18.png") no-repeat center/cover;
    position: relative;
    z-index: 1;
}
.hero-topbar {
    position: relative;
    z-index: 2;
}
.logo-group {
    position: absolute;
    left: 15%;
    top: 77px;
    display: flex;
    align-items: center;
    gap: 31px;
    z-index: 2;
}
.logo-group img {
    width: auto;
}
.phone {
    position: absolute;
    right: 15%;
    top: 97px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: #fff;
    z-index: 2;
}
.phone img {
    width: 20px;
    height: 20px;
}
@media (max-width: 1024px) {
    .logo-group {
        left: 20px; top: 20px; gap: 20px;
    }
    .phone {
        right: 20px; top: 20px; gap: 10px;
    }
}
@media (max-width: 480px) {
    .logo-group {
        left: 16px; top: 20px; gap: 16px;
    }
    .phone {
        right: 16px; top: 23px; gap: 8px; font-size: 14px;
    }
    .phone img {
        width: 18px; height: 18px;
    }
}

.hero-title {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    font-family: 'Berlingske Serif', serif;
    font-size: 72px;
    line-height: 1.2;
    background: linear-gradient(180deg, #71a0d9, #27568e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 2;
    max-width: calc(100% - 50px);
    text-align: center;
    padding: 0 25px;
}

/* ========== Блок бронирования ========== */
.booking {
    position: relative;
    margin: -70px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    padding: 40px 48px;
    max-width: 1020px;
}
@media (max-width: 1024px) {
    .booking {
        flex-direction: column;
        width: 90%;
        padding: 24px;
        margin-top: -125px;

    }
    .hero-title {
        font-size: 60px;
    }
}
@media (max-width: 660px) {
    .features {
        grid-template-columns: none !important;
    }
    .feature-desc{
        font-size: 13px !important;
        margin-left: -20px;
        margin-bottom: -10px;
    }
    .feature-title{
        font-size: 40px !important;
        margin-left: -10px;
    }
}
@media (max-width: 480px) {
    .booking {
        width: 100%;
        border-radius: 12px 12px 0 0;
        padding: 28px 24px;
        box-shadow: 0px 2px 12px rgba(18, 27, 56, 0.05);
    }
    .services-btn{
        font-size: 60px !important;
    }
}
@media (max-width: 630px){
    .hero-title{
        font-size: 30px;
    }
    .guest-field,.date-field,.bookBtnContainer{
        width: 260px !important;
    }
}

/* ========= Группа input + label ========= */
.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #091433;
}

/* Кнопка “Забронировать” */
.bookBtnContainer {
    display: flex;
    align-items: center;
    width: 238px;
    margin-bottom: -25px;
    z-index: 1;
}
.parentBtn {
    width: 100%;
    position: relative;
    border-radius: 6px;
    background-color: #172a5c;
    height: 48px;
    overflow: hidden;
    text-align: left;
    font-size: 14px;
    color: #f6fbff;
    font-family: Inter, sans-serif;
    z-index: 10;
}
.divBtn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    letter-spacing: -0.01em;
    font-weight: 600;
    white-space: nowrap;
}
.parentBtn.disabled {
    opacity: 0.3;
    cursor: default !important;
}
.parentBtn:not(.disabled):hover {
    opacity: 0.9;
    cursor: pointer;
}

/* Окно выбора гостей */
.guest-field {
    width: 380px;
    height: 48px;
    background: #f1f2f5;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 12px;
    gap: 8px;
    cursor: pointer;
    z-index: 9999999;
}
@media (max-width: 1024px) {
    .guest-field {
        width: 100%;
    }
}
/* "Выезд" эффекта, имитирующего не перекрытие, а "выдвижение" */
.guest-dropdown__menu {
    position: absolute;
    top: 48px; /* ровно под кнопкой */
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    width: 380px;
    padding: 10px;
    display: none;
    z-index: 999;
    transition: transform 0.2s ease;
    margin-top: 6px;
}
@media (max-width: 1024px) {
    .guest-dropdown__menu {
        width: 100%;
    }
}
.guest-field.open .guest-dropdown__menu {
    display: block;
}
.guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.guest-row:last-child {
    margin-bottom: 0;
}
.guest-row > div {
    display: flex;
    align-items: center;
    gap: 6px;
}
.guest-row button {
    width: 32px; height: 32px;
    border: 1px solid #dcdcdc;
    background: #fff;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
}
.guest-row button:hover {
    background-color: #f1f2f5;
}
/* Фикс для цифр, чтобы кнопки + - не бегали */
.guest-count {
    display: inline-block;
    width: 20px;
    text-align: center;
}

/* Окно с датой */
.date-field {
    width: 258px;
    height: 48px;
    background: #f1f2f5;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 12px;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
}
@media (max-width: 1024px) {
    .date-field {
        width: 100%;
    }
}
.calendar-popup {
    position: absolute;
    top: 48px; /* Под кнопкой */
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-radius: 6px;
    display: none;
    padding: 12px;
    width: 258px;
    transition: transform 0.2s ease;
    margin-top: 6px;

}
@media (max-width: 1024px) {
    .calendar-popup {
        width: 100%;
    }
}
.calendar-popup.open {
    display: block;
}
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.calendar-header span {
    font-weight: 600;
    color: #172a5c;
    pointer-events: none;   /* (5) месяц неактивен */
    cursor: default;
}
.arrow-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0; margin: 0;
}
.arrow-wrapper {
    width: 16px; height: 16px; overflow: hidden;
}
.weuiarrow-filled-icon {
    width: 16px; height: 16px;
    background: url("photos/weui_arrow-filled.svg") no-repeat center/contain;
}

.calendar-table {
    border-collapse: separate;
    border-spacing: 4px;
    width: 100%;
}
.calendar-table thead th {
    text-align: center;
    font-weight: 500;
    cursor: default;
}
.calendar-table td {
    text-align: center;
    vertical-align: middle;
    width: calc((100% - 6*4px) / 7);
    height: 32px;
    border-radius: 4px;
    cursor: pointer;
    color: #333;
    position: relative;
    transition: background-color 0.1s;
}
.calendar-table td.disabled {
    cursor: default;
}
.calendar-table td.selected {
    background: #172a5c !important;
    color: #fff !important;
}
.calendar-table td.hover-range {
    background: #172a5c !important;
    color: #fff !important;
}
/* Разные цвета */
.calendar-table td[data-color="disabled-weekend"] { color: #1270B0; }
.calendar-table td[data-color="disabled-weekday"] { color: #B3B3B3; }
.calendar-table td[data-color="active-curr-weekend"] { color: #17A1FA; }
.calendar-table td[data-color="active-curr-weekday"] { color: #616161; }
.calendar-table td[data-color="active-other-weekend"] { color: #1270B0; }
.calendar-table td[data-color="active-other-weekday"] { color: #B3B3B3; }

/* "Вас ждёт" и карточки */
.services-btn {
    display: block;
    margin: 0 auto 40px;
    font-family: 'Berlingske Serif', serif;
    font-size: 72px;
    line-height: 120%;
    background: none;
    border: none;
    color: #2c2e3a;
    cursor: default;
    margin-bottom: 52px;
}
.services {
    max-width: 1200px; margin: 0 auto;
    padding: 250px 20px 0;
}
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}
.feature {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #d4d4d4;
    height: 340px;
}
.feature img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
}
.feature-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 22.5%;
    backdrop-filter: blur(3px);
    background: linear-gradient(0deg, #2e2e2e, rgba(46,46,46,0));
    z-index: 1;
}
.feature-title {
    position: absolute;
    top: 36px; left: 36px;
    font-family: 'Berlingske Serif', serif;
    font-size: 44px;
    line-height: 120%;
    color: #fff;
    z-index: 2;
}
.feature-desc {
    position: absolute;
    left: 36px; bottom: 22px;
    font-size: 15px;
    letter-spacing: -0.01em;
    line-height: 140%;
    font-weight: 500;
    color: #fff;
    z-index: 2;
    margin-right: 24px;
}

/* Подвал */
.footer {
    text-align: center;
    background: #eff0f4;
    padding-top: 100px;
    padding-bottom: 60px;
}
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    border-radius: 100px;
    background-color: #172a5c;
    color: #f6fbff;
    font-size: 14px;
    font-weight: 600;
    padding: 25px;
    border: none;
    cursor: pointer;
    gap: 100px;
    max-width: 90%;
    z-index: 10;
    position: relative;
}
.btn-primary img {
    height: 36px;
    margin-right: -13px;
}
.btn-primary:hover {
    opacity: 0.9;
}

/* Модальное окно (форма) */
#bookingModalOverlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
}
#bookingModal {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: 100%;
    max-width: 480px;
    padding: 48px 36px 36px 36px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
@media (max-width: 480px) {
    #bookingModal {
        max-width: calc(100% - 32px);
        padding: 36px 28px 28px 28px;
    }
}
.modal-close-x {
    position: absolute;
    top: 16px; right: 16px;
    background: transparent; border: none;
    font-size: 22px; font-weight: 600;
    cursor: pointer; color: #333;
}
.modal-close-x:hover {
    opacity: 0.7;
}

/* (8) Адаптация логотипов внутри формы */
.group-wrapper {
    width: 100%; margin: 0 auto;
}
.group-parent {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 33px;
}
@media (max-width: 480px) {
    .group-parent {
        flex-direction: column;
        gap: 12px;
    }
}
.group-child,
.group-item {
    height: 45px;
    width: auto;
    filter: brightness(0) invert(15%) sepia(14%) saturate(5150%) hue-rotate(210deg) brightness(90%) contrast(95%);
}

.frame-container {
    display: flex;
    flex-direction: column;
    margin-top: 48px;
}
.frame-container > .input-group {
    margin-bottom: 24px;
}
.frame-container > .input-group:last-of-type {
    margin-bottom: 36px;
}

.label {
    font-size: 14px;
    font-weight: 600;
    color: #091433;
}
.input {
    padding: 18px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    background-color: #f1f2f5;
    font-size: 14px;
    color: #333;
}
.input:focus {
    border-color: #172a5c;
    outline: none;
}
.button {
    width: 100%;
    border: none;
    border-radius: 6px;
    background-color: #172a5c;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    padding: 15px 0;
}
.button:hover {
    background-color: #0e1f3a;
}
.frame-container.custom {
    align-self: stretch;
    position: relative;
    border-radius: 6px;
    background-color: #f1f2f5;
    height: 48px;
    overflow: hidden;
    flex-shrink: 0;
    font-size: 14px;
    color: #4a4a4a;
}
.weuiarrow-filled-icon {
    width: 10px;
    position: relative;
    height: 18px;
    overflow: hidden;
    flex-shrink: 0;
}
@media (max-width: 1024px) {
    .booking.expanded {
        height: auto; /* Позволяет блоку растягиваться */
        margin-bottom: 24px; /* Раздвигает элементы */
    }
    .bookBtnContainer{
        margin-bottom: 24px;
    }
    .logo-group{
        transform: scale(0.7); /* Уменьшает до 50% исходного размера */
        margin-left: -40px;
    }
    .phone{
        transform: scale(0.7); /* Уменьшает до 50% исходного размера */
        margin-right: -20px;
        margin-top:10px;
    }
    .input-group, .bookBtnContainer{
        min-width: 260px;
    }
    .guest-dropdown__menu, .calendar-popup {
        border: 1px solid #2c2e3a;
    }
    .booking{
        max-width:500px;
    }
    .frame-container.input-group{
        width: 100%;
    }

}
@media (max-width: 330px) {
    .logo-group{
        transform: scale(0.6); /* Уменьшает до 50% исходного размера */
        margin-left: -50px;
    }
}
a {
    text-decoration: none; /* Убираем подчеркивание */
}

a[href^="tel:"] {
    color: inherit; /* Наследуем цвет текста, чтобы не менять стиль */
}

@media screen and (-webkit-min-device-pixel-ratio: 0) {
    /* Специфично для Safari */
    a {
        text-decoration: none;
    }
}
