@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  background: hsl(42 35% 96%);
  color: hsl(30 10% 22%);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.15rem;
  color: hsl(145 18% 36%);
}

.faq-item[open] summary::after {
  content: '-';
}

details.group > summary::-webkit-details-marker {
  display: none;
}

.cookie-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 70;
}

.cookie-consent--hidden {
  display: none;
}

.cookie-consent__inner {
  max-width: 980px;
  margin: 0 auto;
  background: hsl(42 30% 99%);
  border: 1px solid hsl(35 18% 84%);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px hsl(30 15% 18% / 0.18);
}

.cookie-consent__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.cookie-consent__text {
  margin: 0;
  color: hsl(30 8% 40%);
  line-height: 1.55;
}

.cookie-consent__link {
  color: hsl(145 18% 36%);
  text-decoration: underline;
}

.cookie-consent__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
}

.cookie-btn--primary {
  background: hsl(145 18% 36%);
  color: #fff;
}

.cookie-btn--primary:hover {
  background: hsl(145 18% 30%);
}

.cookie-btn--outline {
  background: transparent;
  color: hsl(30 10% 28%);
  border-color: hsl(35 18% 76%);
}

.cookie-btn--outline:hover {
  border-color: hsl(145 18% 36%);
  color: hsl(145 18% 36%);
}

.cookie-btn--ghost {
  background: hsl(42 35% 94%);
  color: hsl(30 10% 28%);
}

.cookie-btn--ghost:hover {
  background: hsl(42 25% 91%);
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.cookie-modal--hidden {
  display: none;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: hsl(30 10% 8% / 0.48);
}

.cookie-modal__panel {
  position: relative;
  max-width: 640px;
  margin: 8vh auto 0;
  background: hsl(42 30% 99%);
  border-radius: 16px;
  border: 1px solid hsl(35 18% 84%);
  padding: 22px;
  box-shadow: 0 24px 56px hsl(30 15% 14% / 0.35);
}

.cookie-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: hsl(30 10% 38%);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cookie-modal__title {
  margin: 0 0 8px;
  font-size: 1.6rem;
}

.cookie-modal__description {
  margin: 0 0 18px;
  color: hsl(30 8% 40%);
}

.cookie-modal__group {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid hsl(35 18% 88%);
}

.cookie-modal__group-title {
  margin: 0 0 4px;
  font-weight: 700;
  color: hsl(30 10% 22%);
}

.cookie-modal__group-text {
  margin: 0;
  color: hsl(30 8% 44%);
  font-size: 0.92rem;
}

.cookie-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cookie-switch input {
  display: none;
}

.cookie-switch__slider {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  position: relative;
  background: hsl(35 14% 82%);
}

.cookie-switch__slider::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px hsl(30 10% 16% / 0.25);
}

.cookie-switch input:checked + .cookie-switch__slider {
  background: hsl(145 18% 36%);
}

.cookie-switch input:checked + .cookie-switch__slider::after {
  transform: translateX(20px);
}

.cookie-switch__label {
  font-size: 0.78rem;
  color: hsl(30 8% 42%);
}

.cookie-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  border-top: 1px solid hsl(35 18% 88%);
  padding-top: 16px;
}

@media (max-width: 720px) {
  .cookie-consent {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-consent__inner {
    padding: 16px;
  }

  .cookie-modal__panel {
    margin: 0;
    max-width: none;
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
  }

  .cookie-modal__group {
    flex-direction: column;
    align-items: flex-start;
  }
}
