@font-face { font-family: 'AvenirNext'; src: url('/assets/fonts/AvenirNextCyr-Light.ttf') format('truetype'); font-weight: 300; font-display: block; }
@font-face { font-family: 'AvenirNext'; src: url('/assets/fonts/AvenirNextCyr-Regular.ttf') format('truetype'); font-weight: 400; font-display: block; }
@font-face { font-family: 'AvenirNext'; src: url('/assets/fonts/AvenirNextCyr-Medium.ttf') format('truetype'); font-weight: 500; font-display: block; }
@font-face { font-family: 'AvenirNext'; src: url('/assets/fonts/AvenirNextCyr-Bold.ttf') format('truetype'); font-weight: 700; font-display: block; }
@font-face { font-family: 'AvenirNext'; src: url('/assets/fonts/AvenirNextCyr-Heavy.ttf') format('truetype'); font-weight: 800; font-display: block; }

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

:root {
  --bg: #e4e7ed;
  --text: #111118;
  --muted: #5e5878;
  --accent: #2D3851;
  --font: 'AvenirNext', system-ui, -apple-system, sans-serif;
}

html, body {
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

body {
  padding: 64px 24px;
}

.doc {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(45,56,81,0.15);
  border-radius: 20px;
  padding: 48px 56px;
}

.doc header {
  border-bottom: 1px solid rgba(45,56,81,0.25);
  padding-bottom: 24px;
  margin-bottom: 40px;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.doc-social {
  display: flex;
  gap: 8px;
  align-items: center;
}

.doc-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #2D3851;
  transition: filter 0.2s, transform 0.2s;
  text-decoration: none;
}

.doc-social a:hover {
  filter: brightness(0.88);
  transform: translateY(-2px);
}

.doc-social svg {
  width: 14px;
  height: 14px;
  fill: #ffffff;
}

.doc header .brand {
  text-decoration: none;
  display: inline-block;
  transition: transform 0.3s ease;
}

.doc header .brand:hover {
  transform: translateY(-5px);
}

.doc header .brand img {
  height: 56px;
  width: auto;
  display: block;
}

.doc header h1 {
  margin: 12px 0 4px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.doc header .meta {
  font-size: 0.88rem;
  color: var(--muted);
}

h2 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
  margin: 36px 0 8px;
}

p {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
}

ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.72;
}

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

a:hover { text-decoration: underline; }

footer {
  margin: 40px -56px -48px;
  padding: 20px 56px 0;
  background: #1B2231;
  color: #ffffff;
  border-radius: 0 0 20px 20px;
  font-size: 0.96rem;
  font-weight: 400;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/assets/images/grain.png');
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

footer .footer-inner {
  position: relative;
  z-index: 1;
}

footer a { color: #ffffff; white-space: nowrap; font-size: inherit; }
footer a:hover { opacity: 0.75; text-decoration: none; }

.footer-links a span,
.footer-cookie-btn span { display: inline-block; transition: transform 0.2s; }
.footer-links a:hover span,
.footer-cookie-btn:hover span { transform: translateY(-2px); }

.footer-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: nowrap;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
}

.footer-links a + a::before {
  content: '·';
  padding: 0 10px;
  color: rgba(255,255,255,0.5);
}

.footer-copy { white-space: nowrap; }

.footer-cookie-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.footer-cookie-btn:hover { opacity: 0.75; }

.footer-cookie-bar {
  position: relative;
  z-index: 1;
  margin: 20px -56px 0;
  padding: 16px 56px;
  background: #7D89A4;
  text-align: center;
}

.nav-lang {
  position: fixed;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #111118;
  text-decoration: none;
  z-index: 100;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 999px;
  padding: 6px 12px 6px 8px;
  font-family: var(--font);
  transition: transform 0.3s ease;
}

.nav-lang:hover { transform: translateY(-5px); }

.nav-lang-icon {
  width: 16px;
  height: 16px;
  stroke: #000000;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

#nav-cta {
  font-family: var(--font);
  font-size: 0.88rem;
  color: #111118;
}

.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 620px;
  margin: 0 auto;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #ffffff;
  border: 1px solid rgba(17,17,24,0.12);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.18);
}

.cookie-consent p {
  margin: 0;
  color: #111118;
  font-size: 0.86rem;
  line-height: 1.35;
}

.cookie-consent-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-consent-btn {
  border: none;
  border-radius: 10px;
  background: #7D89A4;
  color: #ffffff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 9px 13px;
}

.cookie-consent-btn.secondary {
  background: transparent;
  color: #111118;
  border: 1px solid rgba(17,17,24,0.16);
}

@media (max-width: 799px) {
  footer { border-radius: 0 0 20px 20px; }
  .footer-inner { flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
  .footer-links a + a::before { content: none; padding: 0; }
  .footer-copy { white-space: normal; text-align: center; }
}

@media (max-width: 640px) {
  body { padding: 24px 16px; }
  .doc { padding: 32px 24px; }
  footer { margin: 24px -24px -32px; padding: 20px 24px 0; }
  .footer-cookie-bar { margin: 16px -24px 0; padding: 14px 24px; }
  .nav-lang { font-size: 0.78rem; padding: 5px 10px 5px 7px; top: 16px; right: 16px; }
  #nav-cta { font-size: 0.78rem; }
  .cookie-consent { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-consent-actions { justify-content: center; }
}
