/* Раздел «Акции» каталога (guia_akcii.py, №890, 29.10.2026).
   Подключается после guia.css: каркас каталога не трогаем. Оранжевый —
   по ПРАВИЛУ ОРАНЖЕВОГО (guia.css): промо, скидки, срок на исходе, действие. */

.ak { padding-bottom: 40px; }
.ak-lead { max-width: 680px; margin: 0 0 6px; color: var(--ink); }

.ak-filters {
  display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 10px 12px; align-items: end;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; margin: 18px 0 10px; font-size: 14px;
}
.ak-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ak-filters label > span {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.ak-filters input, .ak-filters select {
  font: inherit; font-size: 14px; width: 100%; min-width: 0; min-height: 40px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px;
  background: var(--ivory); color: var(--ink);
}
.ak-filters select { cursor: pointer; }
.ak-filters input:focus-visible, .ak-filters select:focus-visible,
.ak-show:focus-visible, .ak-reset:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 1px;
}
.ak-btns { display: flex; gap: 10px; align-items: center; min-height: 40px; }
.ak-show {
  font: inherit; font-size: 14px; font-weight: 600; min-height: 40px;
  border: 1.5px solid var(--graphite); background: var(--graphite); color: var(--ivory);
  border-radius: 8px; padding: 8px 16px; cursor: pointer;
}
.ak-show:hover { background: var(--orange); border-color: var(--orange); }
/* с akcii.js фильтры срабатывают сразу — кнопка не нужна */
.ak-js .ak-show { display: none; }
.ak-js .ak-btns:not(:has(.ak-reset:not([hidden]))) { display: none; }
.ak-reset { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ak-reset[hidden] { display: none; }

.ak-n { font-size: 13px; color: var(--muted); margin: 0 0 14px; }

.ak-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}
.ak-boost { margin-bottom: 14px; }
/* разделы: заголовок H2 над своей сеткой (29.10.2026) */
.ak-group { margin: 0 0 30px; }
.ak-group[hidden] { display: none; }
/* раздел уже назван в H2 — у плиток внутри его не повторяем */
.ak-group .ak-cat { display: none; }
.ak-gh {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  margin: 0 0 12px;
}
.ak-h2 {
  font-family: var(--disp); font-weight: 700; font-size: 21px; line-height: 1.3;
  color: var(--graphite); margin: 0;
}
.ak-all { font-size: 13px; font-weight: 600; color: var(--orange-dark); white-space: nowrap; }
.ak-all:hover { text-decoration: underline; text-underline-offset: 3px; }
.ak-boost:not(:has(.ak-tile:not([hidden]))) { display: none; }
.ak-tile {
  position: relative; display: flex;
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
}
.ak-tile[hidden] { display: none; }
.ak-link {
  display: flex; flex-direction: column; gap: 0; flex: 1; min-width: 0;
  padding: 16px 18px 14px; color: inherit; text-decoration: none;
}
.ak-tile:hover { border-color: #D8CBB2; }
.ak-link:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 16px; }
.ak-cat {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--graphite); margin: 0 0 8px;
}
/* «по промокоду SunClub» (№980): плашка над заголовком акции */
.ak-code {
  align-self: flex-start; margin: 0 0 8px; padding: 3px 9px; border-radius: 999px;
  background: #FFF1E3; color: var(--orange-dark); border: 1px solid #F0CDAE;
  font-size: 12px; font-weight: 600; line-height: 1.4;
}
.ak-promo .ak-code { margin-right: 72px; }
.ak-t {
  font-family: var(--disp); font-weight: 700; font-size: 17px; line-height: 1.35;
  color: var(--graphite); margin: 0 0 6px; overflow-wrap: anywhere;
}
.ak-x {
  font-size: 14px; line-height: 1.5; color: var(--ink); margin: 0 0 4px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ak-biz {
  display: flex; gap: 10px; align-items: center; margin: auto 0 0;
  padding-top: 14px;
}
.ak-ava {
  width: 40px; height: 40px; border-radius: 10px; object-fit: cover; flex: none;
  font-size: 14px;
}
.ak-biz span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ak-biz b {
  font-size: 14px; color: var(--graphite);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ak-biz small {
  font-size: 12.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ak-biz small.ak-lang { white-space: normal; }   /* языки — целиком, в две строки */
.ak-foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px 12px;
  flex-wrap: wrap; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 13px;
}
.ak-until { color: var(--muted); }
.ak-until.soon { color: var(--orange-dark); font-weight: 600; }
.ak-go { color: var(--orange-dark); font-weight: 600; white-space: nowrap; }
.ak-tile:hover .ak-go { text-decoration: underline; text-underline-offset: 3px; }

/* BOOST: рамка как у продвигаемой плитки раздела (.tile-promo), пометка
   «Реклама» неброско, как .tile-ad */
.ak-promo {
  border: 1.5px solid var(--orange);
  background: linear-gradient(180deg, #FFF6EC 0%, var(--paper) 62%);
  box-shadow: 0 10px 24px -16px rgba(196, 97, 26, .45);
}
.ak-promo .ak-foot { border-top-color: #F0CDAE; }
.ak-ad {
  position: absolute; top: 10px; right: 14px; z-index: 1; pointer-events: none;
  font-size: 9.5px; font-weight: 600; letter-spacing: .12em; line-height: 1;
  text-transform: uppercase; color: #8a8478;
}
.ak-promo .ak-cat { padding-right: 72px; }

.ak-empty { margin: 8px 0 24px; color: var(--ink); }
.ak-empty[hidden] { display: none; }
.ak-empty a { color: var(--orange-dark); font-weight: 600; }

.ak-own {
  margin: 34px 0 0; padding: 16px 18px; border-radius: 12px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: 14px; color: var(--ink); max-width: 760px;
}
.ak-own p { margin: 0; }
.ak-own p + p { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.ak-own a { color: var(--orange-dark); font-weight: 600; }

@media (max-width: 1080px) {
  .ak-filters { grid-template-columns: 1fr 1fr; }
  .ak-q { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ak-filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
  .ak-filters label:last-of-type { grid-column: 1 / -1; }
  .ak-grid { grid-template-columns: minmax(0, 1fr); }
  .ak-link { padding: 14px 16px 12px; }
  /* 16 px: мельче iPhone приближает страницу при нажатии на фильтр (29.10.2026) */
  .ak-filters input, .ak-filters select { font-size: 16px; }
}
