/* ============================================
   cookie-consent.css
   Баннер согласия на использование cookie
   ============================================ */

.cookie-consent {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1100;
  
  display: none; /* ← ПО УМОЛЧАНИЮ СКРЫТ */
  
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 24px;
  
  width: auto;
  max-width: calc(100% - 40px);
  padding: 12px 24px;
  
  background-color: #FCFCFC;
  border: 2px solid #B50042;
  border-radius: 16px;
  box-shadow: 4px 4px 50px 0px rgba(38, 68, 92, 0.2);
}

/* Группа с текстом */
.cookie-consent__text-group {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

/* Основной текст */
.cookie-consent__text {
  font-family: 'OpenRunde-Regular', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.011em;
  color: #494C51;
  text-align: center;
  white-space: nowrap;
}

/* Ссылка-подчеркивание */
.cookie-consent__link {
  font-family: 'OpenRunde-Regular', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 150%;
  letter-spacing: -0.011em;
  color: #77797D;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.cookie-consent__link:hover {
  color: #494C51;
}

/* Кнопка "Согласен" */
.cookie-consent__button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  
  width: 213px;
  height: 44px;
  padding: 8px 16px;
  
  background-color: #B50042;
  border: none;
  border-radius: 16px;
  
  font-family: 'OpenRunde-Medium', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 150%;
  letter-spacing: -0.011em;
  color: #F4F4F4;
  
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cookie-consent__button:hover {
  background-color: #950037;
}

/* Состояние: показан */
.cookie-consent--visible {
  display: flex;
}

/* Состояние: скрыт (после принятия) */
.cookie-consent--hidden {
  display: none;
}


/* ===== АДАПТИВ: планшет (≤768px) ===== */
@media (max-width: 768px) {
  .cookie-consent {
    flex-direction: column;
    gap: 16px;
    padding: 16px 20px;
    bottom: 16px;
  }
  
  .cookie-consent__text-group {
    justify-content: center;
    text-align: center;
  }
  
  .cookie-consent__text {
    white-space: normal;
  }
  
  .cookie-consent__button {
    width: 100%;
    max-width: 280px;
  }
}

/* ===== АДАПТИВ: мобильный (≤480px) ===== */
@media (max-width: 480px) {
  .cookie-consent {
    padding: 12px 16px;
    gap: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
  }
  
  .cookie-consent__text {
    font-size: 13px;
  }
  
  .cookie-consent__link {
    font-size: 11px;
  }
  
  .cookie-consent__button {
    height: 40px;
    font-size: 14px;
    border-radius: 14px;
  }
}