/* ========== базовое ========== */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

/* ========== главная — плотная компоновка ========== */
.page {
  position: relative;
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0;
  background: var(--bg);
  overflow: hidden;
}

/* большой заголовок — TOP-LEFT, доминанта левого столбца */
.title {
  position: absolute;
  top: 60px;
  left: 80px;
  margin: 0;
  font-size: 104px;
  line-height: 0.96;
  font-weight: 500;
  letter-spacing: -0.02em;
  z-index: 2;
}

/* интро-блок: интро + раньше */
.intro-block {
  position: absolute;
  top: 300px;
  left: 80px;
  width: 560px;
  z-index: 2;
}
.intro {
  margin: 0;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 400;
}
.intro__link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity .15s ease;
}
.intro__link:hover { opacity: .55; }

.past {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.past a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .15s ease;
}
.past a:hover { color: var(--ink); }

/* ссылки — горизонтальная строка, прижата к низу */
.links {
  position: absolute;
  left: 80px;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 17px;
  line-height: 1;
  font-weight: 400;
  z-index: 2;
}
.links__group {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.links__item {
  color: var(--ink);
  text-decoration: none;
  transition: opacity .15s ease;
}
.links__item:hover { opacity: .55; }
.links__sep {
  color: var(--muted);
  user-select: none;
}

/* портрет — правый край, доминантная иллюстрация */
.portrait {
  position: absolute;
  top: 40px;
  right: -40px;
  width: 58%;
  max-width: 820px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* ========== адаптив ========== */
@media (max-width: 1200px) {
  .title { font-size: 88px; top: 50px; left: 56px; }
  .intro-block { top: 260px; left: 56px; width: 48%; }
  .intro { font-size: 18px; }
  .links { left: 56px; bottom: 48px; }
  .portrait { width: 55%; right: -20px; top: 40px; }
}

@media (max-width: 820px) {
  .page {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 28px 22px 36px;
    overflow: visible;
  }
  .title       { order: 1; }
  .intro-block { order: 2; }
  .portrait    { order: 3; }
  .links       { order: 4; }

  .intro-block, .title, .links, .portrait {
    position: static;
    left: auto; right: auto; top: auto; bottom: auto;
    width: auto;
    max-width: none;
  }

  .title { margin: 0 0 24px; font-size: 52px; letter-spacing: -0.02em; }
  .intro { font-size: 16px; line-height: 1.45; }
  .past  { font-size: 13px; margin-top: 14px; }

  .portrait {
    width: 100%;
    max-width: 420px;
    margin: 24px auto;
    display: block;
  }
  .links {
    margin-top: 10px;
    font-size: 15px;
    flex-wrap: wrap;
    gap: 16px;
    row-gap: 10px;
  }
  .links__group { gap: 16px; flex-wrap: wrap; }
}
