
:root {
  --green: #064b32;
  --green-dark: #043b29;
  --gold: #d6ad55;
  --cream: #f3f7f4;
  --white: #ffffff;
  --text: #26352d;
  --muted: #647269;
  --border: #e1e9e3;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 20px;
}

body {
  margin: 0;
  font-family: Tahoma, Arial, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  min-width: 320px;
  overflow-wrap: anywhere;
}

img,
video,
iframe {
  max-width: 100%;
}

header {
  background: var(--green-dark);
  color: var(--white);
  min-height: 76px;
  padding: 14px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  border-bottom: 3px solid var(--gold);
}

.logo {
  color: var(--gold);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.2s ease;
}

nav a:hover {
  color: var(--gold);
}

select {
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gold);
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: 14px;
  cursor: pointer;
}

a:focus-visible,
select:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

main {
  width: min(1100px, 92%);
  margin: 35px auto;
}

.hero {
  background: linear-gradient(
    135deg,
    var(--green-dark),
    var(--green)
  );
  color: var(--white);
  text-align: center;
  padding: 75px 20px;
  border-radius: 18px;
  border-bottom: 5px solid var(--gold);
  box-shadow: 0 8px 25px rgba(4, 59, 41, 0.12);
}

.hero h1 {
  color: var(--gold);
  font-size: clamp(32px, 6vw, 52px);
  margin: 0 0 8px;
  letter-spacing: 2px;
}

.hero h2 {
  font-size: clamp(23px, 4vw, 32px);
  margin: 5px 0 12px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 28px;
}

.button {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark);
  padding: 12px 28px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: bold;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.button:hover {
  background: #e8c879;
  transform: translateY(-2px);
}

#categories {
  padding: 38px 0;
}

#categories > h2 {
  color: var(--green-dark);
  text-align: center;
  font-size: 28px;
  margin-bottom: 25px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid article {
  min-width: 0;
  background: var(--white);
  padding: 25px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold);
  box-shadow: 0 5px 18px rgba(4, 59, 41, 0.06);
  transition: transform 0.2s ease;
}

.grid article:hover {
  transform: translateY(-4px);
}

.grid h3 {
  color: var(--green);
  font-size: 21px;
  margin-top: 0;
}

.grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.notice {
  background: #fff8e8;
  color: #72551d;
  border-inline-start: 4px solid var(--gold);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 20px 0 35px;
}

footer {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  padding: 22px 15px;
  border-top: 3px solid var(--gold);
  font-size: 14px;
}

footer p {
  margin: 0;
}

button,
.button,
select {
  min-height: 44px;
}

@media (min-width: 701px) and (max-width: 900px) {
  header {
    justify-content: center;
  }

  nav {
    justify-content: center;
  }
}

@media (max-width: 700px) {
  header {
    justify-content: center;
    text-align: center;
  }

  nav {
    width: 100%;
    justify-content: center;
    gap: 12px 18px;
  }

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

  .hero {
    padding: 55px 16px;
  }

  main {
    width: 94%;
    margin: 22px auto;
  }

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

  .grid article {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
