/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, header, footer, nav, ul, li, a, img, p, h1, h2, h3, h4, h5, h6, button {
  margin: 0;
  padding: 0;
}
html { -webkit-text-size-adjust: 100%; }
body {
  background-color: #090f1e;
  color: #c2c4c9;
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: #ff2400; text-decoration: none; transition: color 0.2s ease, background-color 0.2s ease; }
a:hover, a:focus { color: #e0330a; }
h1, h2, h3, h4, h5, h6 { color: #ffffff; font-family: Roboto, sans-serif; line-height: 1.25; }
button { font-family: Roboto, sans-serif; cursor: pointer; }

/* ===== Layout container ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background-color: #ff2400;
  color: #ffffff;
  border-color: #ff2400;
}
.btn--primary:hover, .btn--primary:focus {
  background-color: #e0330a;
  border-color: #e0330a;
  color: #ffffff;
}
.btn--secondary {
  background-color: #e7ecf50f;
  color: #ffffff;
  border-color: #ff2400;
}
.btn--secondary:hover, .btn--secondary:focus {
  background-color: #e7ecf517;
  color: #ffffff;
}

/* ===== Surfaces ===== */
.surface {
  background-color: #172032;
  border: 1px solid #ff2400;
  border-radius: 8px;
}

/* ===== Header ===== */
.site-header {
  background-color: #172032;
  border-bottom: 1px solid #ff2400;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
}
.site-header__logo-img {
  height: 36px;
  width: auto;
}
.site-header__cta {
  flex-shrink: 0;
}

/* ===== Footer ===== */
.site-footer {
  background-color: #172032;
  border-top: 1px solid #ff2400;
  margin-top: 40px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  text-align: center;
}
.site-footer__logo-img {
  height: 30px;
  width: auto;
}
.site-footer__legal {
  color: #c2c4c9;
  font-size: 13px;
}

/* ===== Responsive ===== */
/* Phone first (default) above. Tablet and up: */
@media (min-width: 768px) {
  .site-header__inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding: 0 24px;
  }
}

/* ===== 404 page ===== */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding-top: 48px;
  padding-bottom: 48px;
}
.not-found__card {
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}
.not-found__code {
  font-size: 56px;
  font-weight: 700;
  color: #f9b242;
  line-height: 1;
  margin-bottom: 8px;
}
.not-found__card h1 {
  font-size: 24px;
  margin-bottom: 12px;
}
.not-found__card p:not(.not-found__code) {
  margin-bottom: 24px;
}

/* ===== Article page ===== */
.article-page {
  padding-top: 24px;
  padding-bottom: 48px;
}
.page-title h1 {
  font-size: 28px;
  margin-bottom: 16px;
}
.page-title > p {
  margin-bottom: 20px;
}
.toc {
  padding: 20px;
}
.toc ul {
  list-style: none;
  display: grid;
  gap: 10px;
}
.toc li::before {
  content: "\2713";
  color: #f9b242;
  margin-right: 8px;
  font-weight: 700;
}
.toc a {
  color: #c2c4c9;
}
.toc a:hover, .toc a:focus {
  color: #ff2400;
}
.intro {
  margin-top: 32px;
}
.intro > p {
  margin-bottom: 16px;
}
.intro-banner {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}
.intro-banner img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.article-section {
  margin-top: 40px;
}
.article-section h2 {
  font-size: 22px;
  margin-bottom: 16px;
  scroll-margin-top: 90px;
}
.article-section > p,
.article-section > ul {
  margin-bottom: 16px;
}
.article-section ul {
  padding-left: 20px;
}
.article-section ul li {
  margin-bottom: 8px;
}
.table-wrap {
  overflow-x: auto;
  margin-bottom: 16px;
  border: 1px solid #ff2400;
  border-radius: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 14px;
}
caption {
  text-align: left;
}
th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid #e7ecf50f;
  vertical-align: top;
}
thead th {
  background-color: #172032;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
}
tbody tr:nth-child(even) {
  background-color: #172032;
}
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.image-gallery img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.trust-section {
  padding-top: 24px;
  border-top: 1px solid #e7ecf50f;
}
.faq-accordion details {
  background-color: #172032;
  border: 1px solid #ff2400;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}
.faq-accordion summary {
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  list-style: none;
}
.faq-accordion summary::-webkit-details-marker {
  display: none;
}
.faq-accordion summary::after {
  content: "+";
  float: right;
  color: #f9b242;
  font-size: 18px;
}
.faq-accordion details[open] summary::after {
  content: "\2212";
}
.faq-accordion details p {
  margin-top: 12px;
}
.article-section .btn {
  margin-top: 8px;
}

@media (min-width: 600px) {
  .toc ul {
    grid-template-columns: repeat(2, 1fr);
  }
  .image-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  .page-title h1 {
    font-size: 36px;
  }
}