/* === Базовые стили === */
:root {
  --ink: #16202b;
  --muted: #5b6b7b;
  --bg: #f5f7fa;
  --card: #ffffff;
  --accent: #0a5bd3;
  --accent-dark: #0847a6;
  --accent-soft: #e8f0fd;
  --border: #e3e8ef;
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* === Шапка === */
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}

.logo { font-weight: 700; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
.logo span { color: var(--accent); }

nav { display: flex; gap: 22px; flex-wrap: wrap; }
nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
nav a:hover { color: var(--accent); }

/* === Кнопки === */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn.ghost:hover { background: var(--accent-soft); }

/* === Герой === */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-bottom: 28px; }
.hero .badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.badge {
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* === Секции === */
section { padding: 56px 0; }
section h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 12px; }
section .sub { color: var(--muted); margin-bottom: 32px; max-width: 640px; }

/* === Карточки услуг === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
}

.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card .desc { color: var(--muted); font-size: 0.95rem; flex-grow: 1; }
.service-card ul { margin: 12px 0 0 18px; color: var(--muted); font-size: 0.95rem; }
.service-card .price {
  margin-top: 20px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-dark);
}
.service-card .term { font-size: 0.85rem; color: var(--muted); }

.featured { border: 2px solid var(--accent); position: relative; }
.featured .tag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 999px;
}

/* === Шаги === */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* === Обо мне === */
.about-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.about-box ul { margin-left: 18px; color: var(--muted); }
.about-box li { margin-bottom: 8px; }
@media (max-width: 720px) { .about-box { grid-template-columns: 1fr; } }

/* === Оплата === */
.pay-note {
  background: var(--accent-soft);
  border-radius: var(--radius);
  padding: 24px 28px;
  color: var(--accent-dark);
  font-size: 0.98rem;
  margin-top: 28px;
}

/* === Контакты === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { margin-bottom: 14px; }
.contact-card p { margin-bottom: 8px; color: var(--muted); }
.contact-card a { color: var(--accent); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* === Подвал === */
footer {
  background: #101822;
  color: #aab7c4;
  padding: 36px 0;
  font-size: 0.9rem;
  margin-top: 40px;
}
footer a { color: #d7e1ec; text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 10px; }

/* === Мобильная версия === */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .header-inner { padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .header-inner > .btn { display: none; } /* в шапке хватает пункта «Контакты» */
  nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 18px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a { white-space: nowrap; }

  .hero { padding: 40px 0 36px; }
  .hero p.lead { font-size: 1.05rem; }
  section { padding: 40px 0; }

  .cta { flex-direction: column; align-items: stretch; }
  .cta .btn { text-align: center; }

  .service-card, .step, .contact-card { padding: 20px; }
  .about-box { padding: 22px; gap: 18px; }
  .pay-note { padding: 18px 20px; }
  .doc-body { padding: 32px 16px 56px; }
}

/* === Документы (оферта, политика) === */
.doc { background: #fff; }
.doc-body { max-width: 800px; margin: 0 auto; padding: 48px 20px 72px; }
.doc-body h1 { font-size: 1.7rem; margin-bottom: 8px; }
.doc-body .doc-date { color: var(--muted); margin-bottom: 32px; }
.doc-body h2 { font-size: 1.2rem; margin: 32px 0 12px; }
.doc-body p, .doc-body li { color: #33404d; margin-bottom: 10px; }
.doc-body ul, .doc-body ol { margin: 0 0 12px 22px; }
.doc-body .back { display: inline-block; margin-bottom: 28px; color: var(--accent); text-decoration: none; }
