@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
/* RESET */

* {
  padding: 0;
  margin: 0;
  border: 0;
}

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

: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;
  -ms-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

input, button, textarea {
  font-family: inherit;
}

input::-ms-clear {
  display: none;
}

button {
  cursor: pointer;
}

button::-moz-focus-inner {
  padding: 0;
  border: 0;
}

a, a:visited {
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

ul li {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  margin: auto;
}

h1, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
}

h2 {
  font-weight: 700;
  font-size: 34px;
  line-height: 44px;
  text-align: center;
  margin: 20px 0;
  color: var(--main--color);
}
@media (max-width: 450px) {
  h2 {
    color: var(--main--color);
    font-size: 30px;
    line-height: 40px;
  }
}

h3 {
  font-weight: 700;
  font-size: 30px;
  line-height: 34px;
  margin: 20px 0;
  text-align: center;
  color: var(--main--color);
}
@media (max-width: 450px) {
  h3 {
    color: var(--main--color);
    font-size: 28px;
    line-height: 34px;
  }
}

a {
  color: inherit;
  cursor: pointer;
}

/* MAIN */

:root {
  /* DESCKTOP */
  --background-color: #292035;
  --footer-bg-color: #18181C;
  --light-color: #ffffff;
  --main--color: #d84040;
  --light-red-color: #2bd0c6;
  --text-color: #ffffff;

  --font-family: 'Inter', sans-serif;;

  --logo-fz: 20px;
  --button-fz: 14px;
  --main-fz: 20px;
  --homepage-title-fz: 60px;
  --about-title-fz: 44px;
  --about-subtitle-fz: 32px;
  --table-mobile-fz: 16px;
}
@media (max-width: 768px) {
  /* TABLET */
  :root {
    --homepage-title-fz: 42px;
    --about-title-fz: 36px;
    --about-subtitle-fz: 30px;
  }
}
@media (max-width: 480px) {
  /* MOBILE */
  :root {
    --background-color: #18181C;
    
    --homepage-title-fz: 34px;
    --about-title-fz: 30px;
    --about-subtitle-fz: 28px;
    --footer-fz: 18px;
  }
}

html, body {
  background-color: var(--background-color);
  color: var(--light-color);

  font-family: var(--font-family), sans-serif;
  font-weight: 400;
  font-style: normal;
}

.container {
  min-height: 100%;
  overflow: clip;

  display: flex;
  flex-direction: column;
}

.container > main {
  flex: 1 1 auto;
}

[class*="__wrapper"] {
  max-width: 1140px;
  padding: 0 15px;
  margin: 0 auto;
}

/* BTN-UP */

.btn-up {
  position: fixed;
  background-color: var(--main--color);
  right: 20px;
  bottom: 0px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 50px;
  transition: all .3s;
  opacity: 1;
  pointer-events: all;
  border: solid 1px var(--bacground-color);
  z-index: 11;
}
.btn-up::before {
  content: "";
  width: 40px;
  height: 40px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2318181C' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}
.btn-up:hover {
  background-color: var(--light-red-color);
  transition: all .3s;
}
.btn-up_hide {
  opacity: 0;
  pointer-events: none;
}

/* HEADER */

.header__wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.header__logotype {
  font-weight: 700;
  font-size: var(--logo-fz);
  line-height: 36px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.header__logotype::before {
  content: "";
  width: 29px;
  height: 24px;
  margin-right: 14px;
}
.header__buttons {
  display: flex;
  gap: 26px;
}
.header__buttons button {
  font-size: var(--button-fz);
  line-height: 143%;
  color: var(--light-color);
  padding: 12px 28px;
  background: linear-gradient(92.51deg, var(--light-red-color) 0.48%, var(--main--color) 100%);
  border-radius: 5px;
  transition: all .3s;
}
.header__buttons button:hover {
  scale: 1.1;
  background: linear-gradient(92.51deg, var(--main--color) 0.48%, var(--light-red-color) 100%);
  transition: all .3s;
}

@media (max-width: 480px) {
  .header__wrapper {
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 50px;
    gap: 38px;
  }
  .header__buttons {
    flex-direction: column;
    gap: 20px;
    max-width: 250px;
    width: 100%;
  }
  .header__buttons button {
    font-weight: 600;
    width: 100%;
    text-align: center;
  }
}

/* HOMEPAGE */

.homepage__wrapper {
  padding-top: 50px;
  padding-bottom: 54px;
  max-width: 1030px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.homepage__wrapper img {
  width: 100%;
  height: 100%;
  max-width: 800px;
  max-height: 300px;
  object-fit: cover;
  object-position: 50% 50%;
  margin-bottom: 50px;
}
.homepage__wrapper::before,
.homepage__wrapper::after {
  content: "";
  border-radius: 100%;
  position: absolute;
}
.homepage__wrapper::before {
  width: 130px;
  height: 130px;
  top: 100px;
  left: -100px;
  /* background: url("../images/homepageCircleBig.svg") 0 0 no-repeat; */
  background: radial-gradient(1202.04% 1056.38% at 42.92% -7.08%, #494955 0%, #141414 100%);
  filter: blur(15px);
}
.homepage__wrapper::after {
  width: 96px;
  height: 96px;
  bottom: 225px;
  right: -100px;
  /* background: url("../images/homepageCircleLittle.svg") 0 0 no-repeat; */
  background: radial-gradient(1202.04% 1056.38% at 42.92% -7.08%, #494955 0%, #141414 100%);
  filter: blur(10px);
}
.homepage__title {
  font-weight: 700;
  font-size: 38px;
  line-height: 140%;
}

@media (max-width: 768px) {
  .homepage__wrapper::after,
  .homepage__wrapper::before {
    display: none;
  }
}
@media (max-width: 480px) {
  .homepage__wrapper {
    padding-top: 0;
    padding-bottom: 40px;
  }
  .homepage__wrapper img {
    margin-bottom: 40px;
    border-radius: 30px;
  }  
}

/* INFOBLOCK */

.infoblock__wrapper {
  max-width: 1030px;
  margin: 0 auto 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: var(--main-fz);
  line-height: 170%;  
  color: var(--text-color);
  position: relative;
  z-index: 10;
}
.infoblock__wrapper::before {
  content: "";
  width: 506px;
  height: 508px;
  position: absolute;
  top: 90px;
  left: 247px;
  background: url("../images/infoblock.svg") 0 0 no-repeat;
  z-index: 5;
}
.infoblock__wrapper p {
  position: relative;
  z-index: 10;
  color: white;
}
.infoblock__wrapper a {
  text-decoration: underline;
  color: var(--main--color);
}
.infoblock__wrapper ul {
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 50px;
  position: relative;
  z-index: 10;
}
.infoblock__wrapper ul li {
  list-style: disc;
}
.infoblock__wrapper ol {
  padding-left: 50px;
  position: relative;
  z-index: 10;
}

@media (max-width:480px) {
  .infoblock__wrapper {
    gap: 30px;
  }
  .infoblock__wrapper::before {
    display: none;
  }
  .infoblock__wrapper ul {
    padding-top: 0;
    padding-bottom: 0;
  }
}

/* ABOUT */

.infoblock__title {
  font-weight: 700;
  font-size: var(--about-title-fz);
  line-height: 77%;  
  color: var(--main--color);
  padding-top: 20px;
  padding-bottom: 20px;
}
.infoblock__subtitle {
  font-weight: 700;
  font-size: var(--about-subtitle-fz);
  line-height: 106%;  
  color: var(--main--color);
  padding-top: 20px;
  padding-bottom: 20px;
}
.infoblock__wrapper img {
  margin: 10px auto;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 30px;
}

@media (max-width: 480px) {
  .infoblock__title {
    padding: 0;
    text-align: center;
  }
  .infoblock__subtitle {
    padding: 0;
    text-align: center;
  }
  .infoblock__wrapper img {
    margin: 0 auto;
  }
}

/* INFOTABLES */

.infotables {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1030px;
  padding-top: 20px;
  padding-bottom: 100px;
}

.infotables table {
  margin: 0 auto;
  max-width: 1030px;
  width: 100%;
  font-weight: 500;
  font-size: var(--main-fz);
  line-height: 30px;
  color: var(--text-color);
  border-collapse: collapse;
}
.infotables tr {
  border-top: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
}
.infotables td {
  padding-top: 20px;
  padding-bottom: 20px;
}
.infotables td:last-child {
  text-align: right;
  padding-right: 20px;
}
.infotables td:first-child {
  padding-left: 20px;
}
.infotables-col4 td {
  width: 250px;
}
.infotables-col3 td:nth-child(2) {
  text-align: center;
}

@media (max-width: 768px) {
  .infotables {
    gap: 50px;
  }
  .infotables-col4 td {
    width: 45%;
  }
  .infotables td:first-child {
    padding-left: 0;
  }
  .infotables td:nth-child(2) {
    text-align: right;
  }
  .infotables td:last-child {
    padding-right: 0;
  }
  .infotables tr {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .infotables-col3 tr {
    flex-wrap: nowrap;
  }
  .infotables td {
    max-width: 50%;
    padding: 20px 5px;
  }
}
/* FOOTER */

.footer {
  background-color: var(--footer-bg-color);
}
.footer__wrapper {
  padding-top: 46px;
  padding-bottom: 46px;
  text-align: center;
}
.footer__wrapper span {
  font-size: var(--main-fz);
  line-height: 140%;
  color: var(--main--color);
}

@media (max-width: 480px) {
  .footer__wrapper span {
    line-height: 156%;
    letter-spacing: 0.01em;
  }
}
