/* ===== Илья Аксельрод — афиша концертов ===== */
/* Палитра из фотографии: глубокий сине-зелёный фон, оранжевый из рубашки. */

:root {
  --bg0: #0b2230;
  --bg1: #143848;
  --card: rgba(20, 50, 64, 0.72);
  --ink: #f2ede6;
  --muted: #a7bcc6;
  --orange: #e8722a;
  --orange-hi: #f6934a;
  --navy: #12212b;
  --line: rgba(242, 237, 230, 0.14);
  --red: #ff8a76;
  --cyan: #8ed4ea;
  --radius: 16px;
}

html.a11y-contrast {
  --bg0: #000000;
  --bg1: #0a0a0a;
  --card: #111111;
  --ink: #ffffff;
  --muted: #d6d6d6;
  --orange: #ff9c4d;
  --orange-hi: #ffb26b;
  --navy: #000000;
  --line: rgba(255, 255, 255, 0.4);
  --red: #ff9c8c;
  --cyan: #a8e6fa;
}

html.a11y-underline a { text-decoration: underline !important; }

html.a11y-nomotion *,
html.a11y-nomotion *::before,
html.a11y-nomotion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Golos Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg0);
  min-height: 100vh;
}

/* Фон отдельным fixed-слоем: background-attachment:fixed глючит на iOS и при скролле */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 800px at 75% -10%, var(--bg1), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(232, 114, 42, 0.07), transparent 55%),
    var(--bg0);
}

img { max-width: 100%; display: block; }

a { color: var(--orange-hi); }

:focus-visible {
  outline: 3px solid var(--orange-hi);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: var(--navy);
  font-weight: 600;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 12px 0;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Шапка ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg0) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.8rem;
}

.brand {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand b { color: var(--orange-hi); font-weight: 700; }

.site-nav { display: flex; gap: 0.35rem; }

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  transition: background 0.2s;
}
.site-nav a:hover { background: rgba(242, 237, 230, 0.1); }

/* ===== Хиро ===== */

.hero { padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(2rem, 5vw, 4rem); }

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.kicker {
  font-family: "Unbounded", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  color: var(--orange-hi);
  margin-bottom: 1rem;
}

h1 {
  font-family: "Unbounded", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.lead {
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 34rem;
}

.hero-cta { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-photo { position: relative; justify-self: end; width: min(100%, 380px); }

.hero-photo img {
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  height: auto;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--orange);
  border-radius: 24px;
  transform: translate(16px, 16px);
  z-index: -1;
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-text { animation: fadeUp 0.6s ease both; }
  .hero-photo { animation: fadeUp 0.7s ease 0.12s both; }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* ===== Кнопки и бейджи ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

/* Оранжевая кнопка — всегда с тёмным текстом (контраст) */
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-hi); transform: translateY(-1px); }

.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--orange-hi); transform: translateY(-1px); }

.badge {
  display: inline-block;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
  white-space: nowrap;
}

.badge-few { color: var(--orange-hi); border-color: var(--orange); background: rgba(232, 114, 42, 0.12); }
.badge-sold { color: var(--red); border-color: var(--red); background: rgba(255, 138, 118, 0.1); }
.badge-soon { color: var(--cyan); border-color: var(--cyan); background: rgba(142, 212, 234, 0.1); }

/* ===== Афиша ===== */

section { scroll-margin-top: 5rem; }

.afisha { padding-block: 1rem 3rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  letter-spacing: 0.02em;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.filter-chip {
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.filter-chip:hover { border-color: var(--orange-hi); }
.filter-chip[aria-pressed="true"] {
  background: var(--orange);
  color: var(--navy);
  border-color: var(--orange);
  font-weight: 600;
}

.events { list-style: none; display: grid; gap: 0.85rem; }

.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  transition: border-color 0.2s, transform 0.15s;
}
.event:hover { border-color: rgba(232, 114, 42, 0.55); }

.event--sold { opacity: 0.6; }
.event--sold:hover { border-color: var(--line); }

.event-date {
  display: grid;
  justify-items: center;
  min-width: 5rem;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
  line-height: 1.15;
}

.event-date .d {
  font-family: "Unbounded", sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  color: var(--orange-hi);
}
.event-date .m { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; }
.event-date .y { font-size: 0.78rem; color: var(--muted); }
.event-date .tbd {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cyan);
  text-align: center;
  max-width: 6rem;
}

.event-title { font-size: 1.15rem; font-weight: 600; font-family: inherit; }

.event-place { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.event-place .flag { margin-right: 0.3rem; }

.event-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}

.event-action .btn { padding: 0.55rem 1.2rem; font-size: 0.95rem; }

.events-empty, .updated { color: var(--muted); margin-top: 1.25rem; }
.updated { font-size: 0.85rem; }

.noscript-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1rem;
}
.noscript-box ul { margin: 0.75rem 0 0 1.25rem; }

/* ===== Контакты ===== */

.contacts { padding-block: 2rem 4rem; }

.contacts .sub { color: var(--muted); margin-top: 0.5rem; max-width: 36rem; }

.contact-cards {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  max-width: 640px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  transition: border-color 0.2s, transform 0.15s;
}
.contact-card:hover { border-color: var(--orange-hi); transform: translateY(-2px); }

.contact-card svg { flex: none; width: 26px; height: 26px; fill: var(--orange-hi); }

.contact-card .small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 400; }

/* ===== Подвал ===== */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 1.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ===== Юридические страницы ===== */

.legal { padding-block: 2.5rem 4rem; max-width: 46rem; }
.legal h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: 1.5rem; }
.legal h3 { font-family: inherit; font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.legal p, .legal li { color: #d6dee2; }
html.a11y-contrast .legal p, html.a11y-contrast .legal li { color: var(--ink); }
.legal ul { margin: 0.5rem 0 0.5rem 1.4rem; }
.legal p { margin-block: 0.6rem; }
.legal .he {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legal .back { display: inline-block; margin-bottom: 1.5rem; }

/* ===== Панель доступности ===== */

.a11y-btn {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--bg1);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s, transform 0.15s;
}
.a11y-btn:hover { border-color: var(--orange-hi); transform: scale(1.05); }
.a11y-btn svg { width: 1.5rem; height: 1.5rem; fill: currentColor; }

.a11y-panel {
  position: fixed;
  left: 1rem;
  bottom: 4.5rem;
  z-index: 71;
  width: min(320px, calc(100vw - 2rem));
  background: var(--bg1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.a11y-panel[hidden] { display: none; }

.a11y-panel h2 { font-family: inherit; font-size: 1rem; text-transform: none; letter-spacing: 0; margin-bottom: 0.75rem; }

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.45rem;
  font-size: 0.95rem;
}

.a11y-row .fs-controls { display: flex; gap: 0.4rem; }

.a11y-row button.fs {
  font-family: inherit;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}
.a11y-row button.fs:hover { border-color: var(--orange-hi); }

.a11y-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  accent-color: var(--orange);
  cursor: pointer;
}

.a11y-reset {
  margin-top: 0.6rem;
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.a11y-reset:hover { color: var(--ink); border-color: var(--orange-hi); }

/* ===== Мобильная версия ===== */

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { justify-self: center; width: min(100%, 300px); }

  .event {
    grid-template-columns: auto 1fr;
    gap: 0.9rem 1.1rem;
    padding: 1rem 1.1rem;
  }
  .event-date { min-width: 4.2rem; padding-right: 0.9rem; }
  .event-action {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
  }
  .site-nav a { padding: 0.4rem 0.6rem; font-size: 0.9rem; }
}
