/* ✏️ Цвета сайта — меняются здесь */
:root {
  --bg: #fafaf8;
  --text: #111111;
  --muted: #6b6b6b;
  --line: #e6e6e2;
  --card: #efefeb;
  --accent: #111111;
  --accent-text: #fafaf8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --text: #f2f2ef;
    --muted: #9a9a96;
    --line: #262626;
    --card: #1a1a1a;
    --accent: #f2f2ef;
    --accent-text: #0e0e0e;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Навигация */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px max(16px, calc((100% - 1120px) / 2));
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.logo { font-weight: 800; text-decoration: none; letter-spacing: -0.02em; }
.nav nav { display: flex; gap: 24px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav nav a:hover { color: var(--text); }

/* Секции */
section { padding: 96px 0; border-top: 1px solid var(--line); }
section.hero { border-top: 0; padding-top: 120px; }
h1 {
  font-size: clamp(38px, 7vw, 84px);
  line-height: 1.02; letter-spacing: -0.04em; font-weight: 800;
}
h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.eyebrow { color: var(--muted); font-size: 14px; margin-bottom: 24px; text-transform: uppercase; letter-spacing: .08em; }
.lead { max-width: 560px; margin-top: 28px; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text);
  text-decoration: none; font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent); transition: transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }

/* Две колонки: заголовок слева, текст справа */
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.split p + p { margin-top: 16px; }
.big { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.4; letter-spacing: -0.01em; font-weight: 500; }
.split p:not(.big) { color: var(--muted); }

/* Навыки */
.skills { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skills li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 500; }
.links a { overflow-wrap: anywhere; }

/* Проекты */
.projects { list-style: none; }
.projects li { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.projects li:first-child { padding-top: 0; }
.projects p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.projects a { white-space: nowrap; font-weight: 600; text-decoration: none; }

/* Форма */
.form { margin-top: 40px; max-width: 720px; display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea {
  font: inherit; color: var(--text); background: transparent;
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; resize: vertical;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--text); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form button { cursor: pointer; font-family: inherit; }
.form button:disabled { opacity: .5; cursor: default; transform: none; }
.status { font-size: 15px; color: var(--muted); }
.status.ok { color: #2e9d5b; }
.status.err { color: #d0473a; }

/* Контакты */
.contact h2 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.04em; line-height: 1.02; }
.links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 40px; }
.links a { font-size: 22px; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--line); transition: border-color .2s; }
.links a:hover { border-color: var(--text); }

.foot { display: flex; justify-content: space-between; padding: 32px 0 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
.foot a { text-decoration: none; }

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Планшет и телефон */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .form .row { grid-template-columns: 1fr; }
  .projects li { flex-direction: column; gap: 8px; }
  body { font-size: 16px; }
  .nav nav { gap: 14px; }
  .nav nav a { font-size: 13px; }
  section { padding: 64px 0; }
  section.hero { padding-top: 64px; }
  .links a { font-size: 19px; }
}
