/* Доставка.Хабары — витрина маркетплейса 2025+ */
:root {
    --mp-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --mp-bg: #f4f6f8;
    --mp-surface: #ffffff;
    --mp-text: #0f172a;
    --mp-text-muted: #64748b;
    --mp-border: #e2e8f0;
    --mp-primary: #16a34a;
    --mp-primary-hover: #15803d;
    --mp-accent: #f97316;
    --mp-radius: 16px;
    --mp-radius-lg: 22px;
    --mp-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
    --mp-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);
    --mp-scrollbar-track: #f1f5f9;
    --mp-scrollbar-thumb: #86efac;
    --mp-scrollbar-thumb-hover: #16a34a;
    /* Фактическая высота шапки — задаётся в marketplace.js (ResizeObserver) */
    --mp-header-h: 7rem;
    /* Плейсхолдер без баннера (hero и карточки) */
    --mp-gradient-placeholder: linear-gradient(
        128deg,
        #0f172a 0%,
        #14532d 22%,
        #16a34a 48%,
        #22c55e 72%,
        #0d9488 100%
    );
    --mp-gradient-placeholder-glow:
        radial-gradient(ellipse 85% 70% at 12% 100%, rgba(34, 197, 94, 0.55), transparent 58%),
        radial-gradient(ellipse 55% 45% at 92% 8%, rgba(45, 212, 191, 0.4), transparent 52%),
        radial-gradient(ellipse 40% 35% at 50% 40%, rgba(255, 255, 255, 0.12), transparent 60%);
    /* Затемнение только у нижнего края баннера — фото остаётся чистым */
    --mp-banner-scrim: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.78) 0%,
        rgba(15, 23, 42, 0.22) 32%,
        transparent 62%
    );
}

.mp-app {
    background: var(--mp-bg);
    color: var(--mp-text);
    font-family: var(--mp-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.mp-app a {
    color: var(--mp-primary);
    transition: color 0.15s;
}

.mp-app a:hover {
    color: var(--mp-primary-hover);
}

/* Корзина в шапке — заливка; вход/аккаунт — контур (см. __btn--account) */
.mp-header a.mp-header__basket {
    color: #fff !important;
    background-color: var(--mp-primary) !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.mp-header a.mp-header__basket:hover,
.mp-header a.mp-header__basket:focus-visible {
    color: #fff !important;
    background-color: var(--mp-primary-hover) !important;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 3px 12px rgba(22, 163, 74, 0.45);
    text-decoration: none !important;
}

.mp-header a.mp-header__btn--account {
    color: var(--mp-primary) !important;
    background-color: transparent !important;
    border: 1.5px solid var(--mp-primary) !important;
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mp-header a.mp-header__btn--account:hover,
.mp-header a.mp-header__btn--account:focus-visible {
    color: var(--mp-primary-hover) !important;
    background-color: rgba(22, 163, 74, 0.08) !important;
    border-color: var(--mp-primary-hover) !important;
    box-shadow: none;
    text-decoration: none !important;
}

.mp-header a.mp-header__brand:hover {
    color: var(--mp-text) !important;
    background: var(--mp-bg);
    border-radius: 8px;
}

/* ——— Шапка ——— */
.mp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mp-border);
    transition: box-shadow 0.2s;
}

.mp-header.is-scrolled {
    box-shadow: var(--mp-shadow);
}

.mp-header__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mp-header__row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.mp-header__row--top {
    min-height: 56px;
    padding: 0.35rem 0;
}

.mp-header__search-slot {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 440px;
}

.mp-header__tools {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
    margin-left: auto;
}

.mp-header__btn--account {
    max-width: 148px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1.5px solid var(--mp-primary);
    background: transparent;
    color: var(--mp-primary);
}

.mp-header__btn--account-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    min-width: 44px;
    max-width: none;
    padding: 0.5rem;
}

.mp-header__btn--account-icon .glyphicon {
    font-size: 1.15rem;
    line-height: 1;
    top: 0;
}

.mp-header__row--nav-desktop {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.35rem;
    padding: 0 0 0.55rem;
    border-top: 1px solid var(--mp-border);
}

.mp-header__nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mp-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.mp-header__nav-link:hover {
    background: var(--mp-bg);
    color: var(--mp-primary) !important;
}

.mp-header__catalog {
    position: relative;
}

.mp-header__catalog-summary {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--mp-text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.mp-header__catalog-summary::-webkit-details-marker {
    display: none;
}

.mp-header__catalog-summary::after {
    content: '▾';
    font-size: 0.65rem;
    opacity: 0.65;
}

.mp-header__catalog[open] .mp-header__catalog-summary {
    background: var(--mp-bg);
    color: var(--mp-primary);
}

.mp-header__catalog-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1050;
    display: grid;
    gap: 0.25rem;
    min-width: min(320px, 90vw);
    max-width: 360px;
    padding: 0.5rem;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    box-shadow: var(--mp-shadow-hover);
}

.mp-header__catalog-link {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    text-decoration: none !important;
    color: var(--mp-text) !important;
}

.mp-header__catalog-link:hover {
    background: var(--mp-bg);
}

.mp-header__catalog-link strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

.mp-header__catalog-link small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--mp-text-muted);
    font-weight: 500;
}

.mp-header__catalog-icon {
    flex-shrink: 0;
    font-size: 1.15rem;
    line-height: 1;
}

.mp-header__nav-section-label {
    padding: 0.35rem 0.5rem 0.15rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mp-text-muted);
    list-style: none;
}

.mp-header__nav-divider {
    height: 1px;
    margin: 0.35rem 0;
    background: var(--mp-border);
    list-style: none;
}

@media (min-width: 992px) {
    .mp-header__inner {
        padding: 0.45rem 1rem 0.5rem;
    }

    .mp-header__row--nav-desktop {
        display: flex;
        padding-top: 0.45rem;
    }

    .mp-header__toggle {
        display: none !important;
    }

    .mp-header__collapse {
        display: none !important;
    }

    .mp-header__basket--mobile {
        display: none !important;
    }

    .mp-search:not(.mp-search--large) {
        max-width: none;
    }
}

.mp-header__brand {
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--mp-text) !important;
}

.mp-header__logo {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.mp-header__tagline {
    font-size: 0.72rem;
    color: var(--mp-text-muted);
    font-weight: 500;
}

.mp-header__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-header__nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mp-text) !important;
    text-decoration: none !important;
}

.mp-header__nav a:hover {
    background: var(--mp-bg);
}

.mp-header__btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
}

.mp-header__toggle {
    display: none;
    padding: 0.5rem;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: var(--mp-surface);
}

@media (max-width: 991px) {
    .mp-header__inner {
        padding: 0.55rem 1rem 0.65rem;
        gap: 0.45rem;
        min-height: 0;
    }

    .mp-header__row--top {
        flex-wrap: wrap;
        min-height: 0;
        padding: 0;
    }

    .mp-header__tagline {
        display: none;
    }

    .mp-header__brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .mp-header__search-slot {
        flex: 1 1 100%;
        order: 10;
        max-width: none;
    }

    .mp-header__tools {
        margin-left: auto;
        flex-shrink: 0;
        gap: 0.35rem;
    }

    .mp-header a.mp-header__btn--account,
    .mp-header__btn--account {
        border: none !important;
        box-shadow: none;
        background: transparent !important;
    }

    .mp-header a.mp-header__btn--account:hover,
    .mp-header a.mp-header__btn--account:focus-visible {
        border: none !important;
        box-shadow: none;
        background-color: rgba(22, 163, 74, 0.08) !important;
    }

    .mp-header__btn--account:not(.mp-header__btn--account-icon) {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        max-width: 7.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .mp-header__btn--account-icon {
        min-height: 44px;
        padding: 0.5rem;
    }

    .mp-header__toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
        padding: 0.55rem;
        flex-shrink: 0;
    }

    .mp-header__basket--mobile {
        min-height: 44px;
        padding: 0.55rem 0.9rem;
    }

    .mp-search:not(.mp-search--large) {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .mp-search__field {
        padding: 0.4rem 0.45rem 0.4rem 0.65rem;
    }

    .mp-search__input {
        padding: 0.45rem 0 !important;
    }

    .mp-search__submit {
        width: 2.5rem;
        height: 2.5rem;
        min-height: 40px;
        min-width: 40px;
    }

    .mp-header__row--nav-desktop {
        display: none !important;
    }

    .mp-header__collapse {
        display: none;
        width: 100%;
        background: var(--mp-bg);
        border: 1px solid var(--mp-border);
        border-radius: 12px;
        padding: 0.65rem 0.75rem 0.75rem;
        box-shadow: none;
    }

    .mp-header__collapse.is-open {
        display: block;
    }

    .mp-header__nav--mobile {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
    }

    .mp-header__nav--mobile > li {
        width: 100%;
        margin: 0;
        list-style: none;
    }

    .mp-header__nav--mobile a {
        display: flex;
        width: 100%;
        justify-content: flex-start;
        padding: 0.65rem 0.75rem;
        box-sizing: border-box;
        font-size: 0.9rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .mp-header__btn--account {
        display: inline-flex;
    }

    .mp-header__inner {
        gap: 0.35rem;
    }

    .mp-header__search-slot {
        flex: 1 1 200px;
        order: 0;
        max-width: none;
    }
}

/* ——— Контейнер ——— */
.mp-main.container {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 3rem;
}

/* Якоря главной и каталога — не прячутся под липкой шапкой */
.mp-section[id],
.mp-home .mp-hero {
    scroll-margin-top: calc(var(--mp-header-h) + 0.75rem);
}

/* ——— Hero ——— */
.mp-hero {
    padding: 1.5rem 0 0.5rem;
}

.mp-hero__content {
    margin-bottom: 1.25rem;
}

.mp-hero__title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 0.5rem;
    color: var(--mp-text);
}

.mp-hero__lead {
    font-size: 1rem;
    color: var(--mp-text-muted);
    margin: 0 0 1rem;
    max-width: 36rem;
}

.mp-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp-hero__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--mp-text);
    text-decoration: none !important;
}

.mp-hero__chip:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary) !important;
}

.mp-hero__slider {
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    box-shadow: var(--mp-shadow);
}

.mp-hero__slider .carousel {
    margin: 0;
}

.mp-hero__slider .carousel-inner > .item {
    height: clamp(200px, 32vw, 340px);
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
}

.mp-hero__slider .carousel-inner > .item > div {
    height: 100%;
    border-radius: var(--mp-radius-lg);
}

.mp-hero__slider .carousel-text h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem) !important;
    font-weight: 700;
    color: #fff !important;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65), transparent);
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
}

.mp-hero__slider .carousel-indicators li {
    border: 2px solid #fff;
    background: transparent;
}

.mp-hero__slider .carousel-indicators .active {
    background: #fff;
}

/* ——— FAQ (Поиск с Алисой / нейроответы) ——— */
.mp-home-faq {
    margin-top: 2.5rem;
    padding: 1.5rem 1.25rem;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow);
}

.mp-home-faq__title {
    margin: 0 0 1rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-home-faq__list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mp-home-faq__item {
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    background: var(--mp-bg);
    overflow: hidden;
}

.mp-home-faq__question {
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text);
    cursor: pointer;
    list-style: none;
}

.mp-home-faq__question::-webkit-details-marker {
    display: none;
}

.mp-home-faq__answer {
    margin: 0;
    padding: 0 1rem 0.85rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--mp-text-muted);
}

/* ——— Секции ——— */
.mp-section {
    padding: 2rem 0 0.5rem;
}

.mp-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mp-section__title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: var(--mp-text);
}

.mp-section__subtitle {
    font-size: 0.88rem;
    color: var(--mp-text-muted);
    margin: 0.25rem 0 0;
}

.mp-section__icon {
    font-size: 1.5rem;
}

/* ——— Витрина: карточки товаров на главной ——— */
.mp-section--showcase {
    padding-top: 1.5rem;
}

.mp-showcase-scroll {
    margin: 0 -0.5rem;
    padding: 0 0.5rem 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--mp-scrollbar-thumb-hover) var(--mp-scrollbar-track);
    scroll-snap-type: x proximity;
}

.mp-showcase-scroll::-webkit-scrollbar {
    height: 6px;
}

.mp-showcase-scroll::-webkit-scrollbar-track {
    margin: 0 4px;
    background: var(--mp-scrollbar-track);
    border-radius: 999px;
}

.mp-showcase-scroll::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--mp-scrollbar-thumb) 0%, var(--mp-scrollbar-thumb-hover) 100%);
}

.mp-showcase-grid {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    min-width: min-content;
    padding-bottom: 0.35rem;
}

.mp-showcase-grid::after {
    content: '';
    flex: 0 0 0.5rem;
}

.mp-showcase-grid > .mp-showcase-card,
.mp-showcase-grid > article {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.mp-showcase-card {
    display: flex;
    flex-direction: column;
    flex: 0 0 168px;
    align-self: stretch;
    margin: 0;
    scroll-snap-align: start;
    height: auto;
    min-height: 100%;
}

@media (min-width: 992px) {
    .mp-showcase-scroll {
        overflow: visible;
        margin: 0;
        padding: 0;
    }

    .mp-showcase-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
        min-width: 0;
        align-items: stretch;
    }

    .mp-showcase-card {
        flex: none;
    }
}

.mp-showcase-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 16.75rem;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    box-shadow: var(--mp-shadow);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.mp-showcase-card__link:hover {
    transform: translateY(-3px);
    box-shadow: var(--mp-shadow-hover);
    border-color: rgba(22, 163, 74, 0.35);
    color: inherit !important;
}

.mp-showcase-card__media {
    position: relative;
    flex: 0 0 168px;
    width: 100%;
    height: 168px;
    min-height: 168px;
    max-height: 168px;
    overflow: hidden;
    background: #e2e8f0;
}

.mp-showcase-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mp-showcase-card__tag {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mp-showcase-card__tag--hit {
    background: #fef3c7;
    color: #92400e;
}

.mp-showcase-card__tag--new {
    background: #dbeafe;
    color: #1e40af;
}

.mp-showcase-card__body {
    padding: 0.65rem 0.75rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1 1 auto;
    min-height: 5.75rem;
}

.mp-showcase-card__price {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp-primary);
    flex: 0 0 auto;
    line-height: 1.2;
}

.mp-showcase-card__name {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--mp-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mp-showcase-card__vendor {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.25;
    color: var(--mp-text-muted);
    flex: 0 0 0.9rem;
    min-height: 0.9rem;
    max-height: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ——— Карточки партнёров ——— */
.mp-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.mp-partner-grid > .mp-partner-card,
.mp-partner-grid > article {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.mp-partner-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    min-height: 100%;
}

.mp-partner-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 20.5rem;
    min-width: 0;
    background: var(--mp-surface);
    border-radius: var(--mp-radius);
    overflow: hidden;
    border: 1px solid var(--mp-border);
    box-shadow: var(--mp-shadow);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.mp-partner-card__link:hover {
    transform: translateY(-4px);
    box-shadow: var(--mp-shadow-hover);
    border-color: rgba(22, 163, 74, 0.35);
    color: inherit !important;
}

.mp-partner-card__media {
    position: relative;
    flex: 0 0 164px;
    width: 100%;
    height: 164px;
    min-height: 164px;
    max-height: 164px;
    overflow: hidden;
    background-color: #e2e8f0;
}

.mp-partner-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mp-partner-card__media--gradient {
    background: var(--mp-gradient-placeholder);
}

.mp-partner-card__media--gradient::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mp-gradient-placeholder-glow);
    pointer-events: none;
}

.mp-partner-card__filling-badge {
    position: absolute;
    right: 0.65rem;
    bottom: 0.65rem;
    z-index: 2;
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    background: rgba(251, 191, 36, 0.95);
    color: #78350f;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.mp-partner-card--filling .mp-partner-card__cta {
    color: #b45309;
}

.mp-partner-card__badge {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.95);
    color: var(--mp-text);
}

.mp-partner-card__body {
    padding: 1rem 1.1rem 1.15rem;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 7.5rem;
    min-width: 0;
}

.mp-partner-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    line-height: 1.35;
    color: var(--mp-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.mp-partner-card__meta {
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--mp-text-muted);
    margin: 0 0 0.75rem;
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    overflow-wrap: break-word;
}

.mp-partner-card__cta {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mp-primary) !important;
}

.mp-partner-card--cta .mp-partner-card__link {
    border-style: dashed;
    border-color: rgba(22, 163, 74, 0.45);
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 45%, #f8fafc 100%);
}

.mp-partner-card--cta .mp-partner-card__link:hover {
    border-color: var(--mp-primary);
    background: linear-gradient(145deg, #dcfce7 0%, #f0fdf4 50%, #ffffff 100%);
}

.mp-partner-card__cta-banner {
    flex: 0 0 164px;
    height: 164px;
    min-height: 164px;
    max-height: 164px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0.04) 100%);
    border-bottom: 1px dashed rgba(22, 163, 74, 0.25);
}

.mp-partner-card__cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    font-size: 1.65rem;
    line-height: 1;
    background: var(--mp-surface);
    border: 2px solid rgba(22, 163, 74, 0.35);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.15);
}

.mp-partner-card__cta-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mp-primary);
}

.mp-partner-card--cta .mp-partner-card__name {
    color: var(--mp-primary);
}

.mp-partner-card--cta .mp-partner-card__cta {
    font-weight: 700;
}

/* ——— Страница ресторана ——— */
.mp-restaurant-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.85rem;
    background: var(--mp-surface);
    border-radius: 10px;
    border: 1px solid var(--mp-border);
    font-weight: 500;
    color: var(--mp-text) !important;
    text-decoration: none !important;
}

.mp-restaurant-shell {
    min-width: 0;
}

.mp-restaurant-head {
    margin-bottom: 1rem;
}

.mp-restaurant-head--banner {
    margin-bottom: 0;
}

.mp-restaurant-head--banner .mp-restaurant-hero--banner {
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.mp-restaurant-head--banner .mp-restaurant-schedule-notice {
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.mp-restaurant-head--plain .mp-restaurant-schedule-notice {
    margin-top: 0.75rem;
}

.mp-restaurant-hero {
    margin-bottom: 1.5rem;
}

.mp-restaurant-head .mp-restaurant-hero {
    margin-bottom: 0;
}

.mp-restaurant-hero--plain {
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    background: var(--mp-surface);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.mp-restaurant-hero--plain::before {
    content: '';
    display: block;
    height: 4px;
    background: var(--mp-gradient-placeholder);
}

.mp-restaurant-hero--banner {
    border-radius: var(--mp-radius-lg);
    overflow: hidden;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    box-shadow: var(--mp-shadow);
}

.mp-restaurant-hero__media {
    position: relative;
    overflow: hidden;
    min-height: clamp(200px, 42vw, 360px);
    max-height: 42vh;
    background-color: #e2e8f0;
}

.mp-restaurant-hero__banner {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #334155;
}

.mp-yandex-rating {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 0.45rem;
    line-height: 1.2;
}

.mp-yandex-rating--banner {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    z-index: 2;
    max-width: calc(100% - 1.5rem);
    margin: 0;
    padding: 0.45rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(6px);
    color: #fff;
}

.mp-yandex-rating--interactive {
    font: inherit;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.mp-yandex-rating--interactive:hover {
    background: rgba(15, 23, 42, 0.88);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.mp-yandex-rating--interactive:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.mp-yandex-rating--card {
    position: absolute;
    left: 0.65rem;
    bottom: 0.65rem;
    z-index: 2;
    max-width: calc(100% - 1.3rem);
    padding: 0.3rem 0.5rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(4px);
    color: #fff;
    pointer-events: none;
}

.mp-yandex-rating__stars {
    position: relative;
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.03em;
    line-height: 1;
}

.mp-yandex-rating--banner .mp-yandex-rating__stars {
    font-size: 0.95rem;
}

.mp-yandex-rating__stars-base {
    color: rgba(255, 255, 255, 0.35);
}

.mp-yandex-rating__stars-fill {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    white-space: nowrap;
    color: #facc15;
}

.mp-yandex-rating__value {
    font-size: 0.88rem;
    font-weight: 700;
}

.mp-yandex-rating--banner .mp-yandex-rating__value {
    font-size: 1rem;
}

.mp-yandex-rating__count {
    font-size: 0.72rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
}

.mp-restaurant-tabs-bar {
    min-width: 0;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__panel {
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-top: none;
    background: var(--mp-surface);
    color: var(--mp-text);
}

.mp-restaurant-hero__headline {
    padding: 0.75rem 1rem 0.65rem;
    background: var(--mp-surface);
    border-bottom: 1px solid var(--mp-border);
}

.mp-restaurant-hero__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.6rem;
    align-items: start;
}

.mp-restaurant-hero__row-title,
.mp-restaurant-hero__row-info {
    min-width: 0;
}

.mp-restaurant-hero__row-info {
    display: contents;
}

.mp-restaurant-hero__row .mp-restaurant-hero__info {
    grid-column: 2;
    margin: 0;
    background: transparent;
}

.mp-restaurant-hero__row .mp-restaurant-hero__info-summary {
    padding: 0.75rem 0.9rem;
}

.mp-restaurant-hero__row .mp-restaurant-hero__info-body {
    padding: 0 1rem 0.95rem;
    background: var(--mp-bg);
    border-top: 1px solid var(--mp-border);
}

.mp-restaurant-hero__row .mp-restaurant-hero__info[open] {
    grid-column: 1 / -1;
    border-top: 1px solid var(--mp-border);
}

.mp-restaurant-hero__panel--with-banner .mp-restaurant-hero__headline {
    border-bottom: none;
}

@media (max-width: 991px) {
    .mp-restaurant-hero__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mp-restaurant-hero__row-info {
        display: block;
    }

    .mp-restaurant-hero__row .mp-restaurant-hero__info {
        grid-column: 1;
        border-top: 1px solid var(--mp-border);
    }

    .mp-restaurant-hero__row .mp-restaurant-hero__info-summary {
        padding: 0.75rem 0.9rem;
    }

    .mp-restaurant-hero__row .mp-restaurant-hero__info-body {
        padding: 0 0.9rem 0.75rem;
        background: transparent;
        border-top: none;
    }

    .mp-restaurant-hero__row .mp-restaurant-hero__info[open] {
        grid-column: 1;
    }

    .mp-restaurant-hero__info-summary-preview {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.15rem;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }

    .mp-restaurant-hero__info-summary-preview-line {
        display: block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mp-restaurant-hero__meta-item--combined,
    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-row,
    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        flex: none;
        width: 100%;
        min-width: 0;
        gap: 0.2rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-label {
        flex: none;
        width: auto;
        margin: 0;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-value {
        flex: none;
        width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined {
        padding: 0.65rem 0.75rem;
        border: 1px solid var(--mp-border);
        border-radius: var(--mp-radius-md);
        background: var(--mp-bg);
        border-bottom: none;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-row + .mp-restaurant-hero__meta-row {
        margin-top: 0;
        padding-top: 0.65rem;
        border-top: 1px solid var(--mp-border);
    }

    .mp-restaurant-hero__meta {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .mp-restaurant-hero__meta-item {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: min(100%, 100%);
    }
}

.mp-restaurant-hero__headline .mp-restaurant-hero__badges {
    margin-bottom: 0.35rem;
}

.mp-restaurant-hero__headline .mp-restaurant-hero__title {
    font-size: clamp(1.375rem, 2.4vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--mp-text);
}

.mp-restaurant-hero__subtitle {
    margin-top: 0.2rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero__subtitle::before {
    content: '📍';
    display: inline-block;
    margin-right: 0.35rem;
    opacity: 0.85;
}

.mp-restaurant-hero__meta-item--hours .mp-restaurant-hero__meta-label::before,
.mp-restaurant-hero__meta-item--phone .mp-restaurant-hero__meta-label::before,
.mp-restaurant-hero__meta-row--hours .mp-restaurant-hero__meta-label::before,
.mp-restaurant-hero__meta-row--phone .mp-restaurant-hero__meta-label::before {
    display: inline-block;
    margin-right: 0.35rem;
    opacity: 0.85;
}

.mp-restaurant-hero__meta-item--hours .mp-restaurant-hero__meta-label::before,
.mp-restaurant-hero__meta-row--hours .mp-restaurant-hero__meta-label::before {
    content: '⏱';
}

.mp-restaurant-hero__meta-item--phone .mp-restaurant-hero__meta-label::before,
.mp-restaurant-hero__meta-row--phone .mp-restaurant-hero__meta-label::before {
    content: '☎';
}

.mp-restaurant-hero__meta-item--combined {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.mp-restaurant-hero__meta-row {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-row + .mp-restaurant-hero__meta-row {
    padding-top: 0.65rem;
    border-top: 1px solid var(--mp-border);
}

.mp-restaurant-hero__legal--inline {
    margin-top: 0.2rem;
}

.mp-restaurant-hero__legal--inline summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    font-weight: 600;
    color: var(--mp-primary);
}

.mp-restaurant-hero__legal--inline summary:hover {
    color: var(--mp-primary-hover);
}

.mp-restaurant-hero__legal--inline summary::after {
    font-size: 0.9em;
}

.mp-restaurant-hero__legal--inline .mp-restaurant-hero__legal-body {
    max-width: 46rem;
}

.mp-restaurant-hero__panel--with-banner .mp-restaurant-hero__info {
    background: var(--mp-bg);
}

.mp-restaurant-hero__panel {
    padding: 1.25rem 1.35rem 1.35rem;
}

.mp-restaurant-hero__info {
    margin: 0;
}

.mp-restaurant-hero__info-summary {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.mp-restaurant-hero__info-summary::-webkit-details-marker {
    display: none;
}

.mp-restaurant-hero__info-summary-main {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    flex: 1 1 auto;
}

.mp-restaurant-hero__info-summary-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero__info-summary-preview {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--mp-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mp-restaurant-hero__info-summary-chevron {
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    margin-top: -0.15rem;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.mp-restaurant-hero__info[open] .mp-restaurant-hero__info-summary-chevron {
    transform: rotate(-135deg);
    margin-top: 0.2rem;
    border-color: #cbd5e1;
}

.mp-restaurant-hero__info-body {
    padding: 0 0.9rem 0.75rem;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta {
    margin: 0;
    gap: 0;
    flex-direction: column;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) {
    flex: none;
    width: 100%;
    max-width: none;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.45rem 0;
    border: none;
    border-radius: 0;
    background: transparent;
    border-bottom: 1px solid var(--mp-border);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    gap: 0;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    gap: 0.2rem;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-label {
    flex: none;
    width: auto;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-value {
    flex: none;
    width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    color: var(--mp-text);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined):last-child,
.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined {
    border-bottom: none;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) .mp-restaurant-hero__meta-label {
    flex: 0 0 4.25rem;
    margin-top: 0.05rem;
    font-size: 0.62rem;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) .mp-restaurant-hero__meta-value {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: var(--mp-text);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__phone {
    color: var(--mp-primary) !important;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__phone:hover {
    color: var(--mp-primary-hover) !important;
}

.mp-restaurant-hero--banner .mp-restaurant-hero__legal {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__legal summary {
    color: var(--mp-text);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__legal-body {
    border-top-color: var(--mp-border);
    color: var(--mp-text-muted);
}

.mp-restaurant-hero--banner .mp-restaurant-hero__legal-meta {
    color: var(--mp-text-muted);
}

@media (min-width: 768px) {
    .mp-restaurant-hero--banner .mp-restaurant-hero__panel {
        padding: 1rem 1.25rem 1.1rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__info > .mp-restaurant-hero__info-summary {
        display: none;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__info-body {
        padding: 0;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) {
        flex: 1 1 calc(33.333% - 0.27rem);
        min-width: min(100%, 10.5rem);
        padding: 0.4rem 0.55rem;
        border: 1px solid var(--mp-border);
        border-radius: 8px;
        background: var(--mp-bg);
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined):last-child {
        border-bottom: 1px solid var(--mp-border);
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) .mp-restaurant-hero__meta-label {
        flex: 0 0 auto;
        display: block;
        margin-bottom: 0.1rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) .mp-restaurant-hero__meta-value {
        display: block;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .mp-restaurant-hero--banner .mp-restaurant-hero__meta {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0.5rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item--combined {
        flex: 1 1 100%;
        width: 100%;
        padding: 0.65rem 0.75rem;
        border: 1px solid var(--mp-border);
        border-radius: var(--mp-radius-md);
        background: var(--mp-bg);
    }
}

.mp-restaurant-hero__lead {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mp-restaurant-hero__brand {
    flex-shrink: 0;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: var(--mp-radius-md);
    overflow: hidden;
    background: var(--mp-gradient-placeholder);
    border: 1px solid var(--mp-border);
}

.mp-restaurant-hero__brand .mp-card-placeholder {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.mp-restaurant-hero__brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    color: var(--mp-primary);
    opacity: 0.85;
}

.mp-restaurant-hero__titles {
    flex: 1;
    min-width: 0;
}

.mp-restaurant-hero__badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.4rem;
}

.mp-restaurant-hero__type {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.1);
    color: var(--mp-primary);
}

.mp-restaurant-hero__filling-badge {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(251, 191, 36, 0.25);
    color: #b45309;
}

.mp-restaurant-menu-filling {
    margin: 0 0 2rem;
    padding: 2rem 1.25rem;
    text-align: center;
    background: var(--mp-surface);
    border: 1px dashed var(--mp-border);
    border-radius: var(--mp-radius-lg);
}

.mp-restaurant-menu-filling__badge {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(251, 191, 36, 0.2);
    color: #b45309;
}

.mp-restaurant-menu-filling__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-restaurant-menu-filling__text {
    margin: 0;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--mp-text-muted);
}

.mp-restaurant-menu-filling__text a {
    color: var(--mp-primary);
    font-weight: 600;
}

.mp-restaurant-hero__title {
    margin: 0;
    font-size: clamp(1.35rem, 3.5vw, 1.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--mp-text);
}

.mp-restaurant-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.mp-restaurant-hero__meta-item {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: min(100%, 11.5rem);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--mp-radius-md);
    border: 1px solid var(--mp-border);
    background: var(--mp-bg);
}

@media (min-width: 640px) {
    .mp-restaurant-hero__meta-item {
        flex: 1 1 auto;
        max-width: calc(33.333% - 0.34rem);
    }
}

.mp-restaurant-hero__meta-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero__meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--mp-text);
}

.mp-restaurant-hero__phone {
    color: var(--mp-primary) !important;
    font-weight: 600;
    text-decoration: none !important;
}

.mp-restaurant-hero__phone:hover {
    text-decoration: underline !important;
}

.mp-restaurant-hero__legal {
    margin-top: 0.85rem;
    font-size: 0.82rem;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero__legal summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--mp-text);
    list-style: none;
}

.mp-restaurant-hero__legal summary::-webkit-details-marker {
    display: none;
}

.mp-restaurant-hero__legal summary::after {
    content: ' ▾';
    font-size: 0.75em;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero__legal[open] summary::after {
    content: ' ▴';
}

.mp-restaurant-hero__legal-body {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mp-border);
    line-height: 1.45;
    color: var(--mp-text-muted);
}

.mp-restaurant-hero__legal-body p {
    margin: 0 0 0.35rem;
}

.mp-restaurant-hero__legal-meta {
    font-size: 0.78rem;
    color: var(--mp-text-muted);
}

.mp-restaurant-schedule-notice {
    margin: 0 0 1.25rem;
    border-radius: var(--mp-radius-lg);
    border: 1px solid var(--mp-border);
    overflow: hidden;
}

.mp-restaurant-schedule-notice.is-hidden {
    display: none;
}

.mp-restaurant-schedule-notice__inner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
}

.mp-restaurant-schedule-notice__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
}

.mp-restaurant-schedule-notice--info .mp-restaurant-schedule-notice__icon {
    background: rgba(37, 99, 235, 0.15);
}

.mp-restaurant-schedule-notice--info .mp-restaurant-schedule-notice__icon::before {
    content: 'ℹ';
}

.mp-restaurant-schedule-notice--warning .mp-restaurant-schedule-notice__icon {
    background: rgba(245, 158, 11, 0.22);
}

.mp-restaurant-schedule-notice--warning .mp-restaurant-schedule-notice__icon::before {
    content: '⏱';
}

.mp-restaurant-schedule-notice__content {
    flex: 1 1 auto;
    min-width: 0;
}

.mp-restaurant-schedule-notice--info {
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.22);
    border-left: 3px solid #3b82f6;
}

.mp-restaurant-schedule-notice--warning {
    background: rgba(254, 243, 199, 0.45);
    border-color: rgba(245, 158, 11, 0.35);
    border-left: 3px solid #f59e0b;
}

.mp-restaurant-schedule-notice__title {
    margin: 0 0 0.3rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-restaurant-schedule-notice--info .mp-restaurant-schedule-notice__title {
    color: #1d4ed8;
}

.mp-restaurant-schedule-notice--warning .mp-restaurant-schedule-notice__title {
    color: #b45309;
}

.mp-restaurant-schedule-notice__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--mp-text);
}

.mp-restaurant-schedule-notice__tz {
    margin: 0.45rem 0 0;
    font-size: 0.75rem;
    color: var(--mp-text-muted);
}

.mp-restaurant-tabs__content {
    min-width: 0;
}

.mp-restaurant-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid var(--mp-border);
}

.mp-restaurant-tabs__list--head {
    margin-bottom: 0;
}

.mp-restaurant-tabs__btn {
    margin: 0;
    padding: 0.65rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--mp-text-muted);
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.mp-restaurant-tabs__btn:hover {
    color: var(--mp-text);
    background: var(--mp-bg);
}

.mp-restaurant-tabs__btn.is-active {
    color: var(--mp-primary);
    background: var(--mp-surface);
    border-color: var(--mp-border);
    border-bottom-color: var(--mp-surface);
    margin-bottom: -1px;
}

.mp-restaurant-tabs__panel[hidden] {
    display: none !important;
}

.mp-restaurant-tabs__panel--directions .mp-restaurant-map {
    margin: 0;
    max-width: 900px;
}

.mp-restaurant-tabs__panel--reviews .mp-restaurant-reviews {
    margin: 0;
    max-width: 760px;
}

.mp-restaurant-reviews {
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem;
    background: var(--mp-surface);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-sm);
}

.mp-restaurant-tabs__content .mp-restaurant-reviews {
    margin: 0;
}

.mp-restaurant-reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.mp-restaurant-reviews__lead {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-restaurant-reviews__link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mp-primary);
    text-decoration: none;
}

.mp-restaurant-reviews__link:hover {
    color: var(--mp-primary-hover);
    text-decoration: underline;
}

.mp-restaurant-reviews__frame {
    position: relative;
    width: 100%;
    max-width: 760px;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    background: #f8fafc;
}

.mp-restaurant-reviews__frame iframe {
    display: block;
    width: 100%;
    min-height: 500px;
    height: 720px;
    border: 0;
}

.mp-restaurant-map {
    margin: 1.25rem 0 1.5rem;
    padding: 1.25rem;
    background: var(--mp-surface);
    border-radius: var(--mp-radius);
    box-shadow: var(--mp-shadow-sm);
}

.mp-restaurant-tabs__content .mp-restaurant-map {
    margin: 0;
}

@media (max-width: 991px) {
    .mp-restaurant-head--banner {
        border-radius: var(--mp-radius-lg) var(--mp-radius-lg) 0 0;
        overflow: hidden;
        border: 1px solid var(--mp-border);
        border-bottom: none;
        box-shadow: none;
        margin-bottom: 0;
    }

    .mp-restaurant-head--plain.mp-restaurant-head--tabs {
        margin-bottom: 0;
    }

    .mp-restaurant-head--banner .mp-restaurant-hero--banner {
        border-radius: 0;
        border: none;
    }

    .mp-restaurant-head--tabs + .mp-restaurant-tabs-bar {
        margin-bottom: 1rem;
        border: 1px solid var(--mp-border);
        border-top: 1px solid var(--mp-border);
        border-radius: 0 0 var(--mp-radius-lg) var(--mp-radius-lg);
        background: var(--mp-surface);
        box-shadow: var(--mp-shadow);
        overflow: hidden;
    }

    .mp-restaurant-head--plain + .mp-restaurant-tabs-bar {
        margin-bottom: 1rem;
        border: 1px solid var(--mp-border);
        border-radius: var(--mp-radius-lg);
        background: var(--mp-surface);
        box-shadow: var(--mp-shadow);
        overflow: hidden;
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__list--head {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.35rem;
        margin: 0;
        padding: 0.45rem 0.55rem 0.5rem;
        border: none;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__list--head::-webkit-scrollbar {
        display: none;
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__btn {
        flex: 1 1 auto;
        min-width: max-content;
        margin-bottom: 0;
        padding: 0.55rem 0.85rem;
        border: 1px solid transparent;
        border-radius: 10px;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__btn {
        color: var(--mp-text-muted);
        background: transparent;
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__btn:hover {
        color: var(--mp-text);
        background: var(--mp-bg);
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__btn.is-active {
        color: var(--mp-primary);
        background: rgba(22, 163, 74, 0.1);
        border-color: rgba(22, 163, 74, 0.22);
    }

    .mp-restaurant-shell--tabs .mp-restaurant-tabs__content {
        margin-top: 1rem;
    }
}

@media (min-width: 992px) {
    .mp-restaurant-head {
        margin-bottom: 2rem;
    }

    .mp-restaurant-head--banner {
        overflow: visible;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .mp-restaurant-head--banner .mp-restaurant-hero--banner {
        border: 1px solid var(--mp-border);
        border-radius: var(--mp-radius-lg);
        overflow: hidden;
        box-shadow: var(--mp-shadow-hover);
    }

    .mp-restaurant-head--banner .mp-restaurant-hero__media {
        border-radius: var(--mp-radius-lg) var(--mp-radius-lg) 0 0;
    }

    .mp-restaurant-head--banner .mp-restaurant-hero--banner .mp-restaurant-hero__panel {
        border-radius: 0 0 var(--mp-radius-lg) var(--mp-radius-lg);
    }

    .mp-restaurant-hero__media {
        min-height: clamp(260px, 30vw, 400px);
        max-height: 55vh;
    }

    .mp-restaurant-hero__headline {
        padding: 0.95rem 1.25rem 0.8rem;
    }

    .mp-restaurant-hero__headline .mp-restaurant-hero__title {
        font-size: 1.75rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta {
        gap: 0.65rem;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__meta-item:not(.mp-restaurant-hero__meta-item--combined) {
        padding: 0.55rem 0.75rem;
        border-radius: 12px;
        background: var(--mp-surface);
        box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    }

    .mp-restaurant-hero__row {
        grid-template-columns: minmax(0, 1fr) 25%;
        gap: 1rem 1.25rem;
        align-items: stretch;
    }

    .mp-restaurant-hero__row .mp-restaurant-hero__row-title {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        min-height: 100%;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__info {
        grid-column: 2;
        border-top: none;
        min-height: 100%;
        height: 100%;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

    .mp-restaurant-hero__row .mp-restaurant-hero__info[open] {
        grid-column: 2;
        border-top: none;
    }

    .mp-restaurant-hero__panel--with-banner .mp-restaurant-hero__row-info .mp-restaurant-hero__info {
        background: transparent;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__info > .mp-restaurant-hero__info-summary {
        display: none;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__info-body {
        padding: 0;
        flex: 1 1 auto;
        height: 100%;
        min-height: 0;
        overflow: visible;
        background: transparent;
        border-top: none;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        margin: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
        gap: 0;
    }

    .mp-restaurant-hero--banner .mp-restaurant-hero__row-info .mp-restaurant-hero__meta {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 0;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-item--combined,
    .mp-restaurant-hero--banner .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-item--combined {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        align-items: stretch;
        width: 100%;
        max-width: none;
        min-width: 0;
        height: 100%;
        min-height: 100%;
        margin: 0;
        gap: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        width: 100%;
        min-width: 0;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-row .mp-restaurant-hero__meta-label {
        flex: none;
        width: auto;
        margin: 0;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-row .mp-restaurant-hero__meta-value {
        display: block;
        flex: none;
        width: 100%;
        min-width: 0;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        line-height: 1.4;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-row--hours {
        flex: 0 0 auto;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-row--phone {
        flex: 0 0 auto;
        margin-top: auto;
        width: 100%;
    }

    .mp-restaurant-hero__row-info .mp-restaurant-hero__meta-item--combined .mp-restaurant-hero__meta-row + .mp-restaurant-hero__meta-row {
        margin-top: 0;
        padding-top: 0.75rem;
        border-top: 1px solid var(--mp-border);
    }

    .mp-yandex-rating--banner {
        right: 0.65rem;
        bottom: 0.65rem;
        padding: 0.4rem 0.55rem;
    }

    .mp-yandex-rating--card {
        left: 0.5rem;
        bottom: 0.5rem;
        padding: 0.25rem 0.45rem;
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice {
        margin: 1.25rem 0 1.5rem;
        border-radius: var(--mp-radius-lg);
        box-shadow: var(--mp-shadow);
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice__inner {
        padding: 1.15rem 1.4rem;
        gap: 1rem;
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice__icon {
        width: 2.75rem;
        height: 2.75rem;
        border-radius: 12px;
        font-size: 1.35rem;
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice--warning {
        background: linear-gradient(105deg, rgba(254, 243, 199, 0.95) 0%, rgba(255, 251, 235, 1) 55%, #fff 100%);
        border-left-width: 4px;
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice--info {
        background: linear-gradient(105deg, rgba(219, 234, 254, 0.9) 0%, rgba(239, 246, 255, 1) 55%, #fff 100%);
        border-left-width: 4px;
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice__title {
        font-size: 1.05rem;
    }

    .mp-restaurant-head--banner .mp-restaurant-schedule-notice__text {
        font-size: 0.92rem;
        max-width: 52rem;
    }

    .mp-restaurant-head--plain .mp-restaurant-schedule-notice {
        margin: 1.25rem 0 1.5rem;
    }

    .mp-restaurant-head--tabs {
        margin-bottom: 0;
    }

    .mp-restaurant-head--tabs + .mp-restaurant-tabs-bar {
        margin-top: 1.25rem;
        margin-bottom: 1.75rem;
        padding: 0.35rem 0.75rem 0;
        background: var(--mp-surface);
        border: 1px solid var(--mp-border);
        border-radius: var(--mp-radius-lg);
        box-shadow: var(--mp-shadow-sm);
    }

    .mp-restaurant-tabs-bar .mp-restaurant-tabs__list--head {
        margin: 0;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid var(--mp-border);
    }

    .mp-restaurant-shell--tabs .mp-restaurant-tabs__content {
        margin-top: 0;
    }
}

.mp-restaurant-map__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.mp-restaurant-map__address {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--mp-text);
    font-size: 0.92rem;
    color: var(--mp-text-muted);
    line-height: 1.4;
}

.mp-restaurant-map__link {
    flex-shrink: 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mp-accent);
    text-decoration: none;
    white-space: nowrap;
}

.mp-restaurant-map__link:hover,
.mp-restaurant-map__link:focus {
    text-decoration: underline;
}

.mp-restaurant-map__frame {
    position: relative;
    width: 100%;
    border-radius: calc(var(--mp-radius) - 4px);
    overflow: hidden;
    background: var(--mp-border);
    aspect-ratio: 16 / 9;
}

.mp-restaurant-map__frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .mp-restaurant-map__frame {
        aspect-ratio: 21 / 9;
    }
}

.mp-restaurant-nav__heading {
    margin: 0 0 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mp-text-muted);
}

.mp-restaurant-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 992px) {
    .mp-restaurant-layout {
        grid-template-columns: 1fr 280px;
    }
}

.mp-restaurant-nav {
    display: none;
}

@media (min-width: 992px) {
    .mp-restaurant-nav {
        display: none;
    }
}

.mp-restaurant-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--mp-surface);
    border-radius: var(--mp-radius);
    border: 1px solid var(--mp-border);
    overflow: hidden;
}

.mp-restaurant-nav__list a {
    display: block;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mp-text) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--mp-border);
}

.mp-restaurant-nav__list li:last-child a {
    border-bottom: none;
}

.mp-restaurant-nav__list a:hover {
    background: #f0fdf4;
    color: var(--mp-primary) !important;
}

.mp-restaurant-cats-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    :root {
        /* шапка + строка поиска на мобилке */
        --mp-header-h: 9.5rem;
    }

    .mp-restaurant-cats-mobile {
        position: sticky;
        top: var(--mp-header-h);
        z-index: 1020;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -1rem 1rem;
        padding: 0.55rem 1rem;
        background: rgba(255, 255, 255, 0.94);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--mp-border);
        box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    }

    .mp-restaurant-cats-mobile::-webkit-scrollbar {
        display: none;
    }

    .mp-restaurant-cats-mobile a {
        flex-shrink: 0;
    }

    .mp-restaurant-menu .mp-menu-section h2 {
        scroll-margin-top: calc(var(--mp-header-h) + 3.25rem);
    }
}

@media (min-width: 992px) {
    .mp-restaurant-cats-mobile {
        display: flex;
        position: sticky;
        top: var(--mp-header-h);
        z-index: 1020;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 0 1rem;
        padding: 0.5rem 0;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 100%);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--mp-border);
    }
}

.mp-restaurant-cats-mobile a {
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--mp-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.mp-menu-section {
    margin-bottom: 0.5rem;
}

.mp-menu-section:first-child h2 {
    margin-top: 0;
}

.mp-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

@media (min-width: 576px) {
    .mp-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.mp-menu-grid__item {
    display: flex;
    min-width: 0;
}

.mp-menu-grid__item > .mp-product-card {
    width: 100%;
}

.mp-menu-section h4,
.mp-menu-section h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 1.5rem 0 1rem;
    padding-top: 0.5rem;
    scroll-margin-top: calc(var(--mp-header-h) + 1rem);
    color: var(--mp-text);
}

.mp-restaurant-menu .mp-product-card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 0.75rem;
    margin: 0;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--mp-shadow);
    transition: box-shadow 0.15s;
    color: var(--mp-text);
}

.mp-restaurant-menu .mp-product-card:hover {
    box-shadow: var(--mp-shadow-hover);
}

.mp-product-card__image,
.mp-restaurant-menu .mp-product-card .card_image {
    position: relative;
    flex: 0 0 140px;
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: #e2e8f0;
}

.mp-product-card__image img,
.mp-restaurant-menu .mp-product-card .card_image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mp-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(22, 101, 52, 0.45);
    pointer-events: none;
}

.mp-card-placeholder__icon {
    width: 2.75rem;
    height: 2.75rem;
}

.mp-card-placeholder__icon--lg {
    width: 3.5rem;
    height: 3.5rem;
}

.mp-product-card__image--placeholder,
.mp-showcase-card__media--placeholder {
    background: var(--mp-gradient-placeholder);
}

.mp-showcase-card__media--placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--mp-gradient-placeholder-glow);
    pointer-events: none;
}

.mp-partner-card__media--gradient .mp-card-placeholder--partner {
    z-index: 1;
}

.mp-restaurant-menu .mp-product-card .product-card__prices {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mp-text);
    margin-bottom: 0.35rem;
    flex: 0 0 auto;
}

.mp-product-card__title,
.mp-restaurant-menu .mp-product-card .product-card__name h4 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 0.25rem;
    color: var(--mp-text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-height: 0;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.mp-restaurant-menu .mp-product-card .product-card__name {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.mp-product-card__desc-wrap {
    margin-top: 0.2rem;
    min-width: 0;
}

.mp-product-card__desc {
    margin: 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: var(--mp-text-muted);
    white-space: pre-line;
    word-break: break-word;
}

.mp-product-card__desc--collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mp-product-card__desc-toggle {
    display: inline-block;
    margin-top: 0.3rem;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mp-primary);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mp-product-card__desc-toggle:hover,
.mp-product-card__desc-toggle:focus-visible {
    color: var(--mp-primary-hover);
}

.mp-product-card__desc-toggle[hidden] {
    display: none !important;
}

.mp-restaurant-menu .mp-product-card .product-card__button {
    margin-top: auto;
    padding-top: 0.65rem;
    flex: 0 0 auto;
}

.mp-restaurant-menu .mp-product-card .btn-default,
.mp-restaurant-menu .mp-product-card .btn-success {
    border-radius: 10px;
    font-weight: 600;
}

/* Контурные кнопки добавления в корзину */
.mp-restaurant-menu .mp-product-card .addToBasket.btn-block,
.mp-restaurant-menu .mp-product-card .catalog-order-btn--service,
.mp-restaurant-menu .mp-product-card .catalog-order-btn.btn-success {
    background: transparent;
    color: var(--mp-primary);
    border: 1.5px solid var(--mp-primary);
    box-shadow: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mp-restaurant-menu .mp-product-card .addToBasket.btn-block:hover,
.mp-restaurant-menu .mp-product-card .addToBasket.btn-block:focus-visible,
.mp-restaurant-menu .mp-product-card .catalog-order-btn--service:hover,
.mp-restaurant-menu .mp-product-card .catalog-order-btn--service:focus-visible,
.mp-restaurant-menu .mp-product-card .catalog-order-btn.btn-success:hover,
.mp-restaurant-menu .mp-product-card .catalog-order-btn.btn-success:focus-visible {
    background: rgba(22, 163, 74, 0.08);
    color: var(--mp-primary-hover);
    border-color: var(--mp-primary-hover);
}

.mp-restaurant-menu .mp-product-card .btn-group-justified {
    display: flex;
    width: 100%;
    border: 1.5px solid var(--mp-primary);
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
}

.mp-restaurant-menu .mp-product-card .btn-group-justified > .btn {
    flex: 1;
    float: none;
    border: none;
    border-right: 1px solid rgba(22, 163, 74, 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--mp-primary);
    box-shadow: none;
}

.mp-restaurant-menu .mp-product-card .btn-group-justified > .btn:last-child {
    border-right: none;
}

.mp-restaurant-menu .mp-product-card .btn-group-justified > .btn:hover,
.mp-restaurant-menu .mp-product-card .btn-group-justified > .btn:focus-visible {
    background: rgba(22, 163, 74, 0.08);
    color: var(--mp-primary-hover);
}

.mp-restaurant-menu .mp-product-card .btn-group-justified > .btn:nth-child(2) {
    font-weight: 700;
}

.mp-product-card__image--zoom {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0 0 0.75rem;
    border: none;
    background: #e2e8f0;
    cursor: zoom-in;
    text-align: left;
    font: inherit;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}

.mp-product-card__image--zoom:focus-visible {
    outline: 2px solid var(--mp-primary);
    outline-offset: 2px;
}

.mp-product-card__image--zoom img {
    transition: transform 0.2s ease;
}

.mp-product-card__image--zoom:hover img,
.mp-product-card__image--zoom:focus-visible img {
    transform: scale(1.03);
}

body.mp-product-lightbox-open {
    overflow: hidden;
}

.mp-product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.mp-product-lightbox[hidden] {
    display: none !important;
}

.mp-product-lightbox.is-open {
    display: flex;
}

.mp-product-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 12, 20, 0.94);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.mp-product-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    max-height: 100%;
    margin: 0 auto;
    padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.mp-product-lightbox__close {
    position: absolute;
    top: calc(0.65rem + env(safe-area-inset-top, 0));
    right: calc(0.65rem + env(safe-area-inset-right, 0));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mp-product-lightbox__close:hover,
.mp-product-lightbox__close:focus-visible {
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    outline: none;
}

.mp-product-lightbox__stage {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 3.25rem 0.5rem 0.75rem;
}

.mp-product-lightbox.is-open .mp-product-lightbox__stage {
    touch-action: none;
}

.mp-product-lightbox__figure {
    margin: 0;
    width: 100%;
    max-height: min(58vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mp-product-lightbox__img {
    max-width: 100%;
    max-height: min(58vh, 520px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.45);
    user-select: none;
    -webkit-user-drag: none;
}

.mp-product-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.15rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mp-product-lightbox__nav:hover,
.mp-product-lightbox__nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    outline: none;
}

.mp-product-lightbox__nav[hidden] {
    display: none !important;
}

.mp-product-lightbox__nav--prev {
    left: 0.35rem;
}

.mp-product-lightbox__nav--next {
    right: 0.35rem;
}

.mp-product-lightbox__sheet {
    flex: 0 0 auto;
    padding: 1rem 1.15rem calc(1.15rem + env(safe-area-inset-bottom, 0));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.88) 18%, rgba(15, 23, 42, 0.98) 100%);
    color: #f8fafc;
    touch-action: pan-y;
}

.mp-product-lightbox__price {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
}

.mp-product-lightbox__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #f1f5f9;
}

.mp-product-lightbox__desc {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(241, 245, 249, 0.82);
    white-space: pre-line;
    word-break: break-word;
    max-height: 28vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mp-product-lightbox__desc[hidden] {
    display: none !important;
}

.mp-product-lightbox__actions {
    width: 100%;
    margin-top: 0.65rem;
    padding-top: 0.15rem;
}

.mp-product-lightbox__actions .btn,
.mp-product-lightbox__actions .addToBasket,
.mp-product-lightbox__actions .catalog-order-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0 1.25rem;
    min-height: 52px;
    height: auto;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    float: none !important;
    position: static !important;
    vertical-align: middle;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mp-product-lightbox__actions .addToBasket.btn-block,
.mp-product-lightbox__actions .catalog-order-btn--service {
    background: transparent;
    color: #bbf7d0 !important;
    border: 1.5px solid rgba(134, 239, 172, 0.7);
    box-shadow: none;
}

.mp-product-lightbox__actions .addToBasket.btn-block:hover,
.mp-product-lightbox__actions .addToBasket.btn-block:focus-visible,
.mp-product-lightbox__actions .catalog-order-btn--service:hover,
.mp-product-lightbox__actions .catalog-order-btn--service:focus-visible {
    background: rgba(22, 163, 74, 0.22);
    border-color: #86efac;
    color: #fff !important;
    box-shadow: none;
}

.mp-product-lightbox__actions .btn-group.btn-group-justified {
    display: grid !important;
    grid-template-columns: minmax(3.25rem, 1fr) minmax(3.5rem, 1.15fr) minmax(3.25rem, 1fr);
    align-items: stretch;
    width: 100%;
    table-layout: auto;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid rgba(134, 239, 172, 0.55);
    background: transparent;
    box-shadow: none;
}

.mp-product-lightbox__actions .btn-group-justified > .btn {
    display: inline-flex !important;
    width: 100%;
    min-height: 52px;
    padding: 0 0.5rem;
    border: none;
    border-radius: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    background: transparent;
    color: #fff !important;
    box-shadow: none;
}

.mp-product-lightbox__actions .btn-group-justified > .btn:last-child {
    border-right: none;
}

.mp-product-lightbox__actions .btn-group-justified > .btn:first-child,
.mp-product-lightbox__actions .btn-group-justified > .btn:last-child {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1;
}

.mp-product-lightbox__actions .btn-group-justified > .btn:nth-child(2) {
    background: rgba(22, 163, 74, 0.18);
    color: #dcfce7 !important;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mp-product-lightbox__actions .btn-group-justified > .btn:hover,
.mp-product-lightbox__actions .btn-group-justified > .btn:focus-visible {
    background: rgba(22, 163, 74, 0.28);
    color: #fff !important;
}

.mp-product-lightbox__actions .btn-group-justified > .btn:nth-child(2):hover,
.mp-product-lightbox__actions .btn-group-justified > .btn:nth-child(2):focus-visible {
    background: rgba(255, 255, 255, 0.18);
}

@media (min-width: 768px) {
    .mp-product-lightbox__dialog {
        padding-top: env(safe-area-inset-top, 0);
    }

    .mp-product-lightbox__stage {
        padding: 3.5rem 3rem 1rem;
    }

    .mp-product-lightbox__nav--prev {
        left: 0.75rem;
    }

    .mp-product-lightbox__nav--next {
        right: 0.75rem;
    }

    .mp-product-lightbox__sheet {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
        border-radius: 20px 20px 0 0;
    }
}

.mp-restaurant-basket {
    min-width: 0;
}

.mp-basket-panel {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius);
    padding: 1.15rem;
    box-shadow: var(--mp-shadow);
}

.mp-basket-panel__title {
    margin: 0 0 0.85rem;
    font-size: 1.1rem;
}

.mp-basket-panel__items {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: none;
}

/* Стильные скроллбары маркетплейса */
.mp-scrollbar,
.mp-restaurant-basket .mp-basket-panel__items,
.mp-restaurant-basket .mp-basket-panel,
.mp-product-lightbox__desc {
    scrollbar-width: thin;
    scrollbar-color: var(--mp-scrollbar-thumb-hover) var(--mp-scrollbar-track);
    scrollbar-gutter: stable;
}

.mp-scrollbar::-webkit-scrollbar,
.mp-restaurant-basket .mp-basket-panel__items::-webkit-scrollbar,
.mp-restaurant-basket .mp-basket-panel::-webkit-scrollbar,
.mp-product-lightbox__desc::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.mp-scrollbar::-webkit-scrollbar-track,
.mp-restaurant-basket .mp-basket-panel__items::-webkit-scrollbar-track,
.mp-restaurant-basket .mp-basket-panel::-webkit-scrollbar-track,
.mp-product-lightbox__desc::-webkit-scrollbar-track {
    margin: 6px 0;
    background: var(--mp-scrollbar-track);
    border-radius: 999px;
}

.mp-scrollbar::-webkit-scrollbar-thumb,
.mp-restaurant-basket .mp-basket-panel__items::-webkit-scrollbar-thumb,
.mp-restaurant-basket .mp-basket-panel::-webkit-scrollbar-thumb,
.mp-product-lightbox__desc::-webkit-scrollbar-thumb {
    border: 2px solid var(--mp-scrollbar-track);
    border-radius: 999px;
    background: linear-gradient(180deg, var(--mp-scrollbar-thumb) 0%, var(--mp-scrollbar-thumb-hover) 100%);
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mp-scrollbar::-webkit-scrollbar-thumb:hover,
.mp-restaurant-basket .mp-basket-panel__items::-webkit-scrollbar-thumb:hover,
.mp-restaurant-basket .mp-basket-panel::-webkit-scrollbar-thumb:hover,
.mp-product-lightbox__desc::-webkit-scrollbar-thumb:hover {
    border-color: #dcfce7;
    background: linear-gradient(180deg, #4ade80 0%, var(--mp-primary-hover) 100%);
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.mp-scrollbar::-webkit-scrollbar-corner,
.mp-restaurant-basket .mp-basket-panel__items::-webkit-scrollbar-corner,
.mp-restaurant-basket .mp-basket-panel::-webkit-scrollbar-corner,
.mp-product-lightbox__desc::-webkit-scrollbar-corner {
    background: transparent;
}

.mp-basket-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.65rem 0.7rem;
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
}

.mp-basket-item__info {
    flex: 1 1 auto;
    min-width: 0;
}

.mp-basket-item__name {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--mp-text);
    word-break: break-word;
}

.mp-basket-item__meta {
    margin: 0;
    font-size: 0.8rem;
    color: var(--mp-text-muted);
}

.mp-basket-item__actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.mp-basket-item__qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--mp-surface);
}

.mp-basket-item__qty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    padding: 0 0.45rem;
    border: none;
    border-right: 1px solid var(--mp-border);
    background: transparent;
    color: var(--mp-text);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mp-basket-item__qty-btn:last-of-type {
    border-right: none;
    border-left: 1px solid var(--mp-border);
}

.mp-basket-item__qty-btn:hover,
.mp-basket-item__qty-btn:focus-visible {
    background: #f0fdf4;
    color: var(--mp-primary);
    outline: none;
}

.mp-basket-item__qty-btn:disabled {
    opacity: 0.5;
    cursor: wait;
}

.mp-basket-item__qty-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    padding: 0 0.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-basket-item__remove {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 1px solid var(--mp-border);
    border-radius: 10px;
    background: var(--mp-surface);
    color: var(--mp-text-muted);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mp-basket-item__remove:hover,
.mp-basket-item__remove:focus-visible {
    color: #b91c1c;
    border-color: #fecaca;
    background: #fef2f2;
    outline: none;
}

.mp-basket-item__remove:disabled {
    opacity: 0.5;
    cursor: wait;
}

.mp-basket-panel__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.85rem 0 0;
    padding-top: 0.85rem;
    border-top: 1px solid var(--mp-border);
    font-size: 0.9rem;
    color: var(--mp-text-muted);
}

.mp-basket-panel__total strong {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mp-text);
}

.mp-basket-panel__checkout {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.9rem 1.15rem;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    color: #fff !important;
    background: var(--mp-primary);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(22, 163, 74, 0.35);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.mp-basket-panel__checkout:hover,
.mp-basket-panel__checkout:focus {
    color: #fff !important;
    background: var(--mp-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(22, 163, 74, 0.4);
    text-decoration: none !important;
}

.mp-basket-panel__checkout:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.3);
}

.mp-basket-panel__empty {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    html[data-mp-restaurant-id] .mp-header__basket-slot--mobile {
        display: none !important;
    }

    html[data-mp-restaurant-id] .scroll-top-wrapper {
        display: none !important;
    }

    .mp-restaurant-layout {
        padding-bottom: calc(var(--mp-basket-dock-h, 0px) + env(safe-area-inset-bottom, 0px));
    }

    .mp-restaurant-basket {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1040;
        pointer-events: none;
    }

    .mp-restaurant-basket.has-items {
        pointer-events: auto;
    }

    .mp-restaurant-basket__backdrop {
        position: fixed;
        inset: 0;
        z-index: -1;
        border: none;
        padding: 0;
        margin: 0;
        background: rgba(15, 23, 42, 0.45);
        cursor: pointer;
    }

    .mp-restaurant-basket__backdrop[hidden] {
        display: none !important;
    }

    .mp-restaurant-basket__bar {
        display: flex;
        align-items: stretch;
        gap: 0.4rem;
        width: 100%;
        padding: 0.55rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
        border: none;
        border-top: 1px solid var(--mp-border);
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
    }

    .mp-restaurant-basket__bar[hidden] {
        display: none !important;
    }

    .mp-restaurant-basket__bar-toggle {
        flex: 1 1 auto;
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-width: 0;
        padding: 0.45rem 0.55rem;
        border: none;
        border-radius: 12px;
        background: transparent;
        cursor: pointer;
        text-align: left;
        font: inherit;
        color: inherit;
        transition: background-color 0.15s ease;
    }

    .mp-restaurant-basket__bar-toggle:hover,
    .mp-restaurant-basket__bar-toggle:focus-visible {
        background: rgba(22, 163, 74, 0.08);
        outline: none;
    }

    .mp-restaurant-basket__bar-icon {
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 50%;
        background: rgba(22, 163, 74, 0.12);
        color: var(--mp-primary);
        font-size: 1.1rem;
        line-height: 1;
    }

    .mp-restaurant-basket__bar-main {
        display: flex;
        flex-direction: column;
        gap: 0.12rem;
        min-width: 0;
        flex: 1 1 auto;
    }

    .mp-restaurant-basket__bar-label {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--mp-text);
    }

    .mp-restaurant-basket__bar-meta {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 0.35rem 0.55rem;
        line-height: 1.2;
    }

    .mp-restaurant-basket__bar-count {
        font-size: 0.78rem;
        font-weight: 500;
        color: var(--mp-text-muted);
    }

    .mp-restaurant-basket__bar-sum {
        font-size: 1.08rem;
        font-weight: 800;
        letter-spacing: -0.02em;
        color: var(--mp-text);
    }

    .mp-restaurant-basket__bar-chevron {
        flex-shrink: 0;
        font-size: 0.95rem;
        color: var(--mp-text-muted);
        transition: transform 0.2s ease;
    }

    .mp-restaurant-basket.is-expanded .mp-restaurant-basket__bar-chevron {
        transform: rotate(180deg);
    }

    .mp-restaurant-basket__bar-hint {
        display: block;
        font-size: 0.72rem;
        font-weight: 500;
        color: var(--mp-text-muted);
        line-height: 1.2;
    }

    .mp-restaurant-basket__bar-checkout {
        flex: 0 0 auto;
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 5.25rem;
        min-height: 2.35rem;
        margin: 0.2rem 0 0.2rem 0.15rem;
        padding: 0.4rem 0.8rem;
        border: none;
        border-radius: 10px;
        background: var(--mp-primary);
        color: #fff !important;
        font-size: 0.82rem;
        font-weight: 700;
        line-height: 1.1;
        text-align: center;
        text-decoration: none !important;
        white-space: nowrap;
        box-shadow: 0 3px 12px rgba(22, 163, 74, 0.32);
        transition: background-color 0.15s ease, transform 0.15s ease;
    }

    .mp-restaurant-basket__bar-checkout[hidden] {
        display: none !important;
    }

    .mp-restaurant-basket__bar-checkout:hover,
    .mp-restaurant-basket__bar-checkout:focus-visible {
        background: #15803d;
        color: #fff !important;
        outline: none;
        transform: translateY(-1px);
    }

    .mp-restaurant-basket__bar-checkout:active {
        transform: translateY(0);
    }

    .mp-restaurant-basket__scroll-top {
        flex: 0 0 auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.75rem;
        min-height: 2.75rem;
        padding: 0;
        border: 1px solid rgba(22, 163, 74, 0.25);
        border-radius: 12px;
        background: #f0fdf4;
        color: var(--mp-primary);
        font-size: 1rem;
        line-height: 1;
        cursor: pointer;
        transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    }

    .mp-restaurant-basket__scroll-top:hover,
    .mp-restaurant-basket__scroll-top:focus-visible {
        background: var(--mp-primary);
        border-color: var(--mp-primary);
        color: #fff;
        outline: none;
    }

    .mp-restaurant-basket__scroll-top[hidden] {
        display: none !important;
    }

    .mp-restaurant-basket__sheet {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.28s ease;
        background: var(--mp-surface);
        border-top: 1px solid var(--mp-border);
    }

    .mp-restaurant-basket.is-expanded .mp-restaurant-basket__sheet {
        max-height: min(62vh, 520px);
    }

    .mp-restaurant-basket.is-expanded .mp-restaurant-basket__bar {
        box-shadow: none;
    }

    .mp-restaurant-basket .mp-basket-panel {
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-height: min(62vh, 520px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .mp-restaurant-basket .mp-basket-panel__items {
        max-height: none;
    }
}

@media (min-width: 992px) {
    .mp-restaurant-basket {
        position: sticky;
        top: calc(var(--mp-header-h) + 1rem);
        align-self: start;
        z-index: 30;
        max-height: calc(100vh - var(--mp-header-h) - 2rem);
    }

    .mp-restaurant-basket__backdrop,
    .mp-restaurant-basket__bar {
        display: none !important;
    }

    .mp-restaurant-basket__sheet {
        display: flex;
        flex-direction: column;
        min-height: 0;
        max-height: inherit;
        overflow: hidden;
    }

    .mp-restaurant-basket .mp-basket-panel {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }

    .mp-restaurant-basket .mp-basket-panel__inner {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }

    .mp-restaurant-basket .mp-basket-panel__title,
    .mp-restaurant-basket .mp-basket-panel__total,
    .mp-restaurant-basket .mp-basket-panel__checkout,
    .mp-restaurant-basket .mp-basket-panel__empty {
        flex-shrink: 0;
    }

    .mp-restaurant-basket .mp-basket-panel__items {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

.mp-header__basket {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--mp-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.85rem;
    line-height: 1.2;
    text-decoration: none !important;
    white-space: nowrap;
    flex-shrink: 0;
}

.mp-header__basket:hover,
.mp-header__basket:focus-visible {
    text-decoration: none !important;
}

.mp-header__basket .glyphicon {
    font-size: 0.95rem;
    line-height: 1;
    top: 0;
}

.mp-header__basket-slot--mobile:not(.has-items) {
    display: none !important;
}

.mp-header__basket--mobile {
    display: inline-flex;
    flex-shrink: 0;
}

.mp-header__basket--desktop {
    display: none;
    margin-left: auto;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .mp-header__basket--desktop {
        display: inline-flex;
    }
}

@media (max-width: 991px) {
    .mp-header__basket--desktop {
        display: none !important;
    }
}

/* ——— Подвал ——— */
.mp-footer {
    background: var(--mp-surface);
    border-top: 1px solid var(--mp-border);
    padding: 2rem 0;
    margin-top: 2rem;
    color: var(--mp-text-muted);
    font-size: 0.88rem;
}

.mp-footer a {
    color: var(--mp-text);
}

.mp-footer__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mp-footer__grid {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}

/* ——— Cookie (основные стили в cookie-consent.css) ——— */
#cookieConsent {
    background: var(--mp-surface, #fff);
    border-top-color: var(--mp-border, #e2e8f0);
    color: var(--mp-text, #334155);
}

.cookie-consent__text a {
    color: var(--mp-primary, #e85d2c);
}

.cookie-consent__btn {
    background: var(--mp-primary, #e85d2c);
}

/* Preloader */
#preloader {
    background: var(--mp-bg) !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ——— Умный поиск ——— */
.mp-header__inner {
    flex-wrap: wrap;
}

.mp-search {
    position: relative;
    flex: 1 1 200px;
    max-width: 420px;
    min-width: 0;
}

.mp-search--large {
    flex: 1 1 100%;
    max-width: 560px;
    margin: 0 auto;
}

.mp-search__form {
    margin: 0;
}

.mp-search__field {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.25rem 0.35rem 0.25rem 0.65rem;
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.mp-search__field:focus-within {
    border-color: var(--mp-primary);
    box-shadow: 0 0 0 3px rgba(232, 93, 44, 0.12);
}

.mp-search__icon {
    flex-shrink: 0;
    color: var(--mp-text-muted);
    font-size: 0.95rem;
}

.mp-search__input {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.4rem 0 !important;
    font-size: 0.9rem;
    height: auto !important;
}

.mp-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1.5px solid var(--mp-primary);
    border-radius: 9px;
    font-size: 0.95rem;
    line-height: 1;
    background: transparent;
    color: var(--mp-primary);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.mp-search__submit .glyphicon {
    top: 0;
}

.mp-search__submit:hover,
.mp-search__submit:focus-visible {
    background: rgba(22, 163, 74, 0.08);
    border-color: var(--mp-primary-hover);
    color: var(--mp-primary-hover);
    outline: none;
}

.mp-search__suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 1040;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 12px;
    box-shadow: var(--mp-shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.12));
    max-height: min(70vh, 420px);
    overflow: auto;
    padding: 0.5rem 0;
}

.mp-search__suggest[hidden] {
    display: none !important;
}

.mp-search__suggest-label {
    margin: 0.35rem 0.75rem 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mp-text-muted);
}

.mp-search__suggest-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-search__suggest-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.55rem 0.75rem;
    text-decoration: none !important;
    color: var(--mp-text) !important;
}

.mp-search__suggest-item:hover,
.mp-search__suggest-item.is-active {
    background: var(--mp-bg);
}

.mp-search__suggest-title {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
}

.mp-search__suggest-meta {
    font-size: 0.78rem;
    color: var(--mp-text-muted);
}

.mp-search__suggest-empty {
    margin: 0.75rem;
    font-size: 0.88rem;
    color: var(--mp-text-muted);
}

.mp-search__suggest-all {
    display: block;
    margin: 0.35rem 0.75rem 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mp-border);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mp-primary) !important;
    text-decoration: none !important;
}

.mp-search-page {
    padding-top: 0.5rem;
}

.mp-search-page__head {
    margin-bottom: 2rem;
}

.mp-search-page__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.mp-search-page__lead {
    color: var(--mp-text-muted);
    margin: 0 0 1.25rem;
    max-width: 42rem;
}

.mp-search-page__stats {
    color: var(--mp-text-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
}

.mp-search-page__empty {
    padding: 2rem 1.25rem;
    background: var(--mp-bg);
    border-radius: 16px;
    color: var(--mp-text-muted);
}

.mp-search-page__section {
    margin-bottom: 2.5rem;
}

.mp-search-page__section.mp-section {
    padding-top: 1.25rem;
}

/* На странице поиска — сетка, не горизонтальный скролл с главной */
.mp-showcase-grid--search {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    min-width: 0;
    width: 100%;
    padding-bottom: 0;
    overflow: visible;
    align-items: stretch;
}

.mp-showcase-grid--search::after {
    display: none;
}

.mp-showcase-grid--search > .mp-showcase-card,
.mp-showcase-grid--search > article {
    flex: none;
    width: auto;
    min-width: 0;
    scroll-snap-align: none;
}

.mp-showcase-grid--search .mp-showcase-card {
    flex: none;
    width: auto;
}

.mp-search-page .mp-partner-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.mp-search-page .mp-search .form-group {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.mp-search-page .mp-search .form-group .help-block {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    font-size: 0.78rem;
    z-index: 2;
}

@media (max-width: 767px) {
    .mp-search-page {
        padding-top: 0.25rem;
        overflow-x: clip;
    }

    .mp-search-page__head {
        margin-bottom: 1.25rem;
    }

    .mp-search-page__title {
        font-size: 1.35rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .mp-search-page__lead {
        font-size: 0.88rem;
        line-height: 1.45;
        margin-bottom: 0.85rem;
    }

    .mp-search-page__stats {
        font-size: 0.85rem;
        line-height: 1.45;
        margin-bottom: 1rem;
    }

    .mp-search-page__empty {
        padding: 1.25rem 1rem;
        font-size: 0.92rem;
    }

    .mp-search-page__section {
        margin-bottom: 1.75rem;
    }

    .mp-search-page__section .mp-section__title {
        font-size: 1.1rem;
    }

    .mp-search-page .mp-search--large {
        max-width: none;
        width: 100%;
        margin: 0;
    }

    .mp-search-page .mp-search__field {
        flex-wrap: nowrap;
        gap: 0.25rem;
        padding: 0.35rem 0.35rem 0.35rem 0.55rem;
    }

    .mp-search-page .mp-search__icon {
        display: none;
    }

    .mp-search-page .mp-search__input {
        font-size: 16px !important;
        min-width: 0;
    }

    .mp-search-page .mp-search__submit {
        width: 2.5rem;
        height: 2.5rem;
        min-height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .mp-search-page .mp-search__suggest {
        max-height: min(55vh, 360px);
    }

    .mp-search-page .mp-partner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .mp-search-page .mp-partner-card__link {
        min-height: 0;
    }

    .mp-showcase-grid--search {
        gap: 0.65rem;
    }

    .mp-showcase-grid--search .mp-showcase-card__name {
        font-size: 0.82rem;
    }

    .mp-showcase-grid--search .mp-showcase-card__price {
        font-size: 0.95rem;
    }

    .mp-showcase-grid--search .mp-showcase-card__link {
        min-height: 0;
    }

    .mp-showcase-grid--search .mp-showcase-card__media {
        flex: 0 0 118px;
        height: 118px;
        min-height: 118px;
        max-height: 118px;
    }

    .mp-showcase-grid--search .mp-showcase-card__body {
        padding: 0.5rem 0.55rem 0.65rem;
        min-height: 0;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .mp-showcase-grid--search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem;
    }
}

@media (min-width: 768px) {
    .mp-showcase-grid--search {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

/* ——— Лендинг партнёрам ——— */
.mp-lp {
    margin-bottom: 3rem;
}

.mp-lp-hero {
    display: grid;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    padding: 2rem 0 0;
}

@media (min-width: 900px) {
    .mp-lp-hero {
        grid-template-columns: 1.1fr 0.9fr;
        padding-top: 1rem;
    }
}

.mp-lp-hero__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mp-primary);
}

.mp-lp-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.mp-lp-hero__lead {
    margin: 0 0 1.5rem;
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--mp-text-muted);
    max-width: 36rem;
}

.mp-lp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.mp-lp-hero__note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--mp-text-muted);
}

.mp-lp-hero__visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 900px) {
    .mp-lp-hero__visual {
        gap: 0.55rem;
    }
}

.mp-lp-hero__card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    box-shadow: var(--mp-shadow);
}

.mp-lp-hero__card strong {
    font-size: 1.1rem;
}

.mp-lp-hero__card span:last-child {
    font-size: 0.88rem;
    color: var(--mp-text-muted);
}

.mp-lp-hero__card-icon {
    font-size: 1.75rem;
    line-height: 1;
}

.mp-lp-hero__card--food {
    transform: rotate(-1deg);
}

.mp-lp-hero__card--flowers {
    transform: rotate(1deg);
}

.mp-lp-audience__card-lead {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--mp-text-muted);
}

.mp-lp-section {
    margin-bottom: 3rem;
}

.mp-lp-section--muted {
    padding: 2rem 1.25rem;
    margin-left: -1rem;
    margin-right: -1rem;
    border-radius: 20px;
    background: var(--mp-bg);
}

@media (min-width: 768px) {
    .mp-lp-section--muted {
        margin-left: 0;
        margin-right: 0;
        padding: 2rem 1.75rem;
    }
}

.mp-lp-section__title {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.mp-lp-section__lead {
    margin: -0.75rem 0 1.5rem;
    max-width: 42rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--mp-text-muted);
}

.mp-lp-section__lead strong {
    color: var(--mp-text);
    font-weight: 700;
}

.mp-lp-notify__layout {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 900px) {
    .mp-lp-notify__layout {
        grid-template-columns: 1.15fr 0.85fr;
        align-items: start;
    }
}

.mp-lp-notify__primary {
    padding: 1.5rem 1.35rem;
    border-radius: 18px;
    border: 2px solid var(--mp-primary);
    background: linear-gradient(145deg, rgba(232, 93, 44, 0.1) 0%, var(--mp-surface) 55%);
    box-shadow: var(--mp-shadow);
}

.mp-lp-notify__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    padding: 0.35rem 0.65rem;
    margin-bottom: 0.85rem;
    border-radius: 10px;
    background: var(--mp-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mp-lp-notify__primary-title {
    margin: 0 0 0.65rem;
    font-size: 1.2rem;
    font-weight: 800;
}

.mp-lp-notify__primary-text {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--mp-text-muted);
}

.mp-lp-notify__list {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--mp-text);
}

.mp-lp-notify__list li + li {
    margin-top: 0.35rem;
}

.mp-lp-notify__fallbacks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mp-lp-notify__fallbacks-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mp-text-muted);
}

.mp-lp-notify__fallbacks-lead {
    margin: 0 0 0.25rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--mp-text-muted);
}

.mp-lp-notify__channel {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
}

.mp-lp-notify__channel-icon {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.mp-lp-notify__channel h4 {
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.mp-lp-notify__channel p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--mp-text-muted);
}

.mp-lp-benefits {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .mp-lp-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .mp-lp-benefits {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

.mp-lp-schedule__aside {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mp-lp-schedule__aside-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mp-text-muted);
}

.mp-lp-schedule__preview {
    border-radius: 14px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
    overflow: hidden;
    box-shadow: var(--mp-shadow);
}

.mp-lp-schedule__preview-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 0.5rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--mp-border);
}

.mp-lp-schedule__preview-row:last-child {
    border-bottom: 0;
}

.mp-lp-schedule__preview-row--head {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mp-text-muted);
    background: rgba(15, 23, 42, 0.03);
}

.mp-lp-schedule__preview-row--off span:last-child {
    color: var(--mp-text-muted);
    font-style: italic;
}

.mp-lp-schedule__checkout-note {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--mp-text-muted);
}

.mp-lp-schedule__checkout-note strong {
    color: var(--mp-text);
    font-weight: 600;
}

.mp-lp-benefit {
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
}

.mp-lp-benefit__icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.mp-lp-benefit h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.mp-lp-benefit p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--mp-text-muted);
    line-height: 1.45;
}

.mp-lp-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .mp-lp-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mp-lp-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.mp-lp-step__num {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--mp-primary);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
}

.mp-lp-step strong {
    display: block;
    margin-bottom: 0.25rem;
}

.mp-lp-step p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--mp-text-muted);
    line-height: 1.45;
}

.mp-lp-audience {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .mp-lp-audience {
        grid-template-columns: 1fr 1fr;
    }
}

.mp-lp-audience__card {
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--mp-border);
    background: var(--mp-surface);
}

.mp-lp-audience__card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
}

.mp-lp-audience__card ul {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    color: var(--mp-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.mp-lp-link {
    font-weight: 600;
    color: var(--mp-primary) !important;
    text-decoration: none !important;
}

.mp-lp-link:hover {
    text-decoration: underline !important;
}

.mp-lp-faq {
    margin: 0;
}

.mp-lp-faq__item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--mp-border);
}

.mp-lp-faq__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-lp-faq dt {
    margin: 0 0 0.35rem;
    font-weight: 700;
    font-size: 1rem;
}

.mp-lp-faq dd {
    margin: 0;
    color: var(--mp-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.mp-lp-cta {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(232, 93, 44, 0.12) 0%, rgba(232, 93, 44, 0.04) 100%);
    border: 1px solid rgba(232, 93, 44, 0.2);
}

.mp-lp-cta__title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
}

.mp-lp-cta__text {
    margin: 0 0 1.25rem;
    color: var(--mp-text-muted);
}

.mp-lp-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.mp-lp-cta__phone {
    margin: 0;
    font-size: 0.92rem;
    color: var(--mp-text-muted);
}

.mp-lp-cta__tel {
    font-weight: 700;
    color: var(--mp-text) !important;
}

.mp-lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.35rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.mp-lp-btn--primary {
    background: var(--mp-primary);
    color: #fff !important;
}

.mp-lp-btn--primary:hover {
    background: var(--mp-primary-hover);
    color: #fff !important;
}

.mp-lp-btn--outline {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    color: var(--mp-text) !important;
}

.mp-lp-btn--outline:hover {
    border-color: var(--mp-primary);
    color: var(--mp-primary) !important;
}

/* ——— Заявка партнёра ——— */
.mp-apply-page {
    max-width: 640px;
    margin: 0 auto 3rem;
}

.mp-apply-page__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    margin: 0 0 0.5rem;
}

.mp-apply-page__back-wrap {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.mp-apply-page__back-wrap a {
    font-weight: 600;
    color: var(--mp-primary) !important;
}

.mp-apply-page__lead {
    color: var(--mp-text-muted);
    margin: 0 0 1rem;
}

.mp-apply-page__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.5rem;
}

.mp-apply-page__tab {
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--mp-border);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    color: var(--mp-text) !important;
}

.mp-apply-page__tab.is-active {
    background: var(--mp-primary);
    border-color: var(--mp-primary);
    color: #fff !important;
}

.mp-apply-page__card {
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--mp-shadow);
}

.mp-apply-form__row {
    display: grid;
    gap: 0 1rem;
}

@media (min-width: 560px) {
    .mp-apply-form__row {
        grid-template-columns: 1fr 1fr;
    }
}

.mp-apply-form__label {
    font-weight: 600;
    font-size: 0.88rem;
}

.mp-apply-form__input {
    border-radius: 10px !important;
    border-color: var(--mp-border) !important;
}

.mp-apply-form__captcha {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.mp-apply-form__agree {
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.45;
}

.mp-apply-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mp-apply-page__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    background: var(--mp-primary);
    color: #fff !important;
    text-decoration: none !important;
    cursor: pointer;
}

.mp-apply-page__btn:hover {
    background: var(--mp-primary-hover);
    color: #fff !important;
}

.mp-apply-page__btn--outline {
    background: transparent;
    border: 1px solid var(--mp-border);
    color: var(--mp-text) !important;
}

.mp-apply-page__success {
    background: var(--mp-bg);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
}

.mp-apply-page__success h1,
.mp-apply-page__success h2 {
    margin-top: 0;
}

.mp-apply-page__success--error {
    border: 1px solid #f5c6cb;
    background: #fff5f5;
}

/* ——— Вход (партнёры / админ) ——— */
.mp-auth {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 0 3.5rem;
    min-height: calc(100vh - var(--mp-header-h) - 8rem);
}

.mp-auth__grid {
    display: grid;
    gap: 1.25rem;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    align-items: start;
}

@media (min-width: 768px) {
    .mp-auth__grid {
        grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.mp-auth__card {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 1.75rem 1.5rem 1.5rem;
    background: var(--mp-surface);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
    box-shadow: var(--mp-shadow);
}

.mp-auth__brand {
    text-align: center;
    margin-bottom: 1.5rem;
}

.mp-auth__logo {
    display: inline-block;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mp-text) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.mp-auth__logo:hover {
    color: var(--mp-primary) !important;
}

.mp-auth__subtitle {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--mp-text-muted);
    line-height: 1.4;
}

.mp-auth__alert {
    margin-bottom: 1rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
}

.mp-auth__alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.mp-auth__alert--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.mp-auth__card--solo {
    max-width: 440px;
    margin: 0 auto;
}

.mp-auth__intro {
    margin: 0 0 1.25rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mp-text-muted);
}

.mp-auth__intro strong {
    color: var(--mp-text);
}

.mp-auth__forgot {
    margin: -0.35rem 0 0.75rem;
    text-align: right;
    font-size: 0.85rem;
}

.mp-auth__forgot a {
    font-weight: 600;
    color: var(--mp-primary) !important;
    text-decoration: none !important;
}

.mp-auth__forgot a:hover {
    text-decoration: underline !important;
}

.mp-auth__alert--error ul {
    margin: 0;
    padding-left: 1.1rem;
}

.mp-auth__form .form-group {
    margin-bottom: 1rem;
}

.mp-auth__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mp-text);
}

.mp-auth__input {
    height: 44px;
    padding: 0.5rem 0.85rem;
    border-radius: 10px !important;
    border: 1px solid var(--mp-border) !important;
    background: var(--mp-bg) !important;
    color: var(--mp-text) !important;
    font-size: 1rem;
    box-shadow: none !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp-auth__input:focus {
    border-color: var(--mp-primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15) !important;
}

.mp-auth__input::placeholder {
    color: #94a3b8;
}

.mp-auth__error {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    color: #dc2626;
}

.mp-auth__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 0.5rem;
}

.mp-auth__remember .mp-auth__checkbox {
    width: 1.1rem;
    height: 1.1rem;
    margin: 0;
    accent-color: var(--mp-primary);
}

.mp-auth__remember-label {
    margin: 0 !important;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--mp-text-muted);
    cursor: pointer;
}

.mp-auth__actions {
    margin-top: 1.25rem;
}

.mp-auth__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 10px;
    background: var(--mp-primary);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.mp-auth__submit:hover,
.mp-auth__submit:focus {
    background: var(--mp-primary-hover);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.mp-auth__submit:active {
    transform: translateY(1px);
}

.mp-auth__hint {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--mp-border);
}

.mp-auth__partner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    padding: 0.65rem 1.25rem;
    border-radius: 10px;
    border: 1.5px solid var(--mp-primary);
    background: transparent;
    color: var(--mp-primary) !important;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mp-auth__partner:hover,
.mp-auth__partner:focus {
    background: rgba(22, 163, 74, 0.08);
    color: var(--mp-primary-hover) !important;
    border-color: var(--mp-primary-hover);
    box-shadow: 0 2px 10px rgba(22, 163, 74, 0.15);
}

.mp-auth__footer {
    margin: 1.25rem 0 0;
    text-align: center;
    font-size: 0.88rem;
}

.mp-auth__footer a {
    font-weight: 600;
    color: var(--mp-text-muted) !important;
    text-decoration: none !important;
}

.mp-auth__footer a:hover {
    color: var(--mp-primary) !important;
}

.mp-auth__aside {
    padding: 1.35rem 1.25rem;
    background: var(--mp-bg);
    border: 1px solid var(--mp-border);
    border-radius: var(--mp-radius-lg);
}

.mp-auth__aside-title {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.25;
}

.mp-auth__aside-lead {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mp-text-muted);
}

.mp-auth__aside-lead strong {
    color: var(--mp-text);
    font-weight: 600;
}

.mp-auth__steps {
    margin: 0 0 1rem;
    padding-left: 1.2rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--mp-text);
}

.mp-auth__steps li + li {
    margin-top: 0.45rem;
}

.mp-auth__steps a {
    font-weight: 600;
    color: var(--mp-primary) !important;
    text-decoration: none !important;
}

.mp-auth__steps a:hover {
    text-decoration: underline !important;
}

.mp-auth__aside-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mp-border);
}

.mp-auth__aside-subtitle {
    margin: 0 0 0.55rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
}

.mp-auth__aside-note {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--mp-text-muted);
}

.mp-auth__aside-note a {
    font-weight: 600;
    color: var(--mp-primary) !important;
    text-decoration: none !important;
}

.mp-auth__aside-note a:hover {
    text-decoration: underline !important;
}

@media (min-width: 480px) {
    .mp-auth__card {
        padding: 2rem 1.75rem 1.75rem;
    }

    .mp-auth__aside {
        padding: 1.5rem 1.35rem;
    }
}

/* Страница заказа после оформления (guest-view) */
.guest-order-status {
    margin: 0 0 1.5rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.guest-order-status--pending {
    border-color: #fdba74;
    background: #fff7ed;
}

.guest-order-status--ok {
    border-color: #86efac;
    background: #f0fdf4;
}

.guest-order-status--cancelled {
    border-color: #fca5a5;
    background: #fef2f2;
}

.guest-order-status__label {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.guest-order-status__value {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.guest-order-status--ok .guest-order-status__value {
    color: #15803d;
}

.guest-order-status--pending .guest-order-status__value {
    color: #c2410c;
}

.guest-order-status__hint {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #475569;
}

/* ——— Страница заказа покупателя (guest-view) ——— */
.guest-order {
    max-width: 52rem;
    margin: 0 auto 2.5rem;
    padding: 0 0.85rem 1.5rem;
}

.guest-order__hero {
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff7ed 0%, #fff 55%, #f0fdf4 100%);
    border: 1px solid var(--mp-border, #e2e8f0);
}

.guest-order__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mp-primary, #e85d2c);
}

.guest-order__title {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--mp-text, #0f172a);
}

.guest-order__partner {
    margin: 0.5rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
}

.guest-order__partner a {
    color: var(--mp-primary, #e85d2c);
    text-decoration: none;
}

.guest-order__partner a:hover {
    text-decoration: underline;
}

.guest-order__meta {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    color: var(--mp-text-muted, #64748b);
}

.guest-order__section-title {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--mp-text, #0f172a);
}

.guest-order__tracker {
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.1rem;
    border-radius: 14px;
    background: var(--mp-surface, #fff);
    border: 1px solid var(--mp-border, #e2e8f0);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.guest-order__tracker .guest-order-status {
    margin-bottom: 0;
}

/* Шаги трекера */
.guest-order-steps {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
    margin: 0 0 1.15rem;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.guest-order-steps::-webkit-scrollbar {
    display: none;
}

.guest-order-steps__item {
    position: relative;
    flex: 1 1 0;
    min-width: 4.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0.15rem;
}

.guest-order-steps__marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #94a3b8;
    z-index: 1;
}

.guest-order-steps__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.guest-order-steps__item--done .guest-order-steps__marker {
    border-color: #22c55e;
    background: #22c55e;
    color: #fff;
}

.guest-order-steps__item--current .guest-order-steps__marker {
    border-color: var(--mp-primary, #e85d2c);
    background: #fff7ed;
    color: var(--mp-primary, #e85d2c);
    box-shadow: 0 0 0 3px rgba(232, 93, 44, 0.2);
}

.guest-order-steps__item--current .guest-order-steps__dot {
    background: var(--mp-primary, #e85d2c);
}

.guest-order-steps__label {
    margin-top: 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.25;
    color: #94a3b8;
}

.guest-order-steps__item--done .guest-order-steps__label,
.guest-order-steps__item--current .guest-order-steps__label {
    color: var(--mp-text, #0f172a);
}

.guest-order-steps__item--current .guest-order-steps__label {
    color: var(--mp-primary, #e85d2c);
}

.guest-order-steps__line {
    position: absolute;
    top: 1rem;
    left: calc(50% + 1rem);
    width: calc(100% - 2rem);
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
    pointer-events: none;
}

.guest-order-steps__item--done .guest-order-steps__line {
    background: #86efac;
}

.guest-order-steps__item:last-child .guest-order-steps__line {
    display: none;
}

.guest-order__thanks {
    margin-bottom: 1.25rem;
}

.guest-order__thanks-lead {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--mp-text, #0f172a);
}

.guest-order__thanks-note {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--mp-text-muted, #64748b);
}

.guest-order__grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .guest-order__grid {
        grid-template-columns: 1fr 1.2fr;
        align-items: start;
    }

    .guest-order-steps__label {
        font-size: 0.75rem;
    }
}

.guest-order-card {
    padding: 1.1rem 1.15rem;
    border-radius: 14px;
    background: var(--mp-surface, #fff);
    border: 1px solid var(--mp-border, #e2e8f0);
}

.guest-order-details {
    margin: 0;
}

.guest-order-details__row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 38%) 1fr;
    gap: 0.35rem 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--mp-border, #f1f5f9);
}

.guest-order-details__row:last-of-type {
    border-bottom: none;
}

.guest-order-details dt {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--mp-text-muted, #64748b);
}

.guest-order-details dd {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--mp-text, #0f172a);
}

.guest-order-details a {
    color: var(--mp-primary, #e85d2c);
    font-weight: 600;
    text-decoration: none;
}

.guest-order-details a:hover {
    text-decoration: underline;
}

.guest-order__wa-btn {
    display: inline-flex;
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
}

@media (min-width: 480px) {
    .guest-order__wa-btn {
        width: auto;
    }
}

.guest-order-items__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.guest-order-items__table th,
.guest-order-items__table td {
    padding: 0.55rem 0.35rem;
    text-align: left;
    border-bottom: 1px solid var(--mp-border, #f1f5f9);
}

.guest-order-items__table th {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--mp-text-muted, #64748b);
}

.guest-order-items__table th:last-child,
.guest-order-items__table td:last-child {
    text-align: right;
    white-space: nowrap;
}

.guest-order-items__table tfoot td {
    font-weight: 600;
    color: var(--mp-text-muted, #64748b);
}

.guest-order__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 1rem 0 0;
    padding-top: 0.85rem;
    border-top: 2px solid var(--mp-border, #e2e8f0);
    font-size: 0.95rem;
    color: var(--mp-text-muted, #64748b);
}

.guest-order__total strong {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--mp-text, #0f172a);
}

.guest-order-card--admin {
    margin-top: 0.5rem;
    background: #f8fafc;
}

.guest-order__admin-meta {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: var(--mp-text-muted, #64748b);
}

.guest-order-card--account {
    margin-bottom: 1rem;
    border-color: rgba(124, 58, 237, 0.28);
    background: linear-gradient(180deg, #faf5ff 0%, #fff 100%);
}

.guest-order-card--account-ok {
    border-color: rgba(34, 197, 94, 0.35);
    background: #f0fdf4;
}

.guest-order-account__text {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--mp-text, #334155);
}

.guest-order-account__hint {
    margin: 0 0 1rem;
    font-size: 0.88rem;
    color: var(--mp-text-muted, #64748b);
}

.guest-order-account__link {
    font-weight: 600;
    color: var(--mp-primary, #16a34a);
}

.guest-order-account__form {
    margin: 0;
}

.guest-order-account__btn {
    width: 100%;
}

@media (min-width: 480px) {
    .guest-order-account__btn {
        width: auto;
    }
}

.guest-order-account__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.guest-order--confirm {
    max-width: 36rem;
}

/* ——— Личный кабинет покупателя ——— */
.customer-cabinet {
    display: grid;
    gap: 1.25rem;
    margin: 0 auto 2rem;
    max-width: 72rem;
}

@media (min-width: 900px) {
    .customer-cabinet {
        grid-template-columns: 15.5rem minmax(0, 1fr);
        align-items: start;
        gap: 1.75rem;
    }
}

.customer-cabinet__sidebar {
    padding: 1.1rem 1rem;
    background: var(--mp-surface, #fff);
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-radius-lg, 16px);
    box-shadow: var(--mp-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.06));
}

.customer-cabinet__sidebar-head {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--mp-border, #e2e8f0);
}

.customer-cabinet__eyebrow {
    margin: 0 0 0.25rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-primary, #e85d2c);
}

.customer-cabinet__user-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--mp-text, #0f172a);
}

.customer-cabinet__user-meta {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--mp-text-muted, #64748b);
    word-break: break-word;
}

.customer-cabinet__nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.customer-cabinet__nav-link {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--mp-text, #334155) !important;
    text-decoration: none !important;
    transition: background 0.15s ease, color 0.15s ease;
}

.customer-cabinet__nav-link:hover,
.customer-cabinet__nav-link:focus-visible {
    background: var(--mp-bg, #f8fafc);
    color: var(--mp-primary, #e85d2c) !important;
}

.customer-cabinet__nav-link--active {
    background: rgba(232, 93, 44, 0.1);
    color: var(--mp-primary, #e85d2c) !important;
}

.customer-cabinet__nav-link--muted {
    font-weight: 500;
    color: var(--mp-text-muted, #64748b) !important;
}

.customer-cabinet__nav-link--logout {
    width: 100%;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.customer-cabinet__sidebar-foot {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--mp-border, #e2e8f0);
}

.customer-cabinet__logout {
    margin: 0;
}

.customer-cabinet__content {
    min-width: 0;
}

.customer-page__head {
    margin-bottom: 1.25rem;
}

.customer-page__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mp-primary, #e85d2c);
}

.customer-page__title {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--mp-text, #0f172a);
}

.customer-page__lead {
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--mp-text-muted, #64748b);
}

.customer-page__back {
    margin: 0 0 0.75rem;
}

.customer-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.customer-stat {
    padding: 1rem 1.1rem;
    background: var(--mp-surface, #fff);
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-radius-lg, 16px);
}

.customer-stat__value {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mp-text, #0f172a);
}

.customer-stat__label {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: var(--mp-text-muted, #64748b);
}

.customer-section {
    margin-top: 0.5rem;
}

.customer-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}

.customer-section__title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--mp-text, #0f172a);
}

.customer-section__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mp-primary, #e85d2c) !important;
    text-decoration: none !important;
}

.customer-section__link:hover {
    text-decoration: underline !important;
}

.customer-orders-list {
    display: grid;
    gap: 0.75rem;
}

.customer-order-card {
    padding: 1rem 1.05rem;
    background: var(--mp-surface, #fff);
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-radius-lg, 16px);
    box-shadow: var(--mp-shadow-sm, 0 1px 2px rgba(15, 23, 42, 0.05));
}

.customer-order-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.customer-order-card__id {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.customer-order-card__id a {
    color: var(--mp-text, #0f172a) !important;
    text-decoration: none !important;
}

.customer-order-card__id a:hover {
    color: var(--mp-primary, #e85d2c) !important;
}

.customer-order-card__date {
    margin: 0.2rem 0 0;
    font-size: 0.82rem;
    color: var(--mp-text-muted, #64748b);
}

.customer-order-card__badge {
    flex-shrink: 0;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: right;
    max-width: 11rem;
}

.customer-order-card__badge--pending {
    background: #fff7ed;
    color: #c2410c;
}

.customer-order-card__badge--work {
    background: #eff6ff;
    color: #1d4ed8;
}

.customer-order-card__badge--paid,
.customer-order-card__badge--shipped {
    background: #f0fdf4;
    color: #15803d;
}

.customer-order-card__badge--done {
    background: #ecfdf5;
    color: #047857;
}

.customer-order-card__badge--cancelled {
    background: #f8fafc;
    color: #64748b;
}

.customer-order-card__badge--default {
    background: #f1f5f9;
    color: #475569;
}

.customer-order-card__partner {
    margin: 0.65rem 0 0;
    font-size: 0.9rem;
    font-weight: 600;
}

.customer-order-card__partner a {
    color: var(--mp-primary, #e85d2c) !important;
    text-decoration: none !important;
}

.customer-order-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 0.55rem;
    font-size: 0.88rem;
    color: var(--mp-text-muted, #64748b);
}

.customer-order-card__meta strong {
    font-size: 1rem;
    color: var(--mp-text, #0f172a);
}

.customer-order-card__actions {
    margin-top: 0.75rem;
}

.customer-empty {
    padding: 1.5rem 1.25rem;
    text-align: center;
    background: var(--mp-bg, #f8fafc);
    border: 1px dashed var(--mp-border, #cbd5e1);
    border-radius: var(--mp-radius-lg, 16px);
}

.customer-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 800;
}

.customer-empty__text {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mp-text-muted, #64748b);
}

.customer-filters {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--mp-surface, #fff);
    border: 1px solid var(--mp-border, #e2e8f0);
    border-radius: var(--mp-radius-lg, 16px);
}

.customer-filters__row {
    display: grid;
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .customer-filters__row {
        grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
        align-items: end;
    }
}

.customer-filters__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin: 0;
}

.customer-filters__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mp-text-muted, #64748b);
}

.customer-filters__input {
    min-height: 2.5rem;
    border-radius: 10px;
}

.customer-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.customer-pager {
    margin-top: 1.25rem;
}

.customer-pager__list {
    margin: 0;
    justify-content: center;
}

.customer-pager__link {
    border-radius: 8px !important;
}

.customer-profile-card {
    margin-bottom: 0.85rem;
}

.customer-profile-card__hint,
.customer-profile-card__text {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--mp-text-muted, #64748b);
}

.customer-cabinet .guest-order {
    max-width: none;
    margin: 0;
}

/* Кнопки витрины (кабинет, заказ, вход) */
.mp-app .btn-shop,
.mp-app a.btn-shop,
.mp-app button.btn-shop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.55rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--mp-primary);
    color: #fff !important;
    font-family: var(--mp-font);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.2);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.mp-app .btn-shop:hover,
.mp-app .btn-shop:focus-visible,
.mp-app a.btn-shop:hover,
.mp-app a.btn-shop:focus-visible,
.mp-app button.btn-shop:hover,
.mp-app button.btn-shop:focus-visible {
    background: var(--mp-primary-hover);
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.32);
}

.mp-app .btn-shop:active,
.mp-app button.btn-shop:active {
    transform: translateY(1px);
}

.mp-app .btn-shop--outline,
.mp-app a.btn-shop--outline {
    background: var(--mp-surface);
    border-color: var(--mp-border);
    color: var(--mp-text) !important;
    box-shadow: none;
}

.mp-app .btn-shop--outline:hover,
.mp-app .btn-shop--outline:focus-visible,
.mp-app a.btn-shop--outline:hover,
.mp-app a.btn-shop--outline:focus-visible {
    background: #f8fafc;
    border-color: var(--mp-primary);
    color: var(--mp-primary) !important;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.mp-app .btn-shop--sm,
.mp-app a.btn-shop--sm,
.mp-app button.btn-shop--sm {
    min-height: 36px;
    padding: 0.4rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: 9px;
}

.mp-app .btn-shop--block {
    width: 100%;
}

.mp-app .btn-shop--max,
.mp-app a.btn-shop--max,
.mp-app button.btn-shop--max {
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 48%, #2563eb 100%);
    border-color: rgba(91, 33, 182, 0.35);
    box-shadow: 0 2px 10px rgba(91, 33, 182, 0.28);
}

.mp-app .btn-shop--max:hover,
.mp-app .btn-shop--max:focus-visible,
.mp-app a.btn-shop--max:hover,
.mp-app button.btn-shop--max:hover {
    background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 48%, #1d4ed8 100%);
    color: #fff !important;
    box-shadow: 0 6px 18px rgba(91, 33, 182, 0.38);
}

.mp-app .btn-shop[disabled],
.mp-app button.btn-shop:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.mp-app .btn-shop__icon {
    flex-shrink: 0;
    width: 1.1em;
    height: 1.1em;
    font-size: 1.05em;
    line-height: 1;
    opacity: 0.95;
}

.customer-max-card--compact {
    margin-bottom: 1rem;
}

.customer-max-card {
    border-color: rgba(124, 58, 237, 0.22);
    background: linear-gradient(180deg, #faf5ff 0%, var(--mp-surface) 42%);
}

.customer-max-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.65rem;
}

.customer-max-card__head .customer-section__title {
    margin: 0;
    flex: 1 1 12rem;
}

.customer-max-card__badge {
    flex-shrink: 0;
    padding: 0.28rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.customer-max-card__badge--pending {
    background: #ede9fe;
    color: #5b21b6;
}

.customer-max-card__badge--ok {
    background: #dcfce7;
    color: #15803d;
}

.customer-max-card__badge--muted {
    background: #f1f5f9;
    color: #64748b;
}

.customer-max-connect {
    margin: 0.85rem 0;
    padding: 1rem;
    border: 1px dashed rgba(124, 58, 237, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
}

.customer-max-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.85rem;
}

.customer-max-prefs {
    margin: 1rem 0;
    padding: 0.85rem 0 0;
    border-top: 1px solid var(--mp-border);
}

.customer-max-prefs .checkbox {
    margin: 0 0 0.65rem;
}

.customer-max-prefs .checkbox label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--mp-text);
    cursor: pointer;
}

.customer-max-prefs .checkbox input {
    margin-right: 0.45rem;
    accent-color: var(--mp-primary);
}

.customer-max-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(34, 197, 94, 0.35);
    border-radius: 12px;
    background: #f0fdf4;
    font-size: 0.9rem;
}

.customer-max-banner__text {
    margin: 0;
    font-weight: 600;
    color: #15803d;
}

.customer-max-banner__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mp-primary) !important;
    text-decoration: none !important;
}

.customer-max-banner__link:hover {
    text-decoration: underline !important;
}

.customer-max-card__status {
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.customer-max-card__status--ok {
    color: #15803d;
}

.customer-max-connect__url {
    margin: 0.65rem 0 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.72rem;
    line-height: 1.4;
    word-break: break-all;
    color: var(--mp-text-muted);
    background: #f8fafc;
    border: 1px solid var(--mp-border);
    border-radius: 8px;
}

.customer-max-connect__url code {
    padding: 0;
    border: 0;
    background: transparent;
    color: #475569;
    font-size: inherit;
}

.mp-max-login {
    margin: 1.35rem 0 0.5rem;
    padding: 1.15rem 0 0;
    border-top: 1px solid var(--mp-border);
}

.mp-max-login__divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mp-text-muted);
}

.mp-max-login__divider::before,
.mp-max-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mp-border);
}

.mp-max-login__divider span {
    flex-shrink: 0;
}

.mp-auth .mp-max-login .btn-shop--max {
    width: 100%;
}

.mp-max-login__hint {
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--mp-text-muted);
    text-align: center;
}

.mp-max-login__hint a {
    font-weight: 600;
    color: var(--mp-primary) !important;
}

.mp-max-login__panel {
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 14px;
    background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 100%);
    text-align: center;
}

.mp-max-login__panel[hidden] {
    display: none !important;
}

.mp-max-login__qr-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 0.85rem;
    padding: 0.65rem;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--mp-shadow);
}

.mp-max-login__qr {
    display: block;
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.mp-max-login__open {
    margin: 0 0 0.85rem;
}

.mp-max-login__open .btn-shop {
    width: 100%;
}

.mp-max-login__code-box {
    margin: 0;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--mp-border);
}

.mp-max-login__code-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--mp-text-muted);
}

.mp-max-login__code {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #5b21b6;
    font-variant-numeric: tabular-nums;
}

.mp-max-login__status {
    margin: 0.85rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.45;
    text-align: center;
    color: var(--mp-text-muted);
    background: #f1f5f9;
}

.mp-max-login__status--error {
    color: #b91c1c;
    background: #fef2f2;
}

.mp-max-login__status--ok {
    color: #15803d;
    background: #f0fdf4;
}

.customer-filters__actions .btn-shop + .btn-shop {
    margin-left: 0;
}

.customer-order-card__actions .btn-shop {
    min-width: 7.5rem;
}

.guest-order-account__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guest-order-account__actions .btn-shop {
    flex: 1 1 auto;
    min-width: 10rem;
}

@media (min-width: 480px) {
    .guest-order__wa-btn.btn-shop {
        width: auto;
    }

    .guest-order-account__btn.btn-shop {
        width: auto;
    }
}

