/* «Свой путь»: фон и один общий персонаж, текст и действие — обычный HTML. */
.path-home {
  --hero-paper: #f2e7d2;
  --hero-gutter: 32px;
  --hero-overlap: 120px;
  background-image: url('assets/hero-path-paper.webp');
  background-repeat: repeat-x;
  background-size: 192px var(--header-offset);
}
.path-home .site-header:not(.is-scrolled) { background: transparent; }
.path-home .site-header:not(.is-scrolled) .brand img { mix-blend-mode: multiply; }
.flow-concept .hero.hero--path {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: max(700px, calc(100svh - var(--header-offset) - var(--hero-overlap)));
  margin: 0;
  padding: 0;
  background: var(--hero-paper) url('assets/hero-path-paper.webp') repeat;
}
.flow-concept .hero--path .hero-copy.shell {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  padding: 42px var(--hero-gutter) 40px;
}
.flow-concept .hero--path h1 {
  max-width: min(42vw, 540px);
  font-size: clamp(42px, 4.25vw, 60px);
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: initial;
}
.hero--path .hero-title-copy { display: block; }
.hero--path .hero-kicker { margin-bottom: 18px; color: var(--color-body); }
.hero--path .hero-points { max-width: 540px; margin-top: 28px; }
.hero--path .hero-method { max-width: min(42vw, 500px); color: var(--color-body); }
.hero--path .hero-join {
  display: inline-flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 52px;
  margin-top: 22px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--color-action);
  color: var(--color-on-action);
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease;
}
.hero--path .hero-join:hover { background: var(--color-action-pressed); }
.flow-concept .hero--path .hero-art {
  position: absolute;
  z-index: 0;
  top: calc(-1 * var(--header-offset));
  right: 0;
  width: 100%;
  height: calc(100% + var(--header-offset) + max(var(--hero-overlap), calc(var(--wave-height) / 2)));
  max-width: none;
  margin: 0;
  overflow: hidden;
  container-type: size;
  background: var(--hero-paper) url('assets/hero-path-paper.webp') repeat;
  pointer-events: none;
  user-select: none;
}
/* Холст равен нарисованной сцене: проценты персонажа не зависят от полей object-fit. */
.hero--path .hero-art-canvas {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 150cqh);
  aspect-ratio: 3 / 2;
}
.hero--path .hero-picture { display: block; width: 100%; height: 100%; }
.flow-concept .hero--path .hero-art .hero-landscape {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: fill;
  mix-blend-mode: normal;
  transform: none;
}
.flow-concept .hero--path .hero-art .hero-person {
  position: absolute;
  left: 65.5%;
  top: 68.4%;
  width: auto;
  height: 8.2%;
  max-width: none;
  object-fit: contain;
  mix-blend-mode: normal;
  transform: translateX(-50%);
}
/* Верх волны прозрачен; та же бумага и рисунок продолжаются до криволинейного края. */
.path-home #example { background-color: transparent; }
.path-home #example::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: calc(var(--wave-height) / 2) 0 0;
  background: var(--color-surface-soft);
}
.path-home #example > .flow-opening .flow-canvas { fill: transparent; }
@media (min-width: 1360px) {
  .path-home { --hero-gutter: max(32px, calc((100vw - min(82.4vw, 1280px)) / 2)); }
  .path-home .site-header.shell { padding-inline: var(--hero-gutter); }
}
@media (min-width: 1200px) and (min-aspect-ratio: 2/1) {
  .hero--path .hero-art-canvas { mask-image: linear-gradient(to right, transparent, #000 16%); }
}
@media (min-width: 768px) and (max-width: 1199px) {
  .flow-concept .hero--path h1 { max-width: min(58vw, 540px); }
  .hero--path .hero-method { max-width: min(56vw, 500px); }
}
@media (max-width: 1023px) {
  .path-home { --hero-overlap: 0px; }
  .path-home .site-header .login { background: var(--color-surface-soft); border-color: var(--color-hairline); }
  .hero--path .hero-art-canvas {
    top: auto;
    right: auto;
    bottom: 0;
    left: 0;
    width: max(100%, 50cqh);
    aspect-ratio: 1 / 2;
  }
  .flow-concept .hero--path .hero-art .hero-person {
    left: 58.9%;
    top: 78.9%;
    height: 8.2%;
  }
}
@media (max-width: 767px) {
  .path-home { --hero-gutter: 24px; }
  .flow-concept .hero.hero--path {
    min-height: calc(200vw - var(--header-offset));
    padding-bottom: max(240px, 15rem, 62vw);
  }
  .flow-concept .hero--path .hero-copy.shell { padding-top: 32px; padding-bottom: 0; }
  .flow-concept .hero--path h1 {
    max-width: 100%;
    font-size: clamp(32px, 8.2vw, 36px);
    line-height: 1.18;
    letter-spacing: -.02em;
  }
  .path-home .site-header:not(.is-scrolled) .brand { position: relative; isolation: isolate; }
  .path-home .site-header:not(.is-scrolled) .brand::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -6px -16px -6px -8px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    box-shadow: 0 0 10px 6px var(--color-surface-soft);
    pointer-events: none;
  }
  .hero--path .hero-kicker { position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin-bottom: 14px; letter-spacing: 0; }
  .hero--path .hero-kicker::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -3px -8px;
    border-radius: 3px;
    background: var(--hero-paper);
    box-shadow: 0 0 5px 3px var(--hero-paper);
    pointer-events: none;
  }
  .hero--path .hero-points { margin-top: 18px; font-size: 16px; }
  .hero--path .hero-method { max-width: calc(100% - 40px); }
  .hero--path .hero-join { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero--path .hero-join { transition: none; }
}
