﻿

@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&display=swap");
/* Главная `/`. Токены из tokens.css; кнопки/Fredoka — mp-ui.css. */
/* =============================================================================
   Общий UI-слой продающих страниц МАНГО (home / birthday / play).
   Кнопки, display-шрифт, яркие акценты. Не трогает legacy .btn в site.css.
   ============================================================================= */

.mp-display,
.mp-btn,
.birthday-button {
    font-family: var(--mp-display);
}

/**
 * Pill CTA — единый паттерн с birthday-test.
 * На главной: class="mp-btn mp-btn--green". На birthday: birthday-button (алиас).
 */
.mp-btn,
.birthday-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    padding: 10px 18px;
    border: 0;
    border-radius: var(--mp-radius-full);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.mp-btn:hover,
.birthday-button:hover {
    color: #fff;
    filter: brightness(1.05);
    text-decoration: none;
}

.mp-btn--block { width: 100%; }

/* birthday-test исторически тянет кнопки на 100% ширины контейнера */
.birthday-button { width: 100%; }
.birthday-button--sm { width: auto; }

.mp-btn--orange,
.birthday-button--orange { background: var(--mp-orange); }

.mp-btn--green,
.birthday-button--green { background: var(--mp-green-bright); }

.mp-btn--pink,
.birthday-button--pink { background: var(--mp-pink); }

.mp-btn--blue,
.birthday-button--blue { background: var(--mp-blue); }

.mp-btn--whatsapp,
.birthday-button--whatsapp { background: #25d366; }

.mp-btn--sm,
.birthday-button--sm {
    min-height: 40px;
    width: auto;
    padding: 6px 14px;
    font-size: 14px;
}

.mp-btn--outline,
.birthday-button--outline {
    border: 1.5px solid var(--mp-orange);
    color: var(--mp-orange-dark);
    background: #fff;
}

.mp-btn--outline:hover,
.birthday-button--outline:hover {
    color: var(--mp-orange-dark);
    background: var(--mp-peach-light);
    filter: none;
}

.mp-btn--outline-green {
    border: 1.5px solid var(--mp-green-bright);
    color: var(--mp-green-bright);
    background: #fff;
}

.mp-btn--outline-green:hover {
    color: var(--mp-green-bright);
    background: var(--mp-green-light);
    filter: none;
}

@media (prefers-reduced-motion: reduce) {
    .mp-btn,
    .birthday-button {
        transition: none;
    }
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Inter";
    src: url("/fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.home-page {
    --home-green: var(--mp-green-bright);
    --home-orange: var(--mp-orange);
    --home-pink: var(--mp-pink);
    --home-blue: var(--mp-blue);
    --home-yellow: #e6a800;
    background: var(--mp-bg);
    color: var(--mp-text);
    font-family: var(--mp-font);
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
    padding: 0;
}
.home-page *,
.home-page *::before,
.home-page *::after {
    box-sizing: border-box;
}
.home-page [hidden] {
    display: none !important;
}
/* Типографика только в контенте — не в .mp-site-header */
.home-page main h1,
.home-page main h2,
.home-page main h3,
.home-page main p,
.home-page .home-dialog h1,
.home-page .home-dialog h2,
.home-page .home-dialog h3,
.home-page .home-dialog p {
    margin: 0;
}
.home-page main h1,
.home-page main h2,
.home-page main h3,
.home-page .home-dialog h1,
.home-page .home-dialog h2,
.home-page .home-dialog h3 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}
.home-page main h2,
.home-page .home-dialog h2 {
    font-size: clamp(26px, 6.4vw, 40px);
}
.home-page main h3,
.home-page .home-dialog h3 {
    font-size: 17px;
}
.home-page button {
    font: inherit;
    cursor: pointer;
}
/* Не каскадим a на .mp-site-header — иначе CTA «Заказать праздник» теряет белый цвет.
   .mp-btn исключаем: иначе color:inherit перебивает белый/зелёный текст кнопок. */
.home-page main a:not(.mp-btn),
.home-page .home-floating-max {
    color: inherit;
    text-decoration: none;
}
/* Не трогаем img в .mp-site-header — иначе height:auto раздувает лого */
.home-page main img,
.home-page .home-floating-max img,
.home-page .home-dialog img,
.home-page .home-viewer img {
    display: block;
    max-width: 100%;
    height: auto;
}
.home-page .mp-site-header img {
    max-width: none;
}
.home-page :focus-visible {
    outline: 3px solid var(--mp-blue);
    outline-offset: 4px;
}
.home-page section[id],
.home-page main[id] {
    scroll-margin-top: 82px;
}
.home-page .home-icon {
    flex: 0 0 auto;
}
.home-page .home-container {
    width: calc(100% - 32px);
    max-width: 1200px;
    margin-inline: auto;
}
.home-page .home-section {
    margin-block: 30px;
}
.home-section-heading {
    margin-bottom: 22px;
    text-align: center;
}
.home-page .home-section-heading p {
    max-width: 610px;
    margin: 12px auto 0;
    color: var(--mp-muted);
}
.home-section-heading--left {
    text-align: left;
}
.home-page .home-section-heading--left p {
    margin-left: 0;
    margin-right: 0;
}
.home-caption {
    font-size: 12px;
    color: var(--mp-muted);
    margin-top: 16px !important;
    text-align: center;
}
.home-page .home-caption a {
    text-decoration: none;
    color: var(--home-green);
    font-weight: 700;
}
.home-theme-pink {
    --accent: var(--home-pink);
    --tint: #fff2f7;
    --border-grad: linear-gradient(145deg, #fff 0%, var(--home-pink) 38%, #ffe8f1 100%);
}
.home-theme-green {
    --accent: var(--home-green);
    --tint: #f1f8ed;
    --border-grad: linear-gradient(191deg, #eaf8e6 0%, var(--home-green) 45%, #fff 100%);
}
.home-theme-orange {
    --accent: var(--home-orange);
    --tint: #fff5eb;
    --border-grad: linear-gradient(230deg, var(--home-orange) 0%, #fff0e0 55%, #fff 100%);
}
.home-theme-blue {
    --accent: var(--home-blue);
    --tint: #eff7ff;
    --border-grad: linear-gradient(290deg, #fff 0%, #e8f1ff 30%, var(--home-blue) 70%, #fff 100%);
}
.home-theme-yellow {
    --accent: var(--home-yellow);
    --tint: #fff9e6;
    --border-grad: linear-gradient(95deg, #fff8e0 0%, var(--home-yellow) 50%, #fff 100%);
}

.home-skip {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 100;
    padding: 12px;
    background: #fff;
    border: 2px solid var(--home-green);
}
.home-skip:focus {
    top: 10px;
}
/* Единая шапка — mp-site-header; оранжевая полоса mobile — в site-header.css */
.home-page .mp-site-header.is-scrolled {
    box-shadow: 0 3px 18px #18281114;
}
/* Desktop: шапка прозрачная — шарики просвечивают, без шва с холстом */
@media (min-width: 900px) {
    .home-page .mp-site-header {
        border-bottom-color: transparent;
        background: transparent;
    }
    .home-page .mp-site-header.is-scrolled {
        background: color-mix(in srgb, var(--mp-bg) 88%, transparent);
        backdrop-filter: blur(8px);
    }
}
.home-logo {
    display: inline-flex;
    flex-shrink: 0;
}
.home-icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    padding: 10px;
}

/* ——— Hero carousel ——— */
.home-hero {
    display: flex;
    flex-direction: column;
    background: var(--mp-bg);
}
.home-hero__stage {
    position: relative;
    background: #163810;
    min-height: min(72svh, 600px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    touch-action: pan-y;
}
.home-hero__viewport {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    touch-action: pan-y;
}
.home-hero__track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.22, 0.8, 0.28, 1);
    will-change: transform;
}
.home-hero__track.is-dragging,
.home-hero__track.is-jumping {
    transition: none;
}
.home-hero__slide {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
}
.home-page .home-hero__slide img,
.home-page .home-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-hero__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 18%, #09190555 48%, #091905d8 78%, #091905f2 100%);
}
.home-hero__nav {
    position: absolute;
    top: 42%;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: #ffffffd0;
    color: var(--mp-text);
    font-size: 26px;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px #0002;
}
.home-hero__nav--prev {
    left: 10px;
}
.home-hero__nav--next {
    right: 10px;
}
.home-hero__nav:disabled {
    opacity: 0.28;
    cursor: default;
    pointer-events: none;
}
.home-hero__dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}
.home-hero__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #ffffff88;
    cursor: pointer;
}
.home-hero__dot.is-active {
    background: #fff;
    transform: scale(1.2);
}
.home-hero__copy {
    position: relative;
    z-index: 2;
    color: #fff;
    width: calc(100% - 32px);
    max-width: 1200px;
    margin-inline: auto;
    padding-block: 28px 88px;
    pointer-events: none;
}
.home-hero__copy a {
    pointer-events: auto;
}
.home-page .home-hero__title {
    margin: 0;
    font-family: var(--mp-font);
    font-size: clamp(32px, 8.4vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 14ch;
    text-shadow: 0 2px 18px #0005;
}
.home-page .home-hero__lead {
    margin: 16px 0 0;
    font-family: var(--mp-font);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
    max-width: 32ch;
    text-shadow: 0 1px 10px #0004;
}
.home-hero__mark {
    color: var(--mp-yellow);
}

.home-quick-info-wrap {
    position: relative;
    z-index: 4;
    margin-top: -36px;
}
.home-quick-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    border-radius: 100px;
    padding: 14px 8px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(24, 40, 17, 0.14);
    font-family: var(--mp-font);
    font-size: 15px;
    line-height: 1.25;
    color: var(--mp-text);
}
.home-quick-info__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    padding: 2px 10px;
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-quick-info__item + .home-quick-info__item {
    border-left: 1px solid #e6e9e1;
}
.home-quick-info .home-icon {
    color: var(--home-green);
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    transition: color 0.2s ease;
}
.home-quick-info__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    color: var(--mp-text);
    transition: color 0.2s ease;
}
.home-quick-info__label {
    font-weight: 400;
    color: inherit;
}
.home-quick-info__value {
    font-weight: 700;
    color: inherit;
}

/* ——— Scenarios ——— */
.home-scenarios {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 12px;
}
.home-scenario {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border: 2.5px solid transparent;
    border-radius: var(--mp-radius-md);
    /* Градиентная обводка в цвет темы: белая заливка + border-grad */
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--border-grad, linear-gradient(145deg, #ddd, #bbb)) border-box;
    box-shadow: var(--mp-shadow);
    min-width: 0;
    transition:
        transform 0.2s,
        box-shadow 0.2s;
}
.home-scenario__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
}
.home-scenario__icon .home-icon {
    width: 28px;
    height: 28px;
}
.home-page .home-scenario > img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    margin-top: 10px;
}
.home-page .home-scenario h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--accent);
    text-transform: uppercase;
}
.home-scenario p {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin-block: 10px 12px;
    color: #3f463c;
    flex: 1;
}
.home-scenario__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    min-height: 24px;
}
.home-scenario__link .home-icon {
    width: 16px;
    height: 16px;
}

/* ——— Campaigns: 2 видно, шаг по 1; заголовок на фото, статус/CTA под ним ——— */
.home-campaigns {
    width: 100%;
}
.home-campaigns__viewport {
    overflow: hidden;
    width: 100%;
    touch-action: pan-y;
    --home-campaign-gap: 10px;
}
.home-campaigns__track {
    display: flex;
    align-items: stretch;
    gap: var(--home-campaign-gap);
    will-change: transform;
    transition: transform 0.35s ease;
}
.home-campaigns__track.is-dragging {
    transition: none;
}
.home-page .home-campaigns__heading {
    font-family: "Montserrat", var(--mp-font);
    font-size: clamp(22px, 6vw, 36px);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.1;
}
/* Ширина — чистый CSS % от трека (не JS, не cqi). Так карточки равны на любом мобильном
   браузере даже если скрипт ещё не выполнился или упал с ошибкой. */
.home-campaign {
    display: flex;
    flex-direction: column;
    flex: 0 0 calc((100% - var(--home-campaign-gap)) / 2);
    width: calc((100% - var(--home-campaign-gap)) / 2);
    max-width: calc((100% - var(--home-campaign-gap)) / 2);
    min-width: 0;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    isolation: isolate;
    box-shadow: var(--mp-shadow);
    -webkit-user-drag: none;
    user-select: none;
    transition:
        opacity 0.35s ease,
        box-shadow 0.35s ease;
}
/* Высота фото = padding-bottom от ширины карточки. Не зависит от intrinsic img. */
.home-campaign__media {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 125%;
    overflow: hidden;
    background: #3a2a45;
    flex: 0 0 auto;
}
.home-campaign__media::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, #1a1028c0 0%, #1a102800 48%);
    pointer-events: none;
}
.home-page main .home-campaign__media img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center 40%;
    -webkit-user-drag: none;
    pointer-events: none;
}
.home-page .home-campaign__media h3 {
    position: absolute;
    z-index: 2;
    top: 14px;
    left: 14px;
    right: 8px;
    margin: 0;
    color: #fff;
    font-family: "Montserrat", var(--mp-font);
    font-size: clamp(18px, 5.4vw, 34px);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.045em;
    text-transform: uppercase;
    text-wrap: balance;
    text-shadow: 0 2px 10px #0008;
}
.home-campaign__media h3 span {
    display: block;
    text-transform: none;
    font-size: 0.72em;
    letter-spacing: -0.03em;
}
.home-campaign__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    padding: 14px 14px 16px;
}
.home-page .home-campaign__body p {
    font-family: "Montserrat", var(--mp-font);
    font-size: clamp(15px, 4.2vw, 20px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--mp-text);
    /* 2 строки — «Подробнее» на одной линии у соседних карточек */
    min-height: 2.4em;
}
.home-campaign__body strong {
    font-size: clamp(14px, 3.6vw, 18px);
    font-weight: 700;
    color: var(--mp-text);
}
.home-campaign__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    font-family: "Montserrat", var(--mp-font);
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--mp-pink);
}
.home-campaign__more .home-icon {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}
.home-campaigns__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    min-height: 10px;
}
.home-campaigns__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #d8d2cb;
    cursor: pointer;
}
.home-campaigns__dot.is-active {
    background: var(--mp-orange);
}
.home-campaigns__dots[hidden] {
    display: none;
}
.home-event-empty {
    display: flex;
    align-items: center;
    gap: 20px;
    border-radius: 22px;
    padding: 24px 20px;
    background: #fff8ed;
}
.home-event-empty__icon {
    display: none;
}
.home-event-empty h3 {
    font-size: 19px;
}
.home-event-empty p {
    margin-block: 10px 14px;
    font-size: 14px;
    color: #515348;
}

.home-text-link {
    color: var(--home-green) !important;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    font-size: 15px;
    transition: color 0.2s ease;
}
.home-text-link .home-icon {
    width: 18px;
    height: 18px;
    transition: color 0.2s ease;
}

/* ——— Weekend posters ——— */
.home-posters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.home-poster {
    position: relative;
    border-radius: var(--mp-radius-md);
    background: #fff;
    box-shadow: var(--mp-shadow);
    padding: 12px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}
.home-poster h3 {
    color: var(--accent);
    font-size: 15px;
    line-height: 1.25;
    margin-bottom: 10px;
    min-height: 2.4em;
}
.home-poster__image {
    position: relative;
    margin-top: auto;
}
.home-page .home-poster__image img {
    width: 100%;
    aspect-ratio: 9 / 16;
    object-fit: contain;
    border-radius: 12px;
    background: #fff;
}
.home-poster__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: calc(100% - 20px);
    padding: 6px 10px;
    border-radius: var(--mp-radius-full);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    box-shadow: 0 4px 12px #0002;
}
.home-poster__badge small {
    display: block;
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
    text-transform: uppercase;
}
.home-poster__badge--price {
    background: #fff;
    color: var(--home-green);
}
.home-poster__badge--free {
    background: var(--mp-red);
    color: #fff;
}
.home-poster__open {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
}

/* ——— Stories gallery ——— */
/* .home-gallery-section {
    padding-block: 28px;
} */
.home-title-break::before {
    content: "\A";
    white-space: pre;
}
.home-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 14px max(16px, calc((100vw - 1200px) / 2 + 26px)) 18px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.home-gallery-stack {
    position: relative;
    flex: 0 0 min(42vw, 168px);
    aspect-ratio: 9 / 16;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}
.home-gallery-stack__sheet {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ebdc;
    box-shadow: 0 2px 6px #13270920;
    pointer-events: none;
}
.home-gallery-stack--multi .home-gallery-stack__sheet:nth-child(1) {
    transform: translate(10px, 8px) rotate(4deg);
    z-index: 0;
    background: #d5dfc8;
}
.home-gallery-stack--multi .home-gallery-stack__sheet:nth-child(2) {
    transform: translate(5px, 4px) rotate(2deg);
    z-index: 1;
    background: #eef2e6;
}
.home-gallery-card {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #244519;
    isolation: isolate;
}
.home-page .home-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-gallery-card::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, #101809d8);
}
.home-gallery-card__title {
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    z-index: 1;
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}
.home-gallery-card__count {
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #101809cc;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    backdrop-filter: blur(4px);
}
.home-gallery-card__count-icon {
    flex-shrink: 0;
    opacity: 0.9;
}
.home-gallery-card__play {
    position: absolute;
    z-index: 1;
    left: 50%;
    top: 42%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1.5px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #13270955;
    font-size: 18px;
    padding-left: 2px;
}

/* ——— Playground / food / loyalty ——— */
.home-page .home-playground {
    background: #fff8e6;
    border-radius: 26px;
    overflow: hidden;
}
.home-playground__copy {
    padding: 28px 22px;
}
.home-playground__copy > p {
    margin: 0;
}
.home-playground__benefits {
    padding: 0;
    list-style: none;
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    font-size: 14px;
}
.home-playground__benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
}
.home-playground__benefits .home-icon {
    color: var(--home-green);
    width: 20px;
    height: 20px;
}
.home-playground__media {
    position: relative;
}
.home-page .home-playground__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}
.home-playground__more {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 16px rgba(19, 39, 9, 0.12);
    color: var(--home-green) !important;
    font-size: 14px;
    min-height: 44px;
    transition: color 0.2s ease, background 0.2s ease;
}

.home-food {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.home-food-card {
    border-radius: 16px;
    overflow: hidden;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: var(--mp-shadow);
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.55s ease;
}
.home-food-card:hover,
.home-food-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(19, 39, 9, 0.12);
    outline: none;
}
.home-food-card.is-fading {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}
.home-food-card__media {
    flex: 0 0 auto;
}
.home-food-card__media,
.home-page .home-food-card__media > img,
.home-food-card__placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    background: #f6f4ed;
}
.home-food-card__placeholder {
    display: grid;
    place-items: center;
    color: var(--home-green);
}
/* Текст: ровно 2 строки названия + цена снизу справа — высота плашки не прыгает при ротации.
   Важно: .home-page main h3 задаёт 17px/1.15 — перебиваем выше по специфичности. */
.home-food-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 62px;
    padding: 12px;
    gap: 6px;
}
.home-food-card__title {
    display: block;
    height: 36px;
    overflow: hidden;
}
.home-page .home-food-card h3,
.home-food-card h3 {
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.home-page .home-food-card p,
.home-food-card p {
    margin: auto 0 0;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--home-orange);
    text-align: right;
}
.home-food__more {
    margin-top: 14px;
}

.home-food-dialog {
    width: min(420px, calc(100vw - 24px));
    padding: 20px;
}
.home-food-dialog__close {
    float: right;
}
.home-food-dialog__media {
    position: relative;
    margin: 8px 0 16px;
    border-radius: 18px;
    overflow: hidden;
    background: #f6f4ed;
    clear: both;
}
.home-page .home-food-dialog__media img,
.home-food-dialog__placeholder {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}
.home-food-dialog__placeholder {
    display: grid;
    place-items: center;
    color: var(--home-green);
}
.home-food-dialog__placeholder .home-icon {
    width: 48px;
    height: 48px;
}
.home-food-dialog h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}
.home-food-dialog__price {
    margin: 12px 0 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--home-orange);
}
.home-food-dialog__price [data-food-old-price] {
    font-size: 15px;
    font-weight: 600;
    color: var(--mp-muted);
    text-decoration: line-through;
}
.home-food-dialog__meta {
    margin: 10px 0 0;
    font-size: 14px;
    color: var(--mp-muted);
    line-height: 1.45;
}
.home-food-dialog [data-food-order] {
    margin-top: 20px;
}

/* Блок бонусов — продолжение секции меню, не отдельный «новый раздел». */
.home-page .home-section:has(+ .home-loyalty) {
    margin-bottom: 0;
}
.home-page .home-loyalty {
    background: linear-gradient(160deg, #fff8d6, #ffe9a8);
    border-radius: 24px;
    padding: 26px 20px;
    margin-block: 16px 48px;
}
.home-loyalty h2 {
    margin-bottom: 12px;
}
.home-loyalty p {
    margin-bottom: 12px;
    font-size: 14px;
}
/* Landscape-карта: шире портретного плейсхолдера, лёгкий наклон «как пластик». */
.home-loyalty__visual {
    width: min(320px, 92%);
    margin: 22px auto 0;
    transform: rotate(-3deg);
    filter: drop-shadow(0 16px 28px #6b520e44);
}
.home-page .home-loyalty__visual img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 14px;
    /* Белое кольцо отделяет жёлтый фон карты от жёлтой секции. */
    box-shadow: 0 0 0 3px #fff;
}

.home-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.home-benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 14px 10px 16px;
    border-radius: var(--mp-radius-md);
    background: #fff;
    box-shadow: var(--mp-shadow);
}
.home-benefit > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 16px;
    background: var(--tint);
    color: var(--accent);
}
.home-benefit > span .home-icon {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}
.home-benefit h3 {
    font-size: 14px;
    line-height: 1.2;
}
.home-benefit p {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--mp-muted);
}

/* Поляроиды отзывов — scatter как на placegame, но внутри home.css. */
.home-reviews {
    margin-top: 28px;
}
.home-reviews__eyebrow {
    margin: 0 0 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--mp-muted);
}
.home-reviews__scatter {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 10px;
    padding-top: 10px;
    align-items: start;
}
.home-polaroid {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 7px solid #fff;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(26, 26, 26, 0.14);
    z-index: var(--z, 1);
    transform: translateY(calc(var(--shift-y, 0) * 0.6px)) rotate(var(--tilt, 0deg));
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.home-polaroid__open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: inherit;
    text-decoration: none;
    cursor: zoom-in;
}
.home-polaroid img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 8px;
    object-fit: cover;
    background: #f3efe6;
}
.home-polaroid figcaption {
    display: grid;
    gap: 2px;
    padding: 8px 4px 4px;
    text-align: center;
}
.home-polaroid figcaption strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--mp-text);
    line-height: 1.2;
}
.home-polaroid figcaption time {
    font-size: 11px;
    color: var(--mp-muted);
}
.home-polaroid figcaption span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.35;
    color: var(--mp-muted);
}
.home-reviews__2gis {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    margin: 20px auto 0;
    padding: 12px 16px 12px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--mp-shadow);
    color: var(--mp-text);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.home-reviews__2gis:hover,
.home-reviews__2gis:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px #25471418;
    color: var(--mp-text);
}
.home-reviews__2gis-score {
    display: grid;
    justify-items: center;
    gap: 2px;
    flex-shrink: 0;
    min-width: 56px;
    padding: 6px 8px;
    border-radius: 14px;
    background: #fff4d6;
}
.home-reviews__2gis-stars {
    font-size: 11px;
    letter-spacing: 0.5px;
    line-height: 1;
    color: #f5a623;
}
.home-reviews__2gis-score strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--mp-text);
}
.home-reviews__2gis-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.home-reviews__2gis-copy > span {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}
.home-reviews__2gis-copy small {
    font-size: 12px;
    font-weight: 600;
    color: var(--mp-muted);
}
.home-reviews__2gis .home-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--home-green);
    margin-left: auto;
}

.home-page .home-location {
    padding: 22px 14px;
    border-radius: 24px;
    background: #f2f8f1;
}
.home-page .home-location__photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}
.home-location__photo-btn {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
}
.home-location__photo-btn:focus-visible {
    outline: 3px solid var(--mp-orange);
    outline-offset: 3px;
}
.home-location__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}
.home-location address {
    font-style: normal;
    font-weight: 700;
    display: grid;
    gap: 16px;
    padding-block: 20px;
    font-size: 14px;
}
.home-location address p,
.home-location address a {
    display: flex;
    align-items: start;
    gap: 12px;
}
.home-location address .home-icon {
    color: var(--home-green);
}
.home-location__map {
    display: block;
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e4ecdc;
    border: 0;
    border-radius: 16px;
}
.home-location__actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.home-location__actions .mp-btn {
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}
/* Явно фиксируем CTA: main a:not(.mp-btn) уже не трогает их, но иконки currentColor */
.home-location__actions .mp-btn--green {
    color: #fff;
}
.home-location__actions .mp-btn--outline-green {
    color: var(--home-green);
    background: #fff;
}

.home-social {
    text-align: center;
}
.home-social > p {
    font-size: 13px;
    margin-top: 10px;
    color: var(--mp-muted);
}
.home-social__links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 22px;
}
.home-social__links > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 13px;
    gap: 8px;
}
.home-social__links small {
    font-size: 10px;
    color: var(--mp-muted);
}
.home-social__icon {
    width: 48px;
    height: 48px;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.home-social__icon[src$=".svg"],
svg.home-social__icon {
    border-radius: 50%;
}
.home-social__photos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    max-width: 660px;
    margin: 28px auto 0;
    padding: 0;
    list-style: none;
}
.home-social__photos li {
    min-width: 0;
}
.home-social__photos a {
    display: block;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    background: #f1f8ed;
}
.home-page .home-social__photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Запас снизу под floating MAX на mobile */
.home-page .mp-site-footer {
    padding-bottom: 96px;
}

.home-floating-max {
    position: fixed;
    z-index: 25;
    bottom: max(12px, env(safe-area-inset-bottom));
    right: 16px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #ddd5fc;
    border-radius: var(--mp-radius-full);
    color: #5023c0 !important;
    background: #fff;
    box-shadow: 0 5px 25px #3421562b;
    min-height: 46px;
    padding: 8px 17px 8px 10px;
    font-size: 13px;
    font-weight: 700;
}
.home-floating-max img {
    border-radius: 7px;
}
.home-loyalty-details {
    padding-block: 30px;
    font-size: 14px;
}
.home-loyalty-details > a {
    color: var(--home-green);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-location address a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.home-location address a .home-icon {
    transition: color 0.2s ease;
}

.home-social__links > a {
    transition: color 0.2s ease;
}

/* Фокус клавиатуры: оранжевый без underline (вне @media hover) */
.home-page main a.home-text-link:focus-visible,
.home-page main .home-quick-info__item:focus-visible,
.home-page main .home-caption a:focus-visible,
.home-page main .home-loyalty-details > a:focus-visible,
.home-page main .home-location address a:focus-visible,
.home-page main .home-social__links > a:focus-visible {
    color: var(--home-orange) !important;
    text-decoration: none;
}
.home-page main a.home-text-link:focus-visible .home-icon,
.home-page main .home-quick-info__item:focus-visible .home-icon,
.home-page main .home-quick-info__item:focus-visible .home-quick-info__text,
.home-page main .home-location address a:focus-visible .home-icon {
    color: var(--home-orange);
}

.home-loyalty-details p {
    margin-block: 16px;
}
.home-page.has-home-js .home-loyalty-details {
    display: none;
}

.home-dialog {
    border: 0;
    color: var(--mp-text);
    padding: 24px;
    border-radius: 24px;
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    background: #fff;
    box-shadow: var(--mp-shadow);
}
.home-dialog::backdrop {
    background: #091506b8;
}
.home-dialog:not([open]) {
    display: none;
}
.home-page.home-modal-open {
    overflow: hidden;
}
.home-info-dialog {
    width: 450px;
}
.home-info-dialog > button {
    float: right;
}
.home-info-dialog h2 {
    margin-top: 12px;
}
.home-info-dialog p {
    margin-block: 20px;
}
.home-page .home-viewer {
    position: fixed;
    inset: 0;
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    background: #0d140e;
    color: #fff;
    border-radius: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
}
.home-viewer[open] {
    display: grid;
}
.home-viewer__bg {
    position: absolute;
    inset: -24px;
    background-color: #1a2814;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    filter: blur(42px) saturate(1.35);
    transform: scale(1.12);
    opacity: 0.72;
    pointer-events: none;
}
.home-viewer__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, #0d140e55 0%, #0d140ecc 70%), linear-gradient(#0d140e88, #0d140eaa);
}
.home-viewer__frame {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    padding: calc(10px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom));
    gap: 10px;
}
.home-viewer__bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
}
.home-viewer__bar-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.home-viewer__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.home-viewer__count {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.home-viewer__caption {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    color: #ffffffd0;
}
.home-viewer__progress {
    display: flex;
    gap: 4px;
    width: 100%;
}
.home-viewer__progress[hidden] {
    display: none;
}
.home-viewer__seg {
    flex: 1 1 0;
    height: 3.5px;
    border-radius: 999px;
    background: #ffffff38;
    transition: background 0.2s ease;
}
.home-viewer__seg.is-done,
.home-viewer__seg.is-active {
    background: #fff;
}
.home-viewer .home-icon-button {
    background: #ffffff22;
    color: #fff;
    backdrop-filter: blur(8px);
}
/* Кадр как фотоплёнка: перфорация сверху/снизу = «это пачка кадров». */
.home-viewer__film {
    position: relative;
    display: grid;
    grid-template-rows: 22px minmax(0, 1fr) 22px;
    min-height: 0;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    background: #12180f;
    border-radius: 10px;
    box-shadow:
        0 0 0 1px #ffffff12,
        0 22px 50px #00000066;
    overflow: hidden;
}
.home-viewer__film-rail {
    position: relative;
    z-index: 2;
    background:
        radial-gradient(ellipse 5px 7px at 50% 50%, #070a06 0 68%, transparent 70%) 10px center / 26px 100% repeat-x,
        linear-gradient(#1a2215, #141b12);
    box-shadow: inset 0 0 0 1px #ffffff0d;
}
.home-viewer__film-rail::before,
.home-viewer__film-rail::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #ffffff14;
}
.home-viewer__film-rail:first-child::after {
    bottom: 0;
}
.home-viewer__film-rail:last-child::before {
    top: 0;
}
.home-viewer__stage {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    width: 100%;
    padding: 6px 10px;
    background: #0a0e08;
    touch-action: pan-y pinch-zoom;
}
.home-page .home-viewer__stage img,
.home-page .home-viewer__stage video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}
.home-viewer--posters .home-viewer__stage {
    container-type: size;
}
.home-page .home-viewer--posters .home-viewer__stage img {
    width: min(100cqw, 56.25cqh);
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: contain;
}
.home-viewer__stage img {
    user-select: none;
}
.home-viewer__stage > p {
    font-size: 16px;
    text-align: center;
    padding: 20px;
}
.home-viewer__bottom {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    padding-block: 4px;
}
.home-viewer__body {
    margin: 0;
    padding: 0 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #fffffff0;
    text-align: center;
    max-height: 7.2em;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
.home-viewer__body[hidden] {
    display: none;
}
.home-viewer--reviews .home-viewer__caption {
    font-size: 14px;
    color: #ffffffc8;
}
.home-viewer__nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.home-viewer__nav {
    width: 52px;
    height: 52px;
    font-size: 22px;
}
.home-viewer :focus-visible {
    outline-color: #ffda58;
}

@media (min-width: 900px) {
    .home-viewer__frame {
        padding-inline: 28px;
        gap: 14px;
    }
    .home-viewer__count {
        font-size: 28px;
    }
    .home-viewer__caption {
        font-size: 18px;
    }
    .home-viewer__body {
        font-size: 16px;
        max-height: 5.6em;
    }
    .home-viewer--reviews .home-viewer__caption {
        font-size: 16px;
    }
    .home-viewer__film {
        max-width: 640px;
        grid-template-rows: 28px minmax(0, 1fr) 28px;
        border-radius: 12px;
    }
    .home-viewer__film-rail {
        background:
            radial-gradient(ellipse 6px 9px at 50% 50%, #070a06 0 68%, transparent 70%) 12px center / 30px 100% repeat-x,
            linear-gradient(#1a2215, #141b12);
    }
    .home-viewer__stage {
        padding: 8px 14px;
    }
    .home-page .home-viewer__stage img,
    .home-page .home-viewer__stage video {
        max-height: calc(100dvh - 220px);
    }
    .home-viewer__bottom {
        max-width: 640px;
    }
    .home-viewer__nav {
        width: 56px;
        height: 56px;
    }
}

@media (hover: hover) {
    .home-scenario:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 28px #25471418;
    }
    /* Текстовые ссылки: оранжевый hover, без underline (не карточки/кнопки) */
    .home-page main a.home-text-link:hover,
    .home-page main .home-quick-info__item:hover,
    .home-page main .home-caption a:hover,
    .home-page main .home-loyalty-details > a:hover,
    .home-page main .home-location address a:hover,
    .home-page main .home-social__links > a:hover {
        color: var(--home-orange) !important;
        text-decoration: none;
    }
    .home-page main a.home-text-link:hover .home-icon,
    .home-page main .home-quick-info__item:hover .home-icon,
    .home-page main .home-quick-info__item:hover .home-quick-info__text,
    .home-page main .home-location address a:hover .home-icon {
        color: var(--home-orange);
    }
    .home-page main a.home-playground__more:hover {
        color: #fff !important;
        background: var(--home-green);
        box-shadow: 0 6px 20px rgba(19, 39, 9, 0.22);
        text-decoration: none;
    }
    .home-page main a.home-playground__more:hover .home-icon {
        color: #fff;
    }
    .home-page .home-location__actions .mp-btn--green:hover {
        color: #fff;
        filter: none;
        background: #2f9510;
        box-shadow: 0 8px 24px rgba(19, 39, 9, 0.3);
        transform: translateY(-2px);
    }
    .home-page .home-location__actions .mp-btn--outline-green:hover {
        color: #fff !important;
        background: var(--home-green);
        border-color: var(--home-green);
        filter: none;
        box-shadow: 0 6px 20px rgba(19, 39, 9, 0.22);
    }
    .home-page .home-scenario:hover,
    .home-page .home-gallery-card:hover,
    .home-page .home-campaign:hover,
    .home-page .home-food-card:hover,
    .home-page .home-poster:hover,
    .home-page .mp-btn:hover {
        text-decoration: none;
    }
    .home-page .home-poster:hover {
        transform: scale(1.04);
        z-index: 2;
        box-shadow: 0 12px 32px rgba(26, 26, 26, 0.14);
    }
    .home-gallery-stack:hover {
        transform: scale(1.05);
        z-index: 3;
    }
    .home-icon-button:hover {
        background: #81996816;
    }
    .home-hero__nav:hover:not(:disabled) {
        background: #fff;
    }
    .home-hero__slide:not(.is-center):hover {
        opacity: 0.92;
        filter: none;
    }
}

@media (min-width: 600px) {
    .home-page .home-container {
        width: calc(100% - 56px);
    }
    .home-hero__copy {
        width: calc(100% - 56px);
        padding-block: 40px 80px;
    }
    .home-page .home-section {
        margin-block: 35px;
    }
    .home-page .home-scenario h3 {
        font-size: 15px;
    }
    .home-scenario p {
        font-size: 13px;
    }
    .home-scenario__icon {
        width: 52px;
        height: 52px;
    }
    .home-scenario__icon .home-icon {
        width: 30px;
        height: 30px;
    }
    .home-scenario__link {
        font-size: 13px;
    }
    .home-campaigns__viewport {
        --home-campaign-gap: 14px;
    }
    .home-page .home-campaign__media h3 {
        top: 16px;
        left: 16px;
    }
    .home-campaign__body {
        padding: 16px 16px 18px;
    }
    .home-gallery-stack {
        flex-basis: 180px;
    }
    .home-gallery-stack__sheet {
        border-radius: 18px;
    }
    .home-poster h3 {
        font-size: 18px;
    }
    .home-posters {
        max-width: 760px;
        margin-inline: auto;
        gap: 20px;
    }
    .home-benefits {
        gap: 12px;
    }
    .home-benefit {
        padding: 16px 12px 18px;
    }
    .home-benefit > span {
        width: 56px;
        height: 56px;
    }
    .home-benefit h3 {
        font-size: 15px;
    }
    .home-benefit p {
        font-size: 13px;
    }
    .home-reviews__scatter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        padding-top: 16px;
    }
    .home-polaroid {
        width: 168px;
        margin: 8px -10px 10px;
        border-width: 8px;
    }
    .home-polaroid figcaption strong {
        font-size: 13px;
    }
    .home-polaroid figcaption span {
        font-size: 12px;
        -webkit-line-clamp: 2;
    }
    .home-event-empty__icon {
        display: grid;
        place-items: center;
        width: 85px;
        height: 85px;
        flex-shrink: 0;
        border-radius: 50%;
        background: #ffedc9;
        color: var(--home-orange);
    }
    .home-page .home-loyalty {
        display: grid;
        grid-template-columns: 1fr minmax(260px, 340px);
        align-items: center;
        gap: 28px;
        padding: 32px;
    }
    .home-loyalty__visual {
        width: 100%;
        margin: 0;
    }
}

@media (min-width: 900px) {
    /* Desktop: hero на общем холсте (без белого подноса). Карточки — белые. */
    .home-page .mp-site-header {
        background: transparent;
    }
    .home-hero {
        width: 100%;
        max-width: var(--mp-container);
        margin-inline: auto;
        padding: 8px 16px 0;
        background: transparent;
    }
    .home-hero__stage {
        position: relative;
        isolation: isolate;
        width: 100%;
        max-width: none;
        margin-inline: 0;
        min-height: 0;
        height: auto;
        padding: 8px 0 80px;
        border-radius: 0;
        overflow: hidden;
        background: transparent;
        display: block;
        align-items: stretch;
        box-shadow: none;
    }
    .home-hero__viewport {
        position: relative;
        inset: auto;
        z-index: 1;
        height: min(68vh, 640px);
        overflow: hidden;
        /* Fade на ::after, не mask: иначе стрелки у края карусели тоже выцветают. */
    }
    .home-hero__viewport::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            var(--mp-bg) 0,
            transparent 40px,
            transparent calc(100% - 40px),
            var(--mp-bg) 100%
        );
    }
    .home-hero__track {
        height: 100%;
        width: max-content;
        gap: 20px;
        align-items: stretch;
    }
    .home-hero__slide {
        flex: 0 0 auto;
        width: auto;
        height: 100%;
        aspect-ratio: 9 / 16;
        border-radius: 28px;
        overflow: hidden;
        box-shadow: 0 12px 32px rgba(26, 26, 26, 0.12);
        opacity: 0.62;
        transform: none;
        cursor: pointer;
        transition:
            opacity 0.35s ease,
            filter 0.35s ease,
            box-shadow 0.35s ease;
        user-select: none;
    }
    .home-hero__slide.is-center {
        opacity: 1;
        z-index: 1;
        cursor: default;
        box-shadow: 0 18px 40px rgba(26, 26, 26, 0.16);
    }
    .home-hero__slide:not(.is-center) {
        filter: saturate(0.82);
    }
    .home-hero__slide:not(.is-center) .home-hero__copy {
        opacity: 0;
    }
    .home-hero__slide:not(.is-center) .home-hero__shade {
        opacity: 0.45;
    }
    .home-page .home-hero__slide img,
    .home-page .home-hero__video {
        border-radius: inherit;
    }
    .home-hero__dots {
        bottom: 20px;
    }
    .home-hero__copy {
        max-width: none;
        width: calc(100% - 40px);
        margin-inline: auto;
        margin-left: auto;
        padding-block: 28px 56px;
    }
    .home-page .home-hero__title {
        font-size: clamp(28px, 2.4vw, 40px);
        max-width: 12ch;
    }
    .home-page .home-hero__lead {
        font-size: 15px;
        max-width: 28ch;
        margin-top: 14px;
    }
    .home-hero__nav {
        width: 48px;
        height: 48px;
        font-size: 30px;
        top: 50%;
        transform: translateY(-50%);
    }
    /* Края viewport, не рёбра центральной 9:16-карточки. */
    .home-hero__nav--prev {
        left: 16px;
    }
    .home-hero__nav--next {
        right: 16px;
    }
    .home-quick-info-wrap {
        margin-top: -52px;
    }
    .home-quick-info {
        max-width: 520px;
        margin-inline: auto;
        padding: 16px 12px;
        font-size: 16px;
    }
    .home-quick-info__item {
        gap: 12px;
        padding: 2px 16px;
    }
    .home-quick-info .home-icon {
        width: 36px;
        height: 36px;
    }
    .home-scenarios {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
    .home-page .home-section {
        margin-block: 40px;
    }
    .home-campaigns {
        max-width: 960px;
        margin-inline: auto;
    }
    .home-campaigns__viewport {
        --home-campaign-gap: 20px;
        --home-campaign-card-w: min(400px, calc((100% - var(--home-campaign-gap)) / 2.25));
        position: relative;
    }
    /* Боковые края: соседние карточки чуть видны, fade не перекрывает клики. */
    .home-campaigns__viewport::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(
            90deg,
            var(--mp-bg) 0,
            transparent 36px,
            transparent calc(100% - 36px),
            var(--mp-bg) 100%
        );
    }
    .home-campaign {
        flex: 0 0 var(--home-campaign-card-w);
        width: var(--home-campaign-card-w);
        max-width: var(--home-campaign-card-w);
        opacity: 0.68;
    }
    .home-campaign.is-active-pair {
        opacity: 1;
        box-shadow: 0 14px 36px rgba(26, 26, 26, 0.12);
    }
    .home-campaign__media {
        padding-bottom: 100%;
    }
    .home-page .home-campaign__media h3 {
        top: 20px;
        left: 20px;
        font-size: 32px;
    }
    .home-campaign__body {
        gap: 12px;
        padding: 18px 20px 22px;
    }
    .home-page .home-campaign__body p {
        font-size: 20px;
    }
    .home-campaign__more {
        font-size: 18px;
    }
    .home-posters {
        max-width: 680px;
    }
    .home-gallery {
        gap: 22px;
        justify-content: center;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-inline: 28px;
    }
    .home-gallery-stack {
        flex-basis: 200px;
        scroll-snap-align: unset;
    }
    .home-gallery-stack__sheet,
    .home-gallery-card {
        border-radius: 20px;
    }
    .home-gallery-card__count {
        top: 12px;
        right: 12px;
        font-size: 12px;
        padding: 5px 9px;
    }
    .home-title-break::before {
        content: " ";
        white-space: normal;
    }
    .home-page .home-playground {
        display: grid;
        grid-template-columns: 1.05fr 1fr;
    }
    .home-playground__copy {
        padding: 48px;
        align-self: center;
    }
    .home-page .home-playground__image {
        height: 100%;
        max-height: 660px;
        aspect-ratio: 4 / 5;
    }
    .home-playground__more {
        right: 20px;
        bottom: 20px;
        font-size: 15px;
    }
    .home-food {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 18px;
    }
    .home-food-card__body {
        min-height: 72px;
        padding: 14px;
        gap: 8px;
    }
    .home-food-card__title {
        height: 44px;
    }
    .home-page .home-food-card h3,
    .home-food-card h3 {
        font-size: 16px;
        line-height: 22px;
    }
    .home-page .home-food-card p,
    .home-food-card p {
        font-size: 17px;
    }
    .home-page .home-loyalty {
        grid-template-columns: 1fr minmax(300px, 400px);
        gap: 48px;
        padding: 40px 48px;
        margin-block: 20px 80px;
    }
    .home-loyalty p {
        max-width: 540px;
        font-size: 16px;
    }
    .home-benefits {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
    .home-benefit {
        gap: 12px;
        padding: 20px 14px 22px;
    }
    .home-benefit > span {
        width: 64px;
        height: 64px;
        border-radius: 18px;
    }
    .home-benefit > span .home-icon {
        width: 32px;
        height: 32px;
    }
    .home-benefit h3 {
        font-size: 16px;
    }
    .home-benefit p {
        font-size: 13px;
    }
    .home-reviews {
        margin-top: 40px;
    }
    .home-reviews__scatter {
        max-width: calc(180px + 160px * 5);
        margin-inline: auto;
        gap: 0;
    }
    .home-polaroid {
        width: 180px;
        margin: 10px -12px 14px;
    }
    .home-polaroid:hover {
        transform: translateY(calc(var(--shift-y, 0) * 0.6px - 8px)) rotate(var(--tilt, 0deg)) scale(1.04);
        box-shadow: 0 22px 40px rgba(26, 26, 26, 0.2);
        z-index: 5;
    }
    .home-page .home-location {
        padding: 40px;
    }
    .home-location__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .home-location__map-column {
        display: flex;
        flex-direction: column;
    }
    .home-location__map {
        flex: 1;
        min-height: 320px;
    }
    .home-location__actions {
        grid-template-columns: 1fr 1fr;
    }
    .home-location address {
        padding-bottom: 0;
    }
    .home-page .mp-site-footer {
        padding-bottom: 40px;
    }
    .home-floating-max {
        display: none;
    }
}

@media (min-width: 1271px) {
    .home-hero {
        padding-inline: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page *,
    .home-page *::before,
    .home-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
    .home-hero__track {
        transition: none;
    }
}
