:root {
  --dark: #08090b;
  --dark-2: #14171b;
  --paper: #f1f1f0;
  --white: #ffffff;
  --text: #111315;
  --muted: #4d5258;
  --line: #cdd0d3;
  --accent: #d5c5a9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px clamp(24px, 4.7vw, 64px);
  color: var(--white);
  background: rgba(5, 6, 8, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand img {
  width: 247px;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(26px, 4vw, 54px);
  font-size: 15px;
  font-weight: 700;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.hero {
  min-height: 487px;
  padding-top: 74px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.83) 0%, rgba(0, 0, 0, 0.65) 34%, rgba(0, 0, 0, 0.13) 70%, rgba(0, 0, 0, 0.55) 100%),
    url("images/hero-ref.jpg") center top / cover no-repeat,
    #050608;
}

.hero-inner {
  padding: 62px 0 32px;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 7vw, 78px);
  line-height: 0.96;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 span {
  display: block;
  font-size: clamp(37px, 5vw, 50px);
}

.hero-lead {
  margin: 20px 0 30px;
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.24;
}

.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 230px));
  gap: 34px;
  margin-bottom: 28px;
}

.hero-features article {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 13px;
  align-items: start;
}

.hero-features img {
  width: 28px;
  height: 28px;
  filter: invert(1);
}

.hero-features strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.1;
  text-transform: uppercase;
}

.hero-features p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.22;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 215px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.btn-primary {
  color: #101113;
  background: var(--accent);
  border-color: var(--accent);
}

.btn-outline {
  color: var(--white);
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-dark {
  color: var(--white);
  background: #090a0c;
  border-color: #090a0c;
}

.btn-light-outline {
  color: #121416;
  background: transparent;
  border-color: #33383d;
}

.about {
  padding: 28px 0 27px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.about-image {
  width: 100%;
  aspect-ratio: 1.77 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
}

.about-copy h2 {
  margin: 0 0 18px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.about-copy p {
  max-width: 520px;
  margin: 0 0 16px;
  color: #202428;
  font-size: 17px;
  line-height: 1.6;
}

.about-copy .actions {
  margin-top: 28px;
}

.services {
  padding: 10px 0 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 18px;
  text-align: center;
}

.section-heading span {
  width: 65px;
  height: 1px;
  background: #222;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 23px;
  min-height: 135px;
  padding: 28px 24px;
  background: #f7f7f6;
  border: 1px solid var(--line);
}

.service-card img {
  width: 70px;
  height: 70px;
}

.service-card h3,
.why h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.36;
}

.why {
  padding: 27px 0 34px;
  color: var(--white);
  background: var(--dark-2);
}

.section-heading-dark span {
  background: rgba(255, 255, 255, 0.65);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
  text-align: center;
}

.why-grid article {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.why-grid img {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  opacity: 0.78;
  filter: invert(1);
}

.why-grid p {
  max-width: 210px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.42;
}

.process {
  padding: 16px 0 22px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.process figure {
  margin: 0;
  text-align: center;
}

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

.process figcaption {
  padding-top: 9px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contacts {
  padding: 10px 0 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.panel {
  min-height: 318px;
  padding: 27px 39px 26px;
  background: #f7f7f6;
  border: 1px solid var(--line);
}

.panel h2 {
  margin: 0 0 11px;
  font-size: 23px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.service-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 13px;
}

.service-form input,
.service-form select,
.service-form textarea {
  width: 100%;
  min-height: 38px;
  padding: 0 12px;
  color: #202326;
  background: #f8f8f7;
  border: 1px solid #c9cace;
  border-radius: 0;
  font: inherit;
  font-size: 13px;
}

.service-form textarea {
  min-height: 66px;
  padding-top: 10px;
  resize: vertical;
}

.wide,
.submit-button {
  grid-column: 1 / -1;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.submit-button {
  min-height: 44px;
  color: var(--white);
  background: #090a0c;
  border: 0;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: default;
  opacity: 0.74;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 18px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-status.success {
  color: #146b36;
}

.form-status.error {
  color: #9b1c1c;
}

.contact-list {
  display: grid;
  gap: 15px;
  margin: 20px 0 18px;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 13px;
  align-items: start;
}

.contact-list img {
  width: 22px;
  height: 22px;
}

.contact-list strong,
.contact-list span {
  display: block;
  font-size: 13px;
}

.contact-list strong {
  font-weight: 900;
}

.map {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  overflow: hidden;
  background:
    linear-gradient(28deg, transparent 0 47%, rgba(120, 124, 130, 0.16) 48% 52%, transparent 53%),
    linear-gradient(152deg, transparent 0 46%, rgba(120, 124, 130, 0.18) 47% 52%, transparent 53%),
    repeating-linear-gradient(0deg, #e4e5e6 0 2px, transparent 2px 28px),
    repeating-linear-gradient(90deg, #e4e5e6 0 2px, #f0f1f1 2px 33px);
  border: 1px solid #c8c9ca;
}

.map span {
  position: relative;
  top: 17px;
  font-size: 11px;
}

.map i {
  position: absolute;
  top: 41px;
  left: 52%;
  width: 17px;
  height: 17px;
  background: #0d0f12;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map i::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: #f4f4f3;
  border-radius: 50%;
}

.small-note {
  margin-top: 9px;
  margin-bottom: 0;
  font-size: 11px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
  }

  .hero {
    padding-top: 118px;
  }

  .hero-features,
  .about-grid,
  .service-grid,
  .why-grid,
  .process-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-features {
    max-width: 640px;
  }
}

@media (max-width: 620px) {
  .site-header {
    position: absolute;
    padding: 12px 16px;
  }

  .brand img {
    width: 188px;
    height: auto;
    max-height: 42px;
  }

  .header-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .main-nav {
    gap: 18px;
    font-size: 13px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .hero {
    min-height: 650px;
  }

  .hero-inner {
    padding-top: 128px;
  }

  .hero h1 {
    font-size: 45px;
  }

  .hero h1 span {
    font-size: 30px;
  }

  .actions {
    gap: 10px;
  }

  .btn {
    width: 100%;
    min-width: 0;
  }

  .section-heading {
    gap: 12px;
  }

  .section-heading span {
    width: 38px;
  }

  .service-card {
    grid-template-columns: 58px 1fr;
    padding: 20px;
  }

  .service-card img {
    width: 54px;
    height: 54px;
  }

  .panel {
    padding: 22px 18px;
  }

  .service-form {
    grid-template-columns: 1fr;
  }
}
