/* ==========================================================================
   /ufa-nov-2026/ — «Счастливый путь» landing hero
   Everything else is reused from main.css (sections, header, footer, motion).
   ========================================================================== */

.show-hero {
   position: relative;
   overflow: hidden;
   background: var(--bg-deep);
   padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 88px);
}

.show-hero::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 0;
   background-image:
      linear-gradient(to right, rgba(55, 55, 55, 0.35) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(55, 55, 55, 0.35) 1px, transparent 1px);
   background-size: calc(100vw / var(--grid-cols)) calc(100vw / var(--grid-cols));
   background-position: 0 100%;
   pointer-events: none;
}

.show-hero::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 0;
   background: radial-gradient(55% 55% at 78% 8%, rgba(218, 48, 54, 0.2), transparent 70%);
   pointer-events: none;
}

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

.story {
   background-color: var(--bg);
   background-image: linear-gradient(180deg, var(--bg-deep) 0, var(--bg) clamp(56px, 7vw, 96px));
}

.help {
   background-color: var(--paper);
   background-image: linear-gradient(180deg, var(--bg) 0, var(--paper) clamp(56px, 7vw, 96px));
}

.why {
   background-color: var(--bg);
   background-image: linear-gradient(180deg, var(--paper) 0, var(--bg) clamp(56px, 7vw, 96px));
}

.show-hero__back {
   margin-bottom: 24px;
}

.show-hero__art {
   display: none;
}

/* Phones and tablets get the Toratau mark in the empty top-right corner: the
   wide layout parks the art behind the copy, where it would sit under the
   two-line title. */
@media (max-width: 1279px) {
   .show-hero__art {
      display: block;
      position: absolute;
      top: -4px;
      right: -4px;
      z-index: -1;
      width: clamp(96px, 30vw, 144px);
      aspect-ratio: 1;
      background: url("../img/story/hero-toratau-480.webp") no-repeat right top / contain;
      opacity: 0.92;
      pointer-events: none;
   }

   /* Keep the two-word label on two lines so the corner stays free for the art. */
   .show-hero .eyebrow {
      max-width: 300px;
   }
}

@media (min-width: 1280px) {
   .show-hero__art {
      display: block;
      position: absolute;
      top: -30px;
      right: -200px;
      z-index: -1;
      width: 700px;
      aspect-ratio: 1;
      background: url("../img/story/hero-toratau-1000.webp") no-repeat right top / contain;
      pointer-events: none;
   }
}


.show-hero__title {
   margin: clamp(24px, 3vw, 40px) 0 0;
   line-height: 0;
}

.show-hero__title img {
   display: block;
   width: min(1100px, 100%);
   height: auto;
}

.show-hero__sub {
   margin-top: 20px;
   font-size: clamp(20px, 2vw, 28px);
   font-weight: 300;
   color: var(--muted);
}

.show-hero__line {
   max-width: 62ch;
   margin-top: 28px;
   font-size: clamp(18px, 1.5vw, 21px);
   font-weight: 300;
   line-height: 1.45;
   color: var(--muted-2);
}

.show-hero__facts {
   display: flex;
   flex-wrap: wrap;
   gap: 12px;
   margin-top: 32px;
}

.show-hero__facts li {
   padding: 14px 22px;
   border: 1px solid var(--line);
   border-radius: 50px;
   font-size: 18px;
   font-weight: 400;
   line-height: 1;
   color: var(--fg);
}

.show-hero__facts li:first-child {
   border-color: var(--accent);
   color: var(--accent-soft);
}

/* The venue pill is a link: the ::after overlay makes the whole pill the hit
area, so a thumb can hit the border and not only the words. */
.show-hero__fact_venue {
   position: relative;
   transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.show-hero__fact_venue a {
   color: inherit;
}

.show-hero__fact_venue a::after {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
}

.show-hero__fact_venue:hover,
.show-hero__fact_venue:focus-within {
   border-color: var(--muted-2);
   color: var(--fg);
}

.show-hero__fact_arrow {
   margin-left: 8px;
   color: var(--muted-3);
}

.show-hero__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   margin-top: 32px;
}

/* ---------- title partner ---------- */

.title-partner {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   gap: clamp(32px, 6vw, 80px);
   margin-top: clamp(44px, 6vw, 72px);
   padding-top: clamp(24px, 3vw, 32px);
   border-top: 1px solid var(--line-soft);
}

.title-partner__main {
   min-width: 0;
}

.title-partner__label,
.partners__label {
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.14em;
   line-height: 1.3;
   text-transform: uppercase;
   color: var(--muted-3);
}

.title-partner__logo {
   width: min(420px, 82vw);
   height: auto;
   margin-top: 18px;
}

.title-partner__caption {
   margin-top: 14px;
   font-size: 16px;
   font-weight: 300;
   color: var(--muted-2);
}

.title-partner__project {
   flex: none;
   padding-bottom: 2px;
}

.title-partner__project img {
   width: 168px;
   height: auto;
   margin-top: 12px;
}

/* ---------- partner board ---------- */

.partners {
   padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
   background: var(--bg);
   text-align: center;
}

.partners__head {
   max-width: 760px;
   margin: 0 auto clamp(28px, 4vw, 44px);
}

.partners__title {
   font-size: clamp(36px, 4.4vw, 58px);
}

.partners__tier {
   margin-top: clamp(36px, 4vw, 52px);
}

.partners__tier_plain {
   margin-top: clamp(24px, 3vw, 32px);
}

.partners__row {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   justify-content: center;
   gap: 14px;
   margin-top: 18px;
}

.partners__row_lg {
   gap: 24px;
}

.partners__row_sm {
   gap: 12px;
   max-width: 1060px;
   margin-left: auto;
   margin-right: auto;
}

.partner-card {
   display: flex;
   flex: none;
   align-items: center;
   justify-content: center;
   background: #fff;
   border-radius: 10px;
   box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

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

.partner-card_dark {
   background: #0b0b0b;
}

.partner-card_md {
   width: 380px;
   height: 210px;
   padding: 24px 32px;
}

.partner-card_lg {
   width: calc((100% - 96px) / 5);
   height: 190px;
   padding: 22px 24px;
}

.partner-card_sm {
   width: 140px;
   height: 92px;
   padding: 12px 16px;
}


/* ---------- partnership invitation ---------- */

.show-cta {
   position: relative;
   overflow: hidden;
   padding: clamp(72px, 9vw, 128px) 0;
   background-color: var(--bg-deep);
   background-image: linear-gradient(180deg, var(--bg) 0, rgba(32, 32, 32, 0) clamp(72px, 9vw, 128px));
}

.show-cta::before {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 0;
   background-image:
      linear-gradient(to right, rgba(55, 55, 55, 0.35) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(55, 55, 55, 0.35) 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%);
}

.show-cta::after {
   content: "";
   position: absolute;
   inset: 0;
   z-index: 0;
   background: radial-gradient(45% 60% at 88% 55%, rgba(218, 48, 54, 0.16), transparent 70%);
   pointer-events: none;
}

.show-cta__inner {
   position: relative;
   z-index: 1;
   display: grid;
   grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
   align-items: center;
   gap: clamp(40px, 7vw, 96px);
}

.show-cta__title {
   margin-top: 16px;
   font-size: clamp(48px, 6vw, 88px);
   line-height: 0.95;
}

.show-cta__lead {
   max-width: 54ch;
   margin-top: 24px;
   color: var(--muted);
}

.show-cta__facts {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 24px;
   margin-top: 40px;
   padding-top: 28px;
   border-top: 1px solid var(--line-soft);
}

.show-cta__facts li {
   display: flex;
   flex-direction: column;
   gap: 8px;
}

.show-cta__facts span {
   font-size: clamp(34px, 3.6vw, 52px);
   font-weight: 300;
   line-height: 1;
   color: var(--accent);
}

.show-cta__facts small {
   font-size: 15px;
   line-height: 1.35;
   color: var(--muted-2);
}

.show-cta__actions {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
   margin-top: 36px;
}

.show-cta__media {
   margin: 0;
}

.show-cta__media-frame {
   overflow: hidden;
   aspect-ratio: 4 / 5;
   border-radius: 24px;
   outline: 1px solid rgba(218, 48, 54, 0.45);
   outline-offset: 8px;
   background: var(--bg-card);
}

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

.show-cta__media figcaption {
   margin-top: 20px;
   font-size: 13px;
   font-weight: 600;
   letter-spacing: 0.12em;
   text-transform: uppercase;
   color: var(--muted-3);
}

@media (max-width: 1080px) {
   .partner-card_lg {
      width: min(270px, calc((100% - 48px) / 3));
   }
}

@media (max-width: 960px) {
   .show-cta__inner {
      grid-template-columns: minmax(0, 1fr);
   }

   .show-cta__media {
      width: min(360px, 70vw);
      margin: 0 auto;
   }
}

@media (max-width: 1000px) {
   .partners__row_sm {
      max-width: 640px;
   }

   .partner-card_sm {
      width: calc((100% - 36px) / 4);
      height: 88px;
   }
}

@media (max-width: 760px) {
   .partner-card_lg {
      width: min(270px, calc((100% - 24px) / 2));
   }

   .title-partner {
      flex-direction: column;
      align-items: flex-start;
      gap: 30px;
   }

   .title-partner__project img {
      width: 140px;
   }
}

@media (max-width: 560px) {
   .show-hero {
      padding: 32px 0 56px;
   }

   .show-hero__back {
      margin-bottom: 18px;
   }

   .show-hero__facts {
      flex-direction: column;
      align-items: flex-start;
   }

   .show-hero__actions .btn {
      width: 100%;
   }

   .partner-card_md {
      width: 100%;
      max-width: 380px;
      height: 200px;
   }

   .partner-card_lg {
      width: 100%;
      max-width: 340px;
      height: 180px;
   }

   .partner-card_sm {
      width: calc((100% - 10px) / 2);
      max-width: 140px;
      height: 84px;
      padding: 10px 12px;
   }

   .partners__row_sm {
      gap: 10px;
      max-width: 300px;
   }

   .show-cta {
      padding: 64px 0;
   }

   .show-cta__inner {
      grid-template-columns: minmax(0, 1fr);
      gap: 40px;
   }

   .show-cta__facts {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
   }

   .show-cta__facts span {
      font-size: 30px;
   }

   .show-cta__facts small {
      font-size: 12px;
   }

   .show-cta__actions .btn {
      width: 100%;
   }
}

/* 320-360px: the venue pill has to stay one line under the corner art. */
@media (max-width: 360px) {
   .show-hero .eyebrow {
      font-size: 16px;
   }

   .show-hero__facts li {
      padding: 12px 16px;
      font-size: 16px;
   }

   .show-hero__fact_arrow {
      margin-left: 6px;
   }
}


/* The show's black CTA hands over to the grey footer without a seam. */
.site-footer_show {
   background-image: linear-gradient(180deg, var(--bg-deep) 0, rgba(32, 32, 32, 0) clamp(56px, 7vw, 96px));
}


/* The compact show menu is exactly the three navigation links and the phone;
   the «Стать партнёром» pill stays in the desktop header only. */
@media (max-width: 960px) {
   .nav .btn {
      display: none;
   }
}

/* ---------- actors and creators ---------- */

.cast {
   padding: clamp(64px, 8vw, 104px) 0 clamp(56px, 7vw, 88px);
   background: var(--bg);
}

.cast__head {
   display: grid;
   grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.75fr);
   align-items: end;
   gap: clamp(28px, 5vw, 72px);
   padding-bottom: clamp(24px, 3vw, 36px);
   border-bottom: 1px solid var(--line-soft);
}

.cast__title {
   display: block;
   width: min(760px, 100%);
   height: auto;
}

.cast__intro {
   max-width: 36ch;
   color: var(--muted-2);
   font-size: clamp(16px, 1.35vw, 19px);
   line-height: 1.5;
}

.cast__grid {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: clamp(28px, 4vw, 52px) clamp(18px, 2.4vw, 32px);
   margin-top: clamp(32px, 4vw, 52px);
   list-style: none;
}

.cast__photo {
   overflow: hidden;
   aspect-ratio: 1;
   border-radius: 24px;
   background: var(--bg-card);
}

.cast__photo img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   object-position: 50% 30%;
   transition: transform 0.9s var(--ease);
}

.cast__card:hover .cast__photo img {
   transform: scale(1.04);
}

.cast__name {
   margin-top: 18px;
   font-size: clamp(22px, 2vw, 28px);
   font-weight: 300;
   line-height: 1.1;
   letter-spacing: 0.01em;
   text-transform: uppercase;
}

.cast__surname {
   color: var(--accent);
}

.cast__role {
   margin-top: 10px;
   color: var(--muted-2);
   font-size: clamp(15px, 1.15vw, 17px);
   line-height: 1.45;
}

@media (max-width: 960px) {
   .cast__head {
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
   }

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

@media (max-width: 560px) {
   .cast__photo {
      border-radius: 20px;
   }

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

   .cast__title {
      width: 100%;
   }
}

/* Portraits that need the crown of the head kept in frame. */
.cast__card_focus-top .cast__photo img {
   object-position: 50% 0%;
}

/* Shuvalov: pull the full-length shot to the same bust scale as Peshchur. */
.cast__card_zoom .cast__photo img {
   transform: scale(1.32);
   transform-origin: 50% 6%;
}

.cast__card_zoom:hover .cast__photo img {
   transform: scale(1.36);
}

/* Tukhzhilova: centre the round backdrop in the square frame. */
.cast__card_circle .cast__photo img {
   object-position: 50% 37%;
}

/* Akhmetshina: a touch closer while the crown of the hair stays put. */
.cast__card_soft-zoom .cast__photo img {
   transform: scale(1.12);
   transform-origin: 50% 0%;
}

.cast__card_soft-zoom:hover .cast__photo img {
   transform: scale(1.16);
}

/* Tukhzhilova: circle centre exactly on the frame centre. */
.cast__card_circle .cast__photo img {
   object-position: 50% 39%;
}

/* Akhmetshina: a touch higher, keeping the top of the hair visible. */
.cast__card_soft-zoom .cast__photo img {
   object-position: 50% 2.5%;
}

/* Akhmetshina: hair crown right at the top edge, never clipped. */
.cast__card_soft-zoom .cast__photo img {
   object-position: 50% 10%;
}

/* Akhmetshina: crown at the very top edge. */
.cast__card_soft-zoom .cast__photo img {
   object-position: 50% 20%;
}

.show-cta__messengers {
   display: flex;
   flex-wrap: wrap;
   gap: 16px;
}

@media (max-width: 560px) {
   .show-cta__messengers {
      width: 100%;
   }
}

/* ---------- persistent mobile purchase bar ---------- */

.ticket-bar {
   display: none;
}

@media (max-width: 960px) {
   .ticket-bar {
      position: fixed;
      right: 12px;
      bottom: calc(12px + env(safe-area-inset-bottom));
      left: 12px;
      z-index: 90;
      display: flex;
      align-items: center;
      gap: 10px;
      min-height: 56px;
      padding: 12px 20px;
      border-radius: 18px;
      background: var(--accent);
      color: #fff;
      font-size: 18px;
      font-weight: 600;
      line-height: 1;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      transform: translateY(12px);
      transition:
         opacity 0.28s var(--ease),
         transform 0.28s var(--ease),
         background-color var(--speed) var(--ease),
         color var(--speed) var(--ease),
         visibility 0s 0.28s;
   }

   .ticket-bar.is-visible {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transform: none;
      transition-delay: 0s;
   }

   .ticket-bar__icon {
      display: block;
      flex: none;
      width: 22px;
      height: 22px;
   }

   .ticket-bar__arrow {
      margin-left: auto;
      font-size: 20px;
      line-height: 1;
   }

   .site-footer {
      padding-bottom: 104px;
   }
}

@media (max-width: 960px) and (hover: hover) {

   .ticket-bar:hover,
   .ticket-bar:focus-visible {
      background: #fff;
      color: var(--bg-deep);
   }
}

@media (max-width: 960px) {
   .ticket-bar:focus-visible {
      outline: 2px solid #fff;
      outline-offset: 3px;
   }
}

@media (max-width: 960px) and (prefers-reduced-motion: reduce) {
   .ticket-bar {
      transition: none;
   }
}
