/* ==========================================================================
   Люди Бренды — hub page
   Design tokens taken from the live Tilda site (measured computed styles):
   bg #202020 / deep #0a0a0a / header #1a1a1a / hairlines #373737 #323232
   text #ffffff, muted #acacac #a6a6a6 #949494, accent #da3036
   font TildaSans, pill radii 30–50px, display 42px/300 uppercase
   ========================================================================== */

@font-face {
   font-family: "TildaSans";
   src: url("../fonts/TildaSans-VF.woff2") format("woff2-variations");
   font-weight: 250 1000;
   font-style: normal;
   font-display: swap;
}

:root {
   --bg: #202020;
   --bg-deep: #0a0a0a;
   --bg-header: #1a1a1a;
   --bg-card: #171717;
   --line: #373737;
   --line-soft: #323232;
   --fg: #ffffff;
   --muted: #acacac;
   --muted-2: #a6a6a6;
   --muted-3: #949494;
   --accent: #da3036;
   --accent-soft: #ec777b;
   --paper: #f2efe9;
   --paper-ink: #161616;
   --paper-muted: #5b5751;
   --container: 1200px;
   --gutter: 20px;
   --header-h: 96px;
   --grid-cols: 12;
   --r-card: 20px;
   --r-pill: 50px;
   --speed: 0.2s;
   --ease: ease-in-out;
}

*,
*::before,
*::after {
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   -webkit-text-size-adjust: 100%;
   background: var(--bg-deep);
}

body {
   margin: 0;
   background: var(--bg);
   color: var(--fg);
   font-family: "TildaSans", Arial, sans-serif;
   font-weight: 400;
   font-size: 20px;
   line-height: 1.4;
   -webkit-font-smoothing: antialiased;
   overflow-x: hidden;
}

@keyframes page-fade-in {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@media (prefers-reduced-motion: no-preference) {
   body {
      animation: page-fade-in 0.2s ease-out;
   }
}

/* Full-screen curtain used when a spectacle card is opened: the hub fades to
   the deep background for 0.22s, then the next page fades in from it. */
.page-transition {
   position: fixed;
   inset: 0;
   z-index: 300;
   background: var(--bg-deep);
   opacity: 0;
   pointer-events: none;
   transition: opacity 0.22s ease;
}

.page-transition.is-active {
   opacity: 1;
}

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

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

h1,
h2,
h3,
p,
ul {
   margin: 0;
}

ul {
   padding: 0;
   list-style: none;
}

:focus-visible {
   outline: 2px solid var(--accent);
   outline-offset: 3px;
}

/* keep anchor targets clear of the sticky header */
section[id],
footer[id] {
   scroll-margin-top: calc(var(--header-h) + 16px);
}

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

.skip-link {
   position: absolute;
   left: -9999px;
   top: 0;
   z-index: 200;
   background: var(--accent);
   color: #fff;
   padding: 12px 20px;
   border-radius: 0 0 12px 0;
}

.skip-link:focus {
   left: 0;
}

/* ============================ typography ============================ */

.eyebrow {
   font-size: clamp(18px, 1.55vw, 23px);
   font-weight: 600;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--accent);
}

.lead {
   font-size: clamp(21px, 1.55vw, 23px);
   font-weight: 300;
   line-height: 1.45;
   color: var(--fg);
   max-width: 46ch;
}

/* ============================ buttons ============================ */

.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   font-size: 18px;
   font-weight: 600;
   line-height: 1;
   gap: 10px;
   border-radius: 40px;
   padding: 24px 40px;
   border: 1px solid transparent;
   transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.btn__icon {
   display: block;
   flex: none;
   width: 1.1em;
   height: 1.1em;
}

.btn_sm {
   font-size: 16px;
   padding: 14px 24px;
   border-radius: var(--r-pill);
}

.btn_lg {
   padding: 28px 48px;
}

.btn_primary {
   background: var(--accent);
   color: #fff;
}

.btn_primary:hover {
   background: #fff;
   color: var(--bg-deep);
}

.btn_ghost {
   background: transparent;
   color: var(--accent);
   border-color: var(--accent);
}

.btn_ghost:hover {
   background: var(--accent);
   color: #fff;
}

/* ============================ announcement ============================ */

.announce {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 12px;
   min-height: 46px;
   padding: 8px 20px;
   background: #171717;
   border-bottom: 1px solid var(--line-soft);
   color: var(--muted);
   font-size: 15px;
   line-height: 1.2;
   text-align: center;
   transition: background-color var(--speed) var(--ease);
}

.announce__dot {
   flex: none;
   width: 7px;
   height: 7px;
   border-radius: 50%;
   background: var(--accent);
   box-shadow: 0 0 0 0 rgba(218, 48, 54, 0.55);
   animation: announce-pulse 2.8s ease-out infinite;
}

@keyframes announce-pulse {
   0% {
      box-shadow: 0 0 0 0 rgba(218, 48, 54, 0.55);
   }

   60% {
      box-shadow: 0 0 0 7px rgba(218, 48, 54, 0);
   }

   100% {
      box-shadow: 0 0 0 0 rgba(218, 48, 54, 0);
   }
}

.announce__label {
   color: var(--accent);
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   white-space: nowrap;
}

.announce__text {
   color: var(--fg);
   font-weight: 300;
   white-space: nowrap;
}

.announce__text strong {
   font-weight: 600;
}

.announce__arrow {
   color: var(--accent);
   transition: transform var(--speed) var(--ease);
}

.announce:hover {
   background: #1d1d1d;
}

.announce:hover .announce__arrow {
   transform: translateX(4px);
}

@media (max-width: 560px) {
   .announce {
      gap: 8px;
      padding: 8px 14px;
      font-size: 14px;
   }

   .announce__label {
      font-size: 11px;
      letter-spacing: 0.1em;
   }
}

@media (max-width: 479px) {
   .announce__venue {
      display: none;
   }
}

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

/* ============================ header ============================ */

.site-header {
   position: sticky;
   top: 0;
   z-index: 100;
   background: rgba(26, 26, 26, 0.92);
   backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--line-soft);
}

.site-header__inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 24px;
   min-height: var(--header-h);
}

.logo img {
   width: 168px;
   height: auto;
}

.nav {
   display: flex;
   align-items: center;
   gap: 32px;
}

html.menu-open body {
   overflow: hidden;
}

.nav__link {
   font-size: 18px;
   font-weight: 600;
   white-space: nowrap;
   color: var(--fg);
   transition: color var(--speed) var(--ease);
}

.nav__link:hover {
   color: var(--accent);
}

.nav__link_tel {
   color: var(--muted);
}

.burger {
   display: none;
   width: 44px;
   height: 44px;
   padding: 0;
   background: transparent;
   border: 1px solid var(--line);
   border-radius: 12px;
   cursor: pointer;
   position: relative;
}

.burger__line {
   position: absolute;
   left: 11px;
   width: 22px;
   height: 2px;
   background: var(--fg);
   transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.burger__line:first-child {
   top: 17px;
}

.burger__line:last-child {
   top: 25px;
}

.burger[aria-expanded="true"] .burger__line:first-child {
   transform: translateY(4px) rotate(45deg);
}

.burger[aria-expanded="true"] .burger__line:last-child {
   transform: translateY(-4px) rotate(-45deg);
}

/* ============================ hero ============================ */

.hero {
   position: relative;
   overflow: hidden;
   background: var(--bg);
   padding: 20px 0 0;
}

.hero__ring {
   position: absolute;
   top: -18%;
   left: 46%;
   width: min(1080px, 92vw);
   height: auto;
   opacity: 0.32;
   pointer-events: none;
}

.hero__inner {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
   align-items: center;
   gap: 48px;
   min-height: clamp(520px, 62vh, 720px);
}

.hero__content {
   position: relative;
   z-index: 2;
}

.hero__title {
   font-size: clamp(46px, 8.4vw, 104px);
   font-weight: 300;
   line-height: 0.98;
   letter-spacing: 0.005em;
   text-transform: uppercase;
   margin: 24px 0 28px;
}

/* Mobile-only forced line break in «Люди Бренды»; hidden on tablet/desktop. */
.hero__title-break {
   display: none;
}

.hero__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   margin: 40px 0 0;
}

.hero__facts {
   display: flex;
   flex-wrap: wrap;
   gap: 48px;
   margin: 56px 0 0;
   padding: 32px 0 0;
   border-top: 1px solid var(--line-soft);
}

.hero__facts li {
   display: flex;
   align-items: baseline;
   gap: 14px;
}

.hero__fact-num {
   font-size: 42px;
   font-weight: 300;
   line-height: 1;
   color: var(--accent);
}

.hero__fact-txt {
   font-size: 19px;
   font-weight: 400;
   line-height: 1.25;
   color: var(--muted);
}

.hero__visual {
   position: relative;
   display: flex;
   justify-content: center;
   align-items: flex-end;
   z-index: 1;
}

.hero__portrait {
   width: min(413px, 100%);
   height: auto;
   filter: grayscale(1) contrast(1.05);
}

/* ============================ sections ============================ */

.section {
   padding: clamp(64px, 9vw, 120px) 0;
}

/* The hero ends flush with its content; keep only a small gap before the
   first section header. */
.spectacles {
   padding-top: clamp(32px, 2.5vw, 40px);
}

/* Desktop: nudge the hero copy up so the gap under the header is halved.
   The section padding is reduced by the same amount, keeping the distance
   from the facts to «Афиша» unchanged. */
@media (min-width: 1025px) {
   .hero__content {
      top: -25px;
   }

   .spectacles {
      padding-top: calc(clamp(32px, 2.5vw, 40px) - 25px);
   }
}

.section__head {
   max-width: 760px;
}

.section__title {
   font-size: clamp(32px, 3.6vw, 46px);
   font-weight: 300;
   line-height: 1.1;
   text-transform: uppercase;
   margin: 20px 0 18px;
}

.section__note {
   font-size: clamp(20px, 1.5vw, 22px);
   font-weight: 300;
   color: var(--muted-2);
   max-width: 56ch;
}

/* ============================ spectacle cards ============================ */

.cards {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 24px;
   margin: 56px 0 0;
}

.card {
   position: relative;
   display: flex;
   flex-direction: column;
   height: 100%;
   padding: 40px 36px 36px;
   background: var(--bg-card);
   border: 1px solid var(--line-soft);
   border-radius: var(--r-card);
   overflow: hidden;
   transition: border-color var(--speed) var(--ease), background-color var(--speed) var(--ease), transform var(--speed) var(--ease);
}

.card:hover {
   border-color: var(--accent);
   background: #1d1d1d;
   transform: translateY(-6px);
}

.card_future {
   border-color: rgba(218, 48, 54, 0.55);
}

.card_future:hover {
   border-color: var(--accent);
}

.card__status.card__status_past {
   background: #2b2b2b;
   color: var(--muted-2);
}

.card__status {
   position: absolute;
   top: 26px;
   right: -44px;
   width: 176px;
   padding: 8px 0;
   background: var(--accent);
   color: #fff;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: 0.12em;
   line-height: 1;
   text-align: center;
   text-transform: uppercase;
   white-space: nowrap;
   transform: rotate(45deg);
   transform-origin: center;
}

.card__title {
   font-size: clamp(26px, 2.2vw, 34px);
   font-weight: 400;
   line-height: 1.15;
   margin: 22px 0 26px;
   padding-right: 48px;
}

.card__title span {
   color: var(--accent);
}

/* the diagonal status ribbon reaches this far down at four columns; start the
   title below it instead of letting the corner cut through the first line */
@media (min-width: 1200px) {
   .card__title {
      margin-top: 80px;
   }
}

.card__meta {
   display: flex;
   flex-direction: column;
   gap: 18px;
   margin-bottom: 26px;
}

.card__meta-item {
   display: flex;
   flex-direction: column;
   gap: 6px;
   font-size: 20px;
   font-weight: 400;
   color: var(--fg);
}

.card__meta-label {
   font-size: 16px;
   font-weight: 600;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--muted-3);
}

.card__cta {
   margin-top: auto;
   align-self: stretch;
}

/* ============================ partner band ============================ */

.partner {
   position: relative;
   overflow: hidden;
   background: linear-gradient(180deg,
         var(--bg) 0,
         var(--bg-deep) clamp(64px, 9vw, 120px),
         var(--bg-deep) calc(100% - clamp(64px, 9vw, 120px)),
         var(--bg) 100%);
}

.partner__inner {
   position: relative;
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   align-items: center;
   gap: 48px;
}

.partner__text .lead {
   margin-top: 20px;
   max-width: 58ch;
}

.partner__actions {
   display: flex;
   flex-direction: column;
   gap: 16px;
   min-width: 300px;
}

/* ============================ back to top ============================ */

.to-top {
   position: fixed;
   right: clamp(16px, 2.5vw, 32px);
   bottom: clamp(16px, 2.5vw, 32px);
   z-index: 95;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 56px;
   height: 56px;
   padding: 0;
   border: 1px solid rgba(255, 255, 255, 0.18);
   border-radius: 50%;
   background: rgba(26, 26, 26, 0.86);
   color: var(--fg);
   box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
   backdrop-filter: blur(12px);
   cursor: pointer;
   opacity: 0;
   visibility: hidden;
   pointer-events: none;
   transform: translateY(14px) scale(0.96);
   transition:
      opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s 0.35s,
      background-color var(--speed) var(--ease),
      border-color var(--speed) var(--ease),
      color var(--speed) var(--ease),
      box-shadow var(--speed) var(--ease);
}

.to-top.is-visible {
   opacity: 1;
   visibility: visible;
   pointer-events: auto;
   transform: none;
   transition:
      opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s 0s,
      background-color var(--speed) var(--ease),
      border-color var(--speed) var(--ease),
      color var(--speed) var(--ease),
      box-shadow var(--speed) var(--ease);
}

.to-top:hover {
   background: var(--accent);
   border-color: var(--accent);
   color: #fff;
   transform: translateY(-2px);
   box-shadow: 0 16px 36px rgba(218, 48, 54, 0.3);
}

.to-top:active {
   transform: scale(0.96);
}

.to-top svg {
   width: 20px;
   height: 20px;
}

@media (max-width: 560px) {
   .to-top {
      right: 16px;
      bottom: 16px;
      width: 50px;
      height: 50px;
   }
}

/* ============================ footer ============================ */

.site-footer {
   position: relative;
   overflow: hidden;
   background: var(--bg);
   padding: clamp(56px, 7vw, 96px) 0 40px;
}

/* Shared page grid: full-width square cells with aligned columns in the
   partner band and footer. Bottom-anchored, so the last visible row is whole. */
.partner::before,
.site-footer::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image:
      linear-gradient(to right, rgba(55, 55, 55, 0.45) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(55, 55, 55, 0.45) 1px, transparent 1px);
   background-size:
      calc(100vw / var(--grid-cols)) calc(100vw / var(--grid-cols));
   background-position: 0 100%;
   pointer-events: none;
   -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
   mask-image: linear-gradient(to bottom, transparent 0, #000 120px, #000 calc(100% - 120px), transparent 100%);
}

.site-footer__inner {
   position: relative;
}

.site-footer__portrait {
   display: none;
}

.site-footer__brand {
   margin-bottom: 48px;
}

.site-footer__brand img {
   width: 168px;
   height: auto;
}

.site-footer__cols {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 220px)) minmax(0, 1fr);
   gap: 40px;
   padding-top: 40px;
}

.contact__label {
   font-size: 22px;
   font-weight: 400;
   color: var(--muted);
   margin-bottom: 6px;
}

.contact__value {
   font-size: 22px;
   font-weight: 700;
   color: var(--accent);
}

.contact__value a {
   transition: color var(--speed) var(--ease);
}

.contact__value a:hover {
   color: var(--accent-soft);
}

.contact__text {
   font-size: 22px;
   font-weight: 400;
   line-height: 1.4;
   color: var(--fg);
}

.site-footer__copy {
   margin-top: 56px;
   padding-top: 24px;
   font-size: 17px;
   color: var(--muted-3);
}

/* ============================ designer programme slides ============================ */
/* The full designer slides on wide screens, taller readable crops of the same
   slides on phones; <picture> picks the source, no duplicated HTML programme. */

.programme-pdf {
   position: relative;
   display: block;
   background: linear-gradient(180deg, var(--bg-deep), var(--bg) 10%, var(--bg) 90%, var(--bg-deep));
}

/* The first and last slides used to sit on a hard black edge against the grey
   hub. These veils fade the deck into the page colour instead. */
.programme-pdf::before,
.programme-pdf::after {
   content: "";
   position: absolute;
   right: 0;
   left: 0;
   z-index: 2;
   height: clamp(96px, 16vw, 240px);
   pointer-events: none;
}

.programme-pdf::before {
   top: 0;
   background: linear-gradient(to bottom, var(--bg), transparent);
}

.programme-pdf::after {
   bottom: 0;
   background: linear-gradient(to top, var(--bg), transparent);
}

.pdf-slide {
   position: relative;
   margin: 0;
}

.pdf-slide picture,
.pdf-slide__frame {
   position: relative;
   display: block;
   overflow: hidden;
}

.pdf-slide img {
   display: block;
   width: 100%;
   height: auto;
}

/* The deck's outer slides also fade into the page, so the first black card
   does not cut into the grey hero and the last one does not cut into «Афиша». */
.pdf-slide:first-child::before,
.pdf-slide:last-child::after {
   content: "";
   position: absolute;
   right: 0;
   left: 0;
   z-index: 3;
   height: clamp(80px, 12vw, 180px);
   pointer-events: none;
}

.pdf-slide:first-child::before {
   top: 0;
   background: linear-gradient(to bottom, var(--bg), transparent);
}

.pdf-slide:last-child::after {
   bottom: 0;
   background: linear-gradient(to top, var(--bg), transparent);
}

/* soft fades turn the deck stack into one continuous, breathing flow */
.pdf-slide picture::before,
.pdf-slide picture::after,
.pdf-slide__frame::before,
.pdf-slide__frame::after {
   content: "";
   position: absolute;
   right: 0;
   left: 0;
   z-index: 1;
   height: clamp(14px, 1.6vw, 26px);
   pointer-events: none;
}

.pdf-slide picture::before,
.pdf-slide__frame::before {
   top: 0;
   background: linear-gradient(to bottom, var(--bg-card), transparent);
}

.pdf-slide picture::after,
.pdf-slide__frame::after {
   bottom: 0;
   background: linear-gradient(to top, var(--bg-card), transparent);
}

.pdf-slide figcaption {
   padding: 18px 20px 28px;
   font-size: 15.6px;
   font-weight: 600;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--muted-3);
}

/* The frame wraps the whole slide so the caption is positioned against the
   art itself; the picture inside already paints the fades. */
.pdf-slide_why .pdf-slide__frame::before,
.pdf-slide_why .pdf-slide__frame::after {
   display: none;
}

/* The caption hangs under the photo block of the slide: the box matches the
   photo's edges (64.2% … 95.6% of the art), so centring lands on the photo
   rather than on the whole slide. nowrap keeps it one centred line. */
.pdf-slide_why figcaption {
   position: absolute;
   top: 78.6%;
   right: 4.4%;
   left: 64.2%;
   z-index: 2;
   margin: 0;
   padding: 0;
   text-align: center;
   white-space: nowrap;
}

/* ============================ programme sections ============================ */

.display {
   font-size: clamp(38px, 5vw, 68px);
   font-weight: 300;
   line-height: 1;
   letter-spacing: 0.005em;
   text-transform: uppercase;
}

.display_xl {
   font-size: clamp(44px, 6.6vw, 92px);
}

.story,
.values,
.help,
.why {
   padding: clamp(56px, 7vw, 96px) 0;
}

.story__inner {
   display: grid;
   grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
   align-items: center;
   gap: clamp(32px, 6vw, 88px);
}

/* Text first in the DOM for mobile reading order; on desktop the photo sits
   in the left column and the copy in the right one. */
.story__inner>.story__body {
   grid-column: 2;
   grid-row: 1;
}

.story__inner>.story__media {
   grid-column: 1;
   grid-row: 1;
}

.story__media {
   margin: 0;
   border-radius: 24px;
   overflow: hidden;
   aspect-ratio: 4 / 5;
   background: var(--bg-card);
}

.story__media img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.story__media_round {
   width: min(100%, 520px);
   justify-self: center;
   border-radius: 50%;
   aspect-ratio: 1;
}

.story__body .display {
   margin: 14px 0 24px;
}

.story__quote {
   margin: 0;
   padding: clamp(24px, 3vw, 40px);
   border: 1px solid var(--accent);
   border-radius: 20px;
   font-size: clamp(22px, 2vw, 30px);
   font-weight: 300;
   line-height: 1.35;
}

.story__text {
   margin-top: 20px;
   font-size: clamp(18px, 1.5vw, 21px);
   font-weight: 300;
   line-height: 1.5;
   color: var(--muted);
}

.story__text+.story__text {
   margin-top: 14px;
}

.values .display_xl {
   margin-top: 14px;
}

.values__inner {
   display: grid;
   grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
   align-items: start;
   gap: clamp(32px, 6vw, 88px);
   margin-top: clamp(32px, 4vw, 56px);
}

.values__text p {
   font-size: clamp(22px, 1.8vw, 25px);
   font-weight: 300;
   line-height: 1.45;
   color: var(--muted-2);
}

.values__text p+p {
   margin-top: 20px;
}

.values__text .values__lead {
   font-size: clamp(24px, 2.2vw, 30px);
   color: var(--fg);
}

.values__media {
   aspect-ratio: 4 / 5;
}

.values__media img {
   object-position: 0% 50%;
}

.help {
   background: var(--paper);
   color: var(--paper-ink);
}

.help .display {
   color: var(--paper-ink);
}

.help__inner {
   display: grid;
   grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
   align-items: center;
   gap: clamp(32px, 6vw, 88px);
}

.help__list {
   display: grid;
   gap: 14px;
   margin-top: 32px;
}

.help__list li {
   position: relative;
   padding-left: 28px;
   font-size: clamp(20px, 1.6vw, 23px);
   font-weight: 400;
   line-height: 1.35;
}

.help__list li::before {
   content: "";
   position: absolute;
   left: 0;
   top: 0.55em;
   width: 10px;
   height: 10px;
   border-radius: 50%;
   background: var(--accent);
}

.help__label {
   margin-top: 40px;
   font-size: 17px;
   font-weight: 600;
   letter-spacing: 0.1em;
   text-transform: uppercase;
   color: var(--paper-muted);
}

.help__pills {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-top: 16px;
}

.help__pills li {
   padding: 12px 20px;
   border: 1px solid rgba(22, 22, 22, 0.35);
   border-radius: 50px;
   font-size: 17px;
   line-height: 1;
}

.help__media {
   display: grid;
   grid-template-columns: repeat(2, minmax(0, 1fr));
   align-items: start;
   gap: 16px;
}

.help__photo {
   margin: 0;
}

.help__photo-frame {
   overflow: hidden;
   aspect-ratio: 4 / 5;
   border-radius: 20px;
   background: var(--bg-card);
}

.help__photo-frame img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.help__photo figcaption {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-top: 14px;
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--paper-muted);
}

.help__photo_offset {
   margin-top: 56px;
}

.why__inner {
   display: grid;
   grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
   align-items: start;
   gap: clamp(32px, 6vw, 88px);
}

.why__list {
   margin-top: clamp(28px, 4vw, 48px);
}

.why__item {
   position: relative;
   display: grid;
   grid-template-columns: 20px minmax(0, 1fr);
   gap: 18px;
   padding: 24px 0;
}

.why__item:first-child {
   border-top: 1px solid var(--line-soft);
}

.why__item::after {
   content: "";
   position: absolute;
   right: 0;
   bottom: 0;
   left: 0;
   height: 1px;
   background: var(--line-soft);
   transform: scaleX(0);
   transform-origin: left;
   transition: transform 0.9s cubic-bezier(0.22, 0.75, 0.25, 1);
   transition-delay: calc(var(--i, 0) * 70ms + 120ms);
}

.why__item.is-in::after {
   transform: scaleX(1);
}

.why__dot {
   width: 10px;
   height: 10px;
   margin-top: 0.65em;
   border-radius: 50%;
   background: var(--accent);
}

.why__item p {
   font-size: clamp(24px, 2.4vw, 34px);
   font-weight: 300;
   line-height: 1.2;
}

.why__media {
   position: sticky;
   top: calc(var(--header-h) + 40px);
   margin: 0;
}

.why__media-frame {
   overflow: hidden;
   aspect-ratio: 3 / 2;
   border-radius: 24px;
   background: var(--bg-card);
}

.why__media-frame img {
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.why__media figcaption {
   margin-top: 16px;
   font-size: 15.6px;
   font-weight: 600;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--muted-3);
}

/* ============================ placeholder pages ============================ */
/* Used by the not-yet-ported spectacle pages (kazan/, ufa/, ufa-2026/, partner/). */

.placeholder {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 24px;
   max-width: 760px;
   padding: clamp(64px, 12vh, 140px) 0 clamp(80px, 14vh, 160px);
}

.placeholder__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   margin-top: 8px;
}

.placeholder__contacts {
   margin-top: 24px;
   padding-top: 24px;
   border-top: 1px solid var(--line-soft);
   font-size: 21px;
   color: var(--muted);
}

.placeholder__contacts a {
   color: var(--accent);
   font-weight: 700;
}

/* ============================ motion ============================ */

/* The hero entrance is CSS-only: html.motion is set by a tiny inline script in
   <head>, so the copy is visible when JS is off or motion is reduced. */
html.motion .hero [data-enter] {
   opacity: 0;
   transform: translate3d(0, 26px, 0);
   animation: heroIn 0.8s cubic-bezier(0.22, 0.75, 0.25, 1) forwards;
}

html.motion .hero [data-enter]:nth-child(1) {
   animation-delay: 0.04s;
}

html.motion .hero [data-enter]:nth-child(2) {
   animation-delay: 0.12s;
}

html.motion .hero [data-enter]:nth-child(3) {
   animation-delay: 0.2s;
}

html.motion .hero [data-enter]:nth-child(4) {
   animation-delay: 0.28s;
}

html.motion .hero [data-enter]:nth-child(5) {
   animation-delay: 0.36s;
}

html.motion .hero__portrait {
   opacity: 0;
   transform: translate3d(0, 32px, 0) scale(1.03);
   animation: heroIn 0.9s cubic-bezier(0.22, 0.75, 0.25, 1) 0.18s forwards;
}

@keyframes heroIn {
   to {
      opacity: 1;
      transform: none;
   }
}

/* Scroll reveals are enabled only after the observer is running (html.js-reveal),
   so a script failure never hides content. */
html.js-reveal .reveal {
   opacity: 0;
   transform: translate3d(0, 28px, 0);
   transition: opacity 0.8s cubic-bezier(0.22, 0.75, 0.25, 1), transform 0.8s cubic-bezier(0.22, 0.75, 0.25, 1);
   transition-delay: calc(var(--i, 0) * 70ms);
}

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

html.js-reveal .reveal_img img {
   clip-path: inset(0 0 100% 0);
   transition: clip-path 1s cubic-bezier(0.22, 0.75, 0.25, 1);
   transition-delay: calc(var(--i, 0) * 90ms);
}

html.js-reveal .reveal_img.is-in img {
   clip-path: inset(0);
}

html.js-reveal .reveal_img figcaption {
   opacity: 0;
   transform: translateY(8px);
   transition: opacity 0.6s ease-out, transform 0.6s ease-out;
   transition-delay: calc(var(--i, 0) * 90ms + 200ms);
}

html.js-reveal .reveal_img.is-in figcaption {
   opacity: 1;
   transform: none;
}

[data-parallax] {
   overflow: hidden;
}

[data-parallax] img {
   will-change: transform;
}

/* ============================ responsive ============================ */

@media (max-width: 1199px) {
   .cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }
}

@media (max-width: 1024px) {
   .hero__inner {
      grid-template-columns: minmax(0, 1fr);
      gap: 68px;
   }

   .hero__visual {
      order: -1;
      justify-content: flex-start;
   }

   .hero__portrait {
      width: min(300px, 60%);
   }

   .cards {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .partner__inner {
      grid-template-columns: minmax(0, 1fr);
   }

   .partner__actions {
      flex-direction: row;
      flex-wrap: wrap;
      min-width: 0;
   }
}

@media (max-width: 1279px) {

   /* The phone slide carries its caption inside the art. */
   .pdf-slide_why figcaption {
      display: none;
   }
}

@media (min-width: 1280px) {
   .programme-pdf {
      padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px);
   }

   .pdf-slide {
      max-width: 1560px;
      margin: 0 auto clamp(24px, 2.5vw, 40px);
      padding: clamp(8px, 1vw, 16px);
      overflow: hidden;
      border: 1px solid var(--line-soft);
      border-radius: 24px;
      background: var(--bg-card);
   }

   .pdf-slide:last-child {
      margin-bottom: 0;
   }

   .pdf-slide picture,
   .pdf-slide__frame {
      border-radius: clamp(14px, 1.2vw, 20px);
   }
}

@media (max-width: 1279px) {
   .programme-pdf {
      padding: 24px 16px;
      background: var(--bg);
   }

   .pdf-slide {
      margin: 0 0 20px;
      padding: 8px;
      overflow: hidden;
      border: 1px solid var(--line-soft);
      border-radius: 20px;
      background: var(--bg-card);
   }

   .pdf-slide:last-child {
      margin-bottom: 0;
   }

   .pdf-slide picture,
   .pdf-slide__frame {
      border-radius: 14px;
   }

   .pdf-slide img {
      width: 100%;
      border-radius: 0;
   }

   .pdf-slide figcaption {
      padding: 14px 12px 10px;
      background: transparent;
   }
}

@media (max-width: 960px) {
   :root {
      --header-h: 78px;
      --grid-cols: 8;
   }

   .logo img {
      width: 136px;
      height: auto;
   }

   .site-footer__brand img {
      width: 150px;
   }

   .burger {
      display: block;
   }

   .nav {
      position: fixed;
      inset: var(--header-h) 0 auto 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      gap: 6px;
      height: calc(100vh - var(--header-h));
      height: calc(100dvh - var(--header-h));
      padding: clamp(28px, 8vh, 72px) var(--gutter) 48px;
      overflow-y: auto;
      overscroll-behavior: contain;
      background: #171717;
      border-bottom: 1px solid var(--line-soft);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(-12px);
      transition:
         opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
         transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
         visibility 0s 0.4s;
   }

   .nav.is-open {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: none;
      transition:
         opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1),
         transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
         visibility 0s 0s;
   }

   .nav__link {
      width: 100%;
      padding: 16px 0;
      font-size: 20px;
      font-weight: 500;
      text-align: center;
      border: 0;
      opacity: 0;
      transform: translateY(14px);
      transition:
         opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
         transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
         color var(--speed) var(--ease);
   }

   .nav__link_tel {
      color: var(--accent-soft);
   }

   .nav .btn {
      width: min(280px, 100%);
      margin-top: 28px;
      opacity: 0;
      transform: translateY(14px);
      transition:
         opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
         transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
         background-color var(--speed) var(--ease),
         color var(--speed) var(--ease);
   }

   .nav.is-open .nav__link,
   .nav.is-open .btn {
      opacity: 1;
      transform: none;
   }

   .nav.is-open .nav__link:nth-child(1) {
      transition-delay: 0.06s;
   }

   .nav.is-open .nav__link:nth-child(2) {
      transition-delay: 0.12s;
   }

   .nav.is-open .nav__link:nth-child(3) {
      transition-delay: 0.18s;
   }

   .nav.is-open .nav__link:nth-child(4) {
      transition-delay: 0.24s;
   }

   .nav.is-open .btn {
      transition-delay: 0.32s;
   }

   .cards {
      grid-template-columns: minmax(0, 1fr);
   }

   .site-footer__cols {
      grid-template-columns: minmax(0, 1fr);
      gap: 28px;
   }
}

@media (max-width: 560px) {
   :root {
      --grid-cols: 4;
   }

   /* The bust moves from the footer to the top-right of the first screen:
      it sits beside the two-line wordmark and fades out before the lead.
      `top` is negative because the art carries ~8% transparent top padding;
      this puts its visible hairline ~24px under the header. */
   .hero__visual {
      display: flex;
      position: absolute;
      top: -12px;
      right: -12px;
      z-index: 0;
      pointer-events: none;
   }

   /* The art's chin sits at 55% and the broken collar at 62%, so the mask
      dissolves the neck base and shards without cutting the face. */
   .hero__portrait {
      width: clamp(128px, 40vw, 152px);
      -webkit-mask-image: linear-gradient(to bottom, #000 56%, transparent 78%);
      mask-image: linear-gradient(to bottom, #000 56%, transparent 78%);
   }

   /* One detached chip floats left of the neck (x 26–29%, y 61–64% of the
      art) and no vertical fade can drop it without also cutting the chin.
      Punch it out; browsers without mask compositing keep the plain fade. */
   @supports (mask-composite: intersect) {
      .hero__portrait {
         -webkit-mask-image:
            linear-gradient(to bottom, #000 56%, transparent 78%),
            radial-gradient(circle 9px at 27.5% 62.4%, transparent 0 40%, #000 100%);
         mask-image:
            linear-gradient(to bottom, #000 56%, transparent 78%),
            radial-gradient(circle 9px at 27.5% 62.4%, transparent 0 40%, #000 100%);
         mask-composite: intersect;
      }
   }

   .hero .eyebrow {
      max-width: 196px;
   }

   .hero__title {
      margin-top: 16px;
   }

   .hero__title-break {
      display: inline;
   }

   .hero__inner {
      min-height: 0;
   }

   .site-footer__portrait {
      display: block;
      position: absolute;
      top: 0;
      right: 0;
      width: min(170px, 38vw);
      pointer-events: none;
      z-index: 0;
   }

   .site-footer__portrait img {
      display: block;
      width: 100%;
      height: auto;
      filter: grayscale(1) contrast(1.05);
   }

   .site-footer__brand,
   .site-footer__cols,
   .site-footer__copy {
      position: relative;
      z-index: 1;
   }

   /* Trimmed so «БЛАГОТВОРИТЕЛЬНЫЕ» clears the bust's left edge at 320–390. */
   .hero .eyebrow {
      font-size: clamp(12px, 4.2vw, 17px);
      letter-spacing: 0.1em;
   }

   body {
      font-size: 18px;
   }

   .hero__title {
      letter-spacing: 0;
   }

   .hero__facts {
      gap: 28px;
      margin-top: 40px;
   }

   .hero__fact-num {
      font-size: 34px;
   }

   .hero__actions .btn,
   .partner__actions .btn {
      width: 100%;
   }

   .partner__actions {
      flex-direction: column;
   }

   .card {
      padding: 32px 24px;
   }

   .contact__label,
   .contact__value,
   .contact__text {
      font-size: 20px;
   }
}


@media (max-width: 960px) {

   .story__inner,
   .values__inner,
   .help__inner,
   .why__inner {
      grid-template-columns: minmax(0, 1fr);
      gap: 40px;
   }

   .story__inner>.story__body,
   .story__inner>.story__media {
      grid-column: auto;
      grid-row: auto;
   }

   .story__media,
   .values__media {
      max-width: 520px;
   }

   .story__media_round {
      width: min(70vw, 380px);
   }

   .help__media {
      max-width: 560px;
   }

   .why__media {
      position: static;
      max-width: none;
   }
}

@media (max-width: 560px) {
   .display {
      font-size: clamp(32px, 9vw, 44px);
   }

   .display_xl {
      font-size: clamp(28px, 8.2vw, 40px);
   }

   .story,
   .values,
   .help,
   .why {
      padding: 56px 0;
   }

   .story__quote {
      padding: 24px;
      font-size: 21px;
   }

   .story__media_round {
      width: min(78vw, 300px);
   }

   .values__text p {
      font-size: 18px;
   }

   .help__list li {
      font-size: 18px;
   }

   .help__label {
      margin-top: 32px;
      font-size: 15px;
   }

   .help__pills li {
      padding: 10px 16px;
      font-size: 15px;
   }

   .help__photo_offset {
      margin-top: 0;
   }

   .why__item {
      grid-template-columns: 14px minmax(0, 1fr);
      gap: 12px;
      padding: 20px 0;
   }

   .why__item p {
      font-size: 22px;
   }

   .why__dot {
      width: 8px;
      height: 8px;
   }
}

@media (max-width: 360px) {
   .hero__title {
      font-size: 40px;
   }
}

@media (prefers-reduced-motion: reduce) {
   html {
      scroll-behavior: auto;
   }

   *,
   *::before,
   *::after {
      animation-duration: 0.001ms !important;
      transition-duration: 0.001ms !important;
   }

   .reveal,
   .reveal_img,
   .reveal_img img,
   .reveal_img figcaption {
      opacity: 1;
      transform: none;
      clip-path: none;
   }

   html.motion .hero [data-enter],
   html.motion .hero__portrait {
      opacity: 1;
      transform: none;
      animation: none;
   }
}

/* messenger actions in the hub partner band */
.partner__messengers {
   display: flex;
   flex-direction: column;
   gap: 16px;
}

@media (max-width: 1200px) {
   .partner__messengers {
      flex-direction: row;
      flex-wrap: wrap;
   }
}

@media (max-width: 560px) {
   .partner__messengers {
      flex-direction: column;
   }

   .partner__messengers .btn {
      width: 100%;
   }
}

/* permanent policy link in the footer */
.site-footer__copy a {
   color: var(--muted-2);
   text-decoration: underline;
   text-underline-offset: 3px;
   text-decoration-color: rgba(172, 172, 172, 0.5);
   transition: color var(--speed) var(--ease), text-decoration-color var(--speed) var(--ease);
}

.site-footer__copy a:hover,
.site-footer__copy a:focus-visible {
   color: var(--accent-soft);
   text-decoration-color: var(--accent-soft);
}
