/*region CSS NORMALIZE*/

/**
  Нормализация блочной модели
 */
*,
::before,
::after {
  box-sizing: border-box;
}

/**
  Убираем внутренние отступы слева тегам списков,
  у которых есть атрибут class
 */
:where(ul, ol):where([class]) {
  padding-left: 0;
}

/**
  Убираем внешние отступы body и двум другим тегам,
  у которых есть атрибут class
 */
body,
:where(blockquote, figure, fieldset):where([class]) {
  margin: 0;
}

/**
  Убираем внешние отступы вертикали нужным тегам,
  у которых есть атрибут class
 */
:where(
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  ul,
  ol,
  dl
):where([class]) {
  margin-block: 0;
}

:where(dd[class]) {
  margin-left: 0;
}

:where(fieldset[class]) {
  padding: 0;
  border: none;
}

/**
  Убираем стандартный маркер маркированному списку,
  у которого есть атрибут class
 */
:where(ul[class]) {
  list-style: none;
}

:where(address[class]) {
  font-style: normal;
}

/**
  Обнуляем вертикальные внешние отступы параграфа,
  объявляем локальную переменную для внешнего отступа вниз,
  чтобы избежать взаимодействие с более сложным селектором
 */
p {
  --paragraphMarginBottom: 24px;

  margin-block: 0;
}

/**
  Внешний отступ вниз для параграфа без атрибута class,
  который расположен не последним среди своих соседних элементов
 */
p:where(:not([class]):not(:last-child)) {
  margin-bottom: var(--paragraphMarginBottom);
}


/**
  Упрощаем работу с изображениями и видео
 */
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

/**
  Наследуем свойства шрифт для полей ввода
 */
input,
textarea,
select,
button {
  font: inherit;
}

html {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  height: 100%;
  /**
    Убираем скачок интерфейса по горизонтали
    при появлении / исчезновении скроллбара
   */
  scrollbar-gutter: stable;
}

/**
  Плавный скролл
 */
html {
  scroll-behavior: smooth;
}

body {
  /**
    Пригодится в большинстве ситуаций
    (когда, например, нужно будет "прижать" футер к низу сайта)
   */
  min-height: 100%;
  /**
    Унифицированный интерлиньяж
   */
  line-height: 1.5;
}

/**
  Нормализация высоты элемента ссылки при его инспектировании в DevTools
 */
a:where([class]) {
  display: inline-flex;
}

/**
  Курсор-рука при наведении на элемент
 */
button,
label {
  cursor: pointer;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут fill со значением 'none' или начинается с 'url')
 */
:where([fill]:not(
  [fill="none"],
  [fill^="url"]
)) {
  fill: currentColor;
}

/**
  Приводим к единому цвету svg-элементы
  (за исключением тех, у которых уже указан
  атрибут stroke со значением 'none')
 */
:where([stroke]:not(
  [stroke="none"],
  [stroke^="url"]
)) {
  stroke: currentColor;
}

/**
  Чиним баг задержки смены цвета при взаимодействии с svg-элементами
 */
svg * {
  transition-property: fill, stroke;
}

/**
  Приведение рамок таблиц в классический 'collapse' вид
 */
:where(table) {
  border-collapse: collapse;
  border-color: currentColor;
}

/**
  Удаляем все анимации и переходы для людей,
  которые предпочитают их не использовать
 */
@media (prefers-reduced-motion: reduce) {
  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/*endregion*/

/*region FONTS*/
@font-face {
  font-family: 'Roboto';
  src: url("./fonts/Roboto-Thin.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url("./fonts/Roboto-Medium.woff2") format("woff2");
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Roboto';
  src: url("./fonts/Roboto-Italic.woff2") format("woff2");
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

/*endregion*/

:root {
  font-family: 'Roboto', Arial, sans-serif;
  --text-color-on-header: white;
  --dark-grey: #333333;
  --light-grey: #7A7A7A;
  --header-button: #382A2D;
  --header-button-hovered: #7E0021;
  --header-red: #cf2e2e;
}

a {
  text-decoration: none;
  color: inherit;
  outline: none;
}

.wrapper {
  width: clamp(320px, 100%, 1320px);
  margin: 0 auto;
}

* {
  scroll-margin-top: 7vw;
}

body {
  background-color: var(--header-red);
}

/*region HEADER AND NOTIFICATION */

.header {
  display: flex;
  flex-direction: column;
  position: fixed;
  background-color: var(--header-red);
  width: 100%;
  z-index: 1;
}

.header__burger {
  display: none;
  font-size: 2em;
  background: #7E0021;
  color: white;
  border: none;
  cursor: pointer;
  margin-left: auto;
  margin-right: 1rem;
}

.header__close {
  display: none;
  font-weight: bold;
  transform: rotate(45deg);
  color: white;
  font-size: 3rem;
  background: none;
  border: none;
  position: fixed;
  top: 1%;
  right: 5%;
}

.notice {
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--light-grey);
  background: var(--dark-grey);
  font-weight: bold;
  margin-top: 0;
  text-align: center;
  height: clamp(2rem, auto, auto);
  gap: 0.5rem;
  font-size: clamp(10px, auto, 1rem);

}

.notice::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='fi_157933' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 330 330' style='enable-background:new 0 0 330 330;' xml:space='preserve'%3E%3Cg fill='%23818181FF'%3E%3Cpath d='M165,0C74.019,0,0,74.02,0,165.001C0,255.982,74.019,330,165,330s165-74.018,165-164.999C330,74.02,255.981,0,165,0z M165,300c-74.44,0-135-60.56-135-134.999C30,90.562,90.56,30,165,30s135,60.562,135,135.001C300,239.44,239.439,300,165,300z'%3E%3C/path%3E%3Cpath d='M164.998,70c-11.026,0-19.996,8.976-19.996,20.009c0,11.023,8.97,19.991,19.996,19.991 c11.026,0,19.996-8.968,19.996-19.991C184.994,78.976,176.024,70,164.998,70z'%3E%3C/path%3E%3Cpath d='M165,140c-8.284,0-15,6.716-15,15v90c0,8.284,6.716,15,15,15c8.284,0,15-6.716,15-15v-90C180,146.716,173.284,140,165,140z '%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.header__container {
  height: 6rem;
  padding: 1rem;
  display: flex;
  align-items: center;
}

.main-logo__link {
  flex-shrink: 0;
}

.main-logo {
  max-width: 200px;
}

.nav-menu {
  display: flex;
  gap: 7rem;
  color: white;
  flex: 1;
  padding-left: 8rem;
}

.nav-menu__element {
  transition: all 0.3s ease;
  align-self: center;
  font-weight: bold;
}

.nav-menu__element:hover {
  border-bottom: 2px solid white;
}

.nav-menu__element:last-child {
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.5rem 2rem;
  margin-left: auto;
  background-color: #382A2D;
}

.nav-menu__element:last-child:hover {
  background-color: #7E0021;
}

@media (max-width: 1100px) {
  .header__burger,
  .header__close {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .nav-menu.is-active {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--header-red);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    justify-content: center;
    align-content: center;
    padding: 0;
  }

  .nav-menu__element:last-child {
    margin: 0;
  }
}

/*endregion*/

/*region HERO*/

.hero {
  position: relative;
  padding: 10rem 0 2rem 0;
  color: white;
  background-image: url("/img/poker-bg2.jpg");
  background-position: center;
  z-index: 0;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero > * {
  position: relative;
  z-index: 2;
}

.hero__title {
  color: white;
  font-size: 52px;
  padding: 2rem 0 3rem 0;
}

.hero__text {
  font-size: 20px;
}

.hero__undertext {
  color: #b8b8b8;
  font-size: 15px;
}

.hero__button {
  background-color: var(--header-red);
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0.5rem 2rem;
  margin: 1rem;
  transition: background-color 0.3s ease;
}

.hero__button-star::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%0A%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' xmlns:xlink='http://www.w3.org/1999/xlink' width='512' height='512' x='0' y='0' viewBox='0 0 509.237 509.237' style='enable-background:new 0 0 512 512' xml:space='preserve' class=''%3E%3Cg%3E%3Cpath d='m411.982 496.775-157.363-82.731-157.363 82.731 30.054-175.227L0 197.453l175.937-25.564 78.682-159.427L333.3 171.889l175.937 25.564-127.309 124.095z' fill='%23ffffff' opacity='1' data-original='%23000000' class=''%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-right: 0.5rem;
}

/*endregion*/

/*region ----- DESCRIPTION -----*/
.description {
  background-color: white;
}

.description__container {
  padding: 3rem 1rem;
}

.description__first-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.description__first-grid-element,
.description__image-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--dark-grey);
  margin: 2rem 0;
}

.description__first-grid-title {
  font-weight: bold;
  font-size: 19px;
}

.description__image-block__caption {
  font-size: 1rem;
  color: var(--dark-grey);
}

.description__title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.description__element {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem auto;
}

.description__element__left,
.description__element__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.description__element__left__span:first-of-type {
  text-align: center;
  color: var(--light-grey);
}

.description__element__left__span,
.description__element__right__span {
  text-align: justify;
}

.description__second-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 2rem;
}

.description__second-element {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem auto;
}

.description__second-element__item:first-of-type {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.description__second-element__item-text {
  text-align: justify;
}

.description__second-element__item-button,
.promo__button,
.call-to-action__button {
  border: 1px solid transparent;
  border-radius: 5px;
  background-color: var(--header-red);
  transition: background-color 0.4s ease;
  color: white;
  font-weight: bold;
  padding: 0.5rem 2rem;
  margin-top: 1.5rem;
}

.hero__button:hover,
.description__second-element__item-button:hover,
.promo__button:hover,
.call-to-action__button:hover {
  background-color: var(--header-button-hovered);
}

@media (max-width: 1100px) {
  .description__first-grid {
    grid-template-columns: 1fr;
  }

  .description__first-grid-element {
    margin: 0;
  }

  .description__element {
    grid-template-columns:1fr;
  }

  .description__second-element {
    grid-template-columns:1fr;
  }
}

/*endregion*/

/*region ----- PROMO ----- */

.promo {
  background-color: #24201f;
  padding: 2rem 0;
}

.promo__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
}

.promo__title {
  font-size: 32px;
  color: white;
  text-align: center;
  padding-top: 2rem;
}

.promo__content {
  background-color: #333333;
  display: flex;
  align-items: stretch;
  justify-content: center;
  margin: 2rem auto;
  user-select: none;
}

.promo__content-element {
  background-color: white;
  margin: 1rem;
  padding: 1rem;
  flex: 1;
  border-radius: 5px;
  text-align: center;
  align-items: center;
}

.promo__content-element__title {
  margin: 1rem 0;
}

@media (max-width: 1100px) {
  .promo__content {
    flex-direction: column;
  }
}

/*endregion*/

/*region ----- REVIEWS ----- */

.reviews {
  background-color: white;
  padding: 2rem 0;
  overflow: hidden;
}

.review__viewport {
  width: 80%;
  margin: 0 auto;
  overflow: hidden;
}

.reviews__title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 2rem;
}

.reviews__content {
  display: flex;
  transition: transform 0.6s ease-in-out;
  user-select: none;
}

.reviews__element {
  margin: 0 0.5rem;
  flex: 0 0 calc(25% - 1rem);
  padding: 1rem;
  border-radius: 6px;
  box-sizing: border-box;
  text-align: left;
  border: 1px solid var(--light-grey)
}

.reviews__author-name {
  font-weight: bold;
}

.reviews__text {
  border-top: 1px solid var(--light-grey);
  text-align: justify;
  margin: 1rem -1rem 0;
  padding: 1rem;
  font-size: 0.8rem;
}

.reviews__star::before,
.reviews__half-star::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.reviews__star::before {
  background-image: url("data:image/svg+xml,%3Csvg height='511pt' viewBox='0 -10 511.98685 511' width='511pt' xmlns='http://www.w3.org/2000/svg' id='fi_1828884'%3E%3Cpath d='m510.652344 185.902344c-3.351563-10.367188-12.546875-17.730469-23.425782-18.710938l-147.773437-13.417968-58.433594-136.769532c-4.308593-10.023437-14.121093-16.511718-25.023437-16.511718s-20.714844 6.488281-25.023438 16.535156l-58.433594 136.746094-147.796874 13.417968c-10.859376 1.003906-20.03125 8.34375-23.402344 18.710938-3.371094 10.367187-.257813 21.738281 7.957031 28.90625l111.699219 97.960937-32.9375 145.089844c-2.410156 10.667969 1.730468 21.695313 10.582031 28.09375 4.757813 3.4375 10.324219 5.1875 15.9375 5.1875 4.839844 0 9.640625-1.304687 13.949219-3.882813l127.46875-76.183593 127.421875 76.183593c9.324219 5.609376 21.078125 5.097657 29.910156-1.304687 8.855469-6.417969 12.992187-17.449219 10.582031-28.09375l-32.9375-145.089844 111.699219-97.941406c8.214844-7.1875 11.351563-18.539063 7.980469-28.925781zm0 0' fill='%23ffc107'%3E%3C/path%3E%3C/svg%3E");
}

.reviews__half-star::before {
  background-image: url("data:image/svg+xml,%3Csvg id='fi_2107737' enable-background='new 0 0 24 24' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m23.79 9.87-5.36 5.49 1.26 7.77c.111.62-.562 1.074-1.1.78l-6.59-3.65v-20.23c.28 0 .56.13.68.4l3.31 7.05 7.37 1.12c.616.11.843.835.43 1.27z' fill='%23eceff1'%3E%3C/path%3E%3Cpath d='m12 .03v20.23l-6.59 3.65c-.529.297-1.212-.153-1.1-.78l1.26-7.77-5.36-5.49c-.413-.435-.187-1.16.43-1.27l7.37-1.12 3.31-7.05c.12-.27.4-.4.68-.4z' fill='%23ffc107'%3E%3C/path%3E%3C/svg%3E");
}

@media (max-width: 1100px) {
  .reviews__content.is-static {
    flex-direction: column;
    gap: 1rem;
  }
}


/*endregion*/

/*region ----- CTA ----- */
.call-to-action {
  position: relative;
  color: white;
  background-image: url("/img/poker-bg2.jpg");
  background-position: center;
  z-index: 0;
  overflow: hidden;
  text-align: center;
}

.call-to-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.call-to-action > * {
  position: relative;
  z-index: 2;
}

.call-to-action__title {
  padding-top: 5rem;
  font-size: 35px;
  text-align: center;
  font-weight: normal;
}

.call-to-action__button {
  margin: 2rem auto 5rem;
  padding: 1rem 2rem;
  font-size: 18px;
  display: inline-block;
}

/*endregion*/

/*region ----- FOOTER ----- */
.footer {
  background-color: #24201f;
  color: var(--light-grey);
  padding: 2rem;
  text-align: justify;
}

/*endregion*/

/*region ----- BONUS - HERO - DESCRIPTION -----*/

.hero__button-container__bon {
  font-weight: bold;
  padding: 1rem 0;
  display: flex;
  gap: 5rem;
  justify-content: center;
}

.hero__button__bon:last-of-type {
  background-color: var(--header-button-hovered);
  border: 2px solid white;
}

.hero__button__bon:last-of-type:hover {
  background-color: var(--header-red);
}

.description__title_bon {
  text-align: center;
  font-size: 32px;
}

.description__content-block__bon {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
  margin: 0 auto;
}

.description__content-cell__bon {
  padding: 1rem;
  text-align: center;
}

.description__content-cell__bon:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 80%;
}

.description__content-title__bon,
.description__content-text__bon {
  margin-top: 1rem;
}

.description__content-title__bon {
  font-size: 29px;
}

.description__content-text__bon {
  font-size: 17px;
}

@media (max-width: 1100px) {
  .hero__button-container__bon {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
  }

  .hero__button__bon {
    margin: 0 auto;
  }

  .description__content-cell__bon {
    padding: 0;
  }

  .description__content-block__bon {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  .description__content-cell__bon:nth-child(3) {
    width: 100%;
  }
}

/*endregion*/

/*region ----- MIRROR - HERO - DESCRIPTION -----*/

.description__title__mir {
  text-align: center;
  margin: 3rem 0;
}

.description__img__mir {
  margin: 1rem auto;
}

.description__text_mir,
.description__content-text__mir {
  text-align: justify
}

.description__content-text-block__mir {
  display: flex;
  gap: 2rem;
}

@media (max-width: 1100px) {
  .description__title__mir {
    margin: 1rem;
  }

  .description__content-text-block__mir {
    flex-direction: column;
  }
}

/*endregion*/

.four-null-four{
  height: calc(100vh - 8rem);
}

.four-null-four__title {
  font-size: 72px;
}