/* Общие стили приложения (админка), для лендинга почти не используются */
main>.container,
main>.container-fluid {
    padding: 70px 15px 20px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

a.asc:after,
a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

.navbar form>button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form>button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form>button.logout:focus,
.navbar form>button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form>button.logout:focus {
    outline: none;
}

.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item>a {
    text-decoration: none;
}

/* Лендинг: выравнивание кнопок «Построить маршрут» / «Открыть в картах» */
.location__card-item-btns {
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.location__card-item-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 1160px) {
    .location__card-item-btn {
        align-items: center;
        justify-content: center;
    }
}

.menu__item--active {
    display: block;
    mix-blend-mode: multiply;
}

/* Плавная смена категории в меню (главная + business) */
.menu__item.menu__item-enter {
    display: block !important;
    animation: menu-item-enter .28s ease both;
}

.menu__item.menu__item-leave {
    display: block !important;
    pointer-events: none;
    animation: menu-item-leave .22s ease both;
}

@keyframes menu-item-enter {
    from {
        opacity: 0;
        transform: translateX(18px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes menu-item-leave {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(-12px);
    }
}

@media (prefers-reduced-motion: reduce) {

    .menu__item.menu__item-enter,
    .menu__item.menu__item-leave {
        animation: none;
    }
}

.menu__slide-image {
    width: 100%;
    max-height: 405px;
    object-fit: cover;
    border-radius: 10px;
}

/* Убираем прыжки скролла при догрузке карточек/картинок в меню */
.page__menu,
.menu__inner,
.menu__item {
    overflow-anchor: none;
}

/* Резервируем место под изображение до его загрузки */
.menu__slide-img {
    aspect-ratio: 333 / 405;
    overflow: hidden;
}

.menu__slide-image {
    height: 100%;
}

#menu-stable-anchor {
    position: relative;
    scroll-margin-top: 110px;
}

@media (min-width: 1024px) {
    .menu__slide-img {
        height: 405px;
    }

    .menu__slide-image {
        max-height: none;
    }
}

/* Глобально отключаем scroll anchoring, чтобы браузер не уводил viewport вниз при поздней отрисовке */
html,
body {
    overflow-anchor: none;
}

.header__list {
    display: flex;
    align-items: center;
    gap: 15px;
}
/* V2: clients block is static grid, not slider */
.page__clients .clients__slider-btn {
    display: none !important;
}

.page__clients .clients__slider-line {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 980px) {
    .page__clients .clients__slider-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

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

/* Static docs pages (user agreement, etc.) */
.page__static-doc {
    background: #fff5de;
    padding: 80px 0 120px;
    margin: 0;
}

.static-doc {
    max-width: 980px;
    margin: 0 auto;
    padding: 30px;
    background: #fff0cf;
    border-radius: 10px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08), 0 12px 22px 0 rgba(0, 0, 0, 0.06);
    color: #951d1f;
}

.static-doc__head .sec-name {
    margin-bottom: 20px;
}

.static-doc__title {
    margin-bottom: 16px;
}

.static-doc__subtitle {
    max-width: 740px;
    color: rgba(149, 29, 31, 0.85);
    line-height: 140%;
}

.static-doc__content {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.static-doc__content h2 {
    margin-top: 18px;
    font-size: 20px;
    line-height: 130%;
    text-transform: uppercase;
}

.static-doc__content p,
.static-doc__content li {
    line-height: 150%;
    color: rgba(149, 29, 31, 0.9);
}

.static-doc__content ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
}

@media (max-width: 768px) {
    .page__static-doc {
        padding: 60px 0;
    }

    .static-doc {
        padding: 20px;
    }

    .static-doc__content h2 {
        font-size: 16px;
    }
}

/* Kitchen menu / food assortment (kitchen-menu) */
.page__kitchen-menu .food-assortment__table-wrap {
    margin-top: 28px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.food-assortment__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 140%;
}

.food-assortment__table thead th {
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 13px;
    padding: 12px 10px 10px 0;
    border-bottom: 1px solid rgba(149, 29, 31, 0.35);
    color: #951d1f;
}

.food-assortment__table thead th:last-child {
    text-align: right;
    padding-right: 0;
}

.food-assortment__table tbody td {
    padding: 10px 10px 10px 0;
    border-bottom: 1px solid rgba(149, 29, 31, 0.12);
    vertical-align: top;
    color: rgba(149, 29, 31, 0.92);
}

.food-assortment__table tbody td:last-child {
    text-align: right;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 0;
    font-weight: 500;
}

.food-assortment__section th {
    text-align: left;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 13px;
    padding: 22px 0 10px 0;
    border-bottom: none;
    color: #951d1f;
    background: transparent;
}

.food-assortment__section + tr td {
    border-top: 1px solid rgba(149, 29, 31, 0.08);
}

.food-assortment__back {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    font-size: 14px;
}

.food-assortment__link {
    color: #951d1f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (hover: hover) {
    .food-assortment__link:hover {
        opacity: 0.85;
    }
}

@media (max-width: 768px) {
    .food-assortment__table {
        font-size: 14px;
    }

    .food-assortment__table tbody td:last-child {
        white-space: normal;
        min-width: 4.5rem;
    }
}