html.cookie-locked { overflow: hidden; }
html.cookie-locked .site-header,
html.cookie-locked main,
html.cookie-locked .site-footer,
html.cookie-locked .skip {
  filter: blur(11px);
  pointer-events: none;
  user-select: none;
}
html.cookie-locked.cookie-legal .site-header,
html.cookie-locked.cookie-legal main,
html.cookie-locked.cookie-legal .site-footer,
html.cookie-locked.cookie-legal .skip {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}
.cookie-gate { display: none; }
html.cookie-locked .cookie-gate { display: block; }
.cookie-gate-fog {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(12, 14, 18, 0.55);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
html.cookie-legal .cookie-gate-fog { display: none; }

html.cookie-locked.cookie-legal { overflow: visible; }
html.cookie-legal .cookie-card { display: none; }
.cookie-bar { display: none; }
html.cookie-locked.cookie-legal .cookie-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 12px 12px 18px;
  background: #fff;
  color: #14161a;
  border: 1px solid #e5e7ec;
  border-radius: 14px;
  box-shadow: 0 18px 48px -18px rgba(10, 12, 18, 0.35);
}
.cookie-bar p {
  margin: 0;
  flex: 1 1 220px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #59606c;
}
.cookie-bar .cookie-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.cookie-bar .btn { flex: none; height: 38px; padding: 0 16px; border-radius: 10px; font-size: 0.88rem; }
html.cookie-locked .v2-sticky { display: none; }
html.cookie-locked.cookie-legal main { padding-bottom: 110px; }

.cookie-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 90;
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px 22px 20px;
  background: #fff;
  color: #14161a;
  border: 1px solid #e5e7ec;
  border-radius: 16px;
  box-shadow: 0 24px 64px -20px rgba(10, 12, 18, 0.4);
  text-align: center;
}
.cookie-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 12px;
}
.cookie-head svg { width: 28px; height: 18px; flex: none; }
.cookie-card h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  font-weight: 650;
  line-height: 1.2;
}
.cookie-card > p.cookie-text {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #59606c;
}
.cookie-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 0;
  margin: 0 0 14px;
  font-size: 0.78rem;
}
.cookie-legal-links a {
  color: #4258e0;
  text-decoration: none;
  font-weight: 550;
}
.cookie-legal-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cookie-legal-links span { color: #c5c9d2; padding: 0 8px; font-weight: 400; }

.cookie-actions {
  display: grid;
  gap: 8px;
}
.cookie-actions .btn,
.cookie-prefs-actions .btn {
  width: 100%;
  justify-content: center;
  height: 40px;
  border-radius: 10px;
  font-size: 0.9rem;
}
.cookie-actions .btn-ghost,
.cookie-prefs-actions .btn-ghost {
  background: #f4f5f7;
  border: 1px solid #e5e7ec;
  color: #14161a;
}
.cookie-actions .btn-ghost:hover,
.cookie-prefs-actions .btn-ghost:hover {
  background: #eceef2;
}

.cookie-prefs { display: none; text-align: left; margin: 0 0 14px; }
.cookie-prefs.is-open { display: block; }
.cookie-prefs-list { display: grid; gap: 10px; margin: 0 0 12px; }
.cookie-pref {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 12px;
  border: 1px solid #e5e7ec;
  border-radius: 12px;
  background: #fafbfc;
}
.cookie-pref b {
  font-size: 0.86rem;
  font-weight: 600;
}
.cookie-pref span {
  grid-column: 1 / 2;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #59606c;
}
.cookie-pref input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4258e0;
}
.cookie-pref input[type="checkbox"]:disabled {
  opacity: 0.7;
}
.cookie-prefs-actions { display: grid; gap: 8px; }
.cookie-main.is-hidden { display: none; }

@media (max-width: 640px) {
  .cookie-card { width: min(440px, calc(100vw - 24px)); }
  html.cookie-locked.cookie-legal .cookie-bar {
    flex-direction: column; align-items: stretch; gap: 10px;
    left: 12px; right: 12px; bottom: 12px;
  }
  .cookie-bar .cookie-bar-actions { margin-left: 0; }
  .cookie-bar .btn { width: 100%; justify-content: center; }
  html.cookie-locked.cookie-legal main { padding-bottom: 180px; }
}

