@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-text-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/golos-text-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-soft: #faf9f6;
  --surface-sand: #edeae3;
  --text: #18181b;
  --text-secondary: #57534e;
  --text-muted: #78716c;
  --border: rgba(24, 24, 27, 0.10);
  --border-strong: rgba(24, 24, 27, 0.18);
  --accent: #1e56a0;
  --accent-hover: #174480;
  --pine: #1b6b4f;
  --warn: #a15c07;
  --warn-bg: #fdf8ee;
  --warn-border: #ead9b4;
  --radius-card: 16px;
  --radius-md: 10px;
  --shadow-card: 0 1px 2px rgba(24, 24, 27, 0.04), 0 12px 28px -16px rgba(24, 24, 27, 0.12);
  --max-width: 920px;
}

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

html {
  font-family: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  font-feature-settings: "cv02", "cv03", "cv04";
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 245, 241, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 58px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text);
  color: #ffffff;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 11px;
  border-radius: 8px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.nav-links a:hover {
  background: rgba(24, 24, 27, 0.05);
  color: var(--text);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(24, 24, 27, 0.06);
}

/* Main */
.site-main {
  flex: 1;
  padding: 28px 0 64px;
}

/* Hero */
.hero {
  max-width: 720px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  color: var(--text-secondary);
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pine);
  flex-shrink: 0;
}

.hero-sep {
  color: rgba(24, 24, 27, 0.25);
}

/* Editor host — single surface (no double nested box!) */
.editor-section {
  margin-bottom: 48px;
}

.editor-noscript {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--warn);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

/* Editorial below-the-fold sections */
.editorial-section {
  padding-top: 32px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

.editorial-section:first-of-type {
  margin-top: 0;
}

.editorial-head {
  margin-bottom: 18px;
}

.editorial-head h2 {
  margin: 0;
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.editorial-caption {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Technical specs spoiler */
.tech-spoiler {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
}

.tech-spoiler-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.tech-spoiler-summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
}

.tech-spoiler[open] .tech-spoiler-summary::after {
  content: "−";
  color: var(--text);
}

.tech-spoiler-title {
  display: block;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
}

.tech-spoiler-sub {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tech-spoiler-body {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.tech-spoiler .spec-card {
  border: none;
  border-radius: 0;
}

.tech-spoiler .req-table th,
.tech-spoiler .req-table td {
  padding-left: 0;
  padding-right: 12px;
}

/* Requirements specification table */
.spec-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.req-table tr {
  border-bottom: 1px solid var(--border);
}

.req-table tr:last-child {
  border-bottom: none;
}

.req-table th,
.req-table td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
}

.req-table th {
  width: 38%;
  color: var(--text-secondary);
  font-weight: 500;
}

.req-table td {
  color: var(--text);
}

@media (max-width: 560px) {
  .req-table tr {
    display: flex;
    flex-direction: column;
    padding: 11px 16px;
    gap: 2px;
  }
  .req-table th,
  .req-table td {
    width: 100%;
    padding: 0;
  }
  .req-table th {
    font-size: 0.8125rem;
  }
}

/* Rejection reasons */
.reasons-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.reasons-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.reasons-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #b8533b;
}

/* FAQ accordion (clean editorial hairlines, 0 JS) */
.faq-list {
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 500;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.14s ease;
}

.faq-item summary:hover {
  color: var(--accent);
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.16s ease;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--text);
}

.faq-answer {
  padding: 0 28px 18px 0;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 740px;
}

/* Related links */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.35;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.related-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.15s ease, color 0.15s ease;
}

.related-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 14px -8px rgba(24, 24, 27, 0.18);
  text-decoration: none;
}

.related-card:hover .related-arrow {
  color: var(--text);
  transform: translateX(2px);
}

/* Legal pages */
.content-section.legal-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  max-width: 780px;
}

.legal-article h1 {
  margin: 0 0 8px;
  font-size: 1.625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.legal-updated {
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-article h2 {
  margin: 26px 0 10px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.legal-article p,
.legal-article li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.legal-article strong {
  color: var(--text);
  font-weight: 600;
}

.legal-article ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

/* Guides index & SEO article prose */
.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

@media (min-width: 680px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.guide-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 6px 18px -10px rgba(24, 24, 27, 0.18);
  text-decoration: none;
}

.guide-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guide-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.guide-card-desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.guide-article {
  max-width: 740px;
}

.guide-block + .guide-block {
  margin-top: 28px;
}

.guide-block h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.guide-block p {
  margin: 0 0 12px;
  font-size: 0.96875rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.guide-bullets {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 40px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-directory {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding-bottom: 28px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 640px) {
  .footer-directory {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  width: fit-content;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-note {
  margin: 0;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

@media (min-width: 720px) {
  .container {
    padding: 0 24px;
  }

  .site-main {
    padding: 36px 0 76px;
  }

  .hero {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.0625rem;
  }

  .content-section.legal-article {
    padding: 36px 40px;
  }

  .footer-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
