/* Дудинские пироги — стили сайта */
:root {
  --red: #B51919;
  --red-dark: #8A1212;
  --ink: #2A1914;
  --muted: #6B5448;
  --muted-2: #8A7466;
  --bg: #FBF6EF;
  --card: #FFFFFF;
  --line: #ECE0D2;
  --line-2: #F1E8DD;
  --field: #DECFBE;
  --cream: #F6E6D0;
  --sand: #F4ECE2;
  --gold: #F2A541;
  --ok-bg: #E6F2E6;
  --ok: #1F5A2A;
  --radius: 24px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
section[id], main [id] { scroll-margin-top: 96px; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Плавная смена страниц (Chrome, Edge, Яндекс Браузер, Safari 18+; в остальных — как обычно) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: dpFadeOut .18s ease-out both; }
::view-transition-new(root) { animation: dpFadeIn .28s ease-out both; }
@keyframes dpFadeOut { to { opacity: 0; } }
@keyframes dpFadeIn { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Анимации ---------- */
@keyframes dpNudge { 0%,100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes dpSpin { to { transform: rotate(360deg); } }
@keyframes dpSteam { 0% { opacity: 0; transform: translateY(6px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes dpPop { 0% { opacity: 0; transform: translateY(14px) scale(.94); } 60% { opacity: 1; transform: translateY(-3px) scale(1.01); } 100% { opacity: 1; transform: none; } }
@keyframes dpFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes dpBump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.dp-nudge { animation: dpNudge 1.6s ease-in-out infinite; }
.dp-spin { animation: dpSpin 22s linear infinite; transform-origin: 50% 50%; }
.dp-steam { animation: dpSteam 2.6s ease-in-out infinite; }
.dp-pop { animation: dpPop .6s cubic-bezier(.2,.8,.2,1) .5s both; }
.dp-float { animation: dpFloat 3.2s ease-in-out 1.2s infinite; }
.bump { animation: dpBump .35s ease; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dp-nudge, .dp-spin, .dp-steam, .dp-pop, .dp-float, .bump { animation: none; }
}

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 24px; border-radius: 16px; border: 0; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .15s, transform .1s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { color: var(--ink); border-color: var(--field); }
.btn-lg { font-size: 17px; padding: 18px 28px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.nav-order { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--red); font-family: var(--display); font-weight: 700; font-size: 16px; }
.chev { display: flex; flex-direction: column; align-items: center; }
.chev svg + svg { opacity: .45; margin-top: -3px; }
.pill-cafe { display: flex; align-items: center; gap: 10px; text-decoration: none; background: var(--ink); color: #fff; font-weight: 700; font-size: 15px; padding: 7px 18px 7px 7px; border-radius: 999px; transition: background .15s; }
.pill-cafe:hover, .pill-cafe[aria-current="page"] { background: var(--red); color: #fff; }
.pill-cafe .cup { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.header-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.phone { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; }
.cart-btn { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 999px; font-weight: 700; }
.cart-btn:hover { color: #fff; background: #000; }
.badge { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 9px; font-size: 13px; font-weight: 800; min-width: 24px; text-align: center; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-text { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand-badge { width: 60px; height: 60px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }
.brand-badge img { width: 52px; height: 52px; }

/* ---------- Главная ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 32px; }
.hero-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.chip-note { align-self: flex-start; background: var(--cream); color: var(--red); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; letter-spacing: -0.03em; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 28px; font-size: 15px; color: var(--muted); font-weight: 600; }
.facts span { display: flex; align-items: center; gap: 10px; }
.hero-art { flex: 1 1 460px; min-width: 0; position: relative; height: 500px; }
.hero-art .bg { position: absolute; inset: 0; background: var(--cream); border-radius: 48px; }
.hero-art .stamp { position: absolute; right: -14px; top: 22px; width: 190px; height: 190px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 36px rgba(181,25,25,.25); }
.hero-art .stamp img { width: 164px; height: 164px; }
.hero-art .pie { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 78%; }
.hero-art .hit { position: absolute; left: 28px; bottom: 28px; background: #fff; border-radius: 20px; padding: 16px 20px; display: flex; flex-direction: column; gap: 2px; box-shadow: 0 10px 30px rgba(181,25,25,.12); text-decoration: none; color: var(--ink); }
.hero-art .hit small { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-art .hit strong { font-family: var(--display); font-weight: 600; font-size: 18px; }
.hero-art .hit span { font-weight: 800; color: var(--red); }

.ring { display: flex; justify-content: center; padding: 8px 0 0; }
.ring a { position: relative; width: 148px; height: 148px; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ring svg.dp-spin { position: absolute; inset: 0; }
.ring .arrow { width: 72px; height: 72px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(181,25,25,.3); }

.section { padding-top: 40px; padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.h2 { font-size: clamp(30px, 3.6vw, 44px); }
.title-arrows { display: flex; align-items: center; gap: 18px; }
.title-arrows .chev { color: var(--red); }
.title-arrows .chev svg { width: 26px; height: 15px; }
.title-arrows .chev svg + svg { margin-top: -5px; }
.title-arrows .chev svg:last-child { opacity: .25; }

/* Всплывающая подсказка про кафетерий */
.bubble { position: relative; max-width: 540px; }
.bubble[hidden] { display: none; }
.bubble-in { position: relative; }
.bubble-tag { position: absolute; left: 22px; top: -13px; z-index: 2; display: flex; align-items: center; gap: 7px; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 5px 12px 5px 10px; border-radius: 999px; box-shadow: 0 4px 10px rgba(181,25,25,.25); }
.bubble-tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.bubble-card { position: relative; display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--red); border-radius: 22px; padding: 20px 22px 16px 16px; box-shadow: 0 18px 40px rgba(42,25,20,.16), 0 4px 10px rgba(42,25,20,.08); }
.bubble-card:hover { color: var(--ink); }
.bubble-card .ic { flex: none; width: 56px; height: 56px; border-radius: 16px; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.bubble-card b { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.25; }
.bubble-card small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.bubble-card::after { content: ""; position: absolute; left: 44px; bottom: -11px; width: 20px; height: 20px; background: #fff; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); transform: rotate(45deg); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { font-weight: 600; font-size: 15px; padding: 10px 20px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 700; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px rgba(42,25,20,.08); transform: translateY(-2px); }
.card[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img svg { width: 70%; height: auto; }
.tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--ink); font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-body h3 { font-weight: 600; font-size: 18px; line-height: 1.25; }
.card-body p { margin: 0; color: var(--muted); font-size: 14px; }
.card-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-weight: 800; font-size: 20px; }
.price small { display: block; font-weight: 500; font-size: 13px; color: var(--muted); }
.add { font-weight: 700; font-size: 15px; padding: 0 18px; min-height: 44px; border: 0; border-radius: 14px; background: var(--red); color: #fff; cursor: pointer; }
.add:hover { background: var(--red-dark); }
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--cream); border-radius: 14px; padding: 4px; }
.stepper button { width: 40px; height: 40px; border: 0; border-radius: 10px; background: #fff; color: var(--red); font-size: 20px; font-weight: 700; cursor: pointer; line-height: 1; }
.stepper button.plus { background: var(--red); color: #fff; }
.stepper output { min-width: 26px; text-align: center; font-weight: 800; }
.empty { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--field); border-radius: var(--radius); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.steps li:last-child { background: var(--gold); border-color: var(--gold); }
.steps .n { font-family: var(--display); font-weight: 700; font-size: 32px; color: var(--red); }
.steps li:last-child .n { color: var(--ink); }
.steps strong { font-size: 19px; }
.steps span { color: var(--muted); }
.steps li:last-child span { color: #4A3520; }

.split { display: flex; flex-wrap: wrap; gap: 24px; }
.panel { flex: 1 1 480px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.panel.cream { background: var(--cream); border-color: var(--cream); }
.panel h2 { font-size: 28px; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.kv span { display: block; color: var(--muted); font-size: 14px; }
.kv strong, .kv a { font-size: 18px; font-weight: 700; }

.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 24px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 32px !important; }
.foot-col { display: flex; flex-direction: column; gap: 6px; }
.foot-col strong { color: var(--ink); font-family: var(--display); font-size: 15px; }
.foot-col a { color: var(--muted); }
.foot-col a:hover { color: var(--red); }
.foot-legal { font-size: 13px; }

/* Юридические страницы */
.legal { max-width: 820px; padding-top: 40px; padding-bottom: 56px; }
.legal-date { color: var(--muted); margin: 8px 0 24px; }
.legal-body { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px 36px; line-height: 1.65; }
.legal-body h2 { font-size: 20px; margin: 26px 0 10px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; margin: 18px 0 8px; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 22px; }
.legal-missing { background: #FFE9A8; color: #6A4A12; padding: 0 4px; border-radius: 4px; font-size: .9em; }
.legal-edit { margin-top: 16px; }
.req { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 24px 32px; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 12px 24px; margin: 20px 0 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 700; }

/* Согласия в корзине */
.consents { display: flex; flex-direction: column; gap: 10px; }
.consents .consent { font-size: 14px; color: var(--ink); line-height: 1.45; }
.consents .consent.has-err span { color: #A11; }

/* Состав и КБЖУ в карточке */
.facts-pie { font-size: 13px; color: var(--muted); }
.facts-pie summary { cursor: pointer; color: var(--red); font-weight: 700; padding: 4px 0; list-style: none; }
.facts-pie summary::-webkit-details-marker { display: none; }
.facts-pie summary::after { content: " ▾"; }
.facts-pie[open] summary::after { content: " ▴"; }
.facts-pie dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 6px 0 0; }
.facts-pie dt { color: var(--muted); }
.facts-pie dd { margin: 0; color: var(--ink); }

/* Плашка cookie */
.cookie { position: fixed; left: 16px; bottom: 16px; z-index: 45; max-width: 460px; display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px 18px; box-shadow: 0 12px 30px rgba(42,25,20,.14); font-size: 14px; }
.cookie .btn { min-height: 40px; padding: 8px 16px; flex: none; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
body.has-mbar .cookie { bottom: 90px; }

/* Плавающая корзина на телефоне */
.mbar { position: fixed; left: 12px; right: 12px; bottom: 14px; z-index: 40; display: none; align-items: center; justify-content: space-between; background: var(--red); color: #fff; text-decoration: none; border-radius: 18px; padding: 15px 20px; box-shadow: 0 12px 30px rgba(181,25,25,.35); font-weight: 800; }
.mbar:hover { color: #fff; }

/* ---------- Кафетерий ---------- */
.cafe-hero .chip-note { background: var(--ink); color: #fff; display: flex; align-items: center; gap: 8px; }
.cafe-art .logo { position: absolute; left: 34px; top: 30px; width: 170px; height: 170px; background: var(--red); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.cafe-art .logo img { width: 146px; height: 146px; }
.cafe-art .pie { left: 40px; top: auto; bottom: 54px; transform: none; width: 56%; }
.cafe-art .mug { position: absolute; right: 44px; bottom: 60px; width: 34%; }
.story { background: #fff; border: 1px solid var(--line); border-radius: 36px; padding: 56px; display: flex; flex-wrap: wrap; gap: 40px 56px; }
.story > div { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.eyebrow { font-weight: 800; color: var(--red); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.story p { margin: 0; font-size: 18px; line-height: 1.65; color: #4A3830; }
.quote { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.25; color: var(--red); margin: 0; }
.feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feats div { background: var(--bg); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.feats strong { font-size: 15px; }
.feats span { font-size: 13px; color: var(--muted); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.vcard.gone { opacity: .6; }
.vcard .card-img { aspect-ratio: 16 / 10; }
.vcard div.b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.vcard strong { font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.3; }
.vcard .meta { display: flex; justify-content: space-between; align-items: center; }
.st { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.vcard.gone .st { background: var(--line-2); color: var(--muted); }
.drinks { background: var(--ink); color: #fff; border-radius: 36px; padding: 48px 56px; display: flex; flex-wrap: wrap; gap: 32px 56px; }
.drinks > div:first-child { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; }
.drinks .eyebrow { color: var(--gold); }
.drinks h2 { font-size: 34px; line-height: 1.1; }
.drinks p { margin: 0; color: #E9DCCB; }
.dlist { flex: 2 1 480px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.dlist div { display: flex; align-items: baseline; gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: 17px; }
.dlist i { flex: 1; border-bottom: 1px dotted rgba(255,255,255,.3); transform: translateY(-4px); }
.visit { flex: 1 1 420px; min-width: 0; background: var(--red); color: #fff; border-radius: 32px; padding: 44px; display: flex; flex-direction: column; gap: 20px; }
.visit .kv span { color: #F6DFC2; }
.visit a { color: #fff; }
.visit .btn-light { color: var(--red); border: 0; }
.visit .btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; background: transparent; }
.map { flex: 1 1 480px; min-width: 0; min-height: 360px; border-radius: 32px; background: #F3EADF; border: 1px dashed #C9B49B; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Корзина ---------- */
.checkout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cart-col { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 12px 28px; }
.line { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.line .thumb { width: 84px; height: 84px; border-radius: 18px; overflow: hidden; display: flex; align-items: center; justify-content: center; flex: none; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line .thumb svg { width: 76%; }
.line .info { flex: 1 1 200px; min-width: 0; }
.line .info strong { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.line .info span { font-size: 14px; color: var(--muted); }
.line .sum { width: 110px; text-align: right; font-size: 18px; font-weight: 800; }
.line .del { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted-2); border-radius: 12px; cursor: pointer; }
.line .del:hover { background: var(--sand); }
.box-foot { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; }
.note { background: var(--cream); border-radius: 22px; padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.note svg { flex: none; }
.form { flex: 1 1 420px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.form h2 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, legend { font-weight: 700; font-size: 14px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0 0 8px; }
.input { font-size: 16px; padding: 14px 16px; border: 1px solid var(--field); border-radius: 14px; background: #fff; width: 100%; }
.input:focus { border-color: var(--red); outline: none; box-shadow: 0 0 0 3px rgba(181,25,25,.12); }
textarea.input { resize: vertical; }
.err { color: #A11; font-size: 13px; font-weight: 700; }
.has-err .input { border-color: #C33; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--sand); padding: 5px; border-radius: 16px; }
.seg label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: #fff; color: var(--ink); font-weight: 800; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--gold); }
.opts { display: grid; gap: 8px; }
.opt { position: relative; display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--field); border-radius: 16px; padding: 14px 16px; cursor: pointer; }
.opt input { accent-color: var(--red); margin-top: 4px; }
.opt:has(input:checked) { border: 2px solid var(--red); padding: 13px 15px; }
.opt b { display: block; }
.opt small { color: var(--muted); font-size: 14px; }
.opt .pr { margin-left: auto; font-weight: 800; white-space: nowrap; }
.days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; border-radius: 14px; border: 1px solid var(--field); background: #fff; font-size: 13px; cursor: pointer; padding: 0; }
.day b { font-size: 18px; }
.day.on { background: var(--red); border-color: var(--red); color: #fff; }
.day.off { background: var(--sand); border-color: var(--sand); color: var(--muted-2); cursor: not-allowed; }
.day.off b { text-decoration: line-through; }
.other-date { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; }
.other-date .input { width: auto; padding: 10px 12px; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.totals { border-top: 1px solid var(--line-2); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { align-items: baseline; }
.totals .grand strong:last-child { font-family: var(--display); font-size: 26px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.consent input { accent-color: var(--red); margin-top: 3px; }
.alert { background: #FDECEC; color: #8A1212; border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Спасибо ---------- */
.thanks { max-width: 720px; margin: 64px auto; background: #fff; border: 1px solid var(--line); border-radius: 32px; padding: 48px; display: flex; flex-direction: column; gap: 18px; text-align: center; align-items: center; }
.thanks .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; }
.thanks h1 { font-size: 34px; }
.thanks table { width: 100%; border-collapse: collapse; text-align: left; margin-top: 8px; }
.thanks td { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.thanks td:last-child { text-align: right; font-weight: 700; }

.meme { position: relative; margin: 14px 0 4px; width: 100%; max-width: 520px; background: #fff; border: 2px solid var(--red); border-radius: 22px; padding: 22px 16px 16px; box-shadow: 0 18px 40px rgba(42,25,20,.14); }
.meme-tag { position: absolute; left: 50%; top: -14px; transform: translateX(-50%); background: var(--red); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.meme img { width: 100%; height: auto; max-height: 520px; object-fit: contain; border-radius: 14px; background: var(--sand); }
.meme p { margin: 10px 0 0; font-weight: 700; }

/* Салют из пирогов */
.burst-layer { position: fixed; inset: 0; pointer-events: none; z-index: 1000; overflow: hidden; }
.burst-layer .bp { position: absolute; left: 0; top: 0; will-change: transform, opacity; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .brand-text { display: none; }
}
@media (max-width: 860px) {
  .header .wrap { gap: 10px 14px; }
  .phone span { display: none; }
  .pill-cafe { font-size: 14px; }
  .hero { padding-top: 32px; gap: 28px; }
  .hero-art { height: 340px; }
  .hero-art .stamp { width: 120px; height: 120px; right: 8px; top: 12px; }
  .hero-art .stamp img { width: 104px; height: 104px; }
  .story, .drinks { padding: 32px 24px; }
  .feats { grid-template-columns: 1fr; }
  .dlist { grid-template-columns: 1fr; }
  .visit, .panel { padding: 28px 22px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .header .wrap { padding-top: 10px; padding-bottom: 10px; }
  .header { position: static; }
  section[id], main [id] { scroll-margin-top: 12px; }
  .nav { display: contents; }
  .nav-order { order: 1; }
  .header-right { order: 2; margin-left: auto; gap: 10px; }
  .pill-cafe { order: 3; width: 100%; justify-content: center; }
  .phone { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
  .cart-btn { padding: 10px 14px; }
  .cart-btn .lbl { display: none; }
  .brand-badge { width: 48px; height: 48px; }
  .brand-badge img { width: 42px; height: 42px; }
  .nav-order { font-size: 14px; }
  .pill-cafe { font-size: 13px; padding-right: 12px; }
  .pill-cafe .cup { width: 30px; height: 30px; }
  .grid { grid-template-columns: 1fr; }
  .card { flex-direction: row; }
  .card-img { width: 112px; flex: none; aspect-ratio: auto; }
  .card-body { padding: 14px; }
  .card-body h3 { font-size: 15px; }
  .card-body p { display: none; }
  .price { font-size: 17px; }
  .lead { font-size: 17px; }
  .mbar.on { display: flex; }
  body.has-mbar { padding-bottom: 84px; }
  .box { padding: 6px 16px; }
  .line { gap: 12px; }
  .line .thumb { width: 64px; height: 64px; }
  .line .sum { width: auto; margin-left: auto; }
  .form { padding: 22px 18px; }
  .days { gap: 6px; }
  .thanks { margin: 24px 16px; padding: 28px 20px; }
  .legal-body { padding: 22px 18px; }
  .req { grid-template-columns: 1fr; padding: 18px; gap: 2px; }
  .req dd { margin-bottom: 10px; }
  .cookie { left: 12px; right: 12px; max-width: none; }
}
