/* Статические юридические страницы (privacy, oferta, partner_agreement) — стили в духе лендинга */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.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;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-latin.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;
}

html {
  --bg: #070A12;
  --bg2: #0B1224;
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #eaf0ff;
  --muted: rgba(234, 240, 255, 0.78);
  --muted2: rgba(234, 240, 255, 0.62);
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --accent3: #34d399;
  --danger: #fb7185;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Inter,
    Arial,
    'Noto Sans',
    'Helvetica Neue',
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 900px at 15% 10%, rgba(167, 139, 250, 0.24), transparent 55%),
    radial-gradient(900px 700px at 85% 25%, rgba(110, 231, 255, 0.2), transparent 55%),
    radial-gradient(1000px 900px at 45% 100%, rgba(52, 211, 153, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Ссылки в тексте (не кнопки внизу статьи) */
.articleContent a:not(.btn) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.articleContent a:not(.btn):hover {
  filter: brightness(1.08);
}

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

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 10, 18, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.logo {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background:
    radial-gradient(10px 10px at 30% 30%, rgba(255, 255, 255, 0.65), transparent 60%),
    linear-gradient(135deg, rgba(110, 231, 255, 0.85), rgba(167, 139, 250, 0.85));
  box-shadow: 0 14px 35px rgba(110, 231, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}
.nav a {
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.nav a:hover {
  opacity: 1;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s ease;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-family: inherit;
}
.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.08);
}
.btn:active {
  transform: translateY(0);
}
.btn.primary {
  border: none;
  background: linear-gradient(90deg, rgba(110, 231, 255, 0.95), rgba(167, 139, 250, 0.95));
  color: #061018;
  box-shadow: 0 22px 60px rgba(110, 231, 255, 0.18);
}
.btn.primary:hover {
  filter: saturate(1.05) brightness(1.03);
}
.menuBtn {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  position: relative;
  flex: 0 0 auto;
}
.menuBtn .hamburger {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}
.menuBtn .hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.menuBtn .hamburger span:nth-child(1) {
  top: 0;
}
.menuBtn .hamburger span:nth-child(2) {
  top: 6px;
}
.menuBtn .hamburger span:nth-child(3) {
  top: 12px;
}

.footer {
  padding: 18px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted2);
  font-size: 13px;
}
.footerRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Mobile menu */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 60;
}
.drawer.open {
  display: block;
}
.panel {
  position: absolute;
  right: 12px;
  top: 12px;
  left: 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(12, 16, 30, 0.92);
  backdrop-filter: blur(16px);
  padding: 14px;
  box-shadow: var(--shadow);
}
.panel a {
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  margin-top: 10px;
  font-weight: 600;
}
.panel a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.pageHero {
  padding: 40px 0 20px;
}
.pageHero h1 {
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.pageHero p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 60ch;
  margin: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: var(--accent);
  transition: opacity 0.15s;
}
.breadcrumb a:hover {
  opacity: 0.8;
}
.breadcrumb .sep {
  opacity: 0.4;
}

.articleContent {
  max-width: 760px;
  padding-bottom: 60px;
}
.articleContent .articleMeta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted2);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.articleContent h2 {
  font-size: 22px;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.articleContent h3 {
  font-size: 18px;
  margin: 24px 0 10px;
}
.articleContent p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 16px;
}
.articleContent ul,
.articleContent ol {
  display: block;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 18px;
  padding-left: 1.35em;
  list-style-position: outside;
}
.articleContent ol {
  padding-left: 1.5em;
}
.articleContent li {
  display: list-item;
  margin: 0 0 10px;
}
.articleContent li:last-child {
  margin-bottom: 0;
}
.articleContent h2 + ul,
.articleContent h2 + ol {
  margin-top: 4px;
}
.articleContent p + ul,
.articleContent p + ol {
  margin-top: 2px;
}
.articleContent blockquote {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: rgba(110, 231, 255, 0.06);
  color: var(--muted);
  font-style: italic;
  line-height: 1.65;
}
.articleContent blockquote p {
  margin: 0 0 0.65em;
}
.articleContent blockquote p:last-child {
  margin-bottom: 0;
}
.articleContent strong {
  color: var(--text);
}

.articleNav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 40px;
  margin-top: 24px;
}
.articleNav .btn {
  font-size: 14px;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }
  .menuBtn {
    display: inline-flex;
  }
  .actions > .btn.primary {
    display: none;
  }
}

@media (max-width: 768px) {
  .articleContent h2 {
    font-size: 20px;
    margin: 24px 0 10px;
  }
  .articleContent h3 {
    font-size: 16px;
    margin: 18px 0 8px;
  }
  .pageHero {
    padding: 30px 0 16px;
  }
  .pageHero h1 {
    font-size: clamp(22px, 5vw, 32px);
  }
}

@media (max-width: 520px) {
  .container {
    padding: 0 16px;
  }
  .footerRow {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footerRow nav {
    gap: 12px !important;
  }
  .footer {
    padding: 16px 0 24px;
  }
  .articleContent {
    padding-bottom: 40px;
  }
  .articleContent .articleMeta {
    font-size: 12px;
    margin-bottom: 18px;
  }
  .articleContent p {
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 12px;
  }
  .articleContent ul,
  .articleContent ol {
    font-size: 14px;
    padding-left: 18px;
  }
  .articleContent blockquote {
    padding: 12px 14px;
    font-size: 14px;
    margin: 16px 0;
  }
  .articleNav {
    padding: 16px 0 28px;
    margin-top: 18px;
    gap: 10px;
  }
  .articleNav .btn {
    font-size: 13px;
  }
  .breadcrumb {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .pageHero {
    padding: 20px 0 12px;
  }
  .pageHero h1 {
    font-size: clamp(20px, 6vw, 28px);
    margin-bottom: 8px;
  }
  .pageHero p {
    font-size: 14px;
  }
  .panel {
    left: 8px;
    right: 8px;
    top: 8px;
    padding: 12px;
  }
  .panel a {
    padding: 14px 12px;
    font-size: 15px;
    border-radius: 12px;
  }
}
