:root {
  --color-bg: #151523;
  --color-text: #E4E6ED;
  --color-accent: #E7B223;
  --color-surface: #24243D;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background: linear-gradient(180deg, #151523 0%, #24243D 100%);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.75;
  min-height: 100vh;
}

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

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

h1, h2, h3, h4 {
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
}

h1 {
  font-size: 2.2rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.6rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--color-accent);
  padding-bottom: 0.4rem;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
}

p {
  margin-bottom: 1rem;
}

strong {
  color: var(--color-accent);
}

.site-header {
  background: rgba(21, 21, 35, 0.96);
  border-bottom: 1px solid rgba(231, 178, 35, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  padding: 0.75rem 0;
}

.navbar-toggler {
  border-color: var(--color-accent);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23E7B223' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  color: var(--color-text) !important;
}

.nav-link:hover {
  color: var(--color-accent) !important;
}

.site-logo {
  height: 44px;
  width: auto;
}

main {
  padding-bottom: 3rem;
}

.site-footer {
  background: var(--color-surface);
  border-top: 1px solid rgba(231, 178, 35, 0.2);
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text);
  font-size: 0.9rem;
}

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

.site-footer p {
  margin-bottom: 0.4rem;
}

.site-footer nav {
  margin-top: 0.5rem;
}

.zone-alt {
  background: var(--color-surface);
  border-radius: 8px;
  padding: 1.75rem;
  margin-bottom: 2rem;
}

.intro-block {
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 6px 6px 0;
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
}

.intro-block p:first-of-type {
  font-size: 1.1em;
}

.content-img-center {
  display: block;
  margin: 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.content-img-float {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.col-2-h3 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.col-3-h3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0;
}

.col-h3-item {
  background: var(--color-surface);
  border-top: 3px solid var(--color-accent);
  border-radius: 0 0 6px 6px;
  padding: 1.25rem;
}

.col-h3-item h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.list-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.list-cards li {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  text-align: center;
  font-size: 0.9rem;
}

.list-icon {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.list-icon li {
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  position: relative;
}

.list-icon li::before {
  content: '◆';
  color: var(--color-accent);
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  line-height: 1.75;
}

.list-steps {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: steps;
}

.list-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  counter-increment: steps;
}

.list-steps li::before {
  content: counter(steps);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  background: var(--color-accent);
  color: var(--color-bg);
  font-weight: 700;
  border-radius: 50%;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0;
}

.quick-fact {
  flex: 1 1 160px;
  border-bottom: 3px solid var(--color-accent);
  padding: 0.75rem 1rem;
  text-align: center;
  background: var(--color-bg);
  border-radius: 4px 4px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.highlight-box {
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
}

.tip-box {
  background: rgba(231, 178, 35, 0.07);
  border: 1px solid rgba(231, 178, 35, 0.3);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 5px;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tip-marker {
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  margin: 2.5rem auto;
}

.legal-page h1 {
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  color: rgba(228, 230, 237, 0.55);
  font-size: 0.88rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  color: var(--color-accent);
}

.legal-page h4 {
  font-size: 0.95rem;
  color: var(--color-text);
  margin-top: 1rem;
}

.error-page {
  text-align: center;
  padding: 5rem 1rem;
}

.error-page h1 {
  font-size: 5rem;
  color: var(--color-accent);
}

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

  h2 {
    font-size: 1.25rem;
  }

  .col-2-h3 {
    grid-template-columns: 1fr;
  }

  .col-3-h3 {
    grid-template-columns: 1fr;
  }

  .list-cards {
    grid-template-columns: 1fr 1fr;
  }

  .quick-facts {
    flex-direction: column;
  }

  .quick-fact {
    flex: 1 1 auto;
  }

  .float-start,
  .float-end {
    float: none !important;
    display: block;
    margin: 1rem auto;
  }

  .zone-alt {
    padding: 1.25rem;
  }

  .intro-block {
    padding: 1.25rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .list-cards {
    grid-template-columns: 1fr;
  }
}
