/* Общая часть временных сайтов: акции, поиск, «Ко времени». Цвета — из style.css каждого сайта. Копируется скриптом build-akcii.py. */
.notice b { font-weight: 600; }
.foot a, .hint a, .akc-text a { color: var(--c-h); }

.promos { margin: 14px 0 0; scroll-margin-top: 70px; }
.promos h2 { margin-bottom: 8px; font-size: 18px; }
.promo-row {
  display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.promo-row::-webkit-scrollbar { display: none; }
.promo {
  flex: 0 0 132px; padding: 0; overflow: hidden; border-radius: 12px; background: var(--c2);
  scroll-snap-align: start; aspect-ratio: 540 / 740;
}
.promo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.promo:hover { box-shadow: 0 0 0 2px var(--c); }
@media (min-width: 761px) {
  .promo-row { scrollbar-width: thin; }
  .promo-row::-webkit-scrollbar { display: block; height: 6px; }
  .promo-row::-webkit-scrollbar-thumb { border-radius: 3px; background: var(--line); }
  .promo { flex: 1 1 0; min-width: 132px; max-width: 170px; }
}

.stick {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: flex-start; gap: 8px;
  margin: 10px -16px 0; padding: 10px 16px; background: var(--bg);
}
.search { position: relative; flex: 0 0 190px; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--m); pointer-events: none; }
.search input {
  width: 100%; min-height: 40px; padding: 0 34px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); color: var(--t); font: inherit; font-size: 16px; appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { outline: 2px solid var(--c); outline-offset: 0; }
.search .search-x {
  position: absolute; right: 2px; top: 2px; display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; color: var(--m);
}
.search.has .search-x { display: inline-flex; }
.search-x:hover { color: var(--c-h); }
.stick .chips {
  position: static; flex: 1 1 auto; min-width: 0; margin: 0; padding: 0; background: none;
}
#menu.finding { min-height: 100vh; }
.no-find { padding: 32px 0; text-align: center; color: var(--m); }

/* Разделы, как в редизайне: текущий подсвечен; на телефоне поиск и «☰» сверху, строка разделов под ними во всю ширину. */
.chip.on { background: var(--c-h); border-color: var(--c-h); color: #fff; }
.chip.on:hover { background: var(--c-h); border-color: var(--c-h); color: #fff; }
.sec-btn {
  display: none; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 40px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); color: var(--t);
}
.sec-btn:hover { border-color: var(--c); color: var(--c-h); }
.chips.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
.chips.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px); mask-image: linear-gradient(90deg, transparent, #000 36px); }
.chips.more-l.more-r {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
}
.sec-list { display: flex; flex-direction: column; gap: 6px; }
.sec-item {
  display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px;
  background: var(--bg); text-align: left; font-weight: 600;
}
.sec-item:hover { background: var(--c2-h); }
.sec-item.on { background: var(--c2); color: var(--c-h); box-shadow: inset 0 0 0 1px var(--c); }

/* Планшет: разделы одной строкой с прокруткой, как на телефоне, иначе прилипшая строка вырастает до 200 px. */
@media (min-width: 761px) and (max-width: 1024px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; }
  .stick { align-items: center; }
  .sec-btn { display: inline-flex; }
}
@media (max-width: 760px) {
  .stick { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 8px 16px; }
  .search { flex: none; }
  .sec-btn { display: inline-flex; }
  .stick .chips { grid-column: 1 / -1; margin: 0 -16px; padding: 0 16px; }
}

/* Шапка на телефоне: номер заменяет кнопка «Позвонить», название города при нехватке места обрезается. */
.top-call {
  display: none; align-items: center; justify-content: center; flex: none; margin-left: auto;
  width: 44px; height: 44px; border-radius: 50%; background: var(--c2); color: var(--c-h);
}
.top-call:hover { background: var(--c2-h); }
.call-h { margin: 10px 0 0; text-align: center; }
@media (max-width: 560px) {
  .top-in { gap: 8px; min-height: 60px; }
  .logo { width: 40px; height: 40px; }
  .city-btn { min-width: 0; padding: 0 12px; }
  .city-btn span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .top-tel { display: none; }
  .top-call { display: inline-flex; }
}

.when-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.f .opts { margin-top: 3px; }
.f .opt { color: var(--t); }
.f .opt.on { color: var(--c-h); }

.akc-img { display: block; width: auto; max-width: 100%; max-height: 44vh; margin: 0 auto 12px; border-radius: 12px; }
.akc-text { font-size: 16px; }
.akc-text p { margin: 0 0 8px; }
.akc-text ul { margin: 0 0 8px; padding-left: 20px; }
.akc-code { margin: 10px 0; font-size: 16px; }
.akc-code b { font-weight: 600; letter-spacing: .03em; }
#akcBody .send { width: 100%; margin: 4px 0 10px; }
#akcBody .hint { margin-bottom: 0; }

.add, .q button { padding: 0; }
.add svg, .q button svg { display: block; flex: none; }
.q button svg { width: 16px; height: 16px; }

.bar {
  min-height: 60px; font-size: 17px; font-weight: 600;
  background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, 0) 55%, rgba(0, 0, 0, .1)) var(--c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -2px 0 rgba(0, 0, 0, .16),
    0 2px 4px rgba(20, 22, 26, .22), 0 10px 26px rgba(20, 22, 26, .34);
  transition: background-color .15s, box-shadow .15s, transform .1s;
}
.bar:hover {
  background-color: var(--c-h);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .34), inset 0 -2px 0 rgba(0, 0, 0, .16),
    0 3px 6px rgba(20, 22, 26, .26), 0 14px 32px rgba(20, 22, 26, .38);
}
.bar:active {
  transform: translateX(-50%) translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .24), 0 2px 6px rgba(20, 22, 26, .26);
}
.bar-l { display: inline-flex; align-items: center; gap: 10px; }
.bar-l svg { flex: none; }

.sum-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; color: var(--m); font-size: 15px; }
.sum-row + .sum-row { margin-top: 2px; }
.sum-row.off { color: var(--c-h); font-weight: 600; }
.sum-row + .total { margin-top: 6px; }

/* Состав: три строки и стрелка, полный текст слоем поверх карточки. Карточка не растёт, соседи не сдвигаются. */
.card { position: relative; }
.sost-row { display: flex; align-items: flex-start; gap: 6px; }
.sost-row .sost { flex: 1; min-width: 0; }
.more {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 28px; height: 28px; padding: 0; border-radius: 50%; background: var(--bg); color: var(--c-h);
}
.more:hover { background: var(--c2); }
.less svg { transform: rotate(180deg); }
.full {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; overflow: auto; padding: 12px;
  background: var(--card); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.45;
  animation: full-in .2s ease; scrollbar-width: thin;
}
@keyframes full-in { from { transform: translateY(-10px); opacity: 0; } to { transform: none; opacity: 1; } }
.full-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.full p { margin: 0 0 6px; }
.full .w { display: block; white-space: normal; }
.full .w:empty { display: none; }

/* ---------- Оформление заказа, вариант «C» (2026-11-03): отдельная страница поверх меню ---------- */
html.co-open, html.co-open body { overflow: hidden; }
.co-shade { display: block; padding: 0; background: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.co { min-height: 100%; }
.co-top { position: sticky; top: 0; z-index: 3; background: var(--card); border-bottom: 1px solid var(--line); }
.co-in { display: flex; align-items: center; gap: 12px; max-width: 1120px; min-height: 60px; margin: 0 auto; padding: 0 16px; }
.co-back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 10px; background: var(--bg); font-size: 15px; }
.co-back:hover { background: var(--c2); }
.co-top h2 { font-size: 19px; }
.co-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 22px; align-items: start; max-width: 1120px; margin: 0 auto; padding: 16px 16px 40px; }
.co-card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.co-card h3 { font-size: 17px; }
.co-card .hint { margin: 0; }
.co-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.co-side h3 { margin-bottom: 4px; font-size: 17px; }
.co-side .send { width: 100%; margin-top: 14px; }
.co-side .hint { margin: 10px 0 0; }
.co-fold, .co-bar, .co-goal-m { display: none; }
.co-fold { margin-bottom: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.fold-h { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; text-align: left; }
.fold-ph { display: flex; flex: none; }
.fold-ph img { width: 38px; height: 38px; margin-left: -10px; border: 2px solid var(--card); border-radius: 9px; object-fit: cover; background: var(--c2); }
.fold-ph img:first-child { margin-left: 0; }
.fold-t { flex: 1; font-weight: 600; }
.fold-s { font-weight: 600; white-space: nowrap; }
.fold-h .chev { flex: none; transition: transform .2s; }
.co-fold.open .chev { transform: rotate(180deg); }
.co-goal-m { margin-bottom: 12px; }
.pl { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pl img { grid-row: span 2; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--c2); }
.pl img.noimg { object-fit: contain; padding: 8px; }
.pl-n { align-self: end; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.pl-o { align-self: start; color: var(--m); font-size: 14px; }
.pl-r { display: flex; grid-row: span 2; flex-direction: column; align-items: flex-end; gap: 6px; }
.pl-r > b { font-weight: 600; white-space: nowrap; }
.pl-del { display: inline-flex; align-items: center; min-height: 32px; padding: 0 2px; color: var(--m); font-size: 14px; text-decoration: underline; }
.pl-del:hover { color: var(--t); }
.q.soft button { width: 34px; height: 34px; background: var(--bg); color: var(--t); }
.q.soft button:hover { background: var(--c2); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; color: var(--m); font-size: 15px; }
.sum-row.off span:last-child { color: #1e7e34; font-weight: 600; }
.goal { margin-top: 10px; padding: 10px 12px; text-align: left; border-radius: 12px; background: var(--c2); color: var(--t); font-size: 14px; line-height: 1.4; }
.goal-l { height: 6px; margin-top: 8px; border-radius: 3px; background: var(--card); overflow: hidden; }
.goal-l i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.goal.done { background: #e8f5ec; color: #135c2a; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two .opt { min-height: 46px; padding: 0 8px; font-size: 15px; white-space: nowrap; }
.when-days { margin-top: 2px; }
.when-slots { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.when-slots .opt { flex: none; }
.row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; color: var(--t); font-size: 16px; }
.stp { display: inline-flex; align-items: center; gap: 10px; }
.stp button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); font-size: 20px; }
.stp button:hover { background: var(--c2); }
.stp b { min-width: 22px; text-align: center; font-size: 17px; font-weight: 600; }
.f.bad input { border-color: #d93025; box-shadow: 0 0 0 1px #d93025; }
.fe { display: block; color: #d93025; font-size: 14px; }
.agree { display: flex; align-items: flex-start; gap: 10px; color: var(--t); font-size: 14px; line-height: 1.4; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--c); }
.agree a { color: var(--c-h); }
.agree-box.bad .agree input { outline: 2px solid #d93025; outline-offset: 1px; }
.co-err { margin: 0 0 8px; color: #d93025; font-size: 14px; text-align: center; }
.co-side .co-err { margin: 12px 0 0; text-align: left; }
.send.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 0 18px; }
.co-card .call { margin-top: 2px; }
.co-done { max-width: 560px; margin: 24px auto; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); text-align: center; }
.co-done .send { width: 100%; margin-top: 14px; }
.co-empty { max-width: 560px; margin: 24px auto; text-align: center; }
@media (max-width: 899px) {
  .co-main { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 140px; }
  .co-side { display: none; }
  .co-fold, .co-goal-m { display: block; }
  .co-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--card); }
}
@media (max-width: 380px) {
  .co-main { padding-left: 10px; padding-right: 10px; }
  .co-card { padding: 14px 12px; }
}
