@import url('fonts/Gilroy/stylesheet.css');

:root {
  --color-bg: #080817;
  --color-bg-soft: #1d1d2b;

  --color-text: #ffffff;
  --color-text-soft: #e4e5e8;

  --theme-gradient: linear-gradient(180deg, #ffad5e 0%, #ffd5a5 39.66%, #ffc169 79.31%);
  --block-shadow-layout: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(29, 29, 43, 0.4) 65%,
    rgba(29, 29, 43, 0.7) 100%
  );

  --color-gradient-1: #ffad5e;
  --color-gradient-2: #ffd5a5;
  --color-gradient-3: #ffc169;

  --ellipse-gradient-yellow: radial-gradient(
    ellipse at center,
    rgba(255, 199, 124, 0.5) 0%,
    rgba(254, 241, 212, 0) 75%,
    rgba(254, 252, 234, 0) 80%
  );
  --ellipse-gradient-violet: radial-gradient(
    ellipse at center,
    rgba(150, 15, 255, 0.5) 0%,
    rgba(233, 205, 238, 0) 75%,
    rgba(254, 252, 234, 0) 80%
  );

  --font-size-common: 14px;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 25px;
}

* {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
html {
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Gilroy', sans-serif;
  font-size: var(--font-size-common);
  line-height: normal;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  height: auto;
}
.page {
  position: relative;
  width: 100%;
  overflow: hidden;
}
.container {
  position: relative;
  width: 100%;
  max-width: 567px;
  /*  */
  /* max-width: 380px; */
  /*  */
  padding: 0 20px;
  padding-top: 60px;
  padding-bottom: 60px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

h1 {
  font-weight: 800;
  font-size: 2.28rem;
}

.ellipse {
  z-index: -1;
  position: absolute;
  width: calc(calc(100vw / 2) + 20px);
  min-width: 170px;
  max-width: 300px;
  aspect-ratio: 1;
}
.ellipse.yellow {
  background: var(--ellipse-gradient-yellow);
  left: 0;
  translate: -50%;
}
.ellipse.violet {
  background: var(--ellipse-gradient-violet);
  right: 0;
  translate: 50%;
}
.ellipse.block-important {
  display: block !important;
}
.page > .ellipse:nth-child(2) {
  top: 275px;
}
.page > .ellipse:nth-child(3) {
  top: 957px;
}
.page > .ellipse:nth-child(4) {
  top: 1405px;
}
.page > .ellipse:nth-child(5) {
  top: 1780px;
}
.page > .ellipse:nth-child(6) {
  top: 2255px;
}

/* дописать эллипсы */

.grey {
  color: var(--color-text-soft);
}
.bold {
  font-weight: 700;
}
.theme-btn {
  background: var(--color-gradient-1);
  color: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 10px;
}
.text-gradient {
  background: #ffad5e;
  background: var(--theme-gradient);
  -webkit-background-clip: text;
  -moz-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.theme-gradient {
  background: #ffad5e;
  background: var(--theme-gradient);
}

.flex {
  display: flex;
}

.main-block {
  flex-direction: column;
  /* gap: 33px; */
  position: relative;
}
.headtitle {
  flex-direction: column;
  gap: 15px;
  z-index: 1;
  margin-bottom: 33px;
}
.headtitle p {
  font-size: 16px;
  line-height: 22px;
}
.main-block ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.main-block li {
  min-width: 178px;
  width: fit-content;
  padding: 11px 20px;
  background: var(--color-bg-soft);
  display: flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-md);

  & > img {
    width: 14px;
    height: 14px;
  }
}

.main-block .main-pattern {
  position: absolute;
  right: 0;
  top: 30px;
  margin: auto;
  translate: 20px;
  min-width: 150px;
  max-width: 220px;
}
.main-block .ellipse {
  position: absolute;
  right: 0;
  top: 30px;
  margin: auto;
  width: 224px;
  aspect-ratio: 1.5;
  translate: calc(30% + 20px) -30px;
}

.offers-block-grid {
  display: flex;
  --offers-grid-gap: 10px;
  flex-wrap: wrap;
  gap: var(--offers-grid-gap);
}

.game-item {
  display: block;
  color: inherit;
  text-decoration: none;
  --game-item-padding: 12px;
  position: relative;
  max-width: 355px;
  width: calc(50% - var(--offers-grid-gap) / 2);
  aspect-ratio: 1.37;
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: var(--game-item-padding);
}
.game-item .content {
  display: flex;
  flex-direction: column;
  position: relative;
  gap: 2px;
  width: calc(100% - 35px);
  height: 100%;
  justify-content: flex-end;
  z-index: 2;
  font-size: 16px;
}
.game-item .content span.name {
  font-size: 1em;
  font-weight: bold;
}
.game-item .content span.provider {
  font-size: 0.6em;
  color: var(--color-text-soft);
  display: none;
}
.game-item:after {
  content: '';
  position: absolute;
  right: var(--game-item-padding);
  bottom: var(--game-item-padding);
  width: 25px;
  height: 25px;
  background-image: url(../img/icons/play.svg);
  background-size: cover;
  z-index: 3;
}

.game-item .layout {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.game-item .layout.img {
  z-index: 0;
  &:img {
    width: 100%;
    height: 100%;
  }
}
.game-item .layout.dark {
  background: var(--block-shadow-layout);
  z-index: 1;
}

.site-item {
  position: relative;
  width: calc(50% - var(--offers-grid-gap) / 2);
  border-radius: var(--radius-lg);
  color: inherit;
  text-decoration: none;
}
.site-item-block {
  padding: 0;
  /* background: var(--theme-gradient); */
  width: 100%;
  border-radius: var(--radius-lg);
  height: auto;
}
.site-item-wrap {
  position: relative;
  z-index: 1;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
}
.site-item .lg {
  font-size: 1.57em;
  min-height: 1.57em;
}
.site-item .content {
  padding: 15px;
  padding-top: 10px;
  display: flex;
  flex-direction: column;
}
.site-item .content > *:not(button, a) {
  margin-bottom: 20px;
}
.site-item button {
  width: 100%;
  color: var(--color-bg);
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 0;
  cursor: pointer;
}
.site-item .site-preview-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1.32;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.site-item .site-preview {
  min-height: 100%;
  height: auto;
  min-width: 100%;
}
.site-item .chars-block {
  margin-bottom: 15px !important;
  display: flex;
  justify-content: space-between;
}
.site-item .site-char {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.site-item .bonus {
  min-height: 70px;
}
.site-item .bonus .char-sub {
  display: block;
  font-size: 1em;
  min-height: 1.2em;
}
.site-item a {
  width: 100%;
  text-align: center;
}

/* Стили для промокода */
.promocode-block {
  margin: 10px 0;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.promocode-block:hover {
  background: rgba(255, 255, 255, 0.2);
}

.promocode-label {
  font-size: 14px;
  color: #aaa;
  margin-right: 5px;
}

.promocode-value {
  font-weight: bold;
  color: #fff;
  border-bottom: 1px dashed #fff;
  padding-bottom: 2px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}
.social-links a {
  color: #fff;
  text-decoration: none;
  text-align: center;
  min-width: 178px;
  width: fit-content;
  padding: 11px 20px;
  background: var(--color-bg-soft);
  gap: 5px;
  border-radius: var(--radius-md);
  transition: background 0.4s ease-in-out;
}

.social-links a:hover {
  background: #303043;
}

.card-link {
  border-radius: var(--radius-sm);
}
.promocode-block {
  position: relative;
  cursor: pointer;
}

.promocode-copied {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: #4caf50;
}

.promocode-value {
  transition: color 0.3s ease;
}
