/* Стиль текстовых страниц контура «About / LEGAL»: четыре юридические,
   /about-us, /contact-us и три формы /contact-us/*. Подключается только на них
   — файл назван в `components/page_css.py` (TEXT_PAGE_CSS), а страницы берут
   его оттуда, а не каждая свой.

   Файл один, потому что страницы стоят на общем каркасе: хлебные крошки,
   контейнер и (у большинства) компонент текстовых секций
   (`components/text_document/`). Девять копий блока крошек и контейнера —
   ровно то, чего этот файл не даёт случиться. Своё у страницы — три последних
   блока: /about-us, /contact-us и форма.

   Хлебные крошки — общий компонент, но их стиль в проекте живёт постранично
   (так же в index.css, careers.css, casino-page.css): в вёрстке их правила
   приходили из css/index/index.css, который здесь не подключается. Блок ниже —
   копия оттуда. */

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumbs__item {
  padding: 6px;
  position: relative;
  display: flex;
  align-items: center;
}

.breadcrumbs__item:not(:last-child) {
  margin: 0 8px 0 0;
}

.breadcrumbs__item:not(:last-child)::after {
  position: absolute;
  content: "";
  width: 4px;
  height: 8px;
  right: -8px;
  background: var(--arrow-yellow) center no-repeat;
  background-size: contain;
}

.breadcrumbs__item a {
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  transition: color .3s ease;
  text-decoration: none;
}

@media(min-width:1366px) {
  .breadcrumbs__item a:hover {
    color: #fff;
  }
}

.breadcrumbs__item span {
  color: #4c4c4c;
}

.breadcrumbs__link {
  font-size: 13px;
  font-weight: 600;
  line-height: 17.76px;
}

.page__main-section.breadcrumbs {
  margin-bottom: 20px;
}

.breadcrumbs__icon-home {
  display: block;
  width: 16px;
  height: 16px;
}

.breadcrumbs__icon-home path {
  fill: #6c6c6c;
  transition: fill .3s ease;
}

@media(min-width:1366px) {
  .breadcrumbs__item a:hover .breadcrumbs__icon-home path {
    fill: #fff;
  }
}

@media(max-width:767.98px) {
  .breadcrumbs__link {
    font-size: 11px;
    line-height: 16px;
  }
}


/* Контейнер один на все три вида блоков страницы — крошки, текст и хиро
   контактов: разъехавшиеся отступы дали бы заголовок и крошки на разных левых
   границах. 1208 = 1128 текста плюс двойной отступ по краям. */

.text-doc__container,
.contact-hero__container,
.breadcrumbs__container {
  width: 100%;
  max-width: 1208px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 1650.98px) {
  .text-doc__container,
  .contact-hero__container,
  .breadcrumbs__container {
    padding: 0 20px;
  }
}

@media (max-width: 650.98px) {
  .text-doc__container,
  .contact-hero__container,
  .breadcrumbs__container {
    padding: 0 16px;
  }
}


/* ------------------------- Текст документа ------------------------- */

.text-doc {
  margin: 0 0 60px;
}

@media (max-width: 480.98px) {
  .text-doc {
    margin: 0 0 40px;
  }
}

.text-doc__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 0 24px;
}

.text-doc__heading {
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 36px;
  font-weight: 600;
  line-height: 40px;
}

@media (max-width: 650.98px) {
  .text-doc__heading {
    font-size: 28px;
    line-height: 36px;
  }
}

.text-doc__updated {
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  font-size: 14px;
  line-height: 20px;
}

@media (max-width: 400px) {
  .text-doc__top {
    flex-direction: column;
    align-items: flex-start;
  }
}

.text-doc__section {
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.text-doc__section:not(:last-child) {
  margin: 0 0 40px;
}

.text-doc__section a {
  color: var(--Colors-Yellow, #FFCF23);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.text-doc__title {
  color: var(--Text-Txt_Main, #ffffff);
}

.text-doc__title:not(:last-child) {
  margin: 0 0 16px;
}

/* Подзаголовок внутри секции. В вёрстке юридических страниц эту роль играл
   жирный абзац — здесь он настоящий `h3`, поэтому размер задан явно: иначе он
   пришёл бы из global.css как 22px и спорил бы с заголовком секции. */
.text-doc__subtitle {
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 16px;
  font-weight: 700;
  line-height: 22px;
}

.text-doc__subtitle:not(:last-child) {
  margin: 0 0 12px;
}

.text-doc__lead {
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
}

.text-doc__lead:not(:last-child) {
  margin: 0 0 14px;
}

.text-doc__text:not(:last-child) {
  margin: 0 0 12px;
}

.text-doc__term {
  color: var(--Text-Txt_Main, #ffffff);
  font-weight: 700;
}

.text-doc__list {
  margin: 8px 0 0;
}

.text-doc__list:first-child {
  margin-top: 0;
}

.text-doc__list:not(:last-child) {
  margin-bottom: 12px;
}

.text-doc__list-item {
  position: relative;
  padding: 0 0 0 24px;
}

.text-doc__list-item::before {
  content: "";
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  background: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  left: 10px;
  top: 9px;
}

.text-doc__list-item:not(:last-child) {
  margin: 0 0 4px;
}

@media (max-width: 480.98px) {
  .text-doc__section {
    font-size: 14px;
    line-height: 18px;
  }

  .text-doc__section:not(:last-child) {
    margin: 0 0 24px;
  }

  .text-doc__title:not(:last-child) {
    margin: 0 0 12px;
  }

  .text-doc__subtitle {
    font-size: 15px;
    line-height: 20px;
  }

  .text-doc__lead {
    font-size: 16px;
    line-height: 1.55;
  }

  .text-doc__list-item {
    padding: 0 0 0 21px;
  }

  .text-doc__list-item::before {
    top: 8px;
    left: 8.5px;
  }
}


/* ------------------------------ /about-us ------------------------------ */

/* Страница «О нас» — тот же текст, но в рамке и с двумя своими раскладками
   секций. Крючок — `body[data-page]`, а не модификатор блока: рамка это
   свойство страницы, а не секции текста. */

body[data-page="about_us_page"] .text-doc {
  padding: 26px 24px;
  border-radius: var(--SystemCorners-Medium, 12px);
  border: 1px solid rgba(255, 207, 35, .28);
  background:
    radial-gradient(640px 200px at 100% 0%, rgba(255, 207, 35, .08) 0%, rgba(255, 207, 35, 0) 72%),
    linear-gradient(180deg, rgba(35, 35, 32, .78) 0%, rgba(23, 23, 25, .9) 100%);
}

body[data-page="about_us_page"] .text-doc__subtitle {
  font-size: 20px;
  line-height: 1.35;
}

.about-cards__grid {
  display: grid;
  gap: 14px;
}

.about-cards--pair .about-cards__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-cards--stack .about-cards__grid {
  grid-template-columns: minmax(0, 1fr);
}

.about-cards__card {
  border-radius: var(--SystemCorners-Small, 8px);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: rgba(35, 35, 32, .46);
  padding: 16px;
}

.about-values__tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.about-values__tab {
  min-height: 44px;
  border-radius: var(--SystemCorners-Small, 8px);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: var(--BG-Bg_2, #232320);
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
  text-align: center;
  padding: 10px 8px;
  transition: border-color .25s ease, background .25s ease, color .25s ease;
}

.about-values__tab.is-active {
  border-color: rgba(255, 207, 35, .7);
  background: linear-gradient(180deg, #ffe141 0%, #fd9800 100%);
  color: var(--Text-Txt_Dark, #020202);
  box-shadow: inset 0 -2px 6px rgba(255, 255, 255, .2);
}

.about-values__tab:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 207, 35, .45);
}

.about-values__panels {
  position: relative;
}

.about-values__panel {
  border-radius: var(--SystemCorners-Small, 8px);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: rgba(35, 35, 32, .46);
  padding: 16px;
  animation: about-panel-fade .25s ease;
}

@keyframes about-panel-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .about-cards--pair .about-cards__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  body[data-page="about_us_page"] .text-doc {
    padding: 18px 16px;
  }

  body[data-page="about_us_page"] .text-doc__subtitle {
    font-size: 18px;
  }

  .about-values__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-values__tab {
    min-height: 42px;
    font-size: 12px;
    padding: 9px 8px;
  }
}


/* ----------------------------- /contact-us ----------------------------- */

.contact-hero {
  padding: 32px 0 52px;
  text-align: center;
}

.contact-hero__title {
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 42px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: .01em;
}

.contact-hero__subtitle {
  max-width: 620px;
  margin: 16px auto 38px;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
}

.contact-hero__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
  text-align: left;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 286px;
  padding: 22px 22px 20px;
  border-radius: var(--SystemCorners-Medium, 12px);
  background: linear-gradient(180deg, var(--BG-Bg_2, #232320) 0%, var(--BG-Bg_1, #171719) 100%);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  color: var(--Text-Txt_Main, #ffffff);
  transition: box-shadow .22s ease, border-color .22s ease;
}

.contact-card:not(.contact-card--static):hover {
  border-color: rgba(255, 207, 35, .45);
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
}

.contact-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.contact-card__title {
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
}

.contact-card__arrow {
  width: 28px;
  height: 28px;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card__arrow svg {
  fill: currentColor;
}

.contact-card__text {
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

@media (max-width: 1100px) {
  .contact-hero {
    padding-top: 24px;
  }

  .contact-hero__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .contact-hero {
    padding: 16px 0 34px;
  }

  .contact-hero__title {
    font-size: 34px;
  }

  .contact-hero__subtitle {
    margin: 14px auto 26px;
    font-size: 16px;
  }

  .contact-hero__cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    min-height: 0;
  }

  .contact-card__title {
    font-size: 22px;
  }

  .contact-card__text {
    font-size: 16px;
  }
}


/* ------------------------- /contact-us/<форма> ------------------------- */

/* Форма обращения. Классы `cf-*` пришли из вёрстки как есть — правил у них
   полсотни, и переименование ради единообразия развело бы их с исходником без
   единого выигрыша. */

.contact-form-hero {
  padding: 20px 0 52px;
}

.contact-form-hero__container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 650.98px) {
  .contact-form-hero__container {
    padding: 0 16px;
  }
}

.cf-title {
  text-align: center;
  font-size: 48px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--Text-Txt_Main, #ffffff);
}

.cf-subtitle {
  margin: 14px auto 28px;
  max-width: 690px;
  text-align: center;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 500;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.cf-shell {
  border-radius: var(--SystemCorners-Medium, 12px);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: var(--BG-Bg_2, #232320);
}

.cf-single-tab {
  min-height: 58px;
  padding: 18px 14px;
  text-align: center;
  border-bottom: 1px solid var(--BG-Bg_3, #2c2c28);
  background: var(--BG-Bg_1, #171719);
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.cf-form {
  padding: 24px;
}

.cf-form_feedback > * + * {
  margin-top: 14px;
}

.cf-field {
  position: relative;
}

.cf-field input,
.cf-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  border-radius: var(--SystemCorners-ExtraSmall, 6px);
  background: var(--BG-Bg_2, #232320);
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 18px;
  line-height: 1.4;
  font-weight: 500;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--Colors-Accent, #ffcf23);
}

.cf-field textarea {
  min-height: 112px;
  resize: vertical;
}

.cf-field_feedback textarea {
  min-height: 130px;
}

.cf-field + .cf-field,
.cf-field + .cf-spacer,
.cf-spacer + .cf-field,
.cf-row-2,
.cf-label,
.cf-actions {
  margin-top: 8px;
}

.cf-field_info input {
  padding-right: 40px;
}

.cf-info {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--Colors-Ocean, #83d1fc);
  color: var(--Colors-Ocean, #83d1fc);
  background: var(--BG-Bg_1, #171719);
  font-size: 12px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

/* Текст подсказки печатает CSS из атрибута: своего узла у неё нет, и пустой
   `data-tip` дал бы пустое облачко — поэтому поле без подсказки идёт без
   кнопки вовсе. */
.cf-info::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: var(--SystemCorners-ExtraSmall, 6px);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: var(--BG-Bg_1, #171719);
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
  z-index: 20;
}

.cf-info:hover::after,
.cf-info:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.cf-spacer {
  height: 12px;
}

.cf-label {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.cf-label + .cf-field {
  margin-top: 10px;
}

.cf-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cf-mini-label {
  display: block;
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.cf-select-wrap {
  position: relative;
}

.cf-select-wrap select {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 14px 40px 14px 14px;
  border-radius: var(--SystemCorners-Small, 8px);
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: linear-gradient(180deg, var(--BG-Bg_2, #232320) 0%, var(--BG-Bg_1, #171719) 100%);
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 16px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

/* Список раскрывает система, и там наши цвета не действуют: пункт остаётся
   тёмным на тёмном, если не задать ему свои. */
.cf-select-wrap select option {
  color: var(--Text-Txt_Dark, #020202);
  background: #fff;
}

.cf-select-wrap select:hover {
  border-color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.cf-select-wrap select:focus {
  border-color: var(--Colors-Accent, #ffcf23);
  box-shadow: 0 0 0 2px rgba(255, 207, 35, .15);
}

.cf-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 20px;
  width: 8px;
  height: 8px;
  border-right: 1.6px solid var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  border-bottom: 1.6px solid var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  transform: rotate(45deg);
  pointer-events: none;
}

.cf-upload {
  border: 1px dashed var(--BG-Bg_3, #2c2c28);
  border-radius: var(--SystemCorners-ExtraSmall, 6px);
  min-height: 112px;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  background: var(--BG-Bg_1, #171719);
  transition: border-color .2s ease, background .2s ease;
}

.cf-upload.is-dragover {
  border-color: var(--Colors-Accent, #ffcf23);
  background: var(--BG-Bg_2, #232320);
}

.cf-upload input {
  display: none;
}

.cf-upload__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--Text-Txt_Main, #ffffff);
}

.cf-upload__text {
  margin-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
}

.cf-upload__text span span,
.cf-upload__text [data-upload-selected] {
  color: var(--Text-Txt_Main, #ffffff);
  text-decoration: underline;
}

.cf-upload__text [data-upload-selected] {
  text-decoration: none;
}

.cf-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.cf-btn {
  min-height: 50px;
  border-radius: var(--SystemCorners-Small, 8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 750;
}

.cf-btn_back {
  border: 1px solid var(--BG-Bg_3, #2c2c28);
  background: var(--BG-Bg_1, #171719);
  color: var(--Text-Txt_Main, #ffffff);
}

.cf-btn_submit {
  background: var(--Colors-Accent, #ffcf23);
  color: var(--Text-Txt_Dark, #020202);
}

.cf-btn_submit:hover {
  background: linear-gradient(180deg, #ffe141, #fd9800), var(--Colors-Accent, #ffcf23);
  box-shadow: inset 0 -4px 8px rgba(255, 255, 255, .2);
}

/* Экран успеха встаёт на место формы. Своей вёрстки в проде у него нет —
   там форма никуда не отправляется и после `submit` страница просто
   перезагружается. */
.cf-success {
  padding: 40px 24px;
  text-align: center;
}

.cf-success__title {
  color: var(--Text-Txt_Main, #ffffff);
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
}

.cf-success__text {
  max-width: 520px;
  margin: 12px auto 24px;
  color: var(--Text-Txt_Sec, rgba(255, 255, 255, .5019607843));
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.cf-success .cf-btn {
  padding: 0 24px;
}

@media (max-width: 760px) {
  .cf-title {
    font-size: 32px;
  }

  .cf-subtitle {
    font-size: 16px;
    margin-bottom: 22px;
  }

  .cf-form {
    padding: 16px;
  }

  .cf-row-2,
  .cf-actions {
    grid-template-columns: 1fr;
  }

  .cf-field input,
  .cf-field textarea {
    font-size: 16px;
  }

  .cf-upload {
    min-height: 96px;
    padding: 14px 12px;
  }

  .cf-upload__title {
    font-size: 20px;
  }

  .cf-upload__text {
    font-size: 14px;
  }

  .cf-select-wrap::after {
    bottom: 18px;
  }

  .cf-info::after {
    left: calc(100% + 8px);
    width: min(220px, 68vw);
  }

  .cf-success {
    padding: 28px 16px;
  }

  .cf-success__title {
    font-size: 24px;
  }

  .cf-success__text {
    font-size: 15px;
  }
}
