/*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-*/


/*region ------------- VARS --------------*/

:root {
    --header-height: 90px;
    --white-color: #fff;
    --main-green: #194000;
    --light-green: #679D45;
    --dark-green: #003120;
    --red-color: #FF0000;
    --main-blue: rgba(1, 96, 145, 0.75);
    --light-blue: rgba(95, 202, 244, 0.53);
}


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: var(--dark-green);
    background-repeat: repeat;
    background-size: cover;
    background-position: center;

}


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

/* region ----------- HEADER ------------*/

.burger {
    display: none;
    font-size: 2em;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

/* 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%;
    background: var(--white-color);
    position: fixed;
}

.header-menu {
    padding: 10px 5vw;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: var(--header-height);
}

.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;
    background: var(--white-color);
    padding: 0.5em;
}

.header__menu-element:hover {
    border-bottom: 2px solid var(--dark-green);
}

.header__menu-button {
    border: none;
    background: var(--light-green);
    border-radius: 50px;
    margin-left: auto;
    padding: 10px 2rem;
    transition: all 0.5s ease;
}

.header__menu-button:hover {
    color: var(--white-color);
    background: var(--main-green);
}

/*endregion*/

/*region -------- MAIN INFO --------- */

.first-screen__main-info {
    display: grid;
    grid-template-columns: 60% 40%;
    grid-template-areas:
            "info-title info-image"
            "info-text info-image"
            "g-promo-and-links info-image";
    padding-top: 130px;
    color: var(--white-color);
    row-gap: 3vw;
    max-width: 1920px;
    margin: 0 auto;
}

#info-reg-promo-and-links {
    grid-area: g-promo-and-links;
}

.first-screen__main-info__text-title {
    grid-area: info-title;
    font-size: 3rem;
    line-height: 1.2;
    font-weight: bold;
    text-align: center;
}

.first-screen__main-info__text {
    grid-area: info-text;
    font-size: 1.5rem;
    text-align: center;
}

.first-screen__main-info__image {
    grid-area: info-image;
    justify-self: center;
    align-self: center;
}

.reg-promo-and-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
    "promokod promokod"
    "link1 link2";
    margin: 10px 0;
    padding-bottom: 1rem;
}

.reg-promo-and-links__promokod {
    grid-area: promokod;
    justify-self: center;
    font-size: 1.5em;
    font-weight: bold;
    padding-bottom: 20px;
}

.reg-promo-and-links__link:nth-of-type(1) {
    grid-area: link1;
    background-color: var(--red-color);
    transition: all 0.5s;
}

.reg-promo-and-links__link:nth-of-type(1)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14"><path fill="white" fill-rule="evenodd" d="M3.254 4.361a2.861 2.861 0 1 1 5.647.651a.75.75 0 0 0 1.461.34a4.361 4.361 0 1 0-8.495 0a.75.75 0 0 0 1.461-.34a2.872 2.872 0 0 1-.074-.651m1.63 5.335V4.26a1.26 1.26 0 0 1 2.518 0v4.077h2.464a2.573 2.573 0 0 1 2.573 2.573V13a1 1 0 0 1-1 1H4.83a1 1 0 0 1-.823-.433l-.764-1.11a1.715 1.715 0 0 1 1.097-2.66l.543-.102Z" clip-rule="evenodd"/></svg>');
}

.reg-promo-and-links__link:nth-of-type(1):hover {
    background: #8c0000;
}

.reg-promo-and-links__link:nth-of-type(2) {
    grid-area: link2;
    background-color: var(--light-green);
    transition: all 0.5s;
}

.reg-promo-and-links__link:nth-of-type(2)::before {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="512" height="512" viewBox="0 0 512 512"><path fill="white" d="M216 0h80c13.3 0 24 10.7 24 24v168h87.7c17.8 0 26.7 21.5 14.1 34.1L269.7 378.3c-7.5 7.5-19.8 7.5-27.3 0L90.1 226.1c-12.6-12.6-3.7-34.1 14.1-34.1H192V24c0-13.3 10.7-24 24-24m296 376v112c0 13.3-10.7 24-24 24H24c-13.3 0-24-10.7-24-24V376c0-13.3 10.7-24 24-24h146.7l49 49c20.1 20.1 52.5 20.1 72.6 0l49-49H488c13.3 0 24 10.7 24 24m-124 88c0-11-9-20-20-20s-20 9-20 20s9 20 20 20s20-9 20-20m64 0c0-11-9-20-20-20s-20 9-20 20s9 20 20 20s20-9 20-20"/></svg>');
}

.reg-promo-and-links__link:nth-of-type(2):hover {
    background: #194000;
}

.reg-promo-and-links__link:nth-of-type(1)::before,
.reg-promo-and-links__link:nth-of-type(2)::before {
    content: "";
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    align-self: center;
    justify-self: center;
    margin-right: 5px;
}

.reg-promo-and-links__link:nth-of-type(1),
.reg-promo-and-links__link:nth-of-type(2) {
    justify-self: center;
    border-radius: 50px;
    padding: 10px 2rem;
    font-size: 1.3em;
}

.first-screen__bonus {
    background: var(--dark-green);
    padding: 1vw 0;
    max-width: 1920px;
    margin: 0 auto;
}

.first-screen__bonus__items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 1fr 1fr;
    row-gap: 1vw;
    color: var(--white-color);
    margin: 1vw 5vw 1vw 5vw;
}

.first-screen__bonus__item {
    display: grid;
    grid-template-columns: 30px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "svg text"
        "svg under-text";
    gap: 4px;
    align-items: center;
    padding: 8px 0;
}

.first-screen__bonus__item__svg {
    grid-area: svg;
    width: 25px;
    height: 25px;
    justify-self: center;
    align-self: start;
    padding-right: 5px;
}

.first-screen__bonus__item-text {
    grid-area: text;
    font-size: 1.2em;
    align-self: end;
}

.first-screen__bonus__item-under-text {
    grid-area: under-text;
    font-size: 0.9em;
    color: grey;
    align-self: start;
}

/*endregion*/

/*region -------- ROOM DESCRIPTION --------- */

.room-description {
    background: var(--white-color);
    padding: 10px 5vw;
    max-width: 1920px;
    margin: 0 auto;
}

.room-description__figure img {
    margin: 0 auto;
}

.room-description__figure-caption {
    font-style: italic;
    opacity: 50%;
    text-align: center;
}

.room-description h2 {
    text-align: center;
}

.room-description p {
    text-align: justify;
}

.room-description__span {
    border-left: 3px solid;
    padding: 15px 10px;
    font-weight: bold;
}

.room-description__span.green {
    color: #194000;
    background-color: rgba(146, 234, 91, 0.51);
    border-color: rgba(60, 136, 5, 0.51);
}

.room-description__span.blue {
    color: var(--main-blue);
    background-color: var(--light-blue);
    border-color: var(--main-blue);
}

.text-with-marks__block {
    display: grid;
    grid-template-columns: 30px auto;
    grid-template-rows: auto;
    grid-template-areas: "marker text_";
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.text-with-marks__text {
    grid-area: text_;
    text-align: justify;
}

.text-with-marks__text__span {
    font-weight: bold;
}

.marker {
    grid-area: marker;
    display: block;
    width: 24px;
    height: 24px;
    margin-right: 5px;


}

.marker.plus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'  viewBox='0 0 24 24'%3E%3Cpath fill='green' stroke='green' stroke-linecap='round' stroke-width='2' d='M12 20v-8m0 0V4m0 8h8m-8 0H4'/%3E%3C/svg%3E");
}

.marker.check {
    width: 35px;
    height: 35px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='green'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16'/%3E%3Cpath d='m10.97 4.97l-.02.022l-3.473 4.425l-2.093-2.094a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-1.071-1.05'/%3E%3C/g%3E%3C/svg%3E");
}

.marker.minus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='red' stroke='red' stroke-linecap='round' stroke-width='2' d='M20 12H4'/%3E%3C/svg%3E");
}

.marker.bucks {
    width: 35px;
    height: 30px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 512'%3E%3Cpath fill='green' d='M320 144c-53.02 0-96 50.14-96 112c0 61.85 42.98 112 96 112c53 0 96-50.13 96-112c0-61.86-42.98-112-96-112m40 168c0 4.42-3.58 8-8 8h-64c-4.42 0-8-3.58-8-8v-16c0-4.42 3.58-8 8-8h16v-55.44l-.47.31a7.992 7.992 0 0 1-11.09-2.22l-8.88-13.31a7.992 7.992 0 0 1 2.22-11.09l15.33-10.22a23.99 23.99 0 0 1 13.31-4.03H328c4.42 0 8 3.58 8 8v88h16c4.42 0 8 3.58 8 8zM608 64H32C14.33 64 0 78.33 0 96v320c0 17.67 14.33 32 32 32h576c17.67 0 32-14.33 32-32V96c0-17.67-14.33-32-32-32m-16 272c-35.35 0-64 28.65-64 64H112c0-35.35-28.65-64-64-64V176c35.35 0 64-28.65 64-64h416c0 35.35 28.65 64 64 64z'/%3E%3C/svg%3E");
}

.table-wrapper {
    display: grid;
    place-items: center;
}

.rake-table {
    border-collapse: collapse;
}

.rake-table tr td {
    border: solid 1px grey;
    vertical-align: middle;
    text-align: center;
}

.rake-table th {
    box-sizing: border-box;
    border: solid 1px grey;
    color: var(--white-color);
    background-color: var(--light-green);

}

.rake-table tr:nth-child(even) {
    background: rgba(128, 128, 128, 0.15);
}

.footer {
    color: var(--white-color);
    padding: 30px;
}

.footer__plus-and-minus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
}

.footer__plus-and-minus li {
    display: flex;
    align-items: center;
    padding: 3px 0;
}

.footer__list__pluses li:first-child,
.footer__list__minuses li:first-child {
    font-weight: bold;
    font-size: 1.5em;
    justify-self: center;
}

.footer__list__pluses li:not(:nth-child(-n+1))::before,
.footer__list__minuses li:not(:nth-child(-n+1))::before {
    content: "";
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 5px;

}

.footer__list__pluses li:not(:nth-child(-n+1))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1024' height='1024' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23089619' d='M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m192 472c0 4.4-3.6 8-8 8H544v152c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V544H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h152V328c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v152h152c4.4 0 8 3.6 8 8z'/%3E%3C/svg%3E");

}

.footer__list__minuses li:not(:nth-child(-n+1))::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1024' height='1024' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23e40101' d='M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448s448-200.6 448-448S759.4 64 512 64m192 472c0 4.4-3.6 8-8 8H328c-4.4 0-8-3.6-8-8v-48c0-4.4 3.6-8 8-8h368c4.4 0 8 3.6 8 8z'/%3E%3C/svg%3E");
}

/*endregion*/


/*region --------Mobile media query---------*/

@media (max-width: 1150px) {

    .first-screen {
        height: 100%;
    }

    .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: row;
        align-items: center;
        width: 100%;
        height: 90px;
    }

    .logo.active {
        display: none;
    }

    .nav.active {
        display: flex;
        flex-wrap: wrap;
        height: 200px;
    }


    .header__menu-element {
        margin: 10px 0;
    }

    .first-screen__main-info {
        padding: 0 10px;
        grid-template-columns: 1fr;
        grid-template-areas:
            "info-title"
            "info-text"
            "g-promo-and-links";
    }

    .first-screen__main-info__image{
        display: none;
    }

    .reg-promo-and-links {
        grid-template-columns: 1fr;
        grid-template-areas:
    "promokod"
    "link1"
    "link2";
    }

    .reg-promo-and-links__promokod{
        text-align: center;
    }

    .reg-promo-and-links__link{
        margin: 10px 0;
    }

    .first-screen__bonus__items {
        grid-template-columns: 1fr;
        row-gap: 1vw;
        margin: 1vw 5vw 1vw 5vw;
    }

    .footer__plus-and-minus {
        grid-template-columns: 1fr;
        justify-items: center;
    }


}


/*endregion*/