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

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: #263128;
  background: #f4f7f1;
  line-height: 1.5;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.header {
  background: #fff;
  border-bottom: 1px solid rgba(38, 49, 40, 0.08);
}

.container {
  width: min(100% - 32px, 960px);
  margin-inline: auto;
}

.logo {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  display: block;
  width: min(250px, 72vw);
  height: auto;
}

.main {
  flex: 1;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.35), transparent 42%),
    linear-gradient(135deg, #b9e887, #a7dd6f);
}

.hero {
  padding-block: 56px;
  text-align: center;
}

.hero-title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  margin: 14px 0 30px;
  color: rgba(38, 49, 40, 0.74);
  font-size: 17px;
}

.hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 320px));
  justify-content: center;
  gap: 16px;
}

.button {
  min-height: 58px;
  padding: 16px 24px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(49, 69, 39, 0.13);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(49, 69, 39, 0.18);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline: 3px solid rgba(38, 49, 40, 0.35);
  outline-offset: 3px;
}

.button-primary {
  color: #fff;
  background: #eb4f4f;
}

.button-primary:hover {
  background: #df4444;
}

.button-secondary {
  color: #253126;
  background: #fff;
}

.button-secondary:hover {
  background: #f8fbf5;
}

.footer {
  background: #8fca58;
  color: rgba(255,255,255,.95);
}

.copyright {
  padding-block: 18px;
  text-align: center;
  font-size: 13px;
}

.error-box {
  max-width: 560px;
  margin: 15vh auto 0;
  padding: 24px;
  text-align: center;
}

.error-box strong,
.error-box span {
  display: block;
}

.error-box span {
  margin-top: 8px;
  color: #666;
}

@media (max-width: 680px) {
  .logo {
    min-height: 88px;
  }

  .hero {
    padding-block: 40px;
  }

  .hero-buttons {
    grid-template-columns: minmax(0, 360px);
  }

  .button {
    width: 100%;
  }

  .copyright {
    padding-inline: 10px;
  }
}
