@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --black: #000000;
  --blue950: #0c122c;
  --blue900: #0f1b3d;
  --blue850: #1e2d69;
  --blue600: #697ed4;
  --blue200: #dbd9ff;
  --gradient1: linear-gradient(
    80deg,
    hsla(228, 56%, 26%, 1),
    hsla(229, 57%, 11%, 0.001)
  );
  --gradient2: linear-gradient(to right, #ffa197, #ff4a95);
}

.text-preset-1 {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
}

.text-preset-2 {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
}

.text-preset-2-regular {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 400;
}

.text-preset-3 {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
}

.text-preset-3-bold {
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
}

body {
  font-family: "Raleway", sans-serif;
  background-color: var(--blue900);
}

p {
  text-align: center;
  color: var(--blue200);
  font-size: 14px;
  line-height: 1.15;
  font-weight: 400;
}

.xlarge {
  color: var(--blue950);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
}

.large {
  font-size: 14px;
  line-height: 1.15;
  font-weight: 700;
}

.small {
  color: var(--blue200);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 800;
}

.site-wrapper {
  background: url("./images/bg-mobile.png");
  min-height: 100dvh;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 0 auto;
  max-width: 1440px;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.component-wrapper {
  display: grid;
  gap: 16px;
}

.logo-part {
  background-color: var(--blue850);
  padding: 40px;
  border-radius: 10px 100px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.logo {
  display: block;
  width: 135px;
}

.icons {
  display: flex;
  gap: 16px;
}

.icon-wrapper {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--blue950);
  border-radius: 10px;
}

.data-part {
  background-color: var(--blue850);
  border-radius: 10px;
  position: relative;
  padding: 40px 32px;
}

.gb {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.bar {
  margin-top: 16px;
  display: block;
  width: 100%;
  height: 20px;
  border-radius: 10px;
  background-color: var(--blue900);
  position: relative;
}

.progress {
  display: block;
  width: 81.5%;
  height: 14px;
  background: var(--gradient2);
  border-radius: 8px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 3px;
}

.circle {
  display: block;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  background-color: var(--white);
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 2px;
}

.space-left {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 179px;
  height: 72px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 75px 100px -30px hsla(0, 0%, 0%, 0.25);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -48px;
}

.uppercase {
  color: hsla(229, 57%, 11%, 0.5);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.15;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

@media (min-width: 600px) {
  .site-wrapper {
    background: url("./images/bg-desktop.png");
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: bottom;
  }

  .logo-part {
    max-width: 350px;
  }

  .data-part {
    padding: 40px 38.5px;
    width: 540px;
  }
}

@media (min-width: 1024px) {
  .site-wrapper {
    background-size: 100% 50%;
  }

  .component-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 32px;
  }

  p {
    text-align: left;
  }

  .space-left {
    position: absolute;
    right: 40px;
    transform: unset;
    left: unset;
    top: -40px;
    border-radius: 10px 10px 0 10px;
  }

  .space-left::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 0;
    height: 0;
    border-top: 0 solid transparent;
    border-bottom: 22.6px solid transparent;
    border-right: 22.6px solid var(--white);
  }
}
