/*region 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;
  /**
    Плавный скролл
   */
  scroll-behavior: smooth;
}

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

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

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

/**
  Убирает серую подсветку при тапе на мобильных устройствах (iOS/Android)
 */
button {
  -webkit-tap-highlight-color: transparent;
}

/**
  Чиним баг задержки смены цвета при взаимодействии с 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-Regular.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

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

/*endregion*/

/*region Globals*/
:root {
  font-family: 'Roboto', -apple-system, Arial, sans-serif;

  --black: #000000; /*background color*/
  --red: #C0180C; /*accent color*/
  --white: #FFFFFF; /*title color*/
  --grey: #FFFFFFB3; /*text color*/
  --grey-01: #D3E2E5; /*btn color*/
  --grey-02: #35394a; /*border color*/
  --dark: #0A0A0E; /*alert background*/

  --container-padding-x: 16px;
  --continer-width: 1320px;

  --header-height: 90px;
  --header-height-mobile: 150px;
}

h1, h2, h3 {
  color: var(--white);
}

h1 {
  font-size: 24px;
}

h2 {
  font-size: 22px;
}

h3 {
  font-size: 18px;
}

p, tr, li {
  color: var(--grey);
  font-size: 15px;
}

body {
  background: var(--black);
}

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

table {
  width: 100%;
  border: 1px solid var(--grey-02);

}

th, td {
  border: 1px solid grey;
  padding: 4px;
}

/*
* {
  scroll-margin-top: 5vw;
  transition: all 0.3s ease;
}
*/

/*endregion*/

/*region Utils*/
.container {
  width: 100%;
  max-width: var(--continer-width);
  margin-inline: auto;
  padding-inline: var(--container-padding-x);
}

p.notice {
  color: var(--white);
  border-left: 4px solid var(--red);
  padding-inline: 15px;
  font-style: italic;
  margin-bottom: 10px;
}

.btn {
  font-size: 15px;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: 50px;

}

.btn-red {
  background-color: var(--red);
  color: var(--white);
}

.btn-white {
  background-color: var(--grey-01);
  color: var(--black);
}

/*endregion*/


/*region Header*/

.header {
  position: fixed;
  width: 100%;
  padding: 15px 0;
  border-bottom: 1px solid var(--grey-02);
  background: var(--dark);
}

.header__container {
  display: flex;
}

.nav-menu {
  display: flex;
  margin-left: auto;
}

.nav-items {
  display: flex;
  gap: 10px;
}

.logo_link {
  width: 200px;
  height: 50px;
}

@media (max-width: 1100px) {
  .header__container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
  }

  .nav-menu {
    margin-inline: auto;
  }
}

/*endregion*/

/*region Hero*/

.hero {
  padding-top: var(--header-height);
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  color: var(--white);
}

.hero__text-block {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__btn {
  padding-inline: 70px;
  margin: 25px auto 0 0;

}

.hero__text-block--title,
.hero__text-block--text,
.hero__text-block--promo {
  color: var(--white);
}

.hero__text-block--title {
  font-size: 32px;
  font-weight: 700;
}

.hero__text-block--promo {
  margin-top: 25px;
}


.hero__text-block--promo-code {
  color: var(--red);
  cursor: pointer;

  &::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    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='24' height='24' x='0' y='0' viewBox='0 0 32 32' style='enable-background:new 0 0 512 512' xml:space='preserve' class=''%3E%3Cg%3E%3Crect width='20' height='26' x='3' y='5' rx='3' fill='%23e63b3a' opacity='1' data-original='%23000000' class=''%3E%3C/rect%3E%3Cpath d='M29 4v20a3.009 3.009 0 0 1-3 3h-1V8a5 5 0 0 0-5-5H9.18A3 3 0 0 1 12 1h14a3.009 3.009 0 0 1 3 3z' fill='%23e63b3a' opacity='1' data-original='%23000000' class=''%3E%3C/path%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    margin-left: 5px;
  }
}

.hero__text-block--promo-code-alert {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, -50%);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--dark);
  padding: 10px 16px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  width: 370px;
  height: 520px;
}

.hero__text-block--promo-code-alert.isShowed {
  opacity: 1;
  pointer-events: auto;
}

.alert-title {
  padding-top: 30px;
  font-size: 20px;
  color: var(--white);
}

.alert-close-button {
  position: absolute;
  right: 10px;
  top: 10px;
  cursor: pointer;
}

@media (max-width: 1100px) {

  .hero {
    padding-top: var(--header-height-mobile);
  }

  .hero__image {
    display: none;
  }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text-block--title {
    font-size: 24px;
  }

  .hero__btn {
    margin-inline: auto;
  }

}

/*endregion*/

/*region Information*/
.information__content {
  display: flex;
  flex-direction: column;
}

.information__image {
  align-self: center;
  padding: 30px;
}

.information__link {
  color: var(--red);
  border-bottom: 1px solid var(--red);
  font-weight: bold;
}

/*endregion*/

/*region Footer*/

.footer {
  border-top: 1px solid var(--grey-02);
  margin-top: 20px;
}

.footer__container {
  padding: 30px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

/*endregion*/

@media (max-width: 980px) {
  .container {
    padding-inline: calc(var(--container-padding-x) / 2);
  }
}

/*region FOF*/
.fof-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--red);
}

.fof-text {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 40px;
}

/*endregion*/