* {
  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: 'Verdana', 'Geneva', 'Tahoma', sans-serif;
  --max-width: 1100px;
  --radius: 4px;
  --radius-sm: 2px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(15, 76, 117, 0.08);
  --shadow-md: 0 2px 4px rgba(15, 76, 117, 0.1), 0 4px 8px rgba(15, 76, 117, 0.06);
  --shadow-lg: 0 4px 8px rgba(15, 76, 117, 0.12), 0 8px 16px rgba(15, 76, 117, 0.08);
  --shadow-xl: 0 8px 16px rgba(15, 76, 117, 0.14), 0 12px 24px rgba(15, 76, 117, 0.1);
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  background-image: linear-gradient(to bottom, #ffffff 0%, #f0f7ff 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--color-primary);
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 4px;
  height: calc(100% - 0.5rem);
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-sm);
}

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

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

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

h6 {
  font-size: 1rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

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

blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--color-surface) 0%, #ffffff 100%);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  font-style: italic;
  color: var(--color-text-muted);
}

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

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

.site-header {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  color: #ffffff;
  padding: 1.5rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-header h1 {
  font-size: 1.75rem;
  color: #ffffff;
  margin: 0;
  padding: 0;
  border: none;
  letter-spacing: 0.02em;
}

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

.site-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: var(--shadow-sm);
}

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

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

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

.breadcrumbs {
  padding: 0.75rem 0;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  background-color: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 1rem;
}

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

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

.breadcrumbs span {
  margin: 0 0.5rem;
  color: var(--color-border);
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: #ffffff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  font-size: 0.9375rem;
}

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

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

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

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

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

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

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

details {
  margin: 1rem 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

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

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

summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  user-select: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  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: 300;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

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

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

details div {
  padding: 0 1.25rem 1.25rem 1.25rem;
  color: var(--color-text);
}

.site-footer {
  background: var(--color-secondary);
  color: rgba(255, 255, 255, 0.8);
  padding: 2rem 0 1rem;
  margin-top: 3rem;
  border-top: 4px solid var(--color-primary);
  box-shadow: 0 -4px 8px rgba(15, 76, 117, 0.08);
}

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

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

.site-footer p {
  margin: 0.5rem 0;
  font-size: 0.9375rem;
}

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

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 1.75rem;
  }

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

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

  .card {
    padding: 2rem;
  }

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

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

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

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2rem;
  }

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

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

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

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

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

  .card {
    padding: 2.5rem;
  }
}

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

@media print {
  body {
    background: #ffffff;
    background-image: none;
  }

  .site-header,
  .site-nav,
  .breadcrumbs {
    display: none;
  }

  .site-main {
    padding: 0;
  }

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

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

  a {
    color: #000000;
    text-decoration: underline;
  }

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

  .site-footer {
    margin-top: 2rem;
    padding: 1rem 0;
    border-top: 1px solid #000000;
    box-shadow: none;
  }
}