:root {
  --bg: #f7f6f3;
  --bg-alt: #f0efec;
  --ink: #111;
  --muted: #777;
  --muted-2: #626262;
  --line: #e5e3df;
  --white: #fff;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --font-sf: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --font-geist: 'Geist', 'Inter', system-ui, sans-serif;
  /* Макет мобильный (390px): на широких экранах держим колонку по центру */
  --gutter: max(20px, calc((100% - 440px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
p, h1, h2, ul { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; }

.page { overflow-x: clip; }
.page > section { padding-inline: var(--gutter); }

.nav { height: 68px; background: var(--bg); }

.kicker {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.99px;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker--light { color: var(--white); }

.section-title { font-weight: 500; line-height: 1.14; text-wrap: balance; }
.section-title--lg { font-size: 31px; letter-spacing: -0.775px; }
.section-title--md { font-size: 25px; letter-spacing: -0.625px; }
.section-title--cta { font-size: 27px; letter-spacing: -0.675px; color: var(--white); }

.divider { margin: 0; border: 0; height: 1px; background: var(--line); }

/* Hero */
.hero {
  display: flex;
  flex-direction: column;
  gap: 37px;
  padding-top: 34px;
  padding-bottom: 14px; /* в макете hero фиксирован 480px, вступление чуть выходит за него */
}
.hero__copy { display: flex; flex-direction: column; gap: 14px; }
.hero__name {
  max-width: 232px;
  font-size: 37px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.48px;
}
.hero__role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.88px;
  text-transform: uppercase;
}
.hero__photo {
  position: relative;
  width: calc(100% + 12.36px);
  aspect-ratio: 362.36 / 158.31;
  border-radius: 14px;
  overflow: hidden;
}
.hero__photo img {
  position: absolute;
  left: 0;
  top: -20.21%; /* -32px из 158.31 */
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.hero__intro { font-size: 16px; line-height: 1.5; color: var(--muted); }

/* Contacts */
.contacts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 28px;
  padding-bottom: 44px;
}
.channels { display: flex; justify-content: space-between; align-items: flex-start; }
.channel { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.channel__label { font-size: 10px; font-weight: 500; color: var(--muted); white-space: nowrap; }

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line);
  transition: transform .15s ease, background-color .15s ease;
}
.icon-btn--dark { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.19); }
.channel:active .icon-btn, .icon-btn:active { transform: scale(.94); }

.buttons { display: flex; flex-direction: column; gap: 10px; }
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-family: var(--font-sf);
  font-size: 16px;
  line-height: 22px;
  transition: opacity .15s ease;
}
.btn:active { opacity: .8; }
.btn--primary { background: var(--ink); color: var(--white); font-weight: 500; }
.btn--secondary { background: var(--white); border-color: var(--line); color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); font-weight: 500; }
.btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: var(--white); }

/* Projects */
.projects {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding-top: 56px;
  padding-bottom: 64px;
}
.projects__heading { display: flex; flex-direction: column; gap: 12px; }
.projects__desc { font-size: 14px; line-height: 1.5; color: var(--muted); }

.cards { display: flex; flex-direction: column; gap: 12px; }
.card {
  position: relative;
  height: 124px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg);
}
.card__info {
  position: absolute;
  left: 19px;
  top: 50%;
  transform: translateY(-50%);
  width: var(--w);
  height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
}
.card__info--gap { justify-content: flex-start; gap: 12px; }
.card__logo { flex-shrink: 0; }
.card__logo--ath { position: relative; display: block; width: 83.46px; height: 26.56px; }
.card__logo--ath img:last-child { position: absolute; left: 48.54px; top: 10.03px; }
.card__desc {
  min-width: 100%;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}
.card__desc--sf, .card__desc--geist { min-width: 0; font-size: 14px; color: var(--muted-2); }
.card__desc--sf { font-family: var(--font-sf); line-height: normal; }
.card__desc--geist { font-family: var(--font-geist); line-height: 1.14; width: 173.28px; }
/* В макете «Открыть →» полностью прозрачный — держим только место под него */
.card__open { height: 17px; }

/* Иллюстрации привязаны к правому краю карточки (в макете ширина 350px) */
.card__art {
  position: absolute;
  left: calc(100% - 350px + var(--x));
  overflow: hidden;
  pointer-events: none;
}
.card__art img { position: absolute; max-width: none; }

/* Other projects */
.other {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-top: 48px;
  padding-bottom: 58px;
  background: var(--bg-alt);
}
.other__heading { display: flex; flex-direction: column; gap: 10px; }
.other__list { list-style: none; }
.other__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.other__name { flex: 0 0 122px; font-size: 14px; font-weight: 600; }
.other__desc { flex: 1 0 0; min-width: 0; font-size: 12px; line-height: 1.4; color: var(--muted); }

/* Final CTA */
.cta {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 54px;
  padding-bottom: calc(52px + env(safe-area-inset-bottom));
  background: var(--ink);
}
.cta__copy { display: flex; flex-direction: column; gap: 13px; }
.cta__desc { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.66); }


@media (hover: hover) {
  .channel:hover .icon-btn { background: var(--bg-alt); }
  .icon-btn--dark:hover { background: rgba(255,255,255,.16); }
  .btn:hover { opacity: .88; }
}
