/* ============================================================
   Семён Романов — сайт-визитка
   Дизайн-система: "Металл, а не неон"
   Монохром + один акцент (тёплая сталь). Воздух, факты, цифры.
   ============================================================ */

:root{
  --paper:    #F3F1EC;
  --surface:  #FBFAF7;
  --graphite: #1C1B19;
  --gray:     #6E6B65;
  --hairline: rgba(28,27,25,.12);
  --rust:     #A8512A;
  --rust-deep:#6E2F14;

  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --r: 6px;
  --r-lg: 14px;

  --measure: 680px;   /* колонка текста */
  --wrap: 880px;      /* обёртка страницы */

  --gap-section: 96px;
  --pad-x: 24px;

  --ease: cubic-bezier(.2,.6,.2,1);
}

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

html{ scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--graphite);
  font-family:var(--sans);
  font-weight:400;
  font-size:16px;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  overflow-x:hidden;
}

/* колонка контента, выровнена влево, центрирована на странице */
.wrap{
  max-width:var(--measure);
  margin:0 auto;
  padding:0 var(--pad-x);
}

/* ============================================================
   ПОЯВЛЕНИЯ ПРИ СКРОЛЛЕ — единый спокойный fade-up
   ============================================================ */
.reveal{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
  will-change:opacity, transform;
}
.reveal.in{ opacity:1; transform:none; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   БЛОК 0 — ПЕРВЫЙ ЭКРАН
   Две зоны: текст слева, портрет справа (bleed за правый край),
   текст слегка наложен на левый край фото.
   ============================================================ */
.hero{
  position:relative;
  min-height:100svh;
  display:flex;
  align-items:center;
  overflow:hidden;
}

/* портрет — выходит за правый край экрана */
.hero-photo{
  position:absolute;
  top:0;
  right:-4vw;
  bottom:0;
  width:46vw;
  max-width:720px;
  z-index:1;
}
.hero-photo image-slot{
  width:100%;
  height:100%;
  display:block;
  /* тёплый приглушённый фильтр под гамму сайта — не жёсткий ч/б */
  filter:saturate(.62) sepia(.20) contrast(.98) brightness(1.02);
}
/* лёгкий подъём при загрузке */
.hero-photo[data-rise]{
  opacity:0;
  transform:translateY(24px);
  transition:opacity 1s var(--ease) .35s, transform 1.1s var(--ease) .35s;
}
.hero-photo[data-rise].in{ opacity:1; transform:none; }

.hero-wrap{
  position:relative;
  z-index:2;
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 var(--pad-x);
  width:100%;
}
.hero-text{
  position:relative;
  max-width:560px;
  padding:48px 0;
}
/* плашка-бумага только под текстом, обрывается по правому краю текста —
   на фото не заходит */
.hero-text::before{
  content:"";
  position:absolute;
  inset:0 0 0 -100vw;
  background:var(--paper);
  z-index:-1;
}

.hero-name{
  margin:0;
  font-weight:800;
  font-size:clamp(48px, 8.5vw, 88px);
  line-height:.98;
  letter-spacing:-0.03em;
  color:var(--graphite);
}
.hero-role{
  margin:24px 0 0;
  font-weight:500;
  font-size:clamp(18px,2.4vw,22px);
  line-height:1.35;
  color:var(--graphite);
}
.hero-fact{
  margin:24px 0 0;
  max-width:38ch;
  font-size:17px;
  line-height:1.7;
  color:var(--gray);
  text-wrap:pretty;
}

/* staggered лесенка при загрузке */
.hero .reveal[data-step]{
  opacity:0;
  transform:translateY(16px);
  transition:opacity .7s var(--ease), transform .7s var(--ease);
}
.hero .reveal[data-step].in{ opacity:1; transform:none; }
.hero .reveal[data-step="1"].in{ transition-delay:.05s; }
.hero .reveal[data-step="2"].in{ transition-delay:.22s; }
.hero .reveal[data-step="3"].in{ transition-delay:.40s; }
.hero .reveal[data-step="4"].in{ transition-delay:.70s; }

/* указатель «листай вниз» */
.scroll-hint{
  position:absolute;
  left:50%;
  bottom:28px;
  transform:translateX(-50%);
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.scroll-hint__label{
  font-family:var(--mono);
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gray);
}
.scroll-hint__line{
  width:1px;
  height:40px;
  background:var(--hairline);
  position:relative;
  overflow:hidden;
}
.scroll-hint__line::after{
  content:"";
  position:absolute;
  left:0; top:-40px;
  width:1px; height:40px;
  background:var(--rust);
  animation:hint 2.4s var(--ease) infinite;
}
@keyframes hint{
  0%   { transform:translateY(0); }
  60%  { transform:translateY(80px); }
  100% { transform:translateY(80px); }
}
@media (prefers-reduced-motion: reduce){
  .scroll-hint__line::after{ animation:none; }
}

/* ============================================================
   СЕКЦИИ
   ============================================================ */
.block{
  padding-top:var(--gap-section);
}
.block:last-of-type{ padding-bottom:var(--gap-section); }

/* заголовок блока: тонкая линия во всю ширину контента + заголовок */
.sec-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:24px;
  padding-top:24px;
  border-top:1px solid var(--hairline);
  margin-bottom:48px;
}
.sec-title{
  margin:0;
  font-weight:700;
  font-size:22px;
  line-height:1.2;
  letter-spacing:-0.01em;
  color:var(--graphite);
}
.sec-kicker{
  font-family:var(--mono);
  font-weight:500;
  font-size:13px;
  letter-spacing:.04em;
  color:var(--rust);
  white-space:nowrap;
}
/* блок 3 — намеренно негромкий заголовок */
.sec-head--quiet{
  border-top:none;
  padding-top:0;
  margin-bottom:32px;
}
.sec-title--quiet{
  font-weight:500;
  font-size:18px;
  color:var(--gray);
}

/* проза */
.prose{ max-width:var(--measure); }
.prose p{
  margin:0 0 20px;
  font-size:17px;
  line-height:1.75;
  text-wrap:pretty;
}
.prose p:last-child{ margin-bottom:0; }

/* ============================================================
   БЛОК 1 — строка трансформации
   ============================================================ */
.transform{ margin-top:48px; }
.transform__row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:20px;
  font-family:var(--mono);
  font-weight:700;
  line-height:1;
}
.t-num{
  font-size:clamp(40px,8vw,64px);
  letter-spacing:-0.03em;
  color:var(--rust);
}
.t-num--from{ color:var(--rust); opacity:.5; }
.t-unit{
  font-size:.42em;
  font-weight:500;
  color:var(--gray);
  letter-spacing:0;
}
.t-arrow{
  font-family:var(--mono);
  font-size:clamp(28px,5vw,44px);
  color:var(--gray);
  line-height:1;
}
.transform__cap{
  margin-top:16px;
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.02em;
  color:var(--gray);
}

/* ============================================================
   БЛОК 2 — шарнир
   ============================================================ */
.prose--past{ color:var(--gray); }
.prose--past p{ color:var(--gray); }
.prose--now p{ color:var(--graphite); }

.inline-num{
  font-family:var(--mono);
  font-weight:500;
  color:var(--rust);
  white-space:nowrap;
}

.hinge{
  margin:48px 0;
  max-width:var(--measure);
  font-weight:500;
  font-size:clamp(20px,2.8vw,26px);
  line-height:1.35;
  letter-spacing:-0.01em;
  color:var(--graphite);
}

/* ============================================================
   БЛОК 3 — врезка + результаты
   ============================================================ */
.inset{
  margin:0 0 40px;
  padding:4px 0 4px 24px;
  border-left:3px solid var(--rust);
  border-radius:0;
  max-width:var(--measure);
  font-size:18px;
  line-height:1.7;
  color:var(--graphite);
  text-wrap:pretty;
}

.results{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:18px;
}
.result{
  display:flex;
  align-items:baseline;
  gap:18px;
  font-family:var(--mono);
  font-weight:500;
  font-size:24px;
  line-height:1;
}
.result .r-from{ color:var(--gray); min-width:64px; }
.result .r-arrow{ color:var(--gray); }
.result .r-to{ color:var(--graphite); font-weight:700; min-width:64px; }
.result .r-label{
  font-family:var(--sans);
  font-weight:400;
  font-size:15px;
  color:var(--gray);
  letter-spacing:0;
}

/* финальный удар — 5000 крупно */
.result-big{ margin-top:40px; }
.result-big__row{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:20px;
  font-family:var(--mono);
  font-weight:700;
  line-height:1;
}
.rb-from{
  font-size:clamp(28px,5vw,40px);
  color:var(--gray);
  letter-spacing:-0.02em;
}
.rb-arrow{
  font-size:clamp(24px,4vw,36px);
  color:var(--gray);
}
.rb-to{
  font-size:clamp(56px,11vw,96px);
  color:var(--rust);
  letter-spacing:-0.03em;
}
.result-big__cap{
  margin-top:16px;
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.02em;
  color:var(--gray);
}

/* ============================================================
   БЛОК 4 — две двери
   ============================================================ */
.block--final{ padding-bottom:var(--gap-section); }

.doors{
  margin-top:48px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
}
.door{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:24px;
}
.door__lead{
  margin:0;
  font-size:16px;
  line-height:1.7;
  color:var(--gray);
  text-wrap:pretty;
}
.door .btn{ margin-top:auto; }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 24px;
  border-radius:var(--r);
  font-family:var(--sans);
  font-weight:500;
  font-size:16px;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  border:1.5px solid transparent;
  transition:background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease);
}
.btn-primary{
  background:var(--graphite);
  color:var(--paper);
  border-color:var(--graphite);
}
.btn-primary:hover{ background:#000; border-color:#000; }
.btn-secondary{
  background:transparent;
  color:var(--graphite);
  border-color:var(--graphite);
}
.btn-secondary:hover{ background:var(--graphite); color:var(--paper); }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer{
  padding:48px 0;
}
.footer__name{
  font-weight:800;
  font-size:20px;
  letter-spacing:-0.02em;
  color:var(--graphite);
}
.footer__rule{
  height:1px;
  background:var(--hairline);
  margin:20px 0;
}
.footer__links{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
}
.footer__links a{
  font-family:var(--mono);
  font-size:13px;
  color:var(--gray);
  text-decoration:none;
  transition:color .18s var(--ease);
}
.footer__links a:hover{ color:var(--rust); }

/* ============================================================
   АДАПТИВ — МОБАЙЛ
   фото сверху на всю ширину (bleed), текст под ним
   ============================================================ */
@media (max-width: 860px){
  :root{ --gap-section:64px; }

  .hero{
    flex-direction:column;
    align-items:stretch;
    min-height:auto;
    overflow:hidden;
  }
  .hero-photo{
    position:relative;
    right:auto; top:auto; bottom:auto;
    width:100vw;
    margin-left:calc(50% - 50vw);
    height:62vh;
    max-width:none;
    z-index:1;
  }
  .hero-wrap{ padding-bottom:48px; }
  .hero-text{
    max-width:none;
    padding:28px 0 0;
    margin-top:-48px; /* лёгкое наложение на нижний край фото плашкой-бумагой */
  }
  .hero-text::before{
    inset:0 -100vw -100vh -100vw;
    background:var(--paper);
  }
  .hero-name{ font-size:clamp(44px,14vw,64px); }
  .hero-fact{ max-width:none; }

  .scroll-hint{ display:none; }
}

@media (max-width: 480px){
  .transform__row{ gap:14px; }
  .result{ font-size:20px; }
  .result .r-from,
  .result .r-to{ min-width:52px; }
  .doors{ grid-template-columns:1fr; gap:40px; }
  .door{ width:100%; }
  .door .btn{ width:100%; }
}
