:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #f3f3f3;
  --line: #d8d8d8;
  --accent: #f5d000;
  --content: 1140px;
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Chivo";
  src: url("/assets/Chivo.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/Manrope.woff2") format("woff2");
  font-display: swap;
}

html {
  color-scheme: light;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.section,
.hero,
.legal-page {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Chivo", sans-serif;
  font-weight: 800;
  text-decoration: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 700;
}

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

.hero {
  position: relative;
  width: 100%;
  min-height: 570px;
  padding: 72px max(20px, calc((100vw - var(--content)) / 2));
  display: flex;
  align-items: center;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.52) 52%, rgba(0, 0, 0, 0.18) 100%),
    url("/assets/ec-crew.webp") center 46% / cover no-repeat;
}

.hero-content {
  width: min(700px, 100%);
}

h1,
h2,
h3 {
  font-family: "Chivo", sans-serif;
  line-height: 1.15;
}

h1 {
  max-width: 720px;
  margin: 0 0 20px;
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.025em;
}

p {
  margin: 0 0 18px;
}

.button {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 20px;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.section {
  padding-block: 76px;
  border-top: 1px solid var(--line);
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: center;
  gap: 72px;
}

.about-section img {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.service-list,
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.service-list li,
.process-grid article {
  min-width: 0;
  padding: 25px;
  background: var(--muted);
  border-top: 4px solid var(--accent);
}

.service-list strong,
.service-list span {
  display: block;
}

.service-list strong {
  margin-bottom: 6px;
  font-family: "Chivo", sans-serif;
  font-size: 19px;
}

.service-list span {
  color: #4c4c4c;
  font-size: 15px;
}

.process-section {
  position: relative;
}

.process-section::before {
  content: "";
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--muted);
}

.process-grid article {
  min-height: 235px;
  background: var(--paper);
  border-top-color: var(--ink);
}

.process-grid article > span {
  display: block;
  margin-bottom: 38px;
  color: #666666;
  font-weight: 800;
}

.process-grid h3 {
  margin: 0 0 12px;
  font-size: 23px;
}

.process-grid p {
  margin: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 72px;
}

.text-link {
  font-size: 24px;
  font-weight: 800;
}

.legal-page {
  max-width: 760px;
  padding-block: 64px 80px;
}

.legal-page h1 {
  font-size: clamp(40px, 7vw, 64px);
}

.legal-page h2 {
  margin-top: 42px;
  font-size: 26px;
}

.updated {
  padding-bottom: 26px;
  color: #555555;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  padding-block: 36px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}

.site-footer p {
  margin-bottom: 6px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 18px;
}

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

  .site-header {
    min-height: 78px;
  }

  .site-nav {
    gap: 15px;
    font-size: 14px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 540px;
    padding-block: 56px;
    align-items: flex-end;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.82) 74%),
      url("/assets/ec-crew.webp") center 40% / cover no-repeat;
  }

  .section {
    padding-block: 54px;
  }

  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-section img {
    height: auto;
  }

  .service-list,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .process-grid article {
    min-height: 0;
  }

  .process-grid article > span {
    margin-bottom: 20px;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-section {
    gap: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
