:root {
  --color-white: #ffffff;
  --color-black: #000000;

  --color-light: #f3f3f3;
  --color-dark: #0a0a0a;
  --color-accent: #2563eb;

  --color-bd: #bdbdbd;
  --color-88: #888888;

  --color-body-text: var(--color-light);
  --color-body-bg: var(--color-dark);

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

*,
:before,
:after {
  box-sizing: border-box;
  transition: 0.2s ease;
}

* {
  margin: 0;
  padding: 0;
  border: none;
}

html {
  --plr: 16px;
  --header-h: 60px;
  --scroll-padding-top: var(--header-h, 60px);

  height: 100%;

  -webkit-overflow-scrolling: touch;
  text-rendering: optimizeSpeed;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-padding-top);
}
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: var(--scroll-padding-top);

  color: var(--color-body-text);
  background: var(--color-body-bg);

  &.isLoading,
  &.modalIsOpen,
  &.burgerMenuIsOpen {
    overflow-y: hidden;
  }
}
main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  contain: paint;
}
footer {
  margin-top: auto;
}

nav,
header,
footer,
section {
  display: block;
}

svg,
img,
picture {
  display: block;
  max-width: 100%;
}
img {
  vertical-align: top;
}
ol,
ul,
li {
  list-style: none;
}
p,
h1,
h2,
h3 {
  font-size: inherit;
  font-weight: inherit;
  overflow-wrap: break-word;
}
textarea,
input {
  font: inherit;
  color: inherit;
  background-color: transparent;
}
a {
  font: inherit;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;

  &[disabled] {
    cursor: auto;
  }
}
:before,
:after,
svg,
span {
  pointer-events: none;
}

.logo {
  flex-shrink: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: fit-content;

  /* svg {
    fill: currentColor;
    object-fit: contain;
    width: 100%;
    height: 100%;
  } */

  img {
    width: 100%;
    max-width: 156px;
    height: auto;
    max-height: 44px;
    object-fit: contain;
  }
}

.section {
  padding: 40px 0;
}
.container {
  width: 100%;
  padding: 0 var(--plr);
  margin: 0 auto;
}
.section__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.btn,
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  max-width: fit-content;

  text-align: center;
  font-weight: 600;
  /* text-transform: uppercase; */

  /* transition: 0.1s ease; */
  border: 1px solid transparent;
}
.cta--accent-fill {
  color: var(--color-text-body);
  background-color: var(--color-accent);
  border-color: var(--color-accent);

  &:hover {
    color: var(--color-accent);
    background-color: var(--color-text-body);
  }
}
.cta--dark-fill {
  color: var(--color-accent);
  background-color: var(--color-text-body);
  border-color: var(--color-text-body);

  &:hover {
    color: var(--color-text-body);
    background-color: var(--color-accent);
    /* border-color: var(--color-accent); */
  }
}
.cta--light-stroke {
  color: var(--color-white);
  background-color: transparent;
  border-color: var(--color-white);

  &:hover {
    color: var(--color-text-body);
    background-color: var(--color-white);
  }
}

.nav__list {
  .header__nav & {
    display: flex;
    gap: 16px;
  }
}

.burger-menu {
  display: none;
}

main,
section,
.hero .container,
.hero__box-wrap {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

  width: 100%;
  height: var(--header-h);

  color: var(--color-bg-body);

  background-color: var(--color-text-body);
}
.header__container {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  gap: 24px;
  height: 100%;
}
.header .nav__list {
  display: flex;
  gap: 4px;
}
.header .nav__link {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 40px;
  height: 40px;
  font-weight: 500;
  color: var(--color-88);

  &.active {
    color: var(--color-body-text);
  }

  &:hover {
    color: var(--color-accent);
  }
}
.header .nav__item {
  position: relative;

  &:not(:first-of-type) {
    &::before {
      content: "";

      position: absolute;
      left: -2px;
      top: 50%;
      transform: translateY(-50%);

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

      background-color: var(--color-88);;
    }
  }
}

.hero {
  min-height: 400px;
  padding: 32px 0;
  color: var(--color-bg-body);
  background-color: var(--color-text-body);
}
.hero__content {
  align-items: center;
  flex-grow: 1;
  justify-content: space-between;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.hero__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;

  text-align: center;
}
/* .hero__title-wrap {} */
.hero__title {
  position: relative;

  /* padding: 24px 0; */
  margin: 32px 0;
  max-width: 340px;

  font-weight: 900;
  font-size: 28px;

  /* &::before {
    content: "";

    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);

    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--color-accent);
  }

  &::before {
    top: -2px;
  }
  &::after {
    bottom: -2px;
  } */
}
.hero__subtitle {
  position: relative;

  font-size: 18px;
  font-weight: 700;

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

    position: absolute;

    display: block;

    background-color: var(--color-accent);
    transition-delay: 1.2s;
    transition-duration: 1s;
  } 
}
.hero__subtitle--1 {
  padding-bottom: 4px;

   &::before {
    content: "";

    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);

    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--color-accent);

    max-width: 0;
  } 

  &::after {
    content: "";
  }
}
.hero__subtitle--2 {
  width: fit-content;
  padding: 0 12px;
  margin: auto;

  &::before, &::after {
    top: 50%;
    transform: translateY(-50%);
    transform-origin: center;

    width: 2px;
    height: 22px;

    max-height: 0;
  }

  &::before {
    left: 0;
  }
  &::after {
    right:  0;
  }

  /* border-left: 2px solid var(--color-accent); */
  /* border-right: 2px solid var(--color-accent); */
}

.hero__text {
  margin: 16px 0 44px;
}
.hero__link {
  max-width: 264px;
}
.hero__extra-text {
  display: block;
  min-height: 20px;
}

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease;
}
.fade-in {
  opacity: 0;
  transform: scale(0.8);
  transition: 0.8s ease;
}

.hero__title {
  transition-delay: 0.2s;
}
.hero__subtitle--2 {
  transition-delay: 0.4s;
}
.hero__text {
  transition-delay: 0.6s;
}
.hero__link {
    transition:
    opacity 0.8s ease 0.8s,
    transform 0.8s ease 0.8s,
    color 0.3s ease,
    background-color 0.3s ease;
}
.lang-switcher {
  transition-delay: 1.4s;
}

body.start {
  .fade-up {
    opacity: 1;
    transform: translateY(0);
  }
  .fade-in {
    opacity: 1;
    transform: scale(1);
  }
  .hero__subtitle--1 {
    &::before {
      max-width: 100px;
    }
  }
  .hero__subtitle--2 {
    &::before, &::after {
      max-height: 22px;
    }
  }
}

[data-printing] {
  & span {
    display: none;
    white-space: nowrap;

    &.active {
      display: inline-block;
    }
  }

  & span::after {
    content: '|';
    margin-left: 2px;
    animation: blink 1s infinite;

    color: var(--color-accent);
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media screen and (min-width: 425px) {
  .container {
    width: 425px;
  }
}
@media screen and (min-width: 768px) {
  html {
    --plr: 32px;
  }

  .container {
    width: 768px;
  }
}
@media screen and (min-width: 1024px) {
  html {
    --plr: 32px;
  }

  .container {
    width: 1024px;
  }
}
@media screen and (min-width: 1440px) {
  html {
    --plr: 32px;
  }

  .container {
    width: 1440px;
  }
}
