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

:root {
  --color-primary: #65742e;
  --color-secondary: #3f4a1c;
  --color-accent: #e2e88c;
  --color-bg: #fdfef6;
  --color-surface: #f5f6ea;
  --color-text: #2b3212;
  --color-text-muted: #7a7f5e;
  --color-border: #d4d7be;
  --font-main: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --max-width: 1100px;
  --radius: 2px;
  --radius-lg: 4px;
  --radius-xl: 8px;
}

html {
  font-size: 16px;
  line-height: 1.5;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

h4 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
  color: var(--color-primary);
}

h5 {
  font-size: 1.1rem;
  margin-top: 1rem;
}

h6 {
  font-size: 1rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1rem;
  max-width: 70ch;
}

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--color-secondary);
  text-decoration-thickness: 2px;
}

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

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

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

blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 2px 2px 8px rgba(43, 50, 18, 0.08);
  font-style: italic;
  color: var(--color-text-muted);
}

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

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

.site-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-bg);
  padding: 2rem 1rem;
  box-shadow: 0 4px 12px rgba(43, 50, 18, 0.15), 0 2px 4px rgba(43, 50, 18, 0.1);
  position: relative;
  z-index: 100;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
}

.site-header h1 {
  color: var(--color-bg);
  margin-bottom: 0.5rem;
  font-size: 2rem;
  letter-spacing: 0.02em;
}

.site-header p {
  color: var(--color-accent);
  font-size: 0.95rem;
  margin-bottom: 0;
  letter-spacing: 0.03em;
}

.site-nav {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(43, 50, 18, 0.06);
  position: sticky;
  top: 0;
  z-index: 90;
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2px 4px rgba(101, 116, 46, 0.15);
}

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

.site-main {
  padding: 2rem 1rem;
  width: 100%;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
}

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

.breadcrumbs li::after {
  content: '/';
  color: var(--color-text-muted);
}

.breadcrumbs li:last-child::after {
  content: '';
}

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

.breadcrumbs a:hover {
  text-decoration: underline;
}

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

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(43, 50, 18, 0.08), 0 4px 12px rgba(43, 50, 18, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 8px rgba(43, 50, 18, 0.12), 0 8px 20px rgba(43, 50, 18, 0.08);
  border-color: var(--color-primary);
}

.card h2 {
  margin-top: 0;
  border-bottom: 2px solid var(--color-accent);
}

.card h3 {
  margin-top: 0;
  color: var(--color-primary);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(43, 50, 18, 0.08);
}

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

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

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

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

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

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

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

details {
  margin: 1.5rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: 0 2px 4px rgba(43, 50, 18, 0.06);
  overflow: hidden;
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  background: linear-gradient(90deg, var(--color-surface) 0%, var(--color-bg) 100%);
  font-weight: 700;
  color: var(--color-secondary);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

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

summary::before {
  content: '▶';
  font-size: 0.75rem;
  transition: transform 0.2s ease;
  color: var(--color-primary);
}

details[open] summary::before {
  transform: rotate(90deg);
}

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

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

details > *:not(summary) {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
  animation: slideDown 0.2s ease;
}

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

.site-footer {
  background: var(--color-secondary);
  color: var(--color-surface);
  padding: 2rem 1rem;
  margin-top: 3rem;
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 -4px 12px rgba(43, 50, 18, 0.1);
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

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

.site-footer p {
  margin-bottom: 0.5rem;
  max-width: 100%;
}

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

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

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

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

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

  .site-nav a {
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
  }

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

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

  .breadcrumbs {
    padding: 1rem 1.5rem;
  }

  .card {
    padding: 2rem;
  }

  table {
    font-size: 1rem;
  }

  th {
    padding: 1.25rem;
  }

  td {
    padding: 1rem 1.25rem;
  }

  .site-footer {
    padding: 3rem 2rem;
  }
}

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

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

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

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

  .card {
    padding: 2.5rem;
  }

  p {
    font-size: 1.0625rem;
  }
}

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

  summary::before {
    transition: none;
  }

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

@media print {
  body {
    background: white;
    color: black;
  }

  .site-nav {
    display: none;
  }

  .site-header {
    box-shadow: none;
    background: white;
    color: black;
    border-bottom: 2px solid black;
  }

  .site-header h1 {
    color: black;
  }

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

  .site-main {
    padding: 1rem;
    max-width: 100%;
  }

  .container {
    max-width: 100%;
  }

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

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

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

  .site-footer {
    background: white;
    color: black;
    border-top: 2px solid black;
    box-shadow: none;
  }

  table {
    box-shadow: none;
  }

  thead {
    background: #f0f0f0;
    color: black;
  }

  tbody tr:hover {
    background: transparent;
  }

  details {
    border: 1px solid #ccc;
    box-shadow: none;
  }

  details[open] summary {
    border-bottom: 1px solid #ccc;
  }

  summary {
    background: #f5f5f5;
  }
}