/* На Расцвете — чёрно-белый и серый; цветными остаются только цветы. */
@font-face { font-family: 'Jost'; src: url('/fonts/Jost.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --ink: #141414;
  --ink-2: #2e2e2e;
  --muted: #4a4a4a;
  --muted-2: #6e6e6e;
  --line: #e2e2e0;
  --line-2: #d0d0ce;
  --soft: #f5f5f3;
  --white: #fff;
  --display: 'Jost', 'Futura', 'Century Gothic', 'Avenir Next', sans-serif;
  --text: 'Manrope', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1280px;
  --gut: 32px;
}
@media (max-width: 760px) { :root { --gut: 16px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); color: var(--ink); background: var(--white); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--muted); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: 64px 0; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark a:not(.btn) { color: #fff; }
.section + .section--line, .section--line { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .section { padding: 32px 0; } }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3vw, 40px); }
h3 { font-size: 20px; font-family: var(--text); font-weight: 600; line-height: 1.3; }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0; }
.eyebrow { font-size: 13px; letter-spacing: 0.16em; color: var(--muted-2); font-weight: 600; text-transform: uppercase; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--muted-2); }
.head-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; }
.head-row p { margin: 8px 0 0; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 26px;
  background: var(--ink); color: #fff; border: 1px solid var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.btn:hover { color: #fff; background: #000; }
.btn--ghost { background: #fff; color: var(--ink); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { color: var(--ink); background: #eee; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 20px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Полоса и шапка */
.topbar { background: var(--ink); color: #fff; font-size: 13px; }
.eve-note { background: #f9eeda; font-size: 14px; line-height: 1.4; }
.eve-note .wrap { padding-top: 9px; padding-bottom: 9px; text-align: center; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 9px; padding-bottom: 9px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img { width: 52px; height: 48px; object-fit: contain; }
.logo span { font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: 0.08em; line-height: 1; margin-bottom: 0; white-space: nowrap; }
.nav { display: flex; flex-wrap: nowrap; white-space: nowrap; gap: 6px 20px; font-size: 15px; font-weight: 500; min-width: 0; } /* меню всегда в одну строку */
@media (max-width: 1400px) { .nav { gap: 18px; font-size: 14px; } .header .wrap { gap: 16px 24px; } .login-btn span { display: none; } .login-btn { padding: 0 11px; } }
.nav a { text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; text-decoration: none; position: relative; }
.icon-btn .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.login-btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); border-radius: 22px; display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; font-size: 14px; }
.only-mobile { display: none; }
@media (max-width: 1200px) {
  .nav { display: none; }
  .only-mobile { display: inline-flex; }
  .login-btn span { display: none; }
  .login-btn { padding: 0 11px; }
}
@media (max-width: 760px) {
  .logo img { width: 34px; height: 31px; }
  .logo span { font-size: 16px; margin-bottom: 0; }
  .header .wrap { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .topbar .hide-sm { display: none; }
  .topbar .wrap { justify-content: center; }
}
/* Узкий телефон: иконки шапки плотнее, чтобы влезли телефон, кабинет, избранное, корзина и меню */
@media (max-width: 430px) {
  .header-actions { gap: 0; }
  .header-actions .icon-btn { width: 38px; }
  .login-btn { border: 0; padding: 0 8px; min-height: 40px; }
  .logo span { font-size: 14px; letter-spacing: 0.05em; }
  .logo img { width: 30px; height: 28px; }
}
/* Самые узкие (320 px): иконки ещё плотнее, чтобы шапка не вылезала за экран */
@media (max-width: 359px) {
  .header-actions .icon-btn { width: 32px; }
  .logo { gap: 6px; flex: none; }
  .logo img { width: 26px; height: 24px; }
  .logo span { font-size: 12px; letter-spacing: 0; }
}

/* Мобильное меню */
.menu { position: fixed; inset: 0; background: #fff; z-index: 50; display: none; flex-direction: column; overflow: auto; }
.menu:target, .menu.open { display: flex; }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--line); }
.menu-main { display: flex; flex-direction: column; padding: 0 16px; }
.menu-main a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--display); font-size: 22px; font-weight: 500; }
.menu-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding: 20px 16px; }
.menu-more a { text-decoration: none; }
.menu-foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); font-size: 14px; }

/* Нижняя панель на телефоне */
.tabbar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); } /* на iPhone полоса жестов под меню, иконки не обрезаются */
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; font-size: 11px; font-weight: 600; }
  .tabbar .icon { width: 22px; height: 22px; }
  .chat-fab { display: none !important; }
  .has-buybar { padding-bottom: 150px; }
}

.chat-fab { position: fixed; right: 24px; bottom: 24px; width: 64px; height: 64px; border-radius: 32px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 25; }
.chat-fab:hover { color: #fff; }
.chat-fab .icon { width: 28px; height: 28px; }

/* Фото-заглушка: цвет держит место, пока нет фото из CRM */
.ph { background: var(--tone, #e7e7e4); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ratio-1 { aspect-ratio: 1 / 1; }
.ratio-4-5 { aspect-ratio: 4 / 5; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* Герой */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-pics { flex: 1 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: 252px 252px; gap: 16px; }
.hero-pics .ph:first-child { grid-row: span 2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .hero { padding: 20px 0 24px; gap: 18px; }
  /* m0114: на телефоне тоже три фото — большое слева, два справа; высота блока прежняя */
  .hero-pics { order: -1; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 146px 146px; gap: 8px; }
  .hero .btn-row { flex-direction: column; }
  .lead { font-size: 15px; }
}

/* Чипы */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 48px; }
.chip { min-height: 44px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 22px; display: inline-flex; align-items: center; text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.chip[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
/* 08.11: на телефоне ряды кнопок переносятся, а не листаются вбок; разделы каталога — одной кнопкой (.sec-pick) */
@media (max-width: 760px) { .chips { flex-wrap: wrap; overflow: visible; gap: 6px; padding-bottom: 20px; } .chip { min-height: 34px; padding: 0 12px; font-size: 13px; } }
.sec-pick { display: none; }
@media (max-width: 760px) {
  .chips--sec { display: none; } /* на главной (chips--home) на телефоне разделов нет: ниже есть переход в каталог */
  .sec-pick { display: block; margin: 4px 0 12px; }
  .sec-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 22px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; list-style: none; cursor: pointer; }
  .sec-btn::-webkit-details-marker { display: none; }
  .sec-pick[open] .sec-btn span:last-child { transform: rotate(180deg); }
  .sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
  .sec-grid a { display: flex; align-items: center; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 12px; font-size: 13px; text-decoration: none; color: var(--ink); line-height: 1.2; }
  .sec-grid a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .sec-pick + .chips--sec + .chips--sub, .sec-pick + .chips--sec + .refine { margin-top: 0; }
}

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card { display: flex; flex-direction: column; text-decoration: none; background: #fff; }
.card .ph { aspect-ratio: 3 / 4; }
.card-body { padding: 14px 4px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1 0 auto; }
.section--soft .card-body { padding: 14px 14px 18px; }
.card-name { font-weight: 600; }
.card-fast { align-self: flex-start; background: var(--heart, #e0314b); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 14px; margin-bottom: 2px; white-space: nowrap; } /* витрина: доставка за час, под фото */
@media (max-width: 760px) { .card-fast { font-size: 11px; padding: 3px 8px; } }
@media (max-width: 359px) { .card-fast { white-space: normal; max-width: 100%; } }
.card-sub { font-size: 14px; color: var(--muted-2); }
.card-price { font-size: 18px; font-weight: 700; margin-top: auto; padding-top: 2px; } /* цены в ряду — на одной высоте */
.badge { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 14px; }
.badge.badge--fast { background: var(--heart, #e0314b); color: #fff; } /* витрина: доставка за час — яркая красная плашка */
.badge--line { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
@media (max-width: 760px) { .card-name { font-size: 14px; } .card-price { font-size: 15px; } .badge { top: 8px; left: 8px; font-size: 11px; } }

/* Галерея */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px 8px; }
@media (max-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.g-item { display: flex; flex-direction: column; gap: 8px; }
.g-item .ph { aspect-ratio: 3 / 4; } /* вертикальные, как снимает телефон: букет не режем */
.stars { letter-spacing: 2px; font-size: 14px; }
.g-text { font-size: 13px; line-height: 1.4; color: var(--ink-2); }

/* Сетки инфо */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.tile { border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.tile p { margin: 0; color: var(--muted); }
.tile--strong { border: 2px solid var(--ink); }
.tile a.more { font-weight: 600; margin-top: auto; text-decoration: none; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: center; border: 1px solid #3a3a3a; padding: 20px 22px; }
.steps b { font-family: var(--display); font-size: 28px; font-weight: 400; width: 28px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split > * { flex: 1 1 420px; min-width: 0; }
.section--dark .lead { color: #cfcfcf; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font-size: 24px; font-weight: 400; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 18px; color: var(--muted); max-width: 820px; }

/* Слоган */
.slogan { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.slogan img { width: 56px; height: 52px; object-fit: contain; }
.slogan p { margin: 0; max-width: 760px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; }

/* Подвал */
.footer { background: var(--soft); border-top: 1px solid var(--line); font-size: 14px; }
.footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer .col { display: flex; flex-direction: column; gap: 10px; }
.footer strong { font-size: 14px; }
.footer .logo img { width: 40px; height: 37px; }
.footer .logo span { font-size: 18px; }

/* Текстовые страницы */
.crumbs { font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0 0; }
.crumbs a { color: var(--muted-2); }
.page-head { padding: 24px 0 32px; display: flex; flex-direction: column; gap: 14px; }
.prose { max-width: 820px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: var(--ink-2); }
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose h3 { margin: 24px 0 10px; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); }
.table-scroll { overflow-x: auto; }
.note { background: var(--soft); padding: 14px 16px; font-size: 14px; }

/* Карточка товара */
.product { display: flex; flex-wrap: wrap; gap: 56px; padding: 8px 0 64px; }
.product-pics { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.product-pics .main { aspect-ratio: 4 / 5; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.thumbs .ph { aspect-ratio: 1 / 1; border: 0; cursor: pointer; padding: 0; }
.thumbs .ph[aria-current="true"] { outline: 2px solid var(--ink); outline-offset: -2px; }
.product-info { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.price-lg { font-size: 30px; font-weight: 700; }
.status { align-self: flex-start; display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; border: 1px solid var(--ink); border-radius: 16px; padding: 6px 12px; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: var(--ink); }
.author { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.author .ava { width: 36px; height: 36px; border-radius: 18px; background: #d9d9d6; flex: none; }
.label { font-size: 15px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 8px; }
.composition { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.8; }
.perks { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 20px; }
.perks span { display: flex; gap: 10px; align-items: center; }
.buybar { display: none; }
.checkout-bar { display: none; }
@media (max-width: 760px) {
  .checkout-bar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; justify-content: space-between; z-index: 29; }
  .checkout-bar.is-off { display: none; }
  .checkout-bar-sum { display: flex; flex-direction: column; line-height: 1.2; }
  .checkout-bar-sum b { font-size: 20px; }
  .checkout-bar .btn { flex: 0 1 220px; }
}
@media (max-width: 760px) {
  .product { gap: 20px; }
  .product-pics { margin: 0 calc(-1 * var(--gut)); }
  .thumbs { padding: 0 var(--gut); }
  .price-lg { font-size: 26px; }
  .buybar { display: flex; position: fixed; left: 0; right: 0; bottom: calc(64px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; gap: 12px; align-items: center; z-index: 29; }
  .buybar .btn { flex: 1; }
  .product-info .buy-desktop { display: none; }
}

/* Формы */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font-size: 14px; font-weight: 600; }
.input, select.input, textarea.input { min-height: 52px; border: 1px solid var(--line-2); padding: 12px 14px; background: #fff; border-radius: 0; width: 100%; }
textarea.input { resize: vertical; }
.input:focus { border-color: var(--ink); outline: none; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.check > span { flex: 1; }
.check--small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt > span { display: flex; flex-direction: column; gap: 4px; padding: 16px; min-height: 76px; border: 1px solid var(--line-2); background: #fff; height: 100%; }
.opt b { font-size: 15px; }
.opt small { font-size: 13px; color: var(--muted); }
.opt input:checked + span { border: 2px solid var(--ink); padding: 15px; }
.design input:checked + span { padding: 5px !important; }
.opt input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.box { border: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.box--strong { border: 2px solid var(--ink); }
.box h3 { font-size: 16px; }
.hidden { display: none !important; }
.error { color: #9b1c1c; font-size: 14px; }
.ok { font-size: 14px; }

/* Оформление */
.checkout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding: 32px 0 80px; }
.checkout-main { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 44px; }
.checkout-main section { display: flex; flex-direction: column; gap: 16px; }
.checkout-main h2 { font-family: var(--text); font-size: 20px; font-weight: 700; }
.summary { flex: 1 1 340px; min-width: 0; background: var(--soft); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 96px; }
.summary .row { display: flex; justify-content: space-between; gap: 12px; }
.summary .total { border-top: 1px solid var(--line-2); padding-top: 14px; font-size: 16px; font-weight: 600; align-items: baseline; }
.summary .total b { font-size: 26px; }
.cart-line { display: flex; gap: 12px; align-items: center; }
.cart-line .ph { width: 64px; height: 80px; flex: none; }
.cart-line .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); }
.qty button { width: 32px; height: 32px; border: 0; background: #fff; cursor: pointer; }
.qty span { min-width: 24px; text-align: center; font-size: 14px; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.design .ph { height: 110px; }
.design > span { padding: 6px !important; min-height: 0; }
.design .ph { width: 100%; }
.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.addon { border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.addon .ph { height: 110px; }
.addon .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.addon .row span, .addon .btn { white-space: nowrap; }
.pressed { background: var(--ink) !important; color: #fff !important; }
@media (max-width: 760px) { .summary { position: static; padding: 20px; } .checkout { padding-top: 20px; gap: 28px; } }

/* Канал */
.feed { display: flex; flex-direction: column; gap: 36px; max-width: 640px; }
.post { display: flex; flex-direction: column; gap: 12px; }
.post-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); }
.post .ph { aspect-ratio: 4 / 3; }
.post p { margin: 0; font-size: 16px; }

/* Кабинет */
.points { background: var(--ink); color: #fff; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.points b { font-family: var(--display); font-weight: 500; font-size: 48px; line-height: 1; }
.points span { color: #cfcfcf; font-size: 14px; }
.reflink { display: flex; gap: 8px; align-items: center; background: var(--soft); padding: 10px 12px; font-size: 14px; }
.reflink code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stats div { background: var(--soft); padding: 12px; }
.stats b { display: block; font-size: 22px; }
.order-row { border: 1px solid var(--line); padding: 12px; display: flex; gap: 12px; align-items: center; }
.order-row .ph { width: 64px; height: 64px; flex: none; }
.order-row .grow { flex: 1; min-width: 0; font-size: 14px; display: flex; flex-direction: column; }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; align-items: start; }

/* Вход */
.auth { max-width: 440px; margin: 0 auto; padding: 40px 0 80px; display: flex; flex-direction: column; gap: 22px; }
.wrap.auth { padding-left: var(--gut); padding-right: var(--gut); } /* поля по бокам на телефоне (вход, «Спасибо», чат) */
.code-inputs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.code-inputs input { min-height: 60px; text-align: center; font-size: 24px; font-weight: 600; border: 1px solid var(--ink); }
.fab-circle { width: 64px; height: 64px; border-radius: 32px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; }
.fab-circle .icon { width: 28px; height: 28px; }

@media print { .header, .footer, .tabbar, .chat-fab, .topbar { display: none; } }

/* Кабинет: текущий заказ */
.order-card { border: 1px solid var(--line-2); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.order-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-card header div { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.order-card header .muted { font-size: 13px; }
.order-photo { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.order-photo .ph { aspect-ratio: 4 / 5; max-height: 420px; width: 100%; }
.order-photo figcaption { font-size: 13px; color: var(--muted); }
.order-photo--wait { background: var(--soft); padding: 28px 16px; align-items: center; text-align: center; color: var(--muted); font-size: 14px; }
.order-photo--wait svg { width: 28px; height: 28px; }
.steps-line { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; counter-reset: s; }
.steps-line li { font-size: 13px; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line-2); }
.steps-line li.done { color: var(--ink); border-top-color: var(--ink); font-weight: 600; }
.order-card header > b { white-space: nowrap; }

/* Сезонность */
.chips:has(+ .chips--sub) { padding-bottom: 12px; }
.chip--sm { font-size: 13px; padding: 0 14px; min-height: 36px; font-weight: 400; }
.card-season { font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.card.is-off .ph { filter: grayscale(.7); opacity: .75; }
.badge--off { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.off-season { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 12px; }
.off-season h2 { font-size: 28px; }
.off-season > p { max-width: 720px; margin: 0 0 8px; }
.status--off { background: #fff; border-color: var(--line-2); }

/* Флорист */
.florist-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 8px 0 32px; }
.florist-hero > .ph { flex: 0 1 400px; width: 400px; max-width: 100%; aspect-ratio: 3 / 4; height: auto; } /* фото флориста — вертикальное, как снимает телефон */
.florist-hero > .stack { flex: 1 1 420px; min-width: 0; }
.tag { border: 1px solid var(--line-2); border-radius: 16px; padding: 6px 12px; font-size: 13px; }
.florist-link { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px 14px 10px 10px; text-decoration: none; }
.florist-link > span { display: flex; flex-direction: column; }
.ph.ava-lg { width: 48px; height: 64px; border-radius: 6px; flex: none; } /* вертикальное мини-фото флориста */
.author a { color: inherit; }
@media (max-width: 760px) { .florist-hero { gap: 24px; } .florist-hero > .ph { flex-basis: auto; width: min(100%, 280px); } }

/* Блог */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.post-card:hover .post-card-title { text-decoration: underline; }
.post-cover { aspect-ratio: 3 / 4; display: flex; align-items: flex-end; padding: 12px; }
.post-cover span { background: #fff; color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; }
.post-cover--wide { aspect-ratio: 16 / 7; margin: 24px 0 8px; }
.post-card-body { display: flex; flex-direction: column; gap: 6px; }
.post-card-title { font-size: 17px; line-height: 1.35; }
.hub-banner { display: flex; flex-direction: column; gap: 10px; background: var(--ink); color: #fff; padding: 28px; text-decoration: none; margin-top: 8px; }
.hub-banner b { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.15; }
.hub-banner > span:not(.btn):not(.eyebrow) { color: #cfcfcf; max-width: 640px; }
.hub-banner .eyebrow { color: #cfcfcf; }
.hub-banner .btn { align-self: flex-start; margin-top: 6px; }
.article { max-width: 760px; padding: 16px 0 0; }
.article .prose { max-width: none; }
.table-scroll { overflow-x: auto; }

/* Канал */
.channel { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.channel .feed { flex: 2 1 520px; }
.channel-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
.mini-card { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.mini-card .ph { width: 72px; height: 72px; flex: none; }
.mini-card > span { display: flex; flex-direction: column; font-size: 14px; }
.post-meta a { color: inherit; }
.post-media { position: relative; }
.post-media .play { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(20,20,20,.75); }
.post-media .play::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.post-video { width: 100%; aspect-ratio: 4 / 3; background: #000; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .channel-side { position: static; } }

/* ---------- языки и иностранная версия ---------- */
.langs { display: inline-flex; gap: 2px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.langs a, .langs span { padding: 6px 7px; text-decoration: none; border-radius: 2px; }
.langs a:hover { text-decoration: underline; text-underline-offset: 4px; }
.langs [aria-current] { background: var(--ink); color: #fff; }
.langs--top { font-size: 12px; }
.langs--top a { color: inherit; }
.langs--top [aria-current] { background: #fff; color: var(--ink); }
.topbar-r { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.menu-more .langs { grid-column: 1 / -1; font-size: 15px; }
@media (max-width: 760px) {
  body.intl { padding-bottom: 0; }
  .intl .topbar .wrap > span:first-child { font-size: 12px; }
}
@media (max-width: 760px) {
  .intl .header-actions > .langs { display: none; }
  .intl .topbar .wrap { justify-content: space-between; flex-wrap: nowrap; align-items: center; }
}
.opts--pay { grid-template-columns: 1fr; margin-bottom: 4px; }
/* Оформление: компактные варианты, шаги нумеруются сами (секции упаковки и дополнений бывают не всегда) */
.checkout-main { counter-reset: step; }
.checkout-main h2.step::before { counter-increment: step; content: counter(step) ". "; }
.opts--row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.opts--row.opts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts--row .opt > span { min-height: 0; padding: 12px 12px; gap: 2px; justify-content: center; }
.opts--row .opt input:checked + span { padding: 11px 11px; }
.opts--row .opt b { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.opts--row .opt small { font-size: 12px; line-height: 1.3; }
.stack--tight { gap: 12px; }
.box--tight { padding: 14px; gap: 10px; }
.fields--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.more { border: 1px solid var(--line); }
.more > summary { cursor: pointer; padding: 12px 14px; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-size: 20px; font-weight: 400; line-height: 1; }
.more[open] > summary::after { content: "−"; }
.more-body { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 14px; }
.more-body .lbl { font-size: 14px; font-weight: 600; margin-top: 4px; }
.more--plain { border: 0; }
.more--plain > summary { padding: 0; font-size: 13px; font-weight: 500; color: var(--muted); justify-content: flex-start; gap: 6px; }
.more--plain > summary::after { font-size: 15px; }
.lk-ch .chips { padding: 0; }
@media (max-width: 760px) {
  .checkout-main { gap: 30px; }
  .checkout-main section { gap: 12px; }
  .fields { gap: 12px; }
  .fields--2 .input { padding-left: 10px; padding-right: 6px; }
  .addons--strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(-1 * var(--gut)); padding: 0 var(--gut) 6px; scrollbar-width: none; }
  .addons--strip::-webkit-scrollbar { display: none; }
  .addons--strip .addon { flex: 0 0 150px; scroll-snap-align: start; }
  .addons--strip .addon .ph { height: 84px; }
  .addons--strip .addon .row { flex-direction: column; align-items: stretch; }
}

/* Лента «Заказы наших клиентов» — как Instagram */
.feed-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
@media (max-width: 760px) { .feed-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; margin: 0 calc(-1 * var(--gut)); } }
:root { --heart: #e0314b; } /* сердечко избранного — единственный цветной значок (решение директора 02.11) */
.feed-cell { position: relative; }
.feed-item { position: relative; display: block; }
/* Сердечко: в избранное */
.fav-btn { position: absolute; right: 4px; top: 4px; /* сверху: внизу справа логотип на фото */ width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; padding: 0; color: #fff; }
/* Без подложки: белый контур с тенью виден и на светлом, и на тёмном фото */
.fav-btn .icon { width: 24px; height: 24px; stroke-width: 2; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.fav-btn .icon, .fav-inline .icon { width: 20px; height: 20px; fill: none; transition: fill .15s, transform .15s; }
.fav-btn[aria-pressed="true"] .icon, .fav-inline[aria-pressed="true"] .icon { fill: var(--heart); stroke: var(--heart); }
.fav-btn[aria-pressed="true"] .icon { stroke: #fff; stroke-width: 1.4; }
.fav-btn:active .icon { transform: scale(.85); }
.fav-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.h1-heart { width: .8em; height: .8em; vertical-align: -0.05em; margin-right: .25em; fill: var(--heart); stroke: var(--heart); }
.feed-item .ph { aspect-ratio: 3 / 4; } /* как снимает телефон — не режем букет */
.feed-item .ph img { transition: opacity .2s; }
.feed-item:hover .ph img { opacity: .9; }
.feed-mark { position: absolute; top: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.feed-mark .icon { width: 14px; height: 14px; }
.viewer { border: 0; padding: 0; max-width: min(960px, 100vw); width: 100%; max-height: 100dvh; background: #fff; }
.viewer::backdrop { background: rgba(20, 20, 20, .85); }
.viewer-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.viewer-ph { aspect-ratio: 3 / 4; max-height: 86dvh; width: 100%; background: #141414; }
.viewer-ph img { width: 100%; height: 100%; object-fit: contain; }
.viewer-info { display: flex; flex-direction: column; gap: 12px; padding: 56px 24px 24px; align-items: flex-start; }
.viewer-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: #fff; }
.viewer-prev, .viewer-next { position: absolute; top: 40%; z-index: 2; background: #fff; }
.viewer-prev { left: 8px; }
.viewer-next { left: calc(58% - 52px); }
.viewer-next .icon { transform: scaleX(-1); }
@media (max-width: 760px) {
  .viewer { max-height: 100dvh; height: 100dvh; max-width: 100vw; margin: 0; }
  .viewer-body { grid-template-columns: 1fr; }
  .viewer-ph { max-height: 70dvh; }
  .viewer-info { padding: 16px; }
  .viewer-next { left: auto; right: 8px; }
}
.feed-filters { display: flex; flex-direction: column; gap: 0; margin-bottom: 8px; }
.feed-filters .chips { margin-bottom: 0; padding-bottom: 10px; align-items: center; }
.chips-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 4px; min-width: 52px; }
.chip-n { opacity: .55; font-size: .9em; margin-left: 2px; }
@media (max-width: 760px) { .feed-filters .chips { padding-bottom: 8px; } }

/* Цветы под заказ */
.flower-req section { margin-bottom: 32px; }
.flower-req h2 { font-size: 22px; margin-bottom: 12px; }
.flower-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
@media (max-width: 760px) { .flower-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .flower-card .ph { aspect-ratio: 1 / 1; } .flower-body { padding: 6px 8px 8px; font-size: 13px; } .flower-body .tiny { font-size: 11px; } .flower-tick { width: 22px; height: 22px; top: 4px; right: 4px; font-size: 12px; } }
.flower-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); cursor: pointer; background: #fff; }
.flower-card input { position: absolute; opacity: 0; pointer-events: none; }
.flower-card .ph { aspect-ratio: 3 / 4; }
.flower-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.flower-tick { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; color: transparent; }
.flower-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.flower-card:has(input:checked) .flower-tick { background: var(--ink); color: #fff; border-color: var(--ink); }
.flower-card:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .flower-card .ph { aspect-ratio: 1 / 1; } }

/* Карточка букета с кнопкой «В корзину» (в статьях блога) */
.card-buy { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.card-buy > :first-child { flex: 1 0 auto; }
/* Кнопки в ряду карточек — на одной высоте, по нижнему краю */
.card-buy-btn { align-self: flex-start; margin-left: 4px; margin-top: auto; }
.card-buy-btn .icon { width: 16px; height: 16px; }
.card-buy-btn.pressed, .card-buy-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.post-rows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
@media (max-width: 900px) { .post-rows { grid-template-columns: 1fr; gap: 8px; } }
.post-row { display: flex; gap: 12px; align-items: center; text-decoration: none; border: 1px solid var(--line); padding: 10px; background: #fff; }
.post-row:hover { border-color: var(--ink); }
.post-row .ph { width: 64px; height: 64px; flex: none; }
.post-row-body { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.3; }

/* Открытка, которой нет в наличии */
.opt.design.is-off { opacity: .5; cursor: not-allowed; }

/* Фото внутри текста страниц и статей */
.prose-figure { margin: 24px 0; max-width: 420px; }
.prose-figure--wide { max-width: 720px; } /* горизонтальное фото — шире */
.prose-figure img { display: block; width: 100%; height: auto; border-radius: 12px; background: #f1f0ec; } /* фото в родных пропорциях, без обрезки */
.prose-figure figcaption { font-size: 14px; color: var(--muted, #6b6b6b); margin-top: 8px; }
.prose-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 24px 0; max-width: 820px; align-items: start; }
.prose-gallery .prose-figure { margin: 0; max-width: none; }
@media (max-width: 480px) { .prose-gallery { grid-template-columns: 1fr 1fr; gap: 10px; } .prose-gallery figcaption { font-size: 13px; } }

/* Обложка статьи с фото — на всю плашку */
.post-cover { position: relative; overflow: hidden; }
.post-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.post-cover span { position: relative; z-index: 1; }
@media (max-width: 640px) { .post-cover--wide { aspect-ratio: 4 / 3; } }
.post-cover--wide { aspect-ratio: 16 / 9; }
.post-cover--wide img { object-position: 50% 25%; }
@media (max-width: 640px) { .post-cover--wide { aspect-ratio: 4 / 3; } }

/* Обложка статьи с фото: фото вертикальные (3:4, как снимает телефон), поэтому показываем целиком, не режем в широкую полосу */
.post-cover--wide.post-cover--photo { aspect-ratio: auto; max-width: 480px; display: block; padding: 0; }
.post-cover--wide.post-cover--photo img { position: static; width: 100%; height: auto; object-fit: initial; }
.post-card .post-cover img { object-position: 50% 50%; }

/* Подсказка «посмотрите заказы клиентов» под каталогом */
.like-hint { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.like-hint > span { flex: 1 1 320px; min-width: 0; }
.chips--sort { align-items: center; padding-top: 0; padding-bottom: 28px; }


/* ---------- Чат (v12) ---------- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat-wrap { max-width: 760px; padding-top: 24px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 14px; min-height: calc(100vh - 220px); }
.chat-head h1 { font-size: 32px; margin: 0; }
.chat-status { margin: 4px 0 0; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.chat-status.is-on::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #2fa84f; }
.chat-like { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px; }
.chat-like > div { display: flex; flex-direction: column; gap: 2px; }
.ph.chat-like-ph { width: 54px; height: 72px; flex: none; }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.chat-empty { color: var(--muted); font-size: 15px; text-align: center; margin: 24px auto; max-width: 420px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; display: flex; flex-direction: column; gap: 6px; }
.msg--client { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg--admin { align-self: flex-start; background: #f1f0ed; border-bottom-left-radius: 4px; }
.msg--system { align-self: center; background: none; color: var(--muted); font-size: 13px; text-align: center; max-width: 92%; }
.msg-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.msg-time { font-size: 11px; opacity: .6; align-self: flex-end; }
.msg-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-photos a { display: block; width: 140px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 10px; background: #e7e7e4; }
.msg-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.msg.is-sending { opacity: .6; }
.order-chat { align-self: stretch; border: 1px solid var(--ink); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: #fff; color: var(--ink); font-size: 14px; text-align: left; max-width: 100%; }
.order-chat b { font-size: 16px; }
.order-chat .btn { align-self: flex-start; margin-top: 4px; }
.chat-form { position: sticky; bottom: 0; background: #fff; padding: 10px 0 12px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 22px; padding: 11px 16px; font: inherit; font-size: 16px; max-height: 160px; min-height: 44px; }
.chat-attach, .chat-send { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; border: 1px solid var(--line-2); background: #fff; }
.chat-send { background: var(--ink); color: #fff; border-color: var(--ink); }
.chat-send:disabled { opacity: .5; }
.chat-previews { display: flex; gap: 6px; flex-wrap: wrap; }
.chat-previews:empty { display: none; }
.chat-prev { position: relative; width: 56px; height: 72px; border-radius: 8px; overflow: hidden; background: #e7e7e4; }
.chat-prev img { width: 100%; height: 100%; object-fit: cover; }
.chat-prev button { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 1; cursor: pointer; }
.chat-contact { border: 1px solid var(--line); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-contact-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chat-contact-row .input { flex: 1 1 140px; }
.fab-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--heart, #e0314b); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.tabbar a { position: relative; }
.tabbar .fab-count { top: 4px; right: calc(50% - 22px); }
@media (max-width: 760px) {
  .chat-wrap { padding-top: 12px; min-height: calc(100vh - 200px); }
  .chat-head h1 { font-size: 24px; }
  .is-chat .chat-form { bottom: calc(64px + env(safe-area-inset-bottom)); }
  .msg-photos a { width: 110px; }
}
.chat-contact .link { background: none; border: 0; padding: 0; text-decoration: underline; color: var(--muted); align-self: flex-start; cursor: pointer; }
.is-chat .slogan-band, .is-chat .footer { display: none; } /* чат как мессенджер: без подвала, прокрутка до последнего сообщения */

/* Согласие на cookie (Яндекс Метрика) */
.cc { position: fixed; left: 16px; right: 16px; bottom: 16px; max-width: 520px; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 8px 28px rgba(0,0,0,.15); padding: 16px; z-index: 40; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.cc p { margin: 0; }
@media (max-width: 760px) { .cc { bottom: calc(72px + env(safe-area-inset-bottom)); } }

/* Фильтры и сортировка: на телефоне под кнопкой, на компьютере всегда открыты (site.js ставит open) */
.refine > summary { list-style: none; }
.refine > summary::-webkit-details-marker { display: none; }
.refine-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2, #d9d9d4); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; margin-bottom: 16px; }
@media (max-width: 760px) {
  .refine { margin: -8px 0 20px; }
  .refine-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2, #d9d9d4); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; }
  .refine[open] .refine-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
  .refine-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--heart, #e0314b); color: #fff; font-size: 12px; }
  .refine-body { padding-top: 14px; }
}
.chips:has(+ .refine) { padding-bottom: 16px; }
.refine-body > .chips { padding-top: 0; padding-bottom: 12px; }
.refine-body > :last-child { padding-bottom: 28px; }
/* v15: экран ПИН кабинета */
.pin { display: flex; flex-direction: column; gap: 14px; text-align: center; padding-top: 40px; padding-bottom: 64px; }
.pin-msg { min-height: 2.6em; margin: 0; color: var(--danger, #b42318); }
/* m0216: экран ПИН на телефоне — заголовок, клетки и клавиатура в один экран, без плашки намёка и нижнего меню */
body.pin-screen .hint-offer, body.pin-screen .tabbar, body:has(form.pin) .hint-offer, body:has(form.pin) .tabbar { display: none !important; }
body.pin-screen, body:has(form.pin) { padding-bottom: 0 !important; }
@media (max-width: 760px) {
  body.pin-screen .topbar, body:has(form.pin) .topbar { display: none; }
  .pin { gap: 10px; padding-top: 12px; padding-bottom: 24px; }
  .pin h1 { font-size: 24px; }
  .pin p.muted { font-size: 14px; margin: 0; }
  .pin-dots i { width: 48px; height: 54px; }
  .pin-pad { gap: 8px; }
  .pin-pad button { height: 52px; }
}
.pin h1 { font-size: 28px; }
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 8px 0 0; cursor: text; }
.pin-dots i { width: 52px; height: 60px; border: 1.5px solid var(--line-2, #c9c9c4); border-radius: 14px; display: grid; place-items: center; }
.pin-dots i.f { border-color: var(--ink); }
.pin-dots i.f::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.pin-input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 320px; margin: 4px auto 0; width: 100%; }
.pin-pad button { height: 56px; border: 0; border-radius: 14px; background: #f1f0ec; font-size: 22px; font-weight: 500; color: var(--ink); cursor: pointer; }
.pin-pad button:active { background: #e3e2dc; }
/* m0156: подпись флориста («главная по горшочкам») */
.florist-role { margin: -6px 0 0; font-size: 18px; color: var(--heart, #e0314b); font-weight: 600; }
.florist-role-sm { color: var(--heart, #e0314b); font-weight: 600; }
.florist-link .florist-role-sm { font-size: 14px; line-height: 1.3; }
/* Плашки флористов на «О нас» — одинаковой ширины: на телефоне во всю ширину, на компьютере сеткой */
.florist-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.florist-links .florist-link { min-width: 0; }
@media (max-width: 760px) { .florist-links { grid-template-columns: 1fr; } }
/* Главная, «Заказы наших клиентов»: всегда целые ряды (6 / 8 / 6 / 6 фото), без одинокого фото внизу */
.gallery--home { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gallery--home > :nth-child(n+7) { display: none; }
@media (max-width: 1199px) { .gallery--home { grid-template-columns: repeat(4, minmax(0, 1fr)); } .gallery--home > :nth-child(n+7) { display: flex; } }
@media (max-width: 899px) { .gallery--home { grid-template-columns: repeat(3, minmax(0, 1fr)); } .gallery--home > :nth-child(n+7) { display: none; } }
@media (max-width: 760px) { .gallery--home { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* «Намекнуть» */
.hint-btn { position: relative; }
.hint-menu { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 8px; }
.hint-menu a, .hint-menu button { display: inline-flex; align-items: center; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; color: inherit; text-decoration: none; cursor: pointer; }
.hint-menu a:hover, .hint-menu button:hover { border-color: currentColor; }
.g-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 8px 0 64px; }
.g-single-ph .ph { aspect-ratio: 3 / 4; }
@media (max-width: 760px) { .g-single { grid-template-columns: 1fr; gap: 20px; } }
.g-open { display: block; color: inherit; cursor: zoom-in; }
.hint-box { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.hint-note { margin: 0; color: var(--muted, #6b6b6b); max-width: 420px; }

/* Скидка по намёку: пудрово-розовая плашка с таймером (решение директора 05.11) */
.hint-offer { background: #fbeff0; color: var(--ink); border-bottom: 1px solid #f1d6da; position: relative; }
.hint-offer .wrap { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; flex-wrap: wrap; position: relative; }
.hint-offer .ho-emoji { font-size: 30px; line-height: 1; }
.hint-offer .ho-text { flex: 1 1 380px; min-width: 0; }
.hint-offer b { display: block; font-family: var(--display); font-size: 22px; font-weight: 500; margin-bottom: 2px; }
.hint-offer p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; }
.hint-offer .ho-note { display: block; margin-top: 4px; font-size: 12px; color: var(--muted-2); }
.hint-offer .ho-timer { display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border: 1px solid #f1d6da; border-radius: 14px; padding: 8px 18px; }
.hint-offer .ho-clock { font-family: var(--display); font-size: 28px; font-variant-numeric: tabular-nums; letter-spacing: .03em; min-width: 6.2ch; text-align: center; }
.hint-offer .ho-cap { font-size: 11px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .08em; }
.hint-offer .ho-x { background: none; border: 0; color: var(--muted-2); font-size: 22px; cursor: pointer; align-self: flex-start; }
@media (max-width: 760px) {
  .hint-offer .wrap { gap: 10px; padding-top: 12px; padding-bottom: 12px; padding-right: 40px; }
  .hint-offer b { font-size: 18px; }
  .hint-offer p { font-size: 14px; }
  .hint-offer .ho-emoji, .hint-offer .ho-note { display: none; }
  .hint-offer .ho-timer { flex-direction: row; gap: 10px; align-items: baseline; padding: 6px 14px; border-radius: 999px; }
  .hint-offer .ho-clock { font-size: 20px; }
  .hint-offer .ho-x { position: absolute; right: 8px; top: 6px; }
}
.hint-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.hint-old { color: var(--muted-2); font-size: .7em; margin-left: 10px; font-weight: 400; }
.hint-price-row .hint-old { margin-left: 0; font-size: 20px; }
.hint-tag { display: inline-block; margin-left: 0; background: #fbeff0; border: 1px solid #f1d6da; font-size: 13px; padding: 3px 10px; border-radius: 999px; font-weight: 600; vertical-align: middle; }

/* Подбор букета */
.podbor { display: grid; gap: 8px; margin-bottom: 8px; }
.podbor-q { border: 0; padding: 0; margin: 0; }
.podbor-q legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.podbor .chips { padding: 4px 0 12px; }
.podbor .chip { cursor: pointer; position: relative; }
.podbor .chip input { position: absolute; opacity: 0; pointer-events: none; }
.podbor .chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.podbor .chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) { .podbor .chips { flex-wrap: wrap; overflow: visible; } }
.ask-box { border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; }

/* Бюджет «от … до …» в фильтрах каталога */
.budget { align-items: center; }
.budget-f { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 12px; height: 36px; font-size: 14px; color: var(--muted); flex: 0 0 auto; }
.budget-f input { border: 0; outline: 0; width: 72px; font: inherit; color: var(--ink); background: transparent; padding: 0; }
.budget-f:focus-within { border-color: var(--ink); }
.budget-r { color: var(--muted); font-size: 14px; }
.budget button.chip { cursor: pointer; font: inherit; font-size: 14px; }
.chips.budget { flex-wrap: wrap; overflow: visible; row-gap: 8px; }
.budget button.chip { background: var(--ink); color: #fff; border-color: var(--ink); }

/* v13: фото готового букета в кабинете */
.lk-photos { margin-top: 10px; }
.lk-photos-t { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.lk-photos-g { display: flex; gap: 8px; flex-wrap: wrap; }
.lk-photos-g a { display: block; width: 104px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: var(--soft); }
.lk-photos-g img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Подбор букета на главной и в сетке каталога (решение директора 06.11) */
.pb-home { background: #fbeff0; border-radius: 24px; padding: 32px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.pb-home h2 { font-size: 34px; margin: 0 0 8px; }
.pb-home p { margin: 0; color: var(--muted); }
.pb-q { font-weight: 600; margin-bottom: 10px; }
.pb-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.pb-opts a { background: #fff; border: 1px solid #f1d6da; border-radius: 999px; padding: 12px 18px; font-weight: 600; text-decoration: none; color: var(--ink); }
.pb-opts a:hover { border-color: var(--ink); }
@media (max-width: 760px) {
  .pb-home { grid-template-columns: 1fr; padding: 22px; border-radius: 20px; gap: 18px; }
  .pb-home h2 { font-size: 26px; }
  .pb-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pb-opts a { text-align: center; padding: 12px 8px; font-size: 15px; }
}
.pb-card { background: #fbeff0; border-radius: 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 22px; aspect-ratio: 3 / 4; color: var(--ink); text-decoration: none; }
.pb-card b { display: block; color: var(--ink); font-family: var(--display); font-size: 24px; font-weight: 500; line-height: 1.15; margin-bottom: 8px; }
.pb-card span:not(.pb-emoji) { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; }
.pb-card i { font-style: normal; align-self: flex-start; background: var(--ink); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 600; font-size: 14px; }
.pb-emoji { font-size: 34px; line-height: 1; }
@media (max-width: 760px) { .pb-card { padding: 16px; } .pb-card b { font-size: 19px; } .pb-card span:not(.pb-emoji) { font-size: 13px; } .pb-card i { padding: 9px 12px; font-size: 13px; } }
[data-gt][hidden], [data-pb][hidden], [data-podbor-gal][hidden] { display: none !important; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 15px; z-index: 60; box-shadow: 0 6px 24px rgba(0,0,0,.18); max-width: calc(100% - 32px); text-align: center; }

/* v14: уведомления о заказе в кабинете */
.push-box { border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.push-box p { margin: 0; }
.push-box .pin-msg { color: var(--muted); min-height: 0; }

/* Поиск */
.search { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px 0 18px; height: 48px; background: #fff; max-width: 640px; }
.search:focus-within { border-color: var(--ink); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.search button svg { width: 18px; height: 18px; }
.only-desktop { display: inline-flex; }
@media (max-width: 1200px) { .only-desktop { display: none; } }
.search--menu { margin: 16px 16px 0; max-width: none; }
.search--cat { margin: 0 0 16px; }
.search--page { margin-top: 8px; }
.addons--links { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.addons--links .addon { text-decoration: none; color: inherit; }
.addons--links .addon:hover { border-color: var(--ink, currentColor); }
.perks a { color: inherit; }
.perks span span { display: inline; }
/* «Добавить к букету» (07.11): до 10 карточек; на компьютере одна строка, на телефоне лента с прокруткой вбок */
.addons--links { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
@media (max-width: 700px) {
  .addons--links { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 0 16px 8px; scrollbar-width: none; }
  .addons--links::-webkit-scrollbar { display: none; }
  .addons--links .addon { flex: 0 0 42%; scroll-snap-align: start; }
}
/* Акции (07.11): плашка скидки на фото и зачёркнутая старая цена */
.card .ph { position: relative; }
.sale-badge { position: absolute; bottom: 12px; left: 12px; z-index: 1; background: #E0262F; color: #fff; font-weight: 700; font-size: 17px; line-height: 1; padding: 9px 14px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
@media (max-width: 700px) { .card .sale-badge { left: 10px; bottom: 10px; font-size: 14px; padding: 7px 11px; } }
.card-price:has(.old-price) { color: #E0262F; }
.sale-badge--inline { position: static; display: inline-block; }
.old-price { color: #8a8a85; font-weight: 400; font-size: .85em; margin-left: 6px; }
.old-price--lg { font-size: 22px; margin-left: 0; }
.sale-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* Поиск в чёрной строке сверху (07.11): в шапке иконка наезжала на меню */
.topbar-search { display: inline-flex; align-items: center; gap: 6px; margin-right: 20px; font-weight: 500 !important; }
.topbar-search svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .topbar-search { display: none; } }

.sale-row .price-lg { color: #E0262F; }
/* Дополнения со скидкой 500 ₽ (07.11) */
.addon-price b { color: #E0262F; }
.addon-price .addon-note { display: block; color: #8a8a85; }
/* Скидка за несколько товаров в корзине (07.11) */
.multi-row span, .multi-row b { color: #E0262F; font-weight: 700; }
.multi-hint { display: grid; gap: 6px; justify-items: start; background: #FBE3E8; border-radius: 12px; padding: 14px 16px; margin-top: 4px; }
.multi-hint.hidden { display: none; }
.multi-hint b { color: #6B2337; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.addons-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.addons-head h2 { margin: 0 !important; width: auto !important; flex: 0 1 auto; }
/* 07.11: меню по центру, как надпись логотипа (раньше прижималось вниз к надписи у нижнего края знака) */
/* Избранное (07.11): сердечко в шапке красное, когда что-то отмечено; сердечко на карточках букетов */
.fav-head.is-on .icon { fill: var(--heart, #e0314b); stroke: var(--heart, #e0314b); }
.card .ph { position: relative; }
.card .fav-btn { z-index: 2; }
/* Корзина (m0271): цена не шире нужного, новая над зачёркнутой; счётчик в одну линию; подпись про скидку на всю ширину */
[data-lines] .line-price { display: flex; flex-direction: column; align-items: flex-end; flex: none; white-space: nowrap; line-height: 1.25; }
[data-lines] .line-price .old-price { margin-left: 0; }
[data-lines] .qty-row { display: flex; align-items: center; gap: 6px; white-space: nowrap; flex-wrap: nowrap; }
[data-lines] .row > span:last-child { flex: none; white-space: nowrap; }
[data-lines] .line-why { color: #E0262F; margin-top: -6px; text-align: right; }
[data-lines] .row > div:nth-child(2) { min-width: 0; }
@media (max-width: 420px) {
  [data-lines] .qty-row .btn { width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; }
  [data-lines] .qty-row { gap: 4px; }
  [data-lines] .ph { width: 44px !important; height: 44px !important; }
}
/* «Привезём под заказ» в статье (08.11): компактные карточки цветов */
.grid--flowers { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.grid--flowers .ph { aspect-ratio: 1 / 1; }

/* 08.11 вариант А: строка «Фильтры» слева + меню «Сортировка» справа; фильтры раскрываются под ней на всю ширину */
.refine-row { position: relative; margin: 0 0 4px; min-height: 56px; }
.refine-row .refine { margin: 0; }
.refine[open] > .refine-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort-pick { position: absolute; right: 0; top: 0; z-index: 5; }
.sort-pick > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border: 1px solid var(--line-2, #d9d9d4); border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; white-space: nowrap; }
.sort-pick > summary::-webkit-details-marker { display: none; }
.sort-k { color: var(--muted, #777); font-weight: 500; }
.sort-menu { position: absolute; right: 0; top: 46px; min-width: 200px; background: #fff; border: 1px solid var(--line-2, #d9d9d4); border-radius: 14px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.08); display: grid; }
.sort-menu a { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: 14px; }
.sort-menu a:hover { background: #f4f4f1; }
.sort-menu a[aria-current] { font-weight: 600; }
.refine-row--solo { min-height: 56px; }
@media (max-width: 760px) { .refine-row .refine { margin: 0; } .sort-k { display: none; } .sort-pick > summary { padding: 0 14px; } }

/* 08.11 (m0284): ряд карточек внутри статьи блога; на телефоне две колонки, без прокрутки вбок */
.prose .post-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 32px; }
.prose .post-cards a { text-decoration: none; }
.prose .post-cards p { margin: 0; }
.post-cards .ph img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.post-cards .ph-link { display: block; width: 100%; height: 100%; }
@media (max-width: 760px) { .prose .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

/* Избранное: под фото из «Заказов клиентов» кнопка «Хочу похожий» (m0284) */
.feed-grid--fav { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feed-grid--fav .feed-like { margin-top: 8px; width: 100%; justify-content: center; }
@media (max-width: 760px) { .feed-grid--fav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; } }

/* v19: «Спасибо» для букета «под заказ»: фото администратора слева, шаги справа */
.tz { display: grid; grid-template-columns: 420px 1fr; gap: 56px; align-items: center; max-width: 1040px; margin: 56px auto 72px; padding: 0 var(--gut, 24px); }
.tz--nophoto { grid-template-columns: 1fr; max-width: 720px; }
.tz-ph { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: #f3d9dc; }
.tz-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tz h1 { font-size: 40px; margin: 0 0 12px; }
.tz .lead { margin: 0 0 24px; }
.tz-steps { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; counter-reset: s; }
.tz-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.45; }
.tz-steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-weight: 600; }
.tz-note { background: #f4f4f1; border-radius: 16px; padding: 14px 18px; margin: 0 0 24px; font-size: 15px; }
@media (max-width: 760px) { .tz { grid-template-columns: 1fr; gap: 24px; margin: 24px auto 48px; } .tz-ph { aspect-ratio: 4 / 3; } .tz h1 { font-size: 30px; } }

/* Вход без SMS: выбор, куда прислать ссылку */
.auth .chip, .lk-ch .chip { cursor: pointer; position: relative; }
.auth .chip:has(input:checked), .lk-ch .chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.auth .chip:has(input:focus-visible), .lk-ch .chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

/* v22: подписка на цветы и мастер-классы */
.sb h1 { font-size: 44px; margin: 8px 0 10px; }
.sb .lead { max-width: 680px; margin: 0 0 20px; }
.sb-hero { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-bottom: 8px; }
.sb-ph { width: 320px; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #f3d9dc; }
.sb-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-ph--inline { width: 100%; aspect-ratio: 16 / 9; margin-bottom: 16px; }
.sb-tabs { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 4px; gap: 4px; margin: 8px 0 24px; }
.sb-tab { padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; }
.sb-tab.on { background: var(--ink); color: #fff; }
.sb-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 0 10px; }
.sb-plan { border: 1.5px solid var(--line-2, #d9d9d4); border-radius: 20px; padding: 18px; display: grid; gap: 6px; cursor: pointer; align-content: start; }
.sb-plan b { font-size: 24px; } .sb-plan span { color: var(--muted, #666); font-size: 14px; }
.sb-plan.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sb-plan:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sb-tag { display: inline-block; background: var(--ink); color: #fff !important; border-radius: 999px; font-size: 12px !important; padding: 3px 10px; justify-self: start; }
.sb-lab { display: block; font-weight: 600; margin: 20px 0 8px; }
.sb-chips .chip { cursor: pointer; position: relative; }
.sb-chips .chip.on, .sb-chips .chip:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.sb-chips .chip:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.sb-row { display: grid; grid-template-columns: 1.25fr .75fr; gap: 32px; align-items: start; }
.sb-sum { position: sticky; top: 96px; }
.box2 { background: #f4f4f1; border-radius: 20px; padding: 22px; display: grid; gap: 12px; }
.box2 h3 { margin: 0; font-size: 18px; }
.sum { display: grid; gap: 8px; font-size: 15px; } .sum > div { display: flex; justify-content: space-between; gap: 12px; } .sum b { white-space: nowrap; }
.sum .t { font-size: 20px; font-weight: 700; border-top: 1px solid #ddd; padding-top: 10px; }
.perk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; } .perk i { font-style: normal; }
.note2 { font-size: 14px; color: var(--muted, #555); margin: 6px 0 0; }
.sb-months { display: grid; gap: 8px; }
.sb-months .mo { display: grid; grid-template-columns: 96px 1fr 170px; gap: 10px; align-items: center; border: 1px solid #e5e5e0; border-radius: 14px; padding: 8px 12px; }
.sb-months .input { height: 42px; font-size: 14px; }
.ev { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 12px 0 24px; }
.evc { border-radius: 20px; overflow: hidden; border: 1px solid #e5e5e0; display: grid; grid-template-rows: auto 1fr; }
.evc .ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #f3d9dc, #c8506a); }
.evc .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.evc .bd { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.evc .dt { font-size: 13px; color: var(--muted, #666); text-transform: uppercase; letter-spacing: .04em; }
.evc .evt { margin: 0; font-size: 19px; } .evc p { margin: 0; font-size: 14px; color: #555; }
.evc .ft { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.evc .pr { font-size: 20px; font-weight: 700; } .evc .seats { font-size: 13px; color: var(--muted, #666); } .evc .seats--few { color: #C0392B; }
.sb-group { grid-template-columns: 280px 1fr; align-items: center; margin-top: 8px; }
.sb-group .sb-ph--inline { margin: 0; aspect-ratio: 4 / 3; }
.sb-group:not(:has(.sb-ph)) { grid-template-columns: 1fr; }
.sb-dlg { border: 0; border-radius: 20px; padding: 24px; width: min(520px, calc(100vw - 32px)); }
.sb-dlg::backdrop { background: rgba(0, 0, 0, .4); }
.cert { max-width: 640px; margin: 48px auto; text-align: center; border: 2px solid var(--ink); border-radius: 24px; padding: 40px 28px; display: grid; gap: 10px; justify-items: center; }
.cert-k { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; margin: 0; }
.cert h1 { font-size: 32px; margin: 0; } .cert-t { font-size: 22px; font-weight: 600; margin: 0; }
@media print { header, footer, .no-print, .topbar, .bottom-nav, .chat-fab { display: none !important; } .cert { margin: 0 auto; } }
@media (max-width: 760px) {
  .sb h1 { font-size: 30px; }
  .sb-hero { grid-template-columns: 1fr; } .sb-ph { width: 100%; aspect-ratio: 4 / 3; }
  .sb-plans { grid-template-columns: 1fr; } .sb-row { grid-template-columns: 1fr; } .sb-sum { position: static; }
  .sb-months .mo { grid-template-columns: 1fr 1fr; } .sb-months .mo b { grid-column: 1 / -1; }
  .ev { grid-template-columns: 1fr; } .sb-group { grid-template-columns: 1fr; }
  .sb-tabs { display: flex; } .sb-tab { flex: 1; text-align: center; padding: 10px 8px; font-size: 14px; }
}
.about-team { margin: 24px 0; border-radius: 20px; overflow: hidden; max-width: 820px; } .about-team img { width: 100%; display: block; }
.sb-blog { grid-template-columns: 1fr auto; align-items: center; gap: 18px; }
@media (max-width: 760px) { .sb-blog { grid-template-columns: 1fr; } }

/* Подписка и мастер-классы в ленте разделов; на телефоне на главной показываем только их */
@media (max-width: 760px) { .chips--home { display: flex; } .chips--home .chip:not(.chip--extra) { display: none; } }
.sb-hint { display: grid; gap: 6px; background: #F6DDE2; border-radius: 16px; padding: 14px; margin-top: 4px; }
.sb-hint .btn { justify-self: start; margin-top: 4px; background: #fff; border-color: #fff; }
.sb-pay { display: grid; gap: 8px; }

/* Готовые букеты: шапка для тех, кому букет нужен сегодня */
.rd-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; background: var(--ink); color: #fff; border-radius: 20px; padding: 40px; margin: 8px 0 28px; }
.rd-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 6px 0 12px; line-height: 1.1; }
.rd-kicker { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #F6DDE2; }
.rd-lead { color: #d6d6d6; margin: 0 0 16px; max-width: 520px; }
.rd-eta { margin: 0 0 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rd-eta.is-live::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #5bd47a; box-shadow: 0 0 0 4px rgba(91, 212, 122, .25); flex: none; }
.rd-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; }
.rd-steps li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px 16px; }
.rd-steps li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.rd-steps b { display: block; }
.rd-steps span { color: #cfcfcf; font-size: 14px; }
.rd-steps b { color: #fff; font-size: 15px; }
.rd-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; scroll-margin-top: 90px; }
.rd-budget { margin: 0; }
.rd-count { margin: 10px 0 18px; color: var(--muted-2); }
.rd-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 40px; }
.rd-trust > div { background: var(--soft); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.rd-trust span { color: var(--muted); }
@media (max-width: 860px) {
  .rd-hero { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; border-radius: 16px; }
  .rd-steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rd-steps li { flex-direction: column; gap: 8px; padding: 12px; }
  .rd-steps span { font-size: 13px; }
  .rd-trust { grid-template-columns: 1fr; }
  .rd-bar { flex-wrap: nowrap; overflow-x: auto; }
  .rd-budget { flex-wrap: nowrap; }
  .rd-budget .chip { white-space: nowrap; }
}
.rd-sort { margin: 0; }
@media (max-width: 860px) {
  .rd-hero h1 { font-size: 30px; }
  .rd-lead { font-size: 15px; }
  .rd-eta { font-size: 15px; }
  .rd-steps li { padding: 10px 12px; gap: 6px; }
  .rd-steps li span span, .rd-steps li > span { font-size: 0; }
  .rd-steps li b { font-size: 14px; line-height: 1.3; }
  .rd-bar { flex-direction: column; align-items: stretch; overflow: visible; }
  .rd-budget { overflow-x: auto; }
}

/* Кнопка «Установить приложение» (install.js показывает её, только когда установка возможна) */
.install-btn { justify-self: start; align-self: flex-start; gap: 6px; }
.install-btn[hidden] { display: none; }
.menu .install-btn { margin: 0 16px 16px; }
.footer .install-btn { margin-top: 10px; }
.install-ios { border: 0; padding: 22px; max-width: 340px; width: calc(100% - 32px); }
.install-ios::backdrop { background: rgba(0, 0, 0, .45); }
.install-ios ol { margin: 10px 0 16px; padding-left: 20px; line-height: 1.5; font-size: 15px; }

/* Строка на главной к празднику (src/content/occasions.mjs) */
.occasion-strip { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 16px; background: #F6DDE2; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.occasion-strip:hover { background: #F2CFD6; }

/* Шапка подборки к празднику: нежная, а не чёрная, как у «Готовых букетов» */
.rd-hero--soft { background: #F6DDE2; color: var(--ink); }
.rd-hero--soft h1 { color: var(--ink); }
.rd-hero--soft .rd-kicker { color: #A3485C; }
.rd-hero--soft .rd-lead { color: #4a3a3e; }
.rd-hero--soft .rd-steps li { background: rgba(255, 255, 255, .7); }
.rd-hero--soft .rd-steps b { color: var(--ink); }
.rd-hero--soft .rd-steps span { color: #5b4a4e; }

.occasion-strip--post { margin: 4px 0 0; }
/* v27: праздничная скидка — метка на букетах, строка на странице букета, блок на странице повода */
.hol-badge { background: #F6DDE2; color: var(--ink); font-size: 14px; padding: 7px 12px; }
@media (max-width: 700px) { .card .hol-badge { font-size: 12px; padding: 6px 9px; } }
.hol-line { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 8px; }
.hol-hint { color: var(--ink); background: #F6DDE2; padding: 8px 10px; border-radius: 8px; }
/* Счётчик до конца праздничной скидки */
.hol-box { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin: 0 0 28px; padding: 22px 26px; background: #F6DDE2; border-radius: 24px; }
.hol-box__text b { font-size: 22px; display: block; margin-bottom: 6px; }
.hol-box__text p { margin: 0; color: var(--ink-soft, #444); max-width: 640px; }
.hol-box__cd { flex: none; text-align: center; }
.hol-box__cd small { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #9b3b55; margin-bottom: 8px; }
.hol-cd { display: flex; gap: 8px; }
.hol-cd > span { background: #fff; border-radius: 14px; min-width: 76px; padding: 10px 8px 8px; display: flex; flex-direction: column; align-items: center; }
.hol-cd b { font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.hol-cd span span { font-size: 12px; color: #666; margin-top: 4px; }
@media (max-width: 700px) { .hol-box { flex-direction: column; align-items: stretch; padding: 18px; } .hol-box__text b { font-size: 19px; } .hol-cd { justify-content: center; } }
/* m0363: «Сообщения» в кабинете */
.lk-msgs { position: relative; margin: 8px 0 24px; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 20px; background: var(--card, #f4f3f0); color: inherit; text-decoration: none; border: 2px solid transparent; }
.lk-msgs:hover { border-color: var(--ink, #111); }
.lk-msgs__icon { font-size: 28px; line-height: 1; }
.lk-msgs__text { display: flex; flex-direction: column; gap: 2px; }
.lk-msgs__text b { font-size: 18px; }
.lk-msgs__text span { color: #666; font-size: 14px; }
.lk-msgs .fab-count { position: static; margin-left: auto; min-width: 26px; height: 26px; border-radius: 13px; font-size: 14px; }
.lk-msgs--new, .lk-msgs:has(.fab-count) { background: #F6DDE2; }
.lk-msgs--new .lk-msgs__text span, .lk-msgs:has(.fab-count) .lk-msgs__text span { color: var(--ink, #111); font-weight: 600; }
/* Подборка к празднику: сортировка справа от заголовка (25.11) */
.occ-head { align-items: center; margin-bottom: 16px; }
.occ-head h2 { margin: 8px 0 0 !important; }
.occ-head .sort-pick { position: relative; right: auto; top: auto; }
.occ-head .sort-menu { right: 0; left: auto; }
.field-err { margin: 6px 0 0; }
label.check + .field-err { margin: -4px 0 8px; }
