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

:root {
  --color-primary: #0f4c75;
  --color-secondary: #1b262c;
  --color-accent: #bbe1fa;
  --color-bg: #ffffff;
  --color-surface: #f0f7ff;
  --color-text: #1b262c;
  --color-text-muted: #6b7b8d;
  --color-border: #d1dce6;
  --font-main: 'Trebuchet MS', 'Lucida Sans', 'Lucida Grande', sans-serif;
  --max-width: 1100px;
  --radius: 8px;
  --radius-small: 4px;
  --radius-large: 16px;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-surface) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 {
  font-size: 2rem;
  color: var(--color-primary);
  position: relative;
  padding-bottom: 0.5rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-small);
}

h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

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

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

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

blockquote {
  margin: 1.5rem 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: 0 2px 8px rgba(15, 76, 117, 0.1);
  font-style: italic;
  color: var(--color-text-muted);
}

::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(27, 38, 44, 0.15), 0 2px 4px rgba(27, 38, 44, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header h1 {
  color: var(--color-bg);
  background: none;
  -webkit-text-fill-color: var(--color-bg);
  margin: 0;
  font-size: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-nav {
  background: var(--color-surface);
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(15, 76, 117, 0.08);
  border-bottom: 2px solid var(--color-border);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.site-nav a {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  display: inline-block;
  font-weight: 600;
  border-bottom: none;
}

.site-nav a:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  box-shadow: 0 4px 8px rgba(15, 76, 117, 0.2);
  transform: translateY(-1px);
}

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

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

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: 0 1px 4px rgba(15, 76, 117, 0.08);
}

.breadcrumbs a {
  color: var(--color-text-muted);
  border-bottom: 1px solid transparent;
}

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

.breadcrumbs::after {
  content: '/';
  color: var(--color-text-muted);
  margin-left: 0.5rem;
}

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

.card {
  background: var(--color-bg);
  border-radius: var(--radius-large);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(15, 76, 117, 0.08), 0 4px 16px rgba(15, 76, 117, 0.06);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(15, 76, 117, 0.12), 0 8px 24px rgba(15, 76, 117, 0.1);
  transform: translateY(-2px);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 76, 117, 0.1);
}

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

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

td {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  transition: background-color 0.2s ease;
}

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

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

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

details {
  margin: 1.5rem 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: 0 2px 6px rgba(15, 76, 117, 0.08);
}

summary {
  padding: 1.25rem;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 100%);
  font-weight: 700;
  color: var(--color-primary);
  list-style: none;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-left: 4px solid transparent;
}

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

summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 0.2s ease;
}

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

summary:hover {
  background: var(--color-primary);
  color: var(--color-bg);
  border-left-color: var(--color-accent);
}

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

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

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

.site-footer {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: var(--color-bg);
  padding: 3rem 1rem 2rem;
  margin-top: 4rem;
  box-shadow: 0 -4px 12px rgba(27, 38, 44, 0.15);
}

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

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

.site-footer p {
  text-align: center;
  margin: 0.5rem 0;
}

button, input[type="submit"], input[type="button"] {
  font-family: var(--font-main);
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-bg);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 76, 117, 0.2);
}

button:hover, input[type="submit"]:hover, input[type="button"]:hover {
  box-shadow: 0 4px 12px rgba(15, 76, 117, 0.3);
  transform: translateY(-2px);
}

button:focus-visible, input[type="submit"]:focus-visible, input[type="button"]:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

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

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

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

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

  .site-nav ul {
    justify-content: flex-start;
    gap: 1.5rem;
  }

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

  .card {
    padding: 2.5rem;
  }

  .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .container > h1, .container > h2 {
    grid-column: 1 / -1;
  }

  table {
    font-size: 1rem;
  }

  th, td {
    padding: 1.25rem;
  }
}

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

  h2 {
    font-size: 2.5rem;
  }

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

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

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

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

  .card {
    padding: 3rem;
  }

  .container {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }

  blockquote {
    padding: 2rem;
    margin: 2rem 0;
  }

  details {
    margin: 2rem 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    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 {
  .site-nav, .site-footer {
    display: none;
  }

  .site-header {
    position: static;
    box-shadow: none;
    padding: 1rem;
  }

  .site-main {
    padding: 1rem;
  }

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

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

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

  table {
    box-shadow: none;
  }

  tbody tr:hover {
    background: transparent;
  }

  .container {
    display: block;
  }
}