/* Reset and base styles  */
* {
  padding: 0px;
  margin: 0px;
  border: none;
}

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

/* Links */

a,
a:link,
a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* Common */

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

h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-size: inherit;
  font-weight: inherit;
}

ul,
ul li {
  list-style: none;
}

img {
  vertical-align: top;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

address {
  font-style: normal;
}

/* Form */

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background-color: transparent;
}

input::-ms-clear {
  display: none;
}

button,
input[type="submit"] {
  display: inline-block;
  box-shadow: none;
  background-color: transparent;
  background: none;
  cursor: pointer;
}

input:focus,
input:active,
button:focus,
button:active {
  outline: none;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

label {
  cursor: pointer;
}

legend {
  display: block;
}

@font-face {
  font-family: "Days One";
  src: url("./assets/fonts/DaysOne-Regular.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Involve";
  src: url("./assets/fonts/Involve-VF.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Involve";
  src: url("./assets/fonts/Involve-Oblique-VF.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Involve", sans-serif;
  font-weight: 400;
  font-style: normal;
  background-color: #efeff3;
  color: #17181e;
}

.main {
  display: inherit;
  flex-direction: inherit;
  justify-content: inherit;
  align-items: inherit;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.button {
  width: 217px;
  height: 54px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  outline: none;
  transition: 0.3s ease opacity;
}

.button_white {
  color: #17181e;
  background: #e5e5ec;
}

.button_white:hover {
  opacity: 0.8;
}

.button_black {
  color: #fff;
  background: #17181e;
}

.button_black:hover {
  opacity: 0.9;
}

.header {
  background: linear-gradient(
    87.33deg,
    #f1f2f9 18.33%,
    #cdcfdb 52.85%,
    #9b9eaf 96.65%
  );
  border-radius: 0 0 40px 40px;
  padding-top: 28px;
  margin-bottom: 16px;
}

.header__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #17181e;
  height: 64px;
  border-radius: 40px;
  padding: 0 40px;
  margin-bottom: 122px;
}

.header__link {
  font-size: 14px;
  color: #fff;
  font-weight: 400;
  opacity: 0.7;
  transition: 0.3s ease opacity;
}

.header__link:hover {
  opacity: 1;
}

.header__title {
  font-size: 50px;
  font-family: "Days One", sans-serif;
  font-weight: 400;
  color: #17181e;
  max-width: 865px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 40px;
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.header__button {
  margin-right: 16px;
}

.header__button:last-child {
  margin-right: 0;
}

.header__menu {
  display: none;
}

.advantages {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.advantages__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 30%;
  height: 303px;
  z-index: 2;
}

.advantages__icon {
  width: 200px;
  margin-bottom: 23px;
}

.advantages__title {
  font-family: "Days One";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  color: #17181e;
  margin-bottom: 16px;
}

.advantages__text {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  text-align: center;
}

.preorder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.preorder__title {
  font-family: "Days One";
  font-size: 38px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 24px;
}

.preorder__text {
  color: #999ba2;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  margin: 0 auto 40px;
  max-width: 800px;
}

.functional {
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.functional__image {
  height: 100%;
}

.title {
  font-family: "Days One";
  font-size: 38px;
  font-style: normal;
  font-weight: 400;
  margin-bottom: 24px;
  max-width: 800px;
}

.text {
  color: #999ba2;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  max-width: 800px;
  margin-bottom: 40px;
}

.image__bg {
  background: #efeff3;
  width: 100%;
  height: 540px;
  border-radius: 40px;
  text-align: center;
  margin-bottom: 40px;
}

.items {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.items_full {
  padding: 0 150px;
}

.item {
  width: 30%;
  margin-bottom: 40px;
}

.item_full {
  width: 50%;
  padding-left: 20px;
}

.item_full:first-child {
  padding-left: 0;
}

.item__bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 106px;
  height: 106px;
  background-color: #efeff3;
  border-radius: 24px;
  margin-bottom: 24px;
}

.item__text {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
}

.view {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.view .item {
  margin-bottom: 0;
}

.part {
  width: 500px;
}

.part_bg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 541px;
  height: 541px;
  background-color: #ebecf2;
  border-radius: 40px;
}

.management {
  display: flex;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.support {
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.integration {
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.integration__title {
  display: flex;
  text-align: center;
  margin: 0 auto 60px;
}

.integration__items {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.integration__item {
  width: 50%;
  text-align: center;
}

.integration__item:last-child {
  right: 0;
  left: inherit;
}

.integration__item .advantages__text {
  max-width: 350px;
  margin: 0 auto;
}

.test {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
  padding: 100px 0;
}

.case {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #fff;
  border-radius: 40px;
  margin-bottom: 16px;
}

.case__image {
  width: 30%;
  margin-left: 12%;
}

.case__items {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.case__part {
  width: 500px;
  margin-right: 12%;
}

.case__link {
  text-decoration: none;
}

.case__link svg {
  width: 100%;
}

.footer {
  padding: 40px 0;
  background-color: #17181e;
  text-align: center;
}

.footer__text {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: #fff;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  animation-name: animateTop;
  animation-duration: 0.4s;
  background-color: transparent;
  z-index: 3;
}

.modal__backdrop {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(23, 24, 30, 0.4);
  backdrop-filter: blur(2px);
}

.modal__form {
  display: flex;
  flex-direction: column;
  width: 600px;
  background-color: #fff;
  border-radius: 40px;
  padding: 40px;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal__title {
  margin-bottom: 0;
}

.modal__close {
  width: 40px;
  height: 40px;
  border: none;
  outline: 0;
  background-color: transparent;
}

.modal__text {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: #999ba2;
  margin-bottom: 40px;
  width: 90%;
}

.modal__label {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  color: #17181e;
  margin-bottom: 4px;
}

.modal__input {
  font-size: 16px;
  font-weight: 400;
  color: #17181e;
  border-radius: 12px;
  border: 1px solid #d6d7e0;
  width: 100%;
  padding: 12px;
  margin-bottom: 24px;
}

.modal__checkbox:active {
  filter: brightness(90%);
}

.modal__checkbox {
  appearance: none;
  width: 32px;
  min-width: 32px;
  height: 32px;
  border: 1px solid #d6d7e0;
  border-radius: 8px;
  background-color: #fff;
  cursor: pointer;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  margin: 0 8px 0 0;
}

.modal__checkbox:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.modal__checkbox:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal__checkbox:disabled + span {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal__checkboxLabel {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #17181e;
  margin-bottom: 24px;
}

.modal__checkboxLabelLink {
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
  margin-left: 3px;
  display: block;
}

.modal__button {
  width: 100%;
}

.modal__success {
  display: flex;
  justify-content: space-between;
  padding: 40px;
  width: 600px;
  background-color: #fff;
  border-radius: 40px;
}

.modal__image {
  width: 200px;
  height: 200px;
  margin-bottom: 16px;
}

.hidden {
  overflow: hidden;
}

.mobile {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
  animation-name: animateRight;
  animation-duration: 0.4s;
}

.mobile__backdrop {
  background: rgba(23, 24, 30, 0.4);
  backdrop-filter: blur(2px);
  width: 100%;
  height: 100%;
}

.mobile__menu {
  display: flex;
  flex-direction: column;
  width: calc(100% - 120px);
  height: 100%;
  background-color: #17181e;
  border-radius: 24px 0px 0px 24px;
  padding: 16px 16px 50px;
  margin-left: 120px;
}

.mobile__close {
  width: 24px;
  height: 24px;
  margin-left: auto;
}

.mobile__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: auto 0;
}

.mobile__link {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  color: #fff;
  margin-bottom: 40px;
}

.mobile__link:last-child {
  margin-bottom: 0;
}

.mobile__button {
  background-color: #fff;
  width: 100%;
}

@keyframes animateTop {
  from {
    bottom: -300px;
    opacity: 0;
  }
  to {
    top: 0;
    opacity: 1;
  }
}

@keyframes animateRight {
  from {
    right: -300px;
    opacity: 0;
  }
  to {
    right: 0;
    opacity: 1;
  }
}

@media only screen and (max-width: 1440px) {
  .main {
    max-width: 1110px;
  }
}

@media only screen and (max-width: 1024px) {
  .items_full {
    padding: 0px 60px;
  }
}

@media only screen and (max-width: 1200px) {
  .main {
    max-width: 90%;
  }

  .title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .text {
    margin-bottom: 30px;
  }

  .management__icon {
    width: 45%;
  }

  .part {
    width: 50%;
  }

  .part_bg {
    width: 45%;
    height: 400px;
  }

  .case__part {
    width: 50%;
    margin-right: 6%;
  }
}

@media only screen and (max-width: 768px) {
  .main {
    max-width: 90%;
  }

  .header {
    padding-top: 16px;
  }

  .header__link {
    display: none;
  }

  .header__menu {
    display: block;
  }

  .header__nav {
    margin-bottom: 42px;
  }

  .header__title {
    font-size: 22px;
  }

  .header__actions {
    flex-direction: column;
  }

  .header__button {
    margin-right: 0;
    width: 100%;
    margin-bottom: 16px;
  }

  .header__button:last-child {
    margin-bottom: 0;
  }

  .advantages {
    flex-direction: column;
    padding: 40px 0;
  }

  .advantages__item {
    width: 100%;
    background-color: transparent;
  }

  .advantages__icon {
    width: 140px;
    height: 140px;
  }

  .advantages__title {
    font-size: 18px;
  }

  .advantages__text {
    font-size: 12px;
  }

  .preorder {
    padding: 40px 0;
  }

  .title {
    font-size: 22px;
    margin-bottom: 16px;
  }

  .text {
    font-size: 14px;
    margin-bottom: 40px;
  }

  .button {
    width: 100%;
    height: 48px;
    font-size: 14px;
  }

  .functional {
    padding: 40px 0;
  }

  .image__bg {
    height: 260px;
    margin-bottom: 40px;
  }

  .items {
    flex-direction: column;
    padding: 0;
  }

  .item {
    width: 100%;
    margin-bottom: 40px;
    padding-left: 0;
  }

  .item:last-child {
    margin-bottom: 0;
  }

  .item__bg {
    width: 80px;
    height: 80px;
    margin-bottom: 16px;
  }

  .item__bg svg {
    width: 32px;
    height: 32px;
  }

  .item__text {
    font-size: 14px;
  }

  .view {
    flex-direction: column;
    padding: 40px 0;
  }

  .view .item {
    margin-bottom: 40px;
  }

  .part {
    width: 100%;
  }

  .part_bg {
    width: 100%;
    height: 260px;
    margin-top: 40px;
  }

  .view__image {
    height: 100%;
  }

  .management {
    flex-direction: column-reverse;
    padding: 40px 0;
  }

  .management__icon {
    width: 100%;
    margin-top: 40px;
  }

  .support {
    padding: 40px 0;
  }

  .support .image__bg {
    margin-bottom: 0;
  }

  .integration {
    padding: 40px 0;
  }

  .integration__items {
    flex-direction: column;
  }

  .integration__item {
    width: 100%;
    margin-bottom: 20px;
  }

  .integration__item:last-child {
    margin-bottom: 0;
  }

  .test {
    padding: 40px 0;
  }

  .case {
    padding: 40px 0 0;
    flex-direction: column-reverse;
  }

  .case__image {
    width: 75%;
    margin-top: 25px;
    margin-left: 0;
  }

  .case__part {
    width: 100%;
    max-width: 90%;
    margin-right: 0;
  }

  .case__items {
    flex-wrap: wrap;
  }

  .case__link {
    width: 48%;
    margin-bottom: 16px;
  }

  .case__link:last-child {
    margin-bottom: 0;
  }

  .footer {
    padding: 40px 16px;
  }

  .footer__text {
    font-size: 14px;
  }

  .modal__form {
    width: 100%;
    padding: 24px;
    height: max-content;
    border-radius: 24px 24px 0px 0px;
    margin-top: auto;
    overflow-y: auto;
  }

  .modal__title {
    margin-bottom: 0;
  }

  .modal__text {
    font-size: 14px;
  }

  .modal__label,
  .modal__input {
    font-size: 14px;
  }

  .modal__checkboxLabel {
    font-size: 12px;
    margin-top: 40px;
    white-space: nowrap;
  }

  .modal__success {
    width: 100%;
    border-radius: 24px 24px 0 0;
    margin-top: auto;
    padding: 24px;
  }

  .modal__image {
    width: 160px;
    height: 160px;
    margin-bottom: 40px;
  }
}
