/* ===== Резюме — Шепелев Виталий Владимирович ===== */

:root {
  --accent: #2b4acb;
  --accent-dark: #1e336f;
  --ink: #1a2238;
  --muted: #5b6478;
  --line: #e4e7ee;
  --bg: #f5f6f9;
  --card: #ffffff;
  --tag-bg: #eef1fb;
  --tag-ink: #2b4acb;
}

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Шапка ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  padding: 48px 24px;
}

.hero__inner {
  max-width: 880px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}

.hero__name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.hero__role {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #d4ddff;
}

.hero__meta {
  margin-top: 6px;
  font-size: 14px;
  color: #aebbf0;
}

.hero__contacts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 220px;
}

.hero__contacts li {
  display: flex;
  flex-direction: column;
}

.contact__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #aebbf0;
}

.hero__contacts a {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

/* ── Контейнер и секции ─────────────────────────────── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 8px 24px 40px;
}

.section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 28px;
  margin-top: 22px;
}

.section__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--accent-dark);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.lead {
  font-size: 15.5px;
  color: #36405c;
}

/* ── Навыки ─────────────────────────────────────────── */
.skills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 28px;
}

.skill-group h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tags li {
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 13px;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 7px;
}

.tags--tech li {
  background: #f0f2f6;
  color: #44506e;
}

/* ── Проекты ────────────────────────────────────────── */
.project {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.project:last-child {
  border-bottom: none;
  padding-bottom: 2px;
}
.project:first-of-type {
  padding-top: 2px;
}

.project__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin-bottom: 7px;
}

.project__head h3 {
  font-size: 16.5px;
  font-weight: 700;
}

.project__link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.project p {
  font-size: 14.5px;
  color: #36405c;
}

.project__role {
  margin-top: 6px;
  color: var(--muted) !important;
  font-size: 14px !important;
}

.project .tags--tech {
  margin-top: 10px;
}

/* ── Опыт работы ────────────────────────────────────── */
.job__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.job__head h3 {
  font-size: 16px;
  font-weight: 700;
}

.job__period {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--tag-bg);
  padding: 3px 10px;
  border-radius: 7px;
}

.job__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.job__points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  color: #36405c;
}

.job__points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ── Подвал ─────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: var(--muted);
}

/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero {
    padding: 34px 18px;
  }
  .hero__name {
    font-size: 24px;
  }
  .hero__contacts {
    min-width: 100%;
  }
  .container {
    padding: 8px 14px 32px;
  }
  .section {
    padding: 20px 18px;
  }
  .skills {
    grid-template-columns: 1fr;
  }
}

/* ── Печать (сохранение в PDF) ──────────────────────── */
@media print {
  body {
    background: #fff;
  }
  .hero {
    background: var(--accent-dark) !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .section {
    border: 1px solid var(--line);
    break-inside: avoid;
  }
  .project {
    break-inside: avoid;
  }
}
