* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #4A5568;
  background-color: #F7FAFC;
}

a {
  color: #C53030;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Top red bar */
.top-bar {
  height: 3px;
  width: 100%;
  background-color: #C53030;
}

.main-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

h1,
h2,
h3,
h4 {
  color: #2D3748;
  font-weight: 600;
  margin: 0 0 12px;
}

h1 {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

h2 {
  font-size: 26px;
  margin-top: 40px;
}

h3 {
  font-size: 20px;
  margin-top: 24px;
}

h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

p {
  margin: 0 0 12px;
}

section {
  margin-top: 40px;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 32px;
}

header .brand {
  font-weight: 600;
  font-size: 20px;
}

.nav-link {
  font-size: 16px;
  color: #4A5568;
}

.nav-link:hover {
  color: #C53030;
}

/* Hero */
.hero {
  margin-top: 16px;
}

.hero-kicker {
  font-size: 15px;
  color: #718096;
  letter-spacing: 0.01em;
  margin-bottom: 4px;
}

.hero-subtitle {
  color: #4A5568;
  max-width: 640px;
  font-size: 18px;
  margin-top: 8px;
}

/* Why people work with me – facts list */
.facts-list {
  margin-top: 20px;
  border-top: 1px solid #E2E8F0;
}

.fact-row {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #E2E8F0;
}

.fact-title {
  font-weight: 600;
  color: #2D3748;
}

.fact-text {
  font-size: 16px;
  color: #4A5568;
}

/* What I can help with (cards) */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 16px 18px;
}

.card h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.card p {
  font-size: 16px;
}

/* Selected projects */
.project-list {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.project-item {
  padding: 8px 0 4px;
  border-bottom: 1px solid #EDF2F7;
}

.project-item:last-child {
  border-bottom: none;
}

.projects-note {
  margin-top: 16px;
  font-size: 16px;
  color: #4A5568;
}

/* About block with photo and contacts */
.about-block {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 40px;
}

.about-block img {
  max-width: 220px;
  border-radius: 8px;
}

.about-content {
  flex: 1;
}

.about-cta {
  font-size: 16px;
  color: #4A5568;
  margin-top: 8px;
}

.contacts {
  margin-top: 16px;
  font-size: 16px;
}

.contacts a {
  text-decoration: underline;
  text-decoration-color: #C53030;
}

/* Footer */
footer {
  margin-top: 40px;
  font-size: 14px;
  color: #A0AEC0;
}

.footer-brand { color: inherit; text-decoration: underline; }
.footer-brand:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .fact-row {
    grid-template-columns: 1fr;
  }

  .about-block {
    flex-direction: column;
  }

  .about-block img {
    max-width: 180px;
  }
}
