:root {
  --body: "Jost", system-ui, sans-serif;
  --navy: #192236;
  --navy-mid: #263554;
  --ink-strong: #141821;
  --ink-soft: #2a2d33;
  --mute-hi: #484b52;
}

.photo { filter: none; }
.menu { will-change: transform; }

/* Логотип в шапке слева, выровнен по центру с кнопкой «Меню» */
.brand-logo {
  position: absolute;
  top: 20px;
  left: var(--pad);
  z-index: 12;
  height: 48px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.brand-logo img {
  height: 32px;
  width: auto;
  display: block;
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .brand-logo:hover {
    opacity: 0.78;
    transform: translate3d(0, -1px, 0);
  }
}

/* Спокойная многослойная анимация кнопки */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  height: 58px;
  padding: 0 7px 0 30px;
  background: var(--navy);
  will-change: transform;
  transition: box-shadow 0.45s var(--ease);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--navy-mid);
  transform: translateY(102%);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta__label { display: inline-block; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.cta__arrow {
  position: relative;
  overflow: hidden;
  width: 44px;
  height: 44px;
  color: var(--navy);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.cta__arrow svg { position: absolute; transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }
.cta__arrow svg:last-child { transform: translate(-140%, 140%); }
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .cta:hover { background: var(--navy); box-shadow: 0 12px 26px rgb(25 34 54 / 0.2); }
  .cta:hover::before { transform: translateY(0); }
  .cta:hover .cta__label { transform: translateX(3px); }
  .cta:hover .cta__arrow { transform: scale(1.05); }
  .cta:hover .cta__arrow svg:first-child { transform: translate(140%, -140%); }
  .cta:hover .cta__arrow svg:last-child { transform: translate(0, 0); }
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100svh;
  min-height: 640px;
}

/* Единственная верхняя горизонтальная направляющая */
.grid-rule-top {
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 6;
  background: rgb(20 24 33 / 0.1);
  pointer-events: none;
}

/* Левая колонка + единственная вертикальная линия раздела половин */
.hero__offer {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 2.8svh, 30px);
  padding: max(98px, 10.5svh) var(--pad) clamp(24px, 3.8svh, 40px);
  background: var(--paper);
  border-right: 1px solid rgb(20 24 33 / 0.11);
}

.promise {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 100%;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.promise__line {
  display: inline-block;
  white-space: nowrap;
  line-height: 0.96;
  font-size: clamp(32px, min(4.2vw, 6.8svh), 64px);
}
.promise__line + .promise__line { margin-top: 0.04em; }
.promise__bar {
  position: relative;
  overflow: hidden;
  display: inline-block;
  margin-top: 12px;
  padding: 0.12em 0.3em 0.08em;
  border-radius: 10px;
  background: var(--navy);
  color: #f4f3f0;
  font-weight: 500;
  font-size: clamp(22px, min(2.45vw, 4.2svh), 36px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.promise__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.16) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .promise__bar:hover { transform: translateY(-2px); }
  .promise__bar:hover::after { transform: translateX(120%); }
}

/* Интерактивные строки буллитов: плавный GPU-отклик */
.facts {
  max-width: 600px;
  list-style: none;
  font-weight: 400;
  font-size: clamp(14.5px, min(1.12vw, 1.92svh), 17px);
  line-height: 1.42;
  color: var(--ink-soft);
}
.facts li {
  position: relative;
  padding: clamp(8px, 1.15svh, 12px) 0;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}
.facts li:first-child { border-top: 1px solid var(--line); }
.fact__txt {
  display: block;
  will-change: transform;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1), color 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.facts li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: var(--navy);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 861px) and (hover: hover) and (pointer: fine) {
  .facts:hover li { opacity: 0.56; }
  .facts li:hover { opacity: 1; }
  .facts li:hover .fact__txt {
    color: var(--ink-strong);
    transform: translate3d(7px, 0, 0);
  }
  .facts li:hover::after { transform: scaleX(1); }
}

.cta { margin-top: clamp(0px, 0.5svh, 6px); }

/* Правая колонка: чистый студийный свет + зерно 3%, без внутренней рамки и крестиков */
.hero__author {
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #e5e5e2 0%, #d4d4cf 100%);
}

.studio-light {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 50% 35%, rgb(252 252 250 / 0.86) 0%, rgb(221 228 238 / 0.34) 48%, transparent 76%),
    radial-gradient(76% 78% at 50% 48%, transparent 56%, rgb(25 34 54 / 0.14) 100%);
  will-change: transform;
  animation: breathe 9s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: 0.86; } to { opacity: 1; } }

.hero__author::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.parallax-photo {
  position: absolute;
  inset: 0;
  z-index: 2;
  will-change: transform;
}
.author__stage {
  --clip-end: inset(-4% -6% 0 -6%);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.author__stage .photo {
  height: min(99svh, 66vw);
  width: auto;
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
}

.parallax-plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(20px, 2.8svh, 32px);
  z-index: 3;
  will-change: transform;
}
.nameplate {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  width: min(468px, calc(100% - 48px));
  padding: 20px 28px;
  border-radius: 18px;
  border: 1px solid rgb(255 255 255 / 0.72);
  background:
    radial-gradient(240px circle at var(--gx, 50%) var(--gy, 0%), rgb(255 255 255 / 0.55), transparent 65%),
    rgb(246 245 242 / 0.91);
  backdrop-filter: blur(18px) saturate(1.06);
  text-align: center;
}
.nameplate__name {
  font-weight: 400;
  font-size: clamp(23px, min(2.2vw, 3.7svh), 33px);
  line-height: 1.08;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-strong);
}
.nameplate__role {
  margin-top: 6px;
  font-weight: 400;
  font-size: clamp(15px, min(1.16vw, 1.98svh), 18px);
  line-height: 1.36;
  letter-spacing: 0.01em;
  color: var(--mute-hi);
}

.scroll-thread {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 10;
  width: 1px;
  height: 48px;
  background: rgb(25 34 54 / 0.18);
  overflow: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
}
.scroll-thread::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 18px;
  background: var(--navy);
  animation: threadDrop 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}
.is-scrolled .scroll-thread { opacity: 0; }
@keyframes threadDrop {
  0% { transform: translateY(-100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(270%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-light, .scroll-thread::after { animation: none !important; }
  .cta::before, .cta__label, .cta__arrow, .cta__arrow svg, .facts li, .facts li::after, .fact__txt, .promise__bar, .promise__bar::after, .brand-logo { transition: none !important; }
}

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; overflow-x: clip; }
  .hero__author, .hero__offer { min-width: 0; }
  .grid-rule-top, .scroll-thread { display: none; }
  .brand-logo img { height: 28px; }
  .hero__author { order: -1; height: 60svh; min-height: 400px; }
  .author__stage { inset: 48px 0 0 0; overflow: hidden; }
  .author__stage .photo { width: 100%; height: 100%; max-width: 100%; }
  .parallax-plate { bottom: 16px; }
  .nameplate { width: calc(100% - 32px); padding: 16px 20px; border-radius: 16px; }
  .nameplate__name { font-size: clamp(20px, 5.8vw, 28px); }
  .nameplate__role { font-size: 15px; }
  .hero__offer { border-right: 0; padding: 28px var(--pad) 72px; gap: 20px; }
  .promise { width: 100%; }
  .promise__bar { white-space: normal; font-size: clamp(18px, 5.2vw, 28px); }
  .facts { font-size: 15.5px; }
  .facts li { padding: 11px 0; }
}
