:root {
  --text: #2d3137;
  --subtle: #5d6672;
  --muted: #f3f6f9;
  --line: #d8dee6;
  --field: #edf1f5;
  --gold: #cdbb78;
  --gold-dark: #9e8842;
  --white: #ffffff;
  --black: #000000;
  --max: 1040px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--white);
}

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

.site-header {
  height: 96px;
  display: flex;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.brand img {
  width: 180px;
  height: auto;
}

.hero {
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 82px 24px;
  text-align: center;
  color: var(--white);
  background:
    linear-gradient(rgba(0, 0, 0, .48), rgba(0, 0, 0, .48)),
    url("assets/hero.jpg") center / cover no-repeat;
}

.hero__content {
  max-width: 780px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 750;
}

h1 {
  font-size: clamp(32px, 5vw, 46px);
}

h2 {
  font-size: clamp(25px, 3vw, 31px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  color: var(--white);
  background: var(--black);
  border: 0;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.button:hover,
.button:focus-visible {
  background: #1f242a;
}

.button:active {
  transform: translateY(1px);
}

.button--wide {
  width: 100%;
}

.section {
  padding: 66px 24px;
}

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

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.section-intro {
  max-width: 900px;
  margin: 0 auto 48px;
  text-align: center;
}

.logo-grid {
  max-width: 880px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 18px;
  align-items: center;
}

.logo-grid span {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px 20px;
  background: var(--white);
  border: 1px solid rgba(216, 222, 230, .72);
}

.logo-grid img {
  width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.service {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.08fr);
  gap: 78px;
  align-items: center;
  margin-top: 66px;
}

.service:first-of-type {
  margin-top: 0;
}

.service--reverse img {
  order: 2;
}

.service img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
}

ul {
  margin: 0;
  padding-left: 22px;
}

li {
  margin: 0 0 16px;
}

.action {
  padding-top: 70px;
  padding-bottom: 98px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  text-align: center;
}

.value-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 800;
  line-height: 1;
}

.center {
  text-align: center;
  margin-top: 38px;
}

.contact-form {
  max-width: 880px;
  margin: 0 auto;
}

.contact-form label {
  display: block;
  margin-bottom: 22px;
  color: #343941;
  font-size: 15px;
  font-weight: 700;
}

.contact-form span {
  display: inline-block;
  margin-bottom: 8px;
}

sup {
  color: #d84949;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--field);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(205, 187, 120, .22);
  outline: 0;
}

.legal {
  margin: 18px 0 24px;
  color: #262b31;
  font-size: 13px;
  line-height: 1.45;
}

.visually-hidden {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  text-align: center;
  font-weight: 700;
}

.footer {
  padding: 42px 24px 48px;
}

.footer hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0 0 34px;
}

.footer p {
  margin: 0;
  text-align: right;
  font-size: 13px;
}

@media (max-width: 800px) {
  .site-header {
    height: 86px;
  }

  .hero {
    min-height: 410px;
    padding: 68px 24px;
  }

  .section {
    padding: 54px 22px;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 24px;
  }

  .service,
  .service--reverse {
    grid-template-columns: 1fr;
    gap: 26px;
    margin-top: 50px;
  }

  .service--reverse img {
    order: 0;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .brand img {
    width: 150px;
  }

  .logo-grid {
    grid-template-columns: 1fr;
  }

  .footer p {
    text-align: left;
  }
}
