/* =========================
   FOOTER (global)
   ========================= */

.site-footer {
  background-color: var(--color-dark);
  color: rgba(255, 255, 255, 0.84);
  padding: 32px 0 18px;
  font-size: 13px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 20px;
}

.footer-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-white);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li + li {
  margin-top: 4px;
}

.footer-links a {
  opacity: 0.84;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  opacity: 0.8;
}

/* =========================
   Cookie banner (global)
   ========================= */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: var(--color-white);
  padding: 14px 16px;
  z-index: 10000;
  font-size: 14px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  display: none;
}

.cookie-banner.show { display: block; }

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-link {
  color: var(--color-accent);
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

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

.btn-decline,
.btn-settings {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255,255,255,0.5);
}

/* =========================
   Responsive (footer + cookie)
   ========================= */

@media (max-width: 960px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cookie-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}

/* =========================
   Cookie Settings Modal (global)
   ========================= */

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(28, 37, 44, 0.95);
  backdrop-filter: blur(8px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal__panel {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.cookie-modal__head {
  padding: 24px 24px 0;
  border-bottom: 1px solid #eef1f6;
  background: linear-gradient(135deg, #0A1F44, #1C252C);
  color: #fff;
  border-radius: 16px 16px 0 0;
}

.cookie-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.cookie-modal__subtitle {
  margin: 4px 0 0;
  opacity: 0.9;
  font-size: 14px;
}

.cookie-modal__body {
  padding: 24px;
}

.cookie-modal__block {
  margin-bottom: 20px;
}

.cookie-modal__label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 12px;
}

.cookie-modal__hint {
  font-size: 13px;
  color: #6B7280;
  margin: 0 32px 0 0;
}

.cookie-modal__label + .cookie-modal__hint {
  margin-top: -6px;
  margin-bottom: 0;
}

.cookie-modal__label--spaced {
  margin-top: 16px;
}

.cookie-modal__checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-accent);
}

.cookie-modal__footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eef1f6;
}

.cookie-modal__fineprint {
  font-size: 12px;
  color: #6B7280;
  margin: 0 0 16px;
}

.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-modal__btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  flex: 1;
  max-width: 140px;
}

.cookie-modal__btn--save {
  border: 1px solid #D1D5DB;
  background: #fff;
  color: #374151;
}

.cookie-modal__btn--reject {
  background: #EF4444;
  color: #fff;
  border: none;
}

.cookie-modal__btn--accept {
  background: var(--color-accent);
  color: #fff;
  border: none;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .cookie-modal__btn {
    max-width: none;
  }
}
