/*
  LevelUp.bz – soft/crm (PL and EN share this file).

  0. Fonts
  1. Tokens          5. Hero                9. Guide (table of contents, sign-up)
  2. Base            6. Partners           10. Materials
  3. Layout          7. Cards and banners  11. Contact
  4. Header          8. Paths              12. Footer
  13. Tablet (640–1279 px)   14. Narrow tablet (640–899 px)   15. Phone (< 640 px)

  Desktop (>= 1280 px) is the base layout; sections 13–15 adjust narrower
  screens. Both language versions use the same markup and classes.
*/

/* 0. Fonts: self-hosted variable fonts (SIL OFL 1.1, see fonts/OFL-*.txt), latin + latin-ext */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format("woff2");
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #051438;
  --gold: #c8a46b;
  --burgundy: #ab4e68;
  --copper: #d38d5f;
  --blue: #3a6ea5;
  --light: #e9f1f7;
  --white: #fff;
  --ink-2: #2c3a55;
  --muted: #4f5b72;
  --on-navy: #d5deec;
  --on-navy-muted: #b9c4da;
  --line: #d5dee8;
  --card-line: #c9d5e2;
  --list-line: #bfccdb;
  --field-line: #7c889c;
  --font-body: inter, system-ui, sans-serif;
  --font-display: "Space Grotesk", sans-serif;
  --grid-line: rgb(200 164 107 / 10%);
}

/* 2. Base ------------------------------------------------------------------ */
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ol {
  margin: 0;
}

a {
  color: var(--navy);
}

a:hover {
  color: var(--blue);
}

input,
textarea,
button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.bg-grid :focus-visible {
  outline-color: var(--gold);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  padding: 12px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(-200%);
}

.skip-link:focus,
.skip-link:hover {
  color: var(--white);
  transform: none;
}

/* Hover lift: slow zoom, gold border and underline (cards and banners) */
.lift {
  position: relative;
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease;
}

.lift::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.lift:hover,
.lift:focus-within {
  transform: scale(1.02);
  border-color: var(--gold);
  box-shadow: 0 14px 32px rgb(5 20 56 / 16%);
}

.lift:hover::after,
.lift:focus-within::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .lift,
  .lift::after {
    transition: none;
  }

  .lift:hover,
  .lift:focus-within {
    transform: none;
  }
}

/* Touch screens: no hover zoom (it sticks after a tap) */
@media (hover: none) {
  .lift:hover,
  .lift:focus-within {
    transform: none;
    box-shadow: none;
  }
}

/* 3. Layout and shared pieces --------------------------------------------- */
.container {
  max-width: 1120px;
  margin: 0 auto;
}

.bg-grid {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--white);
}

.section {
  padding: 80px 24px;
}

.section--light {
  background: var(--light);
}

.section--short {
  padding-top: 72px;
  padding-bottom: 72px;
}

.stack {
  display: flex;
  flex-direction: column;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.rule {
  width: 72px;
  height: 4px;
  background: var(--burgundy);
}

.lead {
  font-size: 18px;
  color: var(--ink-2);
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow--gold {
  color: var(--gold);
}

.corner {
  position: absolute;
}

.corner--tl {
  top: 0;
  left: 0;
}

.corner--br {
  bottom: 0;
  right: 0;
}

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
}

/* Buttons and fields */
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-sizing: border-box;
}

.btn--gold,
.btn--gold:hover {
  padding: 0 26px;
  background: var(--gold);
  color: var(--navy);
}

.btn--ghost,
.btn--ghost:hover {
  border: 1.5px solid var(--white);
  color: var(--white);
}

.btn--submit {
  min-height: 52px;
  padding: 0 24px;
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field__label {
  font-size: 14px;
  font-weight: 600;
}

.field__input {
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 14px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background: var(--white);
  font-size: 16px;
}

textarea.field__input {
  min-height: 0;
  padding: 12px 14px;
  resize: vertical;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 15px;
}

.choice input,
.consent input {
  width: 20px;
  height: 20px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}

.consent input {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-card {
  box-sizing: border-box;
  padding: 28px;
  background: var(--white);
  color: var(--navy);
  border-top: 4px solid var(--gold);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

.form-card__note {
  font-size: 13px;
  color: var(--muted);
}

/* 4. Header ---------------------------------------------------------------- */
.site-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}

.brand,
.brand:hover {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--navy);
}

.brand__mark {
  width: 55px;
  height: 48px;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.tagline {
  font-size: 13px;
  color: var(--muted);
}

.nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 24px;
  font-size: 15px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.lang {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
}

.lang a,
.lang a:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  box-sizing: border-box;
}

.lang a[aria-current],
.lang a[aria-current]:hover {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 2px solid var(--navy);
}

/* 5. Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 96px;
}

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px 64px;
}

.hero__text {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero__eyebrow {
  font-size: 14px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero__lead {
  font-size: 19px;
  color: var(--on-navy);
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero__note {
  font-size: 14px;
  color: var(--on-navy-muted);
}

.hero__visual {
  flex: 1 1 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.guide-card {
  width: 300px;
  max-width: 100%;
  min-height: 380px;
  box-sizing: border-box;
  padding: 28px;
  background: var(--white);
  color: var(--navy);
  border-top: 6px solid var(--gold);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.guide-card__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.guide-card__eyebrow {
  font-size: 12px;
  letter-spacing: 0.1em;
}

.guide-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.12;
}

.guide-card__mark {
  width: 206px;
  height: 180px;
  align-self: center;
}

.guide-card__meta {
  font-size: 13px;
  color: var(--muted);
}

/* 6. Partners -------------------------------------------------------------- */
.partners {
  padding: 28px 24px;
  border-bottom: 1px solid var(--line);
}

.partners__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 40px;
}

.rounded-4 {
  border-radius: 4px;
}

.rounded-8 {
  border-radius: 8px;
}

/* 7. Cards and banners ----------------------------------------------------- */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1 1 280px;
  box-sizing: border-box;
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

.card__text {
  font-size: 16px;
  color: var(--ink-2);
}

.purposes__inner {
  gap: 36px;
}

.purposes .section-head,
.purposes__close {
  max-width: 720px;
}

.purposes__close {
  font-size: 17px;
  color: var(--navy);
}

.banner {
  box-sizing: border-box;
  padding: 28px 32px;
  border: 1px solid var(--navy);
  border-radius: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 48px;
}

.banner__logo {
  flex-shrink: 0;
}

.banner__logo-link {
  display: inline-flex;
  flex-shrink: 0;
}

.banner__body {
  flex: 999 1 420px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
}

.banner__text {
  font-size: 16px;
  color: var(--on-navy);
  max-width: 640px;
}

.banner__aside {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner__lead-by {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.banner__label {
  font-size: 13px;
  color: var(--on-navy-muted);
}

.banner__partner,
.banner__partner:hover {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--white);
}

/* 8. Paths ----------------------------------------------------------------- */
.paths__inner {
  gap: 20px;
}

.paths .section-head {
  max-width: 760px;
  margin-bottom: 16px;
}

.arrows {
  display: flex;
  gap: 20px;
}

.arrows > div {
  flex: 1 1 0;
  display: flex;
  justify-content: center;
}

.path-card {
  flex-basis: 260px;
  gap: 14px;
}

.path-card__logo {
  height: 56px;
  display: flex;
  align-items: center;
}

.path-card__text {
  font-size: 15px;
  color: var(--ink-2);
  flex-grow: 1;
}

.path-card__by {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.path-card__label {
  font-size: 13px;
  color: var(--muted);
}

.path-card__partner {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 17px;
}

/* 9. Guide ----------------------------------------------------------------- */
.guide__text {
  flex: 999 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.toc {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.toc__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding: 14px 0;
  border-top: 1px solid var(--list-line);
}

.toc__item:last-child {
  border-bottom: 1px solid var(--list-line);
}

.toc__num {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--muted);
  width: 28px;
}

.toc__title {
  flex: 1 1 320px;
  font-size: 16px;
  font-weight: 500;
}

.toc__by {
  font-size: 14px;
  color: var(--muted);
}

.signup {
  flex: 1 1 340px;
  align-self: flex-start;
  border: 1px solid var(--card-line);
  border-top: 4px solid var(--gold);
}

.signup__intro {
  font-size: 15px;
  color: var(--ink-2);
}

.choices {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.choices legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
}

/* 10. Materials ------------------------------------------------------------ */
.materials__inner {
  gap: 32px;
}

.materials .section-head {
  max-width: 720px;
}

.material {
  flex-basis: 320px;
  padding: 24px;
  gap: 8px;
}

.material__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.25;
}

/* 11. Contact -------------------------------------------------------------- */
.contact {
  position: relative;
  overflow: hidden;
}

.contact__inner {
  position: relative;
}

.contact__text {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__lead {
  font-size: 18px;
  color: var(--on-navy);
}

.steps {
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.steps__num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
}

.steps__text {
  font-size: 16px;
  padding-top: 4px;
}

.contact__partners {
  font-size: 15px;
  color: var(--on-navy);
}

.contact__partners a,
.contact__partners a:hover {
  color: var(--white);
}

.contact-form {
  flex: 1 1 420px;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.field-row > .field {
  flex: 1 1 180px;
}

/* 12. Footer --------------------------------------------------------------- */
.site-footer {
  padding: 40px 24px;
  border-top: 1px solid var(--line);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.site-footer__brand img {
  width: 46px;
  height: 40px;
}

.site-footer__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.site-footer__about {
  flex: 999 1 280px;
}

.site-footer__inner > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* 13. Tablet and phone (< 1280 px) ---------------------------------------- */
@media (width < 1280px) {
  /* Header: logo, navigation and language switch on one line */
  .site-header__inner {
    flex-wrap: nowrap;
    gap: 12px 24px;
  }

  .tagline {
    display: none;
  }

  .nav {
    flex-wrap: nowrap;
    gap: 4px 20px;
  }

  .nav a {
    white-space: nowrap;
  }

  /* Hero: text and guide card side by side, card smaller */
  .hero {
    padding: 64px 24px 72px;
  }

  .hero__inner {
    flex-wrap: nowrap;
    gap: 40px;
  }

  .hero__text {
    flex: 1 1 0;
  }

  .hero__title {
    font-size: 42px;
  }

  .hero__lead {
    font-size: 18px;
  }

  .hero__visual {
    flex: 0 0 240px;
  }

  .guide-card {
    width: 240px;
    min-height: 0;
    padding: 22px;
    gap: 18px;
  }

  .guide-card__title {
    font-size: 24px;
  }

  .guide-card__mark {
    width: 140px;
    height: 122px;
  }

  /* Partner logos: label above, logos in one even row */
  .partners__inner {
    gap: 20px 24px;
  }

  .partners__inner > p {
    flex: 0 0 100%;
  }

  /* Sections */
  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .h2 {
    font-size: 32px;
  }

  /* Purposes and paths: always three columns, so the arrows line up */
  .cards--3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .cards--3 > .card {
    padding: 20px;
  }

  .cards--3 .card__title {
    font-size: 19px;
  }

  .cards--3 .card__icon {
    width: 52px;
    height: 52px;
  }

  .path-card__logo {
    height: 48px;
  }

  .path-card__logo img {
    max-width: 100%;
    height: auto;
    max-height: 48px;
    object-fit: contain;
    object-position: left center;
  }

  /* Materials: two columns, a lone last card spans the row */
  .cards--materials {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .cards--materials > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .banner {
    padding: 24px;
    gap: 16px 28px;
  }

  /* Guide + sign-up, contact text + form: stacked, form at full width */
  .split {
    flex-flow: column nowrap;
    gap: 40px;
  }

  .split > * {
    flex: 0 0 auto;
    align-self: stretch;
  }
}

/* 14. Narrow tablet (640–899 px): purpose cards as rows, icon on the left */
@media (640px <= width < 900px) {
  .purposes .cards--3 {
    grid-template-columns: 1fr;
  }

  .purposes .card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 6px 20px;
  }

  .purposes .card__icon {
    grid-row: 1 / span 2;
  }
}

/* 15. Phone (< 640 px) ----------------------------------------------------- */
@media (width < 640px) {
  /* Header: logo + PL/EN on the first line, navigation as a full-width row */
  .site-header {
    padding: 10px 16px;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 12px;
  }

  .brand__mark {
    width: 46px;
    height: 40px;
  }

  .lang {
    margin-left: auto;
  }

  .nav {
    order: 3;
    flex: 0 0 100%;
    margin-left: 0;
    justify-content: space-between;
    gap: 0 12px;
    font-size: 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  /* Hero: one column, compact guide card */
  .hero {
    padding: 48px 16px 56px;
  }

  .corner {
    width: 56px;
    height: 56px;
  }

  .hero__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .hero__text {
    gap: 18px;
  }

  .hero__title {
    font-size: 32px;
    line-height: 1.12;
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    justify-content: center;
  }

  .hero__visual {
    flex: 0 0 auto;
  }

  .guide-card {
    width: 100%;
    flex-flow: row wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 20px;
  }

  .guide-card__head {
    flex: 1 1 0;
    min-width: 0;
  }

  .guide-card__title {
    font-size: 22px;
  }

  .guide-card__mark {
    width: 80px;
    height: 70px;
    align-self: center;
  }

  .guide-card__meta {
    flex: 0 0 100%;
  }

  /* Partner logos: wrap evenly, centred */
  .partners {
    padding: 24px 16px;
  }

  .partners__inner {
    justify-content: center;
    gap: 18px 28px;
  }

  .partners__inner > p {
    text-align: center;
  }

  /* Sections */
  .section {
    padding: 48px 16px;
  }

  .h2 {
    font-size: 27px;
  }

  .lead,
  .contact__lead {
    font-size: 17px;
  }

  /* Cards: one column; a single arrow between stages */
  .cards--3,
  .cards--materials {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .cards--3 .card__icon {
    width: 48px;
    height: 48px;
  }

  .arrows > :not(:first-child) {
    display: none;
  }

  .arrows svg {
    width: 34px;
    height: 44px;
  }

  .banner {
    padding: 22px 20px;
  }

  .banner__logo {
    width: 64px;
    height: auto;
  }

  .banner__body {
    flex-basis: 100%;
  }

  .banner__title {
    font-size: 21px;
  }

  /* Guide contents: number + title on a line, partner beneath */
  .toc__item {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 2px 12px;
  }

  .toc__by {
    grid-column: 2;
  }

  /* Forms */
  .form-card {
    padding: 22px 18px;
  }

  .btn--submit {
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 32px 16px;
  }

  .site-footer__inner {
    gap: 8px 24px;
  }

  .site-footer__about {
    flex-basis: 100%;
  }
}

.nav::-webkit-scrollbar {
  display: none;
}

/* Very narrow phones (e.g. 320 px) */
@media (width < 360px) {
  .nav {
    gap: 0 10px;
    font-size: 13px;
  }

  .hero__title {
    font-size: 28px;
  }
}

/* 404 page (/404.html) */
.not-found__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.not-found__en {
  margin-top: 24px;
}
