:root {
  --ink: #1d1b17;
  --paper: #fff8e6;
  --yellow: #ffd336;
  --blue: #7fd6e8;
  --coral: #ff6757;
  --green: #64bd62;
  --pink: #ff9ac2;
  --white: #fffdf4;
  --shadow: 8px 8px 0 rgba(29, 27, 23, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Comic Sans MS", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  background:
    radial-gradient(circle at 12px 12px, rgba(29, 27, 23, 0.08) 1px, transparent 1.8px),
    linear-gradient(90deg, rgba(255, 211, 54, 0.14), transparent 18%, rgba(127, 214, 232, 0.15) 52%, transparent 86%),
    var(--paper);
  background-size: 34px 34px, 100% 100%, auto;
}

a {
  color: inherit;
  font-weight: 800;
  text-underline-offset: 4px;
}

a:focus-visible,
.button:focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 10px 14px;
  background: #fff;
  border: 3px solid var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.direction-header,
.direction-main,
.direction-footer {
  width: min(1120px, calc(100% - 32px));
  margin-right: auto;
  margin-left: auto;
}

.direction-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 3px dashed rgba(29, 27, 23, 0.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 52px;
  font-weight: 900;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 8px 5px 9px 4px;
  box-shadow: 5px 5px 0 var(--coral);
  transform: rotate(-4deg);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  font-size: 12px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
}

.header-nav .header-cta {
  padding: 10px 15px;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 7px 4px 8px 5px;
  box-shadow: 5px 5px 0 var(--blue);
}

.direction-main {
  padding: 54px 0 72px;
}

.direction-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding-bottom: 56px;
}

.sticker {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 0 18px;
  font-weight: 900;
  text-transform: uppercase;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 7px 4px 8px 5px;
  box-shadow: 5px 5px 0 rgba(29, 27, 23, 0.16);
  transform: rotate(-2deg);
}

.sticker.green {
  background: var(--green);
}

.sticker.coral {
  background: var(--coral);
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 24px;
  font-size: clamp(32px, 5vw, 52px);
}

h3 {
  margin: 0 0 10px;
  font-size: 25px;
}

p,
ul {
  margin-top: 0;
}

.lead {
  max-width: 760px;
  font-size: clamp(20px, 2.5vw, 26px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.button {
  display: inline-block;
  padding: 14px 20px;
  font-weight: 900;
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 7px 4px 8px 5px;
  box-shadow: 6px 6px 0 rgba(29, 27, 23, 0.16);
  text-decoration: none;
}

.button.primary {
  background: var(--coral);
}

.hero-note {
  position: relative;
  padding: 28px;
  background: var(--white);
  border: 4px solid var(--ink);
  border-radius: 13px 7px 15px 9px;
  box-shadow: 12px 12px 0 var(--yellow);
  transform: rotate(1deg);
}

.hero-note::before,
.hero-note::after {
  position: absolute;
  content: "";
  border: 3px solid var(--ink);
  border-radius: 50%;
}

.hero-note::before {
  top: -20px;
  right: 26px;
  width: 48px;
  height: 48px;
  background: var(--blue);
}

.hero-note::after {
  right: -14px;
  bottom: 24px;
  width: 26px;
  height: 26px;
  background: var(--pink);
}

.hero-note strong {
  display: block;
  margin-bottom: 8px;
  font-size: 25px;
}

.facts,
.content-grid {
  display: grid;
  gap: 20px;
}

.facts {
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 64px;
}

.fact,
.content-card,
.faq-card,
.cta-card {
  padding: 24px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 10px 6px 12px 7px;
  box-shadow: var(--shadow);
}

.fact:nth-child(2),
.content-card:nth-child(2) {
  background: #eef9fb;
}

.fact:nth-child(3) {
  background: #fff1c4;
}

.fact:nth-child(4) {
  background: #f2ffe7;
}

.fact strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1;
}

.fact span {
  font-weight: 800;
}

.content-section {
  padding: 54px 0;
  border-top: 3px dashed rgba(29, 27, 23, 0.35);
}

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

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li + li {
  margin-top: 12px;
}

.check-list li::before {
  position: absolute;
  top: 3px;
  left: 0;
  width: 20px;
  height: 20px;
  content: "";
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-card h3 {
  font-size: 21px;
}

.faq-card p:last-child {
  margin-bottom: 0;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 54px;
  background: var(--yellow);
  box-shadow: 10px 10px 0 var(--blue);
}

.cta-card h2 {
  margin-bottom: 10px;
}

.cta-card p {
  margin-bottom: 0;
}

.direction-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 3px dashed rgba(29, 27, 23, 0.35);
}

.direction-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 920px) {
  .direction-hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-note {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .direction-header,
  .direction-footer,
  .cta-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-nav a:not(.header-cta) {
    display: none;
  }

  .direction-main {
    padding-top: 38px;
  }

  .direction-hero {
    grid-template-columns: 1fr;
    padding-bottom: 44px;
  }

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

  .fact,
  .content-card,
  .faq-card,
  .hero-note,
  .cta-card {
    padding: 20px;
  }
}
