* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --main-bg-color: #1e0979;
  --main-bg-color-second: #e7e6fc;
  --accent-color: #ff5900;
  --accent-color-secondary: #1f1ab2;
  --text-color-primary: #30362f;
  --text-color-secondary: #616760;
  --border: 1px solid rgba(64, 29, 220, 0.3);
}
html,
body {
  min-height: 100vh;
  overflow-x: hidden !important;
  font-family: Open Sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  background: #fff;
  color: var(--text-color-primary);
}

div.hidden-item {
  display: none;
}

.container {
  width: 90%;
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
.color {
  color: var(--accent-color);
}
.card {
  border-radius: 6px;
  padding: 12px;
  border: var(--border);
}
a {
  text-decoration: none;
}

.top-arrow {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 8px;
  cursor: pointer;
  display: none;
  z-index: 9;
}
.top-arrow:hover {
  background: var(--main-bg-color);
}

/* HEADER */

.header {
  background-color: var(--main-bg-color);
}

.header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  color: #fff;
  text-decoration: none;
}

.logo span {
  font-weight: 700;
  font-size: 24px;
  font-family: "Nunito Sans", sans-serif;
}

.logo img {
  width: 130px;
}

.flag img {
  width: 50px;
}

.btn {
  border-radius: 8px;
  padding: 10px;
  font-weight: bold;
  transition: 0.2s;
  /* max-width: 200px; */
  min-width: 100px;
  text-align: center;
  font-size: 15px;
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--accent-color);

  box-shadow: none;

  color: #fff;
  text-transform: uppercase;
  margin: auto;
  color: #fff;
}

.btn:hover {
  background: var(--main-bg-color);
}

.nav-right {
  display: flex;
  align-items: center;
}
.header .btn {
  border: 4px solid var(--accent-color);
  margin-right: 15px;
}

/* HERO */
.hero {
  padding: 80px 0;
  position: relative;
}
.hero-in {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.hero-text,
.hero-list {
  width: 100%;
}
.hero-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hero-item {
  background: var(--main-bg-color-second);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 0px 27px -1px rgba(64, 29, 220, 0.15);
  transition: 0.3s;
}
.hero-item:hover {
  box-shadow: none;
}
.hero-item span {
  color: var(--text-color-primary);
  font-weight: 500;
}
.icons-img {
  height: 85px;
  display: flex;
  justify-content: center;
}
.hero h1 {
  font-size: 50px;
  line-height: 57px;
  color: #37107e;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 900;
}
.hero-text p {
  margin-top: 20px;
  font-size: 21px;
  color: var(--text-color-primary);
  font-weight: 500;
  line-height: 30px;
}
.icon-bg {
  opacity: 0.1;
  width: 300px;
  height: 300px;
  position: absolute;
  transform: rotate(45deg);
}
.icon-left {
  top: -5px;
  left: -50px;
}
.icon-right {
  bottom: -125px;
  right: -90px;
  transform: rotate(15deg);
}

/* OFFER */
.best {
  padding-top: 20px;
}
.best img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto
}
.payment img {
  width: 100%;
  max-width: 100%;
  max-height: 20px;
  margin: 0 auto
}
.best h2 {
  font-size: 28px;
}
.best-item {
  display: grid;
  grid-template-columns: auto 20%;
  gap: 16px;
  align-items: center;
  position: relative;
  margin-bottom: 20px;
}
.best-item-container {
  display: grid;
  grid-template-columns: 2fr 0.7fr 20%;
  gap: 16px;
}
.best-item-first {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
}

.best-list {
  padding: 40px 0;
}
.best-img-link {
  width: 80px;
  height: 80px;
  display: flex;
}
.best-img-link img {
  border-radius: 6px;
}
.payment {
  grid-template-columns: 1fr 1fr 1fr 1fr;
  display: inline-grid;
  grid-gap: 8px;
  justify-content: center;
}

.payment-item {
  width: 100%;
  max-width: 40px;
  height: 25px;
  background: #fff;
  border-radius: 5px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #30362f33;
}
.payment-number {
  font-size: 12px;
  font-weight: 500;
}

.best-item-title {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-color-secondary);
}
.dep,
.rating,
.payment-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.dep span:nth-child(2),
.rating-in {
  background: var(--main-bg-color-second);
  border-radius: 6px;
  padding: 10px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-weight: 500;
}
.best-number {
  position: absolute;
  top: -12px;
  left: -12px;
  background: var(--main-bg-color);
  color: #fff;
  padding: 3px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.stars i {
  color: orangered;
}

/* FOOTER */
.footer {
  padding: 40px 0 10px;
  background: #000;
  margin-top: 40px;
  font-weight: 500;
  color: #fff;
}
.footer .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.footer p {
  margin-bottom: 25px;
  font-size: 13px;
  opacity: 0.5;
  line-height: 20px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1150px;
  margin: 40px auto 30px;
  align-items: center;
}
.footer-links img {
  width: 100%;
  height: auto;
}
.footer-links a {
  max-width: 220px;
  padding: 12px;
}
.footer-copy {
  display: flex;
  justify-content: center;
  padding-top: 20px;
  border-top: 1px solid #3b3b3b;
}

/* MEDIA */

@media (max-width: 1024px) {
  .container {
    max-width: 720px;
  }
  .hero {
    display: none;
  }
  .best-item {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 16px;
  }
  .best h2 {
    font-size: 25px;
  }
  .best-item-container {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .mob-hid {
    display: none;
  }
  .payment {
    display: flex;
    justify-content: flex-start;
  }
  .rating {
    padding: 8px 0;
  }
  .best-btn-wrap {
    margin-top: 8px;
  }
  .best-list {
    padding: 25px 0;
  }

}
