/* Универсальный шаблон цветочного магазина.
   Все цвета, шрифты, скругления и сетка приходят CSS-переменными из админки (см. themeCss в site.js). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 var(--font-b); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-h); font-weight: var(--h-weight); line-height: 1.04; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic.fill { fill: currentColor; stroke: none; }
.container { width: min(1240px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1240px, 100% - 56px); } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 28px; border-radius: calc(var(--radius) * 2);
  font: 600 15px/1 var(--font-b); letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn-block { width: 100%; }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- анонс и шапка ---------- */
.announce { background: var(--primary); color: var(--on-primary); text-align: center; font-size: 13px; font-weight: 500; padding: 9px 16px; letter-spacing: .01em; }
.header { position: sticky; top: 0; z-index: 40; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.header.scrolled { border-bottom-color: var(--line); }
.header-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.logo b { font-family: var(--font-h); font-weight: var(--h-weight); font-size: calc(26px * var(--h-scale)); line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 14.5px; font-weight: 500; }
.nav a { opacity: .78; transition: opacity .2s; }
.nav a:hover { opacity: 1; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 999px; opacity: .6; }
.lang button.on { background: var(--text); color: var(--bg); opacity: 1; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.icon-btn:hover { background: var(--primary-soft); }
.count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--primary); color: var(--on-primary); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.count:empty { display: none; }
@media (max-width: 900px) { .nav { display: none; } .head-actions { margin-left: auto; } }
@media (max-width: 520px) { .header-in { height: 64px; gap: 10px; } .logo img { width: 36px; height: 36px; } .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { padding: clamp(20px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 { font-size: calc(clamp(44px, 6.6vw, 92px) * var(--h-scale)); margin: 20px 0 22px; }
.hero .sub { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.stats { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-h); font-weight: var(--h-weight); font-size: calc(32px * var(--h-scale)); line-height: 1.1; }
.stat span { font-size: 13px; color: var(--muted); }
.hero-media { position: relative; }
.hero-media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.hero-media.arch > img { border-radius: 999px 999px var(--radius) var(--radius); }
.float-card { position: absolute; left: -28px; bottom: 56px; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; background: var(--card); color: var(--text); border-radius: calc(var(--radius) + 4px); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .35); font-size: 14px; max-width: 280px; }
.float-card b { display: block; font-size: 14.5px; }
.float-card span { color: var(--muted); font-size: 13px; }
.bubble { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: 2; }
  .hero-media > img { aspect-ratio: 1 / 1.05; }
  .hero-media.arch > img { border-radius: 999px 999px var(--radius) var(--radius); }
  .float-card { left: 12px; bottom: 16px; }
  .stats { margin-top: 32px; }
}

.hero-cover { position: relative; min-height: min(84vh, 780px); display: flex; align-items: flex-end; border-radius: var(--radius); overflow: hidden; color: #fff; margin-top: 8px; }
.hero-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.05) 75%); }
.hero-cover .inner { position: relative; z-index: 1; padding: clamp(24px, 5vw, 64px); max-width: 760px; }
.hero-cover .eyebrow { color: #fff; }
.hero-cover .sub { color: rgba(255,255,255,.85); }
.hero-cover .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero-cover .stats { border-top-color: rgba(255,255,255,.25); }
.hero-cover .stat span { color: rgba(255,255,255,.75); }

.hero-min { text-align: center; }
.hero-min .sub { margin-inline: auto; }
.hero-min .hero-cta, .hero-min .stats { justify-content: center; }
.hero-min .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 52px; }
.strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.strip img:nth-child(even) { transform: translateY(28px); }
@media (max-width: 720px) { .strip { grid-template-columns: repeat(2, 1fr); } .strip img:nth-child(n+3) { display: none; } }

/* ---------- секции ---------- */
.section { padding-block: clamp(56px, 8vw, 108px); }
.section.alt { background: var(--surface); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.sec-head h2 { font-size: calc(clamp(34px, 4.6vw, 58px) * var(--h-scale)); margin-top: 14px; }
.sec-head .lead { color: var(--muted); max-width: 440px; }

/* ---------- каталог ---------- */
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-size: 14px; font-weight: 500; transition: all .2s; }
.chip sup { font-size: 10.5px; opacity: .55; margin-left: 3px; }
.chip:hover { border-color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.sort { height: 42px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text); font: 500 14px var(--font-b); appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 19px) 18px, calc(100% - 14px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.sort option { background: var(--bg); }
@media (max-width: 720px) { .toolbar { flex-direction: column; align-items: stretch; } .sort { align-self: flex-start; } }

.grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px 24px; }
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; } }
.card { position: relative; cursor: pointer; animation: rise .5s both; }
.card .ph { position: relative; aspect-ratio: var(--card-ratio); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph img { transform: scale(1.045); }
.card.off .ph img { filter: grayscale(.8); opacity: .6; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--bg); color: var(--text); font-size: 11.5px; font-weight: 700; letter-spacing: .02em; padding: 6px 11px; border-radius: 999px; }
.badge.sale { background: var(--primary); color: var(--on-primary); }
.quick { position: absolute; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); box-shadow: 0 10px 24px -10px rgba(0,0,0,.5); transform: translateY(6px); opacity: 0; transition: all .25s ease; }
.card:hover .quick, .card:focus-within .quick { transform: none; opacity: 1; }
@media (hover: none) { .quick { transform: none; opacity: 1; width: 40px; height: 40px; right: 8px; bottom: 8px; } }
.card .meta { padding-top: 14px; }
.card h3 { font: 600 15.5px/1.35 var(--font-b); letter-spacing: 0; margin-bottom: 6px; }
.price { font-weight: 700; font-size: 16px; }
.price s { color: var(--muted); font-weight: 500; font-size: 13.5px; margin-left: 8px; }
.sizes { display: flex; gap: 5px; margin-top: 9px; flex-wrap: wrap; }
.sizes span { font-size: 11px; font-weight: 600; border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 48px 0; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- преимущества ---------- */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1000px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.feat .bubble { width: 54px; height: 54px; margin-bottom: 22px; }
.feat .bubble .ic { width: 24px; height: 24px; }
.feat h3 { font: 650 17px/1.3 var(--font-b); letter-spacing: 0; margin-bottom: 8px; }
.feat p { color: var(--muted); font-size: 14.5px; }

/* ---------- доставка ---------- */
.deliv { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .deliv { grid-template-columns: 1fr; } }
.deliv .text { color: var(--muted); font-size: 17px; margin: 20px 0 28px; max-width: 560px; }
.zones { border-top: 1px solid var(--line); }
.zones div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.zones b { font-weight: 600; }
.promo { background: var(--primary); color: var(--on-primary); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.promo::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: currentColor; opacity: .07; }
.promo small { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; font-weight: 600; }
.promo h3 { font-size: calc(clamp(34px, 4vw, 50px) * var(--h-scale)); margin: 14px 0 8px; }
.promo p { opacity: .85; }
.promo hr { border: 0; border-top: 1px solid currentColor; opacity: .2; margin: 26px 0; }
.promo .row { display: flex; gap: 12px; align-items: center; margin-top: 12px; font-size: 15px; }

/* ---------- отзывы ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .reviews { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; } .review { scroll-snap-align: start; } }
.review { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.stars { display: flex; gap: 3px; color: var(--primary); }
.stars .ic { width: 16px; height: 16px; }
.review blockquote { margin: 0; font-family: var(--font-h); font-size: calc(21px * var(--h-scale)); line-height: 1.4; flex: 1; }
.who { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 14.5px; }
.who i { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-style: normal; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font-size: 18px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; font-size: 16px; }

/* ---------- контакты ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: stretch; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }
.c-list { display: grid; gap: 4px; margin: 28px 0 32px; }
.c-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-row .bubble { width: 44px; height: 44px; }
.c-row small { display: block; color: var(--muted); font-size: 13px; }
.c-row b { font-weight: 600; font-size: 16px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.map { width: 100%; min-height: 380px; height: 100%; border: 0; border-radius: var(--radius); background: var(--surface); }

/* ---------- футер ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); }
.footer-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-end; }
.footer .logo b { font-size: calc(30px * var(--h-scale)); }
.footer p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.credit { font-size: 13px; color: var(--muted); }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- плавающие элементы ---------- */
.fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; width: 58px; height: 58px; border-radius: 50%; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; box-shadow: 0 14px 34px -12px rgba(0,0,0,.45); transition: transform .25s; }
.fab:hover { transform: scale(1.06); }
.fab .ic { width: 24px; height: 24px; }
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 31; height: 60px; border-radius: min(calc(var(--radius) + 4px), 22px); background: var(--text); color: var(--bg); display: none; align-items: center; justify-content: space-between; padding: 0 20px; font-weight: 600; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); }
@media (max-width: 720px) { .has-cart .cartbar { display: flex; } .has-cart .fab { display: none; } }

.toast { position: fixed; left: 50%; bottom: 96px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; pointer-events: none; transition: all .3s ease; display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- модалки ---------- */
dialog { padding: 0; border: 0; color: var(--text); background: var(--bg); max-width: none; max-height: none; }
dialog::backdrop { background: rgba(10, 8, 9, .5); backdrop-filter: blur(4px); }
.x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: 0 4px 14px -6px rgba(0,0,0,.3); }

.pmodal { width: min(1040px, 100% - 32px); height: min(720px, 100% - 48px); border-radius: calc(var(--radius) + 4px); overflow: hidden; }
.pmodal[open] { display: grid; grid-template-columns: 1.05fr 1fr; animation: pop .3s cubic-bezier(.2,.8,.2,1); }
.gallery { position: relative; background: var(--surface); min-height: 0; }
.gallery > img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.thumbs button { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; opacity: .8; }
.thumbs button.on { border-color: #fff; opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo { padding: clamp(28px, 4vw, 48px); overflow-y: auto; display: flex; flex-direction: column; }
.pinfo .cat { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); font-weight: 600; }
.pinfo h2 { font-size: calc(clamp(32px, 3.6vw, 46px) * var(--h-scale)); margin: 12px 0 14px; }
.pinfo .big { font-size: 24px; font-weight: 700; }
.pinfo .big s { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 10px; }
.pinfo .desc { color: var(--muted); margin: 20px 0 0; }
.opt-label { font-size: 13px; color: var(--muted); font-weight: 600; margin: 26px 0 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-width: 56px; height: 44px; padding: 0 16px; border-radius: calc(var(--radius) * .7); border: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.seg button.on { border-color: var(--text); background: var(--text); color: var(--bg); }
.buy { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.buy .btn-primary { flex: 1; }
.stepper { display: inline-flex; align-items: center; height: 54px; border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); }
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; }
.stepper span { min-width: 26px; text-align: center; font-weight: 700; }
.stepper.sm { height: 38px; }
.stepper.sm button { width: 34px; }
.stepper.sm .ic { width: 16px; height: 16px; }
.note { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13.5px; margin-top: 16px; }
.note .ic { width: 18px; height: 18px; color: var(--primary); }
@media (max-width: 760px) {
  .pmodal { width: 100%; height: auto; max-height: 94dvh; margin: auto 0 0; border-radius: calc(var(--radius) + 4px) calc(var(--radius) + 4px) 0 0; }
  .pmodal[open] { grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; animation: sheet .35s cubic-bezier(.2,.8,.2,1); }
  .gallery > img { aspect-ratio: 1 / 1; max-height: 52dvh; }
  .pinfo { overflow: visible; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
}

.drawer { width: min(480px, 100%); height: 100dvh; margin: 0 0 0 auto; }
.drawer[open] { display: flex; flex-direction: column; animation: slide .35s cubic-bezier(.2,.8,.2,1); }
.d-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.d-head h2 { font-size: calc(30px * var(--h-scale)); }
.d-head .x { position: static; box-shadow: none; background: var(--surface); }
.d-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.d-foot { border-top: 1px solid var(--line); padding: 18px 24px calc(18px + env(safe-area-inset-bottom)); background: var(--bg); }
.line-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line-item img { width: 76px; height: 92px; object-fit: cover; border-radius: calc(var(--radius) * .6); background: var(--surface); }
.line-item h4 { margin: 0 0 4px; font-size: 15px; font-weight: 600; }
.line-item small { color: var(--muted); display: block; margin-bottom: 8px; }
.line-item .rm { color: var(--muted); padding: 6px; }
.line-item .lp { font-weight: 700; text-align: right; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; color: var(--muted); }
.sum-row.total { color: var(--text); font-weight: 700; font-size: 19px; padding-top: 10px; }
.cart-empty { text-align: center; padding: 64px 12px; color: var(--muted); }
.cart-empty .bubble { margin: 0 auto 20px; width: 72px; height: 72px; }
.cart-empty h3 { color: var(--text); font-size: calc(28px * var(--h-scale)); margin-bottom: 8px; }
.cart-empty .btn { margin-top: 24px; }

.form { display: grid; gap: 14px; padding-top: 18px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field label em { font-style: normal; font-weight: 400; opacity: .7; }
.field input, .field select, .field textarea { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); background: var(--card); color: var(--text); font: 15px var(--font-b); transition: border-color .2s, box-shadow .2s; }
.field textarea { height: 84px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.pay { display: flex; gap: 8px; flex-wrap: wrap; }
.pay label { flex: 1; min-width: 110px; }
.pay input { position: absolute; opacity: 0; pointer-events: none; }
.pay span { display: flex; align-items: center; justify-content: center; height: 46px; border: 1px solid var(--line); border-radius: calc(var(--radius) * .6); font-size: 14px; font-weight: 600; cursor: pointer; }
.pay input:checked + span { border-color: var(--text); background: var(--text); color: var(--bg); }
.pay input:focus-visible + span { box-shadow: 0 0 0 4px var(--primary-soft); }
.err { color: #d33; font-size: 14px; }
.success { text-align: center; padding: 56px 8px 24px; }
.success .bubble { width: 84px; height: 84px; margin: 0 auto 24px; }
.success .bubble .ic { width: 38px; height: 38px; }
.success h3 { font-size: calc(34px * var(--h-scale)); margin-bottom: 12px; }
.success p { color: var(--muted); margin-bottom: 28px; }
.success .btn { width: 100%; margin-top: 10px; }

@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet { from { transform: translateY(40%); opacity: 0; } }
@keyframes slide { from { transform: translateX(40%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* общие заголовки вне .sec-head */
.h2 { font-size: calc(clamp(34px, 4.6vw, 58px) * var(--h-scale)); margin-top: 14px; }
.review { margin: 0; }
.d-head h2 { flex: 1; margin: 0 12px; }
.d-head .x:first-child + h2 { margin-left: 12px; }

/* ---------- «Связаться с нами» ---------- */
.lead { margin-top: 32px; padding: clamp(20px, 3vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 14px; }
.lead h3 { font-size: calc(26px * var(--h-scale)); }
.lead > p { color: var(--muted); font-size: 14.5px; margin-top: -6px; }
.lead .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .lead .two { grid-template-columns: 1fr; } }
.lead .btn { justify-self: start; }
.lead-ok { display: flex; gap: 16px; align-items: center; }
.lead-ok .bubble { width: 56px; height: 56px; }
.lead-ok p { color: var(--muted); margin-top: 4px; }

/* ---------- поиск по каталогу ---------- */
.searchbox { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) * 2); transition: border-color .2s, box-shadow .2s; }
.searchbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.searchbox > .ic { color: var(--muted); width: 22px; height: 22px; }
.searchbox input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: 400 16px var(--font-b); }
.searchbox input::placeholder { color: var(--muted); }
.searchbox input::-webkit-search-cancel-button, .searchbox input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.searchbox button { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.searchbox button:hover { background: var(--primary-soft); color: var(--text); }
.found { font-size: 14px; color: var(--muted); margin: -10px 0 18px; }
.found[hidden] { display: none; }
.noresult { text-align: center; padding: clamp(40px, 7vw, 72px) 16px; }
.noresult .bubble { width: 74px; height: 74px; margin: 0 auto 20px; }
.noresult .bubble .ic { width: 30px; height: 30px; }
.noresult h3 { font-size: calc(30px * var(--h-scale)); margin-bottom: 8px; }
.noresult p { color: var(--muted); margin-bottom: 24px; }
