/* Полноэкранная визитка: фон остаётся неподвижным, а текст и контакты сохраняют читаемость. */
@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/manrope-variable.ttf") format("truetype");
}

:root {
  color-scheme: dark;
  --paper: #f2f0e9;
  --muted: #d1d4d0;
  --ink: #111718;
  --line: rgb(242 240 233 / 30%);
  --edge: clamp(24px, 4.45vw, 80px);
  font-family: Manrope, "Helvetica Neue", sans-serif;
  color: var(--paper);
  background: var(--ink);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 280px; }
body { min-height: 100svh; }
::selection { color: var(--ink); background: var(--paper); }

.backdrop { position: fixed; inset: 0; overflow: hidden; pointer-events: none; }
.backdrop__photo { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; filter: saturate(.66) brightness(.82) contrast(1.07); }
.backdrop__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(5 10 12 / 34%), transparent 26%, rgb(5 10 12 / 18%) 46%, rgb(5 10 12 / 86%) 100%), linear-gradient(90deg, rgb(5 10 12 / 35%), transparent 70%); }
.backdrop__grain { position: absolute; inset: 0; background: url("../images/grain.svg") repeat; opacity: .24; mix-blend-mode: overlay; }

.page { position: relative; display: flex; flex-direction: column; min-height: 100svh; padding: max(34px, env(safe-area-inset-top)) max(var(--edge), env(safe-area-inset-right)) max(36px, env(safe-area-inset-bottom)) max(var(--edge), env(safe-area-inset-left)); }
.header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-size: 26px; font-weight: 600; letter-spacing: -.075em; line-height: 1; }
.wordmark__point { color: #ccc2a9; }
.profession { display: flex; align-items: center; gap: 17px; font-size: 14px; font-weight: 400; }
.frame { display: inline-block; width: 28px; height: 16px; border: 1px solid var(--paper); border-radius: 2px; }

.intro { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: clamp(32px, 8svh, 100px) 0 clamp(38px, 6.3svh, 72px); }
h1 { max-width: 100%; margin: 0 0 25px -.055em; font-size: clamp(66px, min(9.6vw, 15svh), 164px); font-weight: 300; line-height: 1.01; letter-spacing: -.07em; overflow-wrap: anywhere; }
.motto { margin: 0; font-size: clamp(14px, 1.35vw, 19px); font-weight: 400; letter-spacing: -.025em; color: var(--muted); }

.footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer__note { margin: 0 0 7px; font-size: 12px; color: var(--muted); }
.contacts { display: flex; gap: 12px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 38px; min-width: 200px; min-height: 72px; padding: 14px 20px; color: var(--paper); text-decoration: none; border: 1px solid rgb(242 240 233 / 50%); border-radius: 3px; transition: background-color 160ms ease, border-color 160ms ease; }
.contact__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.contact__label { font-size: 15px; font-weight: 500; line-height: 1.4; }
.contact__handle { font-size: 11px; line-height: 1.5; letter-spacing: .01em; }
.contact__arrow { width: 23px; height: 23px; flex-shrink: 0; }
.contact--primary { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.contact:focus-visible { outline: 3px solid var(--paper); outline-offset: 5px; }
.contact--primary:focus-visible { outline-color: #fff; }
.contact:active { background: rgb(242 240 233 / 20%); }
.contact--primary:active { background: #d5d3cc; }

@media (hover: hover) and (pointer: fine) {
  .contact--primary:hover { background: #dcd9d0; border-color: #dcd9d0; }
  .contact--channel:hover { background: rgb(242 240 233 / 12%); border-color: var(--paper); }
}

@media (min-width: 1800px) {
  .backdrop__photo { object-position: 50% 33%; }
}

@media (max-width: 767px) {
  .page { padding-top: max(27px, env(safe-area-inset-top)); padding-bottom: max(25px, env(safe-area-inset-bottom)); }
  .wordmark { font-size: 24px; }
  .profession { font-size: 12px; gap: 12px; }
  .frame { width: 23px; height: 13px; }
  .backdrop__photo { object-position: 47% 38%; }
  .backdrop__shade { background: linear-gradient(180deg, rgb(5 10 12 / 36%), transparent 27%, rgb(5 10 12 / 22%) 44%, rgb(5 10 12 / 90%) 100%); }
  .intro { padding-bottom: 32px; }
  h1 { font-size: clamp(57px, min(12.3vw, 15svh), 94px); margin-bottom: 19px; }
  .motto { font-size: 14px; }
  .footer { display: block; padding-top: 20px; }
  .footer__note { display: none; }
  .contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .contact { min-width: 0; min-height: 71px; padding: 12px 15px; gap: 12px; }
  .contact__label { font-size: 14px; }
  .contact__handle { font-size: 10px; }
  .contact__arrow { width: 20px; height: 20px; }
}

/* На низком экране уменьшаем интервалы, не обрезая содержание и клавиатурный фокус. */
@media (max-height: 600px) {
  .page { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .intro { padding-top: 25px; padding-bottom: 24px; }
  h1 { font-size: clamp(48px, min(9vw, 17svh), 90px); margin-bottom: 16px; }
  .footer { padding-top: 16px; }
  .contact { min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
}

/* Увеличенный текст может расширить страницу: доступность важнее принудительного скрытия. */
@media (max-width: 340px) {
  .contact { padding-inline: 12px; gap: 8px; }
  .contact__arrow { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
