:root {
  --page: #f3f9fc;
  --surface: #ffffff;
  --surface-soft: #e8f4fa;
  --text: #315f76;
  --heading: #1f6b8f;
  --accent: #2f8fbd;
  --accent-soft: #d9eff9;
  --line: #c8e3ef;
  --muted: #66889a;
  --shadow: 0 18px 45px rgba(47, 143, 189, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef8fc 0%, #f8fcfe 44%, #f3f9fc 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.wrap {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.brand {
  color: var(--heading);
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--accent);
}

.hero {
  padding: 84px 0 58px;
  max-width: 820px;
}

.hero-compact {
  padding-bottom: 50px;
}

.eyebrow,
.note-label {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  color: var(--heading);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h2 {
  margin: 0 0 14px;
  color: var(--heading);
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.intro {
  margin: 24px 0 0;
  max-width: 720px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 82px;
}

.note {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.note p:last-child {
  margin: 0;
}

.note-slot {
  padding-bottom: 82px;
}

.note-wide {
  width: 100%;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

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

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

.site-footer a {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 4px;
}

@media (max-width: 820px) {
  .notes {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 62px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 28px, 1080px);
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

  .note {
    padding: 24px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}
