:root {
  --brown: #381a00;
  --brown-2: #4d2807;
  --honey: #f9a012;
  --honey-dark: #a86400;
  --cream: #fbf5e8;
  --paper: #fffdf8;
  --text: #2c1807;
  --muted: #7b6650;
  --line: #e9dcc2;
  --radius: 14px;
  --font-head: 'Bitter', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); scrollbar-gutter: stable; }
/* Минимальная ширина: при увеличении масштаба вёрстка не перестраивается, а прокручивается. */
html[data-device="desktop"] { min-width: 1180px; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--honey); outline-offset: 2px; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; }
h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: 20px; font-weight: 700; }
p { margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  background: transparent; border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn--honey { background: var(--honey); color: var(--brown); }
.btn--honey:hover { background: #ffb338; }
.btn--dark { background: var(--brown); color: #fff; }
.btn--dark:hover { background: var(--brown-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { border-color: var(--honey); color: var(--honey); }
.btn--ghost-dark { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn--ghost-dark:hover { background: var(--brown); color: #fff; }
.btn--small { min-height: 42px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }

.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.link:hover { color: var(--text); }
.link--center { display: block; text-align: center; margin-top: 12px; }

/* ---------- шапка ---------- */

.header { position: sticky; top: 0; z-index: 50; background: var(--brown); color: #fff; height: var(--header-h); }
.header__in { display: flex; align-items: center; gap: 28px; height: 100%; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { border-radius: 8px; }
.brand span { font-family: var(--font-head); font-weight: 700; font-size: 21px; white-space: nowrap; }

.nav { display: flex; gap: 28px; margin-right: auto; }
.nav a { white-space: nowrap; text-decoration: none; font-weight: 600; font-size: 15px; color: #f1e4cc; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--honey); border-bottom-color: var(--honey); }

.header__tools { display: flex; align-items: center; gap: 6px; }

.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: #fff; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.badge {
  position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--honey); color: var(--brown); font-size: 12px; font-weight: 800; line-height: 1;
}
.burger { display: none; }

/* ---------- первый экран ---------- */

.hero { background: var(--brown); color: #fff; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding-top: 64px; padding-bottom: 72px; }
.eyebrow { color: var(--honey); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow--dark { color: var(--honey-dark); }
.hero h1 { font-size: 58px; font-weight: 800; letter-spacing: -0.015em; }
.hero__lead { margin-top: 22px; max-width: 520px; font-size: 18px; color: #f1e4cc; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; }

.hero__art { position: relative; height: 480px; }
.hex { position: absolute; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.hex--back { width: 400px; height: 462px; right: 0; top: 18px; background: var(--honey); }
.hex--photo { width: 400px; height: 462px; right: 56px; top: 0; background: var(--brown-2); }
.hex--photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- секции ---------- */

.section { padding: 88px 0; }
.section--tint { background: var(--cream); }
.section__head { margin-bottom: 36px; }
.section__sub { margin-top: 10px; color: var(--muted); font-size: 17px; }

/* ---------- каталог ---------- */

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.chips { display: flex; gap: 10px; }
.chip { height: 42px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; }
.chip:hover { border-color: var(--honey); }
.chip.is-on { background: var(--brown); border-color: var(--brown); color: #fff; }

.sort { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }
.sort select { height: 42px; padding: 0 36px 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 10px 28px rgba(56, 26, 0, .12); transform: translateY(-2px); }
.card__img { position: relative; aspect-ratio: 1 / .9; background: var(--cream); }
.card__img a { display: block; height: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__fav { position: absolute; top: 12px; right: 12px; }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--honey-dark); }
.card__short { margin-top: 8px; color: var(--muted); font-size: 15px; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }

.price { font-family: var(--font-head); font-weight: 800; font-size: 24px; white-space: nowrap; }
.price small { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--muted); }
.price--big { font-size: 32px; }

.fav { width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--brown); }
.fav svg { fill: none; }
.fav:hover { color: var(--honey-dark); }
.fav.is-on { color: var(--honey-dark); }
.fav.is-on svg { fill: currentColor; }
.fav--outline { background: transparent; border: 1.5px solid var(--line); width: 52px; height: 52px; }

/* ---------- доставка ---------- */

.delivery { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.steps li { display: flex; gap: 20px; }
.steps__n {
  flex: none; width: 52px; height: 60px; display: grid; place-items: center;
  background: var(--honey); color: var(--brown); font-family: var(--font-head); font-weight: 800; font-size: 22px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); max-width: 520px; }

.pickup { background: var(--brown); color: #fff; border-radius: var(--radius); padding: 32px; }
.pickup h3 { color: var(--honey); }
.pickup__addr { font-family: var(--font-head); font-size: 26px; font-weight: 700; margin: 12px 0 10px; }
.pickup p:not(.pickup__addr) { color: #e5d4b7; margin-bottom: 24px; }

/* ---------- подарочные банки ---------- */

.gift { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.gift__photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; }
.gift__photo img { width: 100%; height: 100%; object-fit: cover; }
.gift__text h2 { font-size: 36px; }
.gift__text p:not(.eyebrow) { margin: 18px 0 28px; color: var(--muted); font-size: 17px; max-width: 480px; }

/* ---------- о пасеке ---------- */

.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 72px; align-items: start; }
.about__text h2 { margin-bottom: 24px; }
.about__text p { font-size: 17px; max-width: 600px; }
.about__text p + p { margin-top: 16px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.facts strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--honey-dark); line-height: 1.1; }
.facts span { color: var(--muted); }

/* ---------- вопросы ---------- */

.faq { max-width: 900px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item summary { position: relative; padding: 22px 48px 22px 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-weight: 500; font-size: 30px; color: var(--honey-dark); }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 48px 24px 0; color: var(--muted); font-size: 17px; }

/* ---------- контакты ---------- */

.contacts { background: var(--brown); color: #fff; padding: 72px 0; }
.contacts__in { display: flex; justify-content: space-between; align-items: center; gap: 48px; }
.contacts h2 { margin-bottom: 24px; }
.contacts__list { margin: 0; display: grid; gap: 14px; }
.contacts__list dt { color: var(--honey); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.contacts__list dd { margin: 2px 0 0; font-size: 20px; font-weight: 600; }
.contacts__list a { text-decoration: none; }
.contacts__list a:hover { color: var(--honey); }
.contacts__links { display: flex; flex-direction: column; gap: 12px; min-width: 280px; }

.footer { background: #2a1300; color: #b9a583; font-size: 14px; }
.footer__in { display: flex; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }

/* ---------- окна ---------- */

.overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 32px; background: rgba(32, 14, 0, .6); }
.overlay--side { place-items: stretch end; padding: 0; grid-template-rows: minmax(0, 1fr); }
/* Окна не сжимаются под размер окна браузера: при увеличении масштаба они прокручиваются. */
html[data-device="desktop"] .overlay:not(.overlay--side) { overflow: auto; place-items: safe center; }
html[data-device="desktop"] .modal { width: 920px; max-width: none; max-height: none; overflow: visible; }
html[data-device="desktop"] .drawer { width: 460px; max-width: none; }
.modal, .lines, .checkout, .done { overscroll-behavior: contain; }

.modal { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 920px; max-width: 100%; max-height: 100%; overflow: auto; background: var(--paper); border-radius: 18px; }
.modal__close, .drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--text); }
.modal__close { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(255, 253, 248, .9); }
.modal__close:hover, .drawer__close:hover { background: var(--cream); }
.modal__img { background: var(--cream); }
.modal__img img { width: 100%; height: 100%; object-fit: cover; }
.modal__info { padding: 44px 40px 36px; display: flex; flex-direction: column; }
.modal__info h2 { font-size: 30px; padding-right: 28px; }
.modal__desc { margin-top: 14px; color: var(--muted); }
.modal__facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.modal__facts li { padding-left: 22px; position: relative; }
.modal__facts li::before { content: ''; position: absolute; left: 0; top: .45em; width: 10px; height: 11px; background: var(--honey); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.modal__buy { margin-top: auto; padding-top: 28px; }
.modal__label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.seg { display: flex; gap: 8px; }
.seg__btn { flex: 1; height: 46px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 700; }
.seg__btn:hover { border-color: var(--honey); }
.seg__btn.is-on { background: var(--brown); border-color: var(--brown); color: #fff; }
.modal__row { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.modal__row .btn { flex: 1; }
.modal__note { margin-top: 8px; font-size: 14px; color: var(--muted); }

.drawer { display: flex; flex-direction: column; width: 460px; max-width: 100%; height: 100%; background: var(--paper); box-shadow: -10px 0 40px rgba(0, 0, 0, .25); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 26px; }
.drawer__empty { padding: 48px 28px; display: grid; gap: 20px; justify-items: start; color: var(--muted); font-size: 17px; }

.lines { list-style: none; margin: 0; padding: 8px 28px; overflow-y: auto; flex: 1; min-height: 0; }
.line { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; }
.line__main { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.line__name { font-weight: 700; text-decoration: none; line-height: 1.3; }
.line__name:hover { color: var(--honey-dark); }
.line__w { font-size: 14px; color: var(--muted); }
.line__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; white-space: nowrap; }

.qty { display: inline-flex; align-items: center; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 20px; line-height: 1; border-radius: 50%; }
.qty button:hover { background: var(--cream); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }

.drawer__foot { padding: 20px 28px 24px; border-top: 1px solid var(--line); background: #fff; }
.drawer__foot--flat { border-top: 0; background: none; padding: 8px 0 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.total span { color: var(--muted); font-weight: 600; }
.total strong { font-family: var(--font-head); font-size: 28px; font-weight: 800; }
.drawer__note { font-size: 13px; color: var(--muted); margin-bottom: 16px; }

.checkout { flex: 1; min-height: 0; padding: 20px 28px 28px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.field { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 500; font-size: 16px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--honey); box-shadow: 0 0 0 3px rgba(249, 160, 18, .25); }
.field.has-error input { border-color: #b3261e; }
.field em { font-style: normal; font-weight: 600; color: #b3261e; }

.method { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.method legend { font-weight: 600; font-size: 14px; margin-bottom: 8px; padding: 0; }
.method label { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 700; }
.method label:has(input:checked) { border-color: var(--honey); background: #fff9ec; }
.method input { margin-top: 4px; accent-color: var(--brown); }
.method small { display: block; font-weight: 500; color: var(--muted); }

.done { flex: 1; min-height: 0; padding: 28px; display: grid; gap: 14px; align-content: start; overflow-y: auto; }
.done p { color: var(--muted); }
.done__text { margin: 6px 0; padding: 16px; max-height: 240px; overflow: auto; white-space: pre-wrap; background: var(--cream); border-radius: 10px; font: 14px/1.5 var(--font-body); color: var(--text); user-select: all; }
.done__actions { display: grid; gap: 10px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200;
  display: flex; align-items: center; gap: 18px; padding: 14px 20px;
  background: var(--brown); color: #fff; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  font-weight: 600; max-width: 560px;
}
.toast.is-off { opacity: 0; pointer-events: none; }
/* пока открыто окно, уведомление уходит наверх и не закрывает кнопки внизу */
.overlay:not([hidden]) ~ .toast { top: 16px; bottom: auto; }
.toast button { background: none; border: 0; padding: 0; color: var(--honey); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ---------- аккаунт ---------- */

.btn[disabled] { opacity: .6; cursor: default; }
.auth-slot { display: flex; align-items: center; gap: 8px; margin-left: 8px; }
.nav__auth { display: none; }
.nav__id { color: #e5d4b7; font-size: 14px; word-break: break-all; }

.account { position: relative; }
.account__btn { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px 0 6px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-weight: 600; }
.account__btn:hover { background: rgba(255, 255, 255, .1); }
.account__ava { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--honey); color: var(--brown); font-weight: 800; }
.account__name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.account__menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 8px; background: var(--paper); color: var(--text); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(32, 14, 0, .25); }
.account__id { padding: 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; word-break: break-all; }
.account__item { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 600; text-decoration: none; }
.account__item:hover { background: var(--cream); }

.dialog { width: 440px; max-width: 100%; max-height: 100%; overflow: auto; padding: 24px 28px 28px; background: var(--paper); border-radius: 18px; overscroll-behavior: contain; }
.dialog__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dialog__head h2 { font-size: 28px; }
.dialog .seg { margin-bottom: 16px; }
.dialog__msg { margin-bottom: 16px; padding: 12px 14px; background: #fff4dc; border-radius: 10px; font-size: 15px; }
.dialog__form { display: grid; gap: 16px; }
.field__hint { font-weight: 500; color: var(--muted); font-size: 13px; }
.pw { position: relative; display: block; }
.field .pw input { padding-right: 96px; }
.pw__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-weight: 700; font-size: 14px; }
.pw__toggle:hover { color: var(--text); }
.form-error { color: #b3261e; font-weight: 600; font-size: 14px; }

.empty { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 32px 36px 64px; text-align: center; }
.empty__icon { margin-bottom: 10px; animation: bob 4s ease-in-out infinite; }
.empty h3 { font-size: 24px; }
.empty p { max-width: 280px; margin-bottom: 14px; color: var(--muted); }
@keyframes bob { 50% { transform: translateY(-6px); } }

.grid__note { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: var(--muted); font-size: 17px; }
.modal__cat { margin-bottom: 8px; color: var(--honey-dark); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- сортировка, плашки, настройки ---------- */

.sort { position: relative; }
.sort__label { color: var(--muted); font-size: 14px; }
.sort__btn { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 190px; height: 42px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; }
.sort__btn:hover, .sort__btn[aria-expanded="true"] { border-color: var(--honey); }
.sort__btn svg { flex: none; color: var(--muted); transition: transform .2s var(--ease); }
.sort__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sort__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 100%; padding: 6px; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(32, 14, 0, .18); animation: pop-in .2s var(--ease) both; }
.sort__list button { padding: 10px 14px; border: 0; border-radius: 10px; background: none; text-align: left; font-weight: 600; white-space: nowrap; }
.sort__list button:hover, .sort__list button:focus-visible { background: var(--cream); }
.sort__list button[aria-selected="true"] { background: #fff4dc; color: var(--brown); }

.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: 999px; background: var(--honey); color: var(--brown); font-weight: 700; text-decoration: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); transition: background .18s, transform .18s var(--ease); }
.wa-float:hover { background: #ffb338; transform: translateY(-2px); }

.banner { position: fixed; top: calc(var(--header-h) + 14px); left: 50%; z-index: 150; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 24px)); padding: 14px 22px 14px 16px; border-radius: 14px; font-weight: 700; box-shadow: 0 12px 32px rgba(32, 14, 0, .3); transform: translateX(-50%); transition: opacity .3s ease, transform .4s var(--ease); overflow-wrap: anywhere; }
.banner svg { flex: none; }
.banner--in { background: var(--honey); color: var(--brown); }
.banner--in svg { color: var(--brown); }
.banner--out { background: var(--brown); color: #fff; }
.banner--out svg { color: var(--honey); }
.banner.is-off { opacity: 0; pointer-events: none; transform: translate(-50%, -16px); }

.auth-link { height: 40px; padding: 0 10px; border: 0; background: none; color: #fff; font-weight: 700; }
.auth-link:hover { color: var(--honey); }
.account__item--out { color: #b3261e; }
.account__btn.pulse { animation: chip-pulse 1.4s var(--ease); }
@keyframes chip-pulse { 0% { box-shadow: 0 0 0 0 rgba(249, 160, 18, .9); } 100% { box-shadow: 0 0 0 16px rgba(249, 160, 18, 0); } }

.dialog__lead { color: var(--muted); font-size: 15px; }
.notice { display: grid; gap: 10px; justify-items: start; padding: 14px 16px; border: 1px solid #f0d49a; border-radius: 12px; background: #fff4dc; font-size: 15px; font-weight: 600; }
.form-ok { color: #2b6b2f; font-weight: 600; font-size: 14px; }
.set { padding: 18px 0; border-top: 1px solid var(--line); }
.set:first-of-type { border-top: 0; padding-top: 4px; }
.set h3 { margin-bottom: 14px; font-size: 18px; }
.set__btns { display: grid; gap: 10px; }
.pwrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pwrow__mask { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; filter: blur(5px); user-select: none; }

/* ---------- хиты продаж и доставка ---------- */

.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav__btn { width: 46px; height: 46px; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); transition: background .18s, border-color .18s, opacity .18s; }
.rail-nav__btn:hover:not(:disabled) { border-color: var(--honey); background: #fff9ec; }
.rail-nav__btn:disabled { opacity: .35; cursor: default; }
.rail { display: flex; gap: 24px; padding: 6px 2px 28px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.rail__item { flex: none; width: 300px; scroll-snap-align: start; display: flex; }
.rail__item .card { width: 100%; }

.delivery__side { display: grid; gap: 20px; }
.carriers { padding: 24px 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.carriers h3 { margin-bottom: 8px; }
.carriers p { color: var(--muted); }

/* ---------- анимации ---------- */

:root { --ease: cubic-bezier(.2, .8, .2, 1); interpolate-size: allow-keywords; }

@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes slide-in { from { transform: translateX(100%); } }
@keyframes slide-out { to { transform: translateX(100%); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(18px) scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes hex-in { from { opacity: 0; transform: scale(.9) translateY(14px); } }
@keyframes bump { 40% { transform: scale(1.45); } }
@keyframes heart-pop { 40% { transform: scale(1.3); } 70% { transform: scale(.92); } }

/* первый экран */
.hero__text > * { animation: rise .7s var(--ease) both; }
.hero__text > :nth-child(2) { animation-delay: .08s; }
.hero__text > :nth-child(3) { animation-delay: .16s; }
.hero__text > :nth-child(4) { animation-delay: .24s; }
.hex--back { animation: hex-in .8s var(--ease) .15s both; }
.hex--photo { animation: hex-in .8s var(--ease) .3s both; }

/* появление блоков при прокрутке (классы ставит app.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* шапка */
.header { transition: box-shadow .25s; }
.header.is-stuck { box-shadow: 0 6px 20px rgba(20, 8, 0, .35); }

/* кнопки, карточки, фильтры */
.btn, .chip, .seg__btn, .fav, .icon-btn { transition: background .18s, border-color .18s, color .18s, transform .18s var(--ease); }
.btn:active, .chip:active, .seg__btn:active { transform: scale(.96); }
.btn--honey.is-added { background: var(--brown); color: #fff; }
.card__img { overflow: hidden; }
.card__img img { transition: transform .6s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.badge.bump { animation: bump .35s var(--ease); }
.fav.pop { animation: heart-pop .4s var(--ease); }
.nav a { transition: color .15s, border-color .15s; }

/* окна */
.overlay { animation: fade-in .22s ease both; }
.overlay.is-closing { animation: fade-out .24s ease both; pointer-events: none; }
.modal, .dialog { animation: pop-in .32s var(--ease) both; }
.is-closing .modal, .is-closing .dialog { animation: pop-out .22s ease-in both; }
.drawer { animation: slide-in .34s var(--ease) both; }
.is-closing .drawer { animation: slide-out .24s ease-in both; }
.drawer.view-anim > :not(.drawer__head) { animation: rise .35s var(--ease) both; }
.toast { transition: opacity .25s ease, transform .3s var(--ease); }
.toast.is-off { transform: translate(-50%, 16px); }

/* вопросы: плавное раскрытие (в браузерах без поддержки раскрывается мгновенно) */
.faq__item summary::after { transition: transform .3s var(--ease); }
.faq__item::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.faq__item[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
