@font-face {
  font-family: "avenir";
  src: url("../fonts/avenir-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "avenir";
  src: url("../fonts/avenir-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "avenir";
  src: url("../fonts/avenir-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "avenir";
  src: url("../fonts/avenir-semi-bold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
:root {
  --rem-base: 10px;
  --base-text-color: #000;
  --font-family-base: "avenir", sans-serif;
  --transition: 0.2s ease;
  --color-accent: #126db6;
}

.bg-brand {
  background-color: red;
}

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

html {
  font-size: var(--rem-base);
  -webkit-text-size-adjust: 100%;
}

html,
:has(:target) {
  scroll-behavior: smooth;
}

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-family-base);
  font-size: 1.8rem;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  min-width: 0;
}

:where(h1, h2, h3, h4, h5, h6, p, ul, ol, dl):where([class]) {
  margin-top: 0;
  margin-bottom: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(address[class]) {
  font-style: normal;
}

p:last-child {
  margin-bottom: 0;
}

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

img {
  border-style: none;
}

button,
hr,
input {
  overflow: visible;
}

[type="checkbox"],
[type="radio"],
legend {
  box-sizing: border-box;
  padding: 0;
}

small {
  font-size: 80%;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: 1.15;
  margin: 0;
}

button,
select {
  text-transform: none;
}

textarea {
  overflow: auto;
  resize: none;
}

select {
  display: block;
  width: 100%;
}

button,
label {
  cursor: pointer;
}

summary {
  display: list-item;
}

input,
textarea,
select,
button {
  font: inherit;
}

a,
button,
label,
input,
textarea,
select,
svg * {
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wrapper {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100%;
  width: 100%;
  overflow: clip;
}

.container {
  max-width: 119rem;
  width: 100%;
  padding-left: 2rem;
  padding-right: 2rem;
  margin-left: auto;
  margin-right: auto;
}

.button {
  display: inline-flex;
  border: none;
  background: transparent;
  padding: 0;
  text-decoration: none;
  padding: 1.8rem 1.2rem;
  color: white;
  background-color: var(--color-accent);
  border-radius: 0.4rem;
  font-size: 1.6rem;
  text-transform: uppercase;
  font-weight: 700;
  transition: var(--transition);
  line-height: normal;
}
.button:hover {
  opacity: 0.8;
}

.header {
  position: absolute;
  top: 0;
  z-index: 60;
  width: 100%;
  padding: 4rem 0;
}
.header_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.header .contact-item {
  color: white;
}

.logo {
  display: inline-flex;
  max-width: clamp(20rem, 15.6125rem + 11.25vw, 29rem);
  width: 100%;
  flex-shrink: 0;
  -o-object-fit: contain;
  object-fit: contain;
}

.contacts-items {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.5125rem + 1.25vw, 2rem);
}

.contact-item {
  text-decoration: none;
  color: inherit;
  font-size: 1.8rem;
  font-weight: 500;
  display: inline-flex;
}
.contact-item:before {
  content: "";
  width: 3rem;
  height: 2rem;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) saturate(100%) invert(20%) sepia(46%) saturate(6054%)
    hue-rotate(195deg) brightness(94%) contrast(86%);
  display: none;
}
.contact-item._email:before {
  background-image: url("../img/icons/email.svg");
}
.contact-item._phone:before {
  background-image: url("../img/icons/phone.svg");
}
.contact-item:hover {
  text-decoration: underline;
  text-underline-offset: 0.4rem;
}

.hero {
  padding-top: 15rem;
  padding-bottom: 8rem;
  position: relative;
}
.hero:before,
.hero:after {
  content: "";
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
}
.hero:before {
  left: 0;
  background-color: white;
}
.hero:after {
  right: 0;
  background-color: var(--color-accent);
}
.hero_container {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 34rem 1.9fr;
  grid-gap: 10%;
  gap: 10%;
}
.hero_title,
.hero_subtitle {
  color: var(--color-accent);
}
.hero_title {
  font-size: 2.4rem;
  margin-bottom: 3rem;
  font-weight: 600;
}
.hero_subtitle {
  font-size: clamp(2.8rem, 2.41rem + 1vw, 3.6rem);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}
.hero_content {
  display: flex;
  flex-direction: column;
  row-gap: 7rem;
  padding-top: 4rem;
}
.hero_text {
  line-height: 1.65;
}
.hero_item-text {
  font-size: 2.4rem;
  font-weight: 700;
}
.hero_item-text span {
  color: var(--color-accent);
  text-transform: uppercase;
}
.hero_item {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid #a3a3a3;
  border-bottom: 1px solid #a3a3a3;
}
.hero_item > :last-child {
  margin-bottom: 0;
}
.hero_img {
  -o-object-fit: cover;
  object-fit: cover;
}

.section {
  padding-top: clamp(4.5rem, 3.525rem + 2.5vw, 6.5rem);
  padding-bottom: clamp(4.5rem, 3.525rem + 2.5vw, 6.5rem);
}

.services-section {
  background-color: #f3f3f3;
}
.services-section_title {
  font-size: clamp(2rem, 1.805rem + 0.5vw, 2.4rem);
  margin-bottom: clamp(4rem, 3.5125rem + 1.25vw, 5rem);
  text-transform: uppercase;
  color: var(--color-accent);
}
.services-section_icon {
  width: clamp(8rem, 7.5125rem + 1.25vw, 9rem);
  height: clamp(8rem, 7.5125rem + 1.25vw, 9rem);
  -o-object-fit: contain;
  object-fit: contain;
}
.services-section_item {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 1.5125rem + 1.25vw, 3rem);
  border-right: 1px solid #969696;
  padding: 3.5rem 2.5rem;
  padding-left: 0;
}
.services-section_item p {
  font-size: clamp(1.8rem, 1.7025rem + 0.25vw, 2rem);
  font-weight: 600;
  margin-top: 0;
}
.services-section_item:nth-child(3),
.services-section_item:nth-child(6) {
  border: none;
  padding-right: 0;
}
.services-section_list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-column-gap: 5rem;
  -moz-column-gap: 5rem;
  column-gap: 5rem;
}

.cta-section_container {
  text-align: center;
  max-width: 70rem;
  color: var(--color-accent);
}
.cta-section_title {
  margin-bottom: 1.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.3;
}
.cta-section_title br {
  display: none;
}
.cta-section_text {
  font-size: 2.4rem;
  margin-bottom: 4rem;
  font-weight: 500;
  line-height: 1.4;
}

.footer_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  border-top: 1px solid #a3a3a3;
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.footer .contact-item {
  color: var(--color-accent);
}
.footer .logo {
  max-width: clamp(23rem, 20.075rem + 7.5vw, 29rem);
}
@media (max-width: 1023px) {
  .hero_container {
    gap: 5%;
  }
  .hero_title {
    margin-bottom: 1.5rem;
  }
  .hero_content {
    padding-top: 0;
  }
  .services-section_title {
    text-align: center;
  }
  .services-section_item {
    border: none;
    padding: 0;
  }
  .services-section_list {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 65rem;
    margin-left: auto;
    margin-right: auto;
  }
}
@media (max-width: 880px) {
  .header {
    position: static;
    background-color: white;
    padding: 2rem 0;
  }
  .header .contact-item {
    color: #000;
  }
  .hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
  .hero_container {
    grid-template-columns: 31.5rem 1.9fr;
  }
}
@media (max-width: 767px) {
  .header .contact-item:before {
    display: inline-block;
  }
  .header .contact-item_text {
    display: none;
  }
  .header .contacts-items {
    flex-direction: row-reverse;
  }
  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }
  .hero:before,
  .hero:after {
    content: none;
  }
  .hero_container {
    grid-template-columns: 1fr;
  }
  .hero_container:after {
    content: "";
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 9rem);
    background-color: rgba(0, 0, 0, 0.5);
  }
  .hero_title {
    color: white;
  }
  .hero_subtitle br {
    display: none;
  }
  .hero_content {
    position: relative;
    z-index: 20;
    text-align: center;
    padding-top: 4rem;
  }
  .hero_text {
    color: white;
    font-weight: 500;
  }
  .hero_item {
    border: none;
    background-color: white;
    max-width: 37rem;
    width: 100%;
    padding: 2.5rem 2rem;
    margin-left: auto;
    margin-right: auto;
  }
  .hero_img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 9rem);
  }
  .services-section_item {
    flex-direction: column;
    text-align: center;
  }
  .cta-section_title br {
    display: block;
  }
  .footer_container {
    flex-direction: column;
  }
  .footer .contacts-items {
    flex-direction: column;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
