:root {
  --bg: #090c24;
  --panel: #12163a;
  --panel-soft: #1a1f4d;
  --text: #f7f8ff;
  --muted: #c7c9e7;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ffb32c;
  --accent-2: #ff3fa4;
  --link: #80e9ff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 63, 164, 0.22), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(0, 209, 255, 0.16), transparent 32%),
    var(--bg);
  overflow-x: hidden;
}

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

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(9, 12, 36, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.breadcrumbs,
.hero,
.content,
.site-footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 22px;
}

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

.logo img {
  width: 174px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text);
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
  content: "";
}

.burger span {
  position: relative;
}

.burger span::before,
.burger span::after {
  position: absolute;
  left: 0;
}

.burger span::before {
  top: -7px;
}

.burger span::after {
  top: 7px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.main-nav a,
.footer-links a {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  border-color: transparent;
  color: #1b1025;
  background: linear-gradient(135deg, var(--accent), #ffd86b);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.breadcrumbs {
  padding: 18px 0 14px;
  font-size: 0.95rem;
  color: var(--muted);
}

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

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.5);
}

.hero {
  margin-bottom: 34px;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #080a20;
}

.hero-frame img {
  display: block;
  width: 100%;
}

.hero-copy {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(56%, 650px);
  padding: clamp(24px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background: linear-gradient(90deg, rgba(7, 9, 30, 0.88), rgba(7, 9, 30, 0.58) 68%, transparent);
}

.hero-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 460px;
  color: var(--muted);
  font-size: 1.05rem;
}

.content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 32px;
  align-items: start;
}

article,
.author-box {
  min-width: 0;
}

article > p:first-child {
  font-size: 1.08rem;
}

section,
details,
.author-box {
  padding: 24px;
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 22, 58, 0.78);
}

section section {
  padding: 0;
  border: 0;
  background: transparent;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

p:last-child,
dd:last-child {
  margin-bottom: 0;
}

details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

details ul,
details ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  overflow-wrap: anywhere;
}

caption {
  text-align: left;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 700;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: rgba(255, 255, 255, 0.08);
}

dt {
  font-weight: 700;
  margin-top: 16px;
}

dd {
  margin: 6px 0 0;
  color: var(--muted);
}

.author-box {
  position: sticky;
  top: 98px;
  color: var(--muted);
}

.site-footer {
  margin-top: 44px;
  border-top: 1px solid var(--line);
  background: rgba(6, 8, 26, 0.72);
}

.site-footer-inner {
  padding: 30px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

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

@media (max-width: 820px) {
  .header-inner,
  .breadcrumbs,
  .hero,
  .content,
  .site-footer-inner {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(116px, 1fr) 38px auto;
    gap: 8px;
  }

  .logo img {
    width: 124px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
  }

  .burger {
    display: inline-flex;
    width: 36px;
    height: 36px;
    order: 1;
    flex: 0 0 auto;
    justify-self: center;
  }

  .header-actions {
    order: 2;
    gap: 4px;
    flex: 0 0 auto;
    justify-self: end;
  }

  .header-actions .btn {
    min-width: 72px;
    min-height: 34px;
    padding: 6px 5px;
    font-size: 0.7rem;
  }

  .header-actions .btn-primary {
    min-width: 86px;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 1px);
    margin: 0;
    padding: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #10143a;
  }

  .main-nav a {
    padding: 12px 10px;
  }

  .menu-toggle:checked ~ .main-nav {
    display: flex;
  }

  .breadcrumbs {
    padding-top: 14px;
  }

  .hero-frame {
    background: var(--panel);
  }

  .hero-copy {
    position: static;
    width: 100%;
    padding: 22px;
    background: var(--panel);
  }

  .hero-copy h1 {
    font-size: clamp(1.45rem, 6.4vw, 2rem);
  }

  .content {
    display: block;
  }

  section,
  details,
  .author-box {
    padding: 18px;
  }

  .author-box {
    position: static;
  }

  .site-footer-inner {
    display: block;
  }

  .footer-links {
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    width: calc(100% - 16px);
    grid-template-columns: minmax(96px, 1fr) 34px auto;
    gap: 5px;
    padding: 0;
  }

  .logo img {
    width: 104px;
    height: 34px;
  }

  .burger {
    width: 34px;
    height: 34px;
  }

  .header-actions .btn {
    min-width: 58px;
    width: auto;
    padding: 6px 3px;
    font-size: 0.6rem;
  }

  .header-actions .btn-primary {
    min-width: 72px;
  }

  .hero-copy {
    padding: 18px;
  }

  th,
  td {
    padding: 10px;
  }

  table {
    display: block;
    overflow-x: auto;
  }
}
