/* timurv.ru — resume page. Layout mirrors the previous Tilda design:
   1160px content grid, two 560px columns, Manrope. */

:root {
  --blue: #4348e0;
  --ink: #222;
  --muted: #6c6c6c;
  --soft-bg: #fafafa;
  --soft-border: #f0f0f0;
  --gap: 40px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 400 16px/24px Manrope, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
}

p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; }

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Two-column grid: 560 + 560 with a 40px gutter */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.muted { color: var(--muted); margin-bottom: 4px; }

.lead { font-weight: 700; margin-bottom: 8px; }

/* ---------- Hero ---------- */

.hero {
  background: var(--blue);
  color: #fff;
  padding: 16px 0 60px;
}

.hero__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 32px;
}

.hero__name { margin: 0 0 60px; }
.hero__name img { width: 100%; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
}

.hero__about { margin: 0; }

/* ---------- Chips ---------- */

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 2px;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
}

.chip--light {
  background: #fff;
  color: var(--blue);
  font-weight: 500;
}

.chip--dark {
  background: var(--ink);
  color: #fff;
}

.chip--soft {
  background: var(--soft-bg);
  border: 1px solid var(--soft-border);
  color: var(--ink);
  font-weight: 700;
  padding: 4px 15px;
  white-space: normal;
}

/* Outline chip — periods and skill-group labels */
.chip--outline {
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 3px 11px;
  white-space: normal;
}

.icon { display: block; line-height: 0; }
.icon img { width: 32px; height: 32px; }

/* ---------- Sections ---------- */

.section { padding: 60px 0 30px; }
.section:last-of-type { padding-bottom: 60px; }

.section__title {
  margin: 0 0 24px;
  font: 400 24px/36px Manrope, Arial, sans-serif;
  color: var(--muted);
}

/* ---------- Experience ---------- */

.job { margin-bottom: 60px; }
.job:last-child { margin-bottom: 0; }

.job__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.job__company {
  margin: 0;
  font: 400 48px/53px Manrope, Arial, sans-serif;
}

/* One position inside a company: title on the left, achievements on the right */
.role {
  padding-top: 32px;
  border-top: 1px solid var(--soft-border);
  margin-bottom: 32px;
}

.role:first-of-type { border-top: 0; padding-top: 0; }
.role:last-child { margin-bottom: 0; }

.role__title {
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
  color: var(--blue);
}

.role__period { margin: 0; color: var(--muted); }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 20px;
}

.facts:not(:first-child) { margin-top: 32px; }

/* ---------- Education ---------- */

.edu__uni {
  margin-bottom: 12px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 700;
}

.skills__title { margin: 24px 0 8px; }
.edu__spec { margin-bottom: 0; }

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Competencies: group label on the left, numbered list on the right ---------- */

.skillrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  padding: 24px 0;
  border-top: 1px solid var(--soft-border);
}

.skillrow:first-of-type { border-top: 0; padding-top: 0; }

.skillrow__list {
  margin: 0;
  padding-left: 20px;
}

.skillrow__list li { margin-bottom: 4px; }
.skillrow__list li:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: #fff;
  padding: 100px 0 40px;
}

.footer__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer .chip--light { color: var(--ink); }

/* ---------- Mobile ---------- */

@media (max-width: 960px) {
  .wrap { padding: 0 24px; }

  .grid { grid-template-columns: 1fr; gap: 24px; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .skillrow { grid-template-columns: 1fr; gap: 12px; }

  .hero { padding-bottom: 40px; }
  .hero__name { margin-bottom: 32px; }
  .hero__top { justify-content: flex-start; }

  .job__company { font-size: 32px; line-height: 38px; }
  .job__head { gap: 12px; margin-bottom: 24px; }
  .role { padding-top: 24px; margin-bottom: 24px; }

  .section { padding: 40px 0 20px; }
  .job { margin-bottom: 40px; }
  .footer { padding: 40px 0; }

  .chip--dark { white-space: normal; }
}
