:root {
  --bg: #0b0b0f;
  --card: #16161d;
  --line: #2a2a35;
  --text: #f2f2f5;
  --muted: #8b8b98;
  --accent: #e9e3d8;
}

* { box-sizing: border-box; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Шапка: крупное фото на всю ширину, текст поверх нижнего края */
.hero { position: relative; max-width: 440px; margin: 0 auto; }
.hero__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.hero__text {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 80px 20px 24px;
  text-align: center;
  background: linear-gradient(to bottom, rgba(11,11,15,0) 0%, rgba(11,11,15,.85) 65%, var(--bg) 100%);
}

.name { margin-top: 0; font-size: 24px; font-weight: 600; letter-spacing: .01em; }
.bio { margin-top: 4px; color: var(--muted); font-size: 15px; }

.links { width: 100%; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }

.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
}
.btn:hover { border-color: #444452; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #111; }

/* Фото — крупные, во всю ширину, одно под другим */
.photos { width: 100%; margin-top: 28px; display: grid; gap: 12px; }
.photos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; }

.foot { margin-top: 32px; color: var(--muted); font-size: 13px; }

/* 18+ */
.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(11, 11, 15, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.gate[hidden] { display: none; }
.gate__box { max-width: 340px; text-align: center; }
.gate__badge {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--muted);
  font-size: 13px;
}
.gate h2 { margin-top: 14px; font-size: 22px; font-weight: 600; }
.gate__text { margin: 8px 0 22px; color: var(--muted); font-size: 15px; }
.gate__no { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 14px; }

/* Подсказка для iOS */
.hint {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 10px;
  right: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent);
  color: #111;
  font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.hint[hidden] { display: none; }
.hint p { flex: 1; }
.hint__arrow { font-size: 26px; line-height: 1; }
.hint__close { border: 0; background: none; font-size: 18px; color: #111; cursor: pointer; padding: 4px; }

.about { width: 100%; margin-top: 28px; text-align: left; color: #c9c9d2; font-size: 15px; }
.about__title { margin-top: 18px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.about ul { list-style: none; padding: 0; margin-top: 8px; }
.about li { padding: 6px 0 6px 22px; position: relative; }
.about li::before { content: "→"; position: absolute; left: 0; color: var(--muted); }

/* Корневая страница платформы */
.home { justify-content: center; min-height: 100dvh; }
.home__logo { font-size: 30px; font-weight: 600; letter-spacing: -.01em; }
.home__logo span { color: var(--muted); }
.home__tagline { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Компьютер: две колонки — фото слева, содержимое справа */
@media (min-width: 900px) {
  body:not(.home-page) {
    display: grid;
    grid-template-columns: 400px 420px;
    justify-content: center;
    align-items: start;
    gap: 56px;
    padding: 56px 32px;
  }
  .hero {
    max-width: none;
    border-radius: 20px;
    overflow: hidden;
    position: sticky;
    top: 56px;
  }
  .page { max-width: none; padding: 0; }
  .links { margin-top: 0; }
  .photos { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* Промежуточные экраны: колонка пошире, но не на весь экран */
@media (min-width: 560px) and (max-width: 899px) {
  .hero, .page { max-width: 480px; }
  .hero { border-radius: 20px; overflow: hidden; margin-top: 32px; }
}
