
:root {
  --bg: #121212;
  --bg-card: #1e1e1e;
  --text: #e0e0e0;
  --text-muted: rgba(255,255,255,0.5);
  --accent: #f1c40f;
  --accent-rgb: 241,196,15;
  --accent2: #0ff12d;
  --accent2-rgb: 15,241,45;
  --accent3: #f2272e;
  --accent3-rgb: 242,39,46;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font: 'Inter', sans-serif;
  --font-heading: 'Inter', sans-serif;
  --bodyBG: #121212;
  --textColor1: #e0e0e0;
  --textColor2: #111111;
  --textSecondary: #adadad;
  --textMuted: #797979;
  --secondStyleColor: #f1c40f;
  --bgCard: #1e1e1e;
  --bgAlt: #222222;
  --borderSubtle: rgba(255,255,255,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(255,255,255,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: #fff; }
* { scrollbar-width: thin; scrollbar-color: var(--accent) rgba(255,255,255,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.3);
  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 v6 — Glass floating bar + glow line ===== */

  .hd6 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 16px 0;
    transition: padding 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .hd6.scrolled {
    padding: 0;
  }

  .hd6__bar {
    position: relative;
    background: color-mix(in srgb, var(--bodyBG) 75%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
    border-radius: var(--borderRadius);
    overflow: hidden;
    transition: border-radius 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .hd6.scrolled .hd6__bar {
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  /* Scanline overlay */
  .hd6__bar::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      color-mix(in srgb, var(--textColor1) 2%, transparent) 2px,
      color-mix(in srgb, var(--textColor1) 2%, transparent) 4px
    );
    pointer-events: none;
    z-index: 1;
  }

  .hd6__wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 20px;
    z-index: 2;
  }

  /* Glow line */
  .hd6__glow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
      90deg,
      transparent,
      var(--secondStyleColor),
      var(--accent2),
      var(--secondStyleColor),
      transparent
    );
    background-size: 200% 100%;
    animation: hd6-glow-slide 3s linear infinite;
  }

  @keyframes hd6-glow-slide {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }

  /* Logo */
  .hd6__logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--textColor1);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    z-index: 110;
  }

  /* Desktop nav */
  .hd6__nav ul {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .hd6__nav .hd6__link {
    display: block;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--textColor1) 65%, transparent);
    text-decoration: none;
    border-radius: var(--borderRadius);
    position: relative;
    transition: color 0.25s ease, background 0.25s ease;
  }

  .hd6__nav .hd6__link:hover {
    color: var(--textColor1);
    background: color-mix(in srgb, var(--secondStyleColor) 10%, transparent);
  }

  .hd6__nav .hd6__link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--secondStyleColor);
    border-radius: 2px;
    transition: width 0.25s ease, left 0.25s ease;
  }

  .hd6__nav .hd6__link:hover::after {
    width: 60%;
    left: 20%;
  }

  /* CTA button — gradient */
  .hd6__cta {
    padding: 10px 24px;
    border-radius: var(--borderRadius);
    background: linear-gradient(135deg, var(--secondStyleColor), var(--accent2));
    color: var(--bodyBG);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .hd6__cta:hover {
    transform: translateY(-1px);
    box-shadow:
      0 6px 20px color-mix(in srgb, var(--secondStyleColor) 30%, transparent);
  }

  /* Burger — hidden on desktop */
  .hd6__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 9px;
    background: color-mix(in srgb, var(--secondStyleColor) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--secondStyleColor) 20%, transparent);
    border-radius: 10px;
    cursor: pointer;
    z-index: 110;
    transition: border-color 0.25s ease, background 0.25s ease;
  }

  .hd6__burger:hover {
    border-color: color-mix(in srgb, var(--secondStyleColor) 40%, transparent);
    background: color-mix(in srgb, var(--secondStyleColor) 14%, transparent);
  }

  .hd6__burger-line {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--textColor1);
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  /* Burger active — X shape */
  .hd6__burger.active .hd6__burger-line:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .hd6__burger.active .hd6__burger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .hd6__burger.active .hd6__burger-line:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  /* Mobile overlay — glass */
  .hd6__mobile {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: color-mix(in srgb, var(--bodyBG) 92%, transparent);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 105;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    pointer-events: none;
  }

  .hd6__mobile.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .hd6__mobile-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .hd6__mobile ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .hd6__mobile li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .hd6__mobile.active li {
    opacity: 1;
    transform: translateY(0);
  }

  .hd6__mobile.active li:nth-child(1) { transition-delay: 0.08s; }
  .hd6__mobile.active li:nth-child(2) { transition-delay: 0.14s; }
  .hd6__mobile.active li:nth-child(3) { transition-delay: 0.20s; }
  .hd6__mobile.active li:nth-child(4) { transition-delay: 0.26s; }

  .hd6__mobile .hd6__link {
    font-size: 24px;
    font-weight: 600;
    color: var(--textColor1);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--borderRadius);
    transition: color 0.2s ease, background 0.2s ease;
  }

  .hd6__mobile .hd6__link:hover {
    color: var(--secondStyleColor);
    background: color-mix(in srgb, var(--secondStyleColor) 8%, transparent);
  }

  .hd6__mobile-cta {
    padding: 16px 36px;
    border-radius: var(--borderRadius);
    background: linear-gradient(135deg, var(--secondStyleColor), var(--accent2));
    color: var(--bodyBG);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .hd6__mobile.active .hd6__mobile-cta {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.32s;
  }

  .stopScroll {
    overflow: hidden;
  }

  /* Responsive */
  @media (max-width: 800px) {
    .hd6__nav {
      display: none;
    }

    .hd6__cta {
      display: none;
    }

    .hd6__burger {
      display: flex;
    }

    .hd6 {
      padding: 8px 10px 0;
    }

    .hd6.scrolled {
      padding: 0;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hd6,
    .hd6__bar,
    .hd6__mobile,
    .hd6__mobile li,
    .hd6__mobile-cta,
    .hd6__burger-line,
    .hd6__burger,
    .hd6__cta,
    .hd6__nav .hd6__link,
    .hd6__nav .hd6__link::after {
      transition: none;
    }

    .hd6__glow {
      animation: none;
    }
  }



  .grid-hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    user-select: none;
    && h1 {
      text-transform: uppercase;
      font-weight: 900;
      color: var(--secondStyleColor);
    }
  }
  .fonImgGrid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, 1fr);
    gap: 0;
    z-index: 0;
    filter: grayscale(1) blur(5px);
    opacity: 0.3;

    /* ДВИЖЕНИЕ ФОНА */
    transform: scale(
      1.1
    ); /* чуть увеличим, чтобы при движении не было чёрных краёв */
    animation: grid-drift 30s linear infinite alternate;
  }

  @keyframes grid-drift {
    0% {
      transform: translate3d(-3%, -3%, 0) scale(1.1);
    }
    50% {
      transform: translate3d(3%, -1%, 0) scale(1.1);
    }
    100% {
      transform: translate3d(3%, 3%, 0) scale(1.1);
    }
  }

  /* каждая ячейка */
  .hero-image {
    position: relative;
    width: 100%;
    height: 100%;
  }

  /* сами картинки растягиваем под ячейку */
  .hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 20%;
  }

  /* контент поверх фона */
  .grid-hero > .container {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 20px;
  }

  .grid-hero a {
    width: fit-content;
  }

  .grid-hero p {
    max-width: 600px;
  }

  .grid-hero a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--secondStyleColor);
    color: var(--textColor2);
    font-weight: 600;
  }

  /* маленькие телефоны */
  @media (max-width: 800px) {
    .fonImgGrid {
      grid-template-columns: repeat(2, 1fr);
      grid-auto-rows: minmax(100px, 1fr);
      animation-duration: 65s;
    }

    .grid-hero h1 {
      font-size: 1.6rem;
    }

    .grid-hero p {
      font-size: 0.85rem;
    }

    .grid-hero a {
      text-align: center;
    }
  }



  :root {
    --scrollbarBg: rgba(255, 255, 255, 0.1);
    --itemBgColor: transparent;
  }
  .swiper {
    padding-bottom: 10px !important;
  }

  .toc .swiper-slide {
    width: fit-content;
  }

  .toc h2 {
    margin: 0 !important;
    text-align: center;
  }

  .toc {
    background-color: transparent;
  }

  .toc a {
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    line-height: 1.5;
    white-space: nowrap;
    color: var(--textColor1);
    transition: color 0.3s ease-in-out;
    -webkit-transition: color 0.3s ease-in-out;
    -moz-transition: color 0.3s ease-in-out;
    -ms-transition: color 0.3s ease-in-out;
    -o-transition: color 0.3s ease-in-out;
    border: 1px solid var(--secondStyleColor);
    padding: 10px 20px;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    -ms-border-radius: 20px;
    -o-border-radius: 20px;
    background-color: var(--itemBgColor);
  }

  .toc a:active,
  .toc a:hover,
  .toc a:focus {
    color: var(--textColor1);
    background-color: rgba(17, 17, 17, 0.2);
  }

  .toc .swiper-wrapper {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .toc-swiper .swiper-scrollbar {
    background: var(--scrollbarBg);
    height: 4px;
    border-radius: 2px;
  }

  .toc-swiper .swiper-scrollbar-drag {
    background: var(--secondStyleColor);
    border-radius: 2px;
    width: 20%;
  }

  .toc.wrapper {
    margin: 0 auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .toc-swiper {
    max-width: calc(var(--maxWidthContainer) - 40px);
    margin: 0 auto;
  }

  .swiper-horizontal > .swiper-scrollbar,
  .swiper-scrollbar.swiper-scrollbar-horizontal {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
  }

  @media screen and (max-width: 750px) {
    .toc.wrapper {
      margin-left: auto;
    }
    .swiper-horizontal > .swiper-scrollbar,
    .swiper-scrollbar.swiper-scrollbar-horizontal {
      width: 90% !important;
      margin: 0 auto;
    }
  }



  .rm2 {
    padding: clamp(60px, 8vw, 100px) 0;
    color: var(--textColor1);
  }

  .rm2__head {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 48px;
  }

  .rm2__head h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700;
  }

  .rm2__head p {
    margin: 0;
    font-size: 15px;
    color: color-mix(in srgb, var(--textColor1) 60%, transparent);
  }

  .rm2__steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
  }

  .rm2__step {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .rm2__marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
  }

  .rm2__dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--secondStyleColor);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--secondStyleColor) 20%, transparent);
    flex-shrink: 0;
    margin-top: 18px;
    z-index: 1;
  }

  .rm2__dot--outline {
    background: transparent;
    border: 2px solid var(--secondStyleColor);
  }

  .rm2__connector {
    flex: 1;
    width: 2px;
    background: linear-gradient(to bottom,
      var(--secondStyleColor),
      color-mix(in srgb, var(--secondStyleColor) 10%, transparent));
    margin-top: 4px;
  }

  .rm2__card {
    padding: 18px 22px;
    border-radius: var(--borderRadius);
    border: 1px solid color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
    background: rgba(255,255,255,0.02);
    transition: transform 0.25s ease, border-color 0.25s ease;
  }

  .rm2__card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--secondStyleColor) 30%, transparent);
  }

  .rm2__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--secondStyleColor);
    margin-bottom: 6px;
  }

  .rm2__card h3 {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 700;
  }

  .rm2__card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: color-mix(in srgb, var(--textColor1) 60%, transparent);
  }

  @media (max-width: 600px) {
    .rm2 { padding: 48px 0; }
    .rm2__head { margin-bottom: 36px; }
    .rm2__step { grid-template-columns: 30px 1fr; gap: 12px; }
    .rm2__dot { width: 14px; height: 14px; }
  }

  @media (prefers-reduced-motion: reduce) {
    .rm2__card { transition: none; }
  }



  .featuresWrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
  }
  .feaItem {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    img {
      height: 500px;
      width: 400px;
      border-radius: var(--borderRadius);
      object-fit: cover;
      object-position: 50% 20%;
    }
  }
  .feaWrap {
    margin-bottom: 40px;
  }

  @media (max-width: 800px) {
    .feaWrap {
      margin-bottom: 20px;
    }
    .featuresWrap {
      flex-direction: column;
      gap: 20px;
    }
    .feaItem {
      gap: 20px;
      img {
        width: 100%;
      }
    }
  }



  :root {
    --images-amount: 6;
    --highlight: var(--secondStyleColor);
    --border-a: rgba(247, 176, 91, 0.16);
    --border-b: rgba(247, 147, 76, 0.16);
    --transition-duration: 620ms;
    --ease: cubic-bezier(0.65, 0, 0.35, 1);
  }

  .gallery {
    position: relative;
    width: 80%;
    display: grid;
    grid-template-rows: repeat(4, 1fr);
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5em;
    padding: 10px;
    overflow: hidden;
    user-select: none;
  }

  #gallery .container {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  .gallery-header {
    text-align: center;
    margin-bottom: 40px;
    && p {
      text-align: center;
      margin: 0 auto;
      text-wrap: balance;
    }
  }

  .gallery__image-wrapper {
    position: relative;
    cursor: pointer;
    padding-top: 75%;
    width: 100%;
    height: 0;
    transform-origin: 0 0;
    overflow: hidden;
    grid-row: span 2;
    grid-column: span 2;
    box-sizing: content-box;
    backface-visibility: hidden;
    perspective: 1px;
    transform: translate3d(0, 0, 1px);
    border-radius: var(--borderRadius);

    && img {
      object-fit: cover;
      width: 100%;
      height: 100%;
      object-position: 50% 20%;
    }
  }

  .gallery__image-wrapper::before,
  .gallery__image-wrapper::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .gallery__image-wrapper::after {
    background: #000;
    opacity: 0.33;
    z-index: 1;
    transform: translate(0, 0);
    transition: all 500ms ease-out;
  }

  .gallery__image-wrapper::before {
    opacity: 0;
    z-index: 2;
    background: var(--secondStyleColor);
    transition: all 160ms ease-in;
    mix-blend-mode: hard-light;
  }

  .gallery__image-wrapper:hover:not(.gallery__image-wrapper--selected)::before {
    opacity: 0.32;
  }

  .gallery__image-wrapper:nth-child(1) {
    order: 2;
  }
  .gallery__image-wrapper:nth-child(2) {
    order: 4;
  }
  .gallery__image-wrapper:nth-child(3) {
    order: 6;
  }
  .gallery__image-wrapper:nth-child(4) {
    order: 8;
  }
  .gallery__image-wrapper:nth-child(5) {
    order: 10;
  }
  .gallery__image-wrapper:nth-child(6) {
    order: 12;
  }

  .gallery__image {
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    border-radius: var(--borderRadius);
    width: auto;
    transform: translate(-50%, -50%);
    transition: all 320ms ease;
  }

  .gallery__image-wrapper.gallery__image-wrapper--selected {
    grid-row: span 4;
    grid-column: span 4;
    z-index: 1;
  }

  .gallery__image-wrapper.gallery__image-wrapper--selected:nth-child(
      odd
    )::after {
    transform: translate(0, 100%);
  }

  .gallery__image-wrapper.gallery__image-wrapper--selected:nth-child(
      even
    )::after {
    transform: translate(100%, 0);
  }

  /* SCSS: &:nth-child(images-amount / 2) => 3 */
  .gallery__image-wrapper.gallery__image-wrapper--selected:nth-child(3) {
    order: 3;
  }

  /* SCSS: &:nth-child(images-amount) => 6 */
  .gallery__image-wrapper.gallery__image-wrapper--selected:nth-child(6) {
    order: 9;
  }

  /* ===== Mobile adaptive (paste at the end of your CSS) ===== */
  @media (max-width: 640px) {
    .gallery {
      width: 100%;
      max-width: 560px;
      gap: 0.35em;
      padding: 0.35em;
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: none;
      grid-auto-rows: 1fr;
    }
    .gallery-header {
      margin-bottom: 20px;
    }

    .gallery__image-wrapper {
      grid-column: span 1;
      pointer-events: none;
      grid-row: span 1;
      padding-top: 78%;
    }

    /* выбранный элемент — на всю ширину */
    .gallery__image-wrapper.gallery__image-wrapper--selected {
      grid-column: 1 / -1;
      grid-row: span 2;
    }

    /* На мобиле лучше не мудрить с order — стабильно и предсказуемо */
    .gallery__image-wrapper {
      order: initial !important;
    }
    .gallery__image-wrapper.gallery__image-wrapper--selected {
      order: -1 !important; /* выбранная уедет вверх */
    }
  }

  /* Extra-small phones: 1 колонка */
  @media (max-width: 420px) {
    .gallery {
      grid-template-columns: 1fr;
    }

    .gallery__image-wrapper {
      grid-column: span 1;
      grid-row: span 1;
      padding-top: 75%;
    }

    .gallery__image-wrapper.gallery__image-wrapper--selected {
      grid-column: span 1;
      grid-row: span 1; /* чтобы не занимала слишком много */
    }
  }



  /* ===== TESTIMONIALS SECTION ALT (VARIANT 2) ===== */

  .testimonialsSection-alt {
    padding: 80px 0;
    background: var(--bodyBG);
    color: var(--textColor1);
  }

  .testimonialsAltWrapper {
    max-width: var(--maxWidthContainer);
    margin: 0 auto;
  }

  /* Header */
  .testimonialsAltHeader {
    max-width: 760px;
    margin: 0 auto 40px auto;
    text-align: center;
  }

  .testimonialsEyebrow {
    font-size: 13px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: var(--secondStyleColor);
    font-weight: 600;
    margin-bottom: 10px;
  }

  .testimonialsTitle {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
  }

  .testimonialsSubtitle {
    font-size: 16px;
    line-height: 1.6;
    color: var(--textSecondary);
  }

  /* List */
  .testimonialsAltList {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  /* Row card */
  .testimonialRow {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;

    border-radius: var(--borderRadius);
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
    transition: 0.18s ease;
  }

  .testimonialRow:hover {
    border-color: var(--secondStyleColor);
    transform: translateY(-2px);
  }

  /* Avatar */
  .testimonialAvatar {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .testimonialAvatarCircle {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid var(--secondStyleColor);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: var(--secondStyleColor);
  }

  /* Body */
  .testimonialRowBody {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .testimonialRowHead {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: baseline;
  }

  .testimonialName {
    font-size: 16px;
    font-weight: 600;
  }

  .testimonialRole {
    font-size: 13px;
    color: var(--textMuted);
  }

  .testimonialTag {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--secondStyleColor);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondStyleColor);
    white-space: nowrap;
  }

  .testimonialRowText {
    font-size: 14px;
    line-height: 1.7;
    color: #dfdfdf;
  }

  /* Responsive */
  @media (max-width: 800px) {
    .testimonialRow {
      grid-template-columns: 1fr;
    }

    .testimonialAvatar {
      justify-content: flex-start;
    }
  }



.about22{
  position:relative;
  padding:8rem 2rem;
  overflow:hidden;
  background:var(--bodyBG);
}

.about22::before{
  content:'';position:absolute;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23888' stroke-width='.3'/%3E%3C/svg%3E");
  background-size:60px;
  opacity:.08;
  pointer-events:none;
}

.about22__container{max-width:1000px;position:relative;z-index:1}

.about22__header{text-align:center;margin-bottom:5rem}
.about22__eyebrow{
  font-size:.7rem;font-weight:600;
  letter-spacing:.2em;text-transform:uppercase;
  color:var(--secondStyleColor);
  margin-bottom:1rem;
}
.about22 h2{color:var(--textColor1);margin-bottom:1rem}
.about22__header > p{
  color:var(--textMuted);
  max-width:550px;margin:0 auto;
}

.about22__timeline{
  position:relative;
  padding-left:3rem;
}
.about22__timeline::before{
  content:'';position:absolute;
  left:7px;top:0;bottom:0;
  width:2px;
  background:var(--borderSubtle);
}
.about22__progress{
  position:absolute;
  left:7px;top:0;
  width:2px;height:0;
  background:linear-gradient(to bottom,var(--secondStyleColor),var(--accent2));
  transition:height .6s ease;
  z-index:1;
}

.about22__item{
  position:relative;
  margin-bottom:3.5rem;
  opacity:0;
  transform:translateX(-20px);
  transition:all .5s cubic-bezier(.4,0,.2,1);
}
.about22__item.visible{opacity:1;transform:translateX(0)}
.about22__item:last-child{margin-bottom:0}

.about22__dot{
  position:absolute;
  left:-3rem;top:.3rem;
  width:16px;height:16px;
  border-radius:50%;
  border:3px solid var(--borderSubtle);
  background:var(--bodyBG);
  z-index:2;
  transition:all .3s ease;
}
.about22__item.visible .about22__dot{
  border-color:var(--secondStyleColor);
  box-shadow:0 0 0 4px rgba(var(--accent-rgb),.1);
}

.about22__card{
  background:var(--bgCard);
  border-radius:var(--borderRadius);
  padding:2rem 2.5rem;
  box-shadow:0 2px 20px rgba(0,0,0,.04);
  border:1px solid var(--borderSubtle);
  transition:all .3s ease;
}
.about22__item:hover .about22__card{
  box-shadow:0 8px 35px rgba(0,0,0,.08);
  transform:translateX(4px);
}

.about22__year{
  display:inline-block;
  font-size:.75rem;font-weight:700;
  letter-spacing:.1em;
  color:var(--textColor2);
  padding:.25rem .75rem;
  border-radius:4px;
  margin-bottom:1rem;
}
.about22__year--1{background:var(--secondStyleColor)}
.about22__year--2{background:var(--accent2)}

.about22__card h3{color:var(--textColor1);margin-bottom:.6rem}
.about22__card p{color:var(--textSecondary);margin-bottom:1rem}

.about22__tags{display:flex;gap:.5rem;flex-wrap:wrap}
.about22__tag{
  font-size:.65rem;font-weight:500;
  letter-spacing:.05em;text-transform:uppercase;
  padding:.3rem .7rem;
  border-radius:4px;
  border:1px solid var(--borderSubtle);
  color:var(--textMuted);
}

.about22__quote{
  margin-top:5rem;
  text-align:center;
  padding:3rem;
  background:var(--bgCard);
  border-radius:var(--borderRadius);
  border:1px solid var(--borderSubtle);
  opacity:0;transform:translateY(20px);
  transition:all .6s ease;
}
.about22__quote.visible{opacity:1;transform:translateY(0)}
.about22__quote-icon{
  font-size:2rem;
  color:var(--secondStyleColor);
  opacity:.3;
  margin-bottom:1rem;
}
.about22__quote-text{
  font-size:1.15rem;font-weight:400;
  font-style:italic;
  line-height:1.6;
  max-width:600px;margin:0 auto 1rem;
  color:var(--textColor1);
}
.about22__quote-author{
  font-size:.75rem;font-weight:500;
  letter-spacing:.1em;text-transform:uppercase;
  color:var(--textMuted);
}

@media(max-width:768px){
  .about22__timeline{padding-left:2.5rem}
  .about22__dot{left:-2.5rem}
  .about22__card{padding:1.5rem}
}

@media(prefers-reduced-motion:reduce){
  .about22__item,
  .about22__quote{animation:none!important;opacity:1;transform:none;transition:none}
}



  /*  */
  .zq9-pulse {
    padding: clamp(18px, 3vw, 40px) 0;
    color: var(--txt);
  }

  .zq9-head {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 12px;
    margin-bottom: clamp(14px, 2vw, 22px);
  }

  .zq9-title {
    line-height: 1.15;
    margin: 0;
    letter-spacing: 0.2px;
  }

  .zq9-sub {
    margin: 0;
    color: var(--textColor1);
    white-space: nowrap;
  }

  .zq9-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .zq9-card {
    position: relative;
    border-radius: var(--borderRadius);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    );
    overflow: hidden;
    padding: 16px;
    min-height: 168px;
  }

  .zq9-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(
      400px 120px at 20% 0%,
      color-mix(in srgb, var(--secondStyleColor) 20%, transparent),
      transparent 60%
    );
    pointer-events: none;
    opacity: 0.9;
  }

  .zq9-card:hover {
    border-color: var(--secondStyleColor);
    transform: translateY(-1px);
    transition:
      transform 220ms ease,
      border-color 220ms ease;
  }

  .zq9-card * {
    position: relative;
    z-index: 1;
  }

  .zq9-card--big {
    padding: clamp(18px, 2.4vw, 28px);
    min-height: 260px;
  }

  .zq9-kicker {
    margin: 0 0 10px;
    color: var(--textColor1);
  }

  .zq9-pay {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
  }

  .zq9-payNum {
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 650;
    letter-spacing: -0.5px;
  }

  .zq9-payUnit {
    font-size: 14px;
    color: var(--textColor1);
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  /* Decorative “3D” blob + ribs like in the reference */
  .zq9-deco {
    position: absolute;
    left: -70px;
    bottom: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background:
      radial-gradient(
        circle at 38% 35%,
        rgba(255, 255, 255, 0.14),
        transparent 55%
      ),
      radial-gradient(
        circle at 62% 70%,
        rgba(76, 222, 255, 0.24),
        transparent 60%
      ),
      radial-gradient(
        circle at 50% 50%,
        rgba(76, 222, 255, 0.12),
        rgba(0, 0, 0, 0) 60%
      );
    filter: blur(0.2px);
    opacity: 0.95;
    transform: rotate(-12deg);
    z-index: 0;
  }

  .zq9-ribs {
    position: absolute;
    left: -24px;
    bottom: -18px;
    width: 280px;
    height: 240px;
    background: repeating-linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.08) 0px,
      rgba(255, 255, 255, 0.08) 2px,
      rgba(255, 255, 255, 0) 10px,
      rgba(255, 255, 255, 0) 16px
    );
    mask-image: radial-gradient(circle at 45% 55%, #000 0 48%, transparent 70%);
    opacity: 0.9;
    z-index: 0;
  }

  .zq9-metrics {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .zq9-top {
    display: grid;
    gap: 8px;
    margin-bottom: 8px;
  }

  .zq9-h3 {
    margin: 0;
    font-weight: 600;
    color: var(--textColor1);
  }

  .zq9-mini {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--textColor1);
    font-size: 20px;
  }

  .zq9-miniA {
    opacity: 0.75;
  }
  .zq9-miniSep {
    opacity: 0.55;
  }
  .zq9-miniB {
    color: var(--secondStyleColor);
  }

  .zq9-chart {
    padding: 6px 0 2px;
  }

  .zq9-chart svg {
    width: 100%;
    height: 120px;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(76, 222, 255, 0.1));
  }

  .zq9-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 4px;
  }

  .zq9-badge {
    font-size: 20px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid var(--secondStyleColor);
    background: var(--bodyBG);
    color: var(--textColor1);
    letter-spacing: 0.2px;
    white-space: nowrap;
  }

  .zq9-badge--down {
    border-color: rgba(76, 222, 255, 0.18);
    background: rgba(76, 222, 255, 0.06);
  }

  .zq9-badge--up {
    border-color: rgba(76, 222, 255, 0.26);
    background: rgba(76, 222, 255, 0.1);
  }

  /* Responsive layout similar to reference */
  @media (min-width: 860px) {
    .zq9-grid {
      grid-template-columns: 1.05fr 2fr;
      align-items: stretch;
    }
    .zq9-card--big {
      min-height: 360px;
    }
    .zq9-metrics {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (min-width: 520px) and (max-width: 859px) {
    .zq9-metrics {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .zq9-card:hover {
      transform: none;
    }
    .zq9-card {
      transition: none;
    }
  }



.faq19{
  padding:clamp(64px,7vw,110px) 20px;
  background:var(--bodyBG);
  color:var(--textColor1);
}
.faq19 .container{max-width:700px;margin:0 auto}

.faq19__head{text-align:center;margin-bottom:40px}
.faq19__kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:7px 16px;font-size:13px;font-weight:600;letter-spacing:.04em;
  color:var(--secondStyleColor);
  background:color-mix(in srgb,var(--secondStyleColor) 10%,transparent);
  border:1px solid color-mix(in srgb,var(--secondStyleColor) 20%,transparent);
  border-radius:100px;margin-bottom:20px;
}
.faq19__kicker i{font-size:12px}
.faq19__head h2{font-size:clamp(28px,4vw,44px);font-weight:800;margin:0;letter-spacing:-.02em;line-height:1.15}

.faq19__chat{
  display:flex;flex-direction:column;gap:6px;
  padding:28px;
  border-radius:20px;
  background:color-mix(in srgb,var(--textColor1) 3%,transparent);
  border:1px solid color-mix(in srgb,var(--textColor1) 6%,transparent);
}

.faq19__msg{
  display:flex;gap:10px;
  max-width:85%;
  animation:faq19fadeIn .5s ease both;
}
.faq19__msg--q{
  align-self:flex-end;
  flex-direction:column;align-items:flex-end;
}
.faq19__msg--a{
  align-self:flex-start;
  align-items:flex-end;
}

.faq19__bubble{
  padding:14px 18px;
  border-radius:16px;
  line-height:1.6;
}
.faq19__bubble--q{
  background:var(--secondStyleColor);
  color:var(--textColor2);
  border-bottom-right-radius:4px;
}
.faq19__bubble--q h3{
  margin:0;font-size:clamp(14px,1.3vw,16px);font-weight:600;line-height:1.4;
}
.faq19__bubble--a{
  background:color-mix(in srgb,var(--textColor1) 6%,transparent);
  border:1px solid color-mix(in srgb,var(--textColor1) 8%,transparent);
  border-bottom-left-radius:4px;
}
.faq19__bubble--a p{
  margin:0;font-size:14px;line-height:1.7;
  color:color-mix(in srgb,var(--textColor1) 75%,transparent);
}

.faq19__avatar{
  flex-shrink:0;
  width:32px;height:32px;
  border-radius:50%;
  background:color-mix(in srgb,var(--secondStyleColor) 15%,transparent);
  border:1px solid color-mix(in srgb,var(--secondStyleColor) 25%,transparent);
  display:flex;align-items:center;justify-content:center;
  color:var(--secondStyleColor);
  font-size:.75rem;
}

.faq19__time{
  font-size:.65rem;
  color:var(--textMuted);
  padding:0 4px;
}

@keyframes faq19fadeIn{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}
.faq19__msg:nth-child(1){animation-delay:0s}
.faq19__msg:nth-child(2){animation-delay:.1s}
.faq19__msg:nth-child(3){animation-delay:.2s}
.faq19__msg:nth-child(4){animation-delay:.3s}
.faq19__msg:nth-child(5){animation-delay:.4s}
.faq19__msg:nth-child(6){animation-delay:.5s}
.faq19__msg:nth-child(7){animation-delay:.6s}
.faq19__msg:nth-child(8){animation-delay:.7s}
.faq19__msg:nth-child(9){animation-delay:.8s}
.faq19__msg:nth-child(10){animation-delay:.9s}
.faq19__msg:nth-child(11){animation-delay:1s}
.faq19__msg:nth-child(12){animation-delay:1.1s}

@media(max-width:600px){
  .faq19__chat{padding:16px}
  .faq19__msg{max-width:92%}
}

@media(prefers-reduced-motion:reduce){
  .faq19__msg{animation:none;opacity:1;transform:none}
}



  .site-footer {
    color: var(--textColor1);
    margin-top: 60px;
    padding: 28px 0 22px;
    background-color: var(--bodyBG);
    border-top: 0.3px solid var(--secondStyleColor);
    color: var(--footer-muted);
    position: relative;
    backdrop-filter: blur(18px);
  }

  /* Layout */

  .footer-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 22px;
  }

  /* Brand */

  .footer-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .footer-main .logo {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: var(--textColor1);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.8rem;
  }

  /* Links & Address */

  .site-footer a,
  .site-footer address {
    position: relative;
    color: var(--textColor1);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.16em;
    padding: 2px 0;
    text-transform: uppercase;
    transition:
      color 0.22s ease,
      transform 0.22s ease,
      text-shadow 0.22s ease,
      opacity 0.22s ease;
  }

  .site-footer address {
    font-style: normal;
    color: rgba(209, 213, 219, 0.8);
  }

  /* ≡ ХОВЕР БЕЗ ЛИНИИ — МЯГКОЕ НЕОНОВОЕ СВЕЧЕНИЕ */

  .site-footer a:hover {
    transform: translateY(-2px);
  }

  /* Social */

  .footer-social {
    display: flex;
    gap: 10px;
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    i {
      color: var(--secondStyleColor);
      font-size: 24px;
    }
  }

  .footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: var(--textSecondary);
    transition:
      background 0.18s ease,
      color 0.18s ease,
      border-color 0.18s ease,
      transform 0.12s ease,
      box-shadow 0.18s ease;
  }

  .footer-social a:hover {
    transform: translateY(-1px);
  }

  /* Contacts */

  .footer-contacts address {
    font-style: normal;
  }

  /* Links */

  .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2 120px;
    column-gap: 24px;
    font-size: 13px;
  }

  .footer-links li {
    break-inside: avoid;
    margin-bottom: 8px;
  }

  .footer-links a:hover {
    color: var(--secondStyleColor);
  }

  /* Bottom */

  .footer-bottom {
    padding-top: 14px;
    color: var(--textColor1);
  }

  .footer-bottom p {
    margin: 0;
  }

  .footer-bottom p span {
    color: var(--footer-accent);
    font-weight: 700;
  }

  @media (max-width: 900px) {
    .footer-row {
      grid-template-columns: 1fr 1fr;
      gap: 24px;
    }
  }

  @media (max-width: 640px) {
    .footer-row {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 18px;
    }

    .footer-main {
      align-items: center;
    }

    .footer-social {
      justify-content: center;
    }

    .footer-contacts,
    .footer-links {
      columns: 1;
      text-align: center;
    }

    .site-footer {
      margin-top: 40px;
      padding: 22px 0 18px;
    }
  }



[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}