:root {
  --ink: #1a2330;
  --muted: #5c6b7c;
  --line: #d5e0ea;
  --paper: #eef3f7;
  --card: #ffffff;
  --sea: #0e5cad;
  --sea-deep: #08386b;
  --foam: #e5f1fb;
  --warn: #7a4a12;
  --warn-bg: #fff6ea;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

img { max-width: 100%; height: auto; }

a { color: var(--sea); text-decoration-thickness: 1px; text-underline-offset: 3px; }

a:hover { color: var(--sea-deep); }

a:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

body.has-ads .site-header { position: fixed; left: 0; right: 0; }

body.has-ads { padding-top: 158px; }

.bar {
  max-width: 1040px;
  margin: 0 auto;
  min-height: 68px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

.nav-btn {
  display: none;
}

.nav {
  display: flex;
  gap: 6px 16px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
}

.nav a[aria-current="page"] {
  color: var(--sea);
  font-weight: 700;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 72px;
}

.hero {
  padding: 8px 0 12px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sea);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  margin: 0 0 12px;
  font-size: 34px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 24px;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 4px solid var(--sea);
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 18px;
}

p { margin: 0 0 1rem; }

.dek {
  margin: 0;
  max-width: 46rem;
  color: #314255;
  font-size: 18px;
}

.note {
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--warn-bg);
  border: 1px solid #f0dfc4;
  border-radius: 12px;
  color: var(--warn);
  font-size: 15px;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 28px;
  margin: 22px 0 28px;
}

.shots.single { grid-template-columns: minmax(0, 420px); }

figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 14px 12px;
}

figure img {
  display: block;
  width: min(100%, 390px);
  margin: 0 auto;
  border-radius: 14px;
  background: #101820;
}

figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.6;
}

th, td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th { background: var(--foam); font-weight: 700; }

tr:last-child td { border-bottom: 0; }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 18px 8px;
  margin: 12px 0 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer .bar {
  min-height: 0;
  padding-top: 22px;
  padding-bottom: 28px;
  display: block;
}

.site-footer p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; }

.error-code {
  margin: 0;
  font-size: 64px;
  line-height: 1;
  color: var(--sea);
  letter-spacing: -0.04em;
}

@media (max-width: 760px) {
  h1 { font-size: 28px; }
  .shots, .shots.single { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .page { padding-top: 18px; }
  .bar { flex-wrap: nowrap; position: relative; }
  .nav-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 0;
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-btn span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 160ms ease, opacity 160ms ease;
  }
  .nav-toggle:checked + .nav-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-btn span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    left: 18px;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(16, 42, 77, 0.12);
  }
  .nav a {
    padding: 11px 16px;
  }
  .nav-toggle:checked ~ .nav { display: flex; }
}
