/* Реклама: продвижение (С38), баннеры (С41), медиакит (С55), админка (С52) */
.ad-pick, .ad-buy { margin-bottom: 16px; }
.ad-pick h2, .ad-buy h2 { font-size: 19px; margin: 4px 0 12px; }
.ad-buy h2 + .muted, .ad-buy h2 + div { margin-bottom: 8px; }
.ad-buy h2:not(:first-of-type) { margin-top: 18px; }
.ad-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ad-product { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; cursor: pointer; background: var(--card); position: relative; }
.ad-product input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ad-product.is-on, .ad-product:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.ad-product:has(input:focus-visible) { outline: 3px solid #BCD3F7; }
.ad-product__price { font-weight: 800; margin-top: 4px; }
.ad-cal { display: flex; flex-direction: column; gap: 4px; max-width: 520px; }
.ad-cal__wd, .ad-cal__week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ad-cal__wd span { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.ad-cal__month { font-weight: 800; margin: 10px 0 2px; text-transform: capitalize; }
.ad-day { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); font-weight: 700; cursor: pointer; }
.ad-day input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.ad-day i { position: absolute; right: 4px; bottom: 2px; font-size: 10px; font-style: normal; color: var(--muted); }
.ad-day.is-busy { background: #ECEEF1; color: #8A9099; border-color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.ad-day.is-busy input { cursor: not-allowed; }
.ad-day.is-part { background: var(--warn-soft); }
.ad-day--pad { border: 0; background: none; cursor: default; }
.ad-day:has(input:checked), .ad-day.is-start { background: var(--primary); color: #fff; border-color: var(--primary); }
.ad-day.is-in { background: var(--primary-soft); border-color: #BCD3F7; color: var(--primary); }
.ad-day.is-bad { background: var(--error-soft); border-color: var(--error); color: var(--error); }
.ad-day:has(input:focus-visible) { outline: 3px solid #BCD3F7; outline-offset: 1px; }
.ad-periods { display: flex; gap: 8px; flex-wrap: wrap; }
.ad-periods .chip { cursor: pointer; }
.ad-periods .chip:has(input:checked) { background: var(--primary-soft); border-color: #BCD3F7; color: var(--primary); }
.ad-periods input { margin-right: 4px; }
.ad-total { display: flex; gap: 10px; align-items: baseline; margin: 16px 0 12px; flex-wrap: wrap; }
.ad-total b { font-size: 26px; }
.ad-mine { padding: 12px 0; border-top: 1px solid var(--line); }
.ad-mine:first-of-type { border-top: 0; }
.ad-mine__head { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ad-mine__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.ad-inline { display: flex; gap: 8px; align-items: center; }
.ad-rules { margin: 0 0 12px; padding-left: 18px; }
.ad-preview { display: block; max-width: 100%; margin-top: 10px; border-radius: 8px; border: 1px solid var(--line); }
.ad-banners { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.ad-banner img { width: 100%; height: auto; display: block; border-radius: 12px 12px 0 0; background: var(--bg); }
.ad-banner__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; overflow-wrap: anywhere; }
.ad-mod-img { max-width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; display: block; }
.ad-slot { position: relative; margin: 24px 0; }
.ad-slot__link { display: block; }
.ad-slot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.ad-slot__label { position: absolute; top: 8px; right: 8px; }
.ad-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 8px; }
.ad-kpis .card { padding: 16px 18px; display: flex; flex-direction: column; }
.ad-kpis b { font-size: 30px; }
.ad-mk { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ad-mk__price b { font-size: 24px; }
.ad-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ad-adm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ad-adm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-bottom: 12px; align-items: center; }
.ad-adm-cal__nav { display: flex; gap: 12px; align-items: center; justify-content: space-between; max-width: 520px; margin-bottom: 8px; }
@media (max-width: 640px) {
  .ad-products { grid-template-columns: 1fr; }
  .ad-day { min-height: 42px; }
  .ad-inline { flex-wrap: wrap; }
}
.ad-day__mon { font-size: 11px; font-weight: 800; color: var(--primary); }
