/* Локальные woff2: латин + кириллица, без Google Fonts */
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-italic-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-italic-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-normal-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/cormorant-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-normal-600-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/cormorant-normal-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Cormorant";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/cormorant-normal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-300-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-500-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/manrope-normal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Ми-Ре-Ль — стили сайта
   Чёрно-белая гамма, мягкий мотив клавиш пианино
   Точки «Ми•Ре•Ль» только в логотипе (шапка, герой, подвал)
   ============================================================ */

:root {
  --black: #0a0a0a;
  --white: #fdfdfc;
  --grey: #5c5c5c; /* ~7:1 на белом */
  --line: rgba(255, 255, 255, 0.15);
  --font-display: "Cormorant", serif;
  --font-body: "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

section[id] { scroll-margin-top: 72px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }

picture {
  display: block;
  max-width: 100%;
}

/* ---------- Отбивка-иллюстрация с клавишами ---------- */

.piano-divider {
  height: clamp(80px, 10vw, 140px);
  background-color: var(--white);
  background-image: url("../assets/img/piano-divider.jpg?v=4");
  background-image: image-set(
    url("../assets/img/piano-divider.webp?v=4") type("image/webp"),
    url("../assets/img/piano-divider.jpg?v=4") type("image/jpeg")
  );
  background-repeat: repeat-x;
  background-position: center;
  background-size: auto 100%;
}

/* ---------- Навигация ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.nav__links {
  display: flex;
  gap: 22px;
}

.nav__links a {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.nav__links a:hover { opacity: 1; }

.nav__back {
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
}

.nav__back:hover { opacity: 1; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* ---------- Главный экран (белый) ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  color: var(--black);
  padding: clamp(96px, 13vh, 150px) 16px 0;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  flex: 0 0 auto;
  padding-bottom: clamp(10px, 2vh, 28px);
}

.hero__stage {
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 240px;
}

.hero__photo {
  width: min(1080px, 100%);
  height: auto;
  max-height: min(68vh, 100%);
  margin-inline: auto;
  object-fit: contain;
  object-position: center bottom;
}

.hero__notes {
  font-size: 14px;
  letter-spacing: 0.35em;
  color: var(--grey);
  margin-bottom: 14px;
}

.hero__notes b { color: var(--black); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(64px, 13vw, 150px);
  letter-spacing: 0.02em;
  line-height: 1;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 2.2vw, 22px);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  margin-top: 12px;
  margin-left: 0.55em; /* компенсация трекинга для центровки */
}

.hero__tagline {
  margin-top: 20px;
  color: var(--grey);
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero__actions {
  margin-top: 30px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-block;
  padding: 13px 30px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--black);
  border-radius: 999px;
  transition: all 0.25s;
}

.btn--black { background: var(--black); color: var(--white); }
.btn--black:hover { background: transparent; color: var(--black); }

.btn--outline { background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

/* ---------- Секции ---------- */

.section { padding: 88px 24px; }

.section--white { background: var(--white); color: var(--black); }
.section--black { background: var(--black); color: var(--white); --grey: #a8a8a8; }
.nav, .footer { --grey: #a8a8a8; }

.container { max-width: 1100px; margin: 0 auto; }

.section__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 56px);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 44px;
}

.section__note {
  margin: -30px 0 40px;
  color: var(--grey);
  font-size: 15px;
}

.section__note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.section__title--compact { margin-bottom: 24px; }

.afisha-soon {
  border: 1px solid rgba(10, 10, 10, 0.25);
  border-radius: 18px;
  padding: 22px 26px;
  margin-bottom: 40px;
}

.afisha-soon p { margin: 0; font-size: 16px; }
.afisha-soon p + p { margin-top: 8px; color: var(--grey); font-size: 15px; }

.afisha-soon a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.afisha-archive {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 32px);
  margin-bottom: 12px;
}

.afisha-archive + .section__note {
  margin: 0 0 28px;
}

/* ---------- О хоре ---------- */

.about {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__lead {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
}

.about__text p { margin-bottom: 16px; }

.about__facts {
  list-style: none;
  display: flex;
  gap: 36px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.about__facts li {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.about__facts span {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  color: var(--black);
  line-height: 1.1;
}

.about__photo { border-radius: 20px; overflow: hidden; }

.about__photo img {
  width: 100%;
  height: auto;
  filter: grayscale(1);
  transition: filter 0.4s, transform 0.5s;
}

.about__photo:hover img {
  filter: grayscale(0);
  transform: scale(1.02);
}

/* ---------- Репертуар (внутри «О хоре») ---------- */

.repertoire {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(10, 10, 10, 0.15);
  text-align: center;
}

.repertoire__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.repertoire__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  row-gap: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.6vw, 48px);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.repertoire__list li:not(:last-child)::after {
  content: "·";
  margin: 0 0.7em;
  font-weight: 500;
  opacity: 0.4;
}

/* ---------- Руководитель ---------- */

.leader {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.leader__photo { border-radius: 20px; overflow: hidden; }

.leader__photo img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
}
.leader__photo:hover img { transform: scale(1.02); }

.leader__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 1.2;
  margin-bottom: 10px;
}

.leader__role {
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 14px;
  margin-bottom: 26px;
}

.leader__text p { margin-bottom: 16px; }

.leader__vk {
  display: inline-block;
  margin-top: 24px;
  color: var(--white);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.leader__quote {
  margin-top: 30px;
  padding: 22px 26px;
  border-left: 3px solid var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  font-style: italic;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 14px 14px 0;
}

/* ---------- Афиша ---------- */

.afisha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.afisha-card__poster {
  border-radius: 18px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 3 / 4;
  transition: transform 0.4s, box-shadow 0.4s;
}

.afisha-card__poster picture {
  width: 100%;
  height: 100%;
}

.afisha-card__poster:hover {
  transform: scale(1.05) translateY(-4px);
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.18);
}

.afisha-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s;
}

.afisha-card__poster:hover img { filter: grayscale(0); }

.afisha-card__date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  margin-top: 18px;
}

.afisha-card__event {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 17px;
  margin: 8px 0 6px;
}

.afisha-card__place {
  color: var(--grey);
  font-size: 15px;
}

.afisha-note {
  margin-top: 40px;
  color: var(--grey);
  font-size: 15px;
}

.afisha-note a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Фотогалерея ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery__item {
  overflow: hidden;
  border-radius: 18px;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s;
}

.gallery__item picture {
  width: 100%;
  height: 100%;
}

.gallery__item:nth-child(odd) { transform: rotate(-1.1deg); }
.gallery__item:nth-child(even) { transform: rotate(1.1deg); }

.gallery__item--wide { grid-column: span 2; }

/* для вертикальных портретов — кадрирование от верха, чтобы не резало голову */
.gallery__item--top img { object-position: center 12%; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s, transform 0.5s;
}

.gallery__item:hover { transform: rotate(0deg) translateY(-6px); }

.gallery__item:hover img {
  filter: grayscale(0);
  transform: scale(1.04);
}

/* ---------- Видео ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.swipe-hint {
  display: none;
  margin: -28px 0 24px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.video-card__caption {
  margin-top: 12px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed currentColor;
  border-radius: 18px;
  opacity: 0.5;
  text-align: center;
  padding: 20px;
}

.video-placeholder__key {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 18px;
  background: #000;
}

/* ---------- Райдер ---------- */

.rider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rider__col {
  border: 1px solid rgba(10, 10, 10, 0.25);
  border-radius: 18px;
  padding: 28px;
}

.rider__col h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.25);
}

.rider__col ul { list-style: none; }

.rider__col li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 15px;
}

.rider__col li::before {
  content: "♪";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 14px;
}

.rider__note {
  margin-top: 32px;
  color: var(--grey);
  font-size: 15px;
}

.rider__note a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Контакты ---------- */

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contacts__item {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s;
}

.contacts__item:hover { background: rgba(255, 255, 255, 0.08); }

.contacts__icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 18px;
}

.contacts__icon svg { width: 24px; height: 24px; }

.contacts__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey);
  margin-bottom: 8px;
}

.contacts__value { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }

.contacts__value a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contacts__invite {
  margin-top: 36px;
  font-size: 19px;
  max-width: 680px;
}

.contacts__invite a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Подвал ---------- */

.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 56px 24px 40px;
  border-top: 1px solid var(--line);
}

.footer__logo {
  width: 110px;
  margin: 0 auto 20px;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.footer__copy { color: var(--grey); font-size: 14px; }

.footer__legal {
  margin-top: 16px;
  color: var(--grey);
  font-size: 13px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.footer__legal a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 120px 24px 80px;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 24px;
}

.legal p { margin-bottom: 16px; }

.legal a {
  color: var(--black);
  text-underline-offset: 3px;
}

/* ---------- 404 ---------- */

.page-lost {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.lost {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 64px;
  background: var(--white);
}

.lost__code {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(88px, 18vw, 160px);
  line-height: 0.9;
  letter-spacing: 0.04em;
  margin: 4px 0 10px;
}

.lost__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  margin-bottom: 14px;
}

.lost__text {
  max-width: 420px;
  color: var(--grey);
  font-size: 17px;
}

.lost .hero__actions { margin-top: 28px; }

/* ---------- Лайтбокс ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox[hidden] { display: none; }

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 26px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Появление секций ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.reveal--visible {
  opacity: 1;
  transform: none;
}

/* ---------- Адаптив ---------- */

@media (max-width: 900px) {
  .about,
  .leader { grid-template-columns: 1fr; gap: 36px; }

  .afisha-grid { grid-template-columns: 1fr; gap: 44px; }

  .leader__photo { max-width: 440px; }

  .rider { grid-template-columns: 1fr; }

  .contacts { grid-template-columns: 1fr; }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
}

@media (max-width: 1000px) {
  .nav__links {
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav__links.nav__links--open { display: flex; }

  .nav__links a {
    padding: 15px 28px;
    border-top: 1px solid var(--line);
  }

  .nav__burger { display: flex; }
}

@media (max-width: 680px) {
  /* видео — горизонтальная карусель со свайпом вместо длинной колонки */
  .video-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }

  .video-grid::-webkit-scrollbar { display: none; }

  .video-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  /* прошедшие мероприятия — такая же карусель, как у видео */
  .afisha-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px 8px;
    scrollbar-width: none;
  }

  .afisha-grid::-webkit-scrollbar { display: none; }

  .afisha-card {
    flex: 0 0 74%;
    scroll-snap-align: center;
  }

  .swipe-hint { display: block; }

  /* контакты — компактные строки: иконка слева, текст справа */
  .contacts { gap: 12px; }

  .contacts__item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
    align-items: center;
    padding: 14px 16px;
  }

  .contacts__icon {
    grid-row: 1 / 3;
    width: 42px;
    height: 42px;
    margin-bottom: 0;
  }

  .contacts__icon svg { width: 20px; height: 20px; }

  .contacts__label { margin-bottom: 2px; font-size: 11px; }

  .contacts__value { font-size: 15px; }

  .contacts__invite { margin-top: 26px; font-size: 17px; }

  .gallery { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }

  .section { padding: 60px 20px; }

  .piano-divider { height: 64px; }
}
