
:root {
  --bg: #150c14;
  --bg-card: #221728;
  --text: #f5d0fe;
  --text-muted: rgba(255,255,255,0.5);
  --accent: #d8b4fe;
  --accent-rgb: 216,180,254;
  --accent2: #feb4c1;
  --accent2-rgb: 254,180,193;
  --accent3: #cddefe;
  --accent3-rgb: 205,222,254;
  --border: rgba(255,255,255,0.08);
  --radius: 12px;
  --font: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --bodyBG: #150c14;
  --textColor1: #f5d0fe;
  --textColor2: #111111;
  --textSecondary: #bd9fc4;
  --textMuted: #856e89;
  --secondStyleColor: #d8b4fe;
  --bgCard: #221728;
  --bgAlt: #271c27;
  --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;
}
/* Auto-wrap markers from scripts/wrap-orphan-text.js — these <p> tags
   were inserted to make orphan text AI-editable. They live inside
   badge/tag/card-stat divs that previously held bare text, so the default
   browser <p> margin (1em) would inflate their height. Zero it. */
p.ai-wrap {
  margin: 0 !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 v5 — Glass floating bar + centered nav pill ===== */

  .hd5 {
    position: relative;
    z-index: 100;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bodyBG) 85%, transparent),
      color-mix(in srgb, var(--bodyBG) 70%, transparent)
    );

    border-bottom: 1px solid
      color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
  }

  .hd5__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    gap: 20px;
  }

  /* Logo */
  .hd5__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 — centered pill */
  .hd5__nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .hd5__nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 5px 6px;
    border-radius: 100px;
    border: 1px solid
      color-mix(in srgb, var(--secondStyleColor) 14%, transparent);
    background: color-mix(in srgb, var(--secondStyleColor) 5%, transparent);
  }

  .hd5__nav .hd5__link {
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: color-mix(in srgb, var(--textColor1) 70%, transparent);
    text-decoration: none;
    border-radius: 100px;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .hd5__nav .hd5__link:hover {
    color: var(--textColor1);
    background: color-mix(in srgb, var(--secondStyleColor) 12%, transparent);
  }

  /* CTA button */
  .hd5__cta {
    padding: 10px 22px;
    border-radius: var(--borderRadius);
    background: var(--secondStyleColor);
    color: var(--bodyBG);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    flex-shrink: 0;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease;
  }

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

  /* Burger — hidden on desktop */
  .hd5__burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 36px;
    height: 36px;
    padding: 8px;
    background: none;
    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;
  }

  .hd5__burger:hover {
    border-color: color-mix(in srgb, var(--secondStyleColor) 50%, transparent);
  }

  .hd5__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 state */
  .hd5__burger.active .hd5__burger-line:first-child {
    transform: translateY(4px) rotate(45deg);
  }

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

  /* Mobile overlay — hidden by default */
  .hd5__mobile {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    background: var(--bodyBG);
    z-index: 105;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    transform: translateY(-100%);
    opacity: 0;
    transition:
      transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
      opacity 0.3s ease;
    pointer-events: none;
  }

  .hd5__mobile.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

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

  .hd5__mobile .hd5__link {
    font-size: 22px;
    font-weight: 600;
    color: var(--textColor1);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .hd5__mobile .hd5__link:hover {
    color: var(--secondStyleColor);
  }

  .hd5__mobile-cta {
    padding: 14px 32px;
    border-radius: var(--borderRadius);
    background: var(--secondStyleColor);
    color: var(--bodyBG);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
  }

  .stopScroll {
    overflow: hidden;
  }

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

    .hd5__cta {
      display: none;
    }

    .hd5__burger {
      display: flex;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .hd5__mobile,
    .hd5__burger-line,
    .hd5__burger,
    .hd5__cta,
    .hd5__nav .hd5__link {
      transition: none;
    }
  }



  /* ===== FOOTER ===== */

  .footer {
    background: var(--bgAlt);
    color: var(--textColor1);
    padding: 40px 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  /* Верхняя часть */
  .footerTop {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 24px;
  }

  /* Бренд */
  .footerBrand {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }

  .footerLogo {
    color: var(--secondStyleColor);
  }

  .footerLogo i {
    color: var(--secondStyleColor);
    font-size: 18px;
  }

  .footerBrandName {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
  }

  .footerBrandTagline {
    font-size: 14px;
    color: var(--textMuted);
    padding-top: 10px;
  }

  /* Навигация и контакты */
  .footerNavLabel {
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondStyleColor);
    margin-bottom: 10px;
    font-weight: 600;
  }

  .footerNav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2 140px;
    column-gap: 24px;
  }

  .footerNav li {
    break-inside: avoid;
  }

  .footerNav li + li {
    margin-top: 6px;
  }

  .footerNav a {
    font-size: 14px;
    color: var(--textSecondary);
    text-decoration: none;
    transition: 0.15s ease;
  }

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

  /* Контакты */
  .footerContactLine {
    font-size: 14px;
    color: var(--textSecondary);
    margin-bottom: 4px;
  }

  .footerSocial {
    margin-top: 10px;
    display: flex;
    gap: 10px;
  }

  .footerSocial a {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--textSecondary);
    font-size: 14px;
    transition: 0.15s ease;
  }

  .footerSocial a:hover {
    border-color: var(--secondStyleColor);
    color: var(--secondStyleColor);
  }

  /* Нижняя полоска */
  .footerBottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    font-size: 13px;
    color: var(--textMuted);
  }

  .footerMeta {
    text-align: right;
  }

  /* Адаптив */
  @media (max-width: 900px) {
    .footerTop {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 650px) {
    .footerTop {
      grid-template-columns: 1fr;
    }

    .footerBottom {
      flex-direction: column;
      align-items: flex-start;
    }

    .footerMeta {
      text-align: left;
    }
  }


[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}
/* ===== guide navigation: burger panel + footer column ===== */
.hd5__burger { display: flex !important; }
.hd5__mobile ul { display: grid; grid-template-columns: 1fr; gap: 0 32px; max-width: 1100px; margin: 0 auto; padding: 0; list-style: none; }
@media (min-width: 640px) { .hd5__mobile ul { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1000px) { .hd5__mobile ul { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.hd5__mobile .hd5__link { display: block; padding: 10px 0; font-size: 16px !important; border-bottom: 1px solid var(--borderSubtle); }
.footerGuides ul { list-style: none; padding: 0; margin: 0; columns: 2 150px; column-gap: 24px; }
.footerGuides li { break-inside: avoid; margin-bottom: 6px; }
.footerGuides a { color: var(--textSecondary); text-decoration: none; font-size: 14px; }
.footerGuides a:hover { color: var(--secondStyleColor); }
.footerTop { grid-template-columns: minmax(0,1fr) minmax(0,.7fr) minmax(0,1.5fr) minmax(0,.9fr) !important; }
@media (max-width: 900px) { .footerTop { grid-template-columns: 1fr 1fr !important; } }
@media (max-width: 600px) { .footerTop { grid-template-columns: 1fr !important; } .footerGuides ul { columns: 2 120px; } }

  /* ── Section ── */
  .faq14 {
    position: relative;
    padding: clamp(64px, 7vw, 110px) 20px;
    overflow: hidden;
    color: var(--textColor1);
  }

  /* ── Background Image ── */
  .faq14__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  /* ── Gradient Overlay ── */
  .faq14__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(
        ellipse at 30% 20%,
        color-mix(in srgb, var(--secondStyleColor) 12%, transparent),
        transparent 60%
      ),
      linear-gradient(
        180deg,
        color-mix(in srgb, var(--bodyBG) 92%, transparent) 0%,
        color-mix(in srgb, var(--bodyBG) 85%, transparent) 40%,
        color-mix(in srgb, var(--bodyBG) 95%, transparent) 100%
      );
  }

  /* ── Circuit-board pattern ── */
  .faq14::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0.03;
    background-image:
      linear-gradient(
        90deg,
        var(--secondStyleColor) 1px,
        transparent 1px
      ),
      linear-gradient(
        0deg,
        var(--secondStyleColor) 1px,
        transparent 1px
      );
    background-size: 60px 60px;
    pointer-events: none;
  }

  /* ── Container ── */
  .faq14 .container {
    position: relative;
    z-index: 2;
    max-width: var(--maxWidthContainer);
    margin: 0 auto;
  }

  /* ── Header ── */
  .faq14__head {
    text-align: center;
    margin-bottom: 56px;
  }

  .faq14__kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.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;
  }

  .faq14__kicker i {
    font-size: 12px;
  }

  .faq14__head h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: var(--textColor1);
    margin: 0 0 14px;
    letter-spacing: -0.02em;
    line-height: 1.15;
  }

  .faq14__head p {
    font-size: clamp(14px, 1.4vw, 16px);
    color: color-mix(in srgb, var(--textColor1) 55%, transparent);
    line-height: 1.7;
    margin: 0 auto;
  }

  /* ── List ── */
  .faq14__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* ── Item ── */
  .faq14__item {
    border-radius: var(--borderRadius);
    background: color-mix(in srgb, var(--bodyBG) 45%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid color-mix(in srgb, var(--textColor1) 8%, transparent);
    overflow: hidden;
    transition:
      border-color 0.35s ease,
      box-shadow 0.35s ease;
  }

  .faq14__item--open {
    border-color: color-mix(in srgb, var(--secondStyleColor) 25%, transparent);
    box-shadow: 0 8px 32px
      color-mix(in srgb, var(--secondStyleColor) 8%, transparent);
  }

  /* ── Trigger Button ── */
  .faq14__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: var(--textColor1);
    font-family: inherit;
    position: relative;
    transition:
      background 0.2s ease,
      color 0.3s ease;
  }

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

  .faq14__item--open .faq14__trigger {
    color: var(--secondStyleColor);
  }

  /* ── Neon Glow Left Border ── */
  .faq14__glow {
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--secondStyleColor);
    opacity: 0;
    transition: opacity 0.3s ease;
    box-shadow:
      0 0 12px var(--secondStyleColor),
      0 0 24px color-mix(in srgb, var(--secondStyleColor) 30%, transparent);
  }

  .faq14__item--open .faq14__glow {
    opacity: 1;
  }

  /* ── Number ── */
  .faq14__num {
    flex-shrink: 0;
    min-width: 28px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: color-mix(in srgb, var(--textColor1) 55%, transparent);
    transition: color 0.35s ease;
  }

  .faq14__item--open .faq14__num {
    color: var(--secondStyleColor);
  }

  /* ── Question Text ── */
  .faq14__question {
    flex: 1;
    font-size: clamp(15px, 1.4vw, 17px);
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
  }

  /* ── Toggle Icon ── */
  .faq14__toggle {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--textColor1) 8%, transparent);
    border-radius: 6px;
    font-size: 12px;
    color: color-mix(in srgb, var(--textColor1) 55%, transparent);
    transition:
      transform 0.35s ease,
      border-color 0.3s ease,
      background 0.3s ease,
      color 0.3s ease;
  }

  .faq14__item--open .faq14__toggle {
    transform: rotate(45deg);
    border-color: var(--secondStyleColor);
    background: color-mix(in srgb, var(--secondStyleColor) 10%, transparent);
    color: var(--secondStyleColor);
  }

  /* ── Body (collapsible) ── */
  .faq14__body {
    overflow: hidden;
    height: 0;
    transition: height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1);
  }

  /* ── Answer ── */
  .faq14__answer {
    padding: 0 24px 24px 68px;
    opacity: 0;
    transform: translateY(-8px);
    transition:
      opacity 0.35s 0.1s ease,
      transform 0.35s 0.1s ease;
  }

  .faq14__item--open .faq14__answer {
    opacity: 1;
    transform: translateY(0);
  }

  .faq14__answer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: color-mix(in srgb, var(--textColor1) 65%, transparent);
  }

  /* ── Responsive ── */
  @media (max-width: 950px) {
    .faq14 {
      padding: clamp(48px, 6vw, 80px) 20px;
    }
  }

  @media (max-width: 800px) {
    .faq14__answer {
      padding-left: 24px;
    }

    .faq14__trigger {
      padding: 18px 20px;
      gap: 12px;
    }
  }

  @media (max-width: 600px) {
    .faq14 {
      padding: 48px 16px;
    }

    .faq14__trigger {
      padding: 16px;
      gap: 10px;
    }

    .faq14__answer {
      padding: 0 16px 20px 16px;
    }
  }

  /* ── Reduced Motion ── */
  @media (prefers-reduced-motion: reduce) {
    .faq14__body,
    .faq14__answer,
    .faq14__toggle,
    .faq14__glow,
    .faq14__item,
    .faq14__trigger,
    .faq14__num {
      transition: none;
    }
  }
/* =========================================================
   ap — app spec-sheet kit (inner pages)
   ========================================================= */
:root {
  --apRule: rgba(255,255,255,0.09);
  --apTint: rgba(216,180,254,0.07);
  --apSafe: #86e5b0;
  --apWarn: #f5c66b;
  --apStop: #f28ea8;
}
.apSec { padding: clamp(46px, 5vw, 80px) 0; }
.apSec--tint { background: var(--apTint); }

/* hero as a listing card */
.apHero { padding: 118px 0 44px !important; }
.apHero__card { display: grid; grid-template-columns: 88px minmax(0,1fr); gap: 26px; align-items: start; }
.apIcon {
  width: 88px; height: 88px; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--secondStyleColor), rgba(216,180,254,.35));
  color: #1a0f1c; font-size: 34px; font-weight: 700; letter-spacing: -.02em;
}
.apHero h1 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.15; margin: 2px 0 14px; }
.apHero__sub { color: var(--textSecondary); line-height: 1.75; max-width: 70ch; }
.apTags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.apTags span {
  font-size: 12px !important; padding: 5px 12px; border-radius: 7px;
  border: 1px solid var(--apRule); color: var(--textSecondary); background: rgba(255,255,255,.02);
}

/* section head */
.apHead { margin-bottom: 26px; max-width: 780px; }
.apHead span { font-size: 12px !important; letter-spacing: .16em; text-transform: uppercase; color: var(--secondStyleColor); }
.apHead h2 { font-size: clamp(22px, 2.3vw, 30px); margin: 10px 0 10px; }
.apHead p { color: var(--textSecondary); line-height: 1.75; }

/* spec rows */
.apSpec { border-top: 1px solid var(--apRule); }
.apSpec__row { display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 24px; padding: 15px 16px; border-bottom: 1px solid var(--apRule); }
.apSpec__row:nth-child(odd) { background: rgba(255,255,255,0.02); }
.apSpec__row b { color: var(--textColor1); font-weight: 600; font-size: 15px; }
.apSpec__row p { margin: 0; color: var(--textSecondary); line-height: 1.65; font-size: 15px; }

/* verdict rows */
.apVerdict { display: grid; gap: 10px; }
.apVerdict__row {
  display: grid; grid-template-columns: minmax(0,1fr) 108px; gap: 20px; align-items: center;
  border: 1px solid var(--apRule); border-radius: 12px; padding: 16px 18px; background: var(--bgCard);
}
.apVerdict h3 { font-size: 16px; margin: 0 0 5px; }
.apVerdict p { margin: 0; color: var(--textSecondary); line-height: 1.6; font-size: 14px; }
.apPill {
  text-align: center; font-size: 12px !important; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 7px 0; border-radius: 999px;
}
.apPill--safe { background: rgba(134,229,176,.14); color: var(--apSafe); }
.apPill--warn { background: rgba(245,198,107,.14); color: var(--apWarn); }
.apPill--stop { background: rgba(242,142,168,.14); color: var(--apStop); }

/* quote callout */
.apQuote { position: relative; padding: 30px 34px 26px 78px; border: 1px solid var(--apRule); border-radius: 16px; background: var(--bgCard); }
.apQuote::before {
  content: "\201D"; position: absolute; left: 26px; top: 4px;
  font-size: 74px; line-height: 1; color: var(--secondStyleColor); opacity: .5;
}
.apQuote p { margin: 0; font-size: 19px !important; line-height: 1.6 !important; color: var(--textColor1); }
.apQuote cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: var(--textMuted); letter-spacing: .1em; text-transform: uppercase; }

/* numbered tiles */
.apTiles { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.apTile { border-bottom: 1px solid var(--apRule); padding-bottom: 20px; }
.apTile__n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--apTint); color: var(--secondStyleColor); font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.apTile h3 { font-size: 17px; margin: 0 0 7px; }
.apTile p { margin: 0; color: var(--textSecondary); line-height: 1.7; font-size: 15px; }

/* compare pair */
.apCompare { display: grid; grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr); gap: 0; align-items: stretch; }
.apCompare__side { border: 1px solid var(--apRule); border-radius: 14px; padding: 24px 22px; background: var(--bgCard); }
.apCompare__vs { display: grid; place-items: center; }
.apCompare__vs span {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--apRule); background: var(--bodyBG); color: var(--textMuted);
  font-size: 12px !important; letter-spacing: .08em; text-transform: uppercase;
}
.apCompare h3 { font-size: 17px; margin: 0 0 10px; }
.apCompare p { margin: 0 0 10px; color: var(--textSecondary); line-height: 1.7; font-size: 15px; }
.apCompare p:last-child { margin-bottom: 0; }

/* numbered pill list */
.apList { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.apList li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 16px; align-items: start; }
.apList li::before {
  content: counter(apItem); counter-increment: apItem;
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--secondStyleColor); color: #1a0f1c; font-size: 13px; font-weight: 700;
}
.apList { counter-reset: apItem; }
.apList p { margin: 0; color: var(--textSecondary); line-height: 1.7; font-size: 15px; padding-top: 4px; }
.apList b { color: var(--textColor1); font-weight: 600; }

/* striped warning strip */
.apWarn { display: grid; grid-template-columns: 10px minmax(0,1fr); border-radius: 12px; overflow: hidden; border: 1px solid var(--apRule); }
.apWarn__bar { background: repeating-linear-gradient(45deg, var(--apWarn) 0 8px, transparent 8px 16px); opacity: .7; }
.apWarn__body { padding: 22px 24px; background: var(--bgCard); }
.apWarn__body h3 { font-size: 17px; margin: 0 0 8px; }
.apWarn__body p { margin: 0; color: var(--textSecondary); line-height: 1.7; }

/* prose */
.apNotes { min-height: 0; }
.apNotes .page-content { max-width: 830px; }
.apNotes .page-content h2 { margin-top: 30px; }

@media (max-width: 900px) {
  .apTiles { grid-template-columns: 1fr; }
  .apCompare { grid-template-columns: 1fr; gap: 14px; }
  .apCompare__vs { padding: 2px 0; }
  .apSpec__row { grid-template-columns: 1fr; gap: 6px; }
  .apVerdict__row { grid-template-columns: 1fr; gap: 12px; }
  .apPill { max-width: 108px; }
  .apHero { padding-top: 96px !important; }
  .apHero__card { grid-template-columns: 64px minmax(0,1fr); gap: 18px; }
  .apIcon { width: 64px; height: 64px; border-radius: 17px; font-size: 26px; }
}

.hd5__mobile ul { width: 100%; }

/* burger panel: scroll when the guide list is taller than the screen */
.hd5__mobile, .hd6__mobile {
  align-items: flex-start !important;
  justify-content: flex-start !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 92px 20px 46px !important;
  gap: 20px !important;
}
.hd5__mobile ul, .hd6__mobile ul, .hd6__mobile-inner { width: 100%; }
@media (max-width: 640px) {
  .hd5__mobile, .hd6__mobile { padding: 80px 16px 36px !important; }
  .hd5__mobile .hd5__link, .hd6__mobile .hd6__link { padding: 8px 0 !important; font-size: 15px !important; }
}

/* keep the logo and the close button visible above the open guide panel */
.hd6 { z-index: 130 !important; }
body:has(.hd6__mobile.active) .hd6__bar { background: var(--bodyBG) !important; }
body:has(.hd5__mobile.active) .hd5 {
  position: fixed !important; top: 0; left: 0; right: 0; z-index: 130 !important;
  background: var(--bodyBG) !important;
}

/* the panel lives inside <header>, so lift the bar above it in the same stacking context */
.hd6__bar { position: relative; z-index: 120; }
.hd5__wrap { position: relative; z-index: 120; }
body:has(.hd5__mobile.active) .hd5__wrap,
body:has(.hd6__mobile.active) .hd6__bar { background: var(--bodyBG) !important; }
