:root {
  --black-color: #1a1a1a;
  --bg-color: #fbfbfb;
  --main-color: #9ccaff;

  --items: 1;
  --gap: 16px;
}

@font-face {
  font-family: "Inter";
  src:
    url("/assets/fonts/inter/Inter-Regular.woff2") format("woff2"),
    url("/assets/fonts/inter/Inter-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src:
    url("/assets/fonts/inter/Inter-Medium.woff2") format("woff2"),
    url("/assets/fonts/inter/Inter-Medium.woff") format("woff");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src:
    url("/assets/fonts/inter/Inter-SemiBold.woff2") format("woff2"),
    url("/assets/fonts/inter/Inter-SemiBold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src:
    url("/assets/fonts/inter/Inter-Bold.woff2") format("woff2"),
    url("/assets/fonts/inter/Inter-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

/* reset */
html {
  --plr: 16px;
  --header-h: 50px;
  box-sizing: border-box;
  height: 100%;

  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  text-rendering: optimizeSpeed;
}
*,
*:before,
*:after {
  box-sizing: inherit;

  margin: 0;
  padding: 0;
}
main {
  contain: paint;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  font-size: inherit;
  font-weight: inherit;
}
ul,
ol,
li {
  list-style: none;
}
a,
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a {
  cursor: pointer;
  background: none;
}
a {
  text-decoration: none;
}
button {
  border: none;
}
button[disabled] {
  cursor: auto;
}
footer {
  margin-top: auto;
}

:before,
:after,
svg,
span {
  pointer-events: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

/* shared */
body {
  display: flex;
  flex-direction: column;
  height: 100%;

  font-family: "Inter", system-ui, sans-serif;
  font-size: 15px;
  line-height: 25px;
  color: var(--black-color);
  background-color: var(--bg-color);
}
/* body.isLoading,
body.modalIsOpen,
body.burgerMenuIsOpen {
  overflow-y: hidden;
} */

.section {
  padding: 16px 0;
}
.container {
  width: 100%;
  padding: 0 var(--plr);
  margin: 0 auto;
}
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow-y: scroll;
}
.backdrop::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  background-color: var(--main-color);
  transition: 0.2s ease;
}
.loader__backdrop {
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.loader__backdrop::before {
  opacity: 1;
  transition: 0.5s ease;
  transition-delay: 500ms;
}
/* .loader-logo {
  animation: premiumPulse 3.2s ease-in-out infinite;
  transform-origin: center;
} */

/* @keyframes premiumPulse {
  0% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.3);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 0.92;
  }
} */

.isHidden .backdrop {
  pointer-events: none;
  visibility: hidden;
}
.isHidden .loader__backdrop {
  pointer-events: none;
  visibility: hidden;
}
.isHidden .loader__backdrop::before {
  transform: translateY(-100%);
}
.isHidden .loader__backdrop .loader__content {
  opacity: 0;
}
.cardset {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
}
.cardset__item {
  flex-basis: calc(
    (100% - var(--gap, 16px) * (var(--items, 1) - 1)) / var(--items, 1)
  );
  width: calc(
    (100% - var(--gap, 16px) * (var(--items, 1) - 1)) / var(--items, 1)
  );
}

.cta,
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta {
  width: 200px;
  height: 32px;
  margin-left: auto;
  margin-right: auto;

  border-radius: 5px;
  border: 0.5px solid currentColor;
  background: var(--main-color);
  transition: 0.2s ease;
}
.cta:hover {
  background: var(--black-color);
  color: var(--main-color);
}


.nav__list {
  display: flex;
  gap: var(--gap);
}
.nav__link {
  &.active {
    font-weight: 800;
  }
}

.title {
  margin-bottom: 20px;

  font-size: 20px;
  font-weight: 600;
  line-height: 25px; /* 166.667% */
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;

  width: 100%;
  height: var(--header-h);
  padding: 12px 0;

  transition: 400ms ease;
  background: var(--bg-color)
    linear-gradient(
      180deg,
      rgba(38, 137, 250, 0.2) 0.48%,
      rgba(210, 252, 255, 0.2) 69.47%,
      rgba(251, 251, 251, 0.2) 100%
    );
  background-repeat: no-repeat;
  background-size: cover;

  .burgerMenuIsOpen & {
    z-index: 3;
    background-color: var(--text-heading-primary);
  }
}
.header__container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 60px;
  height: 100%;
}
.header__logo {
  height: 100%;

  svg {
    height: 100%;
    width: auto;
  }

  .logo__icon--mobile {
    height: 28px;
  }

  .logo__icon--desktop {
    display: none;
  }
}
.header__nav {
  display: none;
}

.hero {
  --hero-p-top: 16px;
  padding-top: calc(var(--header-h, 50px) + var(--hero-p-top, 16px));
  padding-bottom: 16px;
}

.burger-menu-btn {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 24px;
  margin-left: auto;

  background-color: transparent;

  &::before,
  &::after {
    content: "";

    position: absolute;

    display: block;
    width: 26px;
    height: 2px;

    border-radius: 4px;
    background-color: currentColor;
    transition-property: transform;
    transition-duration: 0.4s;
  }
  &::before {
    transform: translateY(-3px);
  }
  &::after {
    transform: translateY(3px);
  }
  &.active::before {
    transform: rotate(-45deg);
  }
  &.active::after {
    transform: rotate(45deg);
  }
}
.burger-menu {
  &.isHidden {
    pointer-events: none;
    visibility: hidden;
  }

  .nav__list {
    flex-direction: column;
    gap: 16px;
  }

  .nav__link {
    font-size: 10px;
    font-weight: 600;

    &.active {
      font-weight: 800;
    }
  }
}
.burger-menu__container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  max-width: 390px;
  height: 100%;
  min-height: fit-content;
  padding: 0 var(--plr, 16px);
  margin: 0;

  color: var(--text-primary-on-dark);

  background-color: var(--bg-color);
  transition: 0.4s ease;

  .isHidden & {
    transform: translateX(-101%);
  }
}
.burger-menu__body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 26px;

  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 32px;
}

.footer {
  margin-top: auto;
  padding: 16px 0 25px;

  font-size: 10px;
  font-weight: 600;

  background-color: var(--main-color);

  & .nav__list {
    --items: 2;
  }
  & .nav__item {
    min-width: 54px;
    max-width: fit-content;
  }
}
.footer__bottom {
  margin-top: 24px;
}
.footer__box-wrap {
  display: flex;
  /* align-items: center; */
  gap: 24px;
  justify-content: space-between;
}
.footer__box--nav {
  width: 180px;
}
.footer__contact-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.hover-line {
  position: relative;

  &:before {
    content: "";

    position: absolute;
    bottom: -1px;
    left: 0;

    width: 100%;
    max-width: 0;
    height: 1px;

    transition: 400ms ease;
    background-color: currentColor;
  }
}
.hover-line:hover:before {
  max-width: 100%;
}

.modal__backdrop {
  align-items: center;
  height: 100vh;
  padding: 16px;

  background: var(--main-color);
  transition: 0.3s ease;
}
.modal__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px 24px;
  width: 100%;
  max-width: 343px;
  height: fit-content;
  margin: auto;
  border-radius: 5px;

  background: var(--bg-color);
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;

  .isHidden & {
    transform: scale(0.8);
    opacity: 0;
  }
}
.modal__top {
  position: relative;
}
.modal__title {
  color: #515d74;
  text-align: center;
}
.modal-btn {
  position: absolute;
  top: 0;
  right: 0;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;

  background-color: transparent;

  &::before,
  &::after {
    content: '';

    position: absolute;

    display: block;
    width: 20px;
    height: 2px;

    border-radius: 4px;
    background-color: currentColor;
    transition-property: transform;
    transition-duration: 0.4s;
  }
  &::before {
    transform: rotate(-45deg);
  }
  &::after {
    transform: rotate(45deg);
  }
}
.modal-thank-you-box {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.modal-thank-you-box__title {
  margin: 30px 0 16px;
  font-size: 24px;
  font-weight: 600;
  line-height: 32px; /* 133.333% */
}
.modal-thank-you-box__text {
  text-align: center;
}
.modal-thank-you-box__btn {
  margin-top: 60px;
}

#modal-thank-you .modal__content {
  max-width: 600px;
}

.reach__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reach__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  color: #000;
  font-size: 13px;
  font-weight: 600;
  line-height: 25px; /* 192.308% */

  transition: 0.2s ease;

  span {
    display: block;
    flex-shrink: 0;
  }

  & svg {
     flex-shrink: 0;
    position: relative;
    transition: 0.2s ease;
  }

  &:hover {
    svg {
      transform: translateX(4px);
    }

    .hover-line:before {
      max-width: 100%;
    }
  }
  
}

.oil-ser__img {
  margin: 20px auto;
}

.application-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (width >= 390px) {
  .container {
    width: 390px;
  }
}

@media (width >= 744px) {
  html {
    --header-h: 77px;
  }

  .section {
    padding: 32px 0;
  }
  .container {
    width: 744px;
  }
  .cta {
    width: 410px;
    height: 63px;

    font-size: 15px;
    font-weight: 500;
    line-height: 25px; /* 166.667% */
  }

  .header__nav {
    display: flex;

    font-size: 10px;
    font-weight: 600;
  }
  .header__logo {
    .logo__icon--mobile {
      display: none;
    }

    .logo__icon--desktop {
      display: block;
      width: 150px;
      height: 53px;
    }
  }
  .hero {
    --hero-p-top: 32px;
  }

  .burger-menu,
  .burger-menu-btn {
    display: none;
  }

  .footer {
    font-size: 15px;

    .nav__list {
      --gap: 36px;
      row-gap: 20px;
    }

    .nav__item {
      min-width: initial;
    }
  }
  .footer__box--nav {
    width: 300px;
  }

  .reach__link {
    width: fit-content;
  }
}
@media (width >= 1280px) {
  html {
    --plr: 80px;
  }

  body {
    font-size: 16px;
    line-height: 26px;
  }

  .section {
    padding: 50px 0;
  }

  .container {
    width: 1280px;
  }
  .title {
    font-size: 24px;
    line-height: 30px; /* 125% */
  }

  .header__nav {
    --gap: 32px;
    font-size: 16px;
  }

  .hero {
    --hero-p-top: 50px;
  }

  .reach__link {
    font-size: 20px;
  font-weight: 600;
  line-height: 25px; /* 125% */

  }
}
@media (width >= 1440px) {
  .container {
    width: 1440px;
  }
}
