/* ===== Базовые переменные и сброс ===== */
:root {
  --bg: #0b0d12;
  --bg-soft: #12151d;
  --card: #161a24;
  --border: #232838;
  --text: #e7e9ee;
  --text-dim: #9aa3b2;
  --accent: #6c8cff;
  --accent-2: #9d6cff;
  --radius: 16px;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Шапка ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 13, 18, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-dim); font-size: 15px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ===== Кнопки ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s, opacity 0.2s, background 0.2s;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }

/* ===== Первый экран ===== */
.hero { min-height: 78vh; display: flex; align-items: center; }
.hero-content { max-width: 720px; }
.hero-eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, #fff 40%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle { color: var(--text-dim); font-size: clamp(17px, 2.5vw, 21px); margin: 20px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Секции ===== */
.section { padding: 72px 24px; }
.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

/* Обо мне */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.about-text { font-size: 18px; color: var(--text-dim); }
.stats { list-style: none; display: grid; gap: 20px; }
.stats li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.stats strong { display: block; font-size: 28px; color: var(--text); }
.stats span { color: var(--text-dim); font-size: 14px; }

/* Карточки */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-4px); }
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 15px; }

/* Контакты */
.contact-text { color: var(--text-dim); font-size: 18px; margin-bottom: 24px; }
.contact-links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Подвал ===== */
.footer { border-top: 1px solid var(--border); padding: 28px 0; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; color: var(--text-dim); font-size: 14px; flex-wrap: wrap; gap: 8px; }

/* ===== Адаптив ===== */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}
