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

.af { padding-bottom: 44px; }
.af-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 14px 24px; margin-bottom: 4px;
}
.af-lead { max-width: 640px; margin: 0 0 6px; color: var(--ink); }
.af-addtop { display: inline-block; white-space: nowrap; margin-bottom: 8px; }
.af-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* фильтры: «когда» — ссылками-плашками, город и тема — списками */
.af-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.af-chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.af-chip:hover { border-color: var(--graphite); }
.af-chip.on { background: var(--graphite); border-color: var(--graphite); color: var(--ivory); }
.af-chip:focus-visible, .af-filters select:focus-visible, .af-show:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 1px;
}
.af-filters {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end;
  margin: 0 0 10px; font-size: 14px;
}
.af-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.af-filters label > span, .af-f > span, .af-facts dt, .af-kind {
  font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.af-filters select {
  font: inherit; font-size: 14px; min-height: 40px; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; background: var(--paper); color: var(--ink);
  cursor: pointer;
}
.af-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;
}
.af-js .af-show { display: none; }   /* со скриптом список срабатывает сразу */
.af-n { font-size: 13px; color: var(--muted); margin: 0 0 16px; }
.af-reset { margin-left: 10px; color: var(--muted); }

/* день → плитки */
.af-day { margin: 0 0 30px; }
.af-h2 {
  font-family: var(--disp); font-weight: 700; font-size: 21px; line-height: 1.3;
  color: var(--graphite); margin: 0 0 12px;
}
.af-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px;
}
.af-hl { margin-bottom: 26px; }
.af-tile {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.af-tile:hover { border-color: var(--graphite); }
.af-promo { border: 2px solid var(--orange); }
.af-ad {
  position: absolute; top: 10px; right: 10px; z-index: 1; padding: 3px 9px;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--orange);
  color: var(--orange); font-size: 10.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase;
}
.af-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.af-pic { position: relative; display: block; background: var(--ivory); }
.af-nopic { background: none; padding: 14px 16px 0; }
.af-nopic .af-date { position: static; display: inline-flex; background: var(--ivory); }
/* кадр по умолчанию сдвинут вверх: у портретов там лицо, у афиш — заголовок
   (Юля 02.12.2026, у Thábata обрезало голову); свой кадр — cat_events.photo_pos */
.af-img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  object-position: 50% 22%; height: auto; }
/* значок даты: число крупно, месяц под ним */
.af-date {
  position: absolute; left: 12px; top: 12px; z-index: 1; min-width: 54px;
  display: flex; flex-direction: column; align-items: center; padding: 7px 8px 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  color: var(--graphite); line-height: 1;
}
.af-date b { font-family: var(--disp); font-weight: 700; font-size: 22px; }
.af-date i {
  font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-top: 3px;
}
.af-ad + .af-link .af-date { border-color: var(--orange); }
.af-body { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px 16px; flex: 1; }
.af-t {
  font-family: var(--disp); font-weight: 700; font-size: 17px; line-height: 1.3;
  color: var(--graphite); margin: 0 0 2px;
}
.af-meta { font-size: 14px; color: var(--ink); }
.af-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; }
.af-price { font-size: 14px; font-weight: 700; color: var(--graphite); }
.af-free { color: var(--orange); }
.af-lang { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.af-empty { margin: 22px 0 30px; font-size: 16px; }
.af-cities { margin: 0 0 26px; font-size: 14px; }

/* «Добавить событие» и подписка */
.af-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.af-add, .af-sub {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 22px;
}
.af-add p, .af-sub p { margin: 0 0 14px; max-width: 520px; }
.af-add .btn-main, .af-tg, .af-formpage > p > .btn-main { display: inline-block; }
.af-subform { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.af-subform input[type=email] {
  flex: 1 1 200px; min-width: 0; min-height: 44px; font: inherit; font-size: 15px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; background: #fff;
}
.af-subform .form-legal { flex-basis: 100%; margin: 2px 0 0; }
.af-btn2 {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; cursor: pointer;
  border: 1.5px solid var(--graphite); border-radius: 8px; background: transparent;
  color: var(--graphite);
}
.af-btn2:hover { background: var(--graphite); color: var(--ivory); }

/* страница события */
.af-page .h1 { max-width: 900px; }
.af-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 18px; }
/* фото на странице события не режем и не раздуваем (Юля 02.12.2026: «слишком
   большое»): целиком, не выше 460 px, по бокам светлый фон */
.af-cover { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain;
  background: var(--tone); border-radius: 14px; margin-bottom: 18px; }
.af-fig { margin: 0 0 18px; }
.af-fig .af-cover { margin-bottom: 6px; }
.af-fig figcaption { font-size: 12px; color: var(--muted); }
.af-text { font-size: 17px; line-height: 1.6; max-width: 700px; }
.af-text p { margin: 0 0 14px; }
.af-side {
  position: sticky; top: 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px;
}
/* правая колонка события, вариант А (Юля 02.12.2026): значок, главное жирно,
   подробность серым; подписи «Когда/Где» остаются только для дикторов */
.af-facts { margin: 0 0 18px; }
.af-facts dt {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.af-facts dd { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 16px; }
.af-facts dd:last-child { margin-bottom: 0; }
.af-ic {
  flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--tone);
  display: flex; align-items: center; justify-content: center; color: var(--graphite);
}
.af-ic svg { width: 20px; height: 20px; }
.af-fact { min-width: 0; padding-top: 1px; }
.af-fact b { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; color: var(--graphite); }
.af-fact span { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); margin-top: 2px; }
.af-map { display: inline-block; font-size: 13px; margin-top: 4px; white-space: nowrap; }
.af-go { display: block; text-align: center; }
.af-cal { margin-top: 10px; }
.af-cal summary {
  list-style: none; cursor: pointer; display: flex; gap: 8px; align-items: center;
  justify-content: center; min-height: 46px; padding: 0 14px; border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; color: var(--graphite);
}
.af-cal summary::-webkit-details-marker { display: none; }
.af-cal summary svg { width: 18px; height: 18px; }
.af-cal summary:hover, .af-cal[open] summary { border-color: var(--graphite); }
.af-cal summary:focus-visible, .af-org:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.af-cal-menu { display: grid; border: 1px solid var(--graphite); border-top: 0; }
.af-cal-menu a { padding: 12px 14px; font-size: 14px; color: var(--graphite); text-decoration: none; }
.af-cal-menu a + a { border-top: 1px solid var(--line); }
.af-cal-menu a:hover { background: var(--tone); }
/* карточка организатора — переход в каталог */
.af-org {
  display: block; margin-top: 18px; padding: 14px 14px 12px; background: var(--tone);
  border-radius: 10px; color: var(--ink); text-decoration: none;
}
.af-org-lab {
  display: block; margin-bottom: 10px; font-size: 10.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.af-org-row { display: flex; gap: 12px; align-items: center; }
.af-org-ava { flex: none; width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #fff; }
div.af-org-ava { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--graphite); }
.af-org-txt { min-width: 0; }
.af-org-txt b { display: block; font-size: 16px; font-weight: 700; line-height: 1.25; color: var(--graphite); }
.af-org-who { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.af-org .badge { display: inline-block; margin-top: 6px; background: #fff; }
.af-org-more { display: block; margin-top: 10px; font-size: 13px; line-height: 1.4; color: var(--ink); }
.af-org-go {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700; color: var(--orange-dark);
}
.af-org-go svg { flex: none; width: 18px; height: 18px; transition: transform .15s; }
.af-org:hover .af-org-go svg { transform: translateX(3px); }
.af-org:hover .af-org-go { text-decoration: underline; }
.af-org-m { display: none; }

/* подробности события (Юля 02.12.2026): значки «Важно знать» под фото и
   разделы под текстом, как блоки бизнес-страницы */
.af-know {
  list-style: none; margin: 0 0 20px; padding: 0; display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; max-width: 760px;
}
.af-know li {
  display: flex; gap: 10px; align-items: center; padding: 9px 12px;
  background: var(--tone); border-radius: 10px;
}
.af-know .af-ic { width: 32px; height: 32px; background: #fff; }
.af-know .af-ic svg { width: 18px; height: 18px; }
.af-know small { display: block; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.af-know b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; color: var(--graphite); }
.af-part { max-width: 700px; margin: 22px 0 0; }
.af-part-h { margin: 0 0 8px; font-family: var(--hf); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--graphite); }
.af-part p { margin: 0 0 10px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.af-part ul { margin: 0 0 10px; padding-left: 20px; font-size: 17px; line-height: 1.6; color: var(--ink); }
.af-part li { margin-bottom: 4px; }
.af-part li::marker { color: var(--orange); }
/* форма: «Рассказать подробнее» свёрнуто, чтобы форма не стала длинной */
.af-more { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin: 4px 0 14px; }
.af-more summary {
  cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--graphite);
  display: flex; justify-content: space-between; align-items: center;
}
.af-more summary::-webkit-details-marker { display: none; }
.af-more summary::after { content: "+"; font-size: 22px; font-weight: 400; line-height: 1; }
.af-more[open] summary::after { content: "−"; }
.af-more[open] { padding-bottom: 6px; }
.af-more > .af-hint { display: block; margin: -4px 0 12px; }
.af-more > .af-f, .af-more > .af-row { margin-bottom: 14px; }
.af-src { font-size: 13px; color: var(--muted); max-width: 700px; margin: 26px 0 8px; }
.af-bottom { font-size: 14px; margin: 0; }
.af-report { color: var(--muted); }
.af-mine { font-size: 14px; margin: 12px 0 0; }

/* форма */
.af-formpage { max-width: 760px; }
.af-form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; margin-top: 18px; }
.af-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.af-f input, .af-f select, .af-f textarea {
  font: inherit; font-size: 16px; width: 100%; min-width: 0; min-height: 46px;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  background: #fff; color: var(--ink);
}
.af-f textarea { resize: vertical; line-height: 1.5; }
.af-f input:focus-visible, .af-f select:focus-visible, .af-f textarea:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 1px;
}
.af-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.af-place { display: flex; flex-direction: column; gap: 14px; }
.af-place[hidden] { display: none; }
.af-chk { white-space: normal; align-items: flex-start; line-height: 1.4; min-height: 44px; }
.af-chk input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.af-photo { align-items: flex-start; }
.af-pick { align-self: flex-start; }
.af-hint { font-size: 13px; color: var(--muted); }
.af-prev { display: block; max-width: 260px; width: 100%; height: auto; border-radius: 10px; margin-top: 6px; }
.af-prev[hidden] { display: none; }
.af-form .btn-main { align-self: flex-start; }

/* «Мои события» */
.af-mylist { list-style: none; margin: 18px 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.af-my {
  display: flex; flex-direction: column; gap: 4px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.af-my b { font-size: 16px; color: var(--graphite); }
.af-my small { font-size: 13px; color: var(--muted); }
.af-st { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); }
.af-st-on { border-color: #CBE3C4; background: #EEF6EC; }
.af-st-pending { border-color: #EBD9B4; background: #FBF3E4; }
.af-st-rejected { border-color: #EDC9C0; background: #FBECE8; }
.af-acts { font-size: 14px; margin-top: 4px; }
.af-inline { display: inline; }
.af-inline button {
  font: inherit; font-size: 14px; background: none; border: 0; padding: 0;
  color: inherit; text-decoration: underline; cursor: pointer;
}
.af-hlbtn { align-self: flex-start; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--orange); }
.af-why { color: #A8452F !important; }

@media (max-width: 860px) {
  .af-cols { grid-template-columns: 1fr; gap: 18px; }
  .af-side { position: static; order: -1; }   /* на телефоне сначала «когда, где, записаться» */
  /* карточка организатора на телефоне — под текстом события, не над ним */
  .af-org-s { display: none; }
  .af-org-m { display: block; max-width: 520px; margin-top: 22px; }
  .af-know { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .af-know li { padding: 8px 10px; gap: 8px; }
  .af-know .af-ic { width: 28px; height: 28px; }
}
@media (max-width: 560px) {
  .af-addtop { width: 100%; text-align: center; }
  .af-row { grid-template-columns: 1fr; }
  .af-filters label { flex: 1 1 calc(50% - 6px); min-width: 0; }
  .af-chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -20px; padding-right: 20px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .af-chips::-webkit-scrollbar { display: none; }
  .af-chip { flex: none; }
  .af-grid { grid-template-columns: 1fr; }
  .af-text { font-size: 16px; }
}

/* правила афиши под формой */
.af-rules { max-width: 640px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.af-rules ol { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.af-rules li { margin-bottom: 8px; }

/* Телефон: события плотными строками (Юля 01.12.2026: плитки по одной вниз
   занимали слишком много места). Фото квадратом слева, справа название,
   день, место, цена — как строки бизнесов в каталоге. */
@media (max-width: 560px) {
  .af-day { margin-bottom: 18px; }
  .af-h2 { font-size: 18px; margin-bottom: 2px; }
  .af-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }   /* 1fr раздувался от длинной строки */
  .af-tile { min-width: 0; }
  .af-link { min-width: 0; }
  .af-hl { margin-bottom: 10px; }
  .af-lead { font-size: 14.5px; line-height: 1.45; }
  .af-head { gap: 8px 24px; }
  .af-chips { margin: 12px 0 8px; }
  .af-tile, .af-tile:hover { border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    background: none; overflow: visible; }
  .af-promo { border: 0; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--orange);
    padding-left: 10px; }
  .af-link { flex-direction: row; align-items: flex-start; gap: 12px; padding: 10px 0; }
  .af-pic { flex: none; width: 92px; }
  .af-img { aspect-ratio: 1 / 1; border-radius: 2px; }
  .af-pic.af-nopic { height: 92px; padding: 0; background: var(--ivory); border-radius: 2px;
    display: flex; align-items: center; justify-content: center; }
  .af-nopic .af-date { background: var(--paper); }
  .af-date { left: 5px; top: 5px; min-width: 38px; padding: 4px 5px 3px; border-radius: 6px; }
  .af-date b { font-size: 16px; }
  .af-date i { font-size: 9px; margin-top: 2px; }
  .af-body { padding: 0; gap: 3px; min-width: 0; }
  .af-kind { display: none; }      /* тема есть в фильтре, в строке экономим высоту */
  .af-t { font-size: 15.5px; line-height: 1.25; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .af-meta { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .af-foot { padding-top: 2px; gap: 6px; }
  .af-price { font-size: 13px; }
  .af-lang { font-size: 11px; padding: 1px 7px; }
  .af-ad { top: 10px; right: 0; padding: 2px 7px; font-size: 9.5px; }
}

/* Телефон: первый экран афиши компактнее (Юля 01.12.2026: кнопка яркая, шрифт
   крупный, фильтры занимают много места). Одна оранжевая кнопка на экране —
   «Добавить событие», маленькая; «Добавить бизнес» в шапке здесь спокойная. */
@media (max-width: 560px) {
  .af .crumbs { margin-top: 14px; }
  .af .h1 { font-size: 24px; line-height: 1.15; margin: 8px 0 6px; }
  .af-head { gap: 0; margin-bottom: 0; }
  .af-lead { font-size: 14px; line-height: 1.4; margin: 0; }
  .af-addtop { width: auto; margin: 10px 0 0; padding: 8px 14px; font-size: 13.5px; text-align: left; }
  .af-chips { margin: 12px -20px 8px 0; padding-right: 20px; gap: 6px; }
  .af-chip { min-height: 34px; padding: 6px 12px; font-size: 13px; }
  .af-filters { flex-wrap: nowrap; gap: 6px; margin-bottom: 6px; }
  .af-filters label { flex: 1 1 0; min-width: 0; }
  /* подписи остаются для экранных читалок: первая строка списка говорит то же */
  .af-filters label > span { position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; }
  .af-filters select { min-height: 36px; padding: 6px 4px 6px 8px; font-size: 13px; }
  .af-n { margin-bottom: 8px; font-size: 12.5px; }
  .ob:has(.af) .ob-top1 > .top-add { background: none; border: 1.5px solid #1C2B4A; color: #1C2B4A; }
}

/* Телефон, страницы афиши: в шапке переключатель языка на виду, «Добавить
   бизнес» уходит в меню «три полоски» (Юля 01.12.2026: каждый включает афишу
   на своём языке). */
@media (max-width: 760px) {
  .ob:has(.af) .ob-top1 > .top-add { display: none; }
  .ob:has(.af) .ob-top1 > .lang-menu:not(.top-biz) { display: block; order: 2; }
}

/* Разделы афиши (Юля 02.12.2026): отдых отдельно от обучения и бизнеса —
   вкладками без рамок, счётчик серым */
.af-secs {
  display: flex; flex-wrap: wrap; gap: 4px 28px; margin: 20px 0 0;
  border-bottom: 1px solid var(--line);
}
.af-sec {
  padding: 8px 0 10px; margin-bottom: -1px; border-bottom: 2px solid transparent;
  color: var(--muted); font-size: 16px; font-weight: 600; text-decoration: none;
}
.af-sec span { margin-left: 3px; color: var(--muted); font-size: 13px; font-weight: 500; }
.af-sec:hover { color: var(--ink); }
.af-sec.on { color: var(--graphite); border-bottom-color: var(--graphite); }
.af-sec:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.af-secs + .af-chips { margin-top: 14px; }
/* форма события: где афиша, а где каталог; «Мои события»: бизнес-страница */
.af-hint-top { max-width: 640px; margin: 0 0 20px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.af-org { margin: 0 0 20px; }
@media (max-width: 760px) {
  /* обе вкладки в один ряд: вторая отдельной строкой читалась как заголовок */
  .af-secs { flex-wrap: nowrap; gap: 16px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
  .af-secs::-webkit-scrollbar { display: none; }
  .af-sec { flex: none; white-space: nowrap; font-size: 13px; padding: 6px 0 8px; }
  .af-sec span { font-size: 11px; margin-left: 2px; }
  .af-hint-top { font-size: 13.5px; }
}

/* Кто делает афишу: строка «чьё» под лидом витрины (ниже) и фраза внизу страницы.
   Подпись капсом над заголовком убрана 02.12.2026: она повторяла логотип в шапке. */
.af-who { padding-bottom: 40px; }
.af-who p { max-width: 760px; margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.af-who a { color: var(--ink); }

/* Шапка витрины (Юля 02.12.2026): повтор логотипа текстом убран; под заголовком
   лид «что внутри», строка «чьё» серым, справа призыв организатору над кнопкой.
   Заголовок обычным регистром: так решила панель (капс только у вывески на фото). */
.af-head-t { flex: 1 1 520px; min-width: 0; }
.af-head-t .h1 { margin-bottom: 10px; }
.af-head .af-lead { max-width: 760px; margin: 0; }
.af-by { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.af-by a { color: var(--graphite); font-weight: 600; text-decoration: none; }
.af-by a:hover { text-decoration: underline; }
.af-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-bottom: 4px; }
.af-cta p { margin: 0; font-size: 14px; line-height: 1.35; color: var(--muted); text-align: right; }
.af-cta p b { color: var(--ink); font-weight: 600; }
.af-cta .af-addtop { margin: 0; }
@media (max-width: 760px) {
  .af-cta { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between;
    gap: 12px; margin: 12px 0 0; }
  .af-cta p { text-align: left; }
}
@media (max-width: 560px) {
  .af-head-t .h1 { margin: 8px 0 6px; }
  .af-by { margin-top: 4px; font-size: 12.5px; line-height: 1.4; }
  .af-cta { margin-top: 10px; }
  .af-cta p { min-width: 0; font-size: 13px; line-height: 1.35; }
  .af-cta p span { display: block; }
  .af-cta .af-addtop { flex: none; margin: 0; }
}

/* Поиск по афише (Юля 03.12.2026: «на афишу надо отдельный поиск»). Поле над
   разделами и фильтрами, ищет по обоим разделам сразу; подсказки под ним —
   общий список .sg каталога (guia-oblik.css). 16 px в поле: меньше — и айфон
   приближает страницу при нажатии. */
.af-q { position: relative; display: flex; gap: 8px; max-width: 640px; margin: 16px 0 0; }
.af-q-l { position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; }
.af-q input[type="search"] {
  flex: 1 1 auto; min-width: 0; font: inherit; font-size: 16px; min-height: 46px;
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px;
  background: var(--paper); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.af-q input[type="search"]::placeholder { color: var(--muted); opacity: 1; }
.af-q input[type="search"]:hover { border-color: var(--graphite); }
.af-q input[type="search"]:focus-visible, .af-q-b:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 1px;
}
.af-q-b {
  flex: none; font: inherit; font-size: 15px; font-weight: 600; min-height: 46px;
  border: 1.5px solid var(--graphite); background: var(--graphite); color: var(--ivory);
  border-radius: 8px; padding: 8px 20px; cursor: pointer;
}
.af-q .sg { margin-top: 4px; }
.af-qk { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); }
.af-qk a { color: var(--ink); font-weight: 600; }
.af-qk a span { color: var(--muted); font-size: 13px; font-weight: 500; }
.af-q + .af-chips, .af-qk + .af-chips { margin-top: 14px; }
@media (max-width: 560px) {
  .af-q { margin-top: 12px; gap: 6px; }
  .af-q input[type="search"] { min-height: 42px; padding: 6px 12px; }
  .af-q input[type="search"]::placeholder { font-size: 14.5px; }   /* подсказка целиком на 375 px */
  .af-q-b { min-height: 42px; padding: 6px 14px; font-size: 14px; }
  .af-qk { font-size: 13px; margin-top: 8px; }
}

/* События афиши на странице «Найти» каталога (Юля 03.12.2026). Обёртка не
   .af: на неё завязаны правила шапки афиши. Строка-ссылка над бизнесами,
   блок с тремя плитками под ними или наверху, если бизнесов не нашлось. */
.afq-strip { margin: 0 0 16px; font-size: 15px; }
.afq-strip a { color: var(--ink); font-weight: 600; }
.afq-evs { margin: 28px 0 8px; }
.afq-evs .h-sec { margin-bottom: 12px; }
.afq-more { margin: 14px 0 0; font-size: 15px; }
.afq-more a { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .afq-evs { margin-top: 20px; }
  .afq-strip, .afq-more { font-size: 14px; }
}

/* выгоды бизнес-страницы и «Забрать событие» (03.12.2026) */
.af-ben { margin: 18px 0 22px; border-color: var(--orange); }
.af-ben .af-h2 { margin-top: 0; }
.af-ben-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-width: 620px; }
.af-ben-list li { position: relative; padding-left: 26px; line-height: 1.45; }
.af-ben-list li::before {
  content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px;
  border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange);
  transform: rotate(-45deg);
}
.af-ben-list b, .af-ben-gift b { color: var(--graphite); }
.af-ben-gift { background: var(--tone); border-radius: 10px; padding: 10px 14px; max-width: 620px; }
.af-ben-foot { font-size: 14px; color: var(--muted); }
.af-claim-list { list-style: none; margin: 4px 0 16px; padding: 0; display: grid; gap: 8px; }
.af-claim-list li { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.af-claim-list a { font-weight: 700; color: var(--graphite); text-decoration: none; }
.af-claim-list small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.af-claim .vhod { max-width: 420px; margin-bottom: 8px; }
.af-claim > .af-h2 { margin: 22px 0 10px; }
