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

:root {
  --color-primary: #dc2626;
  --color-secondary: #991b1b;
  --color-accent: #fca5a5;
  --color-bg: #ffffff;
  --color-surface: #fef2f2;
  --color-text: #1c1917;
  --color-text-muted: #78716c;
  --color-border: #e7e5e4;
  --font-main: 'Trebuchet MS', 'Lucida Sans', 'Lucida Grande', sans-serif;
  --max-width: 1100px;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(220, 38, 38, 0.08);
  --shadow-md: 0 4px 16px rgba(220, 38, 38, 0.12);
  --shadow-lg: 0 8px 32px rgba(220, 38, 38, 0.16);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: radial-gradient(circle at 20% 50%, rgba(252, 165, 165, 0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.125rem;
}

p {
  margin-bottom: 1.25em;
}

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

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

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

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

em {
  font-style: italic;
}

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

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, rgba(254, 242, 242, 0.5) 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  font-style: italic;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

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

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

.site-header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.5rem 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-header h1 {
  font-size: 1.75rem;
  margin: 0;
  color: var(--color-primary);
  text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--color-text);
  font-weight: 600;
  border-radius: calc(var(--radius) / 2);
  background: rgba(254, 242, 242, 0.5);
  border: 1px solid var(--color-border);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.site-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2);
}

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

.site-footer {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.5) 0%, var(--color-surface) 100%);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0;
  margin-top: 4rem;
  color: var(--color-text-muted);
  text-align: center;
  backdrop-filter: blur(10px);
}

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

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

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

.breadcrumbs {
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: calc(var(--radius) / 2);
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  box-shadow: var(--shadow-sm);
}

.breadcrumbs ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li:not(:last-child)::after {
  content: '›';
  color: var(--color-text-muted);
  font-weight: 600;
}

.breadcrumbs a {
  color: var(--color-text-muted);
}

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

.breadcrumbs li:last-child {
  color: var(--color-text);
  font-weight: 600;
}

.card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-accent);
}

.card h2, .card h3, .card h4 {
  color: var(--color-primary);
}

.card > *:last-child {
  margin-bottom: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

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

th {
  padding: 1rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

td {
  padding: 1rem;
  border-top: 1px solid var(--color-border);
}

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

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

tbody tr:hover {
  background-color: rgba(252, 165, 165, 0.2);
}

details {
  margin: 1.5rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

details:hover {
  box-shadow: var(--shadow-md);
}

details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
  user-select: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

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

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

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

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

button, .button {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  border: none;
  border-radius: calc(var(--radius) / 2);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  text-align: center;
}

button:hover, .button:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  color: white;
}

button:focus-visible, .button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

button:active, .button:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) / 2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.875rem;
  }

  .site-header .container {
    flex-wrap: nowrap;
  }

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

  .site-nav ul {
    gap: 1rem;
  }

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

  .card {
    padding: 2.5rem;
  }

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

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

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

  .site-nav ul {
    gap: 1.25rem;
  }

  .card {
    padding: 3rem;
  }

  table {
    font-size: 1rem;
  }

  th, td {
    padding: 1.25rem;
  }
}

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

  details > *:not(summary) {
    animation: none;
  }
}

@media print {
  body {
    background: white;
    background-image: none;
  }

  .site-header,
  .site-nav,
  .breadcrumbs,
  button,
  .button {
    display: none;
  }

  .site-main {
    padding: 0;
  }

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

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

  a {
    color: #000;
    text-decoration: underline;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  table {
    box-shadow: none;
    background: white;
  }

  thead {
    background: #000;
  }

  tbody tr:nth-child(even) {
    background-color: #f5f5f5;
  }
}