/* === Импорт шрифтов === */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');

/* === Цветовые схемы === */
:root {
  --text: #cdd6f4;
  --surface: #1e1e2e;
  --overlay: #11111b;
  --highlight: #fab387;
  --subtle: #313244;
  --blue: #89b4fa;
  --green: #a6e3a1;
  --muted: #6c7086;
  --accent: #f5c2e7;
  --blur: 8px;
}

/* === Общая стилизация === */
body {
  background: var(--surface);
  color: var(--text);
  font-family: 'Geologica', sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  line-height: 1.7;
  transition: all 0.3s ease;
}

h1, h2, h3 {
  font-family: 'Orbitron', sans-serif;
  text-shadow: none;
  filter: none;
}

h1 {
  font-weight: 700;
  margin: 2em 0 1em;
  font-size: 2em;
  color: var(--blue);
  border-bottom: 3px solid var(--subtle);
  padding-bottom: 0.5em;
}

h2 {
  font-weight: 600;
  font-size: 1.6em;
  margin: 3em 0 1.5em;
  color: #f4d1a6;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 0;
}

h2::after {
  content: '';
  display: block;
  margin-top: 6px;
  width: 60px;
  height: 2px;
  background: #f4d1a6;
  opacity: 0.4;
}

h3 {
  font-weight: 500;
  margin: 2em 0 1em;
  color: var(--blue);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  background: var(--overlay);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.25);
  position: relative;
  table-layout: fixed;
  backdrop-filter: blur(var(--blur));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

table th {
  position: sticky;
  top: 0;
  background: var(--subtle);
  z-index: 2;
  color: var(--highlight);
  font-weight: 500;
  text-align: left;
  font-size: 0.95em;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--subtle);
  vertical-align: top;
}

tr:nth-child(even) {
  background-color: rgba(49, 50, 68, 0.1);
}

tr:hover {
  background-color: rgba(250, 179, 135, 0.1);
  transition: background 0.3s ease;
}

td:nth-child(1) { width: 30%; text-align: left; }
td:nth-child(2) { width: 50%; text-align: left; }
td:nth-child(3) { width: 20%; text-align: right; color: var(--green); font-weight: 500; }

a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--highlight);
  text-decoration: none;
  transform: translateY(-1px);
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: var(--highlight);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

a:hover::after {
  transform: scaleX(1);
}
}

strong {
  color: var(--accent);
  font-weight: 600;
}

em {
  color: var(--green);
  font-style: italic;
}

code {
  background: var(--subtle);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: 'Fira Code', monospace;
  color: var(--blue);
}

ul, ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}

li::marker {
  color: var(--highlight);
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  position: relative;
  border-radius: 10px;
}

@media (max-width: 640px) {
  th, td {
    padding: 10px 14px;
    vertical-align: top;
    font-size: 0.95em;
  }

  th:nth-child(1), td:nth-child(1) {
    text-align: left;
  }

  th:nth-child(2), td:nth-child(2) {
    text-align: left;
  }

  th:nth-child(3), td:nth-child(3) {
    text-align: right;
  }
}
