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

:root {
  --color-primary: #334155;
  --color-secondary: #0f172a;
  --color-accent: #94a3b8;
  --color-bg: #ffffff;
  --color-surface: #f1f5f9;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #cbd5e1;
  --font-main: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --max-width: 1100px;
  --radius: 0px;
}

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: flex;
  flex-direction: column;
}

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

h1 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary);
}

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

h4 {
  font-size: 1.25rem;
  margin-top: 1.25rem;
}

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

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

p {
  margin-bottom: 1rem;
}

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: 2px solid var(--color-primary);
  outline-offset: 2px;
}

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

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

blockquote {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  position: relative;
  clip-path: polygon(0 0, 100% 0, 98% 100%, 0 100%);
}

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

::selection {
  background-color: var(--color-primary);
  color: var(--color-bg);
}

.site-header {
  background: var(--color-secondary);
  color: var(--color-bg);
  padding: 1.5rem 1rem;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  padding-bottom: 2.5rem;
}

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

.site-header h1 {
  color: var(--color-bg);
  margin: 0;
  font-size: 1.75rem;
  padding-bottom: 0;
}

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

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

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

.site-nav {
  background: var(--color-primary);
  padding: 0;
  position: relative;
  margin-top: -1rem;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  padding-top: 1rem;
}

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

.site-nav li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-bg);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  transition: background-color 0.2s ease, color 0.2s ease;
  position: relative;
}

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

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

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

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

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

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

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

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

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

.card {
  background: var(--color-surface);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--color-border);
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 100% 96%, 96% 100%, 0 100%);
}

.card:hover {
  box-shadow: 8px 8px 0 var(--color-accent);
  border-color: var(--color-primary);
}

.card h2 {
  margin-top: 0;
}

.card h3 {
  margin-top: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
}

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

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

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

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

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

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

details {
  margin: 1.5rem 0;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  clip-path: polygon(0 0, 100% 0, 99% 100%, 0 100%);
}

summary {
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-secondary);
  background: var(--color-bg);
  list-style: none;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
  user-select: none;
}

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

summary::before {
  content: '▶';
  position: absolute;
  left: 0.5rem;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
  color: var(--color-primary);
}

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

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

details[open] summary {
  border-bottom: 2px solid var(--color-border);
}

details div {
  padding: 1.5rem;
}

.site-footer {
  background: var(--color-secondary);
  color: var(--color-accent);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  position: relative;
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
  padding-top: 4rem;
}

.site-footer .container {
  display: grid;
  gap: 2rem;
}

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

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

.site-footer h3 {
  color: var(--color-bg);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--color-accent);
  padding-left: 0.75rem;
}

.site-footer p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
}

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

input[type="text"],
input[type="email"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(0 0, 100% 0, 99% 100%, 0 100%);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 4px 4px 0 var(--color-accent);
}

button,
.button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0 100%);
  position: relative;
}

button:hover,
.button:hover {
  background-color: var(--color-secondary);
  box-shadow: 4px 4px 0 var(--color-accent);
  color: var(--color-bg);
}

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

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

  h2 {
    font-size: 2.25rem;
  }

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

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

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

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

  .container {
    padding: 0 2rem;
  }

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

  .card {
    padding: 2.5rem;
  }
}

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

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

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

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

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

  .card {
    padding: 3rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  * {
    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;
  }

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

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

  body {
    background: white;
    color: black;
  }
}