.cookie-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  background: #2f3237;
  color: #ffffff;
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.22);
  text-align: left;
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: none;
  width: 50%;
  max-width: 50%;
  min-width: 0;
}

.cookie-banner__text strong {
  font-size: 16px;
  font-weight: 800;
}

.cookie-banner__text span {
  font-size: 14px;
  line-height: 1.45;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  flex: none;
  width: 50%;
  max-width: 50%;
  min-width: 0;
}

.cookie-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.cookie-btn:hover {
  transform: scale(1.04);
}

.cookie-btn--primary {
  background: #7d8141;
  color: #ffffff;
}

.cookie-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.cookie-banner__link {
  flex-basis: 100%;
  color: #ffffff;
  text-decoration: underline;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  white-space: normal;
}

.cookie-panel-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5);
}

.cookie-panel {
  width: min(100%, 560px);
  max-height: 90vh;
  overflow: auto;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  color: #2f3237;
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.28);
}

.cookie-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cookie-panel__head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.cookie-panel__close {
  border: 0;
  background: transparent;
  color: #2f3237;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.cookie-panel__intro {
  margin: 14px 0 20px;
  font-size: 15px;
  line-height: 1.55;
}

.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid rgba(47, 50, 55, 0.12);
}

.cookie-category__info {
  min-width: 0;
}

.cookie-category__info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.15;
}

.cookie-category__info p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #5c5f66;
}

.cookie-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.cookie-toggle input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cookie-toggle__track {
  position: relative;
  width: 54px;
  height: 30px;
  border-radius: 999px;
  background: #ccc;
  transition: background-color 0.2s ease;
}

.cookie-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.cookie-toggle input:checked + .cookie-toggle__track {
  background: #7d8141;
}

.cookie-toggle input:checked + .cookie-toggle__track .cookie-toggle__thumb {
  transform: translateX(24px);
}

.cookie-toggle--disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.cookie-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}

.cookie-policy-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 20px 84px;
}

.cookie-policy-hero {
  margin-bottom: 30px;
}

.cookie-policy-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
}

.cookie-policy-hero p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  line-height: 1.55;
}

.cookie-policy-section {
  margin-top: 26px;
}

.cookie-policy-section h2 {
  margin: 0 0 14px;
  color: #7d8141;
  font-size: 26px;
  line-height: 1.15;
}

.cookie-policy-section p,
.cookie-policy-list {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
}

.cookie-policy-list {
  padding-left: 20px;
}

.cookie-policy-list li + li {
  margin-top: 10px;
}

.cookie-policy-table-wrap {
  overflow-x: auto;
}

.cookie-policy-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.cookie-policy-table th,
.cookie-policy-table td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(47, 50, 55, 0.12);
  text-align: left;
  vertical-align: top;
}

.cookie-policy-table th {
  background: rgba(125, 129, 65, 0.08);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.cookie-policy-table td {
  font-size: 15px;
}

.cookie-policy-cta {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  background: #7d8141;
  color: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cookie-policy-cta:hover {
  transform: scale(1.04);
}

@media (min-width: 769px) {
  .cookie-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr);
    grid-template-areas: "text actions";
    align-items: center;
    gap: 24px;
  }

  .cookie-banner__text {
    grid-area: text;
    width: auto;
    max-width: none;
  }

  .cookie-banner__actions {
    grid-area: actions;
    width: auto;
    max-width: none;
    justify-self: end;
  }

  .cookie-banner__link {
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .cookie-banner__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
  }

  .cookie-btn,
  .cookie-banner__link {
    width: 100%;
    text-align: center;
  }

  .cookie-banner__text {
    width: 100%;
    max-width: 100%;
  }

  .cookie-panel-overlay {
    padding: 0;
    align-items: stretch;
  }

  .cookie-panel {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .cookie-category {
    align-items: flex-start;
  }

  .cookie-panel__actions {
    flex-direction: column;
  }

  .cookie-policy-page {
    padding-inline: 16px;
  }

  .cookie-policy-hero h1 {
    font-size: 34px;
  }

  .cookie-policy-section h2 {
    font-size: 22px;
  }
}
