/* Cookie consent (152-ФЗ). Цвета темы: #DAFB30 / #1C1F26. */
.cookie-consent {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 9999;
  width: min(540px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  background: #24272F;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-family: "Proxima Nova", Arial, sans-serif;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.cookie-consent.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* Согласие уже дано: плашка скрыта до первой отрисовки, без мигания. */
.cookie-decided .cookie-consent {
  display: none !important;
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.cookie-consent__text {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.cookie-consent__text a {
  color: #DAFB30;
  text-decoration: underline;
}

.cookie-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cookie-consent__btn {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.1;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}

.cookie-consent__btn--accept {
  background: #DAFB30;
  color: #1E1E1E;
}

.cookie-consent__btn--accept:hover {
  background: #c9e82b;
}

.cookie-consent__btn--decline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
}

.cookie-consent__btn--decline:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Кнопка «Настройки cookie» в футере. */
.cookie-settings {
  display: inline-block;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
}

.cookie-settings:hover {
  color: #DAFB30;
}

@media (max-width: 768px) {
  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    padding: 20px;
  }

  .cookie-consent__actions {
    flex-direction: column;
  }

  .cookie-consent__btn {
    width: 100%;
  }
}

/* Обязательные чекбоксы согласия в формах CF7 */
.consent-check {
  display: block;
  margin-top: 10px;
}

.consent-check .wpcf7-list-item {
  display: block;
  margin: 0;
}

.consent-check label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  line-height: 1.4;
  color: inherit;
  cursor: pointer;
}

.consent-check input[type="checkbox"] {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #DAFB30;
  border-radius: 3px;
  background: transparent;
  cursor: pointer;
}

.consent-check input[type="checkbox"]:checked {
  background: #DAFB30 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1E1E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/75% no-repeat;
}

.consent-check a {
  color: #DAFB30;
  text-decoration: underline;
}

/* Ссылки документов и настроек cookie в футере */
.footer-docs {
  position: absolute;
  left: 0;
  bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-docs__link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-family: inherit;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.3s;
}

.footer-docs__link:hover {
  color: #DAFB30;
}

@media (max-width: 1024px) {
  .footer-docs {
    position: static;
    margin-top: 20px;
  }
}

/* Мобильная вёрстка: подпись «SEO-продвижение» всегда в потоке, чтобы не наезжать на ссылки документов */
@media (max-width: 1024px) {
  .footer-left .dev {
    position: static !important;
    margin-top: 8px;
  }
}

/* Сообщение «отметьте согласие» — в потоке под чекбоксами, а не над формой */
.checkbox-not-valid {
  position: static;
  transform: none;
  margin: 8px 0 0;
  color: #ff5a4e;
  font-size: 13px;
  line-height: 1.4;
}