/* Палитра с визиток */
:root {
  /* Сайт только в светлой теме: запрещаем браузеру телефона самому «затемнять» страницу (кнопки и плитки портились) */
  color-scheme: light only;
  --cream: #FDF4E5;
  --cream-2: #F6E8D2;
  --paper: #FFFBF4;
  --ink: #2A1A12;
  --ink-2: #6B5446;
  --terra: #B05A28;
  --terra-dark: #8F4519;
  --choc: #2D1D1E;
  --choc-2: #3A2729;
  --gold: #E0C080;
  --gold-2: #C8AA61;
  --line: #E8D6BC;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(42, 26, 18, .06), 0 6px 20px rgba(42, 26, 18, .07);
  --serif: 'Kurale', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.5 var(--sans);
  color: var(--ink);
  background: var(--cream);
  padding-bottom: var(--bar-h);
}
img { max-width: 100%; display: block; }
a { color: var(--terra); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--terra); color: #fff; }
.btn--primary:hover { background: var(--terra-dark); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--ghost-dark { border-color: var(--line); background: var(--paper); color: var(--ink); }
.btn--ghost-dark:hover { border-color: var(--ink-2); }
.btn--gold { background: linear-gradient(180deg, #F0D99A, var(--gold) 45%, var(--gold-2)); color: var(--choc); }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cream-2); cursor: pointer; font-size: 18px; }
.link-btn { background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; padding: 8px; }

/* ---------- Шапка ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--choc); color: var(--gold); }
.topbar__in { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gold); min-width: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; flex: none; }
.brand__logo img { width: 32px; height: 32px; }
.brand__name { font-family: var(--serif); font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__nav { display: none; margin-left: auto; gap: 24px; }
.topbar__nav a { color: var(--cream); text-decoration: none; opacity: .85; }
.topbar__nav a:hover { opacity: 1; color: var(--gold); }
.cart-btn {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--gold-2); background: transparent; color: var(--gold);
  cursor: pointer; font-weight: 700; flex: none;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn__count { background: var(--gold); color: var(--choc); border-radius: 999px; min-width: 22px; height: 22px; padding: 0 6px; font-size: 13px; display: grid; place-items: center; }
@media (min-width: 860px) {
  .topbar__nav { display: flex; }
  .cart-btn { margin-left: 24px; }
}
@media (max-width: 380px) { .brand__name { font-size: 17px; } .cart-btn__sum { display: none; } }

/* ---------- Первый экран (лицо визитки) ---------- */
.hero { background: var(--cream); border-bottom: 1px solid var(--line); }
.hero__in { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 32px; }
.hero__text { display: grid; justify-items: start; }
.hero__stamp { width: 96px; height: auto; margin-bottom: 12px; }
.hero__title { font-size: clamp(44px, 12vw, 76px); letter-spacing: -.01em; color: var(--ink); }
.hero__slogan { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: clamp(24px, 6vw, 34px); margin: 6px 0 14px; }
.hero__lead { font-size: 17px; color: var(--ink-2); max-width: 34em; margin: 0 0 22px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__sign { display: none; }

/* Золотая табличка (оборот визитки) */
.plaque {
  list-style: none; margin: 0; padding: 22px 22px 22px 20px;
  background: radial-gradient(120% 140% at 20% 0%, #3d292b, var(--choc) 60%);
  border-radius: var(--radius);
  color: var(--gold); font-family: var(--serif); font-size: 20px; line-height: 1.3;
  display: grid; gap: 14px; align-self: center;
  box-shadow: inset 0 0 0 1px rgba(224, 192, 128, .35), inset 0 0 0 6px var(--choc), inset 0 0 0 7px rgba(224, 192, 128, .5), var(--shadow);
  padding: 26px;
}
.plaque li { position: relative; padding-left: 22px; }
.plaque li::before { content: ''; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }

@media (min-width: 860px) {
  .hero__in { grid-template-columns: 1.25fr 1fr; align-items: center; padding-top: 56px; padding-bottom: 60px; gap: 48px; }
  .hero__text { grid-template-columns: auto 1fr; column-gap: 28px; }
  .hero__stamp { grid-row: span 2; width: 150px; margin: 0; }
  .hero__lead, .hero__actions { grid-column: 1 / -1; }
  .hero__lead { margin-top: 18px; }
  .plaque { font-size: 23px; padding: 34px; }
}

/* ---------- Навигация по разделам ---------- */
.cats { position: sticky; top: 60px; z-index: 20; background: rgba(253, 244, 229, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.cats__in { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cats__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper); color: var(--ink);
  text-decoration: none; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }

/* ---------- Меню ---------- */
.menu { padding-top: 24px; padding-bottom: 40px; }
.section-title { font-size: clamp(30px, 7vw, 42px); margin: 28px 0 16px; color: var(--ink); }
.section-title::after { content: ''; display: block; width: 56px; height: 3px; background: var(--terra); border-radius: 3px; margin-top: 10px; }
.section-title--light { color: var(--gold); }
.section-title--light::after { background: var(--gold-2); }
.cat-block:first-child .section-title { margin-top: 0; }

.groups { display: grid; gap: 16px; }
@media (min-width: 720px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1060px) { .groups { grid-template-columns: 1fr 1fr 1fr; } }

.group { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; scroll-margin-top: 120px; }
.group__img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; background: var(--cream-2); }
.group__body { padding: 16px 16px 8px; }
.group__title { font-size: 26px; }
.group__meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.group__note { font-size: 14px; color: var(--ink-2); background: var(--cream); border-radius: 10px; padding: 8px 10px; margin: 10px 0 0; }

.items { list-style: none; margin: 0; padding: 4px 16px 12px; }
.item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); min-height: 60px; }
.item:first-child { border-top: 0; }
.item__text { flex: 1; min-width: 0; }
.item__name { font-weight: 600; line-height: 1.3; }
.item__desc { font-size: 13px; color: var(--ink-2); }
.item__price { font-weight: 800; white-space: nowrap; }
.item__price small { font-weight: 600; color: var(--ink-2); font-size: 13px; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; background: #F3E2C6; color: var(--terra-dark); margin-left: 4px; vertical-align: 2px; }

.add {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--terra); background: var(--paper); color: var(--terra);
  font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.add:hover { background: var(--terra); color: #fff; }
.stepper { flex: none; display: flex; align-items: center; background: var(--terra); color: #fff; border-radius: 999px; height: 44px; }
.stepper button { width: 40px; height: 44px; border: 0; background: none; color: inherit; font-size: 22px; cursor: pointer; border-radius: 999px; }
.stepper output { min-width: 42px; text-align: center; font-weight: 800; font-size: 14px; white-space: nowrap; }

/* ---------- Доставка (оборот визитки) ---------- */
.info { background: var(--choc); color: var(--cream); padding: 40px 0 48px; }
.info .section-title { margin-top: 0; }
.info__grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .info__grid { grid-template-columns: repeat(4, 1fr); } }
.info__card { border: 1px solid rgba(224, 192, 128, .35); border-radius: var(--radius); padding: 18px; background: var(--choc-2); }
.info__card h3 { color: var(--gold); font-size: 21px; margin-bottom: 6px; }
.info__card p { margin: 0; opacity: .9; }
.info__how { margin: 22px 0 0; color: var(--gold); font-family: var(--serif); font-size: 19px; }

/* ---------- Подвал ---------- */
.footer { background: #1F1415; color: rgba(253, 244, 229, .8); padding: 32px 0 40px; font-size: 15px; }
.footer a { color: var(--gold); }
.footer__in { display: grid; gap: 18px; }
.footer__in p { margin: 4px 0; }
.footer__brand { font-family: var(--serif); color: var(--gold); font-size: 24px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 10px; }
.footer__social a { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(224, 192, 128, .45); text-decoration: none; }
.footer__legal { font-size: 13px; opacity: .75; }
.footer__studio { font-size: 12px; opacity: .55; margin: 0; letter-spacing: .02em; }
.footer__studio b { color: var(--gold); font-weight: 700; letter-spacing: .08em; }
@media (min-width: 860px) { .footer__in { grid-template-columns: 1fr auto; align-items: start; } .footer__legal, .footer__studio { grid-column: 1 / -1; } }

/* ---------- Плашка корзины ---------- */
.cartbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25;
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px;
  background: var(--choc); color: var(--cream); border-radius: 18px; padding: 10px 10px 10px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(224, 192, 128, .4);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.cartbar__info { flex: 1; min-width: 0; display: grid; }
.cartbar__total { font-weight: 800; font-size: 18px; color: var(--gold); }
.cartbar__hint { font-size: 12.5px; line-height: 1.25; opacity: .85; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cartbar__bar { position: relative; height: 5px; margin-top: 6px; border-radius: 999px; background: rgba(224, 192, 128, .22); }
.cartbar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .35s ease; }
.cartbar__tick { position: absolute; top: 50%; width: 11px; height: 11px; margin-left: -5px; transform: translateY(-50%); border-radius: 50%; background: var(--choc); box-shadow: 0 0 0 2px rgba(224, 192, 128, .6); transition: background .2s; }
.cartbar__tick.is-done { background: var(--gold); box-shadow: 0 0 0 2px var(--choc); }
.cartbar__tick--end { left: 100%; margin-left: -6px; }
.cartbar__hint { transition: opacity .2s; }
.cartbar__hint.is-fading { opacity: 0; }
.cartbar.is-gift .cartbar__fill { background: linear-gradient(90deg, var(--gold), #F6DC9C); }
@media (prefers-reduced-motion: reduce) { .cartbar__fill, .cartbar__tick { transition: none; } }

/* ---------- Корзина ---------- */
.sheet {
  border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%;
  max-height: 92dvh; border-radius: 22px 22px 0 0; background: var(--cream); color: var(--ink);
  display: none; flex-direction: column;
}
.sheet[open] { display: flex; }
.sheet::backdrop { background: rgba(31, 20, 21, .6); }
@media (min-width: 720px) {
  .sheet { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: 460px; border-radius: 0; }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sheet__head h2 { font-size: 26px; }
.sheet__body { overflow-y: auto; padding: 8px 16px 16px; flex: 1; overscroll-behavior: contain; }
.sheet__foot { padding: 12px 16px max(14px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; }
.sheet__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet__alt .btn { padding: 0 10px; }
.sheet__note { margin: 0; font-size: 13px; color: var(--ink-2); text-align: center; }

.empty { text-align: center; padding: 40px 0; color: var(--ink-2); }

.lines { list-style: none; margin: 0; padding: 0; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line__name { font-weight: 600; line-height: 1.3; }
.line__group { font-size: 13px; color: var(--ink-2); }
.line__sum { font-weight: 800; text-align: right; }
.line .stepper { justify-self: start; height: 38px; }
.line .stepper button { height: 38px; width: 36px; }
.line__remove { justify-self: end; background: none; border: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 6px 0; }

.warn { background: #FBE3D3; color: #7A3410; border-radius: 10px; padding: 10px 12px; margin-top: 12px; font-size: 14px; }

.form { display: grid; gap: 12px; margin-top: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: grid; gap: 4px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select {
  height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper);
  font-size: 16px; font-weight: 400; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { border-color: var(--terra); outline: none; }
.field.is-error input { border-color: #C0392B; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--terra); flex: none; }
.check--consent { font-size: 13px; color: var(--ink-2); }
.check.is-error { color: #C0392B; }

.totals { margin: 18px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; text-align: right; font-weight: 700; }
.totals .gift { color: var(--terra-dark); }
.totals .grand { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 400; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Подсказка MAX ---------- */
.modal { border: 0; border-radius: 20px; padding: 22px; max-width: 420px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
.modal::backdrop { background: rgba(31, 20, 21, .6); }
.modal h2 { font-size: 26px; margin-bottom: 8px; }
.modal p { margin: 0 0 12px; }
.modal__text { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; background: var(--cream); resize: none; }
.modal__actions { display: grid; gap: 8px; margin-top: 12px; }
.modal form { text-align: center; margin-top: 6px; }

/* ---------- Уведомление ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 60;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px; font-size: 15px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Акции: шкала подарков ---------- */
.promos { background: var(--cream-2); border-bottom: 1px solid var(--line); padding: 20px 0 22px; }
.promos__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 12px; }
.promos__title { font-size: 26px; }
.promos__sub { margin: 0; color: var(--ink-2); font-size: 14px; }
.progress { display: grid; gap: 10px; }
@media (min-width: 860px) { .promos .progress { grid-template-columns: 1fr 1fr 1fr; } }
.goal { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.goal__top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.goal__left { color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.goal__bar { height: 8px; border-radius: 8px; background: var(--cream-2); margin-top: 8px; overflow: hidden; }
.goal__fill { height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, var(--gold-2), var(--terra)); transition: width .35s ease; }
.goal.is-done { border-color: var(--gold-2); background: #FFF6E2; }
.goal.is-done .goal__left { color: var(--terra-dark); }
.goal--note .goal__top { font-weight: 600; }
.progress--cart { margin-top: 18px; }
.progress--cart .goal { padding: 10px 12px; }
.progress--cart .goal--note { display: none; }

/* ---------- Фильтры меню ---------- */
.cats__sep { flex: none; width: 1px; background: var(--line); margin: 4px 2px; }
.chip--filter { border-color: var(--gold-2); background: #FFF6E2; cursor: pointer; }
.chip--filter.is-on { background: var(--terra); border-color: var(--terra); color: #fff; }
.chip--all.is-on { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter-note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #FFF6E2; border: 1px solid var(--gold-2); border-radius: 12px; padding: 10px 14px; margin-bottom: 16px; }
.filter-note button { background: none; border: 0; color: var(--terra); text-decoration: underline; cursor: pointer; font-weight: 700; padding: 4px 0; }

.group__about { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink); }

/* ---------- Обо мне ---------- */
.about { background: var(--paper); border-top: 1px solid var(--line); padding: 44px 0 48px; }
.about__in { display: grid; gap: 28px; align-items: center; }
.about__photo { width: min(260px, 70%); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--cream); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold-2); display: grid; place-items: center; justify-self: center; }
.about__photo img { width: 62%; height: 62%; object-fit: contain; }
.about__photo img.is-photo { width: 100%; height: 100%; object-fit: cover; }
.about__kicker { margin: 0; color: var(--terra); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.about__title { font-size: clamp(32px, 7vw, 44px); margin: 4px 0 2px; }
.about__role { font-family: var(--serif); font-style: italic; color: var(--terra); font-size: 21px; margin: 0 0 16px; }
.about__text > p { max-width: 36em; }
.about__sign { font-family: var(--serif); font-size: 24px; color: var(--ink); margin: 18px 0 0; }
.about__services { margin-top: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.about__services h3 { font-size: 22px; margin-bottom: 8px; }
.about__services ul { margin: 0 0 14px; padding-left: 20px; }
.about__services li { margin: 4px 0; }
@media (min-width: 860px) { .about__in { grid-template-columns: 320px 1fr; gap: 56px; } .about__photo { width: 320px; } }

.tag--veg { background: #E6EDD8; color: #4A5D23; }

/* ---------- Карусель фото в карточке ---------- */
.carousel { position: relative; background: var(--cream-2); }
.carousel__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; }
.carousel__slide img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.carousel__slide figcaption { position: absolute; left: 12px; bottom: 30px; background: rgba(45, 29, 30, .82); color: var(--gold); font-weight: 700; font-size: 14px; padding: 4px 10px; border-radius: 999px; }
.carousel__btn { position: absolute; top: 50%; transform: translateY(-60%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 251, 244, .9); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; display: none; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.carousel__btn--prev { left: 10px; } .carousel__btn--next { right: 10px; }
@media (hover: hover) { .carousel__btn { display: grid; place-items: center; } }
.carousel__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.carousel__dots button { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.carousel__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 251, 244, .6); box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.carousel__dots button.is-on::before { background: #fff; width: 10px; height: 10px; }

.sheet__or { margin: 0; text-align: center; font-size: 13px; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* На компьютере все кнопки разделов и фильтров видны сразу, без прокрутки */
@media (min-width: 860px) {
  .cats__in { flex-wrap: wrap; overflow-x: visible; gap: 6px; }
  .chip { padding: 0 13px; font-size: 14px; }
}
/* На телефоне — мягкое затухание справа, чтобы было видно, что строку можно листать */
@media (max-width: 859px) {
  /* Затухание только у ленты кнопок, а не у всей панели: иначе фон панели справа становится прозрачным и сквозь него видно меню */
  .cats__in { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  /* Запас в конце ленты, чтобы последнюю кнопку можно было докрутить из зоны затухания */
  .cats__in::after { content: ''; flex: 0 0 48px; }
}

/* ---------- Заметные ошибки формы ---------- */
.form-alert { background: #C0392B; color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 15px; line-height: 1.35; }
.form-alert::before { content: '⚠ '; }
.field.is-error input { border-color: #C0392B; border-width: 2px; background: #FFF4F2; }
.field.is-error > span { color: #C0392B; }
.check.is-error { color: #C0392B; background: #FFF4F2; outline: 2px solid #C0392B; outline-offset: 4px; border-radius: 8px; }
.check.is-error input { outline: 2px solid #C0392B; }
.shake { animation: shake .45s; }
@keyframes shake { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

/* ---------- Карусель-подборки вверху (в рамке «оборота визитки») ---------- */
.promo {
  position: relative; min-width: 0; overflow: hidden;
  background: var(--choc); border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(224, 192, 128, .35), var(--shadow);
}
.promo__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.promo__track::-webkit-scrollbar { display: none; }
.promo__slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; flex-direction: column; }
.promo__slide img { width: 100%; height: auto; flex: none; aspect-ratio: 4 / 3; object-fit: cover; background: var(--choc-2); }
.promo__text {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 18px 20px 46px; color: var(--cream);
  background: radial-gradient(120% 140% at 20% 0%, #3d292b, var(--choc) 60%);
  box-shadow: inset 0 1px 0 rgba(224, 192, 128, .45);
}
.promo__kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.promo__title { font-size: clamp(24px, 6.4vw, 30px); color: var(--gold); }
.promo__lead { margin: 0 0 8px; font-size: 15px; line-height: 1.45; color: #EBDCC6; }
.promo__text .btn { margin-top: auto; min-height: 44px; font-size: 15px; }
/* Стрелки по центру фото: слой той же пропорции 4:3 поверх картинки */
.promo__nav { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.promo__btn {
  pointer-events: auto;
  width: 38px; height: 38px; border-radius: 50%; border: 0; display: none;
  background: rgba(255, 251, 244, .92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
@media (hover: hover) { .promo__btn { display: grid; place-items: center; } }
.promo__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 2px; }
.promo__dots button { width: 28px; height: 28px; border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; }
.promo__dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: rgba(224, 192, 128, .45); transition: width .2s; }
.promo__dots button.is-on::before { width: 22px; border-radius: 999px; background: var(--gold); }
@media (min-width: 860px) {
  .promo__text { padding: 22px 26px 48px; }
  .promo__title { font-size: 30px; }
  .promo__slide img, .promo__nav { aspect-ratio: 3 / 2; }
}

/* ---------- Состав: раскрывается по нажатию (на телефоне правого клика нет, поэтому кнопка) ---------- */
.sostav { margin-top: 8px; }
.sostav summary {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; list-style: none;
  font-size: 13px; font-weight: 700; color: var(--terra); padding: 4px 10px; border-radius: 999px;
  background: #FFF6E2; border: 1px solid var(--line); user-select: none;
}
.sostav summary::-webkit-details-marker { display: none; }
.sostav summary::after { content: '▾'; font-size: 11px; transition: transform .15s; }
.sostav[open] summary::after { transform: rotate(180deg); }
.sostav p { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.sostav--item { margin-top: 4px; }
.sostav--item summary { padding: 2px 8px; font-size: 12px; }
.sostav--item p { font-size: 13px; }

/* ---------- Подсказка «вставьте заказ в MAX» ---------- */
.modal__lead { color: var(--ink-2); }
.steps { margin: 0 0 4px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; }
.steps li { counter-increment: st; position: relative; padding-left: 40px; line-height: 1.4; min-height: 28px; }
.steps li::before { content: counter(st); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; border-radius: 50%; background: var(--terra); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.modal__more { margin-top: 10px; font-size: 14px; }
.modal__more summary { cursor: pointer; color: var(--ink-2); }
.modal__more .modal__text { margin-top: 8px; }
.modal__alt { font-size: 14px; color: var(--ink-2); margin-top: 10px !important; text-align: center; }
.modal__alt .link-btn { font-size: inherit; padding: 0; }
