/* Общая часть временных сайтов: акции, поиск, «Ко времени». Цвета — из 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); }

@media (max-width: 760px) {
  .search { flex: 0 0 116px; transition: flex-basis .15s; }
  .search:focus-within, .search.has { flex-basis: 100%; }
  .search:focus-within + .chips, .search.has + .chips { display: none; }
}

.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; }
