* {
  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: 'Trebuchet MS', 'Lucida Sans', 'Lucida Grande', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --shadow-sm: 0 2px 4px rgba(23, 23, 23, 0.08);
  --shadow-md: 0 4px 8px rgba(23, 23, 23, 0.12);
  --shadow-lg: 0 8px 16px rgba(23, 23, 23, 0.16);
  --shadow-xl: 0 12px 24px rgba(23, 23, 23, 0.2);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-secondary);
  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.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1.25em;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-bottom: 2px solid transparent;
}

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

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

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

em {
  font-style: italic;
}

blockquote {
  margin: 2em 0;
  padding: 1.5em;
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-style: italic;
  color: var(--color-primary);
}

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

::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: 100;
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  gap: 2rem;
}

.site-header h1 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-secondary);
}

.site-header a {
  border-bottom: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

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

.site-nav a {
  font-weight: 600;
  padding: 0.5rem 0;
  position: relative;
}

.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 {
  border-bottom: none;
}

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

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

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

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

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

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

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

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

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background-color: white;
  box-shadow: var(--shadow-md);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

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

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

tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

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

tbody tr:hover {
  background-color: rgba(163, 230, 53, 0.1);
}

tbody td {
  padding: 1rem;
  color: var(--color-text);
}

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

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

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

details[open] {
  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);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

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

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

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

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

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

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

.site-footer a {
  color: var(--color-accent);
  border-bottom-color: transparent;
}

.site-footer a:hover {
  color: white;
  border-bottom-color: var(--color-accent);
}

.site-footer p {
  color: var(--color-text-muted);
}

button, .button {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background-color: var(--color-secondary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-md);
  text-align: center;
  border-bottom: none;
}

button:hover, .button:hover {
  background-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
  border-bottom: none;
}

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

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

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

.button.accent:hover {
  background-color: #8bc91a;
  color: var(--color-secondary);
}

input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  font-family: var(--font-main);
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background-color: white;
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(163, 230, 53, 0.2);
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-secondary);
}

@media (max-width: 767px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.35rem;
  }

  .site-header .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .card {
    padding: 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  thead th, tbody td {
    padding: 0.75rem 0.5rem;
  }
}

@media (min-width: 768px) {
  .site-main {
    padding: 4rem 0;
  }

  .grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

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

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

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

  .site-main {
    padding: 0;
  }

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

  .card {
    box-shadow: none;
    page-break-inside: avoid;
  }

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

  body {
    background-color: white;
  }
}

hr {
  border: none;
  border-top: 2px solid var(--color-border);
  margin: 2.5rem 0;
}

ul, ol {
  margin-bottom: 1.25em;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.5em;
}

code {
  font-family: 'Courier New', monospace;
  background-color: var(--color-surface);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--color-secondary);
  border: 1px solid var(--color-border);
}

pre {
  background-color: var(--color-secondary);
  color: var(--color-surface);
  padding: 1.5rem;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

pre code {
  background-color: transparent;
  border: none;
  padding: 0;
  color: var(--color-accent);
}

.hero {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: white;
  padding: 4rem 0;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(163, 230, 53, 0.15) 100%);
  pointer-events: none;
}

.hero h1, .hero h2 {
  color: white;
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.125rem;
  color: var(--color-surface);
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-accent);
  color: var(--color-secondary);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border-left: 4px solid;
  background-color: white;
  box-shadow: var(--shadow-sm);
}

.alert.info {
  border-left-color: var(--color-primary);
  background-color: rgba(82, 82, 82, 0.05);
}

.alert.success {
  border-left-color: var(--color-accent);
  background-color: rgba(163, 230, 53, 0.05);
}

.alert.warning {
  border-left-color: #f59e0b;
  background-color: rgba(245, 158, 11, 0.05);
}