/* ============================================================
   АНО РСЗИ «Триумф» — стили сайта.
   Этот файл трогать не нужно: всё содержимое живёт в data.js
   ============================================================ */

:root{
  --bg:        #F2F0EC;
  --brand:     #0B47B8;
  --brand-dk:  #072E78;
  --ink:       #1A1A1A;
  --ink-soft:  #4E4A44;
  --card:      #FFFFFF;
  --line:      #DCD7CF;
  --ground:    #56686F;
  --paper:     #FAF8F4;
  --hairline:  rgba(60, 50, 35, .09);
  --gold:      #C39640;
  --gold-soft: #EDD9A6;
  --gold-ink:  #8C6A2A;
  --hero:      linear-gradient(125deg, #52799F 0%, #30557C 75%);
  --tint:      30 54 84;
  --radius:    20px;
  --shadow:    0 4.5px 14.5px rgba(62, 50, 34, .11);
  --shadow-hi: 0 11.5px 25px rgba(62, 50, 34, .19);

  --font: "Spectral", "Times New Roman", "Liberation Serif", Times, serif;
}

*{ box-sizing: border-box; }

.sr-only{
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

html, body{ margin: 0; padding: 0; }

body{
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a{ color: inherit; text-decoration: none; }

main{ flex: 1; display: flex; flex-direction: column; }

::selection{ background: rgba(11, 71, 184, .18); }

:focus-visible{
  outline: 2.5px solid var(--brand);
  outline-offset: 2.5px;
  border-radius: 5.5px;
}

.wrap{
  width: 100%;
  max-width: 1224px;
  margin: 0 auto;
  padding: 0 23.5px;
}

/* ---------------- Шапка ---------------- */

.header{ padding: 23.5px 0 36px; }

.header__in{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.brand{
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.brand__logo{
  width: clamp(124px, 12.6vw, 172px);
  height: auto;
  display: block;
}

.brand__rule{
  width: 2px;
  align-self: stretch;
  margin: 7px 0;
  background: var(--line);
  border-radius: 2px;
}

.brand__name{
  color: var(--brand-dk);
  font-size: clamp(12.5px, 0.95vw, 13.5px);
  font-weight: 700;
  line-height: 1.32;
  white-space: pre-line;
}

/* ---------------- Четыре плашки ---------------- */

.tiles{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14.5px;
}

.tile{
  position: relative;
  display: flex;
  flex-direction: column;
  height: clamp(297px, 36vh, 387px);
  padding: 20px 18px 70px;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background-color: #6C7A85;
  background-position: center;
  background-size: cover;
  background-image: var(--grad);
  box-shadow: var(--shadow);
  transition: transform .24s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease;
}

/* цвета разделов взяты с картины станции: небо, листва,
   бархатный занавес кинотеатра и охра стен вокзала.
   --tint — тот же цвет в тёмном варианте, для вуали поверх картинки */
.tile--mission{
  --grad: linear-gradient(168deg, #9CBCDB 0%, #52799F 52%, #30557C 100%);
  --tint: 24 46 72;
}
.tile--projects{
  --grad: linear-gradient(168deg, #A4B785 0%, #5F7B46 52%, #3C552D 100%);
  --tint: 26 40 18;
}
.tile--films{
  --grad: linear-gradient(168deg, #BC6B70 0%, #87303F 52%, #561B29 100%);
  --tint: 50 14 24;
}
.tile--reports{
  --grad: linear-gradient(168deg, #DDB064 0%, #A87428 52%, #7C5219 100%);
  --tint: 60 38 10;
}

/* картинка лежит отдельным слоем и медленно плывёт в темпе облаков на фоне */
.tile--photo{ isolation: isolate; }

.tile > .tile__bg{
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5%;
  right: -5%;
  z-index: -1;
  background: var(--photo) center / cover no-repeat;
  animation: tile-drift 50s ease-in-out infinite alternate;
  will-change: transform;
}

/* сдвиг в процентах самой картинки: она шире плашки на 10%, края не открываются */
@keyframes tile-drift{
  from{ transform: translate3d(-4%, 0, 0); }
  to  { transform: translate3d(4%, 0, 0); }
}

/* у каждой плашки своя фаза, чтобы картинки не плыли строем */
.tile:nth-child(2) > .tile__bg{ animation-delay: -12s; }
.tile:nth-child(3) > .tile__bg{ animation-delay: -25s; }
.tile:nth-child(4) > .tile__bg{ animation-delay: -37s; }

/* поверх картинки вуаль: темнее только середина под текстом */
.tile--photo::before{
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 54% at 50% 44%,
                    rgb(var(--tint) / .84) 0%, rgb(var(--tint) / .58) 58%, rgb(var(--tint) / 0) 100%),
    linear-gradient(180deg,
                    rgb(var(--tint) / .22) 0%, rgb(var(--tint) / .06) 34%,
                    rgb(var(--tint) / .06) 74%, rgb(var(--tint) / .26) 100%);
}

.tile:hover{
  transform: translateY(-4.5px);
  box-shadow: var(--shadow-hi);
}

.tile > *{ position: relative; z-index: 1; }

.tile__ic{
  width: 68.5px;
  height: 68.5px;
  margin: 0 auto 14.5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.5);
  background: rgba(255,255,255,.12);
  transition: border-color .3s ease, background-color .3s ease, transform .3s cubic-bezier(.22,.8,.3,1);
}

.tile__ic svg{ width: 38px; height: 38px; filter: drop-shadow(0 1px 2.5px rgba(0,0,0,.2)); }

.tile__title{
  margin: 0 0 7px;
  text-align: center;
  font-size: clamp(18px, 1.67vw, 26px);
  font-weight: 700;
  letter-spacing: .035em;
  text-shadow: 0 2px 7px rgba(0,0,0,.30);
}

.tile__text{
  margin: 0;
  text-align: center;
  min-height: 2.7em;
  font-size: clamp(14.5px, 1.12vw, 17px);
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  white-space: pre-line;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgba(0,0,0,.35), 0 1px 8px rgba(0,0,0,.4);
}

/* внутренняя рамка — как паспарту у картины; при наведении загорается */
.tile::after{
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 1;
  border-radius: 13.5px;
  border: 1px solid rgba(255,255,255,.26);
  pointer-events: none;
  transition: border-color .35s ease, inset .35s cubic-bezier(.22,.8,.3,1);
}

.tile:hover::after,
.tile:focus-visible::after{
  inset: 7px;
  border-color: var(--gold-soft);
}

.tile:hover .tile__ic{
  border-color: var(--gold-soft);
  background: rgba(255,255,255,.18);
  transform: translateY(-2px);
}

.tile__go{
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 2.5px 9px rgba(0,0,0,.28);
  transition: transform .24s cubic-bezier(.22,.8,.3,1);
}

.tile__go svg{ width: 14.5px; height: 14.5px; }

.tile:hover .tile__go{ transform: translateX(3.5px); }

/* ---------------- Три кнопки ---------------- */

.quick{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14.5px;
  /* отрицательный отступ снизу: фото станции подъезжает под кнопки
     и начинается уже на первом экране */
  margin: 38px 0 clamp(-150px, -9.5vw, -76px);
  padding: 0 36px;
}

.qbtn{
  position: relative;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 12.5px;
  padding: 11px 14.5px;
  background: var(--card);
  border-radius: 14.5px;
  box-shadow: var(--shadow);
  transition: transform .24s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease;
}

.qbtn:hover{
  transform: translateY(-2.5px);
  box-shadow: var(--shadow-hi);
}

.qbtn__ic{
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .02em;
}

.qbtn__ic svg{ width: 20.5px; height: 20.5px; }
.qbtn__ic--vk     { background: none; color: #0077FF; }
.qbtn__ic--vk svg { width: 100%; height: 100%; }
.qbtn__ic--tourism{ background: #5F7B46; }
.qbtn__ic--cafe   { background: #EFE3D5; color: #8A5A3B; }

.qbtn__body{ min-width: 0; flex: 1; }

.qbtn__title{
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.22;
}

.qbtn__sub{
  display: block;
  margin-top: 1px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.38;
  color: var(--ink-soft);
  white-space: pre-line;
}

.qbtn__go{
  width: 30.5px;
  height: 30.5px;
  flex: 0 0 30.5px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  display: grid;
  place-items: center;
  color: #fff;
  transition: border-color .2s ease, color .2s ease;
}

.qbtn__go svg{ width: 11.5px; height: 11.5px; }

.qbtn:hover .qbtn__go{ border-color: var(--brand); color: var(--brand); }

.qbtn--soon{
  cursor: default;
  background: rgba(255,255,255,.55);
  box-shadow: none;
  border: 1.5px dashed rgba(60, 50, 35, .22);
}

.qbtn--soon:hover{ transform: none; box-shadow: none; }
.qbtn--soon .qbtn__ic{ opacity: .55; }
.qbtn--soon .qbtn__title{ color: #6E6A63; }

.qbtn__soon{
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8B867E;
  white-space: nowrap;
}

/* ---------------- Панорама ---------------- */

.panorama{
  position: relative;
  margin-top: auto;
  height: clamp(101px, 9vw, 171px);
  background: url("panorama.svg") center bottom / cover no-repeat;
}

/* фотография: верх растворяется в небе, низ — чёткий край страницы, без дымки.
   Подписи поверх картины нет, поэтому видна нижняя часть вокзала с людьми на перроне */
.panorama--photo{
  height: clamp(215px, 28vw, 450px);
  background-position: center 30%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 22%);
}

/* ============================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ============================================================ */

.s-mission { --accent: #3B6089; --tint: 24 46 72; --hero: linear-gradient(125deg, #52799F 0%, #30557C 75%); }
.s-projects{ --accent: #4D6B38; --tint: 26 40 18; --hero: linear-gradient(125deg, #637F49 0%, #3C552D 75%); }
.s-films   { --accent: #8B2F3C; --tint: 50 14 24; --hero: linear-gradient(125deg, #93404C 0%, #5A1D2B 75%); }
.s-reports { --accent: #94611F; --tint: 60 38 10; --hero: linear-gradient(125deg, #AD7A2E 0%, #7C5219 75%); }

/* ---------------- Шапка ---------------- */

.topbar{ padding: 14.5px 0; }

.topbar__in{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar__brand img{
  display: block;
  width: 126px;
  height: auto;
}

.nav{
  display: flex;
  gap: 3.5px;
}

.nav__link{
  padding: 7px 14.5px;
  border-radius: 899px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  transition: background-color .2s ease, color .2s ease;
}

.nav__link:hover{ background: rgba(255,255,255,.6); }

.nav__link.is-active{
  color: #fff;
  background: var(--accent);
}

/* ---------------- Обложка раздела ---------------- */

.hero{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 25px;
  margin-top: 3.5px;
  padding: 29px clamp(21.5px, 3.6vw, 47px) 34px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--hero, var(--brand));
  box-shadow: var(--shadow);
}

.hero::after{
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 13.5px;
  border: 1px solid rgba(255,255,255,.2);
  pointer-events: none;
}

.hero > *{ position: relative; z-index: 1; }

/* шапка с картинкой раздела: слева под текстом цвет раздела, справа видна картинка.
   У картинки с плашки показываем нижнюю треть, где люди и действие,
   у обложки статьи середину */
.hero--photo{
  --photo-y: 72%;
  --hero-veil: linear-gradient(90deg, rgb(var(--tint) / .90) 0%, rgb(var(--tint) / .70) 45%, rgb(var(--tint) / .22) 100%);
  padding-top: 40px;
  padding-bottom: 46px;
  background: var(--hero);
  overflow: hidden;
  isolation: isolate;
}

/* картинка отдельным слоем плывёт в темпе облаков, поверх неё вуаль цвета раздела */
.hero > .hero__bg{
  position: absolute;
  top: 0;
  bottom: 0;
  left: -5%;
  right: -5%;
  z-index: -2;
  background: var(--photo) center var(--photo-y) / cover no-repeat;
  animation: tile-drift 50s ease-in-out infinite alternate;
  will-change: transform;
}

.hero--photo::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--hero-veil);
}

.hero--cover{ --photo-y: 45%; }
.s-mission .hero--photo:not(.hero--cover){ --photo-y: 80%; }

.hero__genre{
  margin: 14px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold-soft);
}

.hero__genre + .hero__title{ margin-top: 6px; }

.hero__body{ min-width: 0; }

.hero__ic{
  width: 86.5px;
  height: 86.5px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1);
  color: #fff;
}

.hero__ic svg{ width: 47px; height: 47px; opacity: .95; }

.hero__crumb{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  transition: color .2s ease;
}

.hero__crumb svg{ width: 14.5px; height: 14.5px; transition: transform .2s ease; }
.hero__crumb:hover{ color: #fff; }
.hero__crumb:hover svg{ transform: translateX(-2.5px); }

.hero__title{
  margin: 12.5px 0 0;
  font-size: clamp(25px, 2.88vw, 41.5px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.005em;
  text-wrap: pretty;
  text-shadow: 0 1px 2px rgba(0,0,0,.14);
}

/* длинные названия — на ступень меньше, чтобы легли в одну-две строки на всю ширину */
.hero__title--long{ font-size: clamp(21.5px, 2.25vw, 32.5px); line-height: 1.18; }

.hero__lead{
  margin: 12.5px 0 0;
  max-width: 62ch;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 2px rgba(0,0,0,.14);
}

/* ---------------- Лист под текстом ---------------- */

.sheet{
  max-width: 972px;
  margin: 32.5px auto 0;
  padding: clamp(23.5px, 4.5vw, 54px) clamp(18px, 4.5vw, 57.5px);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 25px;
  box-shadow: 0 11px 29px rgba(0, 0, 0, .10);
}

/* ---------------- Текст статьи ---------------- */

.prose{
  max-width: 648px;
  margin: 0 auto;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.72;
  color: var(--ink);
}

.prose p{ margin: 0 0 1.05em; }
.prose p:last-child{ margin-bottom: 0; }

/* первый абзац того же размера, что и остальные: в одном листе один шрифт */
.prose__lead{
  max-width: 648px;
  margin: 0 auto 1.05em;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.72;
  color: var(--ink);
}

.article__media{
  max-width: 882px;
  margin: 30.5px auto 34px;
}

/* ---------------- Серая плашка вместо фото ---------------- */

.ph{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #DCD8D1;
  color: #8E877D;
}

.ph svg{ width: 27px; height: 27px; }

.ph span{
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* ---------------- Карусель ---------------- */

.carousel{
  position: relative;
  --gap: 16px;
  --per: 100%;
}

.carousel__track{
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 3.5px 3.5px 16px;
  margin: -3.5px -3.5px -16px;
}

.carousel__track::-webkit-scrollbar{ display: none; }
.carousel__track:focus-visible{ outline-offset: -2px; }

.carousel__slide{
  flex: 0 0 var(--per);
  min-width: 0;
  scroll-snap-align: start;
}

.carousel__btn{
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 41.5px;
  height: 41.5px;
  margin-top: -20.5px;
  border: 0;
  border-radius: 50%;
  background: var(--accent, var(--brand));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3.5px 12.5px rgba(40, 32, 22, .24);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}

.carousel__btn svg{ width: 15.5px; height: 15.5px; }
.carousel__btn--prev{ left: -16px; }
.carousel__btn--prev svg{ transform: scaleX(-1); }
.carousel__btn--next{ right: -16px; }
.carousel__btn:hover{ filter: brightness(1.12); transform: scale(1.06); }
.carousel__btn:disabled{ opacity: 0; pointer-events: none; }
.carousel.is-static .carousel__btn{ display: none; }

.carousel[data-dots] .carousel__btn{ margin-top: -32.5px; }

.carousel__dots{
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 16px;
  min-height: 7px;
}

.carousel__dot{
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 3.5px;
  background: #CBC5BB;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s ease;
}

.carousel__dot:hover{ transform: scale(1.25); }

.carousel__dot.is-active{
  width: 21.5px;
  background: var(--accent, var(--brand));
}

/* фото в статье */
.shot{
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #DCD8D1;
  isolation: isolate;
}

/* фото целиком, по бокам или сверху его же размытая копия */
.shot::before{
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -1;
  background: var(--src, none) center / cover no-repeat;
  filter: blur(22px) brightness(.88) saturate(1.05);
}

.shot img{ width: 100%; height: 100%; object-fit: contain; display: block; }

/* ---------------- Миссия: команда и партнёры ---------------- */

.block{ margin-top: 57.5px; }

.block__title{
  width: fit-content;
  margin: 0 0 23.5px;
  font-size: clamp(23.5px, 2.34vw, 30.5px);
  font-weight: 700;
  line-height: 1.2;
}

.block__title::after{
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 11px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

/* команда — одна анкета на слайд */
.person{
  display: grid;
  grid-template-columns: minmax(198px, 34%) 1fr;
  height: 100%;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.person{ min-height: 414px; }

.person__photo{
  min-height: 100%;
  background: #DCD8D1;
}

.person__photo img{ width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; }

.person__body{
  padding: clamp(21.5px, 2.7vw, 36px);
  align-self: center;
}

.person__name{
  margin: 0;
  font-size: clamp(21.5px, 2.16vw, 29px);
  font-weight: 700;
  line-height: 1.15;
}

.person__role{
  margin: 5.5px 0 14.5px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}

.person__text{
  margin: 0;
  max-width: 60ch;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.65;
}

.person__awards-title{
  margin: 20px 0 7px;
  font-size: 15.5px;
  font-weight: 700;
}

.person__awards{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  max-width: 60ch;
}

.person__awards li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: start;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.person__medal{
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--gold);
}

.person__medal svg{ width: 100%; height: 100%; display: block; }

/* партнёры все сразу: по шесть в ряд, неполный ряд по центру */
.partners{
  --gap: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
}

.partners .partner{ flex: 0 0 calc((100% - 5 * var(--gap)) / 6); min-width: 0; }

.partner{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 9px 11px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}

.partner__logo{
  height: 74px;
  border-radius: 9px;
  overflow: hidden;
  background: #DCD8D1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner__logo img{ max-width: 80%; max-height: 80%; object-fit: contain; }
.partner__logo .ph svg{ width: 21.5px; height: 21.5px; }

.partner__name{
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.32;
  text-wrap: balance;
}

/* ---------------- Карточки: проекты и фильмы ---------------- */

.cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 27px;
}

.card{
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .24s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease;
}

.card:hover{ transform: translateY(-3.5px); box-shadow: var(--shadow-hi); }

.card__media{
  position: relative;
  aspect-ratio: 16 / 10;
  background: #DCD8D1;
}

/* «Смотреть онлайн» цветом раздела, дата премьеры светлой меткой */
.card__status{
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 24px);
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 2px 9px rgba(0, 0, 0, .2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.card__status svg{ flex: none; width: 16px; height: 16px; color: var(--gold-ink); }
.card__status--live{ background: var(--accent); color: #fff; }
.card__status--live svg{ color: #fff; }

.card__media img{ width: 100%; height: 100%; object-fit: cover; display: block; }

.card__body{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 20px 21.5px 21.5px;
}

.card__genre{
  margin: 0 0 -4px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gold-ink);
}

.card__title{
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.card__text{
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__more{
  align-self: flex-start;
  margin-top: auto;
  padding: 7px 13px 7px 15px;
  border-radius: 899px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.card__more svg{ width: 12.5px; height: 12.5px; transition: transform .24s cubic-bezier(.22,.8,.3,1); }
.card:hover .card__more svg{ transform: translateX(3.5px); }

/* первая карточка — во всю ширину */
.card--wide{
  grid-column: 1 / -1;
  flex-direction: row;
}

.card--wide .card__media{
  flex: 0 0 52%;
  aspect-ratio: auto;
  min-height: 297px;
}

.card--wide .card__body{
  justify-content: center;
  padding: clamp(23.5px, 3.06vw, 41.5px);
}

.card--wide .card__title{ font-size: clamp(21.5px, 2.16vw, 29px); }
.card--wide .card__text{ font-size: 14px; -webkit-line-clamp: 6; }

/* ---------------- Видео ---------------- */

.video{
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #22262B;
}

.video iframe{ width: 100%; height: 100%; border: 0; display: block; }

.video--empty{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: #3A3E44;
  color: rgba(255,255,255,.72);
}

.video--empty svg{ width: 48.5px; height: 48.5px; }
.video--empty span{ font-size: 14.5px; font-weight: 600; letter-spacing: .02em; }

.video__link{ margin: 11px 0 0; text-align: right; }

.video__link a{
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-weight: 700;
  color: var(--accent);
}

.video__link svg{ width: 11.5px; height: 11.5px; }

/* ---------------- Соседние страницы ---------------- */

.pager{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 882px;
  margin: 50.5px auto 0;
}

.pager__link{
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  padding: 14.5px 18px;
  background: var(--card);
  border-radius: 14.5px;
  box-shadow: var(--shadow);
  transition: transform .24s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease;
}

.pager__link:hover{ transform: translateY(-2.5px); box-shadow: var(--shadow-hi); }
.pager__link small{ font-size: 12.5px; font-weight: 600; color: var(--accent); }
.pager__link strong{ font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.pager__link--next{ text-align: right; }

/* ---------------- Документы ---------------- */

.docs{
  max-width: 648px;
  margin: 30.5px auto 0;
  display: grid;
  gap: 11px;
}

.doc{
  display: flex;
  align-items: center;
  gap: 14.5px;
  padding: 14.5px 16px;
  background: var(--card);
  border-radius: 14.5px;
  box-shadow: var(--shadow);
}

.doc__ic{
  flex: 0 0 45px;
  height: 52px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #fff;
  background: var(--accent);
}

.doc__body{ min-width: 0; flex: 1; }
.doc__title{ margin: 0; font-size: 16px; font-weight: 700; line-height: 1.3; }
.doc__meta{ margin: 2.5px 0 0; font-size: 13px; font-weight: 500; color: var(--ink-soft); }

.doc__btn{
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 899px;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  transition: filter .2s ease;
}

.doc__btn:hover{ filter: brightness(1.08); }

.doc__btn--off{
  color: #6F695F;
  background: #E7E2D9;
}

.doc__btn--off:hover{ filter: none; }

.docs-group{
  max-width: 648px;
  margin: 38px auto 0;
}

.docs-group:first-of-type{ margin-top: 30px; }

.docs-group__h{ margin: 0; }

.docs-group__head{
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 13px 18px;
  border: 0;
  border-radius: 14.5px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: box-shadow .2s ease;
}

.docs-group__head:hover{ box-shadow: 0 7px 20px rgba(40, 30, 20, .13); }

.docs-group__title{
  flex: 1;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.docs-group__count{
  min-width: 25px;
  padding: 2px 8px;
  border-radius: 899px;
  background: #F1ECE5;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  text-align: center;
}

.docs-group__arrow{
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: var(--accent);
  transition: transform .26s cubic-bezier(.22,.8,.3,1);
}

.docs-group__arrow svg{ width: 21px; height: 21px; }

.docs-group.is-open .docs-group__arrow{ transform: rotate(180deg); }

.docs-group__body{
  height: 0;
  overflow: hidden;
  transition: height .26s cubic-bezier(.22,.8,.3,1);
}

.docs-group__in{ padding: 16px 2px 2px; }

.docs-group__text{
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-soft);
}

.docs-group .docs{ margin-top: 15px; }
.docs-group__in > .docs:first-child{ margin-top: 0; }

/* реквизиты строками, как в окошке «Поддержать» */
.req__list{ margin-top: 15px; }
.req__list .support__row{ padding: 9px 0; }
.req__list .support__row dd{ font-size: 14.5px; }

/* воздух перед панорамой на внутренних страницах */
body:not([data-page="home"]) main{ padding-bottom: 65px; }

/* ---------------- Золотая рамка при наведении ---------------- */

.card,
.partner,
.pager__link,
.doc,
.person{
  position: relative;
  border: 1px solid var(--hairline);
}

.card::after,
.qbtn:not(.qbtn--soon)::after,
.partner::after,
.pager__link::after,
.doc::after,
.person::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1.65px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--gold) 45%, var(--gold-soft) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.card:hover::after,
.card:focus-visible::after,
.qbtn:not(.qbtn--soon):hover::after,
.qbtn:not(.qbtn--soon):focus-visible::after,
.partner:hover::after,
.pager__link:hover::after,
.pager__link:focus-visible::after,
.doc:hover::after,
.person:hover::after{ opacity: 1; }

.card:hover,
.qbtn:not(.qbtn--soon):hover,
.partner:hover,
.pager__link:hover,
.doc:hover,
.person:hover{ border-color: transparent; }

/* ---------------- Адаптив ---------------- */

@media (max-width: 1180px){
  .tiles{ grid-template-columns: repeat(2, 1fr); }
  .tile{ height: clamp(288px, 37.8vh, 360px); }
  .quick{ padding: 0; }

  .cards{ grid-template-columns: repeat(2, 1fr); }
  .partners .partner{ flex-basis: calc((100% - 3 * var(--gap)) / 4); }
  .carousel__btn--prev{ left: 5.5px; }
  .carousel__btn--next{ right: 5.5px; }
}

@media (max-width: 760px){
  .wrap{ padding: 0 14.5px; }

  .header{ padding: 16px 0 23.5px; }
  .header__in{ justify-content: center; text-align: center; }
  .brand{ flex-direction: column; gap: 5.5px; }
  .brand__rule{ display: none; }
  .brand__name{ text-align: center; }

  /* плашки пониже и в строку: значок слева, стрелка справа, все четыре на первом экране */
  .tiles{ grid-template-columns: 1fr; gap: 10px; }
  .tile{ height: 118px; padding: 12px 60px 12px 88px; align-items: flex-start; justify-content: center; }
  .tile::after{ inset: 7px; border-radius: 12px; }
  .tile__title{ text-align: left; font-size: 20px; margin-bottom: 3px; }
  .tile__text{ text-align: left; min-height: 0; font-size: 14.5px; line-height: 1.3; }
  .tile__go{ left: auto; right: 16px; top: 50%; bottom: auto; margin-top: -17px; width: 34px; height: 34px; }
  .tile:hover .tile__go{ transform: translateX(3px); }
  .tile--photo::before{
    background: linear-gradient(90deg, rgb(var(--tint) / .86) 0%, rgb(var(--tint) / .62) 55%, rgb(var(--tint) / .32) 100%);
  }
  .tile > .tile__bg{ background-position: center 72%; }

  .quick{ grid-template-columns: 1fr; gap: 9px; margin: 25px 0 -36px; }

  .panorama{ height: 101px; }
  .panorama--photo{ height: 210px; background-position: 62% 30%; }

  .topbar{ padding: 11px 0 7px; }
  .topbar__in{ flex-direction: column; align-items: stretch; gap: 9px; }
  .topbar__brand{ align-self: center; }
  .topbar__brand img{ width: 110px; }
  .nav{ justify-content: space-between; }
  .nav__link{ padding: 7px 11px; font-size: 14px; }

  .hero{ padding: 20px 18px 23.5px; grid-template-columns: 1fr; }
  .hero__ic{ display: none; }
  .sheet{ margin-top: 21.5px; border-radius: 20px; }
  .tile__ic{ position: absolute; left: 20px; top: 50%; width: 52px; height: 52px; margin: -26px 0 0; }
  .tile__ic svg{ width: 28px; height: 28px; }
  .tile:hover .tile__ic{ transform: none; }
  .hero__lead{ font-size: 15px; }

  .prose{ font-size: 16px; line-height: 1.68; }
  .prose__lead{ font-size: 16px; line-height: 1.68; }
  .article__media{ margin: 23.5px auto 25px; }

  .block{ margin-top: 43px; }

  /* minmax(0, 1fr) обязателен: иначе кадр фотографии раздувает колонку
     до своей высоты и текст уезжает за край карточки */
  .person{ grid-template-columns: minmax(0, 1fr); align-content: start; }
  .person{ min-height: 0; }
  /* высота кадра задана прямо, без пропорции, чтобы не было обратной связи.
     Портрет виден целиком, по бокам его же размытая копия */
  .person__photo{ aspect-ratio: auto; height: min(53vw, 255px); min-height: 0; min-width: 0;
                  position: relative; overflow: hidden; isolation: isolate; }
  .person__photo::before{
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    background: var(--src, none) center / cover no-repeat;
    filter: blur(22px) brightness(.88) saturate(1.05);
  }
  .person__photo img{ object-fit: contain; object-position: center !important; }

  /* карточка на 15% мельче прежней, текст прижат к фотографии */
  .person__body{ align-self: start; min-width: 0; padding: 15px 15px 19px; }
  .person__name{ font-size: 16px; }
  .person__role{ margin: 3px 0 9px; font-size: 11.5px; }
  .person__text{ max-width: none; font-size: 11.5px; line-height: 1.6; overflow-wrap: anywhere; }
  .person__awards-title{ margin: 13px 0 5px; font-size: 12px; }
  .person__awards{ gap: 6px; }
  .person__awards li{ font-size: 11px; grid-template-columns: 15px 1fr; gap: 8px; }
  .person__medal{ width: 15px; height: 15px; }

  .partners{ --gap: 8px; }
  .partners .partner{ flex-basis: calc((100% - 2 * var(--gap)) / 3); padding: 7px 7px 9px; gap: 6px; }
  .partner__logo{ height: 58px; }
  .partner__name{ font-size: 11.5px; }

  /* стрелки по бокам фотографии, чтобы сразу было видно, что карточки листаются */
  .carousel--team .carousel__btn{ top: calc(min(53vw, 255px) / 2 - 15px); bottom: auto; margin-top: 0; width: 30px; height: 30px; }
  .carousel--team .carousel__btn--prev{ left: 6px; }
  .carousel--team .carousel__btn--next{ right: 6px; }
  .carousel--team .carousel__btn svg{ width: 14px; height: 14px; }
  .carousel__slide{ scroll-snap-stop: always; }
  .carousel__btn{ width: 34px; height: 34px; margin-top: -17px; }

  .cards{ grid-template-columns: 1fr; gap: 14.5px; }
  .card--wide{ flex-direction: column; }
  .card--wide .card__media{ flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .card--wide .card__text{ font-size: 14px; -webkit-line-clamp: 4; }

  .pager{ grid-template-columns: 1fr; gap: 9px; }
  .pager__link--next{ text-align: left; }

}


/* ============================================================
   НЕБО С ОБЛАКАМИ НАВЕРХУ СТРАНИЦ
   ============================================================ */

body{ position: relative; isolation: isolate; }

/* под небом — бледно-голубой, а не кремовый: при оттягивании страницы на телефоне тоже видно небо */
body.has-sky{ background: #DCE6EE; }

.has-sky::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--sky) center top / cover no-repeat, #E3E9EE;
}

/* ============================================================
   «ПОДДЕРЖАТЬ»
   ============================================================ */

.support{
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pop{ position: relative; }

.support__btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px 9px 12.5px;
  border: 1.5px solid #EBCFCB;
  border-radius: 899px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .24s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease, border-color .2s ease;
}

.support__btn:hover{
  transform: translateY(-2px);
  border-color: #E0A9A2;
  box-shadow: var(--shadow-hi);
}

.support__heart{
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #D2413F;
}

.support__heart svg{ width: 18px; height: 18px; }

.support__btn:hover .support__heart{ animation: heartbeat .9s cubic-bezier(.22,.8,.3,1) 1; }

/* «Контакты»: синяя трубка, спокойная рамка */
.support__btn--contacts{ border-color: var(--line); }
.support__btn--contacts:hover{ border-color: var(--gold); }

.support__ic{
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.support__ic svg{ width: 18px; height: 18px; }

@keyframes heartbeat{
  0%   { transform: scale(1); }
  22%  { transform: scale(1.22); }
  40%  { transform: scale(.96); }
  58%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.support__panel{
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  width: min(378px, calc(100vw - 29px));
  padding: 20px 20px 16px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: 0 20px 43px rgba(40, 30, 20, .22), 0 2px 5.5px rgba(40, 30, 20, .08);
  text-align: left;
  opacity: 0;
  transform: translateY(-5.5px);
  transform-origin: top right;
  transition: opacity .18s ease-out, transform .18s cubic-bezier(.22,.8,.3,1);
}

.support__panel.is-open{
  opacity: 1;
  transform: none;
}

.support__panel--contacts{ width: min(330px, calc(100vw - 29px)); }

.support__who{
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* телефон и почта в окошках золотой ссылкой, как ссылки в тексте */
.support__row dd a{
  color: var(--gold-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.support__row dd a:hover{ color: #6E5220; text-decoration-color: var(--gold-ink); }

/* перевод по номеру телефона, пока нет расчётного счёта */
.support__pay{
  margin: 2px 0 0;
  padding: 11px 14px 4px;
  border: 1px solid var(--gold-soft);
  border-radius: 12px;
  background: linear-gradient(135deg, #FCF8EF 0%, #F5ECDA 100%);
}

/* подзаголовок «Реквизиты организации» под переводом по телефону */
.support__sub{
  margin: 14px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.support__pay-title{
  margin: 0 0 3px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.support__pay .support__row{ grid-template-columns: 86px 1fr 29px; border-top-color: rgba(195, 150, 64, .22); }
.support__pay .support__row:first-child{ border-top: 0; }
.support__pay .support__row:first-child dd{ font-size: 16px; }
.support__pay .support__copy:hover{ background: rgba(255, 255, 255, .7); }

.support__close{
  position: absolute;
  top: 11px;
  right: 11px;
  width: 30.5px;
  height: 30.5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.support__close:hover{ background: #F1ECE5; color: var(--ink); }
.support__close svg{ width: 16px; height: 16px; }

/* затемнение страницы, пока окошко открыто */
.support__veil{
  position: fixed;
  inset: 0;
  z-index: 19;
  background: rgba(26, 24, 20, .42);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.support__veil.is-on{ opacity: 1; pointer-events: auto; }

@media (min-width: 761px){ .support__veil{ display: none; } }

.support__title{
  margin: 0 32.5px 5.5px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.support__text{
  margin: 0 0 12.5px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

.support__list{
  margin: 0;
  display: grid;
  gap: 2px;
}

.support__row{
  display: grid;
  grid-template-columns: 97px 1fr 29px;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-top: 1px solid #EFEAE2;
}

.support__row dt{
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

.support__row dd{
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.support__copy{
  width: 29px;
  height: 29px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #9A938A;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.support__copy svg{ width: 14.5px; height: 14.5px; }
.support__copy:hover{ background: #F1ECE5; color: var(--ink); }
.support__copy.is-done{ color: #2E7D4F; }

.support__note{
  margin: 10px 2px 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---------- место кнопки на главной: справа от логотипа ---------- */

.header__in{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header__in .brand{ grid-column: 2; }
.header__in .support{ grid-column: 3; justify-self: end; }

/* ---------- на внутренних: после навигации ---------- */

.topbar__in .nav{ margin-left: auto; }

/* ---------- заголовки плашек разделов — во всю ширину ---------- */

.hero__title,
.hero__lead{ max-width: none; }

@media (max-width: 760px){

  .header__in{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 12.5px;
  }
  .header__in .brand{ grid-column: 1; grid-row: 2; }
  .header__in .support{ grid-column: 1; grid-row: 1; justify-self: end; }

  .topbar__in{ flex-direction: row; flex-wrap: wrap; align-items: center; }
  .topbar__brand{ align-self: center; }
  .topbar__in .support{ margin-left: auto; }
  .topbar__in .nav{ order: 3; width: 100%; margin-left: 0; }

  .support__btn{ padding: 7px 12.5px 7px 10px; font-size: 13.5px; }
  .support{ gap: 6px; }
  .support__btn--contacts{ padding: 7px 9px; }
  .support__btn--contacts .support__label{ display: none; }
  .support__pay .support__row{ grid-template-columns: 1fr 29px; }
  .support__panel{
    position: fixed; top: auto; right: 10px; left: 10px; bottom: 10px;
    width: auto; max-height: calc(100vh - 20px); overflow: auto;
    padding: 18px 16px 14px;
    border-radius: 22px;
    transform: translateY(16px);
    transform-origin: bottom center;
  }

  /* крестик крупнее, чтобы попасть пальцем */
  .support__close{
    top: 9px; right: 9px;
    width: 42px; height: 42px;
    background: #F1ECE5;
    color: var(--ink);
  }
  .support__close svg{ width: 19px; height: 19px; }
  .support__title{ padding-right: 46px; }

  .docs-group__head{ padding: 12px 13px 12px 15px; gap: 9px; }
  .docs-group__title{ font-size: 18px; }

  .support__row{ grid-template-columns: 1fr 29px; row-gap: 0; padding: 6.5px 0; }
  .support__row dt{ grid-column: 1 / -1; font-size: 12.5px; }
  .support__row dd{ font-size: 13px; }
}

/* на узком экране карточка документа складывается в два этажа,
   иначе название сжимается в колонку по одному слову */
@media (max-width: 600px){

  .doc{
    display: grid;
    grid-template-columns: 45px 1fr;
    grid-template-areas:
      "ic body"
      "btn btn";
    align-items: start;
    gap: 13px;
    padding: 14px 15px 15px;
  }

  .doc__ic{ grid-area: ic; height: 45px; }
  .doc__body{ grid-area: body; }
  .doc__title{ font-size: 15.5px; }
  .doc__meta{ margin-top: 4px; }

  .doc__btn,
  .doc__btn--off{
    grid-area: btn;
    grid-column: 1 / -1;
    padding: 11px 18px;
    margin-left: 0;
    text-align: center;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce){
  .support__btn:hover .support__heart{ animation: none; }
}

/* ---------- QR-код в окошке «Поддержать» ---------- */
.support__qr{
  display: grid;
  grid-template-columns: 124px 1fr;
  gap: 14px;
  align-items: center;
  margin: 2px 0 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hairline);
}

.support__qr-code{ width: 124px; height: 124px; }
.support__qr-code svg,
.support__qr-code img{ width: 100%; height: 100%; display: block; }

.support__qr-text{
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-soft);
}

/* ---------- фильм на YouTube: плашка-ссылка вместо плеера ---------- */
.video--out{ cursor: pointer; transition: background-color .25s ease, color .25s ease; }
.video--out:hover{ background: #2C3035; color: #fff; }

@media (max-width: 760px){
  .support__qr{ grid-template-columns: 104px 1fr; }
  .support__qr-code{ width: 104px; height: 104px; }
}

/* ---------- медальон в шапке с картинкой: тёмное стекло, чтобы читался на любом кадре ---------- */
.hero--photo .hero__ic{
  background: rgb(var(--tint) / .38);
  border-color: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

@media (max-width: 760px){
  /* на телефоне текст во всю ширину, поэтому вуаль сверху вниз */
  .hero--photo{
    --hero-veil: linear-gradient(180deg, rgb(var(--tint) / .62) 0%, rgb(var(--tint) / .86) 100%);
    padding-top: 26px;
    padding-bottom: 30px;
  }
  .hero__genre{ margin-top: 12px; font-size: 12.5px; letter-spacing: .12em; }
}

/* ============================================================
   ФОТО НА ВЕСЬ ЭКРАН
   ============================================================ */

.shot__open{
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.shot__open img{ transition: transform .5s cubic-bezier(.22,.8,.3,1); }
.shot__open:hover img{ transform: scale(1.025); }
.shot__open:focus-visible{ outline-offset: -4px; }

html.lb-open{ overflow: hidden; }

.lb{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 56px 72px;
  background: rgba(16, 18, 22, .94);
  opacity: 0;
  transition: opacity .22s ease;
  touch-action: pan-y pinch-zoom;
}

.lb[hidden]{ display: none; }
.lb.is-open{ opacity: 1; }

.lb__stage{
  margin: 0;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  min-height: 0;
}

.lb__img{
  display: block;
  max-width: min(84vw, 1400px);
  max-height: 76vh;
  max-height: 76dvh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .5);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .18s ease;
}

.lb__img.is-changing{ opacity: .35; }

.lb__close,
.lb__btn{
  position: absolute;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.lb__close:hover,
.lb__btn:hover{ background: rgba(255,255,255,.2); border-color: var(--gold-soft); }

.lb__close{ top: 14px; right: 14px; }
.lb__close svg{ width: 18px; height: 18px; }

.lb__btn{ top: 50%; margin-top: -23px; }
.lb__btn svg{ width: 17px; height: 17px; }
.lb__btn--prev{ left: 14px; }
.lb__btn--prev svg{ transform: scaleX(-1); }
.lb__btn--next{ right: 14px; }
.lb__btn[hidden]{ display: none; }

.lb__count{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.78);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px){
  .lb{ padding: 64px 10px 72px; }
  .lb__img{ max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); }
  .lb__btn{ top: auto; bottom: 10px; margin-top: 0; }
  .lb__btn--prev{ left: 12px; }
  .lb__btn--next{ right: 12px; }
  .lb__count{ bottom: 22px; }
}

/* ============================================================
   ОБЛАКА МЕДЛЕННО ПЛЫВУТ
   ============================================================ */

.has-sky::before{
  inset: 0 -6vw;
  animation: sky-drift 50s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes sky-drift{
  from{ transform: translate3d(-4vw, 0, 0); }
  to  { transform: translate3d(4vw, 0, 0); }
}

/* ============================================================
   ПОЯВЛЕНИЕ БЛОКОВ ПРИ ПРОКРУТКЕ
   ============================================================ */

.js-reveal .reveal{
  opacity: 0;
  translate: 0 18px;
  transition: opacity .7s cubic-bezier(.22,.8,.3,1) var(--d, 0ms),
              translate .7s cubic-bezier(.22,.8,.3,1) var(--d, 0ms);
}

.js-reveal .reveal.is-in{
  opacity: 1;
  translate: none;
}

@media print{
  .js-reveal .reveal{ opacity: 1; translate: none; }
}

/* ============================================================
   404: ТАКОЙ СТРАНИЦЫ НЕТ
   ============================================================ */

.lost .prose__lead{ text-align: center; text-wrap: balance; }

.lost__links{
  max-width: 648px;
  margin: 26px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
}

.lost__link{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 18px 10px 16px;
  border-radius: 16px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--hero);
  box-shadow: var(--shadow);
  transition: transform .24s cubic-bezier(.22,.8,.3,1), box-shadow .24s ease;
}

.lost__link:hover{ transform: translateY(-3px); box-shadow: var(--shadow-hi); }

.lost__ic{
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.1);
}

.lost__ic svg{ width: 27px; height: 27px; }

@media (max-width: 760px){
  .lost__links{ grid-template-columns: repeat(2, 1fr); }
}

/* ---------- в системе включено «меньше движения» (в Windows это выключенные
   «Эффекты анимации»): блоки не выезжают, а только проявляются, фото не увеличивается.
   Облака и карусели оставлены: владелец сайта просил их движение, а облака
   сдвигаются примерно на пиксель в секунду ---------- */
@media (prefers-reduced-motion: reduce){
  .js-reveal .reveal{ translate: none; }
  .shot__open:hover img{ transform: none; }
}

/* ---------- «Присоединяйтесь к нам»: золотая ссылка на группу ВКонтакте ---------- */
.prose__join{
  font-weight: 700;
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

a.prose__join:hover{
  color: #6E5220;
  text-decoration-color: var(--gold-ink);
}

/* ---------- золотые слова в тексте, например «Наша цель» ----------
   слова держатся вместе, а длинная золотая ссылка переносится,
   чтобы не вылезать за край на узком телефоне */
.prose__accent{ white-space: nowrap; }
.prose__accent{
  font-weight: 700;
  color: var(--gold-ink);
}

/* ---------- медиа в статьях ---------- */

/* подпись над видео: «Фильм», «Трейлер» */
.media__label{
  margin: 0 0 9px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* у видео стрелки внизу, у точек, чтобы не закрывать кнопки плеера */
.carousel--videos .carousel__btn{
  top: auto;
  bottom: -9px;
  margin-top: 0;
  width: 34px;
  height: 34px;
}
.carousel--videos .carousel__btn--prev{ left: calc(50% - 88px); }
.carousel--videos .carousel__btn--next{ right: calc(50% - 88px); }

/* подзаголовок внутри статьи */
.prose__h{
  margin: 1.6em 0 .55em;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.prose__h::after{
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.prose > .prose__h:first-child{ margin-top: 0; }

/* блоки внутри листа статьи: «Кто такой Раев», «Как снимали фильм», «Эковолонтёрская ёлка» */
.article__extra{
  max-width: 882px;
  margin: 46px auto 0;
  padding-top: 34px;
  border-top: 1px solid var(--hairline);
}

.article__extra .block__title{ font-size: clamp(21px, 2vw, 26px); margin-bottom: 18px; }
.block__lead{ margin: -4px 0 18px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* трейлер и фильм друг под другом */
.vstack + .vstack{ margin-top: 30px; }

/* ---------- у партнёра со ссылкой название золотое, как остальные ссылки ---------- */
.partner--link .partner__name{
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}

.partner--link:hover .partner__name{
  color: #6E5220;
  text-decoration-color: var(--gold-ink);
}

/* настоящий логотип лежит на белом, а не на серой заглушке */
.partner__logo--img{
  background: #fff;
  border: 1px solid var(--hairline);
}

.partner__logo--img img{ max-width: 84%; max-height: 84%; }


/* ============================================================
   ФИЛЬМ В РАБОТЕ: ДАТА ПРЕМЬЕРЫ ВМЕСТО ПЛЕЕРА
   ============================================================ */

.premiere{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #FCF8EF 0%, #F5ECDA 100%);
  border: 1px solid var(--gold-soft);
}

.premiere__ic{
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent, var(--brand));
  color: #fff;
  box-shadow: 0 4px 12px rgb(var(--tint) / .28);
}

.premiere__ic svg{ width: 28px; height: 28px; }
.premiere__body{ min-width: 0; }

.premiere__label{
  margin: 0 0 4px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.premiere__title{
  margin: 0;
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.premiere__text{
  margin: 8px 0 0;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ============================================================
   ПОДЕЛИТЬСЯ ФИЛЬМОМ
   ============================================================ */

.share{
  max-width: 648px;
  margin: 42px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.share__title{ margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.share__btns{ display: flex; flex-wrap: wrap; gap: 10px; }

.share__btn,
.contacts__link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.share__btn:hover,
.contacts__link:hover{ border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft); color: var(--gold-ink); }

.share__ic,
.contacts__ic{
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.share__ic svg{ width: 20px; height: 20px; }
.share__btn--vk .share__ic{ color: #0077FF; }
.share__btn--copy .share__ic{ color: var(--gold-ink); }
.share__btn.is-done,
.share__btn.is-done .share__ic{ border-color: #2E7D4F; color: #2E7D4F; }

/* ============================================================
   ТЕЛЕФОН И ПОЧТА: «МИССИЯ» И ОКНО «ПОДДЕРЖАТЬ»
   ============================================================ */

.contacts{
  max-width: 648px;
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contacts__ic{ background: var(--gold-soft); color: var(--gold-ink); }
.contacts__ic svg{ width: 15px; height: 15px; }


@media (max-width: 760px){
  .premiere{ flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .share{ margin-top: 32px; }
  .contacts__link{ font-size: 15px; }
}


/* ============================================================
   Правки 30.09.2026
   ============================================================ */

/* список в тексте статьи, например номинации «РАЕВских встреч» */
.prose__list{
  margin: 0 0 1.05em;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55em;
}

.prose__list li{
  position: relative;
  padding-left: 20px;
}

.prose__list li::before{
  content: "";
  position: absolute;
  left: 2px;
  top: .66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
}

/* подпись внизу карточки, например у «Земли Альшея» */
.card__note{
  margin: 11px 0 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--accent);
}

/* награды на «Миссии» */
.sheet--list{ padding-top: clamp(14px, 2vw, 22px); padding-bottom: clamp(14px, 2vw, 22px); }

.awards{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
}

.award{
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.award__year{
  font-weight: 700;
  color: var(--gold-ink);
}

.award__medal{ display: block; width: 19px; height: 19px; color: var(--gold); }
.award__medal svg{ width: 100%; height: 100%; }

/* о нас пишут */
.press{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14.5px;
}

.press__item{
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 17px 19px 19px;
  background: var(--card);
  border-radius: 14.5px;
  box-shadow: var(--shadow);
}

.press__src{
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-ink);
}

.press__title{
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

a.press__item:hover{ box-shadow: var(--shadow-hi); }

@media (max-width: 760px){
  .awards{ grid-template-columns: 1fr; }
  .press{ grid-template-columns: 1fr; gap: 10px; }
  .award{ font-size: 13.5px; grid-template-columns: 44px 1fr; }
}

/* текст по ширине, без переносов слов */
/* короткие строки в карточках и списке наград оставлены по левому краю,
   в узкой колонке выравнивание по ширине даёт широкие пробелы */
.prose p,
.prose__list li,
.person__text,
.docs-group__text{
  text-align: justify;
  -webkit-hyphens: manual;
          hyphens: manual;
}

/* нумерованные разделы в тексте, например номинации «РАЕВских встреч» */
.prose__list--num{ counter-reset: n; gap: .95em; }
.prose__list--num li{ counter-increment: n; padding-left: 40px; }
.prose__list--num li::before{
  content: counter(n);
  top: .05em;
  left: 0;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 27px;
  text-align: center;
}
.prose__list--num li > strong:first-child{ display: block; margin-bottom: 2px; }

/* награды на странице фильма */
.article__awards{ max-width: none; font-size: 15px; }
.article__awards li{ font-size: 15px; color: var(--ink); }

/* внутренние страницы чуть мельче главной */
body:not([data-page="home"]) main{ zoom: .93; }
@media (max-width: 760px){
  body:not([data-page="home"]) main{ zoom: .95; }
}
