/* ============================================================
   Студия флористики «От души» — стили
   ============================================================ */
:root {
  --wine: #6e2440;
  --wine-700: #571a31;
  --wine-900: #3f1123;
  --wine-300: #a85e78;
  --blush: #f7e9ec;
  --blush-200: #f0d8de;
  --cream: #fbf6f1;
  --cream-2: #f4ebe1;
  --kraft: #c69c6d;
  --sage: #7d9b76;
  --gold: #b08d57;
  --ink: #2c2129;
  --muted: #857078;
  --line: #ece0e2;
  --white: #fff;
  --ok: #4f8a5b;
  --shadow-sm: 0 2px 10px rgba(80, 30, 50, .06);
  --shadow: 0 12px 34px rgba(80, 30, 50, .10);
  --shadow-lg: 0 24px 60px rgba(80, 30, 50, .18);
  --r: 18px;
  --r-sm: 12px;
  --container: 1200px;
  --header-h: 74px;
  --font-body: 'Montserrat', system-ui, sans-serif;
  --font-head: 'Playfair Display', Georgia, serif;
  --font-alt: 'Cormorant Garamond', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 100px; font-weight: 600; font-size: 15px;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s;
  white-space: nowrap; line-height: 1;
}
.btn--primary { background: var(--wine); color: #fff; box-shadow: 0 8px 22px rgba(110, 36, 64, .28); }
.btn--primary:hover { background: var(--wine-700); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(110, 36, 64, .38); }
.btn--ghost { background: transparent; color: var(--wine); border: 1.5px solid var(--wine-300); }
.btn--ghost:hover { background: var(--wine); color: #fff; border-color: var(--wine); transform: translateY(-2px); }
.btn--lg { padding: 16px 34px; font-size: 16px; }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--block { width: 100%; }

/* ---------------------------- Top bar ---------------------------- */
.topbar { background: var(--wine-900); color: #f3dfe4; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar a.topbar__item:hover { opacity: 1; color: #fff; }

/* ---------------------------- Header ----------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 246, 241, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--wine); }
.brand__sub { font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { font-size: 15px; font-weight: 500; color: var(--ink); position: relative; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--wine); transition: width .25s; }
.nav a:hover { color: var(--wine); }
.nav a:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: 16px; }
.header__phone { font-weight: 600; color: var(--wine); font-size: 15px; }
.cart-btn { position: relative; width: 46px; height: 46px; border-radius: 50%; background: var(--blush); color: var(--wine); display: grid; place-items: center; transition: background .2s, transform .2s; }
.cart-btn:hover { background: var(--blush-200); transform: translateY(-1px); }
.cart-btn__count { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--wine); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.5,.6,1); }
.cart-btn__count.show { transform: scale(1); }
.burger { display: none; flex-direction: column; gap: 5px; width: 30px; }
.burger span { height: 2.5px; background: var(--wine); border-radius: 2px; transition: .25s; }

/* ---------------------------- Hero ------------------------------- */
.hero { position: relative; min-height: 640px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero__overlay { position: absolute; inset: 0; background:
  linear-gradient(100deg, rgba(63, 17, 35, .82) 0%, rgba(63, 17, 35, .5) 45%, rgba(63, 17, 35, .18) 100%); }
.hero__content { position: relative; z-index: 1; padding: 80px 24px; max-width: 720px; }
.hero__badge { display: inline-flex; align-items: center; gap: 9px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px); padding: 8px 16px; border-radius: 100px; font-size: 14px; margin-bottom: 22px; }
.hero__badge .stars { color: #ffcf5a; letter-spacing: 1px; }
.hero__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(40px, 6vw, 68px); line-height: 1.05; margin-bottom: 20px; }
.hero__title span { font-style: italic; color: #f4c9d3; }
.hero__text { font-size: clamp(16px, 2vw, 19px); max-width: 560px; margin-bottom: 34px; color: rgba(255, 255, 255, .92); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero__cta .btn--ghost:hover { background: #fff; color: var(--wine); border-color: #fff; }

/* ---------------------------- Features --------------------------- */
.features { margin-top: -46px; position: relative; z-index: 5; }
.features__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; background: #fff; border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); }
.feature { text-align: center; padding: 8px; }
.feature__ic { font-size: 30px; margin-bottom: 8px; }
.feature h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.feature p { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------------------------- Sections --------------------------- */
.section { padding: 84px 0; }
.section--tint { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--wine-300); margin-bottom: 12px; }
.eyebrow::before, .eyebrow::after { content: '—'; margin: 0 8px; color: var(--blush-200); }
.section__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(30px, 4vw, 44px); color: var(--wine-900); line-height: 1.12; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 16.5px; }

/* ---------------------------- Filters ---------------------------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip { padding: 10px 22px; border-radius: 100px; background: #fff; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); transition: .2s; }
.chip:hover { border-color: var(--wine-300); color: var(--wine); }
.chip.is-active { background: var(--wine); color: #fff; border-color: var(--wine); box-shadow: 0 6px 16px rgba(110, 36, 64, .22); }

/* ---------------------------- Products --------------------------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.card { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; background: var(--blush); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.06); }
.card__badge { position: absolute; top: 12px; left: 12px; padding: 5px 13px; border-radius: 100px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #fff; text-transform: uppercase; }
.badge--Хит { background: var(--wine); }
.badge--Новинка { background: var(--sage); }
.badge--Премиум { background: linear-gradient(135deg, var(--gold), #8a6a3c); }
.card__quick { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .25s; }
.card__quick span { background: rgba(255,255,255,.92); color: var(--wine); padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 600; transform: translateY(8px); transition: transform .25s; }
.card:hover .card__quick { opacity: 1; }
.card:hover .card__quick span { transform: translateY(0); }
.card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card__cat { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--kraft); font-weight: 600; }
.card__name { font-family: var(--font-head); font-size: 19px; font-weight: 600; margin: 5px 0 8px; color: var(--wine-900); line-height: 1.2; }
.card__desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.card__price { display: flex; flex-direction: column; line-height: 1.1; }
.card__price b { font-size: 22px; font-weight: 700; color: var(--wine-900); font-family: var(--font-head); }
.card__price s { font-size: 13px; color: var(--muted); }
.card__add { width: 44px; height: 44px; border-radius: 50%; background: var(--wine); color: #fff; font-size: 22px; display: grid; place-items: center; transition: .2s; flex-shrink: 0; }
.card__add:hover { background: var(--wine-700); transform: scale(1.08); }
.card__add.added { background: var(--ok); }
.products__empty { text-align: center; color: var(--muted); padding: 40px; }

/* ---------------------------- Delivery --------------------------- */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 960px; margin: 0 auto; }
.delivery__card { background: #fff; border-radius: var(--r); padding: 34px; box-shadow: var(--shadow-sm); }
.delivery__card--accent { background: linear-gradient(160deg, var(--wine), var(--wine-700)); color: #fff; display: flex; flex-direction: column; }
.delivery__icon { font-size: 40px; margin-bottom: 14px; }
.delivery__card h3 { font-family: var(--font-head); font-size: 25px; margin-bottom: 10px; }
.delivery__card p { color: var(--muted); font-size: 15px; }
.delivery__card--accent p { color: rgba(255,255,255,.9); }
.zones { margin: 18px 0 12px; display: flex; flex-direction: column; gap: 9px; }
.zones li { display: flex; justify-content: space-between; font-size: 14.5px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.zones li b { color: var(--wine); font-weight: 600; }
.delivery__note { font-size: 13px !important; color: var(--kraft) !important; margin-top: 6px; }
.preorder-badge { display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-sm); padding: 16px 20px; margin: 22px 0; }
.preorder-badge__time { font-family: var(--font-head); font-size: 42px; font-weight: 700; line-height: 1; color: #f4c9d3; }
.preorder-badge__time small { font-size: 15px; display: block; color: #fff; font-family: var(--font-body); }
.delivery__card--accent .btn { margin-top: auto; background: #fff; color: var(--wine); }
.delivery__card--accent .btn:hover { background: var(--blush); }

/* ---------------------------- Steps ------------------------------ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { text-align: center; padding: 30px 20px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); position: relative; transition: transform .25s; }
.step:hover { transform: translateY(-5px); }
.step__num { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 16px; background: var(--blush); color: var(--wine); font-family: var(--font-head); font-size: 24px; font-weight: 700; }
.step h4 { font-size: 17px; margin-bottom: 8px; color: var(--wine-900); }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------------------------- Gallery ---------------------------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery__item { overflow: hidden; border-radius: var(--r-sm); cursor: pointer; box-shadow: var(--shadow-sm); position: relative; }
.gallery__item::after { content: '🔍'; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(63,17,35,.35); color: #fff; font-size: 24px; opacity: 0; transition: .25s; }
.gallery__item:hover::after { opacity: 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }

/* ---------------------------- Reviews ---------------------------- */
.reviews { display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }
.reviews__summary { background: #fff; border-radius: var(--r); padding: 32px; text-align: center; box-shadow: var(--shadow-sm); position: sticky; top: calc(var(--header-h) + 20px); }
.reviews__score { font-family: var(--font-head); font-size: 66px; font-weight: 700; color: var(--wine); line-height: 1; }
.stars { color: #e6b93f; letter-spacing: 2px; }
.stars--lg { font-size: 24px; margin: 8px 0; }
.reviews__meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.reviews__list { columns: 2; column-gap: 22px; }
.review { break-inside: avoid; background: #fff; border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 22px; border-top: 3px solid var(--blush-200); }
.review__top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--wine), var(--wine-300)); color: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 19px; font-weight: 700; flex-shrink: 0; }
.review__who b { display: block; font-size: 15px; color: var(--wine-900); }
.review__who span { font-size: 12px; color: var(--muted); }
.review__stars { color: #e6b93f; font-size: 14px; letter-spacing: 1px; margin-bottom: 8px; }
.review__text { font-size: 14px; color: #4a3d43; line-height: 1.6; }
.review__date { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------------------------- Contacts --------------------------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.contacts__info { background: #fff; border-radius: var(--r); padding: 34px; box-shadow: var(--shadow-sm); }
.contacts__row { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contacts__row:first-child { padding-top: 0; }
.contacts__ic { font-size: 22px; width: 30px; flex-shrink: 0; }
.contacts__row b { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.contacts__row p { font-size: 16px; color: var(--ink); margin-top: 2px; }
.contacts__row a:hover { color: var(--wine); }
.contacts__info .btn { margin-top: 22px; width: 100%; }
.contacts__map { border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); min-height: 420px; background: var(--blush); }
.contacts__map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------------------------- Footer ----------------------------- */
.footer { background: var(--wine-900); color: #e9d3d9; padding: 60px 0 24px; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #c99aa6; }
.footer__tag { margin-top: 14px; font-size: 14px; color: #c99aa6; max-width: 260px; }
.footer__col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: 16px; }
.footer__col a, .footer__col span { display: block; font-size: 14.5px; color: #d9bcc3; margin-bottom: 9px; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; font-size: 13px; color: #b98a97; }
.footer__admin { color: #b98a97; }
.footer__admin:hover { color: #fff; }

/* ---------------------------- Cart drawer ------------------------ */
.drawer-overlay { position: fixed; inset: 0; background: rgba(44, 20, 35, .5); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: .3s; z-index: 200; }
.drawer-overlay.show { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; width: 420px; max-width: 92vw; height: 100%; background: var(--cream); z-index: 210; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); box-shadow: var(--shadow-lg); }
.drawer.show { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-family: var(--font-head); font-size: 24px; color: var(--wine-900); }
.drawer__close { font-size: 20px; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; transition: .2s; }
.drawer__close:hover { background: var(--blush); color: var(--wine); }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item__img { width: 72px; height: 82px; border-radius: 10px; object-fit: cover; }
.cart-item__name { font-size: 14.5px; font-weight: 600; color: var(--wine-900); line-height: 1.3; }
.cart-item__price { font-size: 13px; color: var(--muted); margin-top: 3px; }
.cart-item__ctrls { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; background: #fff; border-radius: 100px; padding: 3px; width: fit-content; box-shadow: var(--shadow-sm); }
.qty-btn { width: 26px; height: 26px; border-radius: 50%; background: var(--blush); color: var(--wine); font-size: 16px; display: grid; place-items: center; transition: .15s; }
.qty-btn:hover { background: var(--wine); color: #fff; }
.cart-item__qty { min-width: 24px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-item__sum { font-weight: 700; color: var(--wine-900); font-size: 15px; white-space: nowrap; }
.cart-item__del { display: block; font-size: 11px; color: var(--muted); margin-top: 6px; text-align: right; }
.cart-item__del:hover { color: #c0392b; }
.drawer__empty { flex: 1; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 40px; }
.drawer__empty-ic { font-size: 54px; opacity: .5; }
.drawer.is-empty .drawer__empty { display: flex; }
.drawer.is-empty .drawer__body, .drawer.is-empty .drawer__foot { display: none; }
.drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); background: #fff; }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.drawer__total span { font-size: 16px; }
.drawer__total b { font-family: var(--font-head); font-size: 28px; color: var(--wine-900); }

/* ---------------------------- Modals ----------------------------- */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.show { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(44, 20, 35, .6); backdrop-filter: blur(3px); animation: fade .25s; }
.modal__box { position: relative; background: var(--cream); border-radius: var(--r); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; padding: 36px; box-shadow: var(--shadow-lg); animation: pop .3s cubic-bezier(.3,1.2,.5,1); }
.modal__box--center { text-align: center; max-width: 440px; }
.modal__box--wide { max-width: 880px; padding: 0; }
.modal__close { position: absolute; top: 16px; right: 16px; font-size: 18px; color: var(--muted); width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); z-index: 3; transition: .2s; }
.modal__close:hover { background: var(--blush); color: var(--wine); }
.modal__title { font-family: var(--font-head); font-size: 27px; color: var(--wine-900); margin-bottom: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* Forms */
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--wine-300); box-shadow: 0 0 0 3px var(--blush); }
.field textarea { resize: vertical; }
.form__hint { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.form__block { margin-bottom: 4px; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--cream-2); padding: 6px; border-radius: 100px; margin-bottom: 22px; }
.segmented__opt { padding: 12px; border-radius: 100px; font-weight: 600; font-size: 14.5px; color: var(--muted); transition: .2s; display: flex; flex-direction: column; line-height: 1.2; }
.segmented__opt small { font-size: 11px; font-weight: 500; opacity: .8; }
.segmented__opt.is-active { background: #fff; color: var(--wine); box-shadow: var(--shadow-sm); }

.pickup-note { display: flex; gap: 12px; background: var(--blush); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 14px; }
.pickup-note__ic { font-size: 22px; }
.pickup-note p { font-size: 13.5px; color: #5a3b45; }

.pay { display: flex; flex-wrap: wrap; gap: 8px; }
.pay__opt { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 100px; font-size: 13.5px; background: #fff; transition: .2s; }
.pay__opt.is-active { border-color: var(--wine); background: var(--wine); color: #fff; }

.order-summary { background: #fff; border-radius: var(--r-sm); padding: 16px 18px; margin: 18px 0; box-shadow: var(--shadow-sm); }
.order-summary__row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 5px 0; color: var(--muted); }
.order-summary__row--total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; color: var(--wine-900); font-weight: 700; }
.order-summary__row--total b { font-family: var(--font-head); font-size: 22px; }

.success__ic { font-size: 64px; margin-bottom: 12px; animation: pop .5s; }
#successText { color: var(--muted); font-size: 16px; margin-bottom: 16px; }
.success__num { font-family: var(--font-head); font-size: 22px; color: var(--wine); background: var(--blush); border-radius: var(--r-sm); padding: 14px; margin-bottom: 22px; }

/* Product modal */
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm__media { aspect-ratio: 1; background: var(--blush); }
.pm__media img { width: 100%; height: 100%; object-fit: cover; }
.pm__body { padding: 40px 36px; }
.pm__cat { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--kraft); font-weight: 600; }
.pm__name { font-family: var(--font-head); font-size: 30px; color: var(--wine-900); margin: 6px 0 14px; }
.pm__desc { font-size: 15px; color: #4a3d43; line-height: 1.65; margin-bottom: 18px; }
.pm__comp { background: var(--cream-2); border-radius: var(--r-sm); padding: 14px 16px; margin-bottom: 20px; }
.pm__comp b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pm__comp p { font-size: 14px; color: var(--ink); margin-top: 4px; }
.pm__price { font-family: var(--font-head); font-size: 34px; font-weight: 700; color: var(--wine-900); margin-bottom: 18px; }
.pm__price s { font-size: 18px; color: var(--muted); margin-left: 10px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(30, 10, 20, .92); display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.show { display: flex; animation: fade .25s; }
.lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 24px; right: 30px; color: #fff; font-size: 30px; opacity: .8; }
.lightbox__close:hover { opacity: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 50px; opacity: .7; width: 60px; height: 90px; }
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }

/* Toast */
.toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--wine-900); color: #fff; padding: 14px 26px; border-radius: 100px; font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-lg); z-index: 500; transition: transform .4s cubic-bezier(.3,1.3,.5,1); display: flex; align-items: center; gap: 8px; }
.toast.show { transform: translateX(-50%) translateY(0); }

/* ---------------------------- Responsive ------------------------- */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(3, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .topbar__hours { display: none; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; background: var(--cream); padding: 20px 24px; gap: 4px; box-shadow: var(--shadow); transform: translateY(-140%); transition: transform .3s; border-bottom: 1px solid var(--line); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .burger { display: flex; }
  .header__phone { display: none; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .delivery, .contacts, .reviews { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .reviews__list { columns: 1; }
  .reviews__summary { position: static; }
  .pm { grid-template-columns: 1fr; }
  .pm__media { aspect-ratio: 16/10; }
  .section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); padding: 18px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card__name { font-size: 16px; }
  .card__body { padding: 14px; }
  .card__price b { font-size: 19px; }
  .card__add { width: 40px; height: 40px; font-size: 20px; }
  .hero { min-height: 540px; }
  .hero__content { padding: 60px 20px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .form__grid { grid-template-columns: 1fr; }
  .modal__box { padding: 26px 20px; }
  .modal__box--wide { padding: 0; }
  .topbar__inner { justify-content: center; }
  .topbar__item:first-child { display: none; }
  .topbar__item { font-size: 12px; }
  .brand__sub { display: none; }
  .brand__logo { width: 40px; height: 40px; }
  .section__title { font-size: 26px; }
  .delivery__card, .contacts__info { padding: 24px 20px; }
  .reviews__list { columns: 1; }
  .drawer { width: 100vw; max-width: 100vw; }
  .segmented__opt { font-size: 13px; padding: 10px 6px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer__inner { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .products { grid-template-columns: 1fr; }
}
