@font-face {
  font-family: 'Golos Text';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/golos-text-cyrillic.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(../fonts/golos-text-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;
}

:root {
  --navy: #39457c;
  --navy-deep: #2b3463;
  --accent: #7282cb;
  --accent-soft: #e8ebf8;
  --muted: #8f96b8;
  --text: #39457c;
  --text-body: #4a5480;
  --bg: #ffffff;
  --bg-soft: #f5f9ff;
  --line: #e6eaf5;
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Golos Text', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover, a:focus-visible { color: var(--navy); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { color: var(--text); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent); color: #fff; }
.btn-outline { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover, .btn-light:focus-visible { background: var(--accent-soft); color: var(--navy); }

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(57, 69, 124, .08); }
.site-header .container { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: flex; align-items: baseline; gap: 12px; color: var(--navy); white-space: nowrap; }
.logo:hover { color: var(--navy); }
.logo-mark { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.logo-mark span { color: var(--accent); }
.logo-slogan { font-size: 13px; color: var(--muted); }

.nav { margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 14px; border-radius: 10px; color: var(--text); font-size: 15px; font-weight: 500; }
.nav a:hover, .nav a:focus-visible, .nav .active > a { background: var(--bg-soft); color: var(--accent); }

.header-phone { color: var(--accent); font-weight: 600; font-size: 15px; white-space: nowrap; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  position: relative;
  transition: transform .25s, background .25s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* hero */

.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--navy); font-size: 13px; font-weight: 500; letter-spacing: .02em; }
.hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -.02em; margin-bottom: 20px; }
.hero h1 span { color: var(--accent); }
.hero-lead { font-size: 19px; color: var(--text-body); margin: 0 0 32px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.scheme { background: var(--bg-soft); border-radius: 24px; padding: 32px; display: grid; gap: 14px; position: relative; overflow: hidden; }
.scheme::before { content: ''; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--accent-soft); }
.scheme > * { position: relative; }
.scheme-title { font-size: 13px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.scheme-node { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: 0 2px 10px rgba(57, 69, 124, .06); }
.scheme-node b { display: block; color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.3; }
.scheme-node small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.scheme-node.is-core { background: var(--navy); }
.scheme-node.is-core b { color: #fff; }
.scheme-node.is-core small { color: #c9cee6; }
.scheme-icon { flex: 0 0 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.scheme-node.is-core .scheme-icon { background: var(--accent); color: #fff; }
.scheme-icon svg { width: 22px; height: 22px; }
.scheme-link { display: flex; justify-content: center; color: var(--accent); height: 18px; }
.scheme-link svg { width: 18px; height: 18px; }

/* facts */

.facts { padding: 16px 0 40px; }
.facts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.fact { background: var(--bg-soft); border-radius: var(--radius); padding: 24px; }
.fact b { display: block; color: var(--navy); font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 6px; }
.fact span { display: block; color: var(--muted); font-size: 15px; line-height: 1.4; }

/* home content */

.section { padding: 40px 0 72px; }
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; }

.home-content > p { max-width: 52em; font-size: 18px; }
.home-content .page-header { margin: 64px 0 24px; }
.home-content .page-header h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.01em; }
.home-content .page-header h2 a { color: inherit; }
.home-content .page-header h2 a:hover { color: var(--accent); }

.home-content .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 0 0 20px; }
.home-content .panel {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.home-content .panel:hover { border-color: var(--accent); box-shadow: 0 12px 32px rgba(57, 69, 124, .1); transform: translateY(-2px); }
.home-content .panel-heading { margin-bottom: 12px; }
.home-content .panel-title { margin: 0; font-size: 22px; }
.home-content .panel-title::before {
  content: '';
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237282cb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 9h8M8 13h6M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1-3 3h-5l-5 3v-3H6a3 3 0 0 1-3-3V7a3 3 0 0 1 3-3z'/%3E%3C/svg%3E") center / 24px no-repeat;
}
.home-content .col-md-6:nth-child(2) .panel-title::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237282cb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10h14l-4-4M17 14H3l4 4'/%3E%3C/svg%3E");
}
.home-content .panel-body { display: flex; flex-direction: column; flex: 1; }
.home-content .panel-body p { margin: 0 0 12px; }
.home-content .panel-body p:last-child { margin: auto 0 0; padding-top: 8px; }
.home-content .panel-body p:last-child a { font-weight: 600; }
.home-content .panel-body p:last-child a::after { content: ' →'; }

.home-content .col-md-4 {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--text);
  font-weight: 500;
}
.home-content .col-md-4 a { font-weight: 600; }

/* inner pages */

.page-hero { background: var(--bg-soft); padding: 40px 0 44px; }
.page-hero h1 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.01em; margin: 0; max-width: 24em; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 14px; color: var(--muted); }
.breadcrumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

.page-body { padding: 48px 0 72px; }

.prose { max-width: 860px; overflow-wrap: break-word; }
.prose h2 { font-size: 26px; margin: 1.8em 0 .6em; }
.prose h3 { font-size: 21px; margin: 1.6em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose ul li { list-style: none; position: relative; margin-bottom: .45em; }
.prose ul li::before { content: ''; position: absolute; left: -1.1em; top: .68em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.prose ol li { margin-bottom: .45em; }
.prose ol li::marker { color: var(--accent); font-weight: 600; }
.prose strong { color: var(--text); }
.prose table { display: block; width: 100% !important; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 0 0 1.5em; font-size: 15px; }
.prose td, .prose th { padding: 10px 12px; vertical-align: top; }
.prose table[border="1"] td { border: 1px solid var(--line); }
.prose img { border-radius: var(--radius-sm); }
.prose [class^="WordSection"] { max-width: 100%; }

.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }

/* cta and footer */

.cta { padding: 0 0 72px; }
.cta-box {
  background: var(--navy);
  color: #c9cee6;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-box::after { content: ''; position: absolute; right: -60px; bottom: -120px; width: 280px; height: 280px; border-radius: 50%; background: var(--accent); opacity: .25; }
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); margin-bottom: 10px; }
.cta-box p { margin: 0; max-width: 36em; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-actions .btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta-actions .btn-outline:hover, .cta-actions .btn-outline:focus-visible { background: #fff; border-color: #fff; color: var(--navy); }

.site-footer { background: var(--bg-soft); color: var(--muted); font-size: 15px; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-size: 15px; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-body); }
.footer-grid a:hover { color: var(--accent); }
.footer-about p { margin: 12px 0 0; max-width: 26em; }
.footer-note { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.55; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-note p { margin: 0; max-width: 60em; }
.footer-note a { color: var(--accent); }

/* cookie */

.cookie {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(57, 69, 124, .18);
  font-size: 15px;
  line-height: 1.55;
  transform: translateY(16px);
  opacity: 0;
  transition: opacity .3s, transform .3s;
}
.cookie[hidden] { display: none; }
.cookie.is-visible { transform: none; opacity: 1; }
.cookie p { margin: 0; }
.cookie .btn { min-height: 44px; padding: 10px 28px; }

/* responsive */

@media (max-width: 1080px) {
  .header-phone { display: none; }
  .logo-slogan { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(57, 69, 124, .12);
    padding: 12px 16px 20px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .nav .nav-phone { display: block; }

  .hero { padding: 40px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-box { grid-template-columns: 1fr; padding: 36px 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (min-width: 901px) {
  .nav .nav-phone { display: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .logo-mark { font-size: 24px; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; }
  .scheme { padding: 20px; border-radius: 20px; }
  .facts-grid { gap: 10px; }
  .fact { padding: 18px 16px; }
  .fact b { font-size: 24px; }
  .fact span { font-size: 13px; }
  .home-content > p { font-size: 16px; }
  .home-content .page-header { margin-top: 48px; }
  .home-content .panel { padding: 22px; }
  .section { padding-bottom: 48px; }
  .page-hero { padding: 28px 0 32px; }
  .page-body { padding: 32px 0 48px; }
  .prose h2 { font-size: 22px; }
  .prose td { width: auto; padding: 8px 6px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 18px; }
  .cookie .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
