@import url(https://fonts.googleapis.com/css?family=Inter:regular,500,600,700,800);

:root {
  --primary-color: #A80000;
  --white-color: #FFFFFF;
  --black-color: #000000;

  --dark-100: #151623;
  --dark-400: #5A666E;
  --dark-700: #E4E4E4;

  --container-padding: 50px;

  --z-index-header: 20;
  --z-index-sidebar: 10;
}

::selection {
  color: var(--white-color);
  background-color: var(--primary-color);
}
::-moz-selection {
  color: var(--white-color);
  background-color: var(--primary-color);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 1px;
  min-height: 100%;

  font-family: 'Inter', sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--dark-100);
}
body.fixed {
  overflow: hidden;
}

@media (max-width: 992px) {
  :root {
    --container-padding: 30px;
  }
}
@media (max-width: 500px) {
  :root {
    --container-padding: 15px;
  }
} 

/* ========== null ========== */
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}
button {
  display: block;
  border: none;
  background-color: transparent;
  cursor: pointer;
}
p {
  margin: 0;
}
ul {
  list-style: none;
}
li {
  position: relative;
  padding-left: 0.9em;
}

li::before {
  content: "";
  position: absolute;
  left: 0;
  
  width: 0.3em;
  height: 0.3em;
  border-radius: 50%;
  background-color: currentColor;

  top: 0.7em;
  transform: translateY(-50%);
}

/* ========== typography ========== */
.h1 {
  font-size: 130px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}
.h2 {
  font-size: 78px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}
.h3 {
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
}
.text-base {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

@media (max-width: 992px) {
  .h1 {
    font-size: 90px;
    line-height: 0.9;
  }
  .h2 {
    font-size: 60px;
    line-height: 0.9;
  }
  .h3 {
    font-size: 48px;
    line-height: 0.9;
  }
  .text-base {
    font-size: 18px;
  }
}
@media (max-width: 500px) {
  .h1 {
    font-size: 40px;
    line-height: 0.9;
  }
  .h2 {
    font-size: 32px;
    line-height: 0.9;
  }
  .h3 {
    font-size: 24px;
    line-height: 0.9;
  }
  .text-base {
    font-size: 16px;
  }
}

/* ========== layout ========== */
.container {
  width: 100%;
  max-width: 1600px;
  padding: 0px var(--container-padding);
  margin: 0px auto;
}

header,
main,
section,
footer {
  overflow-x: hidden;
}

/* ========== components ========== */
.icon {
  --size: 1em;

  width: var(--size);
  height: var(--size);
}
.icon.icon-xs {
  --size: 10px;
}
.icon.icon-s {
  --size: 14px;
}
.icon.icon-m {
  --size: 18px;
}
.icon.icon-l {
  --size: 24px;
}

.link {
  display: flex;
  align-items: center;
  gap: 5px;
}
.link__arrow {
  transition: 0.5s;
}
.link:hover .link__arrow {
  transform: translateX(25%);
}

[data-appear] {
  transition: 1s;
}
[data-appear="left"]:not(.shown) {
  transform: translateX(-100%);
  opacity: 0;
}
[data-appear="right"]:not(.shown) {
  transform: translateX(100%);
  opacity: 0;
}

/* ========== content ========== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--z-index-header);

  width: 100%;
  padding: 40px 0px;
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 40px;
}
.header__links {
  display: flex;
  align-items: center;
  gap: 40px;
}
.header__link {
  font-size: 18px;
  font-weight: 600;
}
.header__phone {
  --size: 50px;

  width: var(--size);
  height: var(--size);
  flex: 0 0 var(--size);
  border-radius: var(--size);

  background-color: var(--dark-100);
  color: var(--white-color);

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
@media (max-width: 500px) {
  .header {
    padding: 20px 0px;
  }
  .header .container {
    gap: 30px;
  }
  .header__links {
    display: none;
  }
  .header__phone {
    --size: 40px;
  }
  .header__phone .icon {
    --size: 16px;
  }
}

.burger-button {
  --height: 18px;
  --ratio: 1.5;

  --width: calc(var(--height) * var(--ratio));
  --color: #000;

  width: var(--width);
  height: var(--height);

  position: relative;
  cursor: pointer;

  display: none;
}
.burger-button::before,
.burger-button::after,
.burger-button div {
  content: '';

  display: block;
  width: var(--width);
  height: 0px;

  position: absolute;
  left: 0%;

  transform-origin: center;
  transition: 0.3s;

  border: 1px solid var(--color);

  box-sizing: border-box;
}
.burger-button::before {
  top: 0%;
}
.burger-button::after {
  bottom: 0%;
}
.burger-button div {
  top: 50%;
  transform: translateY(-50%);
}
.burger-button.active::before {
  top: 50%;
  transform: translateY(-50%) rotateZ(45deg);
}
.burger-button.active::after {
  bottom: 50%;
  transform: translateY(50%) rotateZ(-45deg);
}
.burger-button.active div {
  opacity: 0;
}
@media (max-width: 500px) {
  .burger-button {
    display: block;
  }
}

.sidebar {
  position: fixed;
  top: 0px;
  left: 0px;
  transform: translateY(-110%);
  z-index: var(--z-index-sidebar);

  width: 100%;
  height: 100%;

  padding-top: 100px;
  padding-bottom: 100px;
  
  background-color: var(--white-color);
  transition: 0.3s;

  display: none;
}
.sidebar.opened {
  transform: translateY(0px);
}
@media (max-width: 500px) {
  .sidebar {
    display: block;
  }
}

.sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.sidebar__link {
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
}

.hero {
  --background-layer: -1;
  --decor-layer: 1;
  --content-layer: 2;

  display: flex;
  width: 100%;

  height: 100vh;
  max-height: 900px;

  overflow: hidden;
  position: relative;
}
.hero__backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  z-index: var(--background-layer);

  width: 100%;
  height: 100%;

  overflow: hidden;
}
.hero__background {
  position: absolute;
  top: 0;
  left: 0;

  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: 8s scale, 2s opacity;
  transition-timing-function: linear;
}
.hero.hero-slider .hero__background:not(.visible) {
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
.hero.hero-slider .hero__background.active {
  scale: 1.1;
}
.hero__decor {
  position: absolute;
  z-index: var(--decor-layer);
  
  top: 10%;
  transform: translateX(-30%);

  max-height: 55%;
}
.hero .container {
  position: relative;
  z-index: var(--content-layer);

  display: flex;
  align-items: flex-end;
  padding-bottom: 90px;
}
.hero__text {
  margin-top: 20px;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.05em;
}
@media (max-width: 992px) {
  .hero__text {
    font-size: 24px;
  }
}
@media (max-width: 500px) {
  .hero {
    height: 80vh;
    min-height: 600px;
  }
  .hero .container {
    padding-bottom: 70px;
  }
  .hero__text {
    font-size: 18px;
  }
}

.partners {
  background-color: var(--dark-100);
}
.partners .container {
  overflow: hidden;
}
.partners__content {
  width: fit-content;
  animation: partners 60s linear 0s infinite forwards;

  display: flex;
  justify-content: space-around;
  align-items: center;
}
.partners__content img {
  max-height: 110px;
  margin-right: 90px;
}
@keyframes partners {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
@media (max-width: 500px) {
  .partners__content  {
    gap: 30px;
  }
}

.illustrated-section {
  display: block;
  width: 100%;
  height: 900px;
}
.illustrated-section__backgrounds {
  position: absolute;
  top: 50px;
  left: 0;
  
  width: 100%;
  height: calc(100% - 100px);
}
.illustrated-section__background {
  position: absolute;
  bottom: 0;
  left: 0;
  
  display: block;
  width: 100%;
  object-fit: contain;

  transition: 1s;
}
.illustrated-section.illustrated-section-slider .illustrated-section__background:not(.active) {
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
.illustrated-section__decors {
  position: absolute;
  top: 0;
  left: 0;

  width: 100%;
  height: 100%;
}
.illustrated-section__decor {
  position: absolute;
  top: 0;
  right: 0;

  display: block;
  transition: 1s;
}
.illustrated-section.illustrated-section-slider .illustrated-section__decor:not(.active) {
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
.illustrated-section .container {
  padding-top: 110px;
  height: 100%;  
  display: flex;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.illustrated-section__content {
  width: 100%;
  max-width: 550px;
  position: relative;
  z-index: 1;
}
.illustrated-section__progress {
  display: flex;
  gap: 15px;
}
.illustrated-section__progress-item {
  --size: 4px;

  flex: 1 1 auto;
  height: var(--size);
  
  background-color: #E4E4E4;
  border-radius: var(--size);

  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.illustrated-section__progress-item.filled {
  background-color: var(--dark-100);
}
.illustrated-section__progress-item::before {
  content: '';
  
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  
  width: 0%;
  height: 100%;
  
  transition: 0s;
  background-color: var(--dark-100);
}
.illustrated-section__progress-item.current::before {
  width: 100%;
  animation: progress 7s linear 0s forwards;
}
.illustrated-section__progress-item.filled::before {
  width: 100%;
  transition: 0s;
}
.illustrated-section__slides {
  margin-top: 60px;
  position: relative;
}
.illustrated-section__slide {
  position: absolute;
  top: 0;
  right: 0;
  transition: 1s;
}
.illustrated-section.illustrated-section-slider .illustrated-section__slide:not(.active) {
  pointer-events: none;
  user-select: none;
  opacity: 0;
}
.illustrated-section__text {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
@keyframes progress {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}
@media (max-width: 992px) {
  .illustrated-section .container {
    padding-top: 90px;
  }
  .illustrated-section__content {
    max-width: 100%;
  }
}
@media (max-width: 500px) {
  .illustrated-section {
    height: 700px;
  }
  .illustrated-section__backgrounds {
    opacity: 0.7;
  }
  .illustrated-section .container {
    padding-top: 50px;
  }
  .illustrated-section__slides {
    margin-top: 30px;
  }
  .illustrated-section__title {
    max-width: 80%;
  }
  .illustrated-section__decor {
    transform-origin: top right;
    scale: 0.5;
  }
}

.content-section {
  display: flex;
}
.content-section.dark {
  background-color: var(--dark-100);
  color: var(--white-color);
}
.content-section__content {
  flex: 1 1 auto;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;

  padding: 90px var(--container-padding);

  position: relative;
  overflow: hidden;
}
.content-section__title.right {
  text-align: right;
}
.content-section__decor {
  position: absolute;
  bottom: 0;
  right: 0;
  transform: translateX(15%) translateY(25%);
  opacity: 0.4;

  user-select: none;
  pointer-events: none;
}
.content-section__text {
  max-width: 550px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.content-section__image {
  max-width: 530px;
  flex: 1 0 auto;
}
.content-section__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 992px) {
  .content-section__image {
    display: none;
  }
  .content-section__title,
  .content-section__title.right {
    text-align: left;
  }
  .content-section__decor {
    max-height: 100%;
    transform: translateX(10%) translateY(10%);
  }
}

.footer {
  padding-top: 90px;
  padding-bottom: 50px;

  background-color: var(--dark-100);
  color: var(--white-color);
}
.footer__info {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer__info-item {
  border-top: 1px solid #FFFFFF33;
  padding-top: 40px;

  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.05em;
}
.footer__copyright {
  margin-top: 110px;
  border-top: 1px solid #FFFFFF33;
  padding-top: 50px;
  font-size: 14px;
}
@media (max-width: 992px) {
  .footer {
    padding-top: 50px;
  }
  .footer__info {
    margin-top: 50px;
    grid-template-columns: 1fr;
  }
  .footer__copyright {
    margin-top: 50px;
  }
}
@media (max-width: 500px) {
  .footer__info {
    gap: 30px;
  }
  .footer__info-item {
    padding-top: 20px;
    font-size: 18px;
  }
  .footer__copyright {
    margin-top: 30px;
  }
}
