/* ===== БАЗА (mobile first) ===== */
:root {
  --bg: #0f1115;
  --bg-alt: #171a21;
  --card: #11141a;
  --text: #e8e8ea;
  --muted: #9aa0aa;
  --accent: #4f8cff;
  --accent-2: #6ee7b7;
  --radius: 14px;
  --maxw: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== ШАПКА ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 17, 21, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #23262e;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { font-size: 22px; font-weight: 800; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }

/* бургер */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: none; border: none; cursor: pointer;
}
.burger span {
  display: block; height: 2px; width: 24px;
  background: var(--text); border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-alt);
  border-bottom: 1px solid #23262e;
  padding: 10px 20px 16px;
}
.nav--open { display: flex; }
.nav__link {
  color: var(--muted);
  text-decoration: none;
  font-size: 16px;
  padding: 10px 0;
}
.nav__link:hover { color: var(--text); }

/* ===== HERO ===== */
.hero {
  padding: 50px 0;
  background: radial-gradient(circle at 30% 10%, #1c2333, var(--bg) 60%);
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}
.hero__photo {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(79, 140, 255, .12);
}
.hero__geo {
  display: inline-block;
  font-size: 13px;
  color: var(--muted);
  background: var(--card);
  border: 1px solid #23262e;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.hero__title { font-size: 30px; line-height: 1.2; }
.hero__role { color: var(--accent-2); font-weight: 600; margin: 6px 0 14px; }
.hero__subtitle { color: var(--muted); max-width: 560px; margin-bottom: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ===== КНОПКИ ===== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid #2c3140; color: var(--text); }

/* ===== СЕКЦИИ ===== */
.section { padding: 50px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: 24px; margin-bottom: 10px; }
.section__lead { color: var(--muted); margin-bottom: 26px; }
.text { color: var(--muted); margin-bottom: 14px; max-width: 640px; }
.section__cta { margin-top: 28px; }

/* ===== КАРТОЧКИ УСЛУГ ===== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid #23262e;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.card__icon { font-size: 30px; margin-bottom: 12px; }
.card__title { font-size: 18px; margin-bottom: 8px; color: var(--accent-2); }
.card__text { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.card__list { list-style: none; margin-top: auto; }
.card__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 8px;
}
.card__list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent-2); font-weight: 700;
}

/* ===== БАННЕР-ОБЕЩАНИЕ ===== */
.promise {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(79,140,255,.16), rgba(110,231,183,.12));
  border: 1px solid rgba(110,231,183,.25);
}
.promise__icon { font-size: 30px; flex-shrink: 0; }
.promise__text { color: var(--text); font-size: 15px; }
.promise__text b { color: var(--accent-2); }

/* ===== КАК Я РАБОТАЮ ===== */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid #23262e;
  border-radius: var(--radius);
  padding: 24px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
}
.step__title { font-size: 18px; margin-bottom: 8px; }
.step__text { color: var(--muted); font-size: 15px; }

/* ===== ПРОЕКТЫ ===== */
.projects { display: flex; flex-direction: column; gap: 16px; }
.project {
  position: relative;
  background: var(--card);
  border: 1px solid #23262e;
  border-radius: var(--radius);
  padding: 24px;
}
.project__title { font-size: 19px; margin: 4px 0 8px; }
.project__text { color: var(--muted); margin-bottom: 14px; }

.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge--done { background: rgba(110,231,183,.15); color: var(--accent-2); }
.badge--progress { background: rgba(79,140,255,.15); color: var(--accent); }

.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ===== КОНТАКТЫ ===== */
.contacts { display: flex; flex-direction: column; gap: 12px; }
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid #23262e;
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.contact:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact__ico { font-size: 24px; }
.contact b { color: var(--accent-2); }
.contacts__geo { margin-top: 22px; }

/* ===== ПОДВАЛ ===== */
.footer {
  padding: 24px 0;
  border-top: 1px solid #23262e;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* ===== АНИМАЦИЯ ПОЯВЛЕНИЯ ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== ПЛАНШЕТ ===== */
@media (min-width: 600px) {
  .hero__title { font-size: 38px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .projects { flex-direction: row; flex-wrap: wrap; }
  .project { flex: 1 1 calc(50% - 8px); }
  .contacts { flex-direction: row; flex-wrap: wrap; }
  .contact { flex: 1 1 calc(50% - 6px); }
}

/* ===== ДЕСКТОП ===== */
@media (min-width: 900px) {
  .burger { display: none; }
  .nav {
    display: flex; flex-direction: row;
    position: static; background: none; border: none;
    padding: 0; gap: 22px;
  }
  .nav__link { font-size: 14px; padding: 0; }

  .hero { padding: 90px 0; }
  .hero__inner { flex-direction: row; text-align: left; gap: 40px; }
  .hero__photo { width: 200px; height: 200px; }
  .hero__actions { justify-content: flex-start; }
  .hero__title { font-size: 46px; }

  .section { padding: 70px 0; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .contact { flex: 1 1 calc(33.333% - 8px); }
}

/* ===== ДОСТУПНОСТЬ ===== */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}