﻿:root {
  --container: 1280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Philosopher", serif;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

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

.cookie-consent {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cookie-consent.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cookie-consent__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 24, 0.62);
  backdrop-filter: blur(2px);
}

.cookie-consent__dialog {
  position: relative;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(95, 53, 121, 0.22);
  box-shadow: 0 26px 56px rgba(19, 8, 30, 0.35);
  padding: 24px;
}

.cookie-consent__head h2 {
  margin: 0 0 10px;
  font-family: "Philosopher", serif;
  font-size: 36px;
  line-height: 1.05;
  color: #352147;
}

.cookie-consent__head p {
  margin: 0;
  font-family: "Philosopher", serif;
  color: #463a51;
  line-height: 1.45;
  font-size: 15px;
}

.cookie-consent__panel {
  margin-top: 16px;
  border: 1px solid #e6dded;
  border-radius: 14px;
  overflow: hidden;
}

.cookie-consent__panel-toggle {
  width: 100%;
  border: 0;
  background: #f4eff8;
  font-family: "Philosopher", serif;
  font-size: 14px;
  font-weight: 600;
  color: #362246;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.cookie-consent__chevron {
  width: 10px;
  height: 10px;
  border-left: 2px solid #5f3579;
  border-bottom: 2px solid #5f3579;
  transform: rotate(-45deg);
  transition: transform 0.25s ease;
}

.cookie-consent__panel.is-expanded .cookie-consent__chevron {
  transform: rotate(135deg);
}

.cookie-consent__rows {
  display: none;
}

.cookie-consent__panel.is-expanded .cookie-consent__rows {
  display: block;
}

.cookie-consent__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid #eee5f5;
}

.cookie-consent__row strong {
  display: block;
  margin: 0 0 4px;
  color: #2d1d3b;
  font-family: "Philosopher", serif;
  font-size: 15px;
}

.cookie-consent__row p {
  margin: 0;
  color: #5a5161;
  font-family: "Philosopher", serif;
  font-size: 13px;
  line-height: 1.35;
}

.cookie-consent__row input[type="checkbox"] {
  appearance: none;
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: #d4ccd9;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cookie-consent__row input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease;
}

.cookie-consent__row input[type="checkbox"]:checked {
  background: #5f3579;
}

.cookie-consent__row input[type="checkbox"]:checked::before {
  transform: translateX(20px);
}

.cookie-consent__always {
  font-family: "Philosopher", serif;
  font-size: 13px;
  color: #5f3579;
  font-weight: 600;
  background: #efe7f5;
  padding: 6px 10px;
  border-radius: 999px;
}

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

.cookie-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 16px;
  min-height: 48px;
  cursor: pointer;
  font-family: "Philosopher", serif;
  font-size: 14px;
  font-weight: 700;
}

.cookie-btn--ghost {
  background: #f4f0f8;
  color: #321f42;
}

.cookie-btn--light {
  background: #e8e1ef;
  color: #2f1d3e;
}

.cookie-btn--primary {
  background: linear-gradient(135deg, #6a2f8f 0%, #3d2352 100%);
  color: #ffffff;
}

@media (max-width: 720px) {
  .cookie-consent__dialog {
    padding: 18px;
    border-radius: 16px;
  }

  .cookie-consent__head h2 {
    font-size: 29px;
  }

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

  .cookie-btn {
    width: 100%;
  }
}

