/* ============================================
   ВСП — Меню (menu.css)
   ============================================ */

/* ========================
   HERO — редакторский макет
   (вдохновение: NYT Cooking, Eater, Wolt Market, Deliveroo Editions)
   ======================== */
.mn-hero {
    position: relative;
    padding: calc(var(--header-h) + 36px) 0 0;
    background: var(--c-bg-alt);
    overflow: hidden;
}

/* Декоративный точечный паттерн на фоне */
.mn-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255,107,53,0.10) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.65;
    pointer-events: none;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
            mask-image: radial-gradient(ellipse at center, #000 0%, transparent 75%);
}

/* Тёплые свечения */
.mn-hero::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    top: -120px;
    right: -160px;
    background: radial-gradient(circle, rgba(247,201,72,0.28), transparent 65%);
    pointer-events: none;
    filter: blur(4px);
}

.mn-hero > .container {
    position: relative;
    z-index: 1;
}

/* ----- TOPBAR: газетная шапка ----- */
.mn-hero__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 2px solid var(--c-text);
    margin-bottom: 44px;
    flex-wrap: wrap;
}

.mn-hero__topbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.mn-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    background: var(--c-text);
    color: #fff;
    border-radius: var(--r-full);
    font-family: var(--f-heading);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mn-hero__badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(255,107,53,0.28);
    animation: mnPulse 1.6s ease-in-out infinite;
}

@keyframes mnPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 4px rgba(255,107,53,0.28); }
    50%      { transform: scale(1.25); box-shadow: 0 0 0 9px rgba(255,107,53,0); }
}

.mn-hero__meta {
    font-family: var(--f-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--c-text-secondary);
    opacity: 0.65;
}

/* ----- MAIN GRID ----- */
.mn-hero__main {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
    padding: 24px 0 40px;
}

.mn-hero__headline {
    position: relative;
}

.mn-hero__title {
    font-family: var(--f-heading);
    font-weight: 900;
    line-height: 0.96;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mn-hero__word {
    display: block;
    font-size: clamp(44px, 6.8vw, 96px);
}

.mn-hero__word--italic em {
    font-style: italic;
    font-weight: 500;
    color: var(--c-text-secondary);
    opacity: 0.6;
}

.mn-hero__word--accent {
    position: relative;
    width: fit-content;
    background: linear-gradient(135deg, #FF6B35 0%, #FF9051 45%, #F7C948 100%);
    -webkit-background-clip: text;
            background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.mn-hero__word--accent::after {
    content: "";
    position: absolute;
    left: -4px;
    right: -4px;
    bottom: 6px;
    height: 14px;
    background: rgba(255,107,53,0.16);
    border-radius: 6px;
    z-index: -1;
}

.mn-hero__lead {
    font-size: 17px;
    color: var(--c-text-secondary);
    line-height: 1.6;
    max-width: 460px;
    margin-bottom: 32px;
    padding-left: 18px;
    border-left: 3px solid var(--c-primary);
    font-weight: 500;
}

/* Теги категорий */
.mn-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mn-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--r-full);
    font-family: var(--f-heading);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
    cursor: default;
    transition: transform var(--t-fast), box-shadow var(--t-fast);
    white-space: nowrap;
}

.mn-tag:hover {
    transform: translateY(-3px) rotate(-1.5deg);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.mn-tag--orange  { background: rgba(255,107,53,0.14); color: #E85D20; }
.mn-tag--green   { background: rgba(52,211,153,0.18); color: #059669; }
.mn-tag--blue    { background: rgba(99,102,241,0.14); color: #4F46E5; }
.mn-tag--yellow  { background: rgba(247,201,72,0.28); color: #B45309; }
.mn-tag--purple  { background: rgba(168,85,247,0.14); color: #7C3AED; }
.mn-tag--red     { background: rgba(239,68,68,0.14);  color: #DC2626; }
.mn-tag--teal    { background: rgba(20,184,166,0.14); color: #0F766E; }
.mn-tag--pink    { background: rgba(236,72,153,0.14); color: #BE185D; }

/* ----- КОЛЛАЖ С БЛЮДАМИ ----- */
.mn-hero__collage {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 460px;
}

.mn-dish {
    position: absolute;
    background: #fff;
    border-radius: var(--r-lg);
    padding: 12px 12px 16px;
    box-shadow:
        0 18px 44px rgba(20,20,40,0.14),
        0 2px 6px rgba(20,20,40,0.05);
    transition: transform var(--t-base), box-shadow var(--t-base);
    width: 54%;
    z-index: 1;
}

.mn-dish__image {
    aspect-ratio: 1 / 1;
    border-radius: calc(var(--r-lg) - 6px);
    overflow: hidden;
    margin-bottom: 10px;
    background: var(--c-bg-alt);
}

.mn-dish__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--t-base);
}

.mn-dish:hover .mn-dish__image img {
    transform: scale(1.06);
}

.mn-dish__info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    padding: 0 6px;
}

.mn-dish__name {
    font-family: var(--f-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.mn-dish__price {
    font-family: var(--f-heading);
    font-size: 15px;
    font-weight: 900;
    color: var(--c-primary);
    white-space: nowrap;
}

.mn-dish--pos-1 {
    top: 2%;
    left: 4%;
    transform: rotate(-7deg);
    animation: mnFloat1 6.5s ease-in-out infinite;
}

.mn-dish--pos-2 {
    top: 20%;
    right: -2%;
    width: 58%;
    transform: rotate(5deg);
    z-index: 2;
    animation: mnFloat2 7s ease-in-out infinite;
}

.mn-dish--pos-3 {
    bottom: 2%;
    left: 16%;
    width: 50%;
    transform: rotate(3deg);
    animation: mnFloat3 8s ease-in-out infinite;
}

.mn-dish:hover {
    transform: rotate(0deg) translateY(-10px) scale(1.04);
    box-shadow:
        0 32px 70px rgba(20,20,40,0.22),
        0 6px 14px rgba(20,20,40,0.08);
    z-index: 10;
    animation-play-state: paused;
}

@keyframes mnFloat1 {
    0%, 100% { transform: rotate(-7deg) translateY(0); }
    50%      { transform: rotate(-7deg) translateY(-10px); }
}
@keyframes mnFloat2 {
    0%, 100% { transform: rotate(5deg) translateY(0); }
    50%      { transform: rotate(5deg) translateY(-14px); }
}
@keyframes mnFloat3 {
    0%, 100% { transform: rotate(3deg) translateY(0); }
    50%      { transform: rotate(3deg) translateY(-8px); }
}

/* Вращающийся штамп FRESH */
.mn-hero__stamp {
    position: absolute;
    top: 36%;
    left: 38%;
    width: 148px;
    height: 148px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    pointer-events: none;
}

.mn-hero__stamp-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: mnSpin 16s linear infinite;
}

.mn-hero__stamp-text {
    font-family: var(--f-heading);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.1em;
    fill: #fff;
    text-transform: uppercase;
}

@keyframes mnSpin {
    to { transform: rotate(360deg); }
}

.mn-hero__stamp-core {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--c-primary);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: var(--f-heading);
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(255,107,53,0.45);
}

.mn-hero__stamp-core span {
    font-size: 10px;
    line-height: 1;
    opacity: 0.9;
}

.mn-hero__stamp-core strong {
    font-size: 15px;
    letter-spacing: 0.08em;
    margin: 3px 0;
}

/* Стикер "Новое в меню" */
.mn-hero__sticker {
    position: absolute;
    top: 4%;
    right: 2%;
    background: var(--c-accent);
    color: var(--c-text);
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(247,201,72,0.5);
    font-family: var(--f-heading);
    text-align: center;
    z-index: 6;
    animation: mnBob 3s ease-in-out infinite;
}

.mn-hero__sticker::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-text);
}

.mn-hero__sticker span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.7;
}

.mn-hero__sticker strong {
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
}

@keyframes mnBob {
    0%, 100% { transform: rotate(8deg) translateY(0); }
    50%      { transform: rotate(8deg) translateY(-6px); }
}

/* ----- НИЖНИЙ РЯД: кнопки + статы ----- */
.mn-hero__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px 0 40px;
    border-top: 2px dashed var(--c-border);
    flex-wrap: wrap;
}

.mn-hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.mn-hero__stats {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mn-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mn-hero__stat strong {
    font-family: var(--f-heading);
    font-size: 24px;
    font-weight: 900;
    line-height: 1;
    color: var(--c-text);
    letter-spacing: -0.01em;
}

.mn-hero__stat span {
    font-size: 11px;
    color: var(--c-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.7;
}

.mn-hero__stat-sep {
    width: 1px;
    height: 36px;
    background: var(--c-border);
}

/* ----- БЕГУЩАЯ СТРОКА ----- */
.mn-hero__marquee {
    background: var(--c-text);
    color: #fff;
    padding: 16px 0;
    overflow: hidden;
    position: relative;
}

.mn-hero__marquee-track {
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
    animation: mnMarquee 42s linear infinite;
    width: max-content;
}

.mn-hero__marquee-track span {
    font-family: var(--f-heading);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.mn-hero__marquee-dot {
    color: var(--c-primary);
    font-size: 10px !important;
}

@keyframes mnMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .mn-dish--pos-1, .mn-dish--pos-2, .mn-dish--pos-3,
    .mn-hero__sticker, .mn-hero__stamp-svg, .mn-hero__badge-dot,
    .mn-hero__marquee-track {
        animation: none !important;
    }
}


/* ========================
   ПРИНЦИПЫ МЕНЮ
   ======================== */
.mn-principles {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.mn-principles__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.mn-principle {
    padding: 36px 32px;
    background: var(--c-bg-alt);
    border-radius: var(--r-xl);
    border: 1px solid var(--c-border);
    transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.mn-principle:hover {
    border-color: var(--c-border-hover);
    box-shadow: 0 8px 32px var(--c-primary-glow);
    transform: translateY(-4px);
}

.mn-principle__icon {
    width: 52px;
    height: 52px;
    border-radius: var(--r-md);
    background: rgba(255,107,53,0.08);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.mn-principle__icon svg {
    width: 28px;
    height: 28px;
}

.mn-principle h3 {
    font-family: var(--f-heading);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}

.mn-principle p {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.65;
}


/* ========================
   НАПИТКИ
   ======================== */
.mn-drinks {
    padding: var(--section-py) 0;
    background: var(--c-bg-alt);
}

.mn-drinks__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.mn-drink-card {
    background: var(--c-bg-card);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.mn-drink-card:hover {
    border-color: var(--c-border-hover);
    box-shadow: 0 8px 32px var(--c-primary-glow);
}

.mn-drink-card__top {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mn-drink-card__emoji {
    font-size: 36px;
    margin-bottom: 4px;
}

.mn-drink-card__title {
    font-family: var(--f-heading);
    font-size: 20px;
    font-weight: 900;
}

.mn-drink-card__desc {
    font-size: 13px;
    color: var(--c-text-secondary);
    line-height: 1.5;
}

.mn-drink-card__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.mn-drink-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--c-border);
}

.mn-drink-item:last-child {
    border-bottom: none;
}

.mn-drink-item__price {
    font-family: var(--f-heading);
    font-weight: 800;
    font-size: 14px;
    color: var(--c-primary);
    white-space: nowrap;
}


/* ========================
   ДИЕТИЧЕСКИЕ МЕТКИ
   ======================== */
.mn-dietary {
    padding: var(--section-py) 0;
    background: var(--c-bg);
}

.mn-dietary__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 56px;
}

.mn-dietary-card {
    border-radius: var(--r-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border: 2px solid transparent;
    position: relative;
}

.mn-dietary-card--green  { background: #F0FFF8; border-color: rgba(52,211,153,0.25); }
.mn-dietary-card--blue   { background: #EFF6FF; border-color: rgba(99,102,241,0.2); }
.mn-dietary-card--orange { background: #FFF8F4; border-color: rgba(255,107,53,0.2); }
.mn-dietary-card--yellow { background: #FFFBEB; border-color: rgba(247,201,72,0.3); }

.mn-dietary-card__icon {
    font-size: 36px;
}

.mn-dietary-card h3 {
    font-family: var(--f-heading);
    font-size: 19px;
    font-weight: 800;
}

.mn-dietary-card p {
    font-size: 14px;
    color: var(--c-text-secondary);
    line-height: 1.6;
    flex: 1;
}

.mn-dietary-card__badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: var(--r-full);
    font-size: 12px;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    width: fit-content;
}


/* ========================
   АКТИВНАЯ ССЫЛКА В НАВИГАЦИИ
   ======================== */
.nav__link--active {
    color: var(--c-primary);
    font-weight: 700;
}


/* ========================
   RESPONSIVE
   ======================== */
@media (max-width: 1100px) {
    .mn-principles__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mn-drinks__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mn-dietary__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 960px) {
    .mn-hero__main {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .mn-hero__collage {
        min-height: 440px;
        max-width: 480px;
        margin: 0 auto;
    }
    .mn-hero__bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }
}

@media (max-width: 600px) {
    .mn-principles__grid {
        grid-template-columns: 1fr;
    }

    .mn-drinks__grid {
        grid-template-columns: 1fr;
    }

    .mn-dietary__grid {
        grid-template-columns: 1fr;
    }

    .mn-hero__topbar {
        margin-bottom: 28px;
    }

    .mn-hero__topbar-right { display: none; }

    .mn-hero__collage {
        min-height: 380px;
    }

    .mn-hero__stamp {
        width: 108px;
        height: 108px;
        top: 40%;
        left: 36%;
    }

    .mn-hero__stamp-core {
        width: 56px;
        height: 56px;
    }

    .mn-hero__stamp-core strong { font-size: 12px; }
    .mn-hero__stamp-text { font-size: 11px; }

    .mn-hero__stats {
        gap: 16px;
        flex-wrap: wrap;
    }
    .mn-hero__stat strong { font-size: 20px; }
    .mn-hero__stat-sep { display: none; }

    .mn-hero__actions {
        flex-direction: column;
        width: 100%;
    }
    .mn-hero__actions .btn { width: 100%; }

    .mn-hero__marquee-track { gap: 22px; }
    .mn-hero__marquee-track span { font-size: 13px; }
}
