
:root {
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text: #2d3748;
  --text-muted: rgba(0,0,0,0.5);
  --accent: #3182ce;
  --accent-rgb: 49,130,206;
  --accent2: #b131ce;
  --accent2-rgb: 177,49,206;
  --accent3: #46d3a2;
  --accent3-rgb: 70,211,162;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --font: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --bodyBG: #f0f4f8;
  --textColor1: #2d3748;
  --textColor2: #ffffff;
  --textSecondary: #5e6674;
  --textMuted: #8f96a0;
  --secondStyleColor: #3182ce;
  --bgCard: #ffffff;
  --bgAlt: #e0e5ea;
  --borderSubtle: rgba(0,0,0,0.08);
  --borderRadius: 12px;
  --maxWidthContainer: 1200px;
  --scrollbarBg: rgba(255,255,255,0.1);
  --itemBgColor: transparent;
}

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

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 100vw; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 100vw; }
::-webkit-scrollbar-thumb:hover { background: var(--secondStyleColor); filter: brightness(1.2); }
::-webkit-scrollbar-thumb:active { background: #000; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) rgba(0,0,0,0.05); }

body {
  font-family: var(--font);
  background: var(--bodyBG);
  color: var(--textColor1);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; object-position: 50% 20%; }
ul { list-style: none; }
html { scroll-behavior: smooth; }

/* Standardized typography */
section h1 {
  font-size: 48px !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
}
section h2 {
  font-size: 36px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
}
section h3 {
  font-size: 20px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
section h4 {
  font-size: 18px !important;
  line-height: 1.4 !important;
  font-weight: 600 !important;
}
section p,
section li {
  font-size: 16px !important;
  line-height: 1.7 !important;
}
footer p,
footer li,
footer a {
  font-size: 14px !important;
  line-height: 1.6 !important;
}
footer h3 {
  font-size: 16px !important;
}
@media (max-width: 900px) {
  section h1 {
    font-size: 36px !important;
  }
  section h2 {
    font-size: 28px !important;
  }
}
@media (max-width: 600px) {
  section h1 {
    font-size: 30px !important;
  }
  section h2 {
    font-size: 24px !important;
  }
  section h3 {
    font-size: 18px !important;
  }
  section p,
  section li {
    font-size: 15px !important;
  }
}

/* Heading font */
section h1, section h2, section h3, section h4,
header h1, header h2, header h3, header h4,
footer h3 {
  font-family: var(--font-heading) !important;
}

/* Standardized section spacing */
section {
  padding-top: 80px !important;
  padding-bottom: 80px !important;
}
header, nav { padding-top: 0 !important; padding-bottom: 0 !important; }
footer {
  padding-top: 40px !important;
  padding-bottom: 24px !important;
}
section.toc {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.site-disclaimer {
  background: rgba(0,0,0,0.05);
  border-top: 1px solid var(--border);
  padding: 16px 0;
  text-align: center;
}
.site-disclaimer p {
  font-size: 14px !important;
  font-style: italic;
  line-height: 1.5 !important;
  color: var(--textMuted);
  max-width: 800px;
  margin: 0 auto;
}
.toc .swiper-wrapper {
}
@media (max-width: 768px) {
  body > section,
  body > div > section,
  body > section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
}

/* Secondary pages */
.sec-page { padding: 80px 0; min-height: 60vh; }
.page-content { max-width: var(--maxWidthContainer); }
.page-content h1 { font-size: 2rem; font-weight: 700; margin-bottom: 24px; }
.page-content h2 { font-size: 1.3rem; font-weight: 600; margin: 36px 0 12px; color: var(--textColor1); }
.page-content p { margin-bottom: 16px; color: var(--textSecondary); line-height: 1.8; font-size: 0.95rem; }
.page-content a { color: var(--secondStyleColor); text-decoration: underline; }
.page-content a:hover { opacity: 0.8; }

/* Overflow protection — word wrap only, no clipping */
section p,
section li,
section summary {
  overflow-wrap: break-word;
}


  /* ===========================
          HEADER
        =========================== */

  .site-header {
    position: relative;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: var(--bodyBG);
    border-bottom: 1px solid var(--secondStyleColor);
  }
  .site-headerA {
    font-size: 24px;
    font-weight: 900;
    color: var(--textColor1);
  }

  .header-cta {
    padding: 12px 20px;
    color: var(--textColor2);
    font-weight: 500;
    border-radius: var(--borderRadius);
    background-color: var(--secondStyleColor);
  }

  /* layout */

  .site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 18px;
  }

  /* ===========================
   LOGO
=========================== */

  .logo {
    font-family:
      system-ui,
      -apple-system,
      "SF Pro Text",
      "Segoe UI",
      sans-serif;
    font-weight: 800;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: 0.16em;
    text-decoration: none;
    text-transform: uppercase;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
    color: var(--text-main);
  }

  .logo span:first-child {
    background: linear-gradient(120deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .logo span:last-child {
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* ===========================
   NAV DESKTOP
=========================== */

  .nav {
    display: flex;
    gap: 22px;
    align-items: center;
  }

  .header__nav > ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* ссылки */

  .nav a,
  .header__nav > ul a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    padding: 6px 4px;
    text-transform: uppercase;
    transition:
      color 0.2s ease,
      transform 0.15s ease,
      opacity 0.2s ease;
  }

  /* подчёркивание — неоновая линия */

  .nav a::before,
  .header__nav > ul a::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    transform-origin: center;
    transform: scaleX(0);
    transition: transform 0.22s ease;
  }

  .nav a:hover,
  .header__nav > ul a:hover {
    color: var(--text-main);
    transform: translateY(-1px);
  }

  .nav a:hover::before,
  .header__nav > ul a:hover::before {
    transform: scaleX(1);
  }

  /* ===========================
   BURGER BUTTON
=========================== */

  .burger {
    display: none;
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid var(--secondStyleColor);
    background: radial-gradient(
      circle at 0 0,
      rgba(77, 243, 255, 0.22),
      transparent 65%
    );
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 100;
  }

  /* три полоски */

  .burger::before,
  .burger::after,
  .burger .icon-left {
    content: "";
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--textColor1);
    transition: all 0.25s ease;
  }

  .burger::before {
    top: 13px;
    transform: translateX(-50%);
  }

  .burger::after {
    bottom: 13px;
    transform: translateX(-50%);
  }

  .burger .icon-left {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .burger.open::before {
    top: 50%;
    transform: translateX(-50%) rotate(45deg);
  }

  .burger.open::after {
    top: 50%;
    bottom: auto;
    transform: translateX(-50%) rotate(-45deg);
  }

  .burger.open .icon-left {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  /* icon-right не используется, оставляем выключенным */
  .burger .icon-right {
    display: none;
  }

  /* ===========================
   MOBILE MENU
=========================== */

  .mobile__menu {
    display: none;
  }

  /* off-canvas навигация */

  @media (max-width: 1024px) {
    .header-cta {
      display: none;
    }
    .nav {
      display: none;
    }

    .burger {
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    }

    .mobile__menu {
      display: block;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
    }

    .header__nav {
      position: fixed;
      inset: 0;
      width: 100vw;
      height: 100dvh;
      background: var(--bodyBG);
      backdrop-filter: blur(22px);
      -webkit-backdrop-filter: blur(22px);
      z-index: 50;
      transform: translateX(-120%);
      transition: transform 0.35s ease;
      display: flex;
      flex-direction: column;
    }

    .header__nav > ul {
      margin-top: 90px;
      margin-left: 24px;
      flex-direction: column;
      align-items: flex-start;
      gap: 26px;
      height: 80vh;
      overflow-y: auto;
      overflow-x: hidden;
    }

    .header__nav > ul a {
      font-size: 18px;
      color: var(--text-main);
    }

    /* CTA-кнопка в моб.меню */
    .header__nav > a {
      display: inline-block !important;
      margin: auto 24px 36px;
      max-width: 90%;
      text-align: center;
      color: var(--textColor2) !important;
      background: var(--secondStyleColor);
      border-radius: 999px;
      padding: 12px 18px;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.18em;
    }

    .navOpen {
      transform: translateX(0%);
    }

    header .btn {
      display: none;
    }
  }

  /* ===========================
   ACCESSIBILITY & MOTION
=========================== */

  .header__nav > ul a:focus-visible,
  .burger:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 4px;
  }

  @media (prefers-reduced-motion: reduce) {
    .burger,
    .burger * {
      transition: none !important;
    }
    .header__nav {
      transition: none !important;
    }
  }



  .site-footer {
    border-top: 0.5px solid var(--secondStyleColor);
    padding: 20px 0;
  }
  .footerLogo {
    color: var(--textColor1);
  }

  .footer-inner {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .intoLinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
    span {
      width: 8px;
      height: 8px;
      background-color: var(--secondStyleColor);
      border-radius: 50%;
    }
    a {
      transition: 0.3s all linear;
      transform-origin: left;
      text-decoration: none;
      color: var(--textColor1);
    }
    a:hover {
      text-decoration: underline;
    }
  }
  @media screen and (max-width: 750px) {
    .intoLinks {
      flex-direction: column;
      span {
        display: none;
      }
    }
  }

  .f-social {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }

  .f-social i {
    color: var(--secondStyleColor);
  }
  .copy {
    text-align: center;
    opacity: 0.5;
  }
  .footer-links {
    display: flex;
    gap: 1rem;
  }

  .footer-links a {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.75rem;
  }

  .footer-links a:hover {
    color: #fff;
  }


[data-aos]{opacity:0;transition:opacity 0.6s ease,transform 0.6s ease}
[data-aos="fade-up"]{transform:translateY(30px)}
[data-aos="fade-in"]{transform:none}
[data-aos="slide-left"]{transform:translateX(-30px)}
[data-aos="slide-right"]{transform:translateX(30px)}
[data-aos].aos-visible{opacity:1;transform:none}