.site-footer {
  margin-top: 24px;
  padding: 56px 0 0;
  background: #f6f4ef;
  color: var(--text);
  border-top: 1px solid rgba(203, 213, 225, 0.55);
}

.site-footer .container {
  width: min(1380px, calc(100% - 40px));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 0.95fr 1fr;
  gap: 28px;
  padding-bottom: 34px;
}

.footer-brand h3,
.footer-col h4 {
  color: var(--text);
}

.footer-col h4 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.footer-brand-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-brand h3 {
  margin: 0;
  font-size: 1.35rem;
}

.footer-eyebrow {
  margin: 4px 0 0;
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-brand p,
.footer-small {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

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

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

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--primary);
}

.footer-small {
  margin-top: 0;
}

.footer-col-icon,
.footer-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1;
  flex-shrink: 0;
}

.footer-col-icon svg,
.footer-link-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--primary-dark);
  font-weight: 800;
  margin-top: 8px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  color: #ffffff;
}

.footer-btn:hover,
.footer-btn:focus {
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px 0 24px;
}

.footer-bottom p {
  margin: 0;
  color: #64748b;
}

.site-support-widget {
  position: fixed;
  right: 10px;
  bottom: 24px;
  z-index: 40;
  width: auto;
}

.site-support-widget__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-left: auto;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
  cursor: pointer;
  list-style: none;
}

.site-support-widget__toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  flex: 0 0 28px;
}

.site-support-widget__toggle-icon img,
.site-support-widget__toggle-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-support-widget__toggle-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-support-widget[open] .site-support-widget__toggle {
  margin-bottom: 12px;
}

.site-support-widget__toggle::-webkit-details-marker {
  display: none;
}

.site-support-widget__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 14px;
  padding: 20px;
  width: min(320px, calc(100vw - 24px));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.2);
  backdrop-filter: blur(18px);
}

.site-support-widget__eyebrow {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-support-widget__panel h3,
.site-support-widget__panel p {
  margin: 0;
}

.site-support-widget__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-support-widget__primary,
.site-support-widget__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.site-support-widget__primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
}

.site-support-widget__secondary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--text);
}

.site-consent-launcher {
  position: fixed;
  left: 10px;
  bottom: 24px;
  z-index: 49;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  transform: none;
}

body[data-consent-preferences="granted"][data-consent-analytics="granted"][data-consent-support="granted"] .site-consent-launcher {
  display: none !important;
}

.site-consent-launcher__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: currentColor;
  flex: 0 0 24px;
}

.site-consent-launcher__icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.site-consent {
  position: fixed;
  right: 12px;
  bottom: 88px;
  z-index: 50;
  pointer-events: none;
}

.site-consent__shell {
  width: min(420px, calc(100vw - 24px));
  margin-left: auto;
  display: grid;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.26);
  pointer-events: auto;
}

.site-consent__copy {
  display: grid;
  gap: 6px;
}

.site-consent__eyebrow {
  color: rgba(191, 219, 254, 0.95);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-consent__copy h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.02rem;
}

.site-consent__copy p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.55;
}

.site-consent__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
  flex: 0 0 34px;
}

.site-consent__icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.site-consent__options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.site-consent__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.site-consent__option--locked {
  background: rgba(37, 99, 235, 0.14);
}

.site-consent__option-copy {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  column-gap: 10px;
  gap: 4px;
  flex: 1 1 auto;
}

.site-consent__option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.site-consent__option-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.site-consent__option-copy strong,
.site-consent__badge {
  font-size: 0.88rem;
  font-weight: 700;
}

.site-consent__option-copy small {
  grid-column: 2;
  font-size: 0.74rem;
  color: rgba(226, 232, 240, 0.8);
  line-height: 1.45;
}

.site-consent__option input {
  width: 20px;
  height: 20px;
  accent-color: #60a5fa;
  flex: 0 0 20px;
}

.site-consent__badge {
  color: #bfdbfe;
  white-space: nowrap;
}

.site-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-consent__button {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}

.site-consent__button--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.site-consent__button--soft {
  background: rgba(96, 165, 250, 0.16);
  color: #dbeafe;
}

.site-consent__button--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: #fff;
}

.site-consent__button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.site-consent__button-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-consent__shell {
    width: min(420px, calc(100vw - 24px));
  }
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-top: 42px;
  }

  .site-footer .container {
    width: min(1380px, calc(100% - 28px));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding-bottom: 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-col h4 {
    font-size: 0.98rem;
  }

  .footer-links a,
  .footer-brand p,
  .footer-small {
    font-size: 0.92rem;
  }

  .footer-btn {
    width: 100%;
  }

  .site-support-widget {
    right: 8px;
    bottom: 16px;
  }

  .site-support-widget__toggle,
  .site-support-widget__primary,
  .site-support-widget__secondary {
    width: 100%;
  }

  .site-support-widget__panel {
    width: min(320px, calc(100vw - 20px));
    right: 0;
    padding: 18px;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    border-radius: 20px;
  }

  .site-consent {
    right: 8px;
    bottom: 12px;
  }

  .site-consent-launcher {
    left: 8px;
    bottom: 16px;
    transform: none;
    width: 48px;
    height: 48px;
  }

  .site-consent__shell {
    width: calc(100vw - 24px);
    padding: 16px;
    border-radius: 22px;
    max-height: min(78vh, 560px);
    overflow-y: auto;
  }

  .site-consent__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .footer-col h4 {
    font-size: 0.92rem;
  }

  .footer-links a,
  .footer-brand p,
  .footer-small {
    font-size: 0.88rem;
  }

  .footer-col-icon,
  .footer-link-icon,
  .footer-col-icon svg,
  .footer-link-icon svg {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
  }

  .site-support-widget {
    right: 6px;
    bottom: 14px;
  }

  .site-support-widget__toggle {
    min-height: 46px;
    padding: 0 16px;
    gap: 8px;
  }

  .site-support-widget__toggle span:last-child {
    font-size: 0.92rem;
  }

  .site-support-widget__panel {
    width: calc(100vw - 16px);
    right: -2px;
    bottom: calc(100% + 10px);
    padding: 16px;
    max-height: min(68vh, 400px);
  }

  .site-consent {
    right: 6px;
    left: 6px;
    bottom: 10px;
  }

  .site-consent__shell {
    width: 100%;
    margin-left: 0;
    padding: 14px;
    border-radius: 20px;
    max-height: min(72vh, 520px);
  }
}
