/*region Нормализация стилей*/


/**
  Нормализация блочной модели
 */
*,
::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-*/

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
  Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  background-image: url("../img/asset.svg");
  background-color: #003120;
  background-repeat: repeat;
  background-size: cover;
  background-position: center;

}

.wrapper {
  width: clamp(320px, 100%, 1920px);
  margin: 0 auto;
}

.first-screen {
  height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  outline: none;
}


/* region ----------- HEADER ------------*/

.burger {
  display: none;
  font-size: 2em;
  background: none;
  border: none;
  cursor: pointer;
}

/* region ----------- scroll to top button ----------- */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  padding: 10px 15px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.scroll-to-top img {
  width: 40px;
  height: 40px;
  cursor: pointer;
}

#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

/* endregion */

.header {
  width: 100%;
  padding: 0 16px;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}


.header-menu {
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 90px;
  width: clamp(320px, 100%, 1920px);
  padding: 0 5vw;
}

.logo {
  height: 80px;
  padding: 5px;
  margin-top: 10px;
  margin-left: 10px;
  box-sizing: border-box;
}

.header__menu-element {
  font-size: 1em;
  margin-left: 0.8em;
  cursor: pointer;
  border: none;
  padding: 0.5em;
}

.header__menu-element:hover {
  border-bottom: 2px solid #003120;
}

.header__menu-button {
  border: none;
  background: #679D45;
  border-radius: 50px;
  margin-left: auto;
  padding: 10px 15px;
  transition: all 0.5s ease;
}

.header__menu-button:hover {
  color: white;
  background: #194000;
}


/*endregion*/

/*region -----------INFORMATION BLOCK----------*/

.information-block {
  display: grid;
  grid-template-columns: [left] 50% [right] 50%;
  min-height: 100vh;
  padding-top: 90px;
  padding-bottom: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.information-block__button {
  padding: 10px 15px;
  justify-self: center;
  align-self: center;
  border-radius: 50px;
  grid-column: 1;
  grid-row: 3;
  margin: 10px;
  border: none;
  background: #679D45;
  transition: all 0.5s ease;
}

.information-block__button::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('../img/favicon.ico');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 8px;
  align-self: center;
}

.information-block__button:hover {
  color: white;
  background: #194000;
  border: 1px solid white;
}

.information-block__title-text {
  grid-column: 1;
  align-self: center;
  justify-self: center;
  text-align: center;
  margin: 10px 1vw;
  color: white;
  font-size: 4rem;
  font-weight: bold;
}

.information-block__body-text {
  grid-column: 1;
  align-self: center;
  justify-self: center;
  text-align: center;
  margin: 10px 1vw;
  color: white;
  font-size: 3rem;
}

.information-block img {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  margin: 10px;
}

.information-block__spans-row {
  height: 80px;
  display: flex;
  grid-row: 4;
  grid-column: 1 / -1;
  justify-content: space-evenly;
  align-items: center;
  background: #003120;
  color: white;
  font-size: 1.3em;
  margin-top: auto;
}

.information-block span::before {
  content: "✓";
  display: inline-block;
  width: 22px;
  height: 22px;
  background-color: white; /* Цвет кружка */
  color: #003120; /* Цвет галочки */
  font-weight: bold;
  text-align: center;
  line-height: 20px; /* Центрирование по вертикали */
  border-radius: 50%; /* Круг */
  margin-right: 8px;
  font-size: 20px;
}


/*endregion*/

/*region ---------ROOMS INFO------------*/
.rooms-info {
  background: white;
  height: auto;
  box-sizing: border-box;
  padding-top: 10px;
  padding-bottom: 10px;
  scroll-margin-top: 5vw;
}

.rooms-info h2,
.about-our-rating__text section h2,
.faq-block h2 {
  text-align: center;
}

.rooms-info__room-section {
  max-width: 1600px;
  margin: 0 auto;
}

.room {
  display: grid;
  border: #003120 3px solid;
  border-radius: 10px;
  grid-template-columns: 20% 10% 15% 35% 20%;
  grid-template-areas:
    "room_logo room_rating bold_text info_list room_link"
    "room_logo room_rating thin_text info_list stars";
  margin: 20px 10vw 10px 10vw;
  align-items: center;
  justify-items: center;
  height: 10vw;
}

.two-promos__block1,
.two-promos__block2 {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 1rem;
}

.two-promos__block1 {
  grid-area: two-promos1;
}

.two-promos__block2 {
  grid-area: two-promos2;
}

.room.two-promos {
  grid-template-areas:
    "room_logo room_rating two-promos1"
    "room_logo room_rating splitter"
    "room_logo room_rating two-promos2";
  grid-template-columns: 20% 10% 70%;
  padding-right: 1rem;
}

.two-promos__block1 .room-bonus-info-bold,
.two-promos__block2 .room-bonus-info-bold {
  align-self: center;
}

.two-promos__block2 .room-link {
  background-color: rgba(139, 0, 0, 0.48);
}

.two-promos__block2 .room-link:hover {
  background-color: #8c0000;
}

.two-promos__splitter{
  grid-area: splitter;
  width: 100%;
  border-top: 2px solid #003120;
}

.room:nth-child(-n+6) {
  background-color: rgba(33, 124, 22, 0.2);
}

.room-logo {
  grid-area: room_logo;
  width: 200px;
  padding: 10px;
}

.room-rating {
  grid-area: room_rating;
  border: 2px solid #003120;
  border-radius: 50px;
  padding: 5px 25px;
}

.room-bonus-info-bold {
  grid-area: bold_text;
  font-weight: bold;
  font-size: 1.2em;
  align-self: end;
}

.room-bonus-info-thin {
  grid-area: thin_text;
  align-self: start;
}

.room-info-list {
  grid-area: info_list;
  justify-self: start;
  padding-left: 20px;
}

.room-info-list li::before {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='512' viewBox='0 0 520 520' width='512'><g id='_15-Checked' data-name='15-Checked'><path d='m232.019 422.469a10 10 0 0 1 -8.624-4.938c-33.227-56.607-121.81-177.14-122.7-178.351a10 10 0 0 1 1.027-13.039l27.239-26.918a10 10 0 0 1 12.755-1.085l88.222 61.6c59.034-75.7 113.87-128 149.946-158.861 40.616-34.738 66.471-50.377 67.553-51.021a10 10 0 0 1 5.145-1.425h44.068a10 10 0 0 1 6.65 17.469c-125.143 111.464-261.232 349.13-262.592 351.518a10 10 0 0 1 -8.624 5.05z'/><path d='m230.1 464.132c-99.252 0-180-80.747-180-180s80.748-180 180-180a179.651 179.651 0 0 1 58.491 9.72 10 10 0 1 1 -6.5 18.916 159.712 159.712 0 0 0 -52-8.636c-88.225 0-160 71.776-160 160s71.775 160 160 160 160-71.776 160-160a161.236 161.236 0 0 0 -3.246-32.231 10 10 0 1 1 19.6-4.005 181.324 181.324 0 0 1 3.651 36.236c.004 99.253-80.744 180-179.996 180z'/></g></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  vertical-align: middle;
}


.room-link {
  grid-area: room_link;
  display: inline-block;
  padding: 10px 20px;
  background-color: #679D45;
  color: black;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}

.room-link:hover {
  color: white;
  background-color: #194000;
}

.rating-or-promo-text {
  text-align: center;
  align-self: start;
  position: relative;
  cursor: pointer;
  border-bottom: 2px dashed #8c0000;
}

.rating-or-promo-text::after {
  content: "Промокод скопирован!";
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.rating-or-promo-text.show::after {
  opacity: 1;
}

.rating-or-promo-image {
  text-align: center;
  align-self: start;
}

/*endregion*/

/*region ---------ABOUT OUR RATING------------*/
.about-our-rating {
  color: white;
  margin-bottom: 10px;
  scroll-margin-top: 8vw;
}

.about-our-rating__content {
  display: grid;
  grid-template-columns: 10% 90%;
  grid-template-areas:
    ". about-our-rating_head_section"
    "about-our-rating__svg about-our-rating__text"
    ". about-our-rating__choose-room";
  margin: 20px 10vw 3rem 10vw;
  align-items: center;
  justify-items: center;
}

#about-our-rating_head_section {
  grid-area: about-our-rating_head_section;
}

.about-our-rating__svg {
  grid-area: about-our-rating__svg;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-our-rating__text {
  grid-area: about-our-rating__text;
  text-align: justify;
}

.about-our-rating__choose-room {
  grid-area: about-our-rating__choose-room;
  margin-top: 2rem;
  padding: 10px 20px;
  background: #679D45;
  transition: all 0.5s ease;
  border-radius: 50px;
}

.about-our-rating__choose-room:hover {
  color: white;
  background-color: #194000;
  border: 1px solid white;
}

.cf-icon-svg,
.step-arrow {
  fill: white;
}

/*endregion*/

/*region ---------ROOM REVIEWS------------*/
.room-review {
  background: white;
  padding-top: 10px;
  scroll-margin-top: 5vw;

}

.room-review__item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-items: center;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.room-review__item:nth-child(odd) {
  direction: rtl;
  text-align: left;
}


.room-review__img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: auto;
  box-sizing: border-box;
  padding: 1vw;
}

.room-review__item-text {
  align-self: start;
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  padding: 2rem;
}

.room-review__item-links {
  grid-column: 2 / 3;
}

.room-review__item-links a:nth-child(odd) {
  padding: 10px 20px;
  margin-right: 10px;
  background: #679D45;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.room-review__item-links a:nth-child(odd):hover {
  background: #194000;
  color: white;
}

.room-review__item-links a {

  padding: 10px 20px;
  margin-right: 10px;
  background-color: gray;
  color: white;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.room-review__item-links a:hover {
  background-color: goldenrod;
  color: black;
}

/*endregion*/

/*region ---------ABOUT BONUSES------------*/

.about-bonuses {
  scroll-margin-top: 8vw;
  padding: 0 0 0 0;
}

.about-bonuses h2,
.about-bonuses p {
  color: white;
  text-align: center;
  margin: 15px 20vw;
}

.about-bonuses__list {
  display: grid;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  grid-template-columns: repeat(4, 1fr);
  color: black;
}

.about-bonuses__list article {
  background-color: white;
  border-radius: 5px;
  padding: 15px;
  margin: 10px;
}

.about-bonuses__choose-room {

  grid-column: 1 / 5;
  grid-row: 2 / 3;
  justify-self: center;
  background: #679D45;
  transition: all 0.5s ease;
  border-radius: 50px;
  padding: 10px 20px;
  cursor: pointer;
  margin: 2rem;
}

.about-bonuses__choose-room:hover {
  color: white;
  background-color: #194000;
  border: 1px solid white;
}

/*endregion*/

/*region ---------FAQ------------*/

.faq-block {
  background-color: white;
  padding-top: 10px;
  scroll-margin-top: 8vw;
}

.question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  position: relative;
  font-weight: bold;
  font-size: 1.2em;
}

.questions__details .question::after {
  content: "▶";
  transition: transform 0.3s ease;
  margin-left: auto;
}

.questions__details[open] .question::after {
  transform: rotate(90deg);
}

.questions__details[open] + .answer {
  grid-template-rows: 1fr;
  border-bottom: #003120 2px solid;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.questions__details {
  border-bottom: #003120 2px solid;
  padding-bottom: 10px;
}

.questions__details[open] {
  border-bottom: #003120 2px;
}

.faq__accordion {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 20vw;
}

.answer {
  display: grid;
  grid-template-rows: 0fr;
  transition-duration: 0.3s;
}

.answer-body {
  overflow: hidden;
  margin-top: 20px;
  text-align: justify;
}


/*endregion*/

/*region ---------FOOTER------------*/
.footer {
  background-color: #003120;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  margin: 0 15vw;
}

.footer__menu_element {
  border: none;
  color: white;
  cursor: pointer;
  background: #003120;
}

.footer__menu_element:hover {
  border-bottom: 2px solid white;
}

/*endregion*/

/*region --------Mobile media query---------*/

@media (max-width: 1150px) {

  .first-screen {
    height: auto;
  }

  .header {
    position: relative;
  }

  .header-menu {
    height: auto;
    flex-direction: row;
    margin: 0;
  }

  .header__menu-button {
    display: none;
  }

  .burger {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height:100%;
  }

  .logo.active {
    display: none;
  }

  .nav.active {
    display: flex;
  }

  .header__menu-element {
    margin: 10px 0;
  }

  .information-block__spans-row {
    display: none;
  }

  .information-block {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0;
  }

  .information-block img {
    display: none;
  }

  .information-block__title-text {
    font-size: 2em;
    text-align: center;
  }

  .information-block__body-text {
    font-size: 0.9em;
  }

  .rooms-info h2 {
    padding: 0 1rem;
  }

  .room {
    grid-template-columns: 1fr;
    grid-template-areas:
      "room_logo"
      "room_rating"
      "bold_text"
      "thin_text"
      "info_list"
      "stars"
      "room_link";
    height: auto;
    row-gap: 10px;
    padding: 10px;
  }

  .room-logo {
    width: 100%;
    max-width: 200px;
  }

  .room-info-list {
    padding-left: 0;
    justify-self: center;
    text-align: center;
  }

  .room-link {
    width: fit-content;
    margin: 10px auto 0 auto;
  }

  .about-our-rating__content {
    grid-template-columns: 1fr;
  }

  .about-our-rating__svg {
    display: none;
  }

  .about-our-rating__choose-room {
    font-size: 0.9em;
  }

  .room-review {
    padding-bottom: 10px;
  }

  .room-review__item {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "img"
      "text"
      "links";
    gap: 1em;
    direction: ltr !important;
    text-align: center;
  }

  .room-review__img {
    grid-area: img;
    width: 100%;
    max-width: 400px;
  }

  .room-review__item-text {
    grid-area: text;
    padding: 0 10px;
  }

  .room-review__item-links {
    grid-area: links;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .about-bonuses {
    padding: 3vw 0 0 0;
  }

  .about-bonuses h2 {
    font-size: 1.5em;
    margin: 0;
  }

  .about-bonuses p {
    margin: 10px 0;
  }

  .about-bonuses__list {
    grid-template-columns: 1fr;
    margin: 20px 5vw;
    row-gap: 10px;
  }

  .about-bonuses__choose-room {
    grid-column: auto;
    grid-row: auto;
  }

  .faq-block h2 {
    font-size: 1.5em;
  }

  .faq__accordion {
    margin: 0 5%;
  }

  .footer__content {
    justify-self: center;
  }

  .footer__menu_element {
    display: none;
  }

  .two-promos__block1,
  .two-promos__block2 {
    display: flex;
    flex-direction: column;
    align-self: center;
  }

  .two-promos__block1 {
    grid-area: two-promos1;
  }

  .two-promos__block2 {
    grid-area: two-promos2;
  }

  .room.two-promos {
    grid-template-areas:
    "room_logo"
    "room_rating"
    "two-promos1"
    "splitter"
    "two-promos2";
    padding-right: 1rem;
    grid-template-columns: 1fr;
  }

  .two-promos__block1 .rating-or-promo-text,
  .two-promos__block2 .rating-or-promo-text {
    align-self: center;
  }

}

/*endregion*/

