/*
Theme Name: LUSI — студия цветов
Description: Тема интернет-витрины цветочной студии LUSI (Ессентуки): каталог букетов, быстрая публикация с телефона, заявки, карта и отзывы Яндекса. Все настройки — в разделе LUSI админки.
Version: 0.4.1
Requires at least: 6.4
Requires PHP: 8.2
Author: Al Lobo
Text Domain: lusi
*/

/* ---------- Основа ---------- */
:root {
	--blush: #FDECEF;
	--rose: #D4517C;
	--rose-dark: #A63360;
	--gold: #A67E27;
	--blush-soft: color-mix(in srgb, var(--blush) 55%, #fff);
	--cream: #FFFAFA;
	--ink: #33222A;
	--muted: #7A6670;
	--line: #F3DDE3;
	--radius: 18px;
	--shadow: 0 10px 30px rgba(166, 51, 96, .12);
	--serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	color: var(--ink);
	background: var(--cream);
	overflow-x: hidden;
}
img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--rose-dark); text-underline-offset: 3px; }
a:hover { color: var(--rose); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(30px, 6vw, 52px); }
h2 { font-size: clamp(24px, 4vw, 36px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.icon { flex: none; vertical-align: -4px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 780px; }
.mt { margin-top: 48px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 10px 14px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--rose-dark); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 10px 22px;
	border: 1.5px solid transparent; border-radius: 999px;
	background: linear-gradient(135deg, var(--rose), var(--rose-dark));
	color: #fff; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { color: #fff; box-shadow: 0 6px 18px rgba(166, 51, 96, .3); transform: translateY(-1px); }
.btn-lg { min-height: 54px; padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: var(--rose); color: var(--rose-dark); }
.btn-ghost:hover { background: #fff; color: var(--rose-dark); }
.btn-light { background: #fff; color: var(--rose-dark); }
.btn-light:hover { color: var(--rose-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips:empty { display: none; }
.chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
	border: 1px solid var(--line); border-radius: 999px; background: #fff;
	color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.chip:hover { border-color: var(--rose); }

/* ---------- Шапка ---------- */
.promo-strip { background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff; text-align: center; font-size: 14px; padding: 7px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .93); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(212, 81, 124, .25); }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.logo { display: flex; flex: none; }
.logo img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.nav { display: none; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.menu a:hover, .menu .current-menu-item > a { color: var(--rose-dark); }
.header-contacts { margin-left: auto; text-align: right; line-height: 1.2; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; color: var(--rose-dark); font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap; }
.header-contacts small { display: none; color: var(--muted); font-size: 12px; }
.burger { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(212, 81, 124, .45); border-radius: 12px; background: #fff; color: var(--rose-dark); cursor: pointer; }
.nav.is-open {
	display: block; position: absolute; left: 0; right: 0; top: 100%;
	background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 20px;
}
.nav.is-open .menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.nav-extra { padding-top: 14px; color: var(--muted); font-size: 14px; }
.nav-extra p { margin: 0 0 6px; }

@media (max-width: 380px) { .header-phone span { font-size: 14px; } .logo img { width: 48px; height: 48px; } }
@media (min-width: 960px) {
	.header-row { min-height: 84px; gap: 28px; }
	.logo img { width: 68px; height: 68px; }
	.nav, .nav.is-open { display: block; position: static; background: none; border: 0; box-shadow: none; padding: 0; }
	.menu { display: flex; gap: 26px; }
	.nav.is-open .menu a { display: inline; padding: 0; border: 0; font-size: 15px; }
	.nav-extra, .burger { display: none; }
	.header-phone { font-size: 19px; }
	.header-contacts small { display: block; }
}

/* ---------- Первый экран ---------- */
.hero {
	position: relative; overflow: hidden;
	background:
		radial-gradient(55% 80% at 88% 20%, #fff, transparent 70%),
		radial-gradient(45% 60% at 0% 100%, rgba(255, 205, 218, .9), transparent 70%),
		linear-gradient(135deg, #FFF3F5, var(--blush));
}
.hero-grid { display: grid; gap: 24px; padding-block: 36px 40px; align-items: center; }
.eyebrow { color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.lead { font-size: 17px; color: #5C4650; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-media.is-art { display: grid; place-items: center; }
.hero-art { width: min(92%, 360px); height: auto; filter: drop-shadow(0 20px 30px rgba(166, 51, 96, .2)); }
@media (min-width: 860px) { .hero-art { width: min(100%, 540px); } }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); max-height: 560px; }
@media (min-width: 860px) {
	.hero-grid { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-block: 64px; }
	.lead { font-size: 19px; }
}

/* ---------- Секции ---------- */
.section { padding-block: 36px; }
.section-tight { padding-block: 20px 0; }
.section-mint { background: var(--blush-soft); }
.page-top { padding-top: 22px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.more { font-weight: 600; white-space: nowrap; }
@media (min-width: 860px) { .section { padding-block: 56px; } .section-tight { padding-block: 28px 0; } .page-top { padding-top: 30px; } }

.cat-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-pill {
	flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px;
	border: 1px solid rgba(212, 81, 124, .4); border-radius: 999px; background: #fff;
	color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none;
}
.cat-pill:hover { border-color: var(--rose); color: var(--rose-dark); }
.cat-pill.is-active, .cat-pill.is-all { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }
@media (min-width: 860px) { .cat-row { flex-wrap: wrap; overflow: visible; } }

/* ---------- Карточки ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1040px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--blush-soft); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card.is-out .card-media img { filter: grayscale(.6); opacity: .75; }
.card-noimage { display: grid; place-items: center; align-content: center; gap: 2px; width: 100%; height: 100%; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #FFF6F8, #FBDDE5); color: var(--muted); font-size: 12px; text-align: center; }
.card-noimage .flower-art { width: 82%; height: auto; filter: drop-shadow(0 10px 14px rgba(166, 51, 96, .16)); }
.card-media { text-decoration: none; }
.badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--rose-dark); font-size: 12px; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.badge-sale { background: #E4572E; color: #fff; }
.badge-new { background: var(--rose-dark); color: #fff; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.card-title { font: 600 15px/1.3 var(--sans); margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-price { margin-top: auto; }
.price { font-size: 19px; font-weight: 700; color: var(--rose-dark); white-space: nowrap; }
.price-old { color: var(--muted); font-size: 14px; white-space: nowrap; }
.card-stock { color: #E4572E; font-size: 13px; font-weight: 600; }
.card .btn { min-height: 42px; padding: 8px 12px; font-size: 14px; margin-top: 4px; }
@media (min-width: 700px) { .card-body { padding: 16px; } .card-title { font-size: 16px; } .price { font-size: 21px; } }

/* ---------- Преимущества, призыв ---------- */
.advantages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
@media (min-width: 860px) { .advantages { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.advantage h3 { font-size: 19px; margin-bottom: 6px; }
.advantage p { color: var(--muted); font-size: 14px; margin: 0; }
.advantage-icon { display: block; width: 56px; height: 56px; margin-bottom: 10px; }
.bloom-icon { width: 100%; height: 100%; display: block; }
.custom-order {
	position: relative; overflow: hidden;
	display: grid; gap: 18px; align-items: center; padding: 28px 22px; border-radius: 26px;
	background: linear-gradient(135deg, var(--rose), var(--rose-dark)); color: #fff;
}
.custom-order h2 { color: #fff; margin-bottom: 8px; }
.custom-order p { margin: 0; opacity: .92; }
.custom-order > *:not(svg) { position: relative; }
.custom-order-art { position: absolute; right: -70px; top: -70px; width: 220px; height: auto; opacity: .55; }
@media (min-width: 860px) {
	.custom-order { grid-template-columns: 1fr auto; padding: 48px 300px 48px 48px; }
	.custom-order-art { right: -30px; top: 50%; transform: translateY(-50%); width: 330px; opacity: 1; }
}

.cat-tiles { display: flex; gap: 12px; overflow-x: auto; padding: 6px 2px 12px; scrollbar-width: none; }
.cat-tiles::-webkit-scrollbar { display: none; }
.cat-tile { flex: none; width: 92px; display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.25; text-decoration: none; }
.cat-tile-art { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s; overflow: hidden; }
.cat-tile-art svg { width: 78%; height: 78%; }
.cat-tile:hover { color: var(--rose-dark); }
.cat-tile:hover .cat-tile-art { transform: translateY(-3px) scale(1.04); }
@media (min-width: 860px) { .cat-tiles { justify-content: center; gap: 34px; overflow: visible; } .cat-tile { width: 128px; font-size: 15px; } .cat-tile-art { width: 116px; height: 116px; } }

/* ---------- Каталог ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a::after { content: "›"; margin-left: 6px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search { display: flex; flex: 1 1 220px; max-width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; min-height: 44px; font-size: 16px; background: transparent; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--rose); }
.search button { width: 48px; border: 0; background: transparent; color: var(--rose-dark); cursor: pointer; }
.sort { display: flex; align-items: center; gap: 12px; }
.sort select { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; color: var(--ink); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--rose-dark); }
.empty { text-align: center; padding: 48px 16px; background: var(--blush-soft); border-radius: 26px; }
.pagination { margin-top: 28px; }
.nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--rose-dark); border-color: var(--rose-dark); color: #fff; }

/* ---------- Страница букета ---------- */
.product { display: grid; gap: 22px; }
.product-media { position: relative; border-radius: 26px; overflow: hidden; background: var(--blush-soft); }
.product-media img { width: 100%; }
.product-info h1 { font-size: clamp(28px, 5vw, 42px); }
.product-price .price { font-size: 30px; }
.product-price .price-old { font-size: 18px; }
.stock { font-weight: 600; font-size: 14px; }
.stock.in { color: #2F7D46; }
.stock.out { color: #E4572E; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.product-actions .btn { padding-inline: 12px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 22px 0; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.specs:empty { display: none; }
.specs dt { color: var(--muted); font-size: 14px; }
.specs dd { margin: 0; }
.note { color: var(--muted); font-size: 14px; }
@media (min-width: 860px) { .product { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } .product-media { position: sticky; top: 104px; } }

/* ---------- Текстовые страницы ---------- */
.content { font-size: 17px; }
.content h2 { margin-top: 1.4em; }
.content img { border-radius: var(--radius); }
.content ul, .content ol { padding-left: 1.3em; }
.post-item { padding-block: 18px; border-bottom: 1px solid var(--line); }

/* ---------- Контакты, карта, отзывы ---------- */
.contacts { display: grid; gap: 18px; }
.contacts-info { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 26px; }
.contacts-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 17px; }
.contacts-row .icon { color: var(--rose); margin-top: 3px; }
.contacts-phone { font-size: 22px; font-weight: 700; text-decoration: none; }
.contacts-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map { position: relative; min-height: 340px; border-radius: 26px; overflow: hidden; background: var(--blush-soft); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-cover { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: transparent; }
.map-cover .btn { box-shadow: var(--shadow); }
.map.is-unlocked .map-cover { display: none; }
.map-empty { display: grid; place-items: center; height: 340px; padding: 24px; color: var(--muted); text-align: center; }
@media (min-width: 860px) { .contacts { grid-template-columns: 420px 1fr; } .map { min-height: 420px; } }
.reviews-widget { position: relative; width: 100%; max-width: 760px; height: 720px; margin-inline: auto; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.reviews-widget iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Подвал ---------- */
.site-footer { margin-top: 28px; padding-top: 40px; background: #3B2330; color: #EBD9DF; font-size: 15px; }
.site-footer a { color: #FFE3EA; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .chip { background: transparent; border-color: rgba(255, 255, 255, .25); color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; margin-bottom: 12px; }
.footer-phone { font-size: 21px; font-weight: 700; }
.footer-bottom { margin-top: 32px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: #B79AA5; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.2fr; } }

/* ---------- Нижняя панель на телефоне ---------- */
.mobile-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
	background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06);
	padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bar a, .mobile-bar button {
	display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 56px;
	border: 0; background: none; color: var(--rose-dark); font: 600 11px var(--sans); text-decoration: none; cursor: pointer;
}
body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* ---------- Форма заявки ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; align-items: end; background: rgba(59, 35, 48, .55); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: 100%; max-height: 92vh; overflow-y: auto; padding: 26px 20px calc(22px + env(safe-area-inset-bottom)); background: #fff; border-radius: 26px 26px 0 0; }
.modal-box h2 { font-size: 28px; margin-bottom: 4px; padding-right: 44px; }
.modal-subject { color: var(--rose-dark); font-weight: 600; margin-bottom: 14px; }
.modal-subject:empty { display: none; }
.modal-close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--blush-soft); color: var(--ink); cursor: pointer; }
.modal form { display: grid; gap: 12px; }
.modal label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.modal input[type=text], .modal input[type=tel], .modal textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; font: 16px var(--sans); color: var(--ink); background: var(--cream); }
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
.modal .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 13px; color: var(--muted); }
.modal .consent input { width: 20px; height: 20px; flex: none; accent-color: var(--rose-dark); }
.modal .hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; }
.form-msg:empty { display: none; }
.form-msg.is-error { color: #E4572E; }
.form-msg.is-ok { color: #2F7D46; font-size: 17px; }
.modal-note { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (min-width: 640px) { .modal { align-items: center; justify-items: center; } .modal-box { width: 460px; border-radius: 26px; padding: 32px; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Корзина и оформление ---------- */
.cart-link { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(212, 81, 124, .45); border-radius: 12px; background: #fff; color: var(--rose-dark); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: #fff; font: 700 12px/20px var(--sans); text-align: center; font-style: normal; }
.cart-count[hidden] { display: none; }
.mobile-bar .mb-cart { position: relative; }
.mobile-bar .mb-cart .cart-count { top: 4px; right: calc(50% - 22px); }
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 70; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.toast a { color: #FFD3E0; font-weight: 700; margin-left: 6px; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
@media (min-width: 960px) { .toast { bottom: 28px; } }

.checkout-grid { display: grid; gap: 22px; align-items: start; }
.cart-box { order: -1; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.25fr .75fr; gap: 40px; } .cart-box { position: sticky; top: 104px; order: 2; } }
.checkout-form fieldset { margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: grid; gap: 12px; }
.checkout-form legend { padding: 0 8px; font: 600 20px var(--serif); color: var(--rose-dark); }
.checkout-form label { display: grid; gap: 5px; font-size: 14px; font-weight: 600; }
.checkout-form small { font-weight: 400; color: var(--muted); }
.checkout-form input[type=text], .checkout-form input[type=tel], .checkout-form input[type=email], .checkout-form input[type=date], .checkout-form select, .checkout-form textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); font: 16px var(--sans); color: var(--ink);
}
.checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus { outline: none; border-color: var(--rose); background: #fff; }
.checkout-form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; min-height: 36px; }
.checkout-form .check input { width: 22px; height: 22px; flex: none; accent-color: var(--rose-dark); margin-top: 1px; }
.checkout-form .consent { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.checkout-form .hp { position: absolute; left: -9999px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.seg-item input { position: absolute; opacity: 0; }
.seg-item span { display: grid; place-items: center; min-height: 48px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--cream); font-weight: 600; cursor: pointer; }
.seg-item input:checked + span { border-color: var(--rose); background: #FFE9F0; color: var(--rose-dark); }
.seg-item input:focus-visible + span { outline: 2px solid var(--rose-dark); outline-offset: 2px; }
.pickup-note, .hint { margin: 0; color: var(--muted); font-size: 13px; }
.cart-box { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.cart-box h2 { font-size: 26px; }
.cart-row { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row.is-bad { opacity: .75; }
.cart-pic { display: block; width: 72px; height: 90px; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #FFF6F8, #FBDDE5); }
.cart-pic img { width: 100%; height: 100%; object-fit: cover; }
.cart-title { display: block; font-weight: 600; color: var(--ink); text-decoration: none; line-height: 1.3; }
.cart-price { margin: 2px 0 8px; color: var(--rose-dark); font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 4px; margin-right: 10px; }
.qty button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 18px; cursor: pointer; color: var(--rose-dark); }
.qty span { min-width: 28px; text-align: center; font-weight: 700; }
.cart-del { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.cart-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 14px 0 8px; }
.cart-totals dt, .cart-totals dd { margin: 0; }
.cart-totals .total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 800; color: var(--rose-dark); }
.cart-empty { text-align: center; padding: 48px 16px; background: var(--blush-soft); border-radius: 26px; }
.order-status { max-width: 640px; }
.order-state { display: inline-block; padding: 6px 16px; border-radius: 999px; background: #FFE9F0; color: var(--rose-dark); font-weight: 700; }
.order-state.state-paid, .order-state.state-done { background: #E3F5E8; color: #2F7D46; }
.order-state.state-cancel { background: #F2F2F2; color: #666; }
.order-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.order-table td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-table td:last-child { text-align: right; white-space: nowrap; }
.order-table .total td { font-size: 20px; font-weight: 800; color: var(--rose-dark); border: 0; }

/* ---------- Капча ---------- */
.captcha-box:empty { display: none; }
.captcha-box { min-height: 0; margin: 4px 0; }
