[hidden] {
  display: none !important;
}

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

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(12, 12, 12, 0.98);
  color: #f7f7f7;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.58);
}

.cookie-banner-copy strong {
  display: block;
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.cookie-banner-copy p {
  max-width: 680px;
  margin: 0;
  color: #c3c3c3;
  font-size: 0.9rem;
  line-height: 1.45;
}

.cookie-banner-copy a,
.cookie-policy-links a {
  display: inline-block;
  margin-top: 8px;
  color: #ff9d12;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.cookie-banner-actions button,
.cookie-modal-actions button {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: #191919;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-banner-actions button:hover,
.cookie-banner-actions button:focus-visible,
.cookie-modal-actions button:hover,
.cookie-modal-actions button:focus-visible {
  border-color: #ff4b12;
  outline: 0;
  background: #232323;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: grid;
  place-items: center;
  padding: 18px;
}

.cookie-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
}

.cookie-modal-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: min(760px, calc(100svh - 36px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: #0d0d0d;
  color: #f7f7f7;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.64);
}

.cookie-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.cookie-modal-header span {
  color: #ff9d12;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cookie-modal-header h2 {
  margin: 6px 0 0;
  font-size: 1.65rem;
  line-height: 1.15;
}

.cookie-modal-close {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #171717;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.cookie-modal-intro {
  margin: 18px 0 8px;
  color: #bdbdbd;
  font-size: 0.92rem;
  line-height: 1.5;
}

.cookie-category {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-category strong,
.cookie-category p {
  display: block;
  margin: 0;
}

.cookie-category p {
  margin-top: 5px;
  color: #aaa;
  font-size: 0.84rem;
  line-height: 1.4;
}

.cookie-category label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #ddd;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.cookie-category input {
  width: 20px;
  height: 20px;
  accent-color: #ff4b12;
}

.cookie-modal-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
}

.cookie-policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 14px 0 0;
}

.legal-links,
.privacy-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
  justify-content: center;
}

.location-map {
  position: relative;
  width: 100%;
  min-height: 430px;
}

.location-map iframe {
  height: 100%;
}

.map-cookie-placeholder {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0d0d0d;
  color: #f7f7f7;
  text-align: center;
}

.map-cookie-placeholder p {
  max-width: 460px;
  margin: 0;
  color: #aaa;
  line-height: 1.5;
}

.map-cookie-placeholder .button {
  margin-top: 6px;
}

.legal-links {
  margin-top: 8px;
}

.legal-links a,
.legal-links button,
.privacy-footer a,
.privacy-footer button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #b8b8b8;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-footer {
  margin-top: 60px;
  padding: 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #080808;
}

.privacy-policy {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0 90px;
}

.privacy-policy h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.02;
}

.privacy-policy h2 {
  margin: 40px 0 12px;
  font-size: 1.35rem;
}

.privacy-policy p,
.privacy-policy li {
  color: #c1c1c1;
  line-height: 1.65;
}

.privacy-policy a {
  color: #ff9d12;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.privacy-policy .policy-date {
  margin: 14px 0 34px;
  color: #999;
}

.privacy-policy table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

.privacy-policy th,
.privacy-policy td {
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c1c1c1;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
}

.privacy-policy th {
  color: #fff;
}

@media (max-width: 760px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }

  .cookie-banner-actions {
    grid-template-columns: 1fr;
  }

  .cookie-banner-actions button {
    width: 100%;
    white-space: normal;
  }

  .cookie-category {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cookie-modal-actions {
    grid-template-columns: 1fr;
  }

  .privacy-policy {
    overflow-x: auto;
    padding-top: 44px;
  }
}
