:root {
    --forest: #14291f;
    --forest-dark: #0c1c15;
    --forest-light: #244d38;
    --accent: #a9cb84;
    --cream: #f6f4e9;
}

body {
    max-width: 1440px;
    background:
        radial-gradient(circle at 50% 0%, #2c5038, transparent 55%),
        linear-gradient(180deg, #14291f, #0c1c15);
    color: var(--cream);
}

header {
    min-height: 170px;
    border-radius: 20px;
    background:
        linear-gradient(100deg, rgba(9,25,17,.95), rgba(28,65,43,.75)) !important;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

header h1 {
    font-size: clamp(23px, 3vw, 36px) !important;
    letter-spacing: -.5px;
}

.header-logo {
    font-size: 36px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.12);
}

.info-card {
    background: rgba(245,248,238,.96);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.info-card-danger {
    background: #fff5e8;
    border-color: #f2d4a6;
}

.day-title {
    color: #f5f5e9;
    border-left: 4px solid var(--accent);
    font-size: 22px;
    margin-top: 36px;
}

.mangal-container {
    gap: 18px;
}

.mangal-card {
    background: #fafbf7;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

.mangal-img-banner {
    height: 105px;
    background: linear-gradient(120deg, #244b35, #132b1e) !important;
}

.slot-row {
    padding: 12px;
    border-bottom: 1px solid #e8ede6;
}

.booking-form input,
.booking-form select {
    border: 1px solid #d7e0d3;
    border-radius: 9px;
    background: #fff;
    min-height: 36px;
}

.btn-submit {
    background: linear-gradient(135deg, #438c51, #28673b);
    border-radius: 9px;
    min-height: 36px;
    box-shadow: 0 4px 10px rgba(40,103,59,.15);
}

.btn-submit:hover {
    filter: brightness(1.08);
}

.booked {
    background: #e7f4e7;
    border: 1px solid #c2dfc4;
    border-radius: 10px;
}

.conflict {
    background: #fff1d9;
    border: 1px solid #eed3a4;
    border-radius: 10px;
}

.admin-section,
.login-box {
    color: #243329;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0,0,0,.18);
}

@media (max-width: 992px) {
    body {
        padding: 10px;
    }

    header {
        min-height: 150px;
    }

    .mangal-container {
        grid-template-columns: 1fr;
    }

    .slot-row {
        gap: 8px;
    }
}

/* Фотографии для нового оформления */

header {
    background:
        linear-gradient(
            90deg,
            rgba(7, 25, 15, .96) 0%,
            rgba(7, 25, 15, .88) 35%,
            rgba(7, 25, 15, .15) 100%
        ),
        url("../images/hero-garden.webp") center / cover no-repeat !important;
    overflow: hidden;
}

.mangal-img-banner {
    height: 145px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.mangal-card:nth-child(1) .mangal-img-banner {
    background-image:
        linear-gradient(90deg, rgba(5,25,13,.45), transparent),
        url("../images/mangal-1.webp") !important;
}

.mangal-card:nth-child(2) .mangal-img-banner {
    background-image:
        linear-gradient(90deg, rgba(5,25,13,.45), transparent),
        url("../images/mangal-2.webp") !important;
}

.mangal-card:nth-child(3) .mangal-img-banner {
    background-image:
        linear-gradient(90deg, rgba(5,25,13,.45), transparent),
        url("../images/mangal-3.webp") !important;
}

@media (max-width: 992px) {
    header {
        background-position: 65% center !important;
    }

    .mangal-img-banner {
        height: 125px;
    }
}

/* Временно отключаем изображения с нарисованными надписями */
header {
    background:
        linear-gradient(110deg, #091b12, #244b35) !important;
}

.mangal-card .mangal-img-banner {
    background-image:
        linear-gradient(120deg, #244b35, #10291b) !important;
}

/* Аккуратная плашка названия мангала */
.mangal-img-banner > div {
    width: auto !important;
    margin-left: 14px;
    padding: 9px 15px !important;
    border-radius: 25px;
    background: rgba(8, 35, 20, .9);
    border: 1px solid rgba(190, 230, 160, .35);
    backdrop-filter: blur(6px);
}


/* Приоритетное отключение старых фотографий */
.mangal-container .mangal-card:nth-child(1) .mangal-img-banner,
.mangal-container .mangal-card:nth-child(2) .mangal-img-banner,
.mangal-container .mangal-card:nth-child(3) .mangal-img-banner {
    background-image: none !important;
    background-color: #173b29 !important;
}

.mangal-img-banner {
    height: 125px !important;
}


/* Финальная геометрия фотокарточек */
.mangal-container .mangal-card {
    border-radius: 18px;
    border: 1px solid rgba(196, 224, 184, .65);
    overflow: hidden;
}

.mangal-container .mangal-img-banner {
    height: 125px !important;
    display: flex;
    align-items: flex-start;
    padding-top: 14px;
    box-sizing: border-box;
}

.mangal-container .mangal-img-banner > div {
    margin-left: 14px;
    padding: 9px 16px !important;
    border-radius: 24px;
    background: rgba(8, 38, 23, .94);
    border: 1px solid rgba(175, 221, 152, .55);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .18);
}

.mangal-container .slot-row {
    background: #fafbf8;
}

@media (max-width: 992px) {
    .mangal-container .mangal-img-banner {
        height: 110px !important;
    }
}

/* Новый комплект фотографий без встроенного интерфейса */

/* Шапка */
body header {
    background:
        linear-gradient(
            90deg,
            rgba(5, 25, 14, .96) 0%,
            rgba(5, 25, 14, .88) 30%,
            rgba(5, 25, 14, .25) 70%,
            rgba(5, 25, 14, .15) 100%
        ),
        url("../images/hero-clean.webp") center / cover no-repeat !important;
}

/* Карточки */
.mangal-container .mangal-card .mangal-img-banner {
    height: 145px !important;
    background-color: #173b29 !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.mangal-container .mangal-card:nth-child(1) .mangal-img-banner {
    background-image:
        linear-gradient(90deg, rgba(5, 25, 14, .30), transparent),
        url("../images/mangal-1-clean.webp") !important;
}

.mangal-container .mangal-card:nth-child(2) .mangal-img-banner {
    background-image:
        linear-gradient(90deg, rgba(5, 25, 14, .30), transparent),
        url("../images/mangal-2-clean.webp") !important;
}

.mangal-container .mangal-card:nth-child(3) .mangal-img-banner {
    background-image:
        linear-gradient(90deg, rgba(5, 25, 14, .30), transparent),
        url("../images/mangal-3-clean.webp") !important;
}

/* Мобильная версия */
@media (max-width: 992px) {
    .mangal-container .mangal-card .mangal-img-banner {
        height: 125px !important;
    }

    body header {
        background-position: 65% center !important;
    }
}

/* Мобильная оптимизация нового дизайна */

@media (max-width: 600px) {

    body {
        padding: 10px !important;
    }

    header {
        min-height: 220px !important;
        padding: 18px 15px !important;
        border-radius: 18px !important;
        background-position: 65% center !important;
    }

    header h1 {
        font-size: 23px !important;
        line-height: 1.15;
    }

    .header-logo {
        font-size: 27px;
        padding: 10px;
    }

    .info-container {
        gap: 10px;
        margin-bottom: 20px;
    }

    .info-card {
        padding: 14px;
        font-size: 12px;
        line-height: 1.45;
    }

    .day-title {
        font-size: 18px;
        margin: 24px 0 12px;
    }

    .mangal-container {
        gap: 15px;
    }

    .mangal-container .mangal-card .mangal-img-banner {
        height: 115px !important;
    }

    .slot-row {
        padding: 9px 8px;
        gap: 5px;
    }

    .booking-form {
        gap: 4px;
    }

    .booking-form select {
        min-width: 105px;
        flex: 1 1 105px;
        font-size: 11px;
    }

    .booking-form .input-wrapper.inp-wrapper-korp {
        flex: 0 0 36px;
        max-width: 36px;
    }

    .booking-form .input-wrapper.inp-wrapper-kv {
        flex: 0 0 29px;
        max-width: 29px;
    }

    .booking-form .input-wrapper.inp-wrapper-name {
        flex: 1 1 100px;
        min-width: 0;
    }

    .booking-form input {
        font-size: 11px;
    }

    .btn-submit {
        padding: 8px 10px;
    }
}

/* Центрирование подзаголовка и даты на телефоне */
@media (max-width: 600px) {

    header .header-title-block {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header .header-title-block > div:last-child {
        width: 100%;
        text-align: center;
    }

    header .header-title-block p {
        text-align: center;
        margin-top: 10px !important;
    }

    header .header-right {
        width: 100%;
        justify-content: center;
        margin-top: 20px;
    }

    header .date-badge {
        font-size: 14.5px;
        padding: 11px 19px;
        border-radius: 24px;
        background: rgba(8, 28, 17, .88);
        border: 1px solid rgba(190, 230, 160, .45);
        box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
    }
}

/* BBQ readable booking fields v1 */

/* Время бронирования */
.booking-form select {
    font-weight: 700;
    color: #25362b;
    font-size: 13px;
}

/* Корпус, квартира и телефон */
.booking-form .input-wrapper input {
    font-weight: 600;
    color: #25362b;
    font-size: 13px;
}

/* Подсказки внутри полей */
.booking-form .input-wrapper input::placeholder {
    color: #59675d;
    opacity: 1;
    font-weight: 600;
}

/* Дополнительная настройка для телефона */
@media (max-width: 600px) {
    .booking-form select {
        font-size: 12px !important;
        font-weight: 700;
    }

    .booking-form .input-wrapper input {
        font-size: 12px !important;
        font-weight: 600;
    }

    .booking-form .inp-wrapper-korp input,
    .booking-form .inp-wrapper-kv input {
        font-size: 11px !important;
    }
}

/* BBQ soft placeholders v1 */

/* Выбранное время */
.booking-form select {
    font-weight: 600 !important;
    color: #34483b !important;
}

/* Введённые значения */
.booking-form .input-wrapper input {
    font-weight: 500 !important;
    color: #25362b !important;
}

/* Подсказки — мягкие и отличимые от введённых значений */
.booking-form .input-wrapper input::placeholder {
    color: #89958c !important;
    opacity: 1 !important;
    font-weight: 400 !important;
}

/* На телефоне сохраняем компактные размеры */
@media (max-width: 600px) {
    .booking-form select {
        font-size: 12px !important;
    }

    .booking-form .input-wrapper input {
        font-size: 12px !important;
    }

    .booking-form .inp-wrapper-korp input,
    .booking-form .inp-wrapper-kv input {
        font-size: 11px !important;
    }
}

/* BBQ garden background v1 */

/* Декоративный фон всей страницы */
body {
    background-color: #102b1e !important;
    background-image:
        linear-gradient(
            rgba(9, 32, 20, .28),
            rgba(9, 32, 20, .55)
        ),
        url("../images/bbq-garden-background.webp") !important;
    background-position: center top !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* На телефоне — спокойный фон без фиксированной прокрутки */
@media (max-width: 600px) {
    body {
        background-image:
            linear-gradient(
                rgba(13, 44, 28, .70),
                rgba(13, 44, 28, .85)
            ),
            url("../images/bbq-garden-background.webp") !important;
        background-position: center top !important;
        background-attachment: scroll !important;
    }
}

/* BBQ UX STAGE 1 */

/* Разделители дней */
.day-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.day-title::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(180, 220, 155, .65),
        rgba(180, 220, 155, .12),
        transparent
    );
}

/* Занятые интервалы */
.booked {
    border-radius: 10px;
    border-color: #a8d5ac;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}

/* Пересечения времени */
.conflict {
    border-radius: 10px;
    background: #fff2d9;
    border-color: #ebd19b;
    color: #856219;
}

/* Кнопки */
.btn-submit {
    transition:
        background-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

@media (hover: hover) {
    .btn-submit:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(22, 92, 47, .25);
    }
}

.btn-submit:focus-visible,
.booking-form input:focus-visible,
.booking-form select:focus-visible {
    outline: 2px solid #82bd78;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .btn-submit {
        transition: none;
    }
}


/* BBQ SCROLL TOP */

.bbq-scroll-top {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 1000;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: #19452d;
    color: white;
    font-size: 23px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s, transform .2s, visibility .2s;
}

.bbq-scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

@media (max-width: 600px) {
    .bbq-scroll-top {
        right: 14px;
        bottom: 18px;
        width: 44px;
        height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bbq-scroll-top {
        transition: none;
    }
}
