@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("fonts/Poppins-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #04ad29;
  --dark-green: #148800;
  --ink: #171515;
  --gold: #ebb000;
  --cream: #fffbeb;
  --slate: #556065;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}
a {
  color: inherit;
  text-decoration: none;
}
.topbar {
  min-height: 80px;
  color: #fff;
  background: var(--green);
}
.topbar__inner {
  position: relative;
  display: flex;
  align-items: center;
  width: min(860px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
}
.topbar__label {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 300;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 18px;
  color: #fff;
  background: var(--gold);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3;
  text-align: center;
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.button:hover,
.button:focus-visible {
  filter: brightness(0.94);
  transform: translateY(-1px);
  outline: none;
}
.topbar__button {
  min-width: 294px;
}
.article {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 41px 0 70px;
}
.article__meta {
  margin: 0 0 14px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 300;
}
.article__title {
  max-width: 780px;
  margin: 0 0 22px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.article__title span {
  color: var(--dark-green);
}
.article p {
  margin: 0 0 26px;
}
.article section {
  margin-top: 26px;
}
.article h2 {
  margin: 0 0 16px;
  color: #01530D;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
}
.article h3 {
  margin: 17px 0 0;
  color: var(--dark-green);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
}
.article h3 + p {
  margin-top: 0;
}
.article__image {
  display: block;
  width: 100%;
  height: auto;
  margin: 24px 0;
}
.article__action {
  display: flex;
  justify-content: center;
  margin: -2px 0 26px;
}
.age-card {
  margin: 26px 0;
  padding: 18px 16px 16px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(85, 96, 101, 0.22);
  text-align: center;
}
.age-card h2 {
  margin-bottom: 18px;
  color: #148800;
  text-align: left;
}
.age-card__options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 38px;
}
.age-card__options a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border-radius: 8px;
  background: var(--cream);
  font-size: 40px;
  line-height: 1;
  white-space: nowrap;
}
.age-card__options a:hover,
.age-card__options a:focus-visible {
  color: #fff;
  background: var(--green);
  outline: none;
}
.footer {
  padding: 28px max(32px, calc((100% - 1240px) / 2)) 18px;
  color: var(--slate);
  background: rgba(85, 96, 101, 0.08);
  font-size: 16px;
  line-height: 1.45;
}
.footer p {
  margin: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: end;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(85, 96, 101, 0.5);
}
.footer__label {
  margin-bottom: 16px !important;
}
.footer address {
  color: var(--ink);
  font-style: normal;
}
.footer__disclaimer {
  padding: 16px 0;
  border-bottom: 1px solid rgba(85, 96, 101, 0.5);
}
.footer__disclaimer > strong {
  display: block;
  margin-bottom: 16px;
}
.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 16px;
}
.footer a:hover,
.footer a:focus-visible {
  color: var(--dark-green);
  text-decoration: underline;
  outline: none;
}
.legal {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 52px 0 100px;
}
.legal__back,
.legal__link {
  color: var(--dark-green);
  font-weight: 600;
}
.legal__back {
  display: inline-flex;
  margin-bottom: 32px;
}
.legal__title {
  margin: 0 0 32px;
  font-size: 40px;
  line-height: 1.2;
}
.legal__section {
  margin-bottom: 28px;
}
.legal__subtitle {
  margin: 0 0 12px;
  color: var(--dark-green);
  font-size: 24px;
}
.legal__subheading {
  margin: 22px 0 8px;
  color: var(--dark-green);
  font-size: 20px;
}
.legal__text,
.legal__item {
  font-size: 18px;
  line-height: 1.5;
}
.legal__list {
  margin: 0 0 18px;
  padding-left: 24px;
}
.legal__item {
  margin-bottom: 6px;
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
    line-height: 1.5;
  }
  .topbar__inner {
    justify-content: center;
    padding-top: 18px;
  }
  .topbar__label {
    top: 3px;
    font-size: 11px;
  }
  .topbar__button {
    min-width: 0;
    min-height: 34px;
    padding: 6px 15px;
    font-size: 13px;
  }
  .article {
    padding-top: 30px;
  }
  .article__title,
  .legal__title {
    font-size: 28px;
  }
  .article h2 {
    font-size: 24px;
  }
  .article h3 {
    font-size: 16px;
  }
  .age-card {
    padding: 14px 12px;
  }
  .age-card__options {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
  }
  .age-card__options a {
    min-height: 64px;
    font-size: 28px;
  }
  .button {
    font-size: 14px;
  }
  .footer {
    padding: 24px 16px 18px;
    font-size: 14px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .legal {
    padding: 32px 0 64px;
  }
  .legal__subtitle {
    font-size: 22px;
  }
  .legal__subheading {
    font-size: 18px;
  }
  .legal__text,
  .legal__item {
    font-size: 16px;
  }
}
