
:root {
  --amber: #f5a300;
  --amber-dark: #d98c00;
  --amber-soft: #fde7b0;
  --brown: #5a3720;
  --brown-soft: #7a5335;
  --cream: #fff6e5;
  --paper: #fffdf8;
  --terracotta: #c8562b;
  --line: #ecd9b4;
  --radius: 22px;
  --shadow: 0 10px 28px rgba(90, 55, 32, .12);
  --font-head: 'Podkova', Georgia, serif;
  --font-body: 'Nunito', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--brown);
  background: var(--cream);
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
section { padding: 84px 0; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head p { color: var(--brown-soft); max-width: 560px; margin: 0 auto; }
.eyebrow {
  display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 800 16px var(--font-body); padding: 14px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--amber); color: var(--brown); box-shadow: 0 6px 0 var(--amber-dark); }
.btn-primary:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--amber-dark); }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: var(--cream); }
.btn-small { padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: default; box-shadow: none; transform: none; }
.btn[disabled]:hover { transform: none; box-shadow: none; }

/* Topbar + header */
.topbar { background: var(--brown); color: var(--amber-soft); font-size: 14px; font-weight: 600; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; flex-wrap: wrap; }
.topbar b { color: var(--amber); }
.order-status { display: inline-flex; align-items: center; gap: 7px; }
.order-status i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.order-status.is-open i { background: #4caf50; box-shadow: 0 0 0 3px rgba(76, 175, 80, .25); }
.order-status.is-closed i { background: #e0533d; box-shadow: 0 0 0 3px rgba(224, 83, 61, .25); }
.order-status.is-closed { color: var(--amber-soft); opacity: .85; }
.free-note.is-closed { color: var(--terracotta); font-weight: 700; }

.header { background: var(--paper); position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; }
.logo span { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.nav { display: flex; gap: 28px; font-weight: 700; }
.nav a { padding: 6px 0; border-bottom: 3px solid transparent; transition: .2s; }
.nav a:hover { border-color: var(--amber); }
.actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px;
  padding: 10px 16px; border-radius: 999px; background: var(--cream); border: 2px solid var(--line); cursor: pointer; color: var(--brown);
}
.icon-btn:hover { border-color: var(--amber); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  background: var(--terracotta); color: #fff; min-width: 22px; height: 22px; border-radius: 11px;
  font-size: 13px; display: inline-grid; place-items: center; padding: 0 6px;
}

/* Hero */
.hero { padding: 56px 0 90px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 640px; height: 640px; border-radius: 50%;
  background: var(--amber); right: -160px; top: -120px; z-index: 0;
}
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--terracotta); }
.hero p.lead { font-size: 19px; color: var(--brown-soft); max-width: 500px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-facts { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-facts div { font-weight: 700; font-size: 15px; }
.hero-facts strong { display: block; font-family: var(--font-head); font-size: 26px; }
.hero-art { display: grid; place-items: center; }
.hero-art .badge {
  width: min(430px, 88%); aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 10px solid var(--paper); box-shadow: var(--shadow); transform: rotate(-4deg);
}
.hero-art .badge img { width: 100%; height: 100%; object-fit: cover; }

/* Delivery strip */
.strip { padding: 0; margin-top: -34px; position: relative; z-index: 2; }
.strip .container {
  background: var(--brown); color: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 26px 32px;
}
.strip-item { display: flex; gap: 14px; align-items: center; }
.strip-item .ic {
  flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--amber); color: var(--brown);
  display: grid; place-items: center;
}
.strip-item .ic svg { width: 24px; height: 24px; }
.strip-item b { display: block; font-family: var(--font-head); font-size: 18px; }
.strip-item span { font-size: 14px; color: var(--amber-soft); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat {
  background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px 20px;
  text-align: center; transition: .2s; cursor: pointer;
}
.cat:hover { transform: translateY(-6px); border-color: var(--amber); box-shadow: var(--shadow); }
.cat .ic {
  width: 78px; height: 78px; border-radius: 50%; background: var(--amber-soft); margin: 0 auto 14px;
  display: grid; place-items: center; color: var(--brown);
}
.cat .ic svg { width: 40px; height: 40px; }
.cat h3 { font-size: 20px; margin-bottom: 4px; }
.cat span { font-size: 14px; color: var(--brown-soft); font-weight: 600; }

/* Products */
.products-bg { background: var(--paper); border-block: 2px solid var(--line); }
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.tab {
  font: 800 15px var(--font-body); padding: 10px 20px; border-radius: 999px; cursor: pointer;
  background: var(--cream); border: 2px solid var(--line); color: var(--brown);
}
.tab.active, .tab:hover { background: var(--amber); border-color: var(--amber); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.thumb {
  aspect-ratio: 4/3; position: relative; display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.28) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, var(--amber), #f7c04a);
  color: var(--brown);
}
.thumb.t2 { background: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 12px, transparent 12px 24px), linear-gradient(135deg, #e58a3c, #f3b25e); }
.thumb.t3 { background: repeating-linear-gradient(45deg, rgba(255,255,255,.22) 0 12px, transparent 12px 24px), linear-gradient(135deg, #c8562b, #e58a5a); }
.thumb.t4 { background: repeating-linear-gradient(45deg, rgba(255,255,255,.25) 0 12px, transparent 12px 24px), linear-gradient(135deg, #8a5a36, #b8875a); }
.thumb svg { width: 64px; height: 64px; opacity: .85; }
.thumb small { position: absolute; bottom: 8px; right: 12px; font-weight: 700; font-size: 12px; opacity: .7; }
/* Фото любого формата — в рамке фиксированной пропорции, целиком (см.
   nashekafe_product_photo_html()): размытая копия заполняет поля по краям. */
.thumb.has-photo { background: var(--paper); overflow: hidden; }
.thumb.has-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.thumb.has-photo > .photo-bg { object-fit: cover; filter: blur(18px) saturate(1.15); transform: scale(1.15); opacity: .75; }
.thumb.has-photo > .photo-main { object-fit: contain; }
.thumb.has-photo .tag { z-index: 1; }
.tag {
  position: absolute; top: 12px; left: 12px; background: var(--brown); color: var(--amber-soft);
  font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px;
}
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 19px; margin-bottom: 4px; }
.card-body p { font-size: 14px; color: var(--brown-soft); flex: 1; margin-bottom: 14px; }
.weight { font-size: 13px; font-weight: 700; color: var(--terracotta); margin-bottom: 4px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 21px; }
.price small { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--brown-soft); }
.add {
  /* flex — чтобы «+» был по центру и у кнопки, и у ссылки (десерты, корн-дог, пельмени ведут на страницу товара) */
  display: inline-flex; align-items: center; justify-content: center; flex: none; padding: 0;
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--amber); color: var(--brown);
  font-size: 26px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 4px 0 var(--amber-dark); transition: .15s;
}
.add:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--amber-dark); }
.center { text-align: center; margin-top: 40px; }

/* About */
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); aspect-ratio: 1406 / 1086; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: 18px; }
.about p { margin-bottom: 16px; color: var(--brown-soft); }
.about ul { display: grid; gap: 12px; margin: 22px 0 28px; }
.about li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; }
.about li::before {
  content: ''; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a3720' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E");
  background-size: 16px; background-position: center; background-repeat: no-repeat;
}

/* Promo */
.promo-bg { background: var(--amber); }
.promo-bg .eyebrow { color: var(--brown); }
.promo-bg .section-head p { color: var(--brown); }
.week-promos { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px; }
.week-promo h3, .week-promo p { overflow-wrap: break-word; hyphens: auto; }
.week-promo {
  background: var(--paper); border-radius: 18px; padding: 22px 10px; position: relative; text-align: center;
  border: 2px solid transparent;
}
.week-promo-day { display: block; font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--brown-soft); margin-bottom: 10px; }
.week-promo h3 { font-size: 15px; margin-bottom: 6px; }
.week-promo p { font-size: 13px; color: var(--brown-soft); }
.week-promo.is-today { border-color: var(--brown); background: var(--cream); box-shadow: var(--shadow); }
.week-promo.is-today .week-promo-day { color: var(--terracotta); }
.week-promo-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--terracotta); color: #fff;
  font-size: 11px; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.week-promo .btn { margin-top: 12px; width: 100%; padding-inline: 8px; }
.week-promo-applied { font-size: 12px; font-weight: 800; color: var(--terracotta); margin-top: 10px; margin-bottom: 0; }

.promo-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: var(--amber-soft); border: 2px solid var(--amber); border-radius: 18px; padding: 16px 20px; margin-bottom: 24px;
}
.promo-banner.is-active { background: var(--cream); border-color: var(--brown); }
.promo-banner-text { display: flex; flex-direction: column; gap: 2px; }
.promo-banner-eyebrow { font-weight: 800; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--terracotta); }
.promo-banner-text b { font-family: var(--font-head); font-size: 18px; }
.promo-banner-text span:last-child { font-size: 14px; color: var(--brown-soft); }
.catalog-promo { margin-top: 32px; }
.promo-banner-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.promo-note { font-size: 12px; color: var(--terracotta); font-weight: 700; text-align: right; max-width: 240px; }
.week-promo .promo-note { display: block; margin-top: 8px; text-align: center; max-width: none; }
.promo-banner.is-compact { padding: 12px 14px; border-radius: 14px; margin: 0 0 14px; }
.promo-banner.is-compact .promo-banner-text b { font-size: 15px; }
.promo-banner.is-compact .promo-banner-text span:last-child { font-size: 13px; }

/* Reviews — виджет Яндекс Карт в рамке в стиле сайта */
.reviews-ya { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 48px; align-items: center; }
.reviews-ya-text .eyebrow { display: block; }
.reviews-ya-text p { color: var(--brown-soft); margin-bottom: 26px; max-width: 460px; }
.reviews-ya-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.reviews-ya-frame {
  position: relative; height: 800px; border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 2px solid var(--line); box-shadow: var(--shadow);
}
.reviews-ya-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.reviews-ya-credit {
  position: absolute; left: 0; bottom: 8px; width: 100%; padding: 0 16px; text-align: center;
  font: 10px 'YS Text', sans-serif; color: #b3b3b3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }

/* Contacts */
.contacts-bg { background: var(--brown); color: var(--cream); }
.contacts-bg .eyebrow { color: var(--amber); }
.contacts-bg .section-head p { color: var(--amber-soft); }
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; }
.info-list { display: grid; gap: 16px; }
.info {
  background: rgba(255, 246, 229, .08); border: 2px solid rgba(255, 246, 229, .15); border-radius: var(--radius);
  padding: 20px 24px; display: flex; gap: 16px; align-items: flex-start;
}
.info .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--amber); color: var(--brown); display: grid; place-items: center; }
.info .ic svg { width: 22px; height: 22px; }
.info h3 { font-size: 18px; margin-bottom: 2px; }
.info p, .info a { color: var(--amber-soft); font-size: 16px; }
.info a:hover { color: var(--amber); }
.map {
  min-height: 340px; border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(255, 246, 229, .15);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; }

/* Footer */
.footer { background: #40260f; color: var(--amber-soft); padding: 44px 0 26px; font-size: 15px; }
.footer .container { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer .logo span { color: var(--cream); }
.footer h4 { font-family: var(--font-head); color: var(--cream); margin-bottom: 12px; font-size: 17px; }
.footer li { margin-bottom: 6px; }
.footer a:hover { color: var(--amber); }
.legal { grid-column: 1 / -1; border-top: 1px solid rgba(255, 246, 229, .15); padding-top: 20px; font-size: 13px; opacity: .8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1020px) {
  .grid, .cats { grid-template-columns: repeat(2, 1fr); }
  .hero .container, .about .container, .contacts { grid-template-columns: 1fr; }
  .hero::before { width: 420px; height: 420px; right: -140px; top: auto; bottom: -100px; }
  .hero-art { order: -1; }
  .hero-art .badge { width: 260px; }
  .strip .container { grid-template-columns: 1fr; }
  .reviews-ya { grid-template-columns: 1fr; gap: 28px; }
  .reviews-ya-text { text-align: center; }
  .reviews-ya-text p { margin-inline: auto; }
  .reviews-ya-btns { justify-content: center; }
  .reviews-ya-frame { max-width: 560px; width: 100%; margin-inline: auto; height: 640px; }
  .week-promos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nav { display: none; }
  .footer .container { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 56px 0; }
  .grid, .cats { grid-template-columns: 1fr; }
  .week-promos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .week-promo { padding: 20px 10px; }
  .week-promo .btn { padding: 10px 8px; font-size: 14px; }
  .icon-btn .label { display: none; }
  .logo span { font-size: 18px; }
  .topbar .container > :last-child { display: none; }
}

/* ===== Общее ===== */
[hidden] { display: none !important; }
.nav a.current { border-color: var(--amber); }
.mini { width: 18px; height: 18px; }

/* Подстраницы */
.page-hero { background: var(--amber); padding: 40px 0 44px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 50px); margin-bottom: 8px; }
.page-hero p { max-width: 560px; }
.page-content { padding: 48px 0 90px; }
.crumbs { font-size: 14px; font-weight: 700; margin-bottom: 12px; opacity: .8; }
.crumbs a:hover { text-decoration: underline; }
.search {
  margin-top: 22px; display: flex; align-items: center; gap: 10px; max-width: 460px;
  background: var(--paper); border-radius: 999px; padding: 4px 20px; border: 2px solid var(--brown);
}
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; border: 0; background: none; font: 600 16px var(--font-body); padding: 12px 0; color: var(--brown); outline: none; }

.catbar { position: sticky; top: 83px; z-index: 40; background: var(--paper); border-bottom: 2px solid var(--line); }
.catbar .container { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.catbar .container::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: var(--cream); font-weight: 800; font-size: 15px; transition: .2s;
}
.chip svg { width: 20px; height: 20px; }
.chip:hover, .chip.on { background: var(--amber); border-color: var(--amber); }

.catalog { padding: 40px 0 90px; }
.cat-section { padding-top: 20px; margin-bottom: 40px; scroll-margin-top: 150px; }
.cat-section h2 { font-size: 32px; margin-bottom: 6px; }
.cat-section .sub { color: var(--brown-soft); margin-bottom: 16px; }
.cat-section .grid { margin-top: 18px; }
.catalog .card { background: var(--paper); }
.nothing { text-align: center; padding: 60px 0; font-weight: 700; color: var(--brown-soft); }
.sizes { display: flex; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.size, .opt {
  font: 800 13px var(--font-body); padding: 4px 12px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--line); background: var(--cream); color: var(--brown);
}
.size.on, .opt.on { background: var(--brown); border-color: var(--brown); color: var(--cream); }

/* Корзина-шторка */
.overlay { position: fixed; inset: 0; background: rgba(64, 38, 15, .5); opacity: 0; pointer-events: none; transition: .25s; z-index: 90; }
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(430px, 100%); background: var(--paper); z-index: 100;
  transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.2);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 2px solid var(--line); }
.drawer-head h3 { font-size: 24px; }
.x { background: var(--cream); border: 2px solid var(--line); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--brown); }
.x svg { width: 18px; height: 18px; }
.x:hover { border-color: var(--amber); }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-foot { padding: 18px 24px 24px; border-top: 2px solid var(--line); background: var(--cream); }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.line-info b { display: block; font-size: 16px; line-height: 1.25; }
.line-info span { font-size: 13px; color: var(--brown-soft); font-weight: 600; }
.line-sum { font-weight: 800; min-width: 64px; text-align: right; }
.line-gift { background: var(--amber-soft); margin: 0 -12px; padding: 14px 12px; border-radius: 14px; border-bottom: none; }
.gift-tag { font-weight: 800; font-size: 13px; color: var(--terracotta); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--cream); border: 2px solid var(--line); border-radius: 999px; }
.qty button { width: 30px; height: 30px; border: 0; background: none; font-size: 18px; font-weight: 800; cursor: pointer; color: var(--brown); border-radius: 50%; }
.qty button:hover { background: var(--amber); }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.empty { text-align: center; padding: 70px 10px; color: var(--brown-soft); font-weight: 700; }
.empty svg { width: 64px; height: 64px; margin: 0 auto 12px; color: var(--amber); }
.empty p { margin-bottom: 18px; }
.free-note { font-size: 14px; margin: 8px 0 14px; color: var(--brown-soft); }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; font-weight: 700; }
.total b { font-family: var(--font-head); font-size: 26px; }
.drawer-foot .total { margin-top: 0; }
.fee-line { font-size: 14px; color: var(--terracotta); margin: 4px 0; }
.fee-line b { font-family: var(--font-body); font-size: 15px; font-weight: 800; }
.link-btn { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--brown-soft); font: 700 14px var(--font-body); text-decoration: underline; cursor: pointer; }

/* Корзина на мобильных — тот же контент, что на десктопе, умещается в узкий
   экран без потери читаемости: нижний блок (адрес/итог/кнопки) раньше занимал
   столько же места, что и на десктопе, и «съедал» всю высоту, из-за чего
   список товаров обрезался прямо на границе прокрутки. */
@media (max-width: 560px) {
  .drawer-head { padding: 14px 16px; }
  .drawer-head h3 { font-size: 20px; }
  .drawer-body { padding: 4px 16px; }
  .line { padding: 10px 0; gap: 8px; }
  .line-info { min-width: 0; }
  .line-info b { font-size: 15px; }
  .line-info span { font-size: 12px; }
  .line-sum { min-width: 52px; font-size: 15px; }
  .line-gift { margin: 0 -8px; padding: 10px 8px; }
  .qty button { width: 26px; height: 26px; font-size: 16px; }
  .qty span { min-width: 16px; font-size: 14px; }
  .drawer-foot { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); }
  .free-note { font-size: 13px; margin: 6px 0 10px; }
  .fee-line { font-size: 13px; margin: 3px 0; }
  .total { margin: 10px 0; }
  .total b { font-size: 22px; }
  .link-btn { margin-top: 8px; font-size: 13px; }

  /* Баннер «акция дня» в корзине — компактнее: без ярлыка-эйброу, кнопка и
     подсказка о доставке в один ряд вместо отдельных строк. */
  .promo-banner.is-compact { padding: 8px 10px; gap: 6px; margin-bottom: 10px; }
  .promo-banner.is-compact .promo-banner-eyebrow { display: none; }
  .promo-banner.is-compact .promo-banner-text { gap: 0; }
  .promo-banner.is-compact .promo-banner-text b { font-size: 13px; }
  .promo-banner.is-compact .promo-banner-text span:last-child { font-size: 11px; line-height: 1.3; }
  .promo-banner.is-compact .promo-banner-actions { flex-direction: row; align-items: center; gap: 8px; }
  .promo-banner.is-compact .btn-small { padding: 6px 12px; font-size: 12px; }
  .promo-banner.is-compact .promo-note-label { display: none; }
}

/* Оформление заказа */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; opacity: 0; pointer-events: none; transition: .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-box { position: relative; background: var(--paper); border-radius: var(--radius); padding: 32px; width: min(560px, 100%); max-height: 92vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.modal-box > .x { position: absolute; top: 16px; right: 16px; }
.modal-box h3 { font-size: 26px; margin-bottom: 18px; padding-right: 44px; }
.fld { display: block; font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.fld input, .fld textarea, .fld select {
  display: block; width: 100%; margin-top: 6px; font: 600 16px var(--font-body); padding: 12px 16px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--cream); color: var(--brown); outline: none; resize: vertical;
}
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--amber); background: #fff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 14px; color: var(--brown-soft); margin-bottom: 12px; }
.form-error { font-size: 14px; font-weight: 800; color: var(--terracotta); margin: -6px 0 14px; }
.seg { display: flex; gap: 8px; margin-bottom: 16px; }
.seg label { flex: 1; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 11px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); font-weight: 800; font-size: 15px; }
.seg input:checked + span { background: var(--amber); border-color: var(--amber); }
.seg input:focus-visible + span { outline: 2px solid var(--brown); }
.done { text-align: center; padding: 10px 0; }
.done-ic { width: 84px; height: 84px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; margin: 0 auto 18px; }
.done-ic svg { width: 42px; height: 42px; }
.done h3 { padding: 0; }
.done p { color: var(--brown-soft); margin-bottom: 22px; }
.done-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 30px); background: var(--brown); color: var(--cream);
  padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; opacity: 0; transition: .25s; z-index: 200; pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Личный кабинет */
.account { padding: 48px 0 90px; }
.auth { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.auth-box, .auth-side { border-radius: var(--radius); padding: 36px; }
.auth-box { background: var(--paper); border: 2px solid var(--line); }
.auth-box h2 { font-size: 30px; }
.auth-box p { color: var(--brown-soft); margin-bottom: 22px; }
.auth-side { background: var(--brown); color: var(--cream); }
.auth-side h3 { font-size: 24px; margin-bottom: 18px; }
.auth-side li { padding: 12px 0 12px 34px; position: relative; border-bottom: 1px solid rgba(255,246,229,.15); font-weight: 600; }
.auth-side li::before { content: ''; position: absolute; left: 0; top: 15px; width: 20px; height: 20px; border-radius: 50%; background: var(--amber); }

.acc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.acc-side { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.me { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.me b { display: block; font-family: var(--font-head); font-size: 20px; }
.me span { font-size: 14px; color: var(--brown-soft); font-weight: 600; }
.avatar.big { width: 60px; height: 60px; font-size: 26px; flex: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.stats div { background: var(--cream); border-radius: 16px; padding: 12px 14px; }
.stats b { display: block; font-family: var(--font-head); font-size: 19px; }
.stats span { font-size: 13px; color: var(--brown-soft); font-weight: 700; }
.acc-nav { display: grid; gap: 6px; }
.acc-nav a, .acc-nav button { display: block; text-align: left; font: 800 16px var(--font-body); padding: 12px 16px; border-radius: 14px; border: 0; background: none; color: var(--brown); cursor: pointer; text-decoration: none; }
.acc-nav a:hover, .acc-nav button:hover { background: var(--cream); }
.acc-nav a.on, .acc-nav button.on { background: var(--amber); }
.acc-nav .out { color: var(--terracotta); margin-top: 6px; }
.acc-main h2 { font-size: 30px; margin-bottom: 20px; }

.order { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px; }
.order-head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; margin-bottom: 8px; }
.order-head b { font-family: var(--font-head); font-size: 19px; display: block; }
.order-head > div span { font-size: 14px; color: var(--brown-soft); font-weight: 600; }
.order-total { font-size: 20px !important; }
.status { font-size: 13px; font-weight: 800; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.st-new { background: var(--amber-soft); }
.st-cook { background: var(--amber); }
.st-way { background: #cfe3f7; }
.st-done { background: #d5ebc8; color: #2f5a1e; }
.st-cancel { background: #eadfd6; color: #8a7360; }
.order-sum { color: var(--brown-soft); font-size: 15px; margin-bottom: 12px; }
details { margin-bottom: 14px; }
summary { cursor: pointer; font-weight: 800; font-size: 14px; color: var(--terracotta); }
.items { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
.items td { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.items td:not(:first-child) { text-align: right; white-space: nowrap; padding-left: 14px; }
.items small { color: var(--brown-soft); font-weight: 700; }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: 15px; }
.meta dt { font-weight: 800; }
.meta dd { color: var(--brown-soft); }
.empty-box { background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius); padding: 50px 20px; text-align: center; }
.empty-box p { margin: 6px 0 20px; color: var(--brown-soft); }
.card-form { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 620px; }
.addr-list { display: grid; gap: 10px; margin-bottom: 22px; max-width: 620px; }
.addr { display: flex; align-items: center; gap: 14px; background: var(--paper); border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; font-weight: 700; }
.addr > svg { width: 22px; height: 22px; color: var(--terracotta); flex: none; }
.addr span { flex: 1; }
.addr button { border: 0; background: none; cursor: pointer; color: var(--brown-soft); }
.addr button:hover { color: var(--terracotta); }
.addr button svg { width: 20px; height: 20px; }
.addr-default { color: var(--terracotta); font-weight: 800; font-style: normal; font-size: 13px; }
.card-form h3 { font-size: 20px; margin-bottom: 16px; }
#addAddressBtn { margin-bottom: 22px; }
#addressForm { margin-bottom: 26px; }

.saved-address-picker { display: grid; gap: 8px; margin-bottom: 14px; }
.saved-address-option { display: flex; align-items: center; gap: 10px; background: var(--cream); border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
.saved-address-option input { width: auto; margin: 0; flex: none; }
.saved-address-option:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }

.woocommerce-error, .woocommerce-message, .woocommerce-info {
  list-style: none; margin: 0 0 20px; padding: 14px 18px; border-radius: 14px;
  background: var(--cream); border: 2px solid var(--line); font-weight: 700; font-size: 14px; color: var(--brown);
}
.woocommerce-error li, .woocommerce-message li, .woocommerce-info li { margin: 0; }

@media (max-width: 1020px) {
  .acc-grid, .auth { grid-template-columns: 1fr; }
  .acc-side { position: static; }
}
@media (max-width: 560px) {
  .row2 { grid-template-columns: 1fr; }
  .order-head { grid-template-columns: 1fr auto; }
  .order-total { grid-column: 1 / -1; }
  .modal-box, .auth-box, .auth-side { padding: 24px 20px; }
}

/* Карточка товара */
.card h3 a:hover { color: var(--terracotta); }
a.thumb { text-decoration: none; }
.pd { padding: 32px 0 60px; }
.pd .crumbs { color: var(--brown); margin-bottom: 24px; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.pd-photo { border-radius: var(--radius); aspect-ratio: 1 / .92; box-shadow: var(--shadow); overflow: hidden; }
.pd-photo svg { width: 120px; height: 120px; }
.pd-photo small { font-size: 14px; }
.pd-info h1 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 18px; }
.pd-label { font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brown-soft); margin: 18px 0 8px; }
.pd-info .weight { font-size: 16px; }
.sizes.big .size, .sizes.big .opt { font-size: 16px; padding: 8px 20px; }
.pd-hint { color: var(--brown-soft); font-size: 13px; margin: -2px 0 8px; }
.pd-desc { color: var(--brown-soft); font-size: 18px; }
.pd-price { margin: 24px 0 18px; }
.pd-price b { font-family: var(--font-head); font-size: 42px; }
.pd-buy { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.qty.big button { width: 42px; height: 42px; font-size: 22px; }
.qty.big span { min-width: 34px; font-size: 18px; }
.pd-facts { display: grid; gap: 12px; border-top: 2px solid var(--line); padding-top: 22px; }
.pd-facts li { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; }
.pd-facts svg { width: 22px; height: 22px; color: var(--terracotta); flex: none; }
.pd-extras { margin-top: 48px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pd-extras h3 { font-size: 24px; margin-bottom: 16px; }
.extras { display: flex; flex-wrap: wrap; gap: 10px; }
.extra { font: 700 15px var(--font-body); padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); background: var(--cream); color: var(--brown); cursor: pointer; transition: .2s; }
.extra b { color: var(--terracotta); margin-left: 4px; }
.extra:hover { background: var(--amber); border-color: var(--amber); }
.pd-more { padding: 64px 0; border-bottom: 0; }
@media (max-width: 1020px) { .pd-grid { grid-template-columns: 1fr; gap: 28px; } .pd-photo { aspect-ratio: 1 / 1; } }

/* ===== Рукописные детали ===== */
.note {
  font-family: 'Caveat', cursive; font-weight: 700; font-size: 21px; line-height: 1; color: var(--brown);
  background: #fff8dc; padding: 5px 12px 6px; border-radius: 6px; box-shadow: 0 3px 8px rgba(90, 55, 32, .25);
  transform: rotate(4deg); position: absolute; top: 12px; right: 10px; white-space: nowrap; z-index: 2;
}
.note::before {
  content: ''; position: absolute; left: 50%; top: -7px; width: 34px; height: 12px; margin-left: -17px;
  background: rgba(245, 163, 0, .55); transform: rotate(-3deg); border-radius: 2px;
}
.card:hover .note { transform: rotate(-2deg) scale(1.06); }
.note { transition: transform .25s; }
.note.inline { position: static; display: inline-block; margin: -8px 0 12px 4px; vertical-align: middle; font-size: 24px; transform: rotate(-3deg); }

.has-scribble { position: relative; display: inline-block; }
.section-head .has-scribble, .page-hero .has-scribble { max-width: 100%; }
.scribble { position: absolute; left: 0; bottom: -12px; width: 100%; height: 14px; overflow: visible; color: var(--terracotta); pointer-events: none; }
.scribble path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1s cubic-bezier(.6, .1, .3, 1) .15s; vector-effect: non-scaling-stroke; }
.scribble.drawn path { stroke-dashoffset: 0; }
.hero h1 em .scribble { bottom: -10px; }
.hero h1 em { display: inline-block; position: relative; }
.page-hero .scribble, .promo-bg .scribble { color: var(--brown); }
.contacts-bg .scribble { color: var(--amber); }
.cat-section h2 { margin-bottom: 14px; }

/* ===== Полёт в корзину ===== */
.fly {
  position: fixed; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--amber); color: var(--brown);
  border: 3px solid var(--brown); display: grid; place-items: center; z-index: 300; pointer-events: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .3);
}
.fly svg { width: 24px; height: 24px; }
.bump { animation: bump .5s cubic-bezier(.3, 1.6, .5, 1); }
.bump .cart-count { animation: pop .5s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes bump { 0% { transform: scale(1) } 35% { transform: scale(1.14) rotate(-4deg) } 100% { transform: scale(1) } }
@keyframes pop { 0% { transform: scale(1) } 40% { transform: scale(1.7) } 100% { transform: scale(1) } }

@media (prefers-reduced-motion: reduce) {
  .scribble path { transition: none; }
  .bump, .bump .cart-count { animation: none; }
}
.section-head .eyebrow { display: block; }
.pd-info .eyebrow { display: block; }

/* ===== Иконка-подсказка (i) ===== */
.info-tip {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 17px; height: 17px; border-radius: 50%; background: var(--line); color: var(--brown-soft);
  font: 800 11px/1 var(--font-body); border: none; padding: 0; cursor: help;
}
.info-tip:hover, .info-tip:focus-visible { background: var(--terracotta); color: #fff; outline: none; }
.info-tip::after {
  content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px);
  background: var(--brown); color: var(--cream); font: 700 12px/1.4 var(--font-body); padding: 8px 12px;
  border-radius: 10px; width: max-content; max-width: 220px; white-space: normal; text-align: left;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); pointer-events: none; transition: .15s; z-index: 6;
}
.info-tip:hover::after, .info-tip:focus-visible::after { opacity: 1; transform: translateY(0); }
.promo-note { display: inline-flex; align-items: center; gap: 6px; }

/* ===== Мобильная нижняя навигация ===== */
.mobile-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--paper); border-top: 2px solid var(--line); box-shadow: 0 -8px 20px rgba(90, 55, 32, .12);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.mobile-nav-item {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 2px; border-radius: 14px; color: var(--brown-soft); font-size: 11px; font-weight: 800; text-align: center;
}
.mobile-nav-item svg { width: 22px; height: 22px; }
.mobile-nav-item.current { color: var(--terracotta); }
.mobile-nav-item .cart-count {
  position: absolute; top: 0; right: 22%; min-width: 16px; height: 16px; font-size: 10px; border-radius: 8px; padding: 0 4px;
}
@media (max-width: 1020px) {
  .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); }
  .actions { display: none; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(58px + env(safe-area-inset-bottom) + 14px); }
}

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* ===== Способ получения: кнопка в шапке ===== */
.header .container { gap: 20px; }
/* Название сайта задаётся в админке и может быть длинным («Наше кафе —
   доставка еды») — переносим его в две строки, а не растягиваем шапку. */
.logo { flex: none; }
.logo span { line-height: 1.15; max-width: 8.5em; }
.nav a { white-space: nowrap; }
.nav { gap: 22px; }
/* Страница никогда не должна двигаться вбок на телефоне (clip, а не hidden —
   иначе перестаёт работать «липкая» шапка). */
html, body { overflow-x: clip; }
.fulfil-pill {
  display: flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 250px; max-width: 250px; margin-right: auto;
  padding: 6px 14px 6px 10px; border-radius: 16px; border: 2px solid transparent; background: none;
  font: inherit; color: var(--brown); text-align: left; cursor: pointer; transition: .2s;
}
.fulfil-pill:hover { border-color: var(--line); background: var(--cream); }
.fulfil-pill > svg { width: 22px; height: 22px; flex: none; color: var(--terracotta); }
.fulfil-pill-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fulfil-pill-text b { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fulfil-pill-text b i { font-style: normal; color: var(--terracotta); }
.fulfil-pill-text span { font-size: 13px; color: var(--brown-soft); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fulfil-pill.is-empty .fulfil-pill-text span { color: var(--terracotta); text-decoration: underline; }

/* ===== Окно «Доставка / Самовывоз» ===== */
.fulfil-box { width: min(940px, 100%); padding: 0; display: grid; grid-template-columns: 400px 1fr; overflow: hidden; }
.fulfil-form { padding: 28px; overflow-y: auto; max-height: 92vh; display: flex; flex-direction: column; }
.fulfil-box > .x { z-index: 2; box-shadow: var(--shadow); }
.fulfil-form h3 { font-size: 24px; margin: 4px 0 14px; padding-right: 0; }
.fulfil-tabs { margin-bottom: 8px; padding-right: 52px; }
.fulfil-form > .hint { font-size: 13px; margin-bottom: 14px; }
.fulfil-form .fld { margin-bottom: 8px; }
.fulfil-label { font-weight: 800; font-size: 14px; margin: 12px 0 6px; }
.seg-sm { margin-bottom: 12px; }
.seg-sm span { padding: 8px 6px; font-size: 14px; }
.fulfil-details { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.fulfil-details .fld { margin-bottom: 10px; }
.fulfil-saved { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.fulfil-saved .chip { padding: 6px 14px; font-size: 14px; cursor: pointer; font-family: var(--font-body); color: var(--brown); }
.fulfil-status { min-height: 22px; font-size: 14px; color: var(--brown-soft); }
.fulfil-status b { display: block; color: var(--brown); }
.fulfil-status span { display: block; font-size: 13px; }
.fulfil-status.is-ok b::before { content: '✓ '; color: #2f8a4a; }
.fulfil-status.is-error { color: var(--terracotta); font-weight: 700; }
.fulfil-status.is-loading { opacity: .8; }
.fulfil-form .form-error { margin: 10px 0 0; }
.fulfil-submit { width: 100%; margin-top: auto; }
.fulfil-form > .fulfil-submit { margin-top: 18px; }
.pickup-point { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; border: 2px solid var(--amber); background: var(--amber-soft); }
.pickup-point svg { width: 22px; height: 22px; flex: none; color: var(--terracotta); margin-top: 2px; }
.pickup-point small { display: block; font-weight: 800; font-size: 12px; color: var(--terracotta); }
.pickup-point b { display: block; }
.pickup-point span { font-size: 14px; color: var(--brown-soft); }
.fulfil-map { min-height: 520px; background: var(--cream); }
.fulfil-modal.no-map .fulfil-box { width: min(460px, 100%); grid-template-columns: 1fr; }
.fulfil-modal.no-map .fulfil-map { display: none; }

@media (max-width: 1240px) {
  .icon-btn .label { display: none; }
  .nav { gap: 16px; }
}
@media (max-width: 1020px) {
  .fulfil-pill { max-width: none; flex: 1; }
}
@media (max-width: 760px) {
  .fulfil-box { grid-template-columns: 1fr; max-height: 94vh; overflow-y: auto; }
  .fulfil-form { max-height: none; overflow: visible; padding: 22px 18px; }
  .fulfil-map { min-height: 200px; height: 200px; order: -1; }
  .fulfil-box > .x { top: 12px; right: 12px; }
  .fulfil-tabs { padding-right: 0; }
}
@media (max-width: 560px) {
  .modal { padding: 10px; }
  .fulfil-pill { padding: 4px 6px; gap: 6px; }
  .logo span { display: none; }
  .fulfil-pill-text b { font-size: 13px; }
  .fulfil-pill-text span { font-size: 12px; }
  .logo img { width: 48px; height: 48px; }
}

/* ===== Страница оформления заказа ===== */
.co-page { padding: 28px 0 90px; }
.co-back { display: inline-block; font-weight: 800; font-size: 14px; color: var(--brown-soft); margin-bottom: 10px; }
.co-back:hover { color: var(--terracotta); }
.co-page h1 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 24px; }
.co-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.co-main { display: grid; gap: 16px; }
.co-block { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.co-block h2 { font-size: 21px; margin-bottom: 14px; }
.co-block .fld:last-child, .co-block .seg:last-child { margin-bottom: 0; }
.co-time { max-width: 220px; margin: 4px 0 0; }
.co-main > .form-error { margin: 0; }

.co-fulfil { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.co-fulfil-card { flex: 1; min-width: 220px; display: flex; gap: 12px; align-items: flex-start; }
.co-fulfil-card svg { width: 24px; height: 24px; flex: none; color: var(--terracotta); margin-top: 2px; }
.co-fulfil-card small { display: block; font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--terracotta); }
.co-fulfil-card b { display: block; font-size: 17px; }
.co-fulfil-card span { font-size: 14px; color: var(--brown-soft); }
.co-fulfil-card.is-error span { color: var(--terracotta); font-weight: 700; }

.co-summary { position: sticky; top: 104px; background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.co-summary h2 { font-size: 21px; margin-bottom: 12px; }
.co-items { border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 10px; }
.co-items li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 15px; }
.co-items li span { font-weight: 700; }
.co-items small { display: block; font-size: 12px; color: var(--brown-soft); font-weight: 600; }
.co-items li b { white-space: nowrap; }
.co-lines > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; padding: 3px 0; color: var(--brown-soft); font-weight: 600; }
.co-lines > div span { display: inline-flex; align-items: center; gap: 6px; }
.co-lines b { color: var(--brown); white-space: nowrap; }
.co-lines .is-discount, .co-lines .is-discount b { color: var(--terracotta); }
.co-free { font-size: 13px; color: var(--brown-soft); background: var(--amber-soft); border-radius: 12px; padding: 8px 12px; margin: 10px 0 0; }
.co-total { display: flex; justify-content: space-between; align-items: baseline; margin: 14px 0; font-weight: 800; border-top: 2px solid var(--line); padding-top: 14px; }
.co-total b { font-family: var(--font-head); font-size: 26px; }
.co-submit { width: 100%; }
.co-summary .free-note.is-closed { margin-top: 0; }
.co-consent { font-size: 12px; color: var(--brown-soft); margin-top: 12px; line-height: 1.4; }
.co-consent a { text-decoration: underline; }
#checkoutRoot .done { background: var(--paper); border: 2px solid var(--line); border-radius: var(--radius); padding: 40px 24px; max-width: 640px; margin: 0 auto; }

@media (max-width: 1020px) {
  .co-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; }
}
@media (max-width: 560px) {
  .co-block, .co-summary { padding: 18px 16px; }
  .co-fulfil .btn { width: 100%; }
}

/* ===== Добавки к десертам (страница товара, корзина) ===== */
.pd-sublabel { font-weight: 800; font-size: 13px; color: var(--brown-soft); margin: 10px 0 6px; }
.pd-addons .sizes { margin-bottom: 0; }
.line-addon { display: block; font-size: 13px; color: var(--terracotta); font-weight: 700; }

/* ===== Предложения и жалобы ===== */
.feedback-bg { background: var(--paper); border-top: 2px solid var(--line); }
.feedback { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 48px; align-items: start; }
.feedback-text .eyebrow { display: block; }
.feedback-text p { color: var(--brown-soft); margin-bottom: 24px; max-width: 460px; }
.owner-call { display: flex; gap: 14px; align-items: center; background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-width: 460px; }
.owner-call .ic { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--amber); display: grid; place-items: center; color: var(--brown); }
.owner-call .ic svg { width: 22px; height: 22px; }
.owner-call span { display: block; font-size: 14px; color: var(--brown-soft); font-weight: 600; }
.owner-call a { font-family: var(--font-head); font-weight: 800; font-size: 22px; }
.owner-call a:hover { color: var(--terracotta); }
.feedback-form { position: relative; background: var(--cream); border: 2px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feedback-form .btn[type=submit] { width: 100%; }
.feedback-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.feedback-form.is-sent > :not(.feedback-done) { visibility: hidden; }
.feedback-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 26px; }
.feedback-done p { font-weight: 700; margin: 0 0 6px; max-width: 360px; }
.footer-owner { margin-top: 14px; font-size: 14px; }
.footer-owner a { color: var(--amber); font-weight: 800; }
@media (max-width: 1020px) {
  .feedback { grid-template-columns: 1fr; gap: 28px; }
  .feedback-text { text-align: center; }
  .feedback-text p, .owner-call { margin-inline: auto; }
  .owner-call { text-align: left; }
  .feedback-form { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .feedback-form { padding: 20px 16px; }
  .owner-call a { font-size: 19px; }
}

