:root {
  color-scheme: light;
  --ink: #141522;
  --ink-soft: #3b3d4d;
  --muted: #646471;
  --canvas: #f4f0e7;
  --surface: #fffdf8;
  --line: #d8d4ca;
  --violet: #4033c8;
  --violet-soft: #ebe8ff;
  --lime: #cbff5a;
  --header-height: 80px;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 24px); }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.65 "Avenir Next", "Manrope", "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
[hidden] { display: none !important; }
::selection { color: var(--ink); background: var(--lime); }
a { color: var(--violet); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, summary { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 5px; }
h2[tabindex="-1"]:focus, main:focus { outline: none; }
svg { flex: 0 0 auto; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 12px 18px; color: white; border-radius: 12px; background: var(--ink); transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 20; top: 0; border-bottom: 1px solid var(--line); background: rgba(244, 240, 231, .96); }
.header-inner { display: flex; min-height: var(--header-height); align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--ink); font-size: 25px; font-weight: 850; letter-spacing: -.05em; text-decoration: none; }
.brand img { border-radius: 11px; }
.brand-dot, .footer-brand span { color: var(--violet); }
.header-actions { display: flex; min-width: 0; align-items: center; gap: 12px; }
.open-app > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.open-app { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 18px; padding: 9px 18px; color: var(--ink); border: 1px solid var(--ink); border-radius: 12px; background: var(--lime); font-size: .875rem; font-weight: 750; text-decoration: none; }
.open-app:hover { background: #dcff94; }
.language-picker { position: relative; flex: 0 0 auto; }
.language-picker > summary { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid transparent; border-radius: 12px; font-size: .875rem; font-weight: 700; list-style: none; }
summary::-webkit-details-marker { display: none; }
.language-picker > summary:hover, .language-picker[open] > summary { border-color: var(--line); background: var(--surface); }
.language-picker[open] .picker-chevron { transform: rotate(180deg); }
.language-menu { position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: 190px; padding: 7px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: 0 12px 30px #1415221a; }
.language-menu a { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; color: var(--ink); border-radius: 9px; font-size: .875rem; text-decoration: none; }
.language-menu a:hover { background: var(--canvas); }
.language-menu a[aria-current] { color: var(--violet); background: var(--violet-soft); font-weight: 750; }

.document-hero { padding-top: 36px; }
.back-home { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--muted); font-size: .875rem; font-weight: 650; text-decoration: none; }
.back-home:hover { color: var(--violet); }
.document-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: .8125rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.eyebrow > span { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 5px var(--violet-soft); }
.updated { margin: 0; color: var(--muted); font-size: .875rem; }
.updated time { color: var(--ink-soft); }
h1 { max-width: 960px; margin: 22px 0 18px; font-size: clamp(2.4rem, 5vw, 4.5rem); font-weight: 750; line-height: 1.08; letter-spacing: -.055em; overflow-wrap: anywhere; }
.document-intro { max-width: 760px; margin: 0; color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.1875rem); line-height: 1.65; }
.legal-tabs { display: flex; gap: 8px; margin-top: 32px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-tabs a { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 11px 20px; color: var(--ink-soft); border: 1px solid transparent; border-radius: 12px; font-size: .9375rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.legal-tabs a:hover { border-color: var(--line); background: var(--surface); }
.legal-tabs a[aria-current="page"] { color: var(--surface); border-color: var(--ink); background: var(--ink); }
.tab-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.document-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); align-items: start; gap: clamp(40px, 6vw, 88px); padding: 44px 0 70px; }
.document-sidebar { min-width: 0; height: 100%; }
.sidebar-sticky { position: sticky; top: calc(var(--header-height) + 24px); max-height: calc(100dvh - var(--header-height) - 48px); overflow-y: auto; scrollbar-width: thin; padding: 4px 5px 10px 4px; }
.sidebar-label { margin: 0 0 18px; color: var(--muted); font-size: .8125rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.contents-list { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.contents-list a { display: flex; min-height: 44px; align-items: start; gap: 12px; padding: 10px 9px; color: var(--ink-soft); border-radius: 9px; font-size: .875rem; font-weight: 550; line-height: 1.45; text-decoration: none; overflow-wrap: anywhere; }
.contents-list a:hover { color: var(--violet); background: var(--violet-soft); }
.contents-number { flex: 0 0 20px; margin-top: 1px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.document { min-width: 0; }
.document-summary { padding: 26px 30px; border: 1px solid #d6cff3; border-radius: 20px; background: var(--violet-soft); }
.summary-heading { display: flex; align-items: center; gap: 12px; }
.summary-heading > span { color: var(--violet); font-size: 24px; }
.summary-heading h2 { margin: 0; font-size: 1.125rem; font-weight: 750; letter-spacing: -.02em; }
.document-summary ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }
.document-summary li::marker { color: var(--violet); }
.reading-body { max-width: 74ch; }
.legal-section { padding: 38px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; gap: 14px; margin-bottom: 17px; }
.section-number { flex: 0 0 27px; color: var(--violet); font-size: .8125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 2.2vw, 1.625rem); font-weight: 750; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.legal-section p, .legal-section li { color: var(--ink-soft); overflow-wrap: anywhere; }
.legal-section p { margin: 0 0 16px; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { display: grid; gap: 12px; margin: 18px 0; padding-left: 22px; }
.legal-section li::marker { color: var(--violet); }
.legal-section .section-links { gap: 6px; padding: 0; list-style: none; }
.section-links a { display: inline-flex; min-height: 44px; align-items: center; gap: 12px; font-size: .9375rem; font-weight: 650; }
.table-scroll { overflow-x: auto; max-width: 100%; margin: 24px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; font-size: .875rem; line-height: 1.6; }
th, td { min-width: 135px; padding: 15px 17px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead { background: #eae6dc; }
thead th { color: var(--ink); font-weight: 750; }
tbody th { width: 26%; color: var(--ink); font-weight: 650; }
td { color: var(--ink-soft); }
tr:last-child > * { border-bottom: 0; }

.contact-card { margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.contact-icon { display: grid; width: 40px; height: 40px; margin-bottom: 17px; border-radius: 11px; background: var(--lime); place-items: center; }
.contact-card h2 { margin: 0 0 8px; font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.015em; }
.contact-card p { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.contact-email { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; font-size: .875rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-email > span { flex: 0 0 auto; }
.contact-card .contact-operator { margin-top: 16px; padding-top: 16px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.contact-operator > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .75rem; }
.request-reference { margin-bottom: 24px; padding: 24px; border: 1px solid #aaa2e0; border-radius: 16px; background: var(--surface); }
.request-reference h2 { margin: 0 0 12px; font-size: 1.125rem; }
.request-reference code { display: inline-block; max-width: 100%; padding: 6px 10px; color: var(--ink); border-radius: 7px; background: var(--canvas); font-size: .875rem; overflow-wrap: anywhere; }
.request-reference p { margin: 12px 0 0; color: var(--ink-soft); font-size: .9375rem; }
.document-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.document-actions a, .document-actions button { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; padding: 8px 0; color: var(--ink-soft); border: 0; background: none; font-size: .875rem; font-weight: 650; text-decoration: none; }
.document-actions a:hover, .document-actions button:hover { color: var(--violet); }
.mobile-contents, .mobile-contact { display: none; }

.site-footer { display: flex; align-items: end; justify-content: space-between; gap: 24px 40px; padding: 28px 0 38px; border-top: 1px solid var(--line); }
.footer-brand { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-size: 23px; font-weight: 850; letter-spacing: -.045em; text-decoration: none; }
.footer-identity p { margin: 8px 0 0; color: var(--muted); font-size: .8125rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer nav a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink-soft); font-size: .8125rem; text-decoration: none; }
.site-footer nav a[aria-current] { color: var(--violet); text-decoration: underline; }

@media (max-width: 960px) {
  .shell { width: min(760px, calc(100% - 48px)); }
  .document-layout { display: block; padding-top: 28px; }
  .document-sidebar { display: none; }
  .mobile-contact { display: block; }
  .mobile-contents { display: block; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
  .mobile-contents > summary { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 18px; font-size: .9375rem; font-weight: 700; list-style: none; }
  .mobile-contents[open] > summary { border-bottom: 1px solid var(--line); }
  .mobile-contents[open] > summary svg { transform: rotate(180deg); }
  .mobile-contents nav { padding: 10px; }
  .site-footer { align-items: start; flex-direction: column; }
}

@media (max-width: 520px) {
  :root { --header-height: 72px; }
  .shell { width: calc(100% - 32px); }
  .header-inner { gap: 10px; }
  .brand { gap: 8px; font-size: 23px; }
  .brand img { width: 32px; height: 32px; }
  .header-actions { gap: 4px; }
  .open-app { min-width: 0; max-width: 140px; gap: 7px; padding-inline: 11px; font-size: .8125rem; line-height: 1.4; }
  .language-picker > summary { gap: 5px; padding-inline: 7px; }
  .language-picker > summary > svg:first-child { display: none; }
  .document-hero { padding-top: 20px; }
  .document-meta { gap: 16px; margin-top: 18px; }
  .eyebrow, .updated { font-size: .8125rem; }
  h1 { margin-top: 20px; font-size: 2.5rem; }
  h1:lang(ru) { font-size: clamp(1.75rem, 8.75vw, 2.5rem); }
  .legal-tabs { flex-wrap: wrap; gap: 6px; margin-top: 26px; padding-bottom: 22px; }
  .legal-tabs a { max-width: 100%; gap: 6px; padding: 10px 12px; font-size: .875rem; overflow-wrap: normal; text-align: center; }
  .tab-dot { display: none; }
  .document-layout { padding: 24px 0 44px; }
  .document-summary { padding: 20px; border-radius: 16px; }
  .document-summary ul { font-size: 1rem; }
  .legal-section { padding: 30px 0; }
  .section-heading { gap: 10px; }
  .section-number { flex-basis: 22px; }
  .contact-card { padding: 22px; }
  th, td { min-width: 150px; padding: 13px; }
  .site-footer { gap: 15px; padding-top: 24px; }
  .site-footer nav { column-gap: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button, summary { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}

@media print {
  :root { --ink: #000; --ink-soft: #222; --muted: #444; --line: #ccc; }
  @page { margin: 18mm; }
  body { background: #fff; font-family: system-ui, sans-serif; font-size: 10pt; line-height: 1.5; }
  .shell { width: 100%; max-width: none; }
  .site-header, .skip-link, .back-home, .legal-tabs, .document-sidebar, .mobile-contents, .document-actions, .site-footer nav { display: none !important; }
  .document-hero { padding: 0 0 20px; }
  .document-meta { margin-top: 0; }
  h1 { margin-top: 15px; font-size: 28pt; }
  .document-intro { max-width: none; font-size: 11pt; }
  .document-layout { display: block; padding: 0; }
  .reading-body { max-width: none; }
  .document-summary { padding: 16px; background: #fff; border-color: #bbb; }
  .legal-section { padding: 20px 0; }
  .section-heading { break-after: avoid; page-break-after: avoid; }
  .section-heading h2 { font-size: 15pt; }
  p, li { orphans: 3; widows: 3; }
  .table-scroll { overflow: visible; }
  table { font-size: 9pt; }
  th, td { min-width: 0; padding: 9px; }
  thead { display: table-header-group; }
  tr { break-inside: avoid; }
  .mobile-contact { display: block; break-inside: avoid; padding: 16px; background: #fff; }
  .contact-icon { display: none; }
  .request-reference { break-inside: avoid; }
  a { color: #000; }
  .section-links a::after { content: " (" attr(href) ")"; font-size: 8pt; font-weight: 400; overflow-wrap: anywhere; }
  .site-footer { margin-top: 24px; padding-bottom: 0; }
}
