/* === Cookie banner — glass blur === */
#cookie-bar {
  display: flex;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(20, 20, 22, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  color: #f5f5f7;
  padding: 18px 24px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  z-index: 9999;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  box-sizing: border-box;
}
#cookie-bar .consent-text {
  flex: 1 1 320px;
  max-width: 680px;
  letter-spacing: 0.01em;
  color: #e8e8ea;
  margin: 0;
}
#cookie-bar a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 3px;
}
#cookie-bar .cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
#cookie-bar button {
  cursor: pointer;
  font: 500 14px -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 10px 24px;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}
#cookie-bar .reject-btn {
  background: transparent;
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
#cookie-bar .reject-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}
#cookie-bar .accept-btn {
  background: #fff;
  color: #0a0a0a;
  border: none;
  font-weight: 600;
}
#cookie-bar .accept-btn:hover { background: #e8e8ea; }
#cookie-bar button:active { transform: scale(0.97); }

/* Padding для main чтобы контент не уходил под баннер */
body.has-cookie-bar { padding-bottom: 160px; }

/* === Mobile (≤640px) === */
@media (max-width: 640px) {
  #cookie-bar {
    left: 10px;
    right: 10px;
    bottom: 10px;
    padding: 13px 16px;
    gap: 10px;
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
  }
  #cookie-bar .consent-text {
    flex: 1 1 100%;
    text-align: center;
    font-size: 12.5px;
    line-height: 1.4;
    max-width: 100%;
  }
  #cookie-bar .cookie-actions {
    display: flex;
    width: 100%;
    gap: 8px;
  }
  #cookie-bar button {
    flex: 1 1 0;
    padding: 10px 14px;
    font-size: 13.5px;
  }
  body.has-cookie-bar { padding-bottom: 190px; }
}

/* === Footer === */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 16px;
  text-align: center;
  font: 13px/1.7 -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  color: #888;
  margin-top: 60px;
  background: #0a0a0a;
  letter-spacing: 0.02em;
}
.site-footer p { margin: 6px 0; }
.site-footer .links { margin: 10px 0; }
.site-footer .links a {
  color: #aaa;
  margin: 0 12px;
  text-decoration: none;
  transition: color 0.15s;
  display: inline-block;
  padding: 4px 0;
}
.site-footer .links a:hover { color: #fff; }
@media (max-width: 640px) {
  .site-footer { padding: 24px 12px; margin-top: 40px; }
  .site-footer .links a { margin: 0 6px; font-size: 12px; }
}
