.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end;
  background: rgba(16, 33, 61, 0.52);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cookie-consent.is-visible {
  opacity: 1;
}

.cookie-consent__panel {
  width: 100%;
  padding: 24px max(5%, calc((100% - 1500px) / 2));
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  border-top: 1px solid rgba(28, 42, 74, 0.16);
  background: #fff;
  box-shadow: 0 -12px 36px rgba(16, 33, 61, 0.18);
  color: #555;
  transform: translateY(18px);
  transition: transform 0.2s ease;
}

.cookie-consent.is-visible .cookie-consent__panel {
  transform: translateY(0);
}

.cookie-consent__title {
  margin: 0 0 10px;
  color: #1c2a4a;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
}

.cookie-consent__message {
  max-width: 980px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.cookie-consent__link {
  color: #102f70;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #c4c400;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.cookie-consent__link:hover,
.cookie-consent__link:focus-visible {
  color: #717100;
}

.cookie-consent__accept {
  min-height: 54px;
  padding: 14px 25px;
  border: 2px solid #102f70;
  border-radius: 4px;
  background: #102f70;
  color: #fff;
  cursor: pointer;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__accept:hover,
.cookie-consent__accept:focus-visible {
  border-color: #c4c400;
  background: #1c2a4a;
  transform: translateY(-1px);
}

.cookie-consent__accept:focus-visible,
.cookie-consent__link:focus-visible {
  outline: 3px solid #c4c400;
  outline-offset: 3px;
}

body.cookie-consent-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .cookie-consent__panel {
    padding: 24px 6%;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cookie-consent__accept {
    width: 100%;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-consent,
  .cookie-consent__panel,
  .cookie-consent__accept {
    transition: none;
  }
}
