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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f7f6f2;
  color: #2f2a24;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 20px;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

section {
  padding: 4rem 0;
}

.container {
  width: min(90%, 1100px);
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #8b7355;
}

.tag {
  display: inline-block;
  padding: 0.4rem 1rem;
  background-color: #ece9e2;
  color: #8b7355;
  border-radius: 999px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

p {
  color: #5f5a53;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  background-color: #8b7355;
  color: white;
  border-radius: 999px;
  font-weight: 500;
}

.btn-outline {
  background-color: transparent;
  color: #2f2a24;
  border: 1px solid #d9d4cc;
}

header {
  position: sticky;
  top: 0;
  background-color: rgba(247, 246, 242, 0.95);
  border-bottom: 1px solid #d9d4cc;
}

.header-content {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.menu-btn {
  font-size: 1.6rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #d9d4cc;
  border-radius: 12px;
}

.nav {
  display: none;
}

.nav.active {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: absolute;
  top: 90px;
  right: 0;
  width: 220px;
  padding: 1rem;
  background-color: white;
  border: 1px solid #d9d4cc;
  border-radius: 16px;
}

.desktop-btn {
  display: none;
}

.hero-content,
.about {
  display: grid;
  gap: 2rem;
}

.hero-text p {
  margin-bottom: 1.5rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

.card {
  background-color: white;
  border: 1px solid #d9d4cc;
  border-radius: 16px;
  padding: 1.5rem;
}

.card h3 {
  margin-bottom: 0.8rem;
}

#runners-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.runner-card {
  background: white;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #ddd;
}

#runner-form {
  display: grid;
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 1.5rem;
  background-color: white;
  border: 1px solid #d9d4cc;
  border-radius: 16px;
}

#runner-form input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #d9d4cc;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  color: #2f2a24;
  background-color: #f7f6f2;
}

#runner-form input:focus {
  outline: none;
  border-color: #8b7355;
}

#runner-form button {
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 999px;
  background-color: #8b7355;
  color: white;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

#runner-form button:hover {
  opacity: 0.9;
}

@media (min-width: 768px) {
  #runner-form {
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
  }
}

.about p + p {
  margin-top: 1rem;
}

.cta {
  text-align: center;
  background-color: #ece9e2;
  padding: 2rem;
  border-radius: 20px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid #d9d4cc;
}

.footer {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid #d9d4cc;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.2rem;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 1024px) {
  .menu-btn {
    display: none;
  }

  .nav {
    display: flex;
    gap: 1.5rem;
    position: static;
    flex-direction: row;
  }

  .desktop-btn {
    display: inline-block;
  }

  .hero-content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .about {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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