/* Кафе «Мята» — витрина на Laravel: палитра по фасаду кафе, корзина, страница меню, новости, оформление.
   Подключается после site.css и переопределяет его переменные. */

/* Палитра: графитовые стены (#273035) + тёплые деревянные рейки (#D9913A) + мятный неон вывески */
:root {
  --ink: #232B30;
  --ink-2: #2C3A45;
  --green-deep: #1B3B31;
  --wood: #D9913A;
  --wood-dark: #B8741F;
  --amber: #E9A94D;
  --line: rgba(35, 43, 48, .12);
  --shadow: 0 10px 30px rgba(35, 43, 48, .08);
}
.hero { background: radial-gradient(1000px 600px at 15% 30%, #3A4A55 0%, #232B30 60%), linear-gradient(160deg, #D9913A 0%, #232B30 45%); }
.hero__media::after { background: linear-gradient(90deg, rgba(35,43,48,.88) 0%, rgba(35,43,48,.66) 45%, rgba(35,43,48,.28) 100%), linear-gradient(0deg, rgba(35,43,48,.88) 0%, rgba(35,43,48,0) 40%); }
.mint-explode { background-image: radial-gradient(900px 600px at 50% 60%, rgba(67,211,154,.22), transparent 65%), radial-gradient(700px 400px at 90% 0%, rgba(217,145,58,.25), transparent 60%); }
.events { background-image: radial-gradient(800px 500px at 90% 10%, rgba(217,145,58,.35), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(67,211,154,.25), transparent 60%); }
.steps span { color: var(--wood); }
.card__icon { background: linear-gradient(135deg, #FBEBD3, #F5D9A8); }
.footer { background: #1A2126; }

/* Главная кнопка — дерево, как рейки на фасаде; мятная — для «живых» акцентов */
.btn--mint { background: var(--wood); color: #fff; box-shadow: 0 8px 24px rgba(217,145,58,.35); }
.btn--mint:hover { background: var(--wood-dark); }
.dock__main { background: var(--wood) !important; color: #fff !important; }

/* Шапка: кнопка корзины */
.header__cart { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; font-family: var(--font-body); }
.header__cart:hover { background: rgba(255,255,255,.18); }
.header__cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--mint-bright); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
.header__cart-count[data-zero="1"] { display: none; }
@media (max-width: 1024px) { .header__cta { display: flex; } .header__cta .btn { display: none; } }

/* Корзина-шторка */
.cart-overlay { position: fixed; inset: 0; background: rgba(35,43,48,.55); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .25s; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--cream); z-index: 91; transform: translateX(100%); transition: transform .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.25); }
body.cart-open .cart { transform: none; }
body.cart-open .cart-overlay { opacity: 1; pointer-events: auto; }
body.cart-open { overflow: hidden; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 20px; font-weight: 600; }
.cart__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.cart__body { flex: 1; overflow: auto; padding: 12px 22px; }
.cart__empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.cart__empty .btn { margin-top: 18px; }
.cart__line { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart__line-name { font-weight: 700; font-size: 15px; }
.cart__line-price { color: var(--muted); font-size: 13px; }
.cart__line-total { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--green); text-align: right; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 34px; height: 34px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); border-radius: 50%; }
.qty button:hover { background: var(--cream-2); }
.qty > span { min-width: 28px; text-align: center; font-weight: 700; font-size: 14px; }
.cart__line-remove { justify-self: end; background: none; border: 0; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; font-family: var(--font-body); }
.cart__foot { padding: 18px 22px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.cart__total { display: flex; justify-content: space-between; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.cart__hint { font-size: 12.5px; color: var(--muted); margin-bottom: 12px; }
.cart__foot .btn { width: 100%; }

/* Карточка блюда: кнопка и степпер */
.dish__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 8px; }
.dish__add { padding: 10px 18px; font-size: 14px; }
.dish .qty { display: none; }
.dish.in-cart .qty { display: inline-flex; }
.dish.in-cart .dish__add { display: none; }
.dish__img--empty { display: grid; place-items: center; color: rgba(255,255,255,.55); font-size: 40px; }

/* Шапка внутренних страниц и липкая навигация по разделам меню */
.page-head { background: var(--ink); color: #fff; padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.page-head .h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; max-width: 22ch; }
.page-head .lead { color: rgba(255,255,255,.75); }
.page-head .container { position: relative; z-index: 1; }
.page-head .leaf-deco { top: -10%; right: 4%; opacity: .8; }
.catnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(251,248,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.catnav__in { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.catnav__in::-webkit-scrollbar { display: none; }
.catnav a { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink); }
.catnav a.is-active, .catnav a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-cat { padding: clamp(36px, 5vw, 64px) 0 0; scroll-margin-top: calc(var(--header-h) + 64px); }
.menu-cat:last-child { padding-bottom: clamp(48px, 6vw, 90px); }
.menu-cat__head { margin-bottom: 22px; }
.menu-cat__head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
.menu-cat__head p { color: var(--muted); margin-top: 6px; }

/* Новости */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.news-card:hover { transform: translateY(-4px); border-color: var(--wood); }
.news-card__img { aspect-ratio: 3 / 2; background: linear-gradient(135deg, #2C3A45, #D9913A); }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; }
.news-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.news-card__date { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.news-card h3 { font-size: 18px; font-weight: 600; }
.news-card p { color: var(--muted); font-size: 14.5px; }
.article { max-width: 760px; margin: 0 auto; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin: 28px 0; }
.article__body { font-size: 17px; line-height: 1.7; }
.article__body p { margin: 0 0 1em; }
.article__body h2, .article__body h3 { margin: 1.4em 0 .6em; }
.article__back { display: inline-block; margin-bottom: 18px; color: var(--green); font-weight: 700; text-decoration: none; }
.pagination { display: flex; gap: 6px; list-style: none; }

/* Оформление заказа и «спасибо» */
.checkout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.checkout .form { box-shadow: var(--shadow); }
.radios { display: grid; gap: 8px; }
.radios label { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream); cursor: pointer; font-size: 15px; font-weight: 600; color: var(--text); }
.radios label:has(input:checked) { border-color: var(--wood); background: #fff; box-shadow: 0 0 0 4px rgba(217,145,58,.15); }
.radios input { width: auto; margin: 0; }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; position: sticky; top: calc(var(--header-h) + 20px); }
.summary h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.summary__line { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.summary__line b { color: var(--green); white-space: nowrap; }
.summary__total { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 20px; padding-top: 16px; }
.summary__note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.summary__note a { color: var(--green); font-weight: 700; }
.alert { padding: 14px 18px; border-radius: 12px; background: #FDECEC; color: #8A1F1F; font-weight: 600; margin-bottom: 16px; }
.alert--ok { background: #E4F8EF; color: #0F3D2E; }
.thanks { text-align: center; max-width: 640px; margin: 0 auto; }
.thanks__num { font-family: var(--font-display); font-size: clamp(32px, 5vw, 54px); font-weight: 700; color: var(--wood); margin: 12px 0; }
.thanks .btn { margin-top: 24px; }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form.is-sent .form__ok { display: block; }
.form.is-sent .form__fields { display: none; }
.form .form__fields { display: grid; gap: 14px; }

@media (max-width: 1024px) { .news-grid { grid-template-columns: repeat(2, 1fr); } .checkout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 720px) {
  .news-grid { grid-template-columns: 1fr; }
  .header__cart span:not(.header__cart-count) { display: none; }
  .header__cart { padding: 9px 11px; }
  .header__cta { display: flex; }
  .dock a { font-size: 12.5px; }
}
.cart__line .qty { justify-self: start; }

/* Логотип: настоящий лист из логотипа + словесный знак шрифтом, близким к оригиналу */
.logo { grid-template-columns: auto auto; column-gap: 12px; }
.logo__leaf { width: 34px; height: 44px; object-fit: contain; grid-row: 1 / 3; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.logo__word { font-family: 'Playfair Display', Georgia, 'Times New Roman', serif; font-weight: 700; font-size: 27px; letter-spacing: .01em; color: #fff; line-height: 1; }
.logo__sub { font-size: 10.5px; letter-spacing: .16em; color: rgba(255,255,255,.7); }
.footer__logo { width: 90px; height: auto; margin-bottom: 6px; }

/* 152-ФЗ: согласие и cookie */
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-size: 13px !important; font-weight: 500 !important; color: var(--muted) !important; line-height: 1.45; }
.consent input { width: 18px !important; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--wood); }
.consent a { color: var(--green); }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; margin: 0 auto; max-width: 720px; display: flex; gap: 16px; align-items: center; padding: 14px 18px; border-radius: 16px; background: rgba(35,43,48,.96); color: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.cookie p { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.85); }
.cookie a { color: var(--mint); }
.cookie .btn { flex: 0 0 auto; }
@media (max-width: 720px) { .cookie { flex-direction: column; align-items: stretch; bottom: 76px; } .cookie .btn { width: 100%; } }
.cookie[hidden] { display: none; }

/* Фильтр по составу */
.ingfilter { margin: clamp(28px, 4vw, 48px) 0 0; padding: 22px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ingfilter__head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ingfilter__head h2 { font-size: 20px; font-weight: 600; }
.ingfilter__head p { color: var(--muted); font-size: 14px; flex: 1 1 320px; }
.ingfilter__reset { background: none; border: 0; color: var(--green); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: underline; font-family: var(--font-body); padding: 0; }
.ingfilter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ingchip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--cream); color: var(--ink); font-weight: 600; font-size: 13.5px; cursor: pointer; font-family: var(--font-body); transition: background .15s, border-color .15s, color .15s; }
.ingchip:hover { border-color: var(--wood); }
.ingchip__count { font-size: 11px; color: var(--muted); font-weight: 700; }
.ingchip[data-state="include"] { background: var(--green); border-color: var(--green); color: #fff; }
.ingchip[data-state="include"]::before { content: "+ "; }
.ingchip[data-state="include"] .ingchip__count { color: rgba(255,255,255,.75); }
.ingchip[data-state="exclude"] { background: #FDECEC; border-color: #D9534F; color: #8A1F1F; text-decoration: line-through; }
.ingchip[data-state="exclude"]::before { content: "− "; }
.ingfilter__status { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--green); }
.dish__ingredients { font-size: 13px; color: var(--muted); }
.dish__ingredients span { font-weight: 700; color: var(--text); }
.menu-cat__empty { color: var(--muted); font-size: 14.5px; padding: 8px 0 4px; }
.menu-empty { text-align: center; padding: 40px 0 20px; color: var(--muted); font-size: 16px; }
.dish[hidden], .menu__grid[hidden] { display: none; }

/* Листики первого экрана: главный — вдвое меньше прежнего, плюс два поменьше */
.hero .leaf-deco { opacity: .9; }
.hero .hero__leaf--1 { width: clamp(70px, 11vw, 180px); right: 6%; top: 16%; }
.hero .hero__leaf--2 { width: clamp(56px, 8vw, 130px); right: 22%; bottom: 14%; top: auto; }
.hero .hero__leaf--3 { width: clamp(44px, 6vw, 96px); right: 30%; top: 9%; opacity: .75; }
@media (max-width: 720px) {
  .hero .hero__leaf--1 { width: 88px; right: -4%; top: 7%; opacity: .65; }
  .hero .hero__leaf--2 { width: 64px; right: 8%; bottom: 10%; top: auto; opacity: .55; }
  .hero .hero__leaf--3 { width: 46px; right: 34%; top: 5%; opacity: .5; }
}

/* Порция рядом с ценой */
.price { display: inline-flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.price__portion { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; }

/* Кнопка PDF-меню */
.pdf-btn { margin-top: 22px; gap: 10px; }
.pdf-btn small { font-weight: 500; font-size: 12px; opacity: .75; }
.menu__cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Подвал: ссылки на документы 152-ФЗ */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); }
.footer__legal a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--mint); }

/* Cookie-баннер: действия и настройки категорий */
.cookie { flex-direction: column; align-items: stretch; gap: 10px; max-width: 760px; }
.cookie__main { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie__main p { flex: 1 1 320px; }
.cookie__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cookie__link { background: none; border: 0; color: var(--mint); font: 600 13.5px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 4px; }
.cookie__settings { display: grid; gap: 10px; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.12); }
.cookie__settings[hidden], .cookie__main[hidden] { display: none; }
.cookie__opt { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.85); cursor: pointer; }
.cookie__opt input { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--wood); }
.cookie__opt b { color: #fff; }
@media (max-width: 720px) { .cookie__actions .btn { flex: 1 1 auto; } }

/* Подвал: разработчик */
.footer__dev { font-size: 12px; color: rgba(255,255,255,.4); }
.footer__dev a { color: rgba(255,255,255,.7); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); }
.footer__dev a:hover { color: var(--mint); border-color: var(--mint); }

/* Закреплённая секция с кустом всегда поверх соседних блоков (у их контейнеров z-index: 1) */
.mint-explode { z-index: 5; }

/* Фильтр по составу: на телефоне свёрнут в кнопку с иконкой фильтра (Елена, 15.09.2026) */
.ingfilter__toggle { display: none; width: 100%; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--ink); font-family: var(--font-body); font-weight: 700; font-size: 16px; cursor: pointer; text-align: left; }
.ingfilter__toggle > span { flex: 1 1 auto; }
.ingfilter__badge { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ingfilter__badge[hidden] { display: none; }   /* display:inline-flex перебивает hidden — та же ловушка, что у cookie-баннера */
.ingfilter__chevron { transition: transform .2s; }
.ingfilter.is-open .ingfilter__chevron { transform: rotate(180deg); }
@media (max-width: 720px) {
  .ingfilter { padding: 14px 16px; }
  .ingfilter__toggle { display: flex; }
  .ingfilter__body { display: none; padding-top: 14px; }
  .ingfilter.is-open .ingfilter__body { display: block; }
  .ingfilter__head h2 { display: none; }           /* заголовок уже в кнопке */
  .ingfilter__head { margin-bottom: 10px; }
  .ingfilter__status { margin-top: 10px; }
  /* Разделы меню: в несколько рядов вместо скрытой горизонтальной прокрутки; не липнут — иначе съедят пол-экрана */
  .catnav { position: static; }
  .catnav__in { flex-wrap: wrap; overflow: visible; gap: 6px; padding: 10px 0; }
  .catnav a { padding: 6px 11px; font-size: 13px; }
}
