.cookie-consent {
  position: fixed;
  inset: auto auto 18px 18px;
  width: min(440px, calc(100vw - 36px));
  z-index: 3000;
  background: #fff;
  border: 1px solid #e1e5ea;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 27, 37, 0.22);
  color: #2d3138;
  padding: 24px 26px 20px;
  display: none;
}

.cookie-consent.is-visible {
  display: block;
}

.cookie-consent__close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #6d7785;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.cookie-consent__close:hover {
  background: #f2f4f7;
  color: #1f2933;
}

.cookie-consent h2 {
  margin: 0 32px 12px 0;
  color: #124f2b;
  font: 700 20px/1.25 "Roboto", Arial, sans-serif;
  letter-spacing: 0;
}

.cookie-consent p {
  margin: 0;
  color: #343a43;
  font: 400 15px/1.55 "Roboto", Arial, sans-serif;
}

.cookie-consent a {
  color: #2f8f3f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-consent__actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  margin-top: 18px;
}

.cookie-consent__btn {
  min-height: 44px;
  border-radius: 0;
  border: 2px solid #2f8f3f;
  cursor: pointer;
  font: 700 15px/1 "Roboto", Arial, sans-serif;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.cookie-consent__btn:hover {
  transform: translateY(-1px);
}

.cookie-consent__btn--reject {
  background: #fff;
  color: #1f7a36;
}

.cookie-consent__btn--accept {
  background: #2f8f3f;
  color: #fff;
}

.cookie-preferences-link {
  border: 0;
  background: transparent;
  color: #bbb;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  padding: 2px 0;
  text-align: left;
}

.cookie-preferences-link:hover {
  color: #fff;
}

@media (max-width: 640px) {
  .cookie-consent {
    inset: auto 12px 12px 12px;
    width: auto;
    padding: 22px 20px 18px;
  }

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

.cookie-page {
  background: #f5f7f6;
  padding: calc(var(--h-header, 110px) + 60px) 20px 70px;
}

.cookie-page__container {
  max-width: 980px;
  margin: 0 auto;
}

.cookie-page__header,
.cookie-page__card {
  background: #fff;
  border: 1px solid #dde7df;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(18, 79, 43, 0.08);
}

.cookie-page__header {
  padding: 30px;
  border-left: 5px solid #2f8f3f;
  margin-bottom: 20px;
}

.cookie-page__header h1 {
  margin: 0 0 10px;
  color: #124f2b;
  font: 400 42px/1 "Bebas Neue", Arial, sans-serif;
  letter-spacing: 0.5px;
}

.cookie-page__header p {
  margin: 0;
  color: #52615a;
  font: 400 16px/1.6 "Roboto", Arial, sans-serif;
}

.cookie-page__card {
  padding: 26px 30px;
}

.cookie-option {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid #e6eee8;
}

.cookie-option:last-of-type {
  border-bottom: 0;
}

.cookie-option h2 {
  margin: 0 0 6px;
  color: #16251c;
  font: 700 20px/1.25 "Roboto", Arial, sans-serif;
}

.cookie-option p {
  margin: 0;
  color: #5f6f66;
  font: 400 15px/1.55 "Roboto", Arial, sans-serif;
}

.cookie-option__fixed {
  color: #1f7a36;
  font-weight: 800;
  white-space: nowrap;
}

.cookie-switch {
  position: relative;
  width: 62px;
  height: 34px;
  display: inline-block;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch span {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #c5d0c9;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.cookie-switch span::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 4px;
  top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.cookie-switch input:checked + span {
  background: #2f8f3f;
}

.cookie-switch input:checked + span::before {
  transform: translateX(28px);
}

.cookie-page__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cookie-page__btn {
  min-height: 46px;
  border-radius: 6px;
  border: 2px solid #2f8f3f;
  padding: 12px 20px;
  font: 800 15px/1 "Roboto", Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cookie-page__btn--primary {
  background: #2f8f3f;
  color: #fff;
}

.cookie-page__btn--secondary {
  background: #fff;
  color: #1f7a36;
}

.cookie-page__status {
  margin-top: 16px;
  color: #1f7a36;
  font-weight: 800;
}

@media (max-width: 640px) {
  .cookie-page {
    padding: calc(var(--h-header, 90px) + 32px) 14px 45px;
  }

  .cookie-page__header,
  .cookie-page__card {
    padding: 22px;
  }

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