/* Палитра и шрифты — всё оформление задаётся здесь (вариант «белый и синий», выбран 30.10.2026) */
:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --ink: #0e1b2c;
  --muted: #586476;
  --accent: #2350e6;
  --accent-hover: #1a40c2;
  --on-accent: #ffffff;
  --warm: #b45309;
  --line: rgba(14, 27, 44, 0.12);
  --glow: rgba(35, 80, 230, 0.10);
  --tread: #2350e6;
  --font: "Onest", system-ui, sans-serif;
  --font-display: var(--font);
  --w-body: 400;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 88% -8%, var(--glow), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Шапка ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 22px; padding-bottom: 22px;
}
.mark {
  font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none;
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 1.5px solid var(--accent); border-radius: 12px; color: var(--accent);
}
.nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 32px); font-size: 15px; font-weight: 400; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a, .lang span { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; }
.lang span { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- Первый экран ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(28px, 5vw, 72px); align-items: end;
  padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 9vw, 112px);
}
.name {
  margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 0.88; letter-spacing: -0.045em;
  font-size: clamp(64px, 12.5vw, 168px);
}
.name span { display: block; }
/* Фамилия сдвинута на ступень — тот же мотив, что у лестницы карьеры */
.name span + span { padding-left: 0.62em; }
.lead {
  margin: clamp(24px, 3vw, 36px) 0 0; max-width: 30ch;
  font-size: clamp(21px, 2.3vw, 28px); line-height: 1.32; font-weight: 400; letter-spacing: -0.01em;
}
.sub { margin: 18px 0 0; max-width: 52ch; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font: inherit; font-size: 16px; font-weight: 500; text-decoration: none;
  border: 1.5px solid var(--line); color: var(--ink); transition: background-color .15s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn-main { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-main:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn svg { width: 19px; height: 19px; flex: none; }

.portrait { margin: 0; justify-self: end; width: 100%; max-width: 420px; }
.portrait img { border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.portrait figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.portrait figcaption svg { width: 16px; height: 16px; color: var(--warm); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .portrait { justify-self: start; max-width: 230px; grid-row: 1; }
  .portrait img { border-radius: 22px; }
}

/* ---------- Разделы ---------- */
.section {
  padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px);
  /* разделитель по ширине контента, а не всего блока с полями */
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.h2 {
  margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(36px, 5.4vw, 68px); max-width: 16ch;
}
.intro { margin: 18px 0 0; max-width: 56ch; color: var(--muted); }

/* ---------- Лестница карьеры ---------- */
.stairs {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end;
}
.step { display: flex; flex-direction: column; justify-content: flex-end; }
.step-text { padding: 0 4px 16px; }
.year { display: block; font-size: 14px; font-weight: 500; color: var(--warm); font-variant-numeric: tabular-nums; }
.co { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
.role { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: var(--muted); }
.win { display: block; margin-top: 10px; font-size: 14px; line-height: 1.4; }
.win b { font-weight: 600; color: var(--accent); }
.tread {
  height: calc(36px + var(--i) * 34px);
  border-radius: 10px 10px 0 0;
  background: linear-gradient(180deg, var(--tread), color-mix(in srgb, var(--tread) 35%, var(--bg)));
  border-top: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
  transform-origin: bottom;
}
.step.now .tread { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 25%, var(--bg))); border-top-color: var(--accent); }

/* Одно движение на странице: ступени вырастают по очереди */
.js .stairs .tread { transform: scaleY(0); }
.js .stairs.is-in .tread { transform: scaleY(1); transition: transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 90ms); }
@media (prefers-reduced-motion: reduce) {
  .js .stairs .tread, .js .stairs.is-in .tread { transform: none; transition: none; }
}

@media (max-width: 960px) {
  .stairs { grid-template-columns: 1fr; gap: 26px; }
  .step { flex-direction: column-reverse; }
  .step-text { padding: 12px 0 0; }
  .tread { height: 10px; width: calc(22% + var(--i) * 13%); border-radius: 0 6px 6px 0; border-top: 0; }
  .js .stairs .tread { transform: scaleX(0); transform-origin: left; }
  .js .stairs.is-in .tread { transform: scaleX(1); }
}

/* ---------- Проекты ---------- */
.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: clamp(36px, 5vw, 56px); }
.tile {
  display: flex; flex-direction: column; background: var(--surface); border-radius: 24px;
  padding: clamp(18px, 2vw, 24px); border: 1px solid var(--line);
}
.shot { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; width: 100%; margin-bottom: 22px; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.tile.wide { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: center; margin-top: clamp(36px, 5vw, 56px); }
.tile.wide .shot { margin-bottom: 0; }
.tile-body { display: flex; flex-direction: column; height: 100%; justify-content: center; }
.tile.wide h3 { font-size: 30px; }
.tile.wide p { font-size: 16.5px; }
.tile-head { display: flex; align-items: center; gap: 14px; }
.logo {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #fff; background: var(--c, var(--tread));
}
.tile h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.what { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.35; }
.tile p { margin: 14px 0 0; font-size: 15.5px; line-height: 1.55; }
.tile-foot { margin-top: auto; padding-top: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.state { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.state.closed::before { background: var(--warm); }
.state.paused::before { background: transparent; border: 1.5px solid var(--muted); }
.go { min-height: 42px; padding: 0 18px; font-size: 15px; }

@media (max-width: 860px) { .tile.wide { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .featured { grid-template-columns: 1fr; } }

.inside { margin-top: clamp(40px, 5vw, 56px); }
.inside h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.inside > p { margin: 0; color: var(--muted); font-size: 15px; }
.rows { list-style: none; margin: 18px 0 0; padding: 0; }
.rows li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; gap: 8px 28px; align-items: baseline;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows b { font-weight: 600; }
.rows span { font-size: 15.5px; color: var(--muted); }
.rowlink { font-size: 14px; font-weight: 500; color: var(--accent); text-underline-offset: 3px; }
@media (max-width: 760px) {
  .rows li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- Как я работаю ---------- */
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 56px); }
.how h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.how p { margin: 10px 0 0; color: var(--muted); max-width: 46ch; }
@media (max-width: 680px) { .how { grid-template-columns: 1fr; } }

.facts { margin: clamp(48px, 6vw, 72px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facts div { border-top: 1px solid var(--line); padding-top: 16px; }
.facts dt { font-size: 14px; color: var(--warm); }
.facts dd { margin: 6px 0 0; font-size: 15.5px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* ---------- Контакты ---------- */
.contact { padding-bottom: clamp(56px, 8vw, 96px); }
.contact .h2 { max-width: 14ch; }
.contact .actions { margin-top: 36px; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; padding-bottom: 32px;
  background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
  font-size: 13px; color: var(--muted);
}
