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

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

:root {
  --page: #b3b3b3;
  --surface: #ffffff;
  --panel: #d4d4d4;
  --text: #333333;
  --muted: #666666;
  --accent: #abbe28;
  --link: #56610f;
  --link-hover: #343b08;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.32);
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Lato", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 9px 12px;
  transform: translateY(-160%);
  border-radius: 3px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
}

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

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

.brand-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 56px);
  background: var(--surface);
}

.brand-lockup {
  display: inline-flex;
  align-items: baseline;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-pdf {
  font-weight: 900;
}

.brand-review {
  color: var(--muted);
  font-weight: 400;
}

.brand-service {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-left: 24px;
  padding-left: 18px;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.state-main {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 56px 24px;
}

.state-card,
.help-card {
  display: grid;
  grid-template-columns: 8px 1fr;
  width: min(100%, 600px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.state-card {
  min-height: 352px;
}

.state-success {
  --state: var(--accent);
}

.state-refusal {
  --state: #c63a1d;
}

.state-expired {
  --state: #d98900;
}

.state-accent {
  background: var(--state);
}

.state-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 56px;
}

.state-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  color: var(--state);
}

.state-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.state-content h1,
.help-content h1 {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: clamp(27px, 4vw, 36px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.state-content p {
  max-width: 46ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.help-main {
  display: flex;
  flex: 1 0 auto;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  padding: 56px 24px;
}

.help-card {
  width: min(100%, 920px);
}

.help-accent {
  background: var(--accent);
}

.help-content {
  min-width: 0;
  padding: 56px 64px 60px;
}

.help-intro {
  max-width: 56ch;
  margin: 0;
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
}

.help-steps {
  margin: 42px 0 0;
  padding: 0;
  counter-reset: help-step;
  list-style: none;
}

.help-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid rgba(51, 51, 51, 0.18);
  counter-increment: help-step;
}

.help-step::before {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: #56610f;
  content: counter(help-step);
  font-size: 16px;
  font-weight: 700;
}

.help-step h2 {
  margin: 4px 0 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.help-step p,
.help-step li,
.help-closing {
  font-size: 15px;
  line-height: 1.6;
}

.help-step p {
  margin: 0 0 12px;
}

.help-step p:last-child {
  margin-bottom: 0;
}

.help-step ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.help-note {
  margin: 18px 0 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.42);
  color: #4f4f4f;
  font-size: 14px;
  line-height: 1.55;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 18px;
}

.help-links a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 3px;
}

.help-links a:hover,
.help-links a:focus-visible {
  color: var(--link-hover);
}

.help-closing {
  margin: 10px 0 0 64px;
  padding-top: 28px;
  border-top: 1px solid rgba(51, 51, 51, 0.18);
}

.brand-footer {
  flex: 0 0 auto;
  padding: 18px 24px 22px;
  color: #5b5b5b;
  font-size: 12px;
  text-align: center;
}

.brand-lockup:focus-visible,
.help-links a:focus-visible {
  outline: 3px solid rgba(171, 190, 40, 0.55);
  outline-offset: 4px;
  border-radius: 2px;
}

@media (max-width: 760px) {
  .brand-header {
    min-height: 60px;
    padding: 0 18px;
  }

  .brand-lockup {
    font-size: 21px;
  }

  .brand-service {
    min-height: 30px;
    margin-left: 12px;
    padding-left: 10px;
    font-size: 12px;
  }

  .state-main,
  .help-main {
    align-items: flex-start;
    padding: 30px 10px;
  }

  .state-card,
  .help-card {
    grid-template-columns: 6px 1fr;
  }

  .state-content {
    padding: 30px 24px;
  }

  .state-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 22px;
  }

  .state-content h1 {
    font-size: 27px;
  }

  .help-content {
    padding: 34px 24px 40px;
  }

  .help-content h1 {
    font-size: 30px;
  }

  .help-intro {
    font-size: 16px;
  }

  .help-steps {
    margin-top: 30px;
  }

  .help-step {
    grid-template-columns: 36px 1fr;
    gap: 14px;
    padding: 24px 0;
  }

  .help-step::before {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .help-step h2 {
    margin-top: 2px;
    font-size: 18px;
  }

  .help-step p,
  .help-step li,
  .help-closing {
    font-size: 14px;
  }

  .help-closing {
    margin-left: 50px;
  }
}

@media (max-width: 420px) {
  .brand-service {
    max-width: 118px;
  }

  .help-step {
    grid-template-columns: 32px 1fr;
    gap: 12px;
  }

  .help-step::before {
    width: 28px;
    height: 28px;
  }

  .help-closing {
    margin-left: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
