:root {
  --ink: #1a1208;
  --ink-soft: #3a2f24;
  --paper: #f3e6cf;
  --paper-deep: #e8d4b0;
  --cream: #fff8eb;
  --web-red: #c41e3a;
  --web-red-dark: #8e1428;
  --panel-blue: #1e4d8c;
  --panel-blue-dark: #153868;
  --mustard: #d4a017;
  --rule: #2a2118;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 2px;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Literata", Georgia, serif;
  --font-ui: "Karla", system-ui, sans-serif;
  --space: 1.25rem;
  --max: 72rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(26, 18, 8, 0.07) 1px, transparent 1.5px);
  background-size: 6px 6px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--panel-blue-dark);
}

a:hover {
  color: var(--web-red-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 4.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
  font-family: var(--font-ui);
}

.main {
  min-height: 60vh;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
}

.header__skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.4rem 0.7rem;
  z-index: 30;
}

.header__skip:focus {
  top: 0.5rem;
}

.header__bar {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}

.header__mark {
  width: 1.5rem;
  height: 1.5rem;
  background: var(--web-red);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.header__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.header__toggle {
  font-family: var(--font-ui);
  font-weight: 700;
  background: var(--mustard);
  border: 3px solid var(--ink);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

.header__nav {
  display: none;
}

.header__nav.is-open,
.header__nav[data-open="true"] {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--cream);
  border-bottom: 4px solid var(--ink);
  padding: 0.5rem 1rem 1rem;
}

.header__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.header__link {
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  padding: 0.35rem 0.15rem;
}

.header__link--cta {
  background: var(--web-red);
  color: var(--cream);
  padding: 0.4rem 0.75rem;
  border: 3px solid var(--ink);
  display: inline-block;
}

.header__link--cta:hover {
  color: var(--cream);
  background: var(--web-red-dark);
}

@media (min-width: 960px) {
  .header__toggle {
    display: none;
  }

  .header__nav,
  .header__nav.is-open {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    background: transparent;
  }

  .header__list {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.85rem;
  }
}

.btn {
  font-family: var(--font-ui);
  font-weight: 700;
  border: 3px solid var(--ink);
  padding: 0.65rem 1.1rem;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
  background: var(--cream);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--primary {
  background: var(--web-red);
  color: var(--cream);
}

.btn--primary:hover {
  color: var(--cream);
}

.btn--ghost {
  background: var(--cream);
}

.hero {
  padding: 2.5rem 0 3rem;
}

.hero__panel {
  display: grid;
  gap: 1.5rem;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

@media (min-width: 840px) {
  .hero__panel {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }
}

.hero__copy {
  padding: 1.75rem 1.5rem 2rem;
}

.hero__kicker {
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--web-red-dark);
  margin: 0 0 0.6rem;
}

.hero__lede {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__figure {
  margin: 0;
  position: relative;
  min-height: 16rem;
}

.hero__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.hero__caption {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  background: var(--mustard);
  border: 3px solid var(--ink);
  padding: 0.25rem 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
}

.section {
  padding: 2.5rem 0;
}

.section--tint {
  background: var(--paper-deep);
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
}

.section__intro {
  max-width: 42rem;
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.card {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.card__body {
  padding: 1rem 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.card__meta {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--web-red-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card__link {
  margin-top: auto;
  font-family: var(--font-ui);
  font-weight: 700;
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.prose {
  max-width: 44rem;
}

.prose p,
.prose li {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.2rem;
}

.quote {
  background: var(--cream);
  border: 4px solid var(--ink);
  border-left: 12px solid var(--web-red);
  padding: 1.1rem 1.2rem;
  margin: 0 0 1rem;
}

.quote p {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.quote footer {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
}

.form {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  max-width: 36rem;
}

.form__row {
  margin-bottom: 1rem;
}

.form label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  padding: 0.55rem 0.65rem;
  border: 3px solid var(--ink);
  background: var(--paper);
}

.form textarea {
  min-height: 8rem;
}

.form__error {
  color: var(--web-red-dark);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  margin: 0.3rem 0 0;
}

.form__status {
  font-family: var(--font-ui);
  font-weight: 700;
  margin-top: 0.75rem;
}

.form__status--ok {
  color: var(--panel-blue-dark);
}

.form__status--bad {
  color: var(--web-red-dark);
}

.table-wrap {
  overflow-x: auto;
  border: 4px solid var(--ink);
  background: var(--cream);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th,
td {
  border-bottom: 2px solid var(--ink);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

th {
  font-family: var(--font-ui);
  background: var(--mustard);
}

.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.footer a {
  color: var(--mustard);
}

.footer__grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
}

.footer__label {
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin: 0 0 0.4rem;
  color: var(--mustard);
}

.footer__address,
.footer__phone,
.footer__tag {
  margin: 0 0 0.4rem;
}

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

.footer__list li {
  margin-bottom: 0.25rem;
}

.footer__note {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  font-size: 0.85rem;
  opacity: 0.85;
}

.cookie-banner {
  position: fixed;
  z-index: 40;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  max-width: 36rem;
  margin-left: auto;
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.cookie-banner__error {
  color: var(--web-red-dark);
  font-family: var(--font-ui);
}

.page-hero {
  padding: 2rem 0 0.5rem;
}

.page-hero img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
}

.steps li {
  counter-increment: step;
  margin: 0 0 1rem;
  padding-left: 3rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background: var(--web-red);
  color: var(--cream);
  border: 3px solid var(--ink);
  font-family: var(--font-display);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.mast {
  background: var(--panel-blue);
  color: var(--cream);
  padding: 0.2rem 0.55rem;
  font-family: var(--font-ui);
  font-weight: 700;
  display: inline-block;
  border: 3px solid var(--ink);
  margin-bottom: 0.75rem;
}

.error-page {
  text-align: center;
  padding: 4rem 1rem;
}

.team-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.team-card img {
  width: 100%;
  height: 16rem;
  object-fit: cover;
  border-bottom: 4px solid var(--ink);
}

.team-card {
  background: var(--cream);
  border: 4px solid var(--ink);
  box-shadow: var(--shadow);
}

.team-card__body {
  padding: 1rem;
}
