/* ==========================================================================
   «МОСТ ИСКУССТВ. РОССИЯ — КИТАЙ» — ДИЗАЙН-СИСТЕМА
   Этап 1: токены, базовые компоненты, секции главной страницы
   ========================================================================== */

/* ---------- 1. ТОКЕНЫ ---------- */
:root {
  /* Палитра */
  --c-red:        #C8102E;   /* фирменный красный */
  --c-cinnabar:   #D64A2F;   /* киноварь */
  --c-vermilion:  #E4572E;   /* вермильон */
  --c-orange:     #F2820D;   /* оранжевый */
  --c-amber:      #F5A623;   /* тёплый янтарный акцент */
  --c-cream:      #FFF7F0;   /* тёплый светлый фон */
  --c-cream-2:    #FDEDE3;   /* светлый фон, второй уровень */
  --c-dark-red:   #5A0E12;   /* глубокий тёмно-красный */
  --c-wine:       #7A1016;   /* винный */
  --c-ink:        #221014;   /* почти чёрный с тёплым подтоном */
  --c-ink-soft:   #5C4548;   /* вторичный текст на светлом */
  --c-line:       rgba(90, 14, 18, .14);
  --c-line-light: rgba(255, 247, 240, .18);

  /* Градиенты */
  --grad-brand:  linear-gradient(118deg, #7A1016 0%, #C8102E 46%, #F2820D 100%);
  --grad-brand-2:linear-gradient(118deg, #C8102E 0%, #E4572E 55%, #F5A623 100%);
  --grad-soft:   linear-gradient(180deg, #FFF7F0 0%, #FDEDE3 100%);
  --grad-text:   linear-gradient(92deg, #F2820D 0%, #E4572E 45%, #C8102E 100%);

  /* Типографика */
  --font-display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --font-body: 'Onest', system-ui, 'Segoe UI', sans-serif;

  /* Метрика */
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  /* Тени */
  --shadow-s: 0 2px 10px rgba(90, 14, 18, .08);
  --shadow-m: 0 10px 30px rgba(90, 14, 18, .14);
  --shadow-l: 0 24px 60px rgba(34, 16, 20, .22);

  /* Анимации */
  --ease-out: cubic-bezier(.22, .8, .28, 1);
  --dur: .45s;
}

/* ---------- 2. БАЗА ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

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

::selection { background: var(--c-cinnabar); color: #fff; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. ТИПОГРАФИКА ---------- */
.h-display, .h1, .h2, .h3, .h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.h-display { font-size: clamp(2.4rem, 6.4vw, 5rem); text-transform: uppercase; }
.h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
.h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.h4 { font-size: 1.05rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-cinnabar);
}
.eyebrow::before {
  content: "";
  width: 34px; height: 2px;
  background: var(--grad-brand-2);
  border-radius: 2px;
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.6; color: var(--c-ink-soft); }
.section--dark .lead, .section--gradient .lead { color: rgba(255, 247, 240, .82); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 4. КНОПКИ ---------- */
.btn {
  --btn-bg: var(--grad-brand-2);
  --btn-color: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--btn-color);
  background: var(--btn-bg);
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
  isolation: isolate;
}
.btn::after {                 /* блик, скользящий по градиенту */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-110%);
  transition: transform .7s var(--ease-out);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 16, 46, .35); }
.btn:hover::after { transform: translateX(110%); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  border-color: rgba(255, 247, 240, .5);
}
.btn--ghost:hover { border-color: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.25); }

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--c-red);
  border-color: var(--c-red);
}
.btn--outline:hover { box-shadow: 0 12px 28px rgba(200, 16, 46, .22); }

.btn--sm { padding: 11px 22px; font-size: .74rem; }
.btn--lg { padding: 18px 40px; font-size: .9rem; }

/* ---------- 5. БЭЙДЖИ / МЕТКИ ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--c-line);
  color: var(--c-cinnabar);
  background: rgba(200, 16, 46, .05);
}
.tag--light { border-color: var(--c-line-light); color: var(--c-amber); background: rgba(255,255,255,.06); }

.badge-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  padding: 12px 14px;
  border-radius: var(--radius-m);
  background: var(--grad-brand-2);
  color: #fff;
  line-height: 1.05;
  text-align: center;
  box-shadow: var(--shadow-s);
}
.badge-date .d { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.badge-date .m { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .92; }

/* ---------- 6. КАРТОЧКИ ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 28px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(200,16,46,.1), rgba(242,130,13,.14));
  color: var(--c-red);
  margin-bottom: 18px;
}
.card__title { margin-bottom: 10px; }
.card__text { color: var(--c-ink-soft); font-size: .95rem; }
.card__link {
  margin-top: auto;
  padding-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-red);
}
.card__link svg { transition: transform var(--dur) var(--ease-out); }
.card:hover .card__link svg { transform: translateX(5px); }

/* Карточка концерта */
.concert-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 26px;
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.concert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.concert-card__time {
  margin-top: 8px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  display: flex; align-items: center; gap: 6px;
}
.concert-card__venue {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.concert-card__place { margin-top: 6px; font-size: .9rem; color: var(--c-ink-soft); }
.concert-card__city {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-cinnabar);
}
.concert-card--gala {
  background: var(--grad-brand);
  border: 0;
  color: #fff;
}
.concert-card--gala .concert-card__place { color: rgba(255,247,240,.85); }
.concert-card--gala .concert-card__city { color: var(--c-amber); }
.concert-card--gala .concert-card__time { color: rgba(255,247,240,.85); }
.concert-card--gala .badge-date { background: rgba(255,255,255,.14); box-shadow: none; border: 1px solid rgba(255,255,255,.25); }

/* ---------- 7. СЕКЦИИ ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section--cream { background: var(--grad-soft); }
.section--dark { background: var(--c-dark-red); color: var(--c-cream); }
.section--gradient { background: var(--grad-brand); color: #fff; }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(36px, 5vw, 60px);
}
.section__head .h2 { margin-top: 14px; }
.section__head-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-red);
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
  transition: border-color var(--dur) var(--ease-out);
}
.section__head-link:hover { border-color: var(--c-red); }
.section--dark .section__head-link, .section--gradient .section__head-link { color: var(--c-amber); }
.section--dark .section__head-link:hover, .section--gradient .section__head-link:hover { border-color: var(--c-amber); }

/* декоративный китайский облачный орнамент — тонкие линии */
/* ---------- 8. ШАПКА ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), backdrop-filter .35s;
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 84px;
}
.site-header.is-scrolled {
  background: rgba(34, 16, 20, .86);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 30px rgba(0,0,0,.25);
}
.site-header.is-scrolled .site-header__inner { height: 68px; }

/* логотип */
.logo { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex-shrink: 0; }
.logo__mark { width: 44px; height: 44px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; letter-spacing: .04em; text-transform: uppercase; }
.logo__sub { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--c-amber); margin-top: 3px; }

/* навигация */
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: .86rem;
  font-weight: 500;
  color: rgba(255, 247, 240, .86);
  transition: color .25s, background .25s;
  white-space: nowrap;
}
.nav__link:hover, .nav__item.is-open > .nav__link { color: #fff; background: rgba(255,255,255,.08); }
.nav__link .caret { transition: transform .3s var(--ease-out); }
.nav__item.is-open .caret, .nav__item:hover .caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 260px;
  padding: 10px;
  background: rgba(30, 13, 16, .96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--c-line-light);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility .3s;
  z-index: 20;
}
.nav__item:hover .nav__dropdown,
.nav__item.is-open .nav__dropdown { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav__dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .88rem;
  color: rgba(255,247,240,.85);
  transition: background .25s, color .25s;
}
.nav__dropdown a:hover { background: rgba(200,16,46,.35); color: #fff; }
.nav__dropdown a small { display: block; font-size: .72rem; color: rgba(255,247,240,.5); }

/* переключатель языка */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--c-line-light);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.lang-switch button {
  padding: 8px 13px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: rgba(255,247,240,.6);
  transition: background .25s, color .25s;
}
.lang-switch button.is-active { background: var(--grad-brand-2); color: #fff; }
.lang-switch button:not(.is-active):hover { color: #fff; }

/* бургер */
.burger {
  display: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  border: 1px solid var(--c-line-light);
  position: relative;
  flex-shrink: 0;
}
.burger span, .burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s;
}
.burger span { top: 50%; margin-top: -1px; }
.burger span::before { top: -7px; }
.burger span::after { top: 7px; }
.burger.is-active span { background: transparent; }
.burger.is-active span::before { transform: translateY(7px) rotate(45deg); }
.burger.is-active span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 9. HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(245,166,35,.28), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, rgba(228,87,46,.3), transparent 55%),
    var(--grad-brand);
  color: #fff;
  overflow: hidden;
  padding: 140px 0 90px;
}
.hero__waves { position: absolute; inset: 0; pointer-events: none; }

@keyframes wave-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.hero__inner { position: relative; z-index: 2; display: grid; gap: 34px; max-width: 900px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__title { text-shadow: 0 8px 40px rgba(34,16,20,.35); }
.hero__title .accent { color: var(--c-amber); }
.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.4vw, 1.5rem);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,247,240,.92);
}
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 40px; }
.hero__meta-item { display: flex; flex-direction: column; gap: 2px; }
.hero__meta-label { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-amber); }
.hero__meta-value { font-family: var(--font-display); font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.hero__note { font-size: .92rem; color: rgba(255,247,240,.75); max-width: 520px; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .68rem; letter-spacing: .28em; text-transform: uppercase;
  color: rgba(255,247,240,.65);
}
.hero__scroll::after {
  content: "";
  width: 1px; height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), transparent);
  animation: scroll-hint 2.2s var(--ease-out) infinite;
}
@keyframes scroll-hint {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* бегущая строка */
.marquee {
  background: var(--c-ink);
  color: var(--c-cream);
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid rgba(255,247,240,.08);
}
.marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__track span { display: inline-flex; align-items: center; gap: 48px; }
.marquee__track i { font-style: normal; color: var(--c-orange); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 10. СЕТКИ ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--concert { grid-template-columns: repeat(3, 1fr); }
.grid--concert .concert-card--gala { grid-column: 1 / -1; }

/* ---------- 11. О ФЕСТИВАЛЕ ---------- */
.about__layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about__text { display: grid; gap: 20px; }
.about__aside {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 34px;
  background: var(--grad-brand);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.about__aside-list { position: relative; display: grid; gap: 22px; margin-top: 8px; }
.about__aside-item { display: flex; gap: 16px; align-items: flex-start; }
.about__aside-item strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; line-height: 1; color: var(--c-amber); min-width: 52px; }
.about__aside-item p { font-size: .92rem; color: rgba(255,247,240,.9); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.stat { padding: 22px; border-radius: var(--radius-m); background: #fff; border: 1px solid var(--c-line); }
.stat b { display: block; font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .85rem; color: var(--c-ink-soft); }

/* ---------- 12. ПРОГРАММА ---------- */
.concert-card { position: relative; }
.concert-card__body { display: grid; gap: 8px; min-width: 0; }

/* ---------- 13. УЧАСТНИКАМ / ОБРАЗОВАНИЕ ---------- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step {
  counter-increment: step;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  padding: 26px 28px;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  flex-shrink: 0;
}
.step__body h3 { margin-bottom: 6px; }
.step__body p { color: var(--c-ink-soft); font-size: .95rem; }

.contact-card {
  display: grid;
  gap: 8px;
  border-radius: var(--radius-l);
  padding: 30px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--c-line-light);
}
.contact-card__label { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-amber); }
.contact-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.contact-card__phone { font-size: 1.25rem; font-weight: 600; }
.contact-card__phone:hover { color: var(--c-amber); }

/* ---------- 14. НОВОСТИ ---------- */
.news-card { padding: 0; overflow: hidden; }
.news-card__media {
  aspect-ratio: 16 / 9;
  background: var(--grad-soft);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--c-cinnabar);
  border-bottom: 1px solid var(--c-line);
}
.news-card__body { padding: 24px; display: grid; gap: 10px; }
.news-card__date { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c-cinnabar); }
.news-card__title { font-size: 1.02rem; line-height: 1.4; }

/* ---------- 15. ГАЛЕРЕЯ ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--grad-brand);
  display: grid;
  place-items: center;
  color: rgba(255,247,240,.85);
  border: 1px solid var(--c-line-light);
}
.gallery-item::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.10' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M18 96c-9 0-16-7-16-16 0-11 9-20 20-20 7 0 13 3 16 9 2-9 10-16 20-16 11 0 20 9 20 20 0 3-.1 5-.4 7 9 1 16 8 16 17'/%3E%3Cpath d='M30 92c0-5 4-9 9-9s9 4 9 9'/%3E%3C/g%3E%3C/svg%3E");
}
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item span {
  position: relative;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 16px;
}

/* ---------- 16. ПАРТНЁРЫ ---------- */
.partners-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.partner-slot {
  aspect-ratio: 2 / 1;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,247,240,.3);
  border-radius: var(--radius-m);
  color: rgba(255,247,240,.55);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-align: center;
  padding: 12px;
  transition: border-color .3s, background .3s;
}
.partner-slot:hover { border-color: var(--c-amber); background: rgba(255,255,255,.04); color: var(--c-amber); }

/* ---------- 17. ФУТЕР ---------- */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,247,240,.78);
  padding: clamp(56px, 7vw, 88px) 0 0;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-brand-2);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: clamp(32px, 4vw, 56px);
  padding-bottom: 56px;
}
.site-footer .logo__name { color: #fff; }
.site-footer__desc { margin-top: 18px; font-size: .92rem; max-width: 320px; }
.site-footer__title { font-family: var(--font-display); font-size: .82rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--c-amber); margin-bottom: 18px; }
.site-footer__list { display: grid; gap: 10px; font-size: .93rem; }
.site-footer__list a { transition: color .25s; }
.site-footer__list a:hover { color: var(--c-amber); }
.site-footer__contact { display: grid; gap: 6px; font-size: .93rem; }
.site-footer__contact strong { color: #fff; font-weight: 600; }
.site-footer__contact a:hover { color: var(--c-amber); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,247,240,.1);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(255,247,240,.5);
}

/* ---------- 18. АНИМАЦИИ ПОЯВЛЕНИЯ ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 19. СТРАНИЦА «СКОРО» (заглушка маршрутов) ---------- */
.soon {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(800px 500px at 80% -10%, rgba(245,166,35,.22), transparent 60%),
    var(--grad-brand);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.soon__inner { position: relative; z-index: 2; display: grid; gap: 22px; justify-items: center; max-width: 640px; }
.soon__code { font-family: var(--font-display); font-size: clamp(3rem, 10vw, 6rem); font-weight: 700; line-height: 1; opacity: .35; }
.soon p { color: rgba(255,247,240,.85); }

/* ---------- 20. АДАПТИВ ---------- */
@media (max-width: 1120px) {
  .nav__link { padding: 10px 9px; font-size: .82rem; }
  .grid--concert { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 110px 24px 40px;
    background: rgba(26, 10, 12, .98);
    backdrop-filter: blur(18px);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .45s var(--ease-out);
    margin-left: 0;
  }
  .nav.is-open { transform: translateX(0); }
  .nav__link { font-size: 1.15rem; padding: 16px 6px; border-bottom: 1px solid rgba(255,247,240,.08); border-radius: 0; width: 100%; justify-content: space-between; }
  .nav__dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    background: transparent;
    backdrop-filter: none;
    display: none;
    min-width: 0;
    padding: 4px 0 10px 14px;
  }
  .nav__item.is-open .nav__dropdown { display: block; }
  .lang-switch { margin: 18px 6px 0; align-self: flex-start; }
  .header-cta { display: none; }

  .about__layout { grid-template-columns: 1fr; }
  .fest-photo { transform: none; } /* v37: на мобильных фото «Диалог культур» остаётся по центру */
  .section__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .partners-row { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4, .grid--concert { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .concert-card { grid-template-columns: 1fr; }
  .badge-date { flex-direction: row; gap: 10px; min-width: 0; justify-content: flex-start; width: fit-content; }
  .hero__meta { gap: 14px 26px; }
  .step { flex-direction: column; gap: 12px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .logo__text { display: none; }
  .gallery-item--wide, .gallery-item--tall { grid-column: auto; grid-row: auto; }
}

/* ---------- 21. ДОСТУПНОСТЬ ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   ЭТАП 2: интеграция утверждённого логотипа и авторских SVG-паттернов
   ========================================================================== */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Логотип в hero — главный визуальный акцент первого экрана */
.hero__logo {
  display: block;
  height: clamp(150px, 23vw, 235px);
  width: auto;
  filter: drop-shadow(0 14px 34px rgba(34, 16, 20, .35));
}
.hero__logo svg, .hero__logo img { height: 100%; width: auto; }

/* Две кнопки подачи заявки в hero */
.hero__cta--apps .btn { min-width: 250px; }

/* --- Авторские SVG-паттерны ---
   Используются как отдельные ресурсы assets/patterns/*.svg.
   Геометрия и цвета оригиналов не меняются:
   допускаются только масштабирование, позиционирование, повторение, обрезка. */
.pattern {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.pattern img { width: 100%; height: auto; display: block; pointer-events: none; }
.section--pat { overflow: hidden; }
.section--pat .container { position: relative; z-index: 1; }

/* «О фестивале»: равновесие русского и китайского узора по краям */

/* «Программа»: небольшой акцент у заголовка */

/* «Образовательная программа»: фрагмент слева */

/* «Новости»: сдержанный акцент справа */

@keyframes pat-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@media (max-width: 900px) {
  .hero__cta--apps .btn { min-width: 0; flex: 1 1 220px; }
}

@media (max-width: 560px) {
  .hero__logo { height: 128px; }
  /* На узких экранах паттерны убираем, чтобы сохранить чистоту композиции */
  .pattern--about-chn { width: 190px; right: -40px; }
}

/* Белый фон паттернов растворяется на тёплом фоне секций (файлы не изменяются) */



/* ---------- ЭТАП 3: галерея (фотосетка) и партнёры (две группы) ---------- */

/* Фотоплитка: изображение заполняет ячейку без искажения пропорций */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item { position: relative; }
.gallery-item__cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 14px 10px;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,247,240,.92);
  background: linear-gradient(180deg, transparent, rgba(34,16,20,.55));
}

/* Организаторы и партнёры: две группы, оригинальные логотипы на светлых карточках */
.partners-groups { display: grid; gap: 40px; }
.partners-group__title {
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-amber);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.partners-group__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255,247,240,.14);
}
.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.partner-logo {
  background: #fff;
  border-radius: var(--radius-m);
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  padding: 22px;
  box-shadow: var(--shadow-s);
}
.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;      /* оригинальные пропорции и цвета логотипов */
  display: block;
}
.partners-empty {
  grid-column: 1 / -1;
  border: 1px dashed rgba(255,247,240,.3);
  border-radius: var(--radius-m);
  padding: 30px 20px;
  text-align: center;
  color: rgba(255,247,240,.55);
  font-size: .82rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partners-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .partner-logo { padding: 14px; }
}

/* ============ ЭТАП 4: исправления по ревью ============ */

/* --- Оригинальный PNG-логотип --- */
.logo__img { height: 58px; width: auto; display: block; }
.site-header.is-scrolled .logo__img { height: 46px; }
.logo__img--footer { height: 118px; width: auto; }
.hero__logo-img {
  display: block;
  height: clamp(210px, 30vw, 320px);
  width: auto;
  filter: drop-shadow(0 16px 36px rgba(34, 16, 20, .4));
}

/* --- Крупные PNG-паттерны на фоновых слоях --- */
.pattern { z-index: 0; opacity: 1; }
.section--pat > .container, .section--pat .section__head { position: relative; z-index: 1; }

/* Hero: РАШН №4 слева, ЧИНА №4 справа — крупные, частично за краями экрана */

/* О фестивале: ЧИНА №1 справа сверху */

/* Программа: РАШН №2 слева снизу */

/* Участникам (тёмный фон): РАШН №4 справа снизу + подсветка для видимости */
.section--dark .pattern img { filter: drop-shadow(0 0 34px rgba(255, 186, 120, .30)); }

/* Образовательная программа: ЧИНА №3 справа снизу */

/* Новости: РАШН №3 справа сверху */

/* Организаторы и партнёры (тёмный фон): ЧИНА №4 слева снизу */

@media (max-width: 560px) {
  .hero__logo-img { height: 170px; }
  .logo__img { height: 44px; }
}

/* --- Заголовки карточек: тёмный бордо на белом --- */
.card { color: var(--c-ink); }
.card__title { color: #701719; }

/* --- Блок «Подача заявок» после удаления «Организационных вопросов» --- */
.participants__apply { max-width: 720px; }
.participants__apply .contact-card { height: 100%; }

/* --- Галерея: горизонтальный слайдер --- */
.gslider { position: relative; }
.gslider__viewport { overflow: hidden; border-radius: var(--radius-l); }
.gslider__track { display: flex; transition: transform .55s var(--ease-out); }
.gslider__slide { flex: 0 0 100%; min-width: 0; }
.gslider__slide img { width: 100%; height: clamp(280px, 44vw, 520px); object-fit: cover; display: block; }
.gslider__slide--empty {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 36vw, 380px);
  border: 1.5px dashed rgba(255, 247, 240, .35);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 247, 240, .78);
  text-align: center;
  padding: 32px 24px;
  font-size: .95rem;
  line-height: 1.6;
}
.gslider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad-brand-2);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-m);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gslider__btn:hover { transform: translateY(-50%) scale(1.07); box-shadow: var(--shadow-l); }
.gslider__btn--prev { left: 16px; }
.gslider__btn--next { right: 16px; }
.gslider__dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.gslider__dots button {
  width: 9px; height: 9px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 247, 240, .35);
  transition: background .3s, transform .3s var(--ease-out);
}
.gslider__dots button.is-active { background: var(--c-amber); transform: scale(1.3); }
@media (max-width: 560px) {
  .gslider__btn { width: 44px; height: 44px; }
  .gslider__btn--prev { left: 10px; }
  .gslider__btn--next { right: 10px; }
}


/* ============ ЭТАП 2: ВНУТРЕННИЕ СТРАНИЦЫ ============ */

.page-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% -20%, rgba(245,166,35,.25), transparent 60%),
    var(--grad-brand);
  color: #fff;
  padding: 150px 0 64px;
  overflow: hidden;
}
.page-hero .h1 { margin-top: 14px; max-width: 900px; }
.page-hero__sub {
  margin-top: 16px;
  max-width: 640px;
  color: rgba(255,247,240,.85);
  font-size: 1.02rem;
  line-height: 1.6;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--grad-brand-2);
}

/* Активный пункт меню */
.nav__link.is-active {
  color: #fff;
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 -2px 0 var(--c-amber);
}

/* --- Accordion --- */
.acc { display: grid; gap: 14px; max-width: 900px; }
.acc__item {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition: box-shadow .3s var(--ease-out), border-color .3s;
}
.acc__item.is-open { border-color: transparent; box-shadow: var(--shadow-m); }
.acc__head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  cursor: pointer;
}
.acc__num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(200,16,46,.1), rgba(242,130,13,.14));
  color: var(--c-red);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
}
.acc__title { flex: 1; font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.3; color: var(--c-ink); }
.acc__caret {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  color: var(--c-cinnabar);
  transition: transform .35s var(--ease-out), background .3s, color .3s;
}
.acc__item.is-open .acc__caret { transform: rotate(180deg); background: var(--grad-brand-2); color: #fff; border-color: transparent; }
.acc__body { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease-out); }
.acc__content { padding: 2px 24px 26px 80px; color: var(--c-ink-soft); font-size: .93rem; line-height: 1.75; }
.acc__content p { margin-bottom: 12px; }
.acc__content ul { padding-left: 20px; list-style: disc; margin-bottom: 12px; }
.acc__content li { margin-bottom: 6px; }
.acc__content strong { color: var(--c-ink); }
@media (max-width: 560px) { .acc__content { padding-left: 24px; } }

/* --- Форма анкеты --- */
.apply-block {
  margin-top: 72px;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  color: var(--c-ink); /* v37: тёмный текст на белой карточке поверх бордового градиента */
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-m);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin-top: 26px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-cinnabar); }
.field label small { display: block; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--c-ink-soft); margin-top: 2px; }
.field input, .field select, .field textarea {
  font: inherit;
  padding: 13px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-s);
  background: var(--c-cream);
  color: var(--c-ink);
  transition: border-color .25s, box-shadow .25s;
  width: 100%;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-red);
  box-shadow: 0 0 0 3px rgba(200,16,46,.12);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C8102E' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.file-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-drop {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 118px;
  padding: 18px;
  border: 1.5px dashed rgba(200,16,46,.4);
  border-radius: var(--radius-m);
  background: rgba(200,16,46,.04);
  text-align: center;
  cursor: pointer;
  transition: border-color .3s, background .3s;
  color: var(--c-ink-soft);
  font-size: .86rem;
}
.file-drop:hover { border-color: var(--c-red); background: rgba(200,16,46,.07); }
.file-drop b { color: var(--c-red); font-size: .92rem; }
.file-drop .file-name { color: var(--c-ink); font-weight: 600; }
.guardian {
  display: none;
  grid-column: 1 / -1;
  gap: 18px 22px;
  padding: 24px;
  border-radius: var(--radius-m);
  background: var(--c-cream-2);
  border: 1px solid var(--c-line);
}
.guardian.is-visible { display: grid; grid-template-columns: 1fr 1fr; }
.guardian__title { grid-column: 1 / -1; font-family: var(--font-display); font-weight: 600; color: var(--c-dark-red); }
@media (max-width: 700px) {
  .form-grid, .guardian.is-visible { grid-template-columns: 1fr; }
}

/* Согласия */
.consents { margin-top: 26px; display: grid; gap: 12px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: .88rem; line-height: 1.55; color: var(--c-ink-soft); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--c-red); flex-shrink: 0; cursor: pointer; }
.check a { color: var(--c-red); font-weight: 600; text-decoration: underline; }
.check a:hover { color: var(--c-cinnabar); }

/* Оплата */
.pay-block {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 26px;
  border-radius: var(--radius-l);
  background: var(--grad-soft);
  border: 1px solid var(--c-line);
  align-items: center;
}
.qr-slot {
  aspect-ratio: 1;
  border: 1.5px dashed rgba(90,14,18,.3);
  border-radius: var(--radius-m);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--c-ink-soft);
  font-size: .78rem;
  padding: 14px;
  background: #fff;
}
.pay-lines { display: grid; gap: 8px; font-size: .88rem; color: var(--c-ink-soft); }
.pay-lines b { color: var(--c-ink); }
.pay-sum { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--c-red); }
@media (max-width: 700px) { .pay-block { grid-template-columns: 1fr; } .qr-slot { max-width: 220px; margin-inline: auto; } }

/* Toast-уведомление */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  z-index: 300;
  background: var(--c-ink);
  color: var(--c-cream);
  padding: 16px 26px;
  border-radius: 999px;
  font-size: .9rem;
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
  max-width: min(90vw, 560px);
  text-align: center;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* --- Жюри --- */
.jury-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.jury-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-l);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.jury-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); }
.jury-card__photo {
  aspect-ratio: 3 / 4;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  color: var(--c-cinnabar);
  border-bottom: 1px solid var(--c-line);
}
.jury-card__body { padding: 16px 16px 20px; display: grid; gap: 6px; }
.jury-card__name { font-family: var(--font-display); font-weight: 600; font-size: .88rem; line-height: 1.3; color: #701719; }
.jury-card__role { font-size: .78rem; color: var(--c-ink-soft); line-height: 1.5; }
@media (max-width: 1100px) { .jury-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .jury-row { grid-template-columns: repeat(2, 1fr); } }

/* --- Афиша --- */
.poster-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.poster-card { display: flex; flex-direction: column; gap: 14px; }
.poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--c-cream-2), #fff);
  border: 1px dashed rgba(90,14,18,.28);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--c-ink-soft);
  font-size: .76rem;
  padding: 18px;
  line-height: 1.55;
}
@media (max-width: 1100px) {
  .poster-row { grid-template-columns: repeat(3, 1fr); }
  .poster-row .poster-card:nth-child(n+4) { grid-column: span 1; }
}
@media (max-width: 700px) {
  .poster-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; gap: 14px; }
  .poster-card { flex: 0 0 72%; scroll-snap-align: center; }
}

/* --- Галерея (года + лайтбокс) --- */
.years-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.years-tabs button {
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff;
  font-family: var(--font-display);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--c-ink-soft);
  transition: all .3s var(--ease-out);
}
.years-tabs button.is-active { background: var(--grad-brand-2); color: #fff; border-color: transparent; }
.gallery-empty {
  border: 1.5px dashed rgba(90,14,18,.25);
  border-radius: var(--radius-l);
  padding: 60px 30px;
  text-align: center;
  color: var(--c-ink-soft);
  background: #fff;
  line-height: 1.7;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(20, 8, 10, .92);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 88vw; max-height: 84vh; border-radius: var(--radius-m); box-shadow: var(--shadow-l); }
.lightbox__btn {
  position: absolute;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,247,240,.12);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .3s;
}
.lightbox__btn:hover { background: rgba(255,247,240,.25); }
.lightbox__close { top: 22px; right: 22px; }
.lightbox__prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 22px; top: 50%; transform: translateY(-50%); }

/* --- Партнёры (4 категории) --- */
.pcats { display: grid; gap: 44px; }
.pcat__title {
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-cinnabar);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pcat__title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.pcat__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .pcat__grid { grid-template-columns: repeat(2, 1fr); } }

/* --- Контакты --- */
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
.contact-big {
  border-radius: var(--radius-l);
  padding: 30px;
  background: #fff;
  border: 1px solid var(--c-line);
  display: grid;
  gap: 8px;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.contact-big:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.contact-big i { font-style: normal; font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-cinnabar); }
.contact-big a { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.35rem); color: var(--c-dark-red); }
.contact-big a:hover { color: var(--c-red); }
@media (max-width: 700px) { .contact-cards { grid-template-columns: 1fr; } }

.socials { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.socials a {
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-brand-2);
  color: #fff;
  box-shadow: var(--shadow-s);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.socials a:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.socials svg { width: 26px; height: 26px; }

/* Пустые состояния */
.empty-note {
  grid-column: 1 / -1;
  border: 1.5px dashed rgba(90,14,18,.25);
  border-radius: var(--radius-m);
  padding: 34px 22px;
  text-align: center;
  color: var(--c-ink-soft);
  font-size: .88rem;
  line-height: 1.7;
  background: #fff;
}
.section--dark .empty-note { border-color: rgba(255,247,240,.3); color: rgba(255,247,240,.6); background: transparent; }

/* ============ ЭТАП 5: новая композиция главной ============ */

/* --- Логотип PNG --- */
.logo__img { height: 58px; width: auto; display: block; }
.site-header.is-scrolled .logo__img { height: 48px; }
.logo__img--footer { height: 130px; }
.hero__logo-img {
  display: block;
  height: clamp(200px, 26vw, 290px);
  width: auto;
  filter: drop-shadow(0 16px 36px rgba(34, 16, 20, .4));
}

/* --- База паттернов: фоновый слой, без повторов, pointer-events none --- */
.pattern { position: absolute; pointer-events: none; user-select: none; z-index: 0; opacity: 1; }
.pattern img { width: 100%; height: auto; display: block; }
.section--pat { overflow: hidden; }
.section--pat > .container { position: relative; z-index: 1; }

/* HERO: РАШН №4 слева, ЧИНА №4 справа — крупно, за краями экрана */

/* О фестивале: ЧИНА №1 справа сверху */

/* Программа: РАШН №2 слева */

/* Участникам (тёмный фон): ЧИНА №4 справа снизу + мягкая подсветка под паттерн */

/* Образовательная программа: ЧИНА №3 справа снизу */

/* Новости: РАШН №3 справа сверху */

/* Партнёры (тёмный фон): РАШН №4 слева снизу */

/* Подсветка-ореол за паттернами на тёмных секциях (само изображение не изменяется) */

/* Заголовки карточек — тёмный бордо на белом */
.card { color: var(--c-ink); }
.card__title { color: #701719; }

/* Блок «Подача заявок» — на всю ширину после удаления организационного */
.participants__apply { max-width: 720px; }

/* --- Галерея: горизонтальный слайдер --- */
.gslider { position: relative; }
.gslider__viewport { overflow: hidden; border-radius: var(--radius-l); }
.gslider__track { display: flex; transition: transform .5s var(--ease-out); }
.gslider__slide { flex: 0 0 100%; min-width: 0; }
.gslider__slide img { width: 100%; height: clamp(280px, 44vw, 520px); object-fit: cover; display: block; }
.gslider__slide--empty {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 36vw, 380px);
  border: 1.5px dashed rgba(255, 247, 240, .35);
  border-radius: var(--radius-l);
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 247, 240, .78);
  text-align: center;
  padding: 32px 24px;
  font-size: .95rem;
  line-height: 1.6;
}
.gslider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--grad-brand-2);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-m);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gslider__btn:hover { transform: translateY(-50%) scale(1.07); box-shadow: var(--shadow-l); }
.gslider__btn--prev { left: 16px; }
.gslider__btn--next { right: 16px; }
.gslider__dots { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.gslider__dots button {
  width: 9px; height: 9px; padding: 0;
  border-radius: 50%;
  background: rgba(255, 247, 240, .35);
  transition: background .3s, transform .3s var(--ease-out);
}
.gslider__dots button.is-active { background: var(--c-amber); transform: scale(1.3); }
.gslider__note { margin-top: 18px; font-size: .82rem; color: rgba(255, 247, 240, .7); }

@media (max-width: 560px) {
  .hero__logo-img { height: 180px; }
  .logo__img { height: 46px; }
  .logo__img--footer { height: 96px; }
  .pattern--hero-chn { right: -16%; width: 70vw; bottom: -4%; }
  .pattern--edu-chn { width: 60vw; }
  .gslider__btn { width: 44px; height: 44px; }
  .gslider__btn--prev { left: 10px; }
  .gslider__btn--next { right: 10px; }
}

/* ============ v5: новая композиция главной ============ */

/* HERO — две колонки */
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.hero__left { display: grid; gap: 22px; justify-items: start; }
.hero__right { display: grid; gap: 26px; justify-items: start; }
.hero__logo-img {
  display: block;
  height: clamp(220px, 26vw, 320px);
  width: auto;
  filter: drop-shadow(0 16px 36px rgba(34, 16, 20, .4));
}
.hero__right .hero__cta--apps .btn { min-width: 250px; }

/* HERO-паттерны: дракон СПРАВА СВЕРХУ, птица СПРАВА СНИЗУ. opacity: 1 — ватермарк внутри файлов */
.pattern { opacity: 1; }
.pattern img { opacity: 1; }
.pattern--hero-chn { top: -5%; right: -5%; width: clamp(340px, 44vw, 660px); }
.pattern--hero-rus { bottom: -7%; right: 3%; width: clamp(300px, 36vw, 560px); }

/* О фестивале: фонарики крупно справа, заходят под карточку «Кульминация» */
.pattern--about-chn { right: -70px; top: 40px; width: clamp(380px, 40vw, 620px); }

/* Программа: матрёшки крупно слева, по центру высоты, позади карточек */
.pattern--program-rus { left: -70px; top: 30%; width: clamp(360px, 38vw, 580px); }

/* Образовательная программа: один крупный цветочный паттерн, уходит к новостям и под карточку «03» */
.pattern--edu-chn { right: -90px; bottom: -150px; width: clamp(420px, 44vw, 680px); z-index: 1; }
.section--pat .container { position: relative; z-index: 1; }
#education .container, #news .container { position: relative; z-index: 1; }

/* Новости: РАШН №3; тёмные секции — без изменений */
.pattern--news-rus { right: -46px; top: -20px; width: clamp(220px, 25vw, 390px); }
.pattern--participants-chn { right: -44px; bottom: -30px; width: clamp(240px, 27vw, 430px); }
.pattern--partners-rus { left: -44px; bottom: -30px; width: clamp(240px, 27vw, 430px); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__right .hero__cta--apps .btn { min-width: 0; }
  .pattern--hero-chn { width: 58vw; right: -10%; }
  .pattern--hero-rus { width: 48vw; right: 0; }
  .pattern--about-chn { width: 52vw; }
  .pattern--program-rus { width: 46vw; }
  .pattern--edu-chn { width: 58vw; bottom: -90px; }
}
@media (max-width: 560px) {
  .hero__logo-img { height: 190px; }
  .pattern--hero-chn { width: 78vw; top: -3%; right: -14%; }
  .pattern--hero-rus { width: 66vw; bottom: -4%; right: -6%; }
  .pattern--about-chn { width: 68vw; }
  .pattern--edu-chn { width: 74vw; right: -18%; }
  .pattern--news-rus { width: 60vw; }
}


/* ============ ЭТАП 3: преподаватели, афиша, галерея по годам, модалки ============ */

/* --- Преподаватели --- */
.teachers { display: grid; gap: 44px; }
.teachers-group__title {
  font-family: var(--font-display);
  font-size: .84rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--c-cinnabar);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 14px;
}
.teachers-group__title::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.teachers-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.teacher-card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-m);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.teacher-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }
.teacher-card__photo {
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, var(--c-cream-2), #fff);
  border-bottom: 1px solid var(--c-line);
  display: grid; place-items: center;
  color: var(--c-cinnabar);
}
.teacher-card__photo::after {
  content: "Фото";
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(90,14,18,.35);
}
.teacher-card__body { padding: 14px 16px 18px; display: grid; gap: 6px; }
.teacher-card__name { font-family: var(--font-display); font-weight: 600; font-size: .82rem; line-height: 1.35; color: #701719; }
.teacher-card__regalia { font-size: .74rem; line-height: 1.55; color: var(--c-ink-soft); }
@media (max-width: 1200px) { .teachers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .teachers-grid { grid-template-columns: 1fr; } }

/* --- Афиши (главная + страница «Афиша») --- */
.afisha-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.afisha-card { display: flex; flex-direction: column; gap: 14px; }
.afisha-poster {
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, #fff, var(--c-cream-2));
  border: 1px dashed rgba(90,14,18,.28);
  display: grid; place-items: center;
  text-align: center; color: var(--c-ink-soft);
  font-size: .8rem; line-height: 1.55; padding: 18px;
}
.afisha-poster img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.afisha-card__info { display: grid; gap: 4px; }
.afisha-card__title { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: #701719; }
.afisha-card__meta { font-size: .8rem; color: var(--c-ink-soft); }
.afisha-card .btn { width: 100%; }
@media (max-width: 900px) { .afisha-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .afisha-grid { grid-template-columns: 1fr; } }

/* --- Галерея по годам --- */
.gallery-grid-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid-years .gitem {
  aspect-ratio: 4 / 3; border-radius: var(--radius-m); overflow: hidden;
  background: linear-gradient(160deg, #fff, var(--c-cream-2));
  border: 1px dashed rgba(90,14,18,.25);
  display: grid; place-items: center;
  color: rgba(90,14,18,.4); font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
}
.gallery-grid-years .gitem img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
@media (max-width: 900px) { .gallery-grid-years { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid-years { grid-template-columns: repeat(2, 1fr); } }

/* --- Пример программы --- */
.prog-example {
  display: block;
  margin-top: 8px;
  font-size: .76rem;
  color: var(--c-cinnabar);
  font-style: italic;
  line-height: 1.5;
}

/* --- Модальные окна --- */
.modal {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(20, 8, 10, .6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal.is-open { display: flex; }
.modal__box {
  background: #fff;
  border-radius: var(--radius-l);
  padding: 36px 34px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-l);
  display: grid; gap: 14px;
  text-align: center;
  animation: modalIn .35s var(--ease-out);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--c-dark-red); }
.modal__text { font-size: .92rem; line-height: 1.65; color: var(--c-ink-soft); }
.modal__btn { justify-self: center; margin-top: 6px; }


/* ============ ЭТАП 4: новый логотип, сетки, соцсети ============ */

/* Логотип: новый горизонтальный знак, без эффектов */
.logo__img { height: 54px; width: auto; }
.site-header.is-scrolled .logo__img { height: 46px; }
.logo__img--footer { height: 104px; }
.hero__logo-img {
  display: block;
  height: clamp(170px, 21vw, 270px);
  width: auto;
  filter: none;   /* без теней и эффектов */
}

/* Афиши: пять карточек строго в одну строку на десктопе */
.afisha-grid { grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .afisha-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .afisha-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .afisha-grid { grid-template-columns: 1fr; } }

/* Жюри: расширенный контейнер */
.jury-section { max-width: 1380px; margin-inline: auto; padding-inline: var(--gutter); }
.jury-row { gap: 22px; }

/* Карточка «Кульминация»: гарантированный зазор и отступы */
.about__aside { padding: 38px; }
.about__aside-item strong { display: block; margin-bottom: 8px; line-height: 1.1; }
.about__aside p + .about__aside-list, .about__aside-list { margin-top: 20px; }
@media (max-width: 560px) {
  .about__aside { padding: 26px 22px; }
  .about__aside-item strong { font-size: 1.25rem; margin-bottom: 6px; }
}

/* Кнопка «Подробнее» в блоке мастер-классов на главной */
.edu-more { margin-top: 26px; }

/* Модалка: ссылки на законодательство */
.modal__text a { color: var(--c-red); font-weight: 600; text-decoration: underline; }
.modal__text .legal { display: block; margin-top: 12px; font-size: .8rem; color: var(--c-ink-soft); line-height: 1.55; }

/* Соцсети: страница «Контакты» */
.socials-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--c-line);
  font-weight: 700;
  font-size: .84rem;
  color: var(--c-dark-red);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), border-color .3s;
}
.social-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--c-cinnabar); }
.social-link svg { width: 20px; height: 20px; }
.social-link .txt-mark { font-family: var(--font-display); font-size: .76rem; letter-spacing: .04em; }
.legal-note { margin-top: 16px; font-size: .74rem; line-height: 1.55; color: var(--c-ink-soft); max-width: 720px; }

/* Соцсети: Footer (компактно) */
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 247, 240, .08);
  border: 1px solid rgba(255, 247, 240, .16);
  color: rgba(255, 247, 240, .85);
  font-size: .62rem; font-weight: 800;
  letter-spacing: .02em;
  transition: background .3s, transform .3s var(--ease-out);
}
.footer-socials a:hover { background: rgba(255, 247, 240, .16); transform: translateY(-2px); }
.footer-socials svg { width: 17px; height: 17px; }
.footer-legal { margin-top: 12px; font-size: .62rem; line-height: 1.5; color: rgba(255, 247, 240, .45); max-width: 460px; }


/* ============ ЭТАП 5: горизонтальный логотип, коллаж, участникам, партнёры ============ */

/* Логотип: горизонтальный знак */
.logo__img { height: 40px; width: auto; }
.site-header.is-scrolled .logo__img { height: 34px; }
.logo__img--footer { height: 66px; }
.hero__logo-img { height: clamp(110px, 14vw, 190px); width: auto; filter: none; }
@media (max-width: 560px) { .hero__logo-img { height: 86px; } .logo__img { height: 32px; } }

/* «Диалог культур»: коллаж из пяти прямоугольных блоков */
.dialog-collage { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; gap: 12px; }
.dialog-collage .dc {
  border-radius: 12px;
  background: linear-gradient(160deg, #fff, var(--c-cream-2));
  border: 1px dashed rgba(90,14,18,.22);
  display: grid; place-items: center;
  color: rgba(90,14,18,.4); font-size: .62rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; text-align: center; padding: 8px;
}
.dialog-collage .dc.w2 { grid-column: span 2; }
.dialog-collage .dc.h2 { grid-row: span 2; }
@media (max-width: 560px) { .dialog-collage { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 110px; } }

/* «Участникам»: иконки ноты/скрипичный ключ/микрофон в цвете фирменного градиента */
.p-icon svg { width: 26px; height: 26px; }
.card__icon { background: var(--grad-brand-2); color: #fff; }
.card__icon svg { width: 26px; height: 26px; }

/* Карточка преподавателя с фото */
.teacher-card__photo { position: relative; overflow: hidden; }
.teacher-card__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.teacher-card__photo:empty::after { content: "Фото"; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(90,14,18,.35); }

/* Партнёры: светлые контейнеры (переиспользуем .partner-logo) */
.partner-logo { aspect-ratio: 16 / 10; }

/* Соцсети: фирменный градиент */
.social-link { background: var(--grad-brand-2); color: #fff; border: 0; box-shadow: var(--shadow-s); }
.social-link:hover { box-shadow: var(--shadow-m); }
.footer-socials a { background: var(--grad-brand-2); border: 0; color: #fff; }
.footer-socials a:hover { transform: translateY(-2px); background: var(--grad-brand-2); filter: brightness(1.06); }

/* Контакты: два телефона */
.contact-cards { grid-template-columns: 1fr 1fr; }

/* Анкета МК: программа */
.prog-example { display: block; margin-top: 8px; font-size: .76rem; color: var(--c-cinnabar); font-style: italic; }


/* ============ ИСПРАВЛЕНИЕ: партнёры, фото о фестивале ============ */

/* Единая сетка партнёров (главная + страница «Партнёры») */
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.partner-logo {
  background: #fff;
  border-radius: var(--radius-m);
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  padding: 20px;
  box-shadow: var(--shadow-s);
  overflow: hidden;
}
.partner-logo img {
  max-width: 92%;
  max-height: 82%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.pcat__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) {
  .partners-grid, .pcat__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .partners-grid, .pcat__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .partner-logo { padding: 14px; }
}

/* Фотографии в блоке «О фестивале» (плейсхолдеры до предоставления материалов) */
.dialog-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dialog-photos .dp {
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, #fff, var(--c-cream-2));
  border: 1px dashed rgba(90,14,18,.25);
  display: grid; place-items: center;
  color: rgba(90,14,18,.45);
  font-size: .68rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  min-height: 150px;
}
.dialog-photos .dp--big { grid-column: 1 / -1; min-height: 220px; }
@media (max-width: 900px) { .dialog-photos { grid-template-columns: 1fr 1fr; } }


/* ============ ФИНАЛЬНЫЕ КОРРЕКТИРОВКИ ============ */

/* Hero-логотип: главный акцент, ~1.7x, пропорции сохранены */
.hero__logo-img {
  height: auto;
  width: 100%;
  max-width: 560px;
  filter: none;
}
@media (max-width: 900px) {
  .hero__logo-img { max-width: 480px; }
}
@media (max-width: 560px) {
  .hero__logo-img { max-width: 100%; }
}

/* «Диалог культур»: единый кегль всех трёх абзацев */
#about .about__text p,
#about .about__text p.lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  margin-bottom: 16px;
}
#about .about__text p:last-child { margin-bottom: 0; }


/* ============ ЭТАП 6: кнопки, композиции, плашка счётчика ============ */

/* Кнопка тёмно-бордовая (цвет фона Footer) */
.btn--wine { background: var(--c-ink); }
.btn--wine:hover { box-shadow: 0 12px 28px rgba(34, 16, 20, .45); }
.btn--wine::after { display: none; }

/* Правая колонка Hero — сдвиг вправо */
.hero__right--shift { padding-left: clamp(20px, 4.5vw, 72px); }
@media (max-width: 900px) { .hero__right--shift { padding-left: 0; } }

/* Hero-логотип: -7% от текущего (560 -> 520) */
.hero__logo-img { max-width: 520px; }

/* «Диалог культур»: наклонённая композиция из четырёх фото */
.dialog-collage-real { position: relative; min-height: 420px; }
.dialog-collage-real .dcr {
  position: absolute;
  width: 56%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(34, 16, 20, .18);
  object-fit: cover;
  aspect-ratio: 3 / 2;
}
.dcr--tl { top: 0; left: 0; transform: rotate(-4deg); z-index: 1; }
.dcr--tr { top: 4%; right: 0; transform: rotate(3.5deg); z-index: 2; }
.dcr--bl { bottom: 0; left: 6%; transform: rotate(-3deg); z-index: 2; }
.dcr--br { bottom: 2%; right: 4%; transform: rotate(4deg); z-index: 1; }
@media (max-width: 900px) {
  .dialog-collage-real { min-height: 0; height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .dialog-collage-real .dcr { position: static; width: 100%; transform: none; }
}

/* «Мастер-классы»: фотоплашка (габариты прежнего aside) */
.mk-photos {
  background: #fff;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  align-content: stretch;
}
.mk-photos .mkp { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; display: block; }
.mk-photos .mkp--big { grid-row: 1 / -1; }


/* ============ ЭТАП 6: счётчик, split-hero, МК ============ */

/* Двухколоночная шапка «Конкурс» */
.ph-split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 900px) { .ph-split { grid-template-columns: 1fr; } }

/* Плашка обратного отсчёта */
.countdown {
  background: var(--c-dark-red);
  border: 1px solid rgba(255, 247, 240, .18);
  border-radius: var(--radius-l);
  padding: 26px 30px;
  min-width: 340px;
  box-shadow: var(--shadow-l);
}
.countdown__title { font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,247,240,.85); margin-bottom: 16px; }
.countdown__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.countdown__cell { display: grid; gap: 4px; text-align: center; }
.countdown__cell b { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown__cell span { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-amber); }
.countdown__done { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: var(--c-amber); padding: 10px 0 4px; text-align: center; }
@media (max-width: 560px) { .countdown { min-width: 0; width: 100%; padding: 22px 18px; } }

/* «Мастер-классы»: единая типографика описания */
#about-mk .about__text p,
#about-mk .about__text p.lead { font-size: 1rem; line-height: 1.65; color: var(--c-ink-soft); margin-bottom: 16px; }


/* ============ Видеослайдер «О фестивале» (VK Видео) ============ */
.gslider__slide--video {
  position: relative;
  overflow: hidden;
  /* Явная высота карточки: как у фотослайдера до добавления видео.
     Карточка не зависит от загрузки обложки или плеера. */
  height: clamp(280px, 44vw, 520px);
  border-radius: var(--radius-l);
  background: var(--c-dark-red);
}
.gslider__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gslider__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--grad-brand-2);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px rgba(34,16,20,.4);
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.gslider__play:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 18px 44px rgba(34,16,20,.5); }
.gslider__play svg { margin-left: 4px; }
.gslider__slide--video iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  background: #000;
}
.gslider__watch {
  position: absolute;
  right: 14px; bottom: 12px;
  z-index: 3;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(34,16,20,.55);
  backdrop-filter: blur(6px);
  color: rgba(255,247,240,.92);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .3s;
}
.gslider__watch:hover { background: rgba(34,16,20,.75); }
@media (max-width: 560px) {
  .gslider__play { width: 58px; height: 58px; }
}


/* ============ ЭТАП 12: кнопки Hero ============ */

/* 1. «Подать заявку на конкурс» — насыщенный градиент, максимальный акцент */
.btn--g1 {
  background: linear-gradient(90deg, #C40035 0%, #ED411B 50%, #FFA914 100%);
  color: #FFFFFF;
}
.btn--g1::after { display: none; }
.btn--g1:hover { box-shadow: 0 12px 28px rgba(196, 0, 53, .4); }

/* 2. «Подать заявку на обучение» — мягкий градиент, наименее акцентная */
.btn--g2 {
  background: linear-gradient(90deg, #CE1746 0%, #FF9C48 100%);
  color: #FFFFFF;
}
.btn--g2::after { display: none; }
.btn--g2:hover { box-shadow: 0 12px 28px rgba(206, 23, 70, .35); }

/* 3. «Купить билеты на концерт» — однотонная золотисто-жёлтая */
.btn--g3 {
  background: #FFB51B;
  color: #801529;
}
.btn--g3::after { display: none; }
.btn--g3:hover { box-shadow: 0 12px 28px rgba(255, 181, 27, .45); }

/* Устаревший вариант кнопки не используется на главной; класс сохранён для совместимости */


/* ============ ЭТАП 12: партнёры (полные фреймы 16:10) ============ */
.partner-logo {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 0;
  background: transparent;
  border: 1px solid rgba(255, 247, 240, .16);
  border-radius: var(--radius-m);
  box-shadow: none;
  overflow: hidden;
}
.partner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
.partners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .partners-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .partners-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }


/* ============ ЭТАП 12: контакты (уникальный блок) и фото «О фестивале» ============ */
.contacts-block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 860px; }
@media (max-width: 700px) { .contacts-block { grid-template-columns: 1fr; } }

/* Фотоблоки «О фестивале» */
.fest-photo { display: grid; gap: 14px; }
.fest-photo:not(.fest-photo--duo) { transform: translateX(-46px); } /* v37: фото «Диалог культур» ближе к тексту */
.fest-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-m); display: block; box-shadow: var(--shadow-s); }
.fest-photo--duo { grid-template-columns: 1fr 1fr; }
.fest-photo--duo img { aspect-ratio: 3 / 4; }
.fest-photo:not(.fest-photo--duo) img { aspect-ratio: 4 / 3; }
.fest-photo--empty {
  min-height: 260px;
  border: 1.5px dashed rgba(90,14,18,.3);
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, rgba(255,255,255,.6), rgba(253,237,227,.6));
}
@media (max-width: 900px) {
  .fest-photo--duo { grid-template-columns: 1fr 1fr; }
}


/* ============ v13: градиентные кнопки — полное покрытие заливкой ============ */
.btn,
.gslider__play,
.social-link,
.lang-switch button.is-active,
.p-badge,
.acc__item.is-open .acc__caret {
  background-origin: border-box;
  -webkit-background-origin: border-box;
  background-clip: border-box;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
/* Заполнитель под антиалиасинговыми краями — цвет конечной точки градиента */
.btn { background-color: #F5A623; }
.btn--g1 { background-color: #FFA914; }
.btn--g2 { background-color: #FF9C48; }
.btn--g3 { background-color: #FFB51B; }
/* GPU-слой сглаживает растеризацию градиента в Safari */
.btn, .gslider__play, .social-link { transform: translateZ(0); }
.btn:hover { transform: translateZ(0) translateY(-2px); }
/* Shine-псевдоэлемент не должен влиять на заливку: строго поверх, без фоновых слоёв */
.btn::after { pointer-events: none; }

/* ============ v13: плашка «Мастер-классы» — фирменный градиент ============ */
.mk-photos {
  background: var(--grad-brand);
}


/* ============ v13: оперативное появление при скролле ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .35s ease, transform .35s ease;
  transition-delay: var(--reveal-delay, 0s);
}
/* карточки положения — без накопления задержек, только лёгкий порядок */
.acc .reveal { transition-delay: 0s !important; }


/* ============ v14: календарь «Расписание» ============ */
.sched-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.sched-card {
  display: grid;
  grid-template-columns: auto 1px 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px 26px;
  border-radius: var(--radius-l);
  min-height: 148px;
  transition: transform .22s ease, box-shadow .22s ease;
}
.sched-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(90, 14, 18, .22); }
.sched-card--berry { background: #B43B59; }
.sched-card--wine  { background: #961B2D; }
.sched-card--deep  { background: #59152F; }
.sched-card--gala  { background: linear-gradient(90deg, #C40035 0%, #ED411B 50%, #FFA914 100%); }
.sched-card__date { display: grid; gap: 2px; text-align: center; min-width: 86px; }
.sched-card__date b { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 700; color: #fff; line-height: 1.05; white-space: nowrap; }
.sched-card__date span { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; opacity: .85; }
.sched-card__divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .35); }
.sched-card__info { display: grid; gap: 8px; min-width: 0; }
.sched-card__title { font-family: var(--font-display); font-size: .95rem; font-weight: 600; line-height: 1.3; color: #fff; }
.sched-card__place { display: flex; align-items: flex-start; gap: 8px; font-size: .84rem; line-height: 1.5; color: #fff; opacity: .92; }
.sched-card__place svg { flex-shrink: 0; margin-top: 2px; }
.stime {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
}
@media (max-width: 1000px) {
  .sched-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sched-grid { grid-template-columns: 1fr; }
  .sched-card { padding: 22px; gap: 16px; }
}


/* ============ v14: организаторы (полная ширина, выравнивание) ============ */
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.org-grid .partner-logo { border: 0; aspect-ratio: 16 / 10; }
.org-grid .partner-logo img { transition: transform .3s var(--ease-out); }
/* индивидуальные масштабы с учётом реальных видимых границ логотипов */
.org-scale--assn { transform: scale(1.78); }   /* Ассоциация — был визуально наименьшим */
.org-scale--acad { transform: scale(1.18); }
.org-scale--uis  { transform: scale(1.12); }
.org-grid .partner-logo img:hover { transform: scale(1.05); }
.org-grid .partner-logo img[class*="org-scale--"]:hover { }
.org-scale--assn:hover { transform: scale(1.78) ; }
@media (max-width: 700px) {
  .org-grid { grid-template-columns: 1fr; gap: 30px; }
  .org-scale--assn { transform: scale(1.5); }
}


/* ============ v15 ============ */

/* 1.1 Кнопки Hero — одинаковые размеры */
.hero__cta--col { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 420px; }
.hero__cta--col .btn { width: 100%; min-width: 0; justify-content: center; text-align: center; white-space: nowrap; }

/* 1.3 Расписание: 3x3, карточки одной высоты в ряду */
.sched-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.sched-card { height: 100%; }
.sched-card__date b { white-space: normal; line-height: 1.1; }
@media (max-width: 1000px) { .sched-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sched-grid { grid-template-columns: 1fr; } }


/* ============ v15: медиаблок «СМИ о нас» (1+3) ============ */
.vmedia { display: grid; gap: 18px; }
.vmedia__item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: #000;
}
.vmedia__item--main { width: 100%; }
.vmedia__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vmedia__item iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vmedia__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vmedia__thumbs .vmedia__item { cursor: pointer; }
/* кнопка воспроизведения — строго по центру, hover без смещения центра */
.vmedia .gslider__play {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 84px; height: 84px;
}
.vmedia__thumbs .gslider__play { width: 54px; height: 54px; }
.vmedia .gslider__play svg { margin-left: 4px; }
.vmedia .gslider__play:hover { transform: translate(-50%, -50%) scale(1.08); }
.vmedia .gslider__watch { font-size: .6rem; padding: 6px 12px; }
@media (max-width: 700px) {
  .vmedia__thumbs { grid-template-columns: 1fr; }
  .vmedia .gslider__play { width: 64px; height: 64px; }
}


@media (max-width: 900px) {
  #about-mk .mk-photos { order: 2; margin-top: 8px; }
  #about-mk { grid-template-columns: 1fr; }
}


/* v16: первая карточка — компактный вертикальный блок даты */
.sched-card__date--range { gap: 4px; min-width: 0; }
.sched-card__date--range b { font-size: clamp(1.2rem, 1.8vw, 1.55rem); }
.sched-card__date--range i { font-style: normal; color: #fff; opacity: .8; line-height: 1; font-weight: 700; }
.sched-card__info { min-width: 0; }
.sched-card__title { overflow-wrap: break-word; }
@media (max-width: 560px) {
  .sched-card__date--range b { font-size: 1.15rem; }
}

/* v16: волны — слои шире экрана с запасом, обрезка только краями Hero */


/* ============ v17 ============ */
/* 3. Иконки соцсетей — исходные PNG, contain, по центру */
.social-link .social-ico { width: 20px; height: 20px; object-fit: contain; display: block; flex-shrink: 0; }

/* ============ v19: декоративные волны Hero (статичные, бесконечные в обе стороны) ============ */
.hero__waves { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
/* слой вдвое шире экрана и отцентрирован: видна только средняя половина,
   линии замыкания контуров (x=0 и x=2880) всегда за пределами экрана */

/* ============ v20: декоративные волны Hero (продолжение оригинала v17) ============ */
/* Правила идентичны версии 17; изменён только масштаб слоя (400%): единица viewBox
   равна W/1440 — как в v17, видимое окно [0..1440] и покойный кадр визуально совпадают с v17. */
.hero__waves { position: absolute; inset: 0; pointer-events: none; }
.hero__waves svg { position: absolute; left: 0; width: 400%; height: 100%; }
.hero__wave-1 { top: 0; opacity: .16; animation: wave-drift 26s linear infinite; }
.hero__wave-2 { top: 6%; opacity: .12; animation: wave-drift 34s linear infinite reverse; }
.hero__wave-3 { bottom: -4%; opacity: .18; animation: wave-drift 30s linear infinite; }

/* Hero wave repair: restore v17 geometry and allow full-width coverage. */
.hero__waves svg { max-width: none; width: 200%; left: 0; }
/* v22: restore the original drift durations, with seamless reversal. */
.hero__waves .hero__wave-1 { animation: wave-drift 26s linear infinite alternate; }
.hero__waves .hero__wave-2 { animation: wave-drift 34s linear infinite alternate; }
.hero__waves .hero__wave-3 { animation: wave-drift 30s linear infinite alternate; }
/* Start the second layer at the approved static position, then drift independently. */
@media (prefers-reduced-motion: reduce) {
  .hero__waves svg { animation: none !important; }
}


/* ============ v23: фотослайдеры региональной программы ============ */
.fs-slider { position: relative; }
.fs-viewport { overflow: hidden; border-radius: var(--radius-m); aspect-ratio: 4 / 3; background: var(--c-cream-2); }
.fs-track { display: flex; height: 100%; transition: transform .45s var(--ease-out); }
.fs-slide { flex: 0 0 100%; min-width: 0; height: 100%; }
.fs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fs-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-brand-2); color: #fff;
  display: grid; place-items: center; box-shadow: var(--shadow-m);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.fs-btn:hover { transform: translateY(-50%) scale(1.07); box-shadow: var(--shadow-l); }
.fs-btn--prev { left: 12px; }
.fs-btn--next { right: 12px; }
.fs-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.fs-dots button { width: 8px; height: 8px; padding: 0; border-radius: 50%; background: rgba(90,14,18,.25); transition: background .3s, transform .3s var(--ease-out); }
.fs-dots button.is-active { background: var(--c-red); transform: scale(1.25); }
@media (max-width: 560px) {
  .fs-btn { width: 38px; height: 38px; }
  .fs-btn--prev { left: 8px; } .fs-btn--next { right: 8px; }
}


/* ============ v23: шесть карточек в ряд (жюри и преподаватели — общий компонент) ============ */
.jury-row--six { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.jury-section--six { max-width: none; padding-inline: 0; }
.jury-row--six .jury-card { height: 100%; }
.jury-row--six .jury-card__photo { position: relative; overflow: hidden; }
.jury-row--six .jury-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
/* Людков — только масштаб/позиция фото внутри контейнера; карточка и контейнер прежних размеров */
.jury-photo--zoom img { transform: scale(1.22); transform-origin: center 22%; }
@media (max-width: 1100px) { .jury-row--six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .jury-row--six { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .jury-row--six { grid-template-columns: 1fr; } }


/* ============ v24: афиши — карточка это сама афиша ============ */
.afisha-poster {
  aspect-ratio: 2 / 3;
  padding: 0;
  border: 0;
  background: none;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.afisha-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.afisha-card { gap: 14px; }
.afisha-card .btn { width: 100%; }


/* ============ v27: анкета МК — два этапа ============ */
.mksteps { grid-column: 1 / -1; display: flex; gap: 28px; margin-bottom: 10px; }
.mkstep-ind {
  font-family: var(--font-display); font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-soft);
  opacity: .55; display: inline-flex; gap: 10px; align-items: baseline;
  padding-bottom: 8px; border-bottom: 2px solid transparent; transition: all .3s var(--ease-out);
}
.mkstep-ind b { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: .95rem; }
.mkstep-ind.is-active { opacity: 1; border-color: var(--c-red); }
.mkstep[hidden] { display: none; }
.mkstep-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.mkstep-nav .btn { min-width: 200px; }
#m-spec { background: var(--c-cream-2); color: var(--c-ink); }
.pay-calc {
  margin-top: 8px; padding: 24px; border-radius: var(--radius-l);
  background: var(--grad-soft); border: 1px solid var(--c-line);
  display: grid; gap: 12px;
}
.pay-calc__row { display: flex; justify-content: space-between; gap: 20px; font-size: .9rem; color: var(--c-ink-soft); }
.pay-calc__row b { font-family: var(--font-display); font-weight: 600; color: var(--c-ink); text-align: right; }
.pay-calc__total { border-top: 1px solid var(--c-line); padding-top: 12px; }
.pay-calc__total b { font-size: 1.15rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mk-note { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--radius-s); background: var(--c-cream-2); border-left: 3px solid var(--c-orange); font-size: .88rem; color: var(--c-ink-soft); }
.btn[disabled] { opacity: .6; pointer-events: none; }


/* ============ v28 ============ */
.gala-block { background: linear-gradient(120deg, #350E20 0%, #771329 55%, #C01C36 100%); color: #FFF7F0; }
.gala-block .fest-photo img { box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.gala-block .h4 { color: #FFF7F0 !important; }
.jury-row--seven { grid-template-columns: repeat(7, 1fr); gap: 12px; }
@media (max-width: 1200px) { .jury-row--seven { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px) { .jury-row--seven { grid-template-columns: repeat(2, 1fr); } }
.jury-card__chair { font-family: var(--font-display); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--c-cinnabar); }
.jury-card__regalia { font-size: .72rem; line-height: 1.5; color: var(--c-ink-soft); }

/* v28: анкета МК — во всю ширину контейнера */
#anketa-mk .apply-block { max-width: 100%; }
#anketa-mk .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { #anketa-mk .form-grid { grid-template-columns: 1fr; } }
/* таймер в шапке МК */
.ph-split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
@media (max-width: 900px) { .ph-split { grid-template-columns: 1fr; } }


/* ============ v28: карусель афиш ============ */
.afcarousel { position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 24px 0 8px; }
.afc-track { display: flex; align-items: flex-end; gap: 18px; flex: 1; min-width: 0; overflow: hidden; padding: 0 6px; }
.afc-item { flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; transition: width .5s var(--ease-out); }
.afc-poster { aspect-ratio: 2 / 3; border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-s); }
.afc-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.afc-item--soon .afc-soon {
  aspect-ratio: 2 / 3; border-radius: var(--radius-m);
  background: linear-gradient(160deg, #e9ddd6, #d8c9c1);
  display: grid; place-items: center;
  color: rgba(90, 14, 18, .45);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.afc-btn { width: 100%; justify-content: center; }
.afc-item--soon .afc-btn { opacity: .45; cursor: not-allowed; }
.afc-arrow {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-brand-2); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-m); transition: transform .25s var(--ease-out);
  z-index: 3;
}
.afc-arrow:hover { transform: scale(1.08); }
@media (max-width: 700px) {
  .afcarousel { gap: 8px; }
  .afc-track { gap: 12px; }
  .afc-arrow { width: 38px; height: 38px; }
}

.footer-orgs { display: flex; gap: 16px; margin-top: 18px; align-items: center; }
.footer-orgs img { height: 40px; width: auto; max-width: 150px; object-fit: contain; background: none; padding: 0; border: 0; box-shadow: none; }
.nb { white-space: nowrap; }


/* ============ v30 ============ */
/* Анкета МК: гарантированная двухколоночная сетка, поля на всю ширину колонок */
.mk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; width: 100%; }
.mk-form .field { min-width: 0; }
.mk-form .field--full { grid-column: 1 / -1; }
.mk-form input, .mk-form select, .mk-form textarea { width: 100%; max-width: none; }
.mk-form .mkstep { display: contents; }
.mk-form .mkstep[hidden] { display: none; }
.mk-form .mksteps { grid-column: 1 / -1; }
.mk-form .mkstep-nav { grid-column: 1 / -1; }
.mk-form .pay-calc { grid-column: 1 / -1; }
@media (max-width: 700px) { .mk-form { grid-template-columns: 1fr; } }


/* v30: информационные плашки региональной программы */
.rp-city { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #701719; margin-bottom: 10px; }
.rp-sub { font-family: var(--font-display); font-weight: 600; font-size: .98rem; line-height: 1.35; color: var(--c-dark-red); margin-bottom: 16px; }
.rp-panel {
  position: relative;
  background: rgba(255, 247, 240, .8);
  border-radius: 10px;
  padding: 14px 16px 14px 20px;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--c-ink);
  border-left: 3px solid transparent;
  border-image: linear-gradient(180deg, #B43B59, #F2820D) 1;
  margin-bottom: 12px;
}
.rp-panel:last-child { margin-bottom: 0; }
.rp-col { display: grid; gap: 4px; align-content: center; }


/* v30: ФИО — единый компактный размер, без обрезаний */
.jury-row--seven .jury-card__name { font-size: .74rem; line-height: 1.3; word-break: normal; overflow-wrap: normal; hyphens: none; }
/* специальность — компактная градиентная плашка по содержимому */
.jury-card__spec {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(150,27,45,.88), rgba(226,87,46,.78));
  color: #fff;
  font-family: var(--font-body);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  margin-top: 8px;
}
.jury-card__body { gap: 6px; }
.jury-card__body .jury-card__regalia { margin-top: 4px; }


/* v30: карусель — мягкое исчезновение у краёв, серые неактивные кнопки */
.afcarousel { position: relative; display: flex; align-items: center; gap: 14px; overflow: hidden; padding: 24px 0 8px; }
.afc-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.afc-item--soon .afc-btn--off,
.afc-btn--off {
  background: #B7ACa4 !important;
  color: #6E6259 !important;
  cursor: not-allowed;
  box-shadow: none !important;
}
.afc-btn--off::after { display: none !important; }
@media (max-width: 700px) {
  .afc-viewport {
  }
  .afcarousel { gap: 8px; }
}


/* v31: единый уровень плашек (имена занимают две строки) */
.jury-row--seven .jury-card__name { min-height: 2.62em; }
.jury-card__body { align-content: start; }

/* v31: согласия МК — чекбоксы не растягиваются, аккуратная вёрстка */
.mk-form .check { display: flex; gap: 12px; align-items: flex-start; }
.mk-form .check input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; margin: 2px 0 0; }
.mk-form .check span { flex: 1; min-width: 0; line-height: 1.55; }


/* ============ v32 ============ */
.klin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.klin-row > * { min-width: 0; }
.klin-slider { width: 100%; }

.jury-card__namebox { display: block; min-height: 2.9rem; line-height: 1.3; margin-bottom: 0; }
.jury-card__namebox .jury-card__name { display: block; min-height: 0; line-height: 1.25; }
.jury-card__spec { text-transform: none; margin-top: 0; }

@media (max-width: 900px) {
  .klin-row { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .jury-card__namebox { display: block; min-height: 0; line-height: 1.3; }
}


/* ============ v33: расписание — единый текстовый поток места ============ */
.sched-card { min-width: 0; }
.sched-card__place { align-items: flex-start; }
.sched-card__place-text {
  display: block;
  min-width: 0;
  flex: 1;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: break-word;
}
.sched-card__place-text .nb { white-space: nowrap; }   /* только инициалы+фамилия */
.sched-card__info { min-width: 0; }
.sched-card__title { overflow-wrap: break-word; }


/* v35: конфликтующие переопределения ФИО/плашек v30–v34 устранены выше; зазор ФИО→плашка = grid-gap 6px */
.jury-row--seven .jury-card__name { min-height: 0; }


/* ============ v35: декоративные PNG-иллюстрации «О фестивале» — нижний фоновый слой ============ */
.decor { position: absolute; pointer-events: none; z-index: 0; user-select: none; }
.decor-dialog { position: relative; overflow: hidden; isolation: isolate; }
.decor-dialog > .container { position: relative; z-index: 1; }
.decor--dragon { top: -10px; left: -26px; width: clamp(260px, 38vw, 540px); }
.decor--fire   { bottom: -30px; right: -22px; width: clamp(230px, 28vw, 420px); }
.rp-block { position: relative; isolation: isolate; }
.rp-block .about__layout { position: relative; z-index: 1; }
.section--rp { position: relative; isolation: isolate; }
.section--rp > .container { position: relative; z-index: 1; }
.decor--linden { top: 0; right: 0; width: clamp(324px, 38.88vw, 583.2px); }
.decor--yar    { bottom: -20px; left: 0; width: clamp(307.8px, 35.64vw, 550.8px); }
@media (max-width: 700px) {
  .decor--dragon { width: 62vw; left: -18px; top: -8px; }
  .decor--fire   { width: 48vw; right: -16px; bottom: -20px; }
  .decor--linden { width: 42vw; top: 0; right: 0; }
  .decor--yar    { width: 44vw; bottom: -12px; left: 0; }
}

/* ============ v36: бордовый фон секций подачи заявок — как у гала-концерта ============ */
.section--apply {
  background: linear-gradient(120deg, #350E20 0%, #771329 55%, #C01C36 100%);
  color: #FFF7F0;
}

/* v37: заголовки анкет — тёмные, как на всём сайте */
.apply-block h2 { color: var(--c-ink); }

/* v38 — локальные утверждённые правки */
#anketa { scroll-margin-top: 110px; }
#about { position:relative; isolation:isolate; overflow:hidden; padding-bottom:clamp(135px,15vw,220px); }
#about > .container { position:relative; z-index:1; }
.home-decor { position:absolute; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.home-decor-top { position:absolute; top:0; right:0; width:74%; height:auto; }
.home-decor-bottom { position:absolute; bottom:0; left:0; width:50%; height:auto; }
.home-decor::after { content:''; position:absolute; bottom:0; left:42%; width:58%; height:130px; background:url('../images/decor/home-wave.svg') right bottom/100% 100% no-repeat; }
@media (min-width:901px) { #about .dcr--br { right:-4%; } #about .dcr--bl { left:0; } }
@media (max-width:900px) { #about { padding-bottom:100px; } .home-decor-top { width:90%; } .home-decor-bottom { width:65%; } }
@media (max-width:700px) { .home-decor-top { opacity:.65; } .home-decor-bottom { width:80%; } .home-decor::after { height:60px; } }
.jury-row--six .jury-photo--sokolova img { object-position:center 35%; transform:scale(1.05) translateY(-2%); }
.afc-info { background:#fff; border:1px solid var(--c-line); border-radius:var(--radius-m); padding:14px; display:flex; flex-direction:column; gap:12px; height:170px; }
.afc-info__meta { display:grid; gap:5px; font-size:.82rem; line-height:1.35; color:var(--c-ink-soft); flex:1; }
.afc-info__meta strong { color:#771329; font-size:.95rem; }
.afc-info .afc-btn { padding-inline:8px; }
/* Equal information-area height keeps poster bottoms aligned, including inactive cards. */
.afc-info-placeholder { height:170px; display:flex; flex-direction:column; justify-content:flex-end; padding:14px 0; }
.mk-tariff-summary { display:flex; flex-wrap:wrap; gap:8px 18px; padding-bottom:12px; color:var(--c-ink); }
.mk-tariff-summary b { flex-basis:100%; }

/* v46: mobile/tablet-only overrides. Desktop layout unchanged. */
@media (max-width: 1100px) {
  .site-header__inner { gap:16px; height:68px; justify-content:space-between; }
  .site-header { background:rgba(34,16,20,.96); }
  .site-header .logo { min-width:0; max-width:calc(100% - 64px); }
  .site-header .logo__img { height:38px; width:auto; object-fit:contain; }
  .header-cta { display:none; }
  .burger { display:block; z-index:2; margin-left:auto; }
  .burger span::before,.burger span::after { left:0; right:0; }
  .nav { position:fixed; inset:68px 0 auto; max-height:calc(100vh - 68px); max-height:calc(100dvh - 68px); display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:0; padding:12px var(--gutter) calc(28px + env(safe-area-inset-bottom,0px)); margin:0; background:#221014; overflow-y:auto; overscroll-behavior:contain; transform:translateX(100%); visibility:hidden; pointer-events:none; transition:transform .3s var(--ease-out),visibility .3s; }
  .nav.is-open { transform:translateX(0); visibility:visible; pointer-events:auto; }
  .nav__link { width:100%; min-height:48px; padding:12px 8px; font-size:1rem; border-bottom:1px solid rgba(255,247,240,.12); border-radius:0; }
  .lang-switch { margin:16px 8px 0; align-self:flex-start; }
  .lang-switch button { min-height:44px; min-width:48px; }
  .nav__dropdown { position:static; transform:none; display:none; opacity:1; visibility:visible; background:transparent; min-width:0; }
  .nav__item.is-open .nav__dropdown { display:block; }
  .form-grid > *, .mk-form > *, .field, .field > *, .guardian > *, .ph-split > *, .hero__grid > *, .site-footer__grid > *, .partners-grid > *, .jury-row > *, .contacts-block > *, .sched-grid > * { min-width:0; }
  .modal__box { max-height:calc(100vh - 40px); max-height:calc(100dvh - 40px); overflow-y:auto; overscroll-behavior:contain; }
  .field input:not([type=checkbox]):not([type=file]), .field select, .field textarea { min-width:0; max-width:100%; font-size:16px; }
  .field select { padding-right:34px; }
  .field .file-name, .file-drop, .site-footer__contact, .contacts-block, .check span { overflow-wrap:anywhere; }
  .afc-track { padding:0; }
}
@media (max-width: 900px) {
  .hero { min-height:0; padding:116px 0 84px; }
  .hero__grid { gap:30px; }
  .hero__left,.hero__right { justify-items:center; text-align:center; }
  .hero__logo-img { width:min(100%,480px); height:auto; max-height:240px; object-fit:contain; }
  .hero__meta { justify-content:center; flex-wrap:wrap; }
  .hero__cta--col { max-width:440px; }
  .hero__cta--col .btn { white-space:normal; }
  .ph-split { gap:24px; }
  .section { padding-block:clamp(44px,7vw,72px); }
  .apply-block { margin-top:32px; }
  .footer-orgs { flex-wrap:wrap; }
  .footer-orgs img { max-width:calc(50% - 8px); }
}
@media (max-width:700px) {
  :root { --gutter:16px; }
  .h1 { font-size:clamp(1.55rem,5.6vw,2.1rem); overflow-wrap:anywhere; }
  .h2 { font-size:clamp(1.3rem,4.7vw,1.8rem); overflow-wrap:anywhere; }
  .h3 { overflow-wrap:anywhere; }
  .eyebrow { letter-spacing:.11em; gap:8px; max-width:100%; }
  .eyebrow::before { flex:0 0 22px; }
  .hero { padding:100px 0 70px; }
  .hero__logo-img { width:min(100%,350px); max-height:190px; }
  .hero__right { width:100%; gap:20px; }
  .hero__cta--col .btn, .btn { max-width:100%; text-align:center; white-space:normal; min-height:44px; padding:13px 18px; letter-spacing:.035em; overflow-wrap:anywhere; }
  .apply-block { padding:20px 16px; border-radius:20px; }
  .form-grid,.mk-form,.guardian.is-visible { grid-template-columns:minmax(0,1fr); gap:16px; }
  .guardian { padding:16px 12px; }
  .field label { letter-spacing:.035em; }
  .field input:not([type=checkbox]):not([type=file]),.field select,.field textarea { min-height:48px; padding-left:12px; }
  .file-drop { padding:16px 10px; min-height:100px; }
  .check { min-height:44px; }
  .check input[type=checkbox] { flex:0 0 20px; }
  .mksteps { gap:12px; flex-wrap:wrap; }
  .mkstep-ind { min-width:0; flex:1 1 110px; overflow-wrap:anywhere; }
  .mkstep-nav { gap:10px; }
  .mkstep-nav .btn { flex:1 1 100%; min-width:0; }
  .pay-calc { padding:16px 12px; }
  .pay-calc__row { gap:10px; flex-wrap:wrap; }
  .pay-calc__row b { overflow-wrap:anywhere; }
  .modal { padding:12px; }
  .modal__box { padding:24px 18px; max-height:calc(100dvh - 24px); }
  .afcarousel { gap:6px; align-items:center; }
  .afc-arrow { width:44px; height:44px; }
  .afc-item { width:100% !important; filter:none !important; }
  .afc-info,.afc-info-placeholder { height:auto; min-height:176px; }
  .afc-poster,.afc-soon { width:100%; }
  .afc-poster img { object-fit:contain; }
  .afc-info__meta { overflow-wrap:anywhere; }
  .fs-btn,.gslider__btn { width:44px; height:44px; }
  .lightbox img { max-width:calc(100vw - 24px); max-height:calc(100dvh - 132px); object-fit:contain; }
  .lightbox__btn { min-width:44px; min-height:44px; }
  .lightbox__close { top:12px; right:12px; }
  .lightbox__prev,.lightbox__next { top:auto; bottom:12px; transform:none; }
  .lightbox__prev { left:12px; } .lightbox__next { right:12px; }
  .countdown { min-width:0; max-width:100%; padding:18px 12px; }
  .countdown__grid { gap:6px; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .countdown__cell span { font-size:.58rem; letter-spacing:.02em; }
  .countdown__cell b { font-size:clamp(1.15rem,5vw,1.7rem); }
  .sched-card { padding:16px 12px; gap:12px; }
  .sched-card__date { min-width:62px; }
  .sched-card__date b { font-size:1.3rem; }
  .sched-card__place-text .nb { white-space:normal; }
  .site-footer__grid { gap:28px; }
  .site-footer__bottom { flex-wrap:wrap; gap:12px; }
  .gallery-grid-years > *, .partners-grid > * { min-width:0; }
  #anketa,#anketa-mk { scroll-margin-top:82px; }
}
@media (max-width:380px) {
  :root { --gutter:12px; }
  .apply-block { padding:16px 12px; }
  .afc-arrow { width:44px; height:44px; }
  .afc-info { padding:10px; }
  .jury-row--seven { grid-template-columns:1fr; }
}

/* v47: targeted responsive corrections. */
.lang-switch--mobile { display:none; }
@media (max-width:1100px) {
  .site-header__inner { gap:10px; }
  .site-header .logo { max-width:calc(100% - 155px); margin-right:auto; }
  .nav .lang-switch { display:none; }
  .site-header__inner > .lang-switch--mobile { display:inline-flex; align-self:center; margin:0; }
  .lang-switch--mobile button { min-width:44px; min-height:40px; padding:6px 9px; white-space:nowrap; }
  .site-header__inner > .burger { margin-left:0; }
}
@media (max-width:900px) {
  .hero__cta--col { gap:12px; align-items:stretch; }
  .hero__right .hero__cta--col .btn { flex:0 0 auto; min-height:50px; height:auto; padding:14px 18px; }
  .decor-dialog .fest-photo:not(.fest-photo--duo) { transform:none; width:100%; min-width:0; margin-inline:auto; }
  .decor-dialog .fest-photo img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; object-position:center; }
}
@media (max-width:700px) {
  .decor--dragon { width:clamp(290px,86vw,440px); left:-24px; }
  .decor--fire { width:clamp(270px,75vw,410px); right:-22px; }
  .decor--linden { width:clamp(285px,76vw,460px); right:-12px; }
  .decor--yar { width:clamp(285px,76vw,460px); left:-12px; }
  .section--rp { overflow:hidden; }
  .mksteps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .mkstep-ind { display:flex; gap:7px; align-items:flex-start; font-size:clamp(.65rem,2.7vw,.78rem); letter-spacing:.045em; overflow-wrap:normal; }
  .mkstep-ind b { flex:0 0 auto; white-space:nowrap; font-size:.85rem; }
  .mkstep-ind span { min-width:0; overflow-wrap:normal; }
}

/* v48: preserve the approved desktop composition on compact screens. */
@media (max-width:900px) {
  /* Keep the same wave artwork, but avoid squeezing a landscape curve into a portrait viewport. */
  .hero__waves svg { width: max(200%, 1600px); height:100%; }
  .hero__waves .hero__wave-1 { left:-240px; }
  .hero__waves .hero__wave-2 { left:-100px; }
  .hero__waves .hero__wave-3 { left:-320px; }
  #about .dialog-collage-real { display:block; position:relative; width:92%; max-width:540px; margin-inline:auto; height:auto; min-height:0; aspect-ratio: 1.22 / 1; }
  #about .dialog-collage-real .dcr { position:absolute; width:56%; height:auto; aspect-ratio:3/2; }
  #about .dcr--tl { top:0; left:0; transform:rotate(-4deg); }
  #about .dcr--tr { top:4%; right:0; transform:rotate(3.5deg); }
  #about .dcr--bl { bottom:0; left:0; transform:rotate(-3deg); }
  #about .dcr--br { bottom:2%; right:-4%; transform:rotate(4deg); }
  .decor-dialog .fest-photo:not(.fest-photo--duo) { width:80%; max-width:480px; margin-inline:auto; }
}
@media (max-width:700px) {
  .hero__logo-img { width:min(94%, 420px); max-width:none; max-height:270px; height:auto; }
  .hero__grid { gap:24px; }
  .decor-dialog .about__layout { gap:20px; }
  .decor-dialog .fest-photo:not(.fest-photo--duo) { width:76%; }
}

/* Contest: academic vocal does not require an instrument. */
#anketaForm #f-inst:disabled { background-color: #efebe8; color: #847c77; opacity: 1; cursor: not-allowed; background-image: none; }
