/* === БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ СТРАНИЦ === */

/* Сброс коробочной модели */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Высота на всю страницу */
html, body {
  height: 100%;
}

/* Фон, шрифт, прижатый подвал */
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  color: #eaf6ff;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 30%,
      rgba(0, 0, 0, 0.7) 100%
    ),
    url("../img/Dohyo13.jpg") center top / cover no-repeat fixed;

  display: flex;
  flex-direction: column;
}

/* main растягивается, чтобы подвал был внизу */
main {
  flex: 1;
}

/* Общий контейнер */
.container {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding-inline: 16px;
}

/* Заголовки */
h1, h2, h3, h4, h5 {
  color: #7ff0ff;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.6);
  margin-top: 0;
}

/* Параграфы */
p {
  margin: 0 0 1em;
}

/* Ссылки */
a {
  color: #7ff0ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: #b8f7ff;
}

/* Изображения */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Кнопки */
button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

/* Адаптивный базовый текст */
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
}


   
        
        /* CSS-переменные для единой стилистики с политикой */
        :root {
            --primary-dark: #0b2b3b;
            --primary-accent: #2c9b86;
            --primary-light: #eef3f7;
            --text-dark: #1a2c3e;
            --text-muted: #4a6272;
            --bg-light: #f2f5f9;
            --white: #ffffff;
            --shadow-sm: 0 20px 35px -12px rgba(0, 0, 0, 0.1);
            --border-radius: 24px;
        }


        /* Демонстрационный контент страницы */
        .demo-content {
            max-width: 1000px;
            margin: 0 auto;
            background: var(--white);
            border-radius: var(--border-radius);
            box-shadow: var(--shadow-sm);
            overflow: hidden;
            width: 100%;
            transition: filter 0.3s;
        }

        .demo-header {
            background: linear-gradient(105deg, var(--primary-dark) 0%, #123d4e 100%);
            padding: 2rem 2rem;
            color: white;
        }

        .demo-header h1 {
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        .demo-header p {
            opacity: 0.85;
            font-size: 0.95rem;
        }

        .demo-main {
            padding: 2rem;
        }

        .demo-card {
            background: var(--primary-light);
            border-radius: 20px;
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-left: 5px solid var(--primary-accent);
        }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--primary-accent);
            color: var(--primary-accent);
            padding: 0.5rem 1.2rem;
            border-radius: 40px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn-outline:hover {
            background: var(--primary-accent);
            color: white;
        }

        /* ---------- COOKIE BANNER (виджет согласия) ---------- */
        .cookie-consent {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--white);
            box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
            z-index: 1000;
            transform: translateY(0);
            transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
            border-top: 3px solid var(--primary-accent);
        }

        .cookie-consent.hidden {
            transform: translateY(100%);
            display: none; /* полное скрытие после согласия/отказа */
        }

        .cookie-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 1.2rem 2rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 1.2rem;
        }

        .cookie-text {
            flex: 3;
            font-size: 0.95rem;
            color: var(--text-dark);
        }

        .cookie-text p {
            margin-bottom: 0.3rem;
        }

        .cookie-text a {
            color: var(--primary-accent);
            text-decoration: none;
            border-bottom: 1px dotted var(--primary-accent);
            font-weight: 500;
        }

        .cookie-text a:hover {
            color: #0b5e4e;
            border-bottom: 1px solid;
        }

        .cookie-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
        }

        .btn-cookie {
            padding: 0.6rem 1.5rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.2s ease;
            border: none;
            font-family: inherit;
        }

        .btn-accept {
            background: var(--primary-accent);
            color: white;
            box-shadow: 0 2px 6px rgba(44, 155, 134, 0.3);
        }

        .btn-accept:hover {
            background: #217e6b;
            transform: translateY(-1px);
            box-shadow: 0 6px 14px rgba(44, 155, 134, 0.25);
        }

        .btn-decline {
            background: #f0f4fa;
            color: #2c5a6e;
            border: 1px solid #cbdde6;
        }

        .btn-decline:hover {
            background: #e4eaf1;
        }

        .btn-settings {
            background: transparent;
            color: var(--text-muted);
            border: 1px solid #cbdde6;
        }

        .btn-settings:hover {
            background: #f8fafc;
            border-color: var(--primary-accent);
            color: var(--primary-accent);
        }

        /* Модальное окно настроек cookies (детальная настройка) */
        .cookie-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            visibility: hidden;
            opacity: 0;
            transition: visibility 0.2s, opacity 0.2s;
        }

        .cookie-modal.active {
            visibility: visible;
            opacity: 1;
        }

        .modal-content {
            background: var(--white);
            max-width: 500px;
            width: 90%;
            border-radius: 28px;
            box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
            overflow: hidden;
            animation: fadeInUp 0.25s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            background: var(--primary-dark);
            color: white;
            padding: 1.2rem 1.5rem;
        }

        .modal-header h3 {
            margin: 0;
            font-weight: 600;
            font-size: 1.4rem;
        }

        .modal-body {
            padding: 1.5rem;
        }

        .cookie-option {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8rem 0;
            border-bottom: 1px solid #e2edf2;
        }

        .cookie-option:last-child {
            border-bottom: none;
        }

        .option-info strong {
            display: block;
            color: var(--primary-dark);
        }

        .option-info span {
            font-size: 0.8rem;
            color: var(--text-muted);
        }

        /* Toggle switch */
        .switch {
            position: relative;
            display: inline-block;
            width: 48px;
            height: 24px;
        }

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

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: 0.3s;
            border-radius: 34px;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
        }

        input:checked + .slider {
            background-color: var(--primary-accent);
        }

        input:checked + .slider:before {
            transform: translateX(24px);
        }

        input:disabled + .slider {
            background-color: #b3cfc6;
            cursor: not-allowed;
        }

        .modal-footer {
            padding: 1rem 1.5rem 1.5rem;
            display: flex;
            justify-content: flex-end;
            gap: 12px;
        }

        .btn-modal-save {
            background: var(--primary-accent);
            color: white;
            border: none;
            padding: 0.6rem 1.4rem;
            border-radius: 40px;
            font-weight: 600;
            cursor: pointer;
        }

        .btn-modal-cancel {
            background: #f0f4fa;
            border: none;
            padding: 0.6rem 1.4rem;
            border-radius: 40px;
            cursor: pointer;
        }

        .footer-note {
            margin-top: 2rem;
            font-size: 0.75rem;
            text-align: center;
            color: #7f8e9b;
        }

        @media (max-width: 680px) {
            .cookie-container {
                flex-direction: column;
                align-items: flex-start;
                padding: 1.2rem;
            }
            .cookie-buttons {
                width: 100%;
                justify-content: flex-end;
            }
            .demo-header h1 {
                font-size: 1.4rem;
            }
        }
