/* NULLING STYLES */
* {
  padding: 0;
  margin: 0;
  border: 0;
}
*,
*:before,
*:after {
  -moz-box-sizing: inherit;
  -webkit-box-sizing: inherit;
  box-sizing: inherit;
}
:focus,
:active {
  outline: none;
}
a:focus,
a:active {
  outline: none;
}
nav,
footer,
header,
aside {
  display: block;
}
html,
body {
  height: 100%;
  width: 100%;
  font-size: 100%;
  line-height: 1;
  font-size: 14px;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
input,
button,
textarea {
  font-family: inherit;
}
input::-ms-clear {
  display: none;
}
button {
  cursor: pointer;
  padding: 0;
  border: 0;
  background: transparent;
}
button::-moz-focus-inner {
  padding: 0;
  border: 0;
  background: transparent;
}
a,
a:visited {
  text-decoration: none;
  color: inherit;
}
a:hover {
  text-decoration: none;
}
ul li {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
}
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/* --------------- */

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

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

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

/* COLORS */
:root {
  --textLight: #fff;
  --textDark: #252525;
  --textColor: #fbf0c5;
  --textColorMain: #7dd1ff;
  --textMiddle: #989aa2;

  --bg: #323545;
  --bgCard: #2b2e3d99;

  --btn: #2e3140;
  --btnTransparent: #00000040;
  --line: #ffffff4d;

  --Montserrat: "Montserrat", Arial, Helvetica, sans-serif;
  --Moul: "Moul", Arial, Helvetica, sans-serif;
}

body {
  font-family: var(--Montserrat);
  color: var(--textLight);
  overflow-x: hidden;
  background: url("../images/common/bg.png") center repeat;
  background-color: var(--bg);
  background-size: contain;
}

* {
  scroll-margin-top: 40px;
  font-weight: 400;
  transition: all 0.15s linear;

  &::after,
  &::before {
    transition: all 0.15s linear;
  }
}

.hidden {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.visible {
  opacity: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

header div,
main div,
section {
  opacity: 0;
  animation: fadeIn 0.8s forwards;
}

.wrapper {
  overflow-x: hidden;
}

h1 {
  font-family: var(--Moul);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.5;
  color: var(--textColor);
}

h2 {
  font-size: 22px;
  line-height: 1.2;
}

h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--textColorMain);
}

h4 {
  font-size: 38px;
  font-weight: 500;
  line-height: 1;
}

p {
  font-size: 16px;
  line-height: 1.2;
}

.link {
  color: var(--textColorMain);
  border-bottom: 1px solid var(--textColorMain);
}

.link:visited {
  color: var(--textColorMain);
}

@media (hover: hover) {
  .link:hover {
    border-color: transparent;
  }
}

section {
  position: relative;
  width: 100%;
  max-width: 1016px;
  display: flex;
  flex-direction: column;
  margin: 0 auto;

  .container {
    margin-left: auto;
  }
}

.container {
  width: 100%;
  max-width: 822px;
  margin: 0 auto;
}

.line {
  margin: 90px auto;
  width: 100%;
  height: 1px;
  background: var(--line);
  left: 0;
  bottom: 0;
}

.btn {
  font-size: 16px;
  width: max-content;
  padding: 10px 16px;
  border-radius: 16px;
  color: var(--textColor);
  display: flex;
  gap: 10px;
  background: var(--btnTransparent);
  align-items: center;
}

.btn-arrow {
  width: 11px;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media (hover: hover) {
  .btn:hover {
    transform: translateX(4px);
  }
}

.numSection {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 12px;
  color: var(--textMiddle);
}

.content {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 50px;
}

.title {
  display: flex;
  flex-direction: column;
  gap: 16px;

  > h3 {
    color: var(--textColorMain);
  }
}

.list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 30px;
}

.list-first {
  margin: 0;
}

.item {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: start;
  gap: 30px;
}

.itemTitle {
  .item-text {
    border: none;
    padding: 0;
  }
}

.item-num {
}

.item-empty {
}

.item-img {
  width: 100%;

  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.itemInfo {
  .item-text {
    border: none;
  }
}

.colorMain {
  color: var(--textColorMain);
}

.color {
  color: var(--textColor);
}

.colorMiddle {
  color: var(--textMiddle);
}

.underline {
  text-decoration: underline;
}

.item-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 80px 30px 0;

  border-bottom: 1px solid var(--line);

  h2 {
    font-size: 26px;
    line-height: 1;
  }
}

.item-title {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-text-full {
  padding-right: 0;
}

.item-text-right {
  margin-left: 45px;
}

.itemAdditionally {
  background: var(--bgCard);
  position: relative;
  padding: 20px;

  .item-text {
    border-bottom: none;
    padding: 0;

    p,
    span {
      font-weight: 500;
    }
  }

  &::after,
  &::before {
    content: "";
    position: absolute;
    top: -4px;
    width: 23px;
    height: 23px;
    border-top: 5px solid var(--textMiddle);
  }

  &::before {
    left: -3px;
    border-left: 5px solid var(--textMiddle);
  }

  &::after {
    right: -3px;
    border-right: 5px solid var(--textMiddle);
  }
}

.itemAdditionally-leftBottom {
  position: absolute;
  width: 23px;
  height: 23px;
  bottom: -3px;
  border-bottom: 5px solid var(--textMiddle);
  left: -3px;
  border-left: 5px solid var(--textMiddle);
}

.itemAdditionally-rightBottom {
  position: absolute;
  width: 23px;
  height: 23px;
  bottom: -3px;
  border-bottom: 5px solid var(--textMiddle);
  right: -3px;
  border-right: 5px solid var(--textMiddle);
}

@media screen and (max-width: 1200px) {
  section {
    max-width: 900px;
  }
}

@media screen and (max-width: 1000px) {
  h1 {
    font-size: 34px;
  }

  section {
    max-width: none;
    width: 94vw;
  }

  .container {
    max-width: none;
    width: 86vw;
  }
}

@media screen and (max-width: 800px) {
  h1 {
    font-size: 28px;
  }

  .content {
    grid-template-columns: 160px 1fr;
  }

  h2 {
    font-size: 18px;
  }

  h3 {
    font-size: 14px;
  }

  .item-text {
    h2 {
      font-size: 20px;
    }
  }
}

@media screen and (max-width: 700px) {
  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 16px;
  }

  section {
    width: 86vw;
    margin-bottom: 80px;
  }

  .content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .list {
    margin: 0;
  }

  .item {
    gap: 34px;
  }

  .item-text {
    padding-right: 0;
    padding-bottom: 20px;
  }

  .item.empty {
    display: block;
  }

  .item-num {
    font-size: 28px;
  }

  .itemAdditionally {
    margin-top: 20px;
  }

  .line {
    display: none;
  }

  .item-text-right {
    margin-left: 20px;
  }
}

@media screen and (max-width: 500px) {
  .item {
    grid-template-columns: 32px 1fr;
    gap: 18px;
  }
}

@media screen and (max-width: 420px) {
  .container {
    max-width: 350px;
    width: 100%;
  }
}

@media screen and (max-width: 360px) {
  .container {
    max-width: 300px;
  }
}
