* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #a21caf;
  --color-secondary: #701a75;
  --color-accent: #f0abfc;
  --color-bg: #fefcff;
  --color-surface: #fdf4ff;
  --color-text: #4a044e;
  --color-text-muted: #8b5f90;
  --color-border: #e0c8e4;
  --font-main: 'Georgia', 'Times New Roman', 'Palatino', serif;
  --max-width: 1100px;
  --radius: 50px;
  --radius-sm: 25px;
  --radius-lg: 100px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at 20% 80%, var(--color-surface) 0%, var(--color-bg) 50%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 0.75em;
  color: var(--color-secondary);
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
}

a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

strong {
  font-weight: 700;
  color: var(--color-secondary);
}

em {
  font-style: italic;
  color: var(--color-text-muted);
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--color-surface);
  border-left: 6px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-text-muted);
}

blockquote p:last-child {
  margin-bottom: 0;
}

::selection {
  background-color: var(--color-accent);
  color: var(--color-secondary);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.site-header {
  background: linear-gradient(135deg, var(--color-surface), var(--color-bg));
  border-bottom: 2px solid var(--color-border);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(162, 28, 175, 0.08);
}

.site-header .container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.site-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.6rem 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-weight: 600;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(162, 28, 175, 0.3);
  transform: translateY(-2px);
}

.site-nav a:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.site-main {
  flex: 1;
  padding: 3rem 0;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.breadcrumbs a:hover {
  color: var(--color-primary);
}

.breadcrumbs span {
  color: var(--color-border);
}

.card {
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 2px 10px rgba(74, 4, 78, 0.05);
}

.card:hover {
  box-shadow: 0 8px 30px rgba(162, 28, 175, 0.15);
  border-color: var(--color-accent);
}

.card h2::after,
.card h3::after {
  display: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--color-border);
}

table thead {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: white;
}

table th,
table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

table tbody tr {
  transition: background-color 0.2s ease;
}

table tbody tr:nth-child(odd) {
  background: var(--color-bg);
}

table tbody tr:nth-child(even) {
  background: var(--color-surface);
}

table tbody tr:hover {
  background: var(--color-accent);
  color: var(--color-secondary);
}

table tbody tr:last-child td {
  border-bottom: none;
}

details {
  margin: 1.5rem 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-surface);
  transition: box-shadow 0.2s ease;
}

details[open] {
  box-shadow: 0 6px 25px rgba(162, 28, 175, 0.12);
}

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary);
  background: linear-gradient(90deg, var(--color-surface), var(--color-bg));
  transition: background-color 0.2s ease, color 0.2s ease;
  list-style: none;
  position: relative;
  padding-left: 3rem;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

summary::after {
  content: '+';
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  pointer-events: none;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  background: var(--color-secondary);
  transform: translateY(-50%) rotate(90deg);
}

details[open] summary::after {
  content: '−';
}

summary:hover {
  background: var(--color-accent);
}

summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: -3px;
}

details > *:not(summary) {
  padding: 0 1.5rem 1.5rem 1.5rem;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-footer {
  background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.site-footer a {
  color: var(--color-accent);
  font-weight: 600;
}

.site-footer a:hover {
  color: white;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

button,
input[type="submit"],
input[type="button"] {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.85rem 2rem;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(162, 28, 175, 0.2);
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: var(--color-secondary);
  box-shadow: 0 6px 25px rgba(112, 26, 117, 0.35);
  transform: translateY(-2px);
}

button:focus-visible,
input[type="submit"]:focus-visible,
input[type="button"]:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
textarea {
  width: 100%;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="url"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(162, 28, 175, 0.1);
}

@media (min-width: 768px) {
  body {
    font-size: 19px;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .site-header .container {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 2rem;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .site-main {
    padding: 4rem 0;
  }

  .card {
    padding: 2.5rem;
  }

  table th,
  table td {
    padding: 1.25rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  body {
    font-size: 20px;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

  .site-header h1 {
    font-size: 2.25rem;
  }

  .site-main {
    padding: 5rem 0;
  }

  .container {
    padding: 0 2rem;
  }

  blockquote {
    padding: 2rem 2.5rem;
    margin: 2.5rem 0;
  }

  .card {
    padding: 3rem;
  }

  .site-nav a {
    padding: 0.75rem 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

@media print {
  .site-header,
  .site-nav,
  .site-footer,
  .breadcrumbs {
    display: none;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .site-main {
    padding: 0;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  a {
    color: black;
    text-decoration: underline;
  }

  .card {
    border: 1px solid #333;
    box-shadow: none;
    page-break-inside: avoid;
  }

  table {
    page-break-inside: avoid;
  }

  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    color: black;
  }
}