/*=============================
=      cookie consent         =
=============================*/
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  padding: 1.5rem;
  background: rgba(0, 23, 46, 0.97);
  color: #fff;
  font-family: 'DINPro-Light', Arial, sans-serif;
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.35);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent__panel {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.cookie-consent__content {
  flex: 1 1 50rem;
  min-width: 0;
}

.cookie-consent__title {
  font-family: 'DINPro-Medium', Arial, sans-serif;
  font-size: 2rem;
  margin: 0 0 0.8rem;
  color: #fff;
}

.cookie-consent__text {
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0 0 1rem;
  color: #d7e6f5;
}

.cookie-consent__links {
  margin: 0;
  font-size: 1.4rem;
}

.cookie-consent__links a {
  color: #54AAFF;
  text-decoration: underline;
  margin-right: 2rem;
}

.cookie-consent__links a:hover {
  color: #a1d0ff;
}

.cookie-consent__settings {
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.cookie-consent__settings[hidden] {
  display: none;
}

.cookie-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
  cursor: pointer;
  font-weight: normal;
}

/* style.css скрывает все чекбоксы (input[type=checkbox]{opacity:0}) и рисует
   кастомный бокс через соседний label. Здесь input вложен в label, поэтому
   возвращаем нативный вид точечно — иначе флажок не виден. */
.cookie-consent__option input[type="checkbox"] {
  margin-top: 0.4rem;
  flex: 0 0 auto;
  opacity: 1;
  width: 1.7rem;
  height: 1.7rem;
  accent-color: #54AAFF;
}

.cookie-consent__option strong {
  display: block;
  font-family: 'DINPro-Medium', Arial, sans-serif;
  color: #fff;
}

.cookie-consent__option small {
  display: block;
  color: #b0cbe6;
  font-size: 1.3rem;
  line-height: 1.4;
}

.cookie-consent__actions {
  flex: 0 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.cookie-consent__btn {
  padding: 1rem 2rem;
  font-family: 'DINPro-Medium', Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 30px;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.cookie-consent__btn[hidden] {
  display: none;
}

.cookie-consent__btn--primary {
  background-color: #FFD400;
  color: #002C58;
  border-color: #FFD400;
}

.cookie-consent__btn--primary:hover {
  background: #ffc700;
}

.cookie-consent__btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.cookie-consent__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 767px) {
  .cookie-consent {
    max-height: 85vh;
    overflow-y: auto;
  }

  .cookie-consent__panel {
    gap: 1.5rem;
  }

  .cookie-consent__actions {
    width: 100%;
  }

  .cookie-consent__btn {
    flex: 1 1 auto;
  }
}

/*=====  End of cookie consent  ======*/

/*=============================
=       consent checkbox      =
=============================*/
.pdn-consent {
  margin: 1.5rem 0;
}

.pdn-consent__label {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  font-size: 1.4rem;
  line-height: 1.45;
  font-weight: normal;
  cursor: pointer;
  margin: 0;
}

/* Пользователь обязан видеть флажок, который проставляет, — возвращаем
   нативный вид поверх input[type=checkbox]{opacity:0} из style.css. */
.pdn-consent__input[type="checkbox"] {
  flex: 0 0 auto;
  margin: 0.3rem 0 0;
  width: 1.8rem;
  height: 1.8rem;
  opacity: 1;
  accent-color: #54AAFF;
}

.pdn-consent__text a {
  text-decoration: underline;
}

/* Формы в тёмных секциях (cta, подвал, попап) */
.cta_section .pdn-consent__text,
.footer .pdn-consent__text {
  color: #d7e6f5;
}

.cta_section .pdn-consent__text a,
.footer .pdn-consent__text a {
  color: #FFD400;
}

.pdn-consent--error .pdn-consent__label {
  color: #ff6b6b;
}

.pdn-consent--error .pdn-consent__input {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

/*=====  End of consent checkbox  ======*/

/*=============================
=        legal pages          =
=============================*/
.legal-page {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #333;
}

.legal-page h1 {
  font-family: 'DINPro-Medium', Arial, sans-serif;
  font-size: 3.2rem;
  color: #002C58;
  margin-bottom: 1rem;
}

.legal-page__meta {
  font-size: 1.4rem;
  color: #6e6e6e;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.legal-page h2 {
  font-family: 'DINPro-Medium', Arial, sans-serif;
  font-size: 2.2rem;
  color: #002C58;
  margin: 3.5rem 0 1.5rem;
}

.legal-page h3 {
  font-family: 'DINPro-Medium', Arial, sans-serif;
  font-size: 1.8rem;
  color: #002C58;
  margin: 2.5rem 0 1rem;
}

.legal-page p {
  margin: 0 0 1.5rem;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 2rem;
  padding-left: 2.5rem;
}

.legal-page li {
  margin-bottom: 0.8rem;
  list-style: inherit;
}

.legal-page ul {
  list-style: disc;
}

.legal-page ol {
  list-style: decimal;
}

.legal-page a {
  color: #54AAFF;
  text-decoration: underline;
  word-break: break-word;
}

/* Открывает настройки cookie прямо из текста Политики (п. 14.5) */
.legal-page__cookie-link {
  background: none;
  border: 0;
  padding: 0;
  color: #54AAFF;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.legal-page__card {
  background: #F7FBFF;
  border: 1px solid #B0CBE6;
  border-radius: 1rem;
  padding: 2.5rem;
  margin: 0 0 3rem;
}

.legal-page__card p:last-child {
  margin-bottom: 0;
}

.legal-page__toc {
  background: #F7FBFF;
  border-left: 3px solid #54AAFF;
  padding: 2rem 2.5rem;
  margin: 0 0 3rem;
}

.legal-page__toc ol {
  margin-bottom: 0;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 2.5rem;
  font-size: 1.5rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid #B0CBE6;
  padding: 1.2rem;
  text-align: left;
  vertical-align: top;
}

.legal-page th {
  background: #F7FBFF;
  font-family: 'DINPro-Medium', Arial, sans-serif;
  color: #002C58;
}

.legal-page__table-wrap {
  overflow-x: auto;
  margin-bottom: 2.5rem;
}

.legal-page__table-wrap table {
  margin-bottom: 0;
}

/*=====  End of legal pages  ======*/

/*=============================
=      footer requisites      =
=============================*/
.footer_requisites {
  font-size: 1.4rem;
  line-height: 1.6;
  margin-top: 1.5rem;
  color: #b0cbe6;
}

.footer_requisites strong {
  display: block;
  color: #fff;
  font-family: 'DINPro-Medium', Arial, sans-serif;
  margin-bottom: 0.5rem;
}

.footer_legal {
  margin-top: 2rem;
}

.footer_legal li {
  line-height: 1.9;
}

.footer_legal a,
.footer_legal button {
  color: #fff;
  text-decoration: underline;
  font-size: 1.4rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: 'DINPro-Light', Arial, sans-serif;
  text-align: left;
}

.footer_legal a:hover,
.footer_legal button:hover {
  color: #54AAFF;
}

/*=====  End of footer requisites  ======*/
