/* Полноэкранная визуальная подача: изображения доминируют, интерфейс отступает. */

:root {
  /* Единая шкала: два уровня display, один уровень подзаголовка и стабильный body. */
  --type-display: clamp(4rem, 4.3vw, 5.25rem);
  --type-section: clamp(3rem, 3.5vw, 4.25rem);
  --type-subsection: clamp(1.5rem, 2vw, 2.25rem);
  --type-lead: clamp(1rem, 1.15vw, 1.125rem);
  --type-body: 1rem;
  --type-label: .75rem;
}

.hero h1,
.closing h2 {
  max-width: 100%;
  font-size: var(--type-display);
  line-height: .98;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

.route h2,
.story__head h2 {
  max-width: 100%;
  font-size: var(--type-section);
  line-height: 1;
  overflow-wrap: normal;
  hyphens: none;
}

.sequence__head h3,
.video-slot__copy h3 {
  font-size: var(--type-subsection);
  line-height: 1.08;
}

.hero__lead,
.route__lead,
.story__lead {
  font-size: var(--type-lead);
  line-height: 1.55;
}

.video-slot__copy p,
.story__all p {
  font-size: var(--type-body);
  line-height: 1.5;
}

.site-nav a,
.button,
.reveal-button {
  font-size: .875rem;
}

.eyebrow,
.story__index {
  font-size: var(--type-label);
}

.hero {
  position: relative;
  display: block;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  background: #e8ece9;
}

.hero__visual {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  background: #ccd5d1;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.012);
  transition: opacity 320ms var(--ease), visibility 320ms var(--ease), transform 900ms var(--ease);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 40, 82, .22), transparent 58%);
  pointer-events: none;
}

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

.hero__switcher {
  position: absolute;
  z-index: 5;
  right: var(--gutter);
  bottom: clamp(24px, 4vw, 56px);
  display: flex;
  align-items: stretch;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, .68);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 48px rgba(1, 40, 82, .16);
  backdrop-filter: blur(16px);
}

.hero__arrow,
.hero__tab {
  min-height: 68px;
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
}

.hero__arrow {
  width: 58px;
  padding: 0;
  font-size: 18px;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}

.hero__arrow:hover {
  background: var(--green);
  color: #fff;
}

.hero__tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
}

.hero__tab {
  position: relative;
  display: flex;
  min-width: 176px;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-inline: 1px solid var(--line);
  text-align: left;
}

.hero__tab + .hero__tab {
  border-left: 0;
}

.hero__tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease);
}

.hero__tab span {
  color: var(--orange);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.hero__tab strong {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero__tab.is-active::after {
  transform: scaleX(1);
}

.hero__tab:not(.is-active) {
  color: var(--muted);
}

.hero__copy {
  position: relative;
  z-index: 3;
  width: min(620px, 45vw);
  min-height: calc(100svh - 82px);
  margin-left: var(--gutter);
  padding: clamp(54px, 7vw, 110px) clamp(34px, 5vw, 76px);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.hero__brand-line {
  z-index: 4;
  right: auto;
  left: calc(var(--gutter) + min(620px, 45vw));
  height: 120px;
}

.principles {
  max-width: none;
  padding-inline: var(--gutter);
}

.route {
  grid-template-columns: .72fr .72fr 1.15fr;
  padding-block: clamp(72px, 8vw, 128px);
}

.story {
  padding: 0;
  background: #fff;
}

.story:nth-child(even) {
  background: #fff;
}

.story__inner {
  max-width: none;
}

.story__head {
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  width: min(100%, 1600px);
  min-height: 320px;
  margin: 0 auto;
  padding: clamp(64px, 7vw, 110px) var(--gutter) clamp(48px, 5vw, 80px);
}

.sequence {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--blue);
}

.sequence__grid {
  height: max(680px, calc(100svh - 82px));
  gap: 3px;
  background: #fff;
}

.sequence .visual-card {
  height: 100%;
  overflow: hidden;
  background: var(--blue);
}

.sequence .visual-card__image {
  height: 100%;
  aspect-ratio: auto;
}

.sequence .visual-card__image::after {
  content: "";
  position: absolute;
  inset: 48% 0 0;
  background: linear-gradient(transparent, rgba(1, 40, 82, .82));
  pointer-events: none;
}

.sequence .visual-card__image img {
  object-fit: cover;
}

.sequence .visual-card figcaption {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 22px 22px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
}

.sequence .visual-card figcaption strong {
  color: #fff;
}

.storyboard {
  height: max(720px, 100svh);
  margin: 3px 0 0;
  gap: 3px;
  background: #fff;
}

.storyboard--2 {
  height: max(620px, 86svh);
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.storyboard .visual-card__image::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(1, 40, 82, .78));
  pointer-events: none;
}

.storyboard .visual-card__plan {
  z-index: 2;
}

.storyboard .visual-card figcaption {
  z-index: 2;
  padding: 80px 28px 24px;
}

.video-slot {
  min-height: 100svh;
  margin: 3px 0 0;
  border: 0;
  grid-template-columns: minmax(0, 2.1fr) minmax(340px, .9fr);
}

.video-slot__poster {
  min-height: 100svh;
}

.video-slot__copy {
  padding-inline: clamp(40px, 6vw, 96px);
}

.story__all {
  min-height: 150px;
  margin: 0;
  padding: 40px var(--gutter);
  background: #fff;
}

.all-frames__grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px 0 0;
  background: #fff;
}

.all-frames .visual-card__image {
  height: min(76svh, 760px);
  aspect-ratio: auto;
}

.all-frames .visual-card figcaption {
  padding: 16px var(--gutter) 28px;
}

@media (max-width: 1180px) {
  .hero__copy {
    width: min(580px, 52vw);
  }

  .hero__brand-line {
    left: calc(var(--gutter) + min(580px, 52vw));
  }

  .story__head {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  :root {
    --type-display: clamp(2.875rem, 13vw, 3.75rem);
    --type-section: clamp(2.375rem, 10.5vw, 3.25rem);
    --type-subsection: clamp(1.375rem, 6.5vw, 2rem);
    --type-lead: 1rem;
  }

  .route {
    grid-template-columns: 1fr;
  }

  .route__nav {
    grid-column: auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
  }

  .hero__visual {
    position: relative;
    order: 1;
    height: 72svh;
    min-height: 520px;
  }

  .hero__switcher {
    right: 16px;
    bottom: 16px;
    left: 16px;
    min-height: 62px;
  }

  .hero__arrow,
  .hero__tab {
    min-height: 62px;
  }

  .hero__arrow {
    width: 48px;
    flex: 0 0 48px;
  }

  .hero__tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero__tab {
    min-width: 0;
    justify-content: center;
    padding: 0 10px;
  }

  .hero__tab strong {
    font-size: .6875rem;
  }

  .hero__copy {
    order: 2;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 58px 20px 68px;
    background: #fff;
  }

  .hero__brand-line {
    display: none;
  }

  .story__head {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 64px 20px 52px;
  }

  .sequence {
    overflow: hidden;
  }

  .sequence__grid {
    height: 82svh;
    min-height: 620px;
    gap: 3px;
  }

  .sequence__grid .visual-card {
    flex: 0 0 100%;
    height: 100%;
  }

  .sequence .visual-card figcaption {
    padding: 24px 18px 20px;
  }

  .storyboard,
  .storyboard--2 {
    height: 100svh;
    min-height: 720px;
    margin-top: 3px;
  }

  .storyboard--2 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .storyboard--2 .visual-card:first-child {
    grid-row: auto;
  }

  .video-slot {
    grid-template-columns: 1fr;
    min-height: 100svh;
  }

  .video-slot__poster {
    min-height: 60svh;
  }

  .story__all {
    min-height: 190px;
    padding: 38px 20px 44px;
  }

  .all-frames__grid {
    grid-template-columns: 1fr;
  }

  .all-frames .visual-card__image {
    height: 72svh;
    min-height: 520px;
  }

  .all-frames .visual-card figcaption {
    padding-inline: 20px;
  }
}

@media (max-width: 460px) {
  .route__nav {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    height: 66svh;
    min-height: 470px;
  }

  .hero__arrow {
    display: none;
  }

  .hero__tab {
    gap: 7px;
    padding-inline: 7px;
  }

  .hero__tab strong {
    letter-spacing: .035em;
  }

  .sequence__grid {
    height: 78svh;
    min-height: 560px;
  }

  .storyboard,
  .storyboard--2 {
    min-height: 660px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}
