*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #525252;
  --color-secondary: #262626;
  --color-accent: #a3e635;
  --color-bg: #fafafa;
  --color-surface: #f5f5f5;
  --color-text: #171717;
  --color-text-muted: #737373;
  --color-border: #d4d4d4;
  --font-main: 'Georgia', 'Times New Roman', 'Palatino', serif;
  --max-width: 1100px;
  --radius: 2px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.08), 0 4px 6px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
}

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);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5em;
  position: relative;
  padding-bottom: 0.3em;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 6px;
  background-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

h2 {
  font-size: 2.5rem;
  margin-top: 1.5em;
  position: relative;
  padding-left: 1rem;
  border-left: 5px solid var(--color-accent);
}

h3 {
  font-size: 2rem;
  margin-top: 1.3em;
  color: var(--color-primary);
}

h4 {
  font-size: 1.5rem;
  margin-top: 1.2em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

h5 {
  font-size: 1.25rem;
  margin-top: 1em;
  font-style: italic;
}

h6 {
  font-size: 1.1rem;
  margin-top: 1em;
  color: var(--color-text-muted);
  font-weight: 600;
}

p {
  margin-bottom: 1.2em;
}

a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--color-accent);
  text-decoration-color: var(--color-accent);
}

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

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

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

blockquote {
  margin: 2em 0;
  padding: 1.5em 2em;
  background-color: var(--color-surface);
  border-left: 6px solid var(--color-accent);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--color-primary);
  box-shadow: var(--shadow-md);
  position: relative;
}

blockquote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.03) 0%, transparent 100%);
  pointer-events: none;
}

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

.site-header {
  background-color: white;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-header h1 {
  font-size: 1.8rem;
  margin: 0;
  padding: 0;
  letter-spacing: -0.03em;
}

.site-header h1::after {
  display: none;
}

.site-header a {
  text-decoration: none;
  color: var(--color-secondary);
}

.site-header a:hover {
  color: var(--color-accent);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  position: relative;
  color: var(--color-primary);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--color-accent);
  transition: width 0.2s ease;
}

.site-nav a:hover::after {
  width: 100%;
}

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

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

.site-main {
  min-height: calc(100vh - 200px);
  padding: 3rem 0;
}

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

.card {
  background-color: white;
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

.card:hover::before {
  opacity: 1;
}

.card h2,
.card h3 {
  margin-top: 0;
}

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

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.95rem;
  background-color: white;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
}

table thead {
  background-color: var(--color-secondary);
  color: white;
}

table th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border-bottom: 3px solid var(--color-accent);
}

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

table tbody tr {
  background-color: white;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

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

table tbody tr:hover {
  background-color: rgba(163, 230, 53, 0.1);
  box-shadow: inset 3px 0 0 var(--color-accent);
}

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

details {
  background-color: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

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

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

summary {
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary);
  background-color: var(--color-surface);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

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

summary::after {
  content: '▼';
  font-size: 0.8rem;
  transition: transform 0.2s ease, color 0.2s ease;
  color: var(--color-text-muted);
}

details[open] summary::after {
  transform: rotate(180deg);
  color: var(--color-accent);
}

summary:hover {
  background-color: rgba(163, 230, 53, 0.1);
  color: var(--color-accent);
}

details[open] summary {
  background-color: var(--color-secondary);
  color: white;
  border-bottom: 3px solid var(--color-accent);
}

details[open] summary::after {
  color: var(--color-accent);
}

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);
  }
}

.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-surface);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.site-footer .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
  color: var(--color-border);
}

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

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.8rem;
  }

  h3 {
    font-size: 2.2rem;
  }

  .site-header .container {
    padding: 2rem 2rem;
  }

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

  .container {
    padding: 0 2rem;
  }

  .card {
    padding: 2.5rem;
  }

  .site-footer .container {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

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

  h1 {
    font-size: 4.5rem;
  }

  h2 {
    font-size: 3rem;
  }

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

  .card {
    padding: 3rem;
  }

  .site-footer .container {
    grid-template-columns: repeat(3, 1fr);
  }

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

@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;
  }

  .site-main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

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

  .card {
    box-shadow: none;
    border: 1px solid var(--color-border);
    page-break-inside: avoid;
  }

  a {
    text-decoration: none;
    color: var(--color-text);
  }

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