:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --secondary: #f3f4f6;
  --dark: #1f2937;
  --light: #f9fafb;
  --success: #10b981;
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* Базовые стили баннера */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  padding: 16px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: var(--transition);
}

.cookie-consent.active {
  transform: translateY(0);
}

/* Адаптация для десктопов */
@media (min-width: 768px) {
  .cookie-consent {
    left: 50%;
    right: auto;
    bottom: 20px;
    width: 90%;
    max-width: 600px;
    border-radius: var(--border-radius);
    transform: translateX(-50%) translateY(20px);
  }
  
  .cookie-consent.active {
    transform: translateX(-50%) translateY(0);
  }
}

/* Общие стили содержимого */
.cookie-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  gap: 10px;
}

.cookie-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-title {
  font-weight: 600;
  color: var(--dark);
  font-size: clamp(16px, 4vw, 18px);
}

.cookie-text {
  color: #6b7280;
  font-size: clamp(14px, 3.5vw, 15px);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Адаптивные кнопки */
.cookie-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.cookie-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  font-size: clamp(14px, 3.5vw, 15px);
  text-align: center;
  white-space: nowrap;
}

.cookie-btn-accept {
  background: var(--primary);
  color: white;
}

.cookie-btn-accept:hover {
  background: var(--primary-hover);
}

.cookie-btn-settings {
  background: var(--secondary);
  color: var(--dark);
}

.cookie-btn-settings:hover {
  background: #e5e7eb;
}

.cookie-btn-reject {
  background: white;
  color: var(--dark);
  border: 1px solid #d1d5db;
}

.cookie-btn-reject:hover {
  background: #f3f4f6;
}
.cookie-settings {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    padding: 25px;
    z-index: 1001;
}

.cookie-settings.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -45%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

.settings-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.cookie-option:last-child {
    border-bottom: none;
}

.option-info h4 {
    font-size: 16px;
    color: var(--dark);
    margin-bottom: 4px;
}

.option-info p {
    font-size: 14px;
    color: #6b7280;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: white;
    transition: .3s;
    border-radius: 50%;
}

input:checked + .slider {
    background: var(--success);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-save {
    margin-top: 20px;
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.settings-save:hover {
    background: var(--primary-hover);
}

.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
}

.cookie-overlay.active {
    display: block;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Особые адаптации для очень маленьких экранов */
@media (max-width: 360px) {
  .cookie-buttons {
    grid-template-columns: 1fr;
  }
  
  .cookie-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}