/* АвтоЛига — баннер и настройки cookie */
.alc-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 300;
  width: min(420px, calc(100vw - 40px));
  background: #1A1A1A; color: #fff;
  border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  padding: 20px 20px 16px;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.55);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.alc-banner.show { opacity: 1; transform: none; pointer-events: auto; }
.alc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.alc-head b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.alc-ico { flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,87,34,.14); color: #FF5722; display: inline-flex; align-items: center; justify-content: center; }
.alc-ico svg { width: 20px; height: 20px; }
.alc-banner p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.7); margin: 0 0 16px; }
.alc-banner p a { color: #FF7043; text-decoration: underline; text-underline-offset: 2px; }
.alc-btns { display: flex; gap: 8px; }
.alc-btn {
  flex: 1 1 0; min-height: 44px; padding: 10px 14px; border-radius: 11px;
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.alc-btn--main { background: #FF5722; color: #fff; border: 1px solid #FF5722; }
.alc-btn--main:hover { background: #E64A19; border-color: #E64A19; }
.alc-btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.22); }
.alc-btn--ghost:hover { border-color: rgba(255,255,255,.45); }
.alc-btn:focus-visible, .alc-link:focus-visible, .alc-x:focus-visible, .alc-switch input:focus-visible + i { outline: 2px solid #FF7043; outline-offset: 2px; }
.alc-link {
  display: block; width: 100%; margin-top: 10px; padding: 6px; background: none; border: 0;
  color: rgba(255,255,255,.55); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.alc-link:hover { color: #fff; }

/* настройки */
.alc-modal {
  position: fixed; inset: 0; z-index: 400; background: rgba(10,10,10,.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity .2s ease;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
}
.alc-modal[hidden] { display: none; }
.alc-modal.show { opacity: 1; }
.alc-dialog {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: #fff; color: #1A1A1A; border-radius: 22px; padding: 28px 26px 22px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.5);
}
.alc-dialog .alc-head b { font-size: 21px; }
.alc-sub { font-size: 14px; line-height: 1.5; color: #5A5A5A; margin: 0 0 18px; }
.alc-x { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: #F2F2F2; color: #1A1A1A; font-size: 24px; line-height: 1; cursor: pointer; }
.alc-x:hover { background: #E0E0E0; }
.alc-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px; border: 1px solid #E0E0E0; border-radius: 14px; margin-bottom: 10px; background: #F8F8F8;
}
label.alc-row { cursor: pointer; }
.alc-row b { display: block; font-size: 15px; margin-bottom: 4px; }
.alc-row span { display: block; font-size: 13px; line-height: 1.45; color: #5A5A5A; }
.alc-always { flex: none; font-size: 12px !important; font-weight: 700; color: #FF5722 !important; white-space: nowrap; }
.alc-switch { position: relative; flex: none; width: 48px; height: 28px; }
.alc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.alc-switch i { position: absolute; inset: 0; border-radius: 999px; background: #C2C2C2; transition: background .2s; }
.alc-switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.alc-switch input:checked + i { background: #FF5722; }
.alc-switch input:checked + i::after { transform: translateX(20px); }
.alc-dialog .alc-btns { margin-top: 16px; }
.alc-dialog .alc-btn--ghost { color: #1A1A1A; border-color: #C2C2C2; }
.alc-dialog .alc-btn--ghost:hover { border-color: #1A1A1A; }
.alc-more { display: block; text-align: center; margin-top: 14px; font-size: 13px; color: #5A5A5A; }
html.alc-lock, html.alc-lock body { overflow: hidden; }

@media (max-width: 640px) {
  .alc-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 16px 16px 10px; border-radius: 16px; }
  .alc-banner p { font-size: 13px; margin-bottom: 14px; }
  .alc-btns { flex-direction: column; }
  .alc-modal { align-items: flex-end; padding: 0; }
  .alc-dialog { border-radius: 22px 22px 0 0; max-height: 92vh; padding: 24px 18px 18px; }
  .alc-row { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .alc-banner, .alc-modal, .alc-switch i, .alc-switch i::after { transition: none; } }

/* версия для слабовидящих */
html.a11y .alc-banner, html.a11y .alc-dialog { border: 2px solid currentColor !important; }
html.a11y .alc-banner { transition: none; }
html.a11y-fs-2 .alc-banner, html.a11y-fs-3 .alc-banner { left: 10px; right: 10px; width: auto; }
