:root {
  --bg: #f4f7f5;
  --card: #ffffff;
  --text: #1d2a2f;
  --muted: #5d6d70;
  --primary: #2d6a4f;
  --primary-dark: #1f4e3a;
  --accent: #dfeee7;
  --line: #dfe9e6;
  --shadow: 0 18px 45px rgba(22, 39, 33, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.08);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.96rem;
  color: var(--muted);
}

.menu a {
  transition: color 0.2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: var(--primary-dark);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  border-color: rgba(45, 106, 79, 0.35);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 5px 0;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(
      circle at top left,
      rgba(45, 106, 79, 0.1),
      transparent 35%
    ),
    linear-gradient(135deg, #f7faf8 0%, #edf5f0 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.lead {
  max-width: 620px;
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow);
}

.button.secondary {
  background: white;
  color: var(--text);
  border: 1px solid rgba(29, 42, 47, 0.08);
}

.hero-panel {
  display: grid;
  gap: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-panel-empty {
  min-height: 220px;
  background: linear-gradient(
    135deg,
    rgba(45, 106, 79, 0.08),
    rgba(255, 255, 255, 0.9)
  );
  padding: 0;
  overflow: hidden;
}

.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.tiles-section {
  padding: 92px 0 64px;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
}

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

.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px 22px;
  box-shadow: 0 12px 25px rgba(16, 33, 27, 0.04);
}

.tile-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  margin-bottom: 18px;
}

.tile h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

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

.info-band {
  padding: 30px 0 70px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  border-radius: 28px;
  padding: 34px 32px;
  box-shadow: var(--shadow);
}

.info-grid h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.2;
}

.info-grid p:last-child {
  margin: 0;
  font-size: 1.02rem;
  opacity: 0.92;
}

.downloads-section {
  padding: 24px 0 92px;
}

.downloads-header {
  margin-bottom: 28px;
}

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

.download-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(16, 33, 27, 0.04);
  color: var(--text);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.download-item:hover,
.download-item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(45, 106, 79, 0.35);
  box-shadow: 0 14px 30px rgba(16, 33, 27, 0.08);
}

.download-name {
  font-weight: 600;
}

.download-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer {
  background: #122823;
  color: #e7efed;
  padding: 45px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-column h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: #ffffff;
}

.footer-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-column li,
.footer-column p {
  margin: 0 0 10px;
  color: rgba(231, 239, 237, 0.82);
}

.footer-bottom {
  padding-top: 16px;
  text-align: center;
  color: rgba(231, 239, 237, 0.7);
  font-size: 0.92rem;
}

@keyframes menuFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero-inner,
  .info-grid,
  .tiles-grid,
  .footer-grid,
  .downloads-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

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

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .nav {
    position: relative;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0 8px;
    border-top: 1px solid var(--line);
    margin-top: 12px;
    animation: menuFade 0.2s ease;
  }

  .nav.open .menu {
    display: flex;
  }

  .nav.open .menu-toggle {
    transform: rotate(90deg);
  }

  .nav.open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav.open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav.open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .tiles-grid,
  .info-grid,
  .footer-grid,
  .downloads-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 52px;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .section-header {
    text-align: center;
  }

  .tile,
  .hero-panel {
    padding: 22px 18px;
  }

  .download-item {
    padding: 16px 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer {
    padding-top: 32px;
  }
}
