/* Стили сайта-визитки «Камелия» — Clay/Soft UI в стиле Kitchen Manager */

body {
    min-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font-body);
    font-weight: var(--weight-regular);
    color: var(--color-text);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    color: var(--color-heading);
    font-family: var(--font-heading);
}

a:focus-visible,
button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-focus-ring);
}

/* --- Шапка --- */

.header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    width: 100%;
    padding: 18px 12px 6px;
}

.main-title {
    font-size: 28px;
    margin: 24px 10px 16px;
    text-align: center;
}

.header-navigation {
    width: 100%;
    padding: 0 12px;
}

.nav-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 0 auto;
}

.main-nav-bar {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
}

/* --- Кнопки-пилюли (как .btn Kitchen Manager) --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: var(--weight-medium);
    color: var(--color-heading);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-raised);
    border-radius: var(--radius-btn);
    padding: 7px 20px;
    margin: 8px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    box-shadow: var(--shadow-pressed);
    font-weight: var(--weight-bold);
}

.btn:active {
    box-shadow: var(--shadow-pressed);
    transform: scale(0.97);
}

.nav-link {
    min-width: 75px;
    max-width: 125px;
    min-height: 56px;
    padding: 0 16px;
    margin: 0;
    line-height: 1.2;
    text-align: center;
}

.nav-link.is-active {
    box-shadow: var(--shadow-pressed);
    color: var(--color-accent);
    font-weight: var(--weight-bold);
}

.theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    font-size: 18px;
    line-height: 1;
    color: var(--color-heading);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-pill);
    transition: box-shadow var(--transition-normal);
}

.theme-btn:hover {
    box-shadow: var(--shadow-raised);
}

.burger {
    display: none;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-soft);
    font-size: 22px;
    line-height: 1;
    color: var(--color-heading);
}

/* --- Основной блок --- */

.main {
    flex: 1 1 auto;
    width: 90%;
    margin: 0 auto;
    padding: 16px 16px 32px;
}

.page-title {
    font-size: 1.4rem;
    color: var(--color-heading);
    text-align: center;
    margin: 12px 0 20px;
}

.panel {
    background-color: var(--color-surface);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-raised);
    padding: 24px;
    margin: 0 0 24px;
}

/* Фотогалерея: без нижнего отступа блока (замыкает главную) */
.panel--flush-bottom {
    margin-bottom: 0;
}

.panel h2 {
    font-size: 1.25rem;
    margin: 0 0 14px;
}

.lead {
    font-size: 1.05rem;
    margin: 0 0 12px;
}

.muted {
    color: var(--color-text-muted);
}

/* --- Hero --- */

.hero {
    text-align: center;
    padding: 40px 20px;
    margin: 0 0 24px;
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-raised);
    background: linear-gradient(145deg, var(--color-accent-soft), var(--color-brand-bg));
}

.hero h2 {
    font-size: 1.7rem;
    margin: 0 0 12px;
}

.hero p {
    margin: 0 auto 18px;
}

/* --- Карточки блюд (заглушка меню) --- */

/* --- Преимущества (три карточки) --- */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    text-align: center;
    padding: 22px 18px;
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-soft);
    transition: box-shadow var(--transition-normal);
}

.feature-card:hover {
    box-shadow: var(--shadow-raised);
}

.feature-title {
    font-size: 1.05rem;
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    margin: 0 0 8px;
}

.feature-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* --- Кнопки в конце панелей (Всё меню, Контакты и карта) --- */

/* --- Фотогалерея на главной --- */

/* --- Меню: категории и карусель-«фокус» --- */

.menu-note {
    text-align: center;
    color: var(--color-text-muted);
    margin: 0 0 20px;
}

.menu-category-title {
    text-align: center;
}

.carousel {
    position: relative;
    overflow: hidden;
    height: 350px;
    padding: 0;
}

.carousel-track {
    position: relative;
    height: 100%;
    cursor: grab;
    touch-action: pan-y;
}

.carousel-track:active {
    cursor: grabbing;
}

.carousel-item {
    position: absolute;
    top: 50%;
    margin: 0;
    width: 200px;
    height: 230px;
    transform-origin: center;
    margin-top: -115px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    opacity: 0.55;
    transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease, margin-top 0.4s ease, width 0.4s ease, height 0.4s ease;
    cursor: pointer;
}

.carousel-item.is-center {
    width: 340px;
    height: 330px;
    margin-top: -165px;
    opacity: 1;
    border-color: var(--color-accent);
    box-shadow: var(--shadow-raised);
    cursor: default;
}

.carousel-item.is-far {
    opacity: 0.3;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Заглушки фото: верхняя часть карточки (как .dish-card-media),
   нижняя полоса .carousel-card-name — как .dish-card-body/.dish-card-title */
.carousel-ph {
    width: 100%;
    height: 150px;
    background-color: var(--color-surface);
    box-shadow: var(--shadow-pressed);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: var(--weight-bold);
    color: var(--color-text-muted);
}

.carousel-item.is-center .carousel-ph {
    height: 240px;
    font-size: 4rem;
}

/* Карусель без подписей (фотогалерея): рамка 2px как у всех,
   внутри — выпуклый 10px контур: подложка-паспарту без вдавленности,
   фото/заглушка со своей мягкой наружной тенью */
.carousel-item--no-caption {
    padding: 10px;
}

.carousel-item--no-caption .carousel-ph {
    height: 100%;
    box-shadow: var(--shadow-soft);
    border-radius: calc(var(--radius-md) - 4px);
}

/* У центра галереи ph тоже на всю карточку (перебить правило is-center с 240px) */
.carousel-item--no-caption.is-center .carousel-ph {
    height: 100%;
    font-size: 4rem;
}

/* Нижняя полоса карточки — в стиле dish-card-body */
.carousel-card-name {
    padding: 12px 16px 14px;
    font-size: 1rem;
    color: var(--color-heading);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carousel-caption {
    text-align: center;
    font-size: 1.05rem;
    font-weight: var(--weight-bold);
    color: var(--color-heading);
    margin: 14px 0 0;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    color: var(--color-heading);
    background-color: var(--color-surface);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-pill);
    transition: box-shadow var(--transition-normal), opacity var(--transition-normal);
}

.carousel-arrow:hover:not(:disabled) {
    box-shadow: var(--shadow-raised);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-prev {
    left: 8px;
}

.carousel-next {
    right: 8px;
}

/* --- Контакты --- */

.contact-list li {
    margin: 0 0 10px;
}

.contact-list a {
    color: var(--color-accent);
    font-weight: var(--weight-medium);
}

/* --- Карта (Яндекс, iframe) --- */

.map-wrap {
    border-radius: var(--radius-panel);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.map-wrap iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
}

@media (max-width: 767px) {
    .map-wrap iframe {
        height: 280px;
    }
}

/* --- Подвал --- */

.footer {
    flex: 0 0 auto;
    padding: 16px;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* --- Адаптив --- */

@media (max-width: 767px) {
    .header {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    .main-title {
        font-size: 1.2rem;
        margin: 0;
        text-align: left;
        flex: 1 1 auto;
    }

    .theme-btn {
        width: 40px;
        height: 40px;
        margin-left: 0;
    }

    .burger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .header-navigation {
        display: none;
        width: 100%;
        padding: 12px 0 0;
    }

    .header-navigation.is-open {
        display: block;
    }

    .main {
        padding: 12px 12px 24px;
    }

    .panel {
        padding: 18px;
    }

    .hero {
        padding: 28px 16px;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    /* Карусель: центральная карточка по ширине экрана, стрелки компактнее */
    .carousel {
        height: 320px;
    }

    .carousel-item {
        width: 150px;
        height: 200px;
        margin-top: -100px;
    }

    .carousel-item.is-center {
        width: 260px;
        height: 300px;
        margin-top: -150px;
    }

    /* ph подстраивается под высоту карточки: фото-зона = карточка минус подпись */
    .carousel-ph {
        height: 145px;
    }

    .carousel-item.is-center .carousel-ph {
        height: 240px;
        font-size: 3rem;
    }

    /* Галерея: ph на всю карточку и в мобильной версии
       (перебить is-center 240px: специфичность выше — 4 класса) */
    .carousel-item--no-caption .carousel-ph,
    .carousel-item--no-caption.is-center .carousel-ph {
        height: 100%;
    }

    .carousel-item--no-caption {
        padding: 8px;
    }

    .carousel-item--no-caption .carousel-ph {
        font-size: 2.4rem;
    }

    .carousel-item.is-center .carousel-ph {
        font-size: 3rem;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .carousel-prev {
        left: 4px;
    }

    .carousel-next {
        right: 4px;
    }
}

/* Уважение к настройке «уменьшить анимацию» */
@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        transition: none;
    }
}