:root {
  --ink: #172033;
  --muted: #5c6575;
  --line: #dde3ee;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --brand: #0b4f8f;
  --brand-dark: #083a68;
  --accent: #f1b323;
  --accent-dark: #c68100;
  --good: #168a54;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
}

.wrap {
  width: calc(100% - 32px);
  max-width: 1080px;
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(90deg, #082b52 0%, #0b4f8f 58%, #07335f 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(8, 43, 82, 0.22);
  backdrop-filter: blur(12px);
}

.header-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 142px;
  max-height: 58px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(255, 255, 255, 0.35));
}

.site-menu {
  flex: 1 1 auto;
}

.menu-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.menu-toggle {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.nav-links a,
.footer-links a,
.crumbs a {
  text-decoration: none;
}

.nav-links a {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

.nav-links a:hover,
.footer-links a:hover,
.crumbs a:hover {
  text-decoration: underline;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  color: #10151f;
  background: var(--accent);
  border-color: var(--accent-dark);
}

.btn-secondary {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--brand);
}

.btn-primary:hover,
.btn-secondary:hover {
  filter: brightness(0.97);
}

.crumbs {
  padding: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 6px;
  color: #9aa3b2;
}

.hero {
  margin: 10px auto 34px;
}

.hero-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: #eef3f9;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-media picture {
  display: block;
  width: 100%;
}

.hero-copy {
  position: absolute;
  left: clamp(18px, 4vw, 48px);
  top: 50%;
  transform: translateY(-50%);
  width: min(410px, 42%);
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, rgba(8, 43, 82, 0.88), rgba(11, 79, 143, 0.66));
  box-shadow: 0 18px 45px rgba(8, 43, 82, 0.28);
  backdrop-filter: blur(5px);
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
  color: #fff;
}

.hero-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.content {
  display: grid;
  gap: 22px;
  padding-bottom: 48px;
}

article {
  min-width: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: var(--brand-dark);
  letter-spacing: 0;
}

h2 {
  margin-top: 34px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
  font-size: 28px;
}

h3 {
  margin-top: 22px;
  font-size: 21px;
}

.lead {
  font-size: 18px;
  color: #30394a;
}

.toc,
.panel,
.author-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.toc {
  margin: 22px 0;
}

.toc summary {
  cursor: pointer;
  padding: 16px 18px;
  color: var(--brand-dark);
  font-weight: 800;
  list-style: none;
}

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

.toc summary::after {
  content: "+";
  float: right;
  color: var(--accent-dark);
}

.toc[open] summary::after {
  content: "-";
}

.toc ol,
.toc ul {
  margin: 0;
  padding: 0 18px 18px 38px;
}

.toc a {
  text-decoration: none;
  font-weight: 700;
}

.panel {
  padding: 18px;
  margin: 18px 0;
}

.rating-box,
.bonus-grid,
.feature-grid {
  display: grid;
  gap: 14px;
}

.rating-box {
  grid-template-columns: 100px 1fr;
  align-items: center;
  background: #fff8df;
  border: 1px solid #efd07b;
  border-radius: 8px;
  padding: 18px;
}

.score {
  font-size: 48px;
  line-height: 1;
  color: var(--accent-dark);
  font-weight: 800;
}

.stars {
  color: var(--accent-dark);
  font-size: 22px;
}

.bonus-grid,
.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card strong {
  color: var(--brand-dark);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  background: #fff;
}

.info-table th,
.info-table td {
  padding: 11px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  color: #fff;
  background: var(--brand-dark);
}

.info-table tr:nth-child(even) td {
  background: #f8fafc;
}

.note {
  padding: 14px 16px;
  border-left: 4px solid var(--good);
  border-radius: 0 8px 8px 0;
  background: #effaf5;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 800;
  list-style: none;
}

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

.author-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  margin-top: 36px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--brand-dark);
  font-weight: 800;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #10151f;
  color: #d7deea;
  padding: 32px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: #fff;
  font-weight: 700;
}

.footer-note {
  margin: 14px 0 0;
  color: #aab5c7;
  font-size: 14px;
}

@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 24px);
    max-width: 720px;
  }

  .header-row {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 42px 190px;
    align-items: center;
    gap: 10px;
  }

  .brand img {
    width: 104px;
    max-height: 46px;
  }

  .site-menu {
    flex: 0 0 auto;
    grid-column: 3;
    margin-left: 0;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 6px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    font-size: 0;
  }

  .menu-toggle::before {
    content: "☰";
    font-size: 24px;
    line-height: 1;
  }

  .menu-check:checked + .menu-toggle::before {
    content: "×";
    font-size: 28px;
  }

  .nav-links {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 1px);
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .menu-check:not(:checked) ~ .nav-links {
    display: none;
  }

  .nav-links a {
    color: var(--brand-dark);
    text-shadow: none;
    padding: 10px 12px;
    border-radius: 6px;
  }

  .nav-links a:hover {
    background: var(--soft);
    text-decoration: none;
  }

  .header-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-column: 4;
    gap: 6px;
    margin-left: 0;
    flex: 0 0 190px;
    width: 190px;
    min-width: 0;
  }

  .header-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 38px;
    padding: 8px 9px;
    font-size: 13px;
    white-space: normal;
  }

  .hero {
    margin-top: 4px;
  }

  .hero-media {
    display: flex;
    flex-direction: column;
  }

  .hero-copy {
    position: static;
    transform: none;
    width: auto;
    padding: 18px 14px;
    border: 0;
    border-radius: 0;
    color: #fff;
    background: var(--brand-dark);
    box-shadow: none;
    backdrop-filter: none;
  }

  .hero-copy h1 {
    font-size: 24px;
    color: #fff;
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
  }

  .bonus-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .footer-row,
  .author-box {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  .wrap {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }

  .header-row {
    grid-template-columns: 78px minmax(0, 1fr) 36px 164px;
    gap: 5px;
  }

  .brand img {
    width: 78px;
  }

  .header-actions .btn {
    min-height: 36px;
    padding: 7px 2px;
    font-size: 8.5px;
  }

  .header-actions {
    gap: 4px;
    flex-basis: 164px;
    width: 164px;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }

  h2 {
    font-size: 24px;
  }

  .rating-box {
    grid-template-columns: 1fr;
  }

  .hero-copy p,
  article p,
  .card,
  .rating-box {
    overflow-wrap: anywhere;
  }
}
