/* Дизайн «Артфлора 3» (2026-10-19): вишня, розовый, пудра и белый.
   Прошлый дизайн «Ягодный сад» — коммит 639438a (см. README, «Вернуть прошлый дизайн»). */
:root {
  --cherry: #7e1f3c;
  --cherry-dark: #5c1029;
  --olive: #4f5a2a; /* только «бесплатно / в подарок» */
  --pink: #f2c9d4;
  --blush: #fbf0f3; /* пудровые подложки */
  --line: #eedde2;
  --line-soft: #f3e6ea;
  --muted: #6e5560;
  --white: #ffffff;
  --danger: #a3283c;
  --serif: "Playfair Display Variable", Georgia, serif;
  --script: "Great Vibes", cursive;
  --sans: "Manrope Variable", system-ui, sans-serif;
  --gutter: 24px;
  --radius: 24px;
  --river: 20px; /* одинаковые промежутки между блоками */
}

* { box-sizing: border-box; }
/* Сайт всегда светлый. Без этого iPhone в тёмной теме рисует внизу тёмную «стеклянную»
   панель Safari и затемняет букеты под ней (на телефоне со светлой темой всё нормально). */
:root { color-scheme: light only; }
/* Ссылки-якоря («По поводу») не прячут начало блока под липкой шапкой. */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 130px; background: var(--white); }
body {
  margin: 0;
  background: var(--white);
  color: var(--cherry);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--cherry); }
a:hover { color: var(--cherry-dark); }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; }
p { margin: 0; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.section { max-width: 1240px; margin: 0 auto; padding: 80px var(--gutter) 0; }
main > .section:last-child { padding-bottom: 0; }
/* Рукописное слово в заголовке: одно на заголовок */
.script { font-family: var(--script); font-weight: 400; font-size: 1.25em; line-height: .8; color: var(--cherry); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.h1 { font-size: 56px; line-height: 1; }
.h2 { font-size: 44px; }
.sec-title { margin-bottom: 32px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
/* Цена: прямой шрифт заголовков, «BYN» мельче и светлее (вариант dinx 2026-10-19) */
.price, .sum-total, .story-price { font-family: var(--serif); font-style: normal; font-weight: 600; font-variant-numeric: lining-nums; white-space: nowrap; }
.price { font-size: 26px; line-height: 1.1; }
.cur { font-family: var(--sans); font-size: max(12px, min(.5em, 16px)); font-weight: 600; color: var(--muted); margin-left: .3em; letter-spacing: .02em; }
.story-price .cur, .footer .cur { color: inherit; opacity: .85; }
.gift { color: var(--olive); font-weight: 700; }
.nolink { text-decoration: none; }
.visually-hidden { position: absolute; left: -9999px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  background: var(--cherry); color: var(--white); border: 1.5px solid var(--cherry);
  padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { color: var(--white); background: var(--cherry-dark); border-color: var(--cherry-dark); }
.btn:disabled { opacity: .5; cursor: default; background: var(--cherry); border-color: var(--cherry); }
.btn-lg { min-height: 52px; padding: 12px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; color: var(--cherry); }
.item-del { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.btn-outline:hover { color: var(--cherry); background: var(--blush); border-color: var(--cherry); }
.btn-pink { background: var(--pink); border-color: var(--pink); color: var(--cherry); }
.btn-pink:hover { background: var(--white); border-color: var(--white); color: var(--cherry); }
.btn-on-cherry { background: transparent; border-color: var(--pink); color: var(--white); }
.btn-on-cherry:hover { background: rgba(242,201,212,.15); border-color: var(--pink); }
.btn-ghost { background: none; border: 0; color: var(--cherry); padding: 6px 8px; font-weight: 700; cursor: pointer; }
.icon-btn {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white);
  color: var(--cherry); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.chip.on { background: var(--cherry); color: var(--white); border-color: var(--cherry); }
.chip-sm { min-height: 40px; padding: 0 14px; }
/* Время доставки: интервалов много (каждые полчаса), ставим ровной сеткой */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slots .chip { padding: 0 6px; justify-content: center; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--blush); text-decoration: none; display: inline-flex; align-items: center; }
.swatch { display: inline-block; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(126,31,60,.18); font-style: normal; }

/* Поля */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; font-size: 16px; padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--white); color: var(--cherry); outline: none;
}
.input:focus { border-color: var(--cherry); }
.input[aria-invalid="true"] { border-color: var(--danger); }
textarea.input { resize: vertical; min-height: 60px; }
/* Выпадающие списки: своя стрелка с тем же отступом справа, что и текст слева */
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%237E1F3C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center;
}
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--cherry); }
.error { color: var(--danger); font-size: 14px; font-weight: 600; }

/* Варианты-карточки (размеры, оплата, дополнения) */
.opt {
  flex: 1 1 0; min-width: 0; text-align: left; cursor: pointer; border-radius: 16px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
  background: var(--white); border: 1px solid var(--line);
}
.opt.on { border: 2px solid var(--cherry); padding: 11px 13px; }
.opt b { font-weight: 800; font-size: 17px; }
.opt .note { font-size: 14px; color: var(--muted); }
.opt .ok { font-size: 14px; color: var(--olive); font-weight: 700; }
.opt .in-cart { font-size: 14px; color: var(--cherry); font-weight: 800; }

.card { border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.panel { background: var(--blush); border-radius: var(--radius); padding: 36px 44px; }

/* Вишнёвая полоска над шапкой */
.ribbon { background: var(--cherry); color: var(--white); }
.ribbon .wrap {
  padding-top: 9px; padding-bottom: 9px; display: flex; flex-wrap: wrap; white-space: nowrap;
  gap: 4px 18px; align-items: center; justify-content: center; font-size: 14px;
}
.ribbon b { font-weight: 800; }
.ribbon i { font-style: normal; color: var(--pink); }

/* Шапка */
.header { background: var(--white); border-bottom: 1px solid var(--line-soft); position: sticky; top: 0; z-index: 20; }
.header-top { display: flex; align-items: center; gap: 16px 24px; padding-top: 18px; }
.logo { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1; text-decoration: none; }
.search {
  flex: 1 1 220px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.search input { font-size: 15px; padding: 12px 0; border: 0; outline: none; background: transparent; flex: 1; min-width: 0; color: var(--cherry); }
.search-soft { background: var(--blush); }
.search-soft input { font-size: 16px; padding: 14px 0; }
.phone-menu { position: relative; }
.phone { font-weight: 700; white-space: nowrap; background: none; border: 0; padding: 8px 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.phone .phone-icon { display: none; }
.phone-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 240px; display: flex; flex-direction: column; gap: 4px;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 12px 32px rgba(126,31,60,.12);
}
.phone-pop > .small { padding: 2px 8px 6px; }
.phone-opt { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.phone-opt:hover, .phone-opt:focus-visible { background: var(--blush); }
.phone-opt .dot { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--white); font-weight: 800; font-size: 15px; }
.phone-opt.telegram .dot { background: #2aabee; }
.phone-opt.whatsapp .dot { background: #25d366; }
.phone-opt.viber .dot { background: #7360f2; }
.phone-opt.call .dot { background: var(--cherry); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 600; padding: 14px 0; }
.nav a { text-decoration: none; white-space: nowrap; padding-bottom: 2px; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }

/* Меню на телефоне */
.mmenu { position: fixed; inset: 0; z-index: 60; background: var(--white); display: flex; flex-direction: column; }
.mmenu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.mmenu-top .logo { font-size: 25px; font-weight: 500; }
.mmenu-body { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 24px; padding: 20px 22px 28px; }
.mmenu-nav { display: flex; flex-direction: column; }
.mmenu-nav > a {
  display: flex; align-items: center; justify-content: space-between; min-height: 56px; border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif); font-size: 24px; font-weight: 500; text-decoration: none;
}
.mmenu-nav > a span { font-family: var(--sans); font-size: 18px; }
.mmenu-nav > a.plain { font-family: var(--sans); font-size: 16px; font-weight: 700; border-bottom: 0; }
.mmenu-group { display: flex; flex-direction: column; gap: 12px; padding: 14px 0 16px; border-bottom: 1px solid var(--line-soft); }
.mmenu-group > span { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.mmenu-group .tag { min-height: 40px; }
.mmenu-contact { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--cherry); color: var(--white); }
.mmenu-contact .eyebrow { font-size: 12px; color: var(--pink); }
.mmenu-phone { color: var(--white); font-size: 22px; font-weight: 700; text-decoration: none; }
.mmenu-phone:hover { color: var(--pink); }
.mmenu-msg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 14px; font-weight: 700; }
.mmenu-msg a { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 999px; background: var(--pink); color: var(--cherry); text-decoration: none; }

/* Подвал */
.footer { background: var(--cherry); color: var(--white); margin-top: 80px; }
.footer a { color: var(--white); }
.footer a:hover { color: var(--pink); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 32px; padding: 56px 0 40px; font-size: 15px; }
.footer b { font-weight: 700; }
.footer .soft { color: var(--pink); }
.footer-logo { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; color: var(--pink); }
.footer-phone { font-size: 20px; font-weight: 700; text-decoration: none; }
.footer-legal { padding: 20px 0 28px; border-top: 1px solid rgba(242,201,212,.35); font-size: 13px; line-height: 1.6; color: var(--pink); }

/* Главная: вишнёвый бенто-блок с вырезом */
.hero-wrap { padding-top: 24px; }
.hero { position: relative; height: 588px; }
.hero-main { position: absolute; left: 0; top: 0; width: 53.8%; height: 100%; color: var(--white); }
.hero-shape { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-shape path { fill: var(--cherry); }
.hero-text { position: absolute; left: 44px; right: 44px; top: 52px; display: flex; flex-direction: column; gap: 20px; }
.hero-text .eyebrow { color: var(--pink); }
.hero .hero-title { max-width: 560px; font-family: var(--serif); font-weight: 500; font-size: 56px; line-height: 1.04; }
.hero-text h1.eyebrow { font-family: inherit; line-height: 1.4; }
.hero .hero-title .script { font-size: 1.3em; color: var(--pink); }
.hero-text p { max-width: 400px; font-size: 17px; line-height: 1.55; color: var(--blush); }
.hero-facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; }
.hero-facts li { display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 12px; border-radius: 18px; background: rgba(255, 255, 255, .08); }
.hero-facts b { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1; color: var(--white); white-space: nowrap; }
.hero-facts span { font-size: 13px; line-height: 1.3; color: var(--pink); }
.hero-text .hero-delivery { display: flex; align-items: center; gap: 8px; margin: 0; max-width: none; font-size: 15px; color: var(--white); }
.hero-delivery svg { color: var(--pink); flex: none; }
/* адреса магазинов — ссылки на Яндекс Карты */
a.map-link { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.map-link:hover { color: inherit; text-decoration-thickness: 2px; }
.hero-ways { display: flex; flex-direction: column; gap: 6px; }
.nowrap { white-space: nowrap; }
.hero-actions { position: absolute; left: 44px; bottom: 44px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 52px; padding: 0 26px; }
.hero-day {
  position: absolute; left: calc(53.8% + var(--river)); right: 0; top: 0; height: 360px; border-radius: var(--radius); overflow: hidden;
  background: var(--blush); display: flex; text-decoration: none;
}
/* Фото букета — вертикальное 3:4, как снимают на телефон: обрезается минимально. */
.hero-day img { height: 100%; aspect-ratio: 3 / 4; flex: none; max-width: 55%; object-fit: cover; object-position: center 40%; }
.hero-day-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 24px 24px 26px; }
.hero-day .eyebrow { font-size: 11px; }
.hero-day-name { font-family: var(--serif); font-size: 28px; line-height: 1.15; font-weight: 500; }
.hero-day .price { font-size: 28px; white-space: nowrap; }
.hero-day-more { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--cherry); }
.hero-tile { position: absolute; left: calc(40.37% + var(--river)); right: 0; top: calc(360px + var(--river)); bottom: 0; border-radius: var(--radius); overflow: hidden; }
.hero-tile-full { top: 0; left: calc(53.8% + var(--river)); }
.hero-tile-photos { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.hero-tile-photos img { width: 100%; height: 100%; min-width: 0; object-fit: cover; object-position: center 40%; }
.hero-chip { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 700; }

.occasions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 24px; }
.occasion { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; text-align: center; }
.occasion span { width: 112px; height: 112px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--blush); transition: background .15s; }
.occasion:hover span { background: var(--pink); }

/* Вишнёвая плашка с призывом */
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding: 44px 48px; border-radius: var(--radius); background: var(--cherry); color: var(--white); }
.band h2 { font-size: 40px; }
.band .script { color: var(--pink); }
.band p { font-size: 16px; line-height: 1.55; color: var(--blush); }

/* «Важно знать»: четыре пудровые карточки */
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: var(--river); }
.info-card { display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--blush); }
.info-card > i { width: 52px; height: 52px; margin-bottom: 8px; border-radius: 50%; background: var(--white); display: flex; align-items: center; justify-content: center; }
.info-card h3 { font-size: 23px; }
.info-card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
/* Гарантия свежести 24 часа: вишнёвая карточка, чтобы её было видно сразу */
.info-accent { background: var(--cherry); color: var(--white); }
.info-accent p { color: var(--blush); }
.info-accent > i { color: var(--cherry); }
.guarantee { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: var(--cherry); color: var(--white); font-size: 14px; line-height: 1.5; }
.guarantee > i { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--cherry); display: flex; align-items: center; justify-content: center; }
.guarantee b { font-size: 16px; }
.guarantee span span { color: var(--blush); }
.guarantee.compact { padding: 12px 14px; gap: 10px; font-size: 13px; }
.guarantee.compact > i { flex-basis: 32px; width: 32px; height: 32px; }
.guarantee.compact b { font-size: 15px; }
.perks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; background: var(--blush); border-radius: var(--radius); padding: 28px; }
.perks b { font-weight: 700; display: block; margin-bottom: 4px; }

/* «Эксклюзив этой недели»: карточки как сторис в Instagram */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--river); }
.story { position: relative; display: block; height: 480px; border-radius: var(--radius); overflow: hidden; color: var(--white); text-decoration: none; }
.story:hover { color: var(--white); }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.story:hover img { transform: scale(1.03); }
.story-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(58,12,28,.6) 0%, rgba(58,12,28,0) 40%, rgba(58,12,28,0) 60%, rgba(58,12,28,.65) 100%); }
.story-title { position: absolute; left: 26px; right: 26px; top: 22px; display: flex; flex-direction: column; }
.story-script { font-family: var(--script); font-size: 60px; line-height: .95; color: var(--pink); }
.story-text { padding-left: 40px; font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.story-title .story-text:first-child { padding-left: 0; }
.story-price {
  position: absolute; left: 22px; bottom: 72px; display: flex; align-items: center; justify-content: center; width: 128px; height: 64px;
  border: 2px solid var(--pink); border-radius: 50%; transform: rotate(-8deg); font-size: 26px;
}
.story-note { position: absolute; left: 26px; right: 26px; bottom: 26px; font-family: var(--serif); font-size: 15px; }

/* Сетка товаров */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 40px var(--river); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pcard-photo { position: relative; height: 340px; border-radius: var(--radius); overflow: hidden; background: var(--blush); display: block; }
.pcard-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pcard-photo:hover img { transform: scale(1.03); }
/* Название в одну строку (решение владельца), длинное обрезается «…» */
.pcard-title { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-body { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.pcard-buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard-add { padding: 0 16px; font-size: 14px; }
.pcard-add.done { background: var(--blush); }
.more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.badges { position: absolute; left: 14px; top: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.badges .badge { position: static; }
.badge { position: absolute; left: 14px; top: 14px; background: rgba(255,255,255,.9); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }

/* Каталог */
.catalog-head { padding-top: 28px; display: flex; flex-direction: column; gap: 22px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.catalog { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 32px; padding-top: 28px; align-items: start; }
.filters { display: flex; flex-direction: column; gap: 26px; padding: 26px; border-radius: var(--radius); background: var(--blush); }
.filters h3 { font-size: 21px; margin-bottom: 12px; }
.filters a.radio, .filters a.box { display: flex; align-items: center; gap: 10px; min-height: 34px; text-decoration: none; }
.filters a.radio::before, .filters a.box::before { content: ""; width: 18px; height: 18px; flex: 0 0 18px; border: 1.5px solid var(--cherry); background: var(--white); }
.filters a.radio::before { border-radius: 50%; }
.filters a.box::before { border-radius: 5px; }
.filters a.radio.on::before { box-shadow: inset 0 0 0 4px var(--white); background: var(--cherry); }
.filters a.box.on::before { background: var(--cherry); box-shadow: inset 0 0 0 3px var(--white); }
.filters a.on { font-weight: 700; }
.filters-col { min-width: 0; }
.fgroup > summary { list-style: none; display: flex; align-items: baseline; gap: 10px; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup-val { display: none; }
.filters-toggle { display: flex; align-items: center; gap: 16px; }
.filters-toggle .btn { gap: 8px; }
.filters-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--cherry); color: var(--white); font-size: 13px; }
.filters-toggle .btn:not(.btn-outline) .filters-count { background: var(--white); color: var(--cherry); }
@media (min-width: 861px) { .fgroup > summary { pointer-events: none; } }
.swatch-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: flex; align-items: center; justify-content: center; }
.swatch-btn .swatch { width: 28px; height: 28px; }
.swatch-btn.on { border: 2px solid var(--cherry); }
.help { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: var(--white); }
.help b { font-family: var(--serif); font-size: 19px; font-weight: 500; }
.catalog-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-radius: 18px; background: var(--blush); font-size: 14px; }
.sort { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sort .input { width: auto; font-size: 14px; padding: 9px 40px 9px 16px; border-radius: 999px; background-position: right 16px center; }
.addons { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line-soft); }
.addons h2 { font-size: 26px; }
.addons-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; }
.addon { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--blush); }
/* Платный доп в каталоге — кнопка: «+ Добавить» → «✓ В корзине» */
.addon-pick { font: inherit; color: inherit; text-align: left; cursor: pointer; border: 2px solid transparent; transition: border-color .15s, background .15s; }
.addon-pick:hover { border-color: var(--pink); }
.addon-pick.on { background: var(--white); border-color: var(--cherry); }
.addon-state { font-size: 14px; font-weight: 800; color: var(--cherry); white-space: nowrap; }

/* Допы в корзине: отдельный заметный блок, чтобы было видно, что конфеты и т. п. едут с букетом */
.cart-addons { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 16px 18px; border-radius: 18px; background: var(--blush); border: 1.5px solid var(--pink); }
.cart-addons-title { font-family: var(--serif); font-size: 20px; }
.cart-addon { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--white); }
.cart-addon-ok { flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--cherry); color: var(--white); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; }
.cart-addon-name { flex: 1; font-weight: 800; }
.cart-addon-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Летит в корзину (site.js, ArtfloraFly) */
.fly-dot {
  position: fixed; z-index: 70; width: 56px; height: 56px; border-radius: 50%; pointer-events: none;
  background: var(--cherry) center / cover no-repeat; border: 3px solid var(--white); box-shadow: 0 6px 18px rgba(92, 16, 41, .3);
  color: var(--white); font-weight: 800; font-size: 24px; display: flex; align-items: center; justify-content: center;
}
@keyframes cart-bump { 0% { transform: scale(1); } 30% { transform: scale(1.15); } 55% { transform: scale(.95); } 100% { transform: scale(1); } }
.cart-bump { animation: cart-bump .45s ease-out; }
.cart-bump [data-cart-count] { display: inline-block; animation: cart-bump .45s ease-out; }
@media (prefers-reduced-motion: reduce) { .cart-bump, .cart-bump [data-cart-count] { animation: none; } .toast { transition: none; } }

/* Всплывающая плашка «… в корзине» */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; display: flex; align-items: center; gap: 12px;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; background: var(--cherry); color: var(--white);
  font-weight: 700; box-shadow: 0 10px 30px rgba(92, 16, 41, .25);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--pink); white-space: nowrap; }
.toast a:hover { color: var(--white); }
.toast-ok { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--white); color: var(--cherry); display: inline-flex; align-items: center; justify-content: center; }
.zone-row { padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }

/* Карточка букета */
.product { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.gallery { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gallery-main { position: relative; height: 620px; border-radius: var(--radius); overflow: hidden; background: var(--blush); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; }
.thumbs button { flex: 1; height: 96px; border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; background: var(--white); border: 1px solid var(--line); }
.thumbs button.on { border: 2px solid var(--cherry); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.buy h1 { font-size: 48px; line-height: 1.05; }
.label { font-weight: 800; font-size: 15px; }
.forms { display: flex; gap: 8px; }
.forms a { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 6px 6px 10px; border-radius: 16px; border: 1px solid var(--line); text-decoration: none; }
.forms a.on { border: 2px solid var(--cherry); padding: 5px 5px 9px; }
.forms .ph { height: 78px; border-radius: 11px; overflow: hidden; background: var(--blush); }
.forms .ph img { width: 100%; height: 100%; object-fit: cover; }
.forms .t { padding: 0 4px; font-size: 14px; }
.forms-name { font-size: 14px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; padding: 18px 0; font-weight: 800; font-size: 17px; }
.acc summary::after { content: "+"; font-weight: 400; font-size: 22px; }
.acc details[open] summary::after { content: "−"; }
.acc details > div { font-size: 15px; line-height: 1.55; color: var(--muted); padding-bottom: 18px; }

/* Корзина */
.steps { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--muted); font-size: 15px; flex-wrap: wrap; }
.steps .on { color: var(--cherry); }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; padding-top: 24px; padding-bottom: 48px; }
.checkout-main { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.summary { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 12px; border-radius: var(--radius); padding: 24px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-total { font-size: 32px; }
.line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty span { min-width: 24px; text-align: center; font-weight: 700; }
.drag-cell { width: 34px; padding-right: 0 !important; vertical-align: top; }
.drag-handle { display: block; cursor: grab; font-size: 20px; line-height: 1; color: var(--muted); padding: 8px 4px 2px; user-select: none; }
.drag-handle:active { cursor: grabbing; }
[data-bouquet-list] .drag-handle { touch-action: none; } /* тянуть пальцем, а не прокручивать страницу */
[data-bouquet-list] tr[hidden] { display: none !important; }
[data-bouquet-list].searching .drag-cell > * { visibility: hidden; } /* пока ищем, порядок не меняем */
.admin-filters .field { flex: 0 1 auto; min-width: 0; }
.admin-filters select.input { width: auto; min-width: 150px; max-width: 220px; }
.drag-steps { display: flex; flex-direction: column; }
/* Массовые действия в списке букетов: галочка у букета и панель внизу экрана */
.pick { display: flex; align-items: center; justify-content: center; min-width: 32px; min-height: 40px; cursor: pointer; flex: 0 0 auto; }
.pick input { width: 20px; height: 20px; accent-color: var(--cherry); cursor: pointer; }
.table tr.picked td { background: var(--blush); }
.bulk-bar { position: sticky; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--white); border: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
.bulk-bar[hidden] { display: none; }
.bulk-bar select { flex: 1 1 220px; max-width: 360px; }
.drag-steps button { border: 0; background: none; color: var(--muted); font-size: 10px; padding: 2px 4px; cursor: pointer; }
.drag-steps button:hover { color: var(--cherry); }
tr.dragging { opacity: .45; }
.color-pick { width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.color-pick::-webkit-color-swatch-wrapper { padding: 0; }
.color-pick::-webkit-color-swatch { border: 0; border-radius: 50%; }
.color-pick::-moz-color-swatch { border: 0; border-radius: 50%; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 700; }
.seg button.on { background: var(--cherry); color: var(--white); }
.zone { background: var(--blush); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.addr-extra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mobile-bar { display: none; }

/* Пустые состояния */
.empty { text-align: center; padding: 64px 24px; display: flex; flex-direction: column; gap: 14px; align-items: center; }

/* Планшет: бенто-блок раскладываем столбиком */
@media (max-width: 1080px) {
  .hero { height: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .hero-main { position: relative; width: auto; height: auto; grid-column: 1 / -1; display: flex; flex-direction: column; gap: 22px; padding: 36px 32px 32px; border-radius: var(--radius); background: var(--cherry); }
  .hero-shape { display: none; }
  .hero-text, .hero-actions { position: static; }
  .hero-day, .hero-tile { position: relative; left: auto; right: auto; top: auto; bottom: auto; height: 300px; }
  .hero-tile-full { grid-column: 1 / -1; }
  .grid-4 { grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
}

/* Телефон */
@media (max-width: 860px) {
  :root { --gutter: 22px; }
  html { scroll-padding-top: 150px; }
  .ribbon .wrap { flex-wrap: nowrap; overflow: hidden; gap: 10px; padding: 0 12px 0 16px; min-height: 44px; justify-content: space-between; font-size: 13px; }
  .ribbon-phone {
    display: flex; align-items: center; gap: 6px; color: var(--white); font-size: 15px; font-weight: 800;
    text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px;
  }
  .ribbon-phone:hover { color: var(--pink); }
  .header-top { flex-wrap: wrap; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .header-top .logo { flex: 1; text-align: center; font-size: 25px; font-weight: 500; }
  .header-top .search { order: 5; flex-basis: 100%; background: var(--blush); }
  .header-top .search input { font-size: 16px; padding: 13px 0; }
  .header-top .btn { padding: 0 14px; min-width: 44px; }
  .nav { display: none; }
  .h1 { font-size: 40px; }
  .h2 { font-size: 30px; }
  .sec-title { margin-bottom: 20px; }
  .section { padding: 48px var(--gutter) 0; }
  .hero-wrap { padding: 16px 16px 0; }
  .hero-main { padding: 28px 22px 24px; gap: 18px; }
  .hero-text { gap: 18px; }
  .hero-text .eyebrow { font-size: 12px; }
  .hero .hero-title { font-size: 36px; }
  .hero-text p { font-size: 15px; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-facts b { font-size: 22px; }
  .hero-text .hero-delivery { font-size: 14px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-day { height: auto; flex-direction: column; }
  .hero-day img { width: 100%; height: auto; max-width: none; }
  .hero-day-body { padding: 12px 14px 14px; gap: 4px; }
  .hero-day .eyebrow { font-size: 10px; }
  .hero-day-name { font-size: 17px; }
  .hero-day .price { font-size: 19px; }
  .hero-day-more { display: none; }
  .hero-tile-photos img:not(:first-child) { display: none; }
  .hero-tile { height: auto; min-height: 236px; }
  .hero-chip { left: 10px; right: 10px; bottom: 10px; justify-content: center; font-size: 12px; }
  .occasions { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 4px; }
  .occasion { flex: 0 0 72px; font-size: 14px; font-weight: 600; gap: 10px; }
  .occasion span { width: 64px; height: 64px; }
  .occasion svg { width: 30px; height: 30px; }
  .chips-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .chips-row::-webkit-scrollbar, .occasions::-webkit-scrollbar { display: none; }
  .scroll-row.has-more:has(> .occasions)::after { right: calc(-1 * var(--gutter)); }
  /* Подсказка, что ряд листается: затухание справа и тонкий ползунок снизу */
  .scroll-row { position: relative; min-width: 0; }
  .scroll-row.has-more::after { content: ""; position: absolute; top: 0; right: 0; width: 48px; bottom: 13px; pointer-events: none; background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--white)); }
  .scroll-track { position: relative; height: 3px; margin: 10px auto 0; width: 72px; border-radius: 2px; background: var(--line); }
  .scroll-track i { position: absolute; top: 0; height: 100%; border-radius: 2px; background: var(--cherry); }
  .h1 { line-height: 1.05; }
  .h1 .script { line-height: 1.15; }
  .band { padding: 28px 22px; gap: 14px; }
  .band h2 { font-size: 28px; line-height: 1.1; }
  .band p { font-size: 14px; }
  .band .btn { width: 100%; }
  .panel { padding: 28px 24px; }
  .info-card { padding: 22px; }
  .story { height: 420px; }
  .grid, .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 16px; }
  .pcard-photo { height: 210px; border-radius: 16px; }
  .pcard-title { font-size: 17px; }
  .price { font-size: 21px; }
  /* В карточке на телефоне — круглая вишнёвая кнопка с сумкой */
  .pcard-add { width: 44px; height: 44px; flex: 0 0 44px; padding: 0; background: var(--cherry); color: var(--white); }
  .pcard-add:hover { color: var(--white); background: var(--cherry-dark); }
  .pcard-add.done { background: var(--olive); border-color: var(--olive); }
  .pcard-add-word { display: none; }
  .footer { margin-top: 48px; }
  .footer-grid { padding: 32px 0 24px; gap: 18px; }
  .footer-logo { font-size: 34px; }
  .catalog-head { gap: 16px; padding-top: 20px; }
  .catalog { grid-template-columns: 1fr; gap: 24px; padding-top: 20px; }
  /* Фильтры на телефоне: кнопка «Фильтры», под ней список групп сверху вниз, каждая сворачивается */
  .filters { display: none; gap: 0; padding: 4px 18px 18px; margin-top: 12px; }
  .filters.open { display: flex; }
  .filters .help { display: none; }
  .fgroup { border-bottom: 1px solid rgba(126, 31, 60, 0.12); }
  .fgroup > summary { cursor: pointer; padding: 14px 0; min-height: 48px; align-items: center; }
  .fgroup > summary h3 { margin: 0; font-size: 19px; }
  .fgroup > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--cherry); border-bottom: 2px solid var(--cherry); transform: rotate(45deg) translateY(-3px); transition: transform 0.15s; }
  .fgroup[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
  .fgroup[open] { padding-bottom: 14px; }
  .fgroup-val { display: block; font-size: 13px; font-weight: 700; color: var(--cherry); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }
  .filters-done { margin-top: 16px; width: 100%; }
  .catalog-bar { padding: 14px 16px; }
  .gallery-main { height: 420px; }
  .buy h1 { font-size: 36px; }
  .forms { overflow-x: auto; }
  .forms a { flex: 0 0 110px; }
  .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  /* Корзина на телефоне — два шага: 1) букеты, адрес и цена доставки, 2) получатель и оплата */
  .checkout[data-step="1"] .step-3,
  .checkout[data-step="2"] .step-1, .checkout[data-step="2"] .step-2 { display: none; }
  .desktop-only { display: none !important; }
  .mobile-bar {
    /* Прилипает к низу экрана, пока листаете, а в конце страницы встаёт на своё место над подвалом */
    display: flex; position: sticky; bottom: 0; z-index: 15; /* ниже шапки (20): меню из шапки открывается поверх панели */ gap: 12px; align-items: center; margin: 24px calc(-1 * var(--gutter)) 0;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { flex: 1; }
  .mobile-bar .price { white-space: nowrap; }
  .line { grid-template-columns: 72px 1fr; }
  .line img { width: 72px; height: 72px; }
  .line .line-price { grid-column: 2; }
}
@media (min-width: 861px) { .mobile-only { display: none !important; } }
/* Узкий телефон: в полоске остаются «Доставим сегодня» и номер */
@media (max-width: 374px) { .ribbon-till { display: none; } }
/* Узкие телефоны: в шапке у корзины только значок и число */
@media (max-width: 860px) { .header-top .cart-word { display: none; } }

/* Админка */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin-nav { background: var(--blush); padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; }
.admin-nav .logo { font-size: 26px; margin-bottom: 2px; }
.admin-nav a.item { padding: 10px 12px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.admin-nav a.item.on, .admin-nav a.item:hover { background: var(--white); }
.admin-main { padding: 28px 32px 64px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.admin-main h1 { font-size: 40px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr.off td { opacity: .55; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--blush); white-space: nowrap; }
.pill.ok { background: #eef1e4; color: var(--olive); }
.pill.warn { background: #fbe6e9; color: var(--danger); }
.pill.timer { background: #fff4d6; color: #7a5a00; } /* таймер «собран сегодня» */
.pill.swap { background: #f1ebf7; color: #5b4580; white-space: normal; } /* «будет замена» цветка в букете */
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; border: 0; background: var(--line); cursor: pointer; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: left .15s; }
.switch.on { background: var(--olive); }
.switch.on::after { left: 21px; }
.num { width: 92px; text-align: right; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.photo-row { display: flex; gap: 10px; flex-wrap: wrap; }
.photo-row .ph { position: relative; width: 120px; height: 120px; border-radius: 14px; overflow: hidden; background: var(--blush); }
.photo-row .ph img { width: 100%; height: 100%; object-fit: cover; }
.photo-row .ph button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; }
@media (max-width: 860px) {
  .admin { grid-template-columns: minmax(0, 1fr); }
  /* Меню на телефоне: логотип, «Сайт» и «Выйти» сверху, разделы — кнопками в 3 столбца, всё видно сразу */
  .admin-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 16px; align-items: center; }
  .admin-nav .logo { grid-column: 1 / 2; grid-row: 1; font-size: 22px; margin: 0; }
  .admin-nav > .small.muted { display: none; }
  .admin-nav a.item { text-align: center; padding: 10px 4px; background: rgba(255, 255, 255, .55); font-size: 14px; }
  .admin-nav a.item.small { grid-column: 2 / 3; grid-row: 1; margin: 0 !important; background: none; font-size: 13px !important; padding: 8px 4px !important; }
  .admin-nav form { grid-column: 3 / 4; grid-row: 1; justify-self: end; }
  .admin-main { padding: 20px 16px 64px; min-width: 0; }
  .admin-main h1 { font-size: 32px; }
  .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .admin-grid > * { position: static !important; }
  .table-wrap { overflow-x: visible; }
  .admin-main .input, .admin-main select { max-width: 100%; min-width: 0; }
  .color-edit { flex-wrap: nowrap; }
  .color-edit .input { flex: 1 1 auto; width: auto !important; }
  .shop-edit { grid-template-columns: minmax(0, 1fr); }
}
/* Таблицы админки на телефоне — карточки: слева подпись столбца, справа значение (подписи ставит admin.js) */
@media (max-width: 640px) {
  .admin-main table.table, .admin-main table.table tbody { display: block; width: 100%; }
  .admin-main table.table thead { display: none; }
  .admin-main table.table tr { display: flex; flex-direction: column; gap: 8px; padding: 14px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; position: relative; }
  .admin-main table.table td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; padding: 0; border: 0; max-width: none !important; }
  .admin-main table.table td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); }
  .admin-main table.table td[data-label=""] { display: block; }
  .admin-main table.table td[data-label=""]::before { content: none; }
  /* пустые ячейки (кнопка «×», ручка перетаскивания) — в правый верхний угол карточки */
  .admin-main table.table td[data-label=""]:last-child:not(:first-child) { position: absolute; top: 8px; right: 8px; }
  /* «Удалить» у цветка в составе букета — внизу карточки во всю ширину, а не крестиком в углу */
  .admin-main table.table td.del-cell { position: static !important; display: block; }
  .admin-main table.table td.del-cell .item-del { width: 100%; }
  /* на телефоне: ⠿ крупнее (тянуть пальцем) и кнопки «▲ Выше» «▼ Ниже» */
  .admin-main .drag-handle { font-size: 28px; padding: 4px 10px; }
  .admin-main .drag-steps { flex-direction: row; gap: 8px; }
  .admin-main .drag-steps button { font-size: 14px; font-weight: 700; color: var(--cherry); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; min-height: 36px; }
  .admin-main .drag-steps button::after { content: " " attr(aria-label); }
  .admin-main table.table td.drag-cell { display: flex; gap: 8px; align-items: center; width: auto; }
  .admin-main table.table td:first-child:not([data-label=""]) { padding-right: 36px; }
  .admin-main table.table .qty { max-width: 100%; }
  .admin-main table.table td > .input, .admin-main table.table td > .stack .input { width: 100%; }
}

/* Админка → Доставка: слева настройки, справа карта зон */
.delivery-grid { display: grid; grid-template-columns: minmax(380px, 460px) minmax(0, 1fr); gap: 24px; align-items: start; }
.delivery-map-wrap { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.delivery-map { height: calc(100vh - 140px); min-height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.zone-dot { display: inline-block; width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; }
.zone-edit { display: grid; grid-template-columns: 26px 84px 1fr auto auto 32px; gap: 8px; align-items: center; }
.zone-edit > .zone-dot { margin-left: 6px; }
.color-pick.sm { width: 26px; height: 26px; }
.area-row { display: grid; grid-template-columns: 26px 1fr auto auto 32px; gap: 8px; align-items: center; padding: 4px 6px; margin: 0 -6px; border-radius: 12px; cursor: pointer; }
.area-row .input { padding: 7px 10px; font-size: 14px; }
.area-row.on { background: var(--blush); }
.draw-hint { gap: 8px; }
.delivery-map.drawing, .delivery-map.drawing .leaflet-interactive { cursor: crosshair !important; }
.map-vertex { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--cherry); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); cursor: grab; }
.map-vertex.mid { opacity: 0.55; border-style: dashed; }
.map-area-label { background: rgba(255, 255, 255, 0.85); border: 0; box-shadow: none; font: 700 12px/1.2 var(--sans); color: #3a2a30; padding: 2px 6px; border-radius: 8px; }
.map-area-label::before { display: none; }
.district-list { display: flex; flex-direction: column; gap: 4px; max-height: 420px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.district-row { display: grid; grid-template-columns: 14px 1fr auto 32px; gap: 8px; align-items: center; padding: 3px 6px; border-radius: 12px; cursor: pointer; }
.district-row .input { padding: 7px 10px; font-size: 14px; }
.district-row.on { background: var(--blush); }
.shop-edit { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; }
.shop-edit [data-k^="shop-map-"] { grid-column: 1 / -1; }
.shop-edit .input { padding: 8px 10px; font-size: 14px; }
.map-district { display: flex !important; align-items: center; gap: 4px; width: auto !important; white-space: nowrap; }
.map-district i { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35); }
.map-district span { font: 600 11px/1.2 var(--sans); color: #3a2a30; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.map-district.on i { width: 20px; height: 20px; flex-basis: 20px; margin: -3px; box-shadow: 0 0 0 2px var(--cherry); }
.map-district.on span { font-size: 13px; color: var(--cherry); }
.map-district.far span { color: #888; }

/* Карта зон доставки для покупателя (корзина, «Доставка и оплата») */
.zmap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.zmap-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 18px;
  border: 0; background: var(--blush); color: var(--cherry); font: inherit; font-size: 15px; font-weight: 800; cursor: pointer;
}
.zmap-chev { display: flex; transition: transform .2s; }
.zmap-toggle[aria-expanded="true"] .zmap-chev { transform: rotate(180deg); }
.zmap-map { height: 420px; background: var(--line-soft); }
.zmap-foot { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px 16px; }
.zmap-legend { display: flex; flex-wrap: wrap; gap: 6px; }
.zmap-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--blush); font-size: 13px; }
.zmap-chip i, .zmap-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; }
.zmap-dot { margin-right: 6px; }
.zmap-chip b { font-weight: 700; }
.zmap-heading { display: flex; align-items: center; gap: 10px; margin: 0; padding: 16px 18px; font-family: var(--serif); font-size: 24px; line-height: 1.25; color: var(--cherry); }
.zmap-heading svg { flex: none; }
.zmap-legend-big { gap: 8px; }
.zmap-legend-big .zmap-chip { font-size: 16px; padding: 8px 14px; }
.zmap-legend-big .zmap-chip i { width: 14px; height: 14px; }
@media (max-width: 560px) { .zmap-heading { font-size: 20px; } }
.zmap-far .map-district span { display: none; }
.zmap .map-district { cursor: pointer; }
.zmap-popup .leaflet-popup-content-wrapper { border-radius: 16px; }
.zmap-popup .leaflet-popup-content { margin: 12px 14px; font: 13px/1.4 var(--sans); color: var(--cherry); }
.zmap-popup .leaflet-popup-content b { font-size: 15px; }
.zmap-pick {
  margin-top: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--cherry); color: var(--white);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
/* Корзина: крупные кнопки зон — по цвету покупатель выбирает, куда везти */
.zmap-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.zmap-place {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px;
  border: 1.5px solid var(--line); border-radius: 18px; background: var(--white); color: var(--cherry);
  font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.zmap-place i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.zmap-place span { font-weight: 600; line-height: 1.25; }
.zmap-place b { font-family: var(--serif); font-size: 18px; font-weight: 600; white-space: nowrap; }
.zmap-place:hover { border-color: var(--pink); }
.zmap-place.on { border-color: var(--cherry); background: var(--blush); box-shadow: 0 0 0 1px var(--cherry); }
.zmap-places.invalid .zmap-place { border-color: var(--danger); }
.zmap-pick-mode .zmap-map { cursor: crosshair; }
.zmap-pin { width: 22px !important; height: 22px !important; border-radius: 50%; background: var(--cherry); border: 4px solid #fff; box-shadow: 0 0 0 2px var(--cherry), 0 2px 8px rgba(0, 0, 0, .3); box-sizing: border-box; }
.zmap-name span { font: 600 11px/1.2 var(--sans); color: #3a2a30; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; transform: translate(-50%, -50%); display: inline-block; }
@media (max-width: 860px) { .zmap-map { height: 320px; } }
@media (max-width: 560px) { .zmap-places { grid-template-columns: 1fr; } }
.map-shop { display: flex !important; align-items: center; gap: 6px; width: auto !important; white-space: nowrap; }
.map-shop span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cherry); color: #fff; font-size: 20px; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); }
.map-shop b { font: 700 12px/1 var(--sans); color: var(--cherry); text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
@media (max-width: 1100px) {
  .delivery-grid { grid-template-columns: 1fr; }
  .delivery-map-wrap { position: static; order: -1; }
  .delivery-map { height: 60vh; }
}

/* Админка → Цветы: замены цветка */
.subs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; max-width: 320px; }
.sub-chip { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--blush); color: var(--cherry); font-weight: 600; }
.sub-chip.off { opacity: 0.55; text-decoration: line-through; }
.sub-chip button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 4px; font-size: 14px; line-height: 1; }
.subs select { border: 1px dashed var(--line); border-radius: 999px; background: none; color: var(--cherry); font-size: 12px; font-weight: 700; padding: 3px 8px; cursor: pointer; }

/* PHP-версия: скрытые блоки (меню, выпадашки) прячет атрибут hidden, даже если у класса свой display */
[hidden] { display: none !important; }

/* Админка → Доставка на телефоне: строка зоны/участка в две строки — «● Зона 1 ×», под ней расстояние и цена */
@media (max-width: 860px) {
  .delivery-grid { grid-template-columns: minmax(0, 1fr); }
  .delivery-map-wrap { position: static; }
  .delivery-map { height: 360px; min-height: 0; }
  .zone-edit, .area-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .zone-edit > *, .area-row > * { order: 4; }
  .zone-edit > :first-child, .area-row > :first-child { order: 1; }
  .zone-edit > b { order: 2; flex: 1 1 calc(100% - 90px); }
  .area-row > .input { order: 2; flex: 1 1 calc(100% - 90px); min-width: 0; }
  .zone-edit > button, .area-row > button { order: 3; }
  .zone-edit > .small.muted { margin-left: 34px; }
  .area-row > :nth-child(3) { margin-left: 34px; }
  .shop-edit { grid-template-columns: minmax(0, 1fr); }
}

/* Статьи (/blog): список по рубрикам и страница статьи (2026-10-24) */
.articles-group { padding-top: 48px; display: flex; flex-direction: column; gap: 20px; }
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: var(--river); }
.acard { display: flex; flex-direction: column; gap: 12px; text-decoration: none; background: var(--blush); border-radius: var(--radius); padding: 12px 12px 20px; }
.acard img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 16px; }
.acard-title { font-family: var(--serif); font-size: 21px; line-height: 1.2; padding: 0 6px; }
.acard:hover .acard-title { text-decoration: underline; text-underline-offset: 4px; }
.article-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 28px; }
.article { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.article h1 { font-size: 48px; }
.article-text { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: #3e2a33; overflow-wrap: anywhere; }
.article-text h2 { font-size: 30px; line-height: 1.15; color: var(--cherry); margin-top: 14px; }
.article-text h3 { font-size: 24px; line-height: 1.2; color: var(--cherry); margin-top: 8px; }
.article-text ul, .article-text ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.article-text img { width: auto; max-width: 100%; height: auto; border-radius: 20px; margin: 8px 0; }
.article-text p:has(> img) { display: flex; flex-wrap: wrap; gap: 12px; }
.article-aside { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; background: var(--blush); border-radius: var(--radius); padding: 24px; margin-top: 64px; position: sticky; top: 140px; }
.article-aside-title { font-family: var(--serif); font-size: 26px; line-height: 1.1; }
.articles-more { padding-top: 40px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--muted); }
.articles-more a { color: var(--muted); }
@media (max-width: 760px) {
  .article h1 { font-size: 34px; }
  .article-text { font-size: 16px; }
  .article-text h2 { font-size: 24px; }
  .article-wrap { gap: 28px; }
  .article-aside { margin-top: 0; max-width: none; position: static; }
}

/* Плашка про cookie (partials/counters.php): внизу экрана, пока не выбрали «Принять» или «Отклонить» */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; margin: 0 auto; max-width: 760px;
  display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 8px 30px rgba(94, 16, 41, .12); font-size: 14px;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar .btn { padding: 10px 18px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cherry); text-decoration: underline; cursor: pointer; font: inherit; }
.check.consent { align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check.consent input { flex: 0 0 auto; margin-top: 1px; }
.privacy h2 { font-size: 22px; margin-top: 24px; }
/* Логотипы платёжных систем в подвале (со старого сайта, обычно их требует банк) — на белой полосе, подвал тёмный */
.footer-pay { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin: 28px 0 20px; padding: 12px 18px; background: #fff; border-radius: 14px; width: fit-content; max-width: 100%; }
.footer-pay img { height: 28px; width: auto; max-width: 100%; }
.pay-mir { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 6px; background: linear-gradient(90deg, #0F754E, #00A0E3); color: #fff; font: 800 italic 17px/1 Arial, sans-serif; letter-spacing: .5px; }

/* SEO-блок внизу главной (2026-11-01) */
.seo-block p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }
.seo-block p a { color: inherit; text-decoration: underline; }
