    /* ============================================================
     * picodata.io — single global stylesheet
     *
     * To navigate, search for one of the section markers below
     * (each is a /* Section name *\/ comment). The file is ordered
     * top-down: tokens → globals → site chrome → home sections →
     * inner pages → reusable components → posts → forms → media.
     *
     * 01. Tokens & root            (palette, spacing, typography,
     *                               functional aliases)
     * 02. Base, anchors, 404
     * 03. Header bar               (mega-menu, mobile drawer)
     * 04. Hero                     (home page)
     * 05. Partners marquee
     * 06. Proof intro / pain section
     * 07. For-whom buying-trigger cards
     * 08. Footer
     * 09. Inner-page layout        (.page-hero, .page-body)
     * 10. Inline-link colour rules (text-flow vs buttons)
     * 11. Hero CTA row
     * 12. Organisation facts, sector list
     * 13. Quick-feature icon grid
     * 14. Comparison-table wrapper, .feature-card, .feature-card-bullets
     * 15. Download accordion, inline code, .codeblock
     * 16. Post listing, pagination, single-post body
     * 17. Collapsible cut for image-heavy posts
     * 18. Solution pillars
     * 19. Why-better manifesto + comparison table
     * 20. Final CTA, contact form
     * 21. Media queries (consolidated below)
     *
     * Responsive breakpoints — keep to this set. CSS @media does not
     * accept var() for the width condition, so the values are inlined
     * everywhere; do not introduce new ones.
     *
     *   max-width:  600px   phone (portrait + landscape)
     *   max-width:  860px   tablet
     *   max-width: 1024px   small desktop / wide tablet
     *
     *   1024px and (min-width: 861px) — narrow band for header
     *   nav-trigger sizing only.
     *
     * Container peaks at max-width: 1120px (.container), which is a
     * layout cap, not a breakpoint.
     * ============================================================ */

    :root {
      /* === Picodata brand palette — values from brand-book SVGs === */
      --pico-red:        #E23956; /* фирменный (Pico Red) */
      --pico-red-dark:   #B91B36; /* hover, нижняя точка red-градиентов */
      --pico-red-button: #C6243F; /* финиш hero-кнопочного градиента */
      --pico-red-deep:   #C5004F; /* переход red → magenta */
      --pico-red-deeper: #760A43; /* нижняя точка magenta-градиентов */
      --pico-black:      #2C1322; /* тёплый сливово-чёрный, НЕ нейтральный */
      --pico-black-deep: #240C1A; /* самый тёмный (фоны, codeblock) */
      --pico-orange:     #F26B1F; /* «солнечный блик» сверху-слева */
      --pico-pink-50:    #FFF0F3; /* pink wash hero-секций */

      /* нейтрали */
      --white:        #ffffff;
      --neutral-100:  #f6f7f9;
      --neutral-200:  #f3f4f6;
      --neutral-300:  #eaeaea;
      --neutral-500:  #4a5568;

      /* === Spacing scale (4-based) — for padding, margin, gap.
         Off-scale values (6/10/14/18/22/28) stay as raw px until
         the surrounding section is touched again. === */
      --space-1:    4px;
      --space-2:    8px;
      --space-3:   12px;
      --space-4:   16px;
      --space-5:   20px;
      --space-6:   24px;
      --space-8:   32px;
      --space-10:  40px;
      --space-12:  48px;
      --space-14:  56px;
      --space-16:  64px;
      --space-18:  72px;
      --space-20:  80px;

      /* === Typography scale — for font-size only.
         Off-scale (16/18/19/28/30/34/96) stays as raw px. === */
      --text-xs:    11px;  /* tiny labels, badges */
      --text-2xs:   12px;  /* meta dates, pillar badge */
      --text-sm:    13px;  /* captions, table cells, mega-link-desc */
      --text-base:  14px;  /* default body in tighter contexts */
      --text-md:    15px;  /* alt body, mega-link, .pillar > p */
      --text-lg:    17px;  /* page lead, body default */
      --text-xl:    20px;  /* hero sub, section lead */
      --text-2xl:   26px;  /* post-body h2 */
      --text-3xl:   32px;  /* page h1 */
      --text-4xl:   40px;  /* pain card title */
      --text-5xl:   52px;  /* hero h1 */

      /* === функциональные алиасы — компоненты используют их === */
      --bg:           var(--white);
      --fg:           var(--pico-black);
      --fg-muted:     var(--neutral-500);
      --accent:       var(--pico-red);
      --accent-hover: var(--pico-red-dark);
      --accent-soft:  rgba(226, 57, 86, 0.06);
      --border:       var(--neutral-300);
      --surface:      var(--neutral-100);
      --surface-soft: var(--pico-pink-50);
    }
    * { box-sizing: border-box; }
    body {
      margin: 0;
      font-family: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
      font-feature-settings: "cv11", "ss01", "calt";
      color: var(--fg);
      background: var(--bg);
      line-height: 1.5;
      font-size: var(--text-lg);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
    .container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }

    /* Hash anchors land above the sticky header. The header is 64px tall;
       80px gives the heading a small breathing room above the bar. */
    html { scroll-padding-top: var(--space-20); }

    /* 404 page. */
    .page-404 { padding: var(--space-16) 0 96px; text-align: center; }
    .page-404-status {
      font-size: 96px;
      font-weight: 700;
      color: var(--accent);
      letter-spacing: -0.04em;
      margin: 0;
      line-height: 1;
    }
    .page-404 h1 { font-size: var(--text-3xl); margin: var(--space-2) 0 var(--space-4); }
    .page-404 .lead { font-size: var(--text-lg); color: var(--fg-muted); max-width: 540px; margin: 0 auto var(--space-8); }
    .page-404 h2 { font-size: 18px; margin: var(--space-8) 0 var(--space-3); color: var(--fg-muted); font-weight: 600; }
    .page-404-nav {
      list-style: none;
      padding: 0;
      margin: 0 auto;
      max-width: 540px;
      text-align: left;
    }
    .page-404-nav li { margin: var(--space-2) 0; line-height: 1.6; }

    /* Hover-revealed «#» permalink on h2 and h3 inside <main>.
       Injected at runtime by the Default layout. */
    main h2[id]:hover .heading-anchor,
    main h3[id]:hover .heading-anchor,
    .heading-anchor:focus,
    .heading-anchor.is-copied { opacity: 1; }
    .heading-anchor {
      margin-left: 10px;
      color: var(--accent);
      text-decoration: none;
      font-weight: 400;
      opacity: 0;
      transition: opacity 0.15s;
    }
    .heading-anchor:hover { text-decoration: underline; }
    .heading-anchor.is-copied::after {
      content: ' скопировано';
      margin-left: var(--space-1);
      font-size: 0.55em;
      letter-spacing: 0.04em;
      color: var(--fg-muted);
    }

    /* ===== Header bar ===== */
    header.site {
      background: var(--bg);
      border-bottom: 1px solid var(--border);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    header.site .topbar {
      display: flex;
      align-items: center;
      gap: 28px;
      height: 64px;
    }
    .logo {
      display: inline-flex;
      align-items: center;
      flex: 0 0 auto;
      text-decoration: none;
    }
    .logo img {
      display: block;
      height: 28px;
      width: auto;
    }

    /* Top-level menu triggers */
    nav.primary {
      display: flex;
      align-items: stretch;
      gap: var(--space-1);
      flex: 1;
      min-width: 0;
    }
    .menu-item {
      display: flex;
      align-items: center;
    }
    .menu-trigger {
      display: inline-flex;
      align-items: center;
      height: 64px;
      padding: 0 14px;
      color: var(--fg);
      font-size: var(--text-md);
      font-weight: 500;
      text-decoration: none;
      transition: color 0.15s ease;
    }
    .menu-item:hover .menu-trigger,
    .menu-item:focus-within .menu-trigger { color: var(--accent); }

    /* Full-width mega panel below the bar */
    .mega-panel {
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      background: var(--bg);
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
      padding: var(--space-8) 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(-6px);
      transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
      z-index: 90;
    }
    .menu-item:hover .mega-panel,
    .menu-item:focus-within .mega-panel {
      opacity: 1;
      visibility: visible;
      transform: none;
    }
    .mega-grid {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: var(--space-12);
      align-items: start;
    }
    .mega-label {
      color: var(--accent);
      font-size: 18px;
      font-weight: 600;
      letter-spacing: -0.01em;
    }
    .mega-items {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px 36px;
    }
    .mega-link {
      display: block;
      text-decoration: none;
      color: var(--fg);
      transition: color 0.15s ease;
    }
    .mega-link:hover { color: var(--accent); }
    .mega-link:hover .mega-link-title { color: var(--accent); }
    .mega-link-title {
      display: block;
      font-size: var(--text-md);
      font-weight: 500;
      line-height: 1.4;
    }
    .mega-items.is-rich .mega-link-title { font-weight: 700; font-size: 16px; }
    .mega-link-desc {
      display: block;
      font-size: var(--text-sm);
      color: var(--fg-muted);
      line-height: 1.5;
      margin-top: var(--space-1);
    }
    .mega-link.is-all .mega-link-title { color: var(--accent); }

    /* Right-side cluster */
    .aux {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-left: auto;
    }
    .aux-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 32px;
      height: 32px;
      color: var(--fg-muted);
      text-decoration: none;
      border-radius: 6px;
      transition: color 0.15s ease, background 0.15s ease;
    }
    .aux-icon:hover { color: var(--accent); background: var(--surface); }
    .nav-btn {
      display: inline-block;
      padding: 9px 18px;
      background: var(--accent);
      color: #fff;
      border-radius: 6px;
      font-size: var(--text-base);
      font-weight: 600;
      text-decoration: none;
      transition: background 0.15s ease;
    }
    .nav-btn:hover { background: var(--accent-hover); color: #fff; }

    /* Hamburger (mobile only) */
    .hamburger {
      display: none;
      flex-direction: column;
      justify-content: center;
      gap: 5px;
      width: 40px;
      height: 40px;
      padding: 0;
      background: none;
      border: 0;
      cursor: pointer;
    }
    .hamburger span {
      display: block;
      width: 22px;
      height: 2px;
      background: var(--fg);
      margin: 0 auto;
      border-radius: 1px;
    }

    /* Mobile drawer (hidden on desktop) */
    .drawer { display: none; }

    @media (max-width: 860px) {
      nav.primary { display: none; }
      .aux .aux-icon,
      .aux .nav-btn { display: none; }
      .hamburger { display: flex; }

      .drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        inset: 0;
        background: var(--bg);
        z-index: 200;
        transform: translateX(100%);
        transition: transform 0.25s ease;
        overflow-y: auto;
      }
      body.menu-open { overflow: hidden; }
      body.menu-open .drawer { transform: none; }

      .drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px var(--space-6);
        border-bottom: 1px solid var(--border);
        flex: 0 0 auto;
      }
      .drawer-close {
        background: none;
        border: 0;
        color: var(--fg);
        cursor: pointer;
        padding: var(--space-2);
        display: inline-flex;
      }

      .drawer-list {
        list-style: none;
        margin: 0;
        padding: 0;
        flex: 1;
      }
      .drawer-section {
        border-bottom: 1px solid var(--border);
        padding: 0 var(--space-6);
      }
      .drawer-trigger {
        width: 100%;
        background: none;
        border: 0;
        padding: 18px 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 18px;
        font-weight: 700;
        color: var(--fg);
        cursor: pointer;
        font-family: inherit;
      }
      .drawer-chevron {
        color: var(--fg-muted);
        transition: transform 0.2s ease;
      }
      .drawer-section.is-open .drawer-chevron { transform: rotate(180deg); }
      .drawer-items {
        display: none;
        flex-direction: column;
        gap: 6px;
        padding: 0 0 18px;
      }
      .drawer-section.is-open .drawer-items { display: flex; }
      .drawer-items a {
        color: var(--fg);
        text-decoration: none;
        padding: var(--space-1) 0;
        font-size: 16px;
      }
      .drawer-items a.is-all { color: var(--accent); }

      .drawer-foot {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: var(--space-6);
        border-top: 1px solid var(--border);
      }
      .drawer-foot .nav-btn { display: inline-block; }
      .drawer-icons {
        display: flex;
        align-items: center;
        gap: 10px;
      }
      .drawer-icons .aux-icon { display: inline-flex; }
    }

    @media (max-width: 1024px) and (min-width: 861px) {
      .menu-trigger { padding: 0 10px; font-size: var(--text-base); }
      .aux { gap: 10px; }
    }

    section.hero {
      padding: 88px 0 var(--space-18);
      background:
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(226, 57, 86, 0.045), transparent 70%),
        radial-gradient(ellipse 50% 40% at 10% 85%, rgba(226, 57, 86, 0.03), transparent 70%);
    }
    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: var(--space-14);
      align-items: center;
    }
    .hero h1 {
      font-size: var(--text-5xl);
      line-height: 1.08;
      margin: 0 0 var(--space-5);
      letter-spacing: -0.025em;
      font-weight: 700;
    }
    .hero .sub {
      font-size: var(--text-xl);
      color: var(--fg-muted);
      margin: 0 0 28px;
      max-width: 600px;
      line-height: 1.45;
    }
    .badges { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-8); }
    .badges > span {
      display: inline-block;
      padding: 6px var(--space-3);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: var(--text-base);
      color: var(--fg);
    }
    .badges > span a {
      color: inherit;
      text-decoration: none;
    }
    .badges > span a:hover {
      color: var(--accent);
    }
    .badges > span .sep {
      color: var(--fg-muted);
      margin: 0 6px;
    }
    .ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: 14px; }
    .btn {
      display: inline-block;
      padding: 14px 22px;
      border-radius: 8px;
      font-weight: 600;
      font-size: 16px;
      text-decoration: none;
      border: 1px solid transparent;
    }
    .btn-primary { background: var(--accent); color: #fff; }
    .btn-primary:hover { background: var(--accent-hover); }
    .btn-secondary { background: transparent; color: var(--fg); border-color: var(--border); }
    .btn-secondary:hover { border-color: var(--fg); }
    .cta-row { margin: var(--space-8) 0 0; }
    .hero-link { font-size: var(--text-md); color: var(--fg-muted); margin: 0; }
    .hero-link a { color: var(--accent); text-decoration: none; }
    .hero-link a:hover { text-decoration: underline; }

    .hero-visual { width: 100%; }
    .hero-visual svg { width: 100%; height: auto; display: block; }

    /* Partners — brand-red strip with continuous-scroll marquee */
    section.partners {
      background: var(--accent);
      padding: 28px 0;
      overflow: hidden;
    }
    .partners-marquee {
      width: 100%;
      overflow: hidden;
      mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
      -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    }
    .partners-track {
      display: inline-flex;
      align-items: center;
      gap: var(--space-14);
      animation: partners-scroll 40s linear infinite;
      white-space: nowrap;
      will-change: transform;
    }
    .partners-track img {
      height: 56px;
      width: auto;
      flex: 0 0 auto;
      display: block;
    }
    .partners-marquee:hover .partners-track { animation-play-state: paused; }
    @keyframes partners-scroll {
      from { transform: translateX(0); }
      to   { transform: translateX(-50%); }
    }
    @media (prefers-reduced-motion: reduce) {
      .partners-track { animation: none; flex-wrap: wrap; justify-content: center; gap: var(--space-8); }
    }

    section.proof { border-top: 1px solid var(--border); padding: var(--space-18) 0; background: var(--surface); }
    .proof-intro { font-size: var(--text-xl); line-height: 1.5; margin: 0 0 var(--space-10); max-width: 880px; }
    .proof-intro strong { font-weight: 700; }

    .metrics {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: var(--space-6);
      margin-bottom: 44px;
    }
    .metric { display: flex; flex-direction: column; gap: var(--space-2); }
    .metric-value {
      font-size: var(--text-3xl);
      font-weight: 700;
      letter-spacing: -0.02em;
      line-height: 1.1;
      color: var(--fg);
    }
    .metric-label { font-size: var(--text-base); color: var(--fg-muted); line-height: 1.4; }

    .industries {
      font-size: var(--text-lg);
      line-height: 1.5;
      margin: 0 0 var(--space-12);
      max-width: 920px;
    }
    .industries strong { font-weight: 600; }

    .heritage {
      font-size: 16px;
      line-height: 1.55;
      color: var(--fg);
      margin: 0 0 var(--space-10);
      padding: var(--space-5) 22px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-left: 3px solid var(--accent);
      border-radius: 8px;
      max-width: 980px;
    }
    .heritage strong { font-weight: 600; }

    section.pain { border-top: 1px solid var(--border); padding: var(--space-18) 0; }
    .section-h2 { font-size: var(--text-3xl); margin: 0 0 var(--space-3); letter-spacing: -0.015em; }
    .section-lead { font-size: var(--text-lg); color: var(--fg-muted); margin: 0 0 var(--space-10); max-width: 600px; }
    .pain-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-5);
    }
    .pain-card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 26px 28px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .pain-badge {
      display: inline-block;
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent);
      font-weight: 700;
      align-self: flex-start;
    }
    .pain-card h3 {
      font-size: var(--text-xl);
      line-height: 1.25;
      margin: 0;
      letter-spacing: -0.01em;
    }
    .pain-body {
      margin: 0;
      color: var(--fg-muted);
      font-size: var(--text-md);
      line-height: 1.55;
    }
    .pain-answer {
      margin: 0;
      font-size: var(--text-md);
      line-height: 1.55;
      color: var(--fg);
    }
    .pain-proof {
      margin: var(--space-1) 0 0;
      font-size: var(--text-base);
      color: var(--fg-muted);
      border-top: 1px solid var(--border);
      padding-top: var(--space-3);
      line-height: 1.5;
    }
    .pain-proof a { color: var(--accent); text-decoration: none; }
    .pain-proof a:hover { text-decoration: underline; }

    .testimonials {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-5);
    }
    .testimonial {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: var(--space-6);
      display: flex;
      flex-direction: column;
      gap: 14px;
      position: relative;
    }
    .testimonial blockquote { margin: 0; font-size: 16px; line-height: 1.55; color: var(--fg); }
    .testimonial cite { font-style: normal; font-size: var(--text-base); color: var(--fg-muted); }
    .draft-tag {
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #8a5a00;
      background: #fff5e0;
      border: 1px solid #f0dfb0;
      padding: var(--space-1) var(--space-2);
      border-radius: 4px;
      align-self: flex-start;
    }

    section.stub { border-top: 1px solid var(--border); padding: var(--space-14) 0; }
    section.stub h2 { font-size: 28px; margin: 0 0 var(--space-3); letter-spacing: -0.01em; }
    section.stub .hint { color: var(--fg-muted); font-size: var(--text-md); margin: 0; }
    section.stub .todo {
      margin-top: var(--space-4);
      padding: 14px var(--space-4);
      background: var(--surface);
      border-left: 3px solid var(--accent);
      border-radius: 6px;
      font-size: var(--text-base);
      color: var(--fg-muted);
    }

    @media (max-width: 860px) {
      .metrics { grid-template-columns: repeat(2, 1fr); }
      .testimonials { grid-template-columns: 1fr; }
      .pain-cards { grid-template-columns: 1fr; }
    }

    @media (max-width: 860px) {
      .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); }
      .hero h1 { font-size: 34px; }
      .hero .sub { font-size: 18px; }
    }

    /* FOR WHOM section (buying-trigger cards) */
    section.for-whom { border-top: 1px solid var(--border); padding: var(--space-18) 0; background: var(--surface); }
    .whom-cards {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-5);
    }
    .whom-card {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 26px 28px;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s, transform 0.15s;
    }
    .whom-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
    }
    .whom-badge {
      font-size: var(--text-xs);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--accent);
      font-weight: 700;
      align-self: flex-start;
    }
    .whom-card h3 {
      font-size: 19px;
      line-height: 1.3;
      margin: 0;
      letter-spacing: -0.01em;
    }
    .whom-card p {
      margin: 0;
      color: var(--fg-muted);
      font-size: var(--text-md);
      line-height: 1.55;
      flex-grow: 1;
    }
    .whom-cta {
      color: var(--accent);
      font-weight: 600;
      font-size: var(--text-md);
      margin-top: var(--space-1);
    }

    /* Footer */
    footer.site-footer {
      border-top: 1px solid var(--border);
      padding: var(--space-14) 0 0;
      background: var(--bg);
      font-size: var(--text-base);
      color: var(--fg-muted);
    }
    footer.site-footer > .container {
      display: grid;
      grid-template-columns: minmax(260px, 1.4fr) 3fr;
      gap: var(--space-14);
      align-items: start;
    }
    footer.site-footer h4 {
      font-size: var(--text-sm);
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: var(--fg);
      margin: 0 0 var(--space-3);
      font-weight: 700;
    }
    footer.site-footer .footer-nav ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    footer.site-footer a {
      color: var(--fg-muted);
      text-decoration: none;
    }
    footer.site-footer a:hover { color: var(--accent); }

    .footer-info { display: flex; flex-direction: column; gap: 18px; }
    .footer-logo img { display: block; height: 28px; width: auto; }
    .site-footer .tagline {
      font-size: var(--text-base);
      line-height: 1.5;
      margin: 0;
      max-width: 320px;
    }
    .footer-arenadata {
      display: inline-flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 6px;
      color: var(--fg-muted);
      text-decoration: none;
    }
    .footer-arenadata span { font-size: var(--text-2xs); letter-spacing: 0.02em; }
    .footer-arenadata img { display: block; height: 22px; width: auto; }
    .footer-arenadata:hover { opacity: 0.85; }

    .footer-socials { display: flex; gap: 10px; }
    .footer-socials a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 6px;
      color: var(--fg-muted);
      transition: color 0.15s ease, background 0.15s ease;
    }
    .footer-socials a:hover { color: var(--accent); background: var(--surface); }

    .footer-nav {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: var(--space-8);
    }

    .footer-legal {
      margin-top: var(--space-14);
      padding: var(--space-6) 0;
      border-top: 1px solid var(--border);
      font-size: var(--text-sm);
      color: var(--fg-muted);
    }
    .footer-legal > .container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: center;
      gap: var(--space-2) 28px;
    }
    .footer-legal p { margin: 0; white-space: nowrap; }
    .footer-legal ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: row;
      align-items: center;
      gap: 28px;
      flex-wrap: nowrap;
    }
    .footer-legal li { white-space: nowrap; }
    .footer-legal a { color: var(--fg-muted); text-decoration: none; }
    .footer-legal a:hover { color: var(--accent); }

    /* Inner page layout */
    main.page { padding: var(--space-12) 0 var(--space-20); }
    main.page--has-hero { padding: 0 0 var(--space-20); }

    /* Inner-page hero: soft pink wash mirroring picodata.io's solution-detail
       sections. Title in brand red, body in dark grey, illustration on the right.
       The faint pink wave decoration in the bottom-right echoes brand-book
       page 4 («Слайд с текстовым контентом»). */
    .page-hero {
      position: relative;
      overflow: hidden;
      isolation: isolate;
      background: linear-gradient(180deg, var(--pico-pink-50) 0%, var(--white) 100%);
      color: var(--fg);
      padding: var(--space-8) 0 50px;
    }
    .page-hero::after {
      content: '';
      position: absolute;
      right: -8%;
      bottom: -45%;
      width: 70%;
      aspect-ratio: 16 / 9;
      background: url('/brand/backgrounds/wave-light.svg') center / contain no-repeat;
      pointer-events: none;
      z-index: -1;
    }

    .page-hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
      gap: 60px;
      align-items: center;
    }
    .page-hero-text { min-width: 0; }
    .page-hero-breadcrumbs { margin-bottom: var(--space-4); }
    .page-hero-breadcrumbs .breadcrumbs,
    .page-hero-breadcrumbs .breadcrumbs * { color: var(--fg-muted); }
    .page-hero-breadcrumbs .breadcrumbs a { color: var(--fg); }
    .page-hero-breadcrumbs .breadcrumbs a:hover { color: var(--accent); }
    .page-hero h1 {
      color: var(--accent);
      font-size: 28px;
      font-weight: 700;
      line-height: 1.4;
      letter-spacing: -0.01em;
      margin: var(--space-4) 0 0;
    }
    .page-hero .lead {
      color: var(--fg);
      font-size: var(--text-lg);
      line-height: 1.4;
      max-width: 580px;
      margin: var(--space-4) 0 0;
    }
    .page-hero-art {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .page-hero-art img {
      max-width: 100%;
      height: auto;
    }
    main.page--has-hero > .container { padding-top: var(--space-14); }
    @media (max-width: 860px) {
      .page-hero { padding: 28px 0 var(--space-12); }
      .page-hero-grid { grid-template-columns: 1fr; gap: 28px; }
      .page-hero h1 { font-size: 30px; }
      .page-hero .lead { font-size: 16px; }
      .page-hero-art img { max-width: 80%; }
    }

    /* /solutions/ index — gradient cards with icon */
    .solution-cards {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--space-5);
    }
    /* Picodata.io's exact card layout: flex column with two children — content
       block (icon + title + desc) and arrow at bottom-right. Padding/typography
       mirrors their solution__link rules. */
    .solution-card {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      justify-content: space-between;
      height: 100%;
      padding: 22px;
      border: 2px solid var(--accent);
      border-radius: 20px;
      background: linear-gradient(180deg, var(--pico-pink-50) 0%, var(--white) 100%);
      color: var(--fg);
      text-decoration: none;
      transition: border-color 0.18s ease;
    }
    .solution-card:hover { border-color: var(--accent-hover); }
    .solution-card-content { display: block; }
    .solution-card-icon {
      width: 64px;
      height: 64px;
      display: block;
    }
    .solution-card-title {
      font-size: var(--text-xl);
      line-height: 26px;
      font-weight: 700;
      letter-spacing: -0.01em;
      margin: var(--space-5) 0 0;
      color: var(--fg);
    }
    .solution-card-desc {
      font-size: var(--text-md);
      line-height: 1.4;
      color: var(--fg);
      margin: var(--space-3) 0 0;
    }
    .solution-card-arrow {
      align-self: flex-end;
      margin-top: var(--space-4);
      color: var(--accent);
      transition: color 0.15s ease, transform 0.15s ease;
    }
    .solution-card:hover .solution-card-arrow {
      color: var(--accent-hover);
      transform: translateX(2px);
    }
    @media (max-width: 1023px) {
      .solution-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 600px) {
      .solution-cards { grid-template-columns: 1fr; }
    }

    .breadcrumbs { font-size: var(--text-base); color: var(--fg-muted); margin: 0 0 var(--space-6); }
    .breadcrumbs a { color: var(--fg-muted); text-decoration: none; }
    .breadcrumbs a:hover { color: var(--accent); }
    .breadcrumbs .sep { margin: 0 6px; opacity: 0.5; }
    main.page h1 {
      font-size: var(--text-4xl);
      line-height: 1.1;
      letter-spacing: -0.015em;
      margin: 0 0 var(--space-4);
      max-width: 860px;
    }
    main.page .lead {
      font-size: var(--text-xl);
      color: var(--fg-muted);
      line-height: 1.5;
      max-width: 820px;
      margin: 0 0 var(--space-10);
    }
    /* Page body fills the container; text-elements get a readable max-width
       so prose stays comfortable. Card/tile/list grids with their own class
       attribute keep full container width. */
    main.page .page-body { max-width: none; }
    main.page .page-body h2 { font-size: var(--text-2xl); margin: var(--space-10) 0 14px; letter-spacing: -0.01em; max-width: 820px; }
    main.page .page-body h3 { font-size: 19px; margin: 28px 0 10px; max-width: 820px; }
    main.page .page-body > p,
    main.page .page-body > h2,
    main.page .page-body > h3,
    main.page .page-body > h4,
    main.page .page-body > blockquote,
    main.page .page-body > dl,
    main.page .page-body > ul:not([class]),
    main.page .page-body > ol:not([class]) { max-width: 820px; }
    main.page .page-body p { margin: 0 0 14px; line-height: 1.6; }
    main.page .page-body ul { margin: 0 0 14px; padding-left: 22px; line-height: 1.6; }
    main.page .page-body ul[class] { padding-left: 0; }
    /* Inline links inside text-flow elements get the brand color; buttons,
       tabs, cards and similar self-styled controls keep their own colors.
       The high-specificity overrides below restore button/tab text color
       even when they are nested inside <p> or <li> on inner pages. */
    main.page .page-body :is(p, li, h2, h3, h4, h5, h6, blockquote, dt, dd, td, th, summary) a { color: var(--accent); }
    main.page .page-body a.btn-primary,
    main.page .page-body a.btn-primary:hover { color: #fff; }
    main.page .page-body a.btn-secondary { color: var(--fg); }
    main.page .page-body a.btn-secondary:hover { color: var(--fg); }
    main.page .page-body a.post-tab { color: var(--fg-muted); }
    main.page .page-body a.post-tab:hover { color: var(--fg); }
    main.page .page-body a.post-tab.is-active { color: #fff; }
    main.page .page-body a.post-page { color: var(--fg); }
    main.page .page-body a.post-page:hover { color: var(--accent); }
    main.page .page-body a.post-card-link { color: inherit; }
    main.page .page-body a.solution-card { color: var(--fg); }
    main.page .page-body blockquote {
      margin: var(--space-5) 0;
      padding: 14px var(--space-5);
      background: var(--surface);
      border-left: 3px solid var(--accent);
      border-radius: 4px;
      color: var(--fg);
      font-style: italic;
    }

    /* Hero CTA row — pair of primary+secondary buttons under the lead */
    .hero-cta-row {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-3);
      margin: 0 0 var(--space-8);
    }

    /* Organization facts (used on /about/) — two-column term/definition list */
    .org-facts {
      display: grid;
      grid-template-columns: minmax(180px, max-content) 1fr;
      gap: var(--space-2) var(--space-6);
      margin: var(--space-4) 0 var(--space-6);
      max-width: 820px;
    }
    .org-facts dt {
      font-size: var(--text-base);
      color: var(--fg-muted);
      letter-spacing: 0.01em;
    }
    .org-facts dd {
      margin: 0;
      font-size: var(--text-md);
      color: var(--fg);
    }
    @media (max-width: 600px) {
      .org-facts { grid-template-columns: 1fr; gap: var(--space-1) 0; }
      .org-facts dd { margin: 0 0 10px; }
    }

    /* Sector list — icons + labels in a row (used on /about/ Портфель клиентов) */
    .sector-list {
      list-style: none;
      padding: 0;
      margin: var(--space-3) 0 var(--space-6);
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-3) var(--space-6);
    }
    .sector-list li {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 10px var(--space-4);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      font-size: var(--text-md);
      color: var(--fg);
    }
    .sector-list img {
      width: 22px;
      height: 22px;
      object-fit: contain;
    }

    /* Compact icon+text grid for quick-feature lists (Sirin, Radix etc.) */
    .key-features-grid {
      list-style: none;
      padding: 0;
      margin: var(--space-4) 0 36px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px 28px;
    }
    .key-features-grid li {
      display: flex;
      align-items: center;
      gap: 14px;
      font-size: var(--text-md);
      line-height: 1.45;
      color: var(--fg);
    }
    .key-features-grid img {
      width: 48px;
      height: 48px;
      flex: 0 0 auto;
      object-fit: contain;
    }
    @media (max-width: 860px) {
      .key-features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 600px) {
      .key-features-grid { grid-template-columns: 1fr; }
    }

    /* Bullet list rendered inside .feature-card */
    .feature-card-bullets {
      list-style: none;
      padding: 0;
      margin: var(--space-1) 0 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }
    .feature-card-bullets li {
      position: relative;
      padding-left: 18px;
      font-size: var(--text-base);
      line-height: 1.55;
      color: var(--fg-muted);
    }
    .feature-card-bullets li::before {
      content: '';
      position: absolute;
      left: var(--space-1);
      top: 0.65em;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    /* Comparison-table wrapper for horizontal scroll on narrow viewports */
    .comparison-wrap {
      overflow-x: auto;
      margin: var(--space-4) 0 var(--space-8);
      border: 1px solid var(--border);
      border-radius: 8px;
    }
    .comparison-wrap .comparison-table { min-width: 720px; }

    /* Feature cards on /redis-fstek/, /sirin/, /picodata/ — red-gradient
       cards with white text, mirroring picodata.io's «Преимущества» block.
       padding 25, radius 15, internal gap 30, title 20/500, body 15/24. */
    .feature-cards {
      list-style: none;
      padding: 0;
      margin: var(--space-4) 0 var(--space-10);
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--space-5);
    }
    .feature-card {
      background: linear-gradient(180deg, var(--pico-red) 0%, var(--pico-red-button) 100%);
      border-radius: 15px;
      padding: 25px;
      display: flex;
      flex-direction: column;
      gap: 30px;
      color: #fff;
    }
    .feature-card-icon {
      width: 64px;
      height: 64px;
      object-fit: contain;
      object-position: left center;
      display: block;
      filter: brightness(0) invert(1);
    }
    .feature-card h3 {
      font-size: var(--text-xl);
      line-height: 1.3;
      font-weight: 500;
      letter-spacing: -0.01em;
      margin: 0;
      color: #fff;
    }
    .feature-card p {
      font-size: var(--text-md);
      line-height: 24px;
      color: #fff;
      margin: 0;
    }
    .feature-card a { color: #fff; text-decoration: underline; }
    @media (max-width: 1024px) {
      .feature-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 860px) {
      .feature-cards { grid-template-columns: 1fr; }
    }

    /* Bullet list inside red feature-card needs white styling (Sirin pillars) */
    .feature-card .feature-card-bullets li { color: rgba(255,255,255,0.92); }
    .feature-card .feature-card-bullets li::before { background: #fff; }

    /* Download page — install accordion + copyable code blocks */
    .os-toc {
      list-style: none;
      padding: 0;
      margin: var(--space-4) 0 var(--space-6);
      display: flex;
      flex-wrap: wrap;
      gap: 6px var(--space-3);
      max-width: 820px;
    }
    .os-toc li {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 999px;
      padding: 5px 14px;
      font-size: var(--text-base);
    }
    .os-toc a {
      color: var(--accent);
      text-decoration: none;
    }
    .os-toc a:hover { text-decoration: underline; }

    .install-accordion {
      max-width: 820px;
      margin: var(--space-6) 0 var(--space-10);
      border-top: 1px solid var(--border);
    }
    .install-accordion details {
      border-bottom: 1px solid var(--border);
    }
    .install-accordion summary {
      list-style: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px var(--space-1);
      font-weight: 600;
      font-size: 18px;
      color: var(--fg);
      user-select: none;
    }
    .install-accordion summary::-webkit-details-marker { display: none; }
    .install-accordion summary:hover .acc-title { color: var(--accent); }
    .install-accordion .acc-icon {
      flex: 0 0 auto;
      width: 22px;
      height: 22px;
      position: relative;
      border: 1.5px solid var(--fg-muted);
      border-radius: 50%;
      transition: border-color 0.15s ease, background 0.15s ease, transform 0.2s ease;
    }
    .install-accordion .acc-icon::before,
    .install-accordion .acc-icon::after {
      content: '';
      position: absolute;
      background: var(--fg-muted);
      transition: background 0.15s ease, transform 0.2s ease, opacity 0.2s ease;
    }
    .install-accordion .acc-icon::before {
      top: 50%;
      left: 25%;
      right: 25%;
      height: 1.5px;
      transform: translateY(-50%);
    }
    .install-accordion .acc-icon::after {
      left: 50%;
      top: 25%;
      bottom: 25%;
      width: 1.5px;
      transform: translateX(-50%);
    }
    .install-accordion summary:hover .acc-icon { border-color: var(--accent); }
    .install-accordion summary:hover .acc-icon::before,
    .install-accordion summary:hover .acc-icon::after { background: var(--accent); }
    .install-accordion details[open] > summary .acc-icon::after { opacity: 0; }
    .install-accordion details[open] > summary .acc-icon { transform: rotate(180deg); }

    .install-accordion .acc-body {
      counter-reset: codestep;
      padding: var(--space-1) var(--space-1) var(--space-6);
    }
    .install-accordion .acc-body p { margin: 0 0 10px; line-height: 1.6; }
    /* Inline <code> only — block code lives inside <pre class="codeblock">
       and has its own dark theme below. Without :not(pre) > the surface
       background here would override the dark theme and produce
       near-white text on near-white background. */
    .install-accordion .acc-body :not(pre) > code {
      background: var(--surface);
      padding: 1px 5px;
      border-radius: 3px;
      font-size: 0.92em;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }

    /* Code block — bar with lang + copy button + numbered step on the side */
    pre.codeblock {
      position: relative;
      background: var(--pico-black-deep);
      color: var(--neutral-200);
      border-radius: 8px;
      margin: 14px 0 18px;
      padding: 0;
      overflow: hidden;
      counter-increment: codestep;
    }
    pre.codeblock::before {
      content: counter(codestep);
      position: absolute;
      left: -34px;
      top: 36px;
      width: 26px;
      height: 26px;
      border-radius: 50%;
      background: var(--accent);
      color: #fff;
      font-size: var(--text-sm);
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    pre.codeblock .codeblock-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px var(--space-3);
      background: rgba(255, 255, 255, 0.04);
      border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      font-size: var(--text-2xs);
    }
    pre.codeblock .codeblock-lang {
      color: rgba(255, 255, 255, 0.55);
      letter-spacing: 0.04em;
      text-transform: uppercase;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    }
    pre.codeblock .codeblock-copy {
      background: transparent;
      color: rgba(255, 255, 255, 0.7);
      border: 1px solid rgba(255, 255, 255, 0.15);
      border-radius: 4px;
      padding: 3px 10px;
      font-size: var(--text-2xs);
      font-family: inherit;
      cursor: pointer;
      transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    }
    pre.codeblock .codeblock-copy:hover {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border-color: rgba(255, 255, 255, 0.3);
    }
    pre.codeblock .codeblock-copy.is-copied {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }
    pre.codeblock code {
      display: block;
      padding: 14px var(--space-4);
      background: transparent;
      color: inherit;
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: var(--text-sm);
      line-height: 1.5;
      overflow-x: auto;
      white-space: pre;
    }
    @media (max-width: 860px) {
      pre.codeblock::before { display: none; }
    }

    /* Post tabs (Все / Блог / Новости) */
    .post-tabs {
      display: flex;
      gap: var(--space-2);
      margin: var(--space-2) 0 28px;
      flex-wrap: wrap;
    }
    .post-tab {
      display: inline-flex;
      align-items: center;
      padding: 7px 18px;
      border-radius: 999px;
      background: var(--surface);
      color: var(--fg-muted);
      text-decoration: none;
      font-size: var(--text-base);
      font-weight: 500;
      border: 1px solid var(--border);
      transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    }
    .post-tab:hover { color: var(--fg); border-color: var(--fg-muted); }
    .post-tab.is-active {
      background: var(--accent);
      color: #fff;
      border-color: var(--accent);
    }
    .post-tab.is-active:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

    /* Card grid */
    .post-cards {
      list-style: none;
      padding: 0;
      margin: 0 0 var(--space-8);
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: var(--space-6);
    }
    .post-card {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 8px;
      overflow: hidden;
      transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    }
    .post-card:hover {
      border-color: var(--accent);
      transform: translateY(-2px);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    }
    .post-card-link {
      display: flex;
      flex-direction: column;
      height: 100%;
      text-decoration: none;
      color: inherit;
    }
    .post-card-cover {
      aspect-ratio: 16 / 9;
      overflow: hidden;
      background: var(--surface);
    }
    .post-card-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }
    .post-card-text {
      padding: var(--space-4) 18px 18px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      flex: 1;
    }
    .post-card-date {
      font-size: var(--text-2xs);
      color: var(--fg-muted);
      letter-spacing: 0.02em;
    }
    .post-card-title {
      font-size: var(--text-lg);
      line-height: 1.35;
      font-weight: 600;
      color: var(--fg);
      margin: 0;
    }
    .post-card:hover .post-card-title { color: var(--accent); }
    .post-card-desc {
      font-size: var(--text-sm);
      color: var(--fg-muted);
      line-height: 1.5;
      margin: 0;
      display: -webkit-box;
      -webkit-line-clamp: 3;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
    @media (max-width: 860px) {
      .post-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 600px) {
      .post-cards { grid-template-columns: 1fr; }
    }

    /* Pagination */
    .post-pagination {
      display: flex;
      gap: 6px;
      justify-content: center;
      align-items: center;
      margin: var(--space-8) 0 0;
      flex-wrap: wrap;
    }
    .post-page {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-width: 36px;
      height: 36px;
      padding: 0 10px;
      border: 1px solid var(--border);
      border-radius: 6px;
      color: var(--fg);
      text-decoration: none;
      font-size: var(--text-base);
      font-weight: 500;
      background: var(--bg);
      transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
    }
    .post-page:hover { border-color: var(--accent); color: var(--accent); }
    .post-page.is-current {
      background: var(--accent);
      border-color: var(--accent);
      color: #fff;
    }

    /* Single post */
    .post-meta {
      font-size: var(--text-base);
      color: var(--fg-muted);
      margin: 0 0 var(--space-6);
    }
    .post-cover {
      max-width: 820px;
      width: 100%;
      height: auto;
      border-radius: 8px;
      margin: 0 0 28px;
      display: block;
    }
    .post-body { max-width: 820px; }
    .post-body table {
      border-collapse: collapse;
      width: 100%;
      margin: 18px 0;
      font-size: var(--text-base);
      border: 1px solid var(--border);
      background: var(--bg);
    }
    .post-body th,
    .post-body td {
      padding: 10px var(--space-3);
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid var(--border);
      border-right: 1px solid var(--border);
      line-height: 1.45;
    }
    .post-body th:last-child,
    .post-body td:last-child { border-right: 0; }
    .post-body tbody tr:last-child th,
    .post-body tbody tr:last-child td { border-bottom: 0; }
    .post-body thead th,
    .post-body th:first-child {
      background: var(--surface);
      font-weight: 700;
    }
    .post-body thead th { border-bottom: 2px solid var(--border); }

    /* Collapsible block («cut») for image-heavy sections in posts. */
    .post-body details {
      margin: var(--space-3) 0;
      border: 1px solid var(--border);
      border-radius: 8px;
      padding: 0 14px;
    }
    .post-body details summary {
      cursor: pointer;
      padding: 10px 0;
      font-weight: 600;
      list-style: none;
    }
    .post-body details summary::-webkit-details-marker { display: none; }
    .post-body details summary::before {
      content: '▸';
      display: inline-block;
      margin-right: var(--space-2);
      color: var(--accent);
      transition: transform 0.15s;
    }
    .post-body details[open] summary::before { transform: rotate(90deg); }
    .post-body details[open] { padding-bottom: 14px; }
    .post-body h2 { font-size: var(--text-2xl); margin: var(--space-10) 0 14px; letter-spacing: -0.01em; }
    .post-body h3 { font-size: 19px; margin: 28px 0 10px; }
    .post-body p { margin: 0 0 14px; line-height: 1.7; }
    .post-body ul, .post-body ol { margin: 0 0 14px; padding-left: 22px; line-height: 1.7; }
    .post-body li { margin: 6px 0; }
    .post-body a { color: var(--accent); }
    .post-body img {
      max-width: 100%;
      height: auto;
      border-radius: 6px;
      margin: var(--space-3) 0;
    }
    .post-body pre {
      background: var(--surface);
      padding: 14px 18px;
      border-radius: 6px;
      overflow-x: auto;
      font-size: var(--text-sm);
      line-height: 1.5;
      margin: var(--space-4) 0;
    }
    .post-body code {
      font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 0.92em;
      background: var(--surface);
      padding: 1px 5px;
      border-radius: 3px;
    }
    .post-body pre code { background: transparent; padding: 0; }
    .post-body blockquote {
      margin: var(--space-5) 0;
      padding: 14px var(--space-5);
      background: var(--surface);
      border-left: 3px solid var(--accent);
      border-radius: 4px;
      color: var(--fg);
    }

    .tile-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-5);
      margin: 0 0 var(--space-6);
    }
    .tile-grid .tile {
      display: block;
      padding: 22px var(--space-6);
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 10px;
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s;
    }
    .tile-grid .tile:hover { border-color: var(--accent); }
    .tile-grid .tile h3 { font-size: var(--text-lg); margin: 0 0 6px; line-height: 1.3; }
    .tile-grid .tile p { font-size: var(--text-base); color: var(--fg-muted); margin: 0; line-height: 1.5; }

    @media (max-width: 860px) {
      .whom-cards { grid-template-columns: 1fr; }
      footer.site-footer > .container { grid-template-columns: 1fr; gap: var(--space-10); }
      .footer-nav { grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
      .footer-legal > .container { flex-direction: column; align-items: flex-start; }
      .footer-legal ul { flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
      .tile-grid { grid-template-columns: 1fr; }
      main.page h1 { font-size: 30px; }
    }


    /* Services-page block: red-filled or pink-wash section with a faded
       illustration on the right. Used on /services/ to mirror the
       Elementor-styled blocks of picodata.io's original page. */
    .services-block {
      position: relative;
      isolation: isolate;
      overflow: hidden;
      border-radius: 14px;
      padding: var(--space-8) var(--space-10);
      margin: var(--space-8) 0;
    }
    .services-block.is-red {
      background: var(--accent);
      color: var(--white);
    }
    .services-block.is-pink { background: var(--surface-soft); }
    .services-block-content { position: relative; z-index: 1; max-width: 70%; }
    .services-block.is-red h2 { color: var(--white); }
    /* Higher specificity than the .page-body :is(p,li,…) a override that
       otherwise paints links accent-red on the red background. */
    .page-body .services-block.is-red a,
    .page-body .services-block.is-red :is(p, li, h2, h3) a {
      color: var(--white);
      text-decoration: underline;
    }
    .page-body .services-block.is-red a:hover { opacity: 0.85; }
    .services-block h2 { margin: 0 0 var(--space-4); }
    .services-block p { line-height: 1.55; margin: 0 0 var(--space-3); }
    .services-block-cta { margin-top: var(--space-4); font-weight: 600; }
    .services-block-icon {
      position: absolute;
      right: var(--space-10);
      top: 50%;
      transform: translateY(-50%);
      width: 200px;
      height: auto;
      opacity: 0.22;
      pointer-events: none;
      filter: brightness(0) invert(1);
    }
    .services-block-list { padding-left: var(--space-5); margin: var(--space-3) 0; }
    .services-block-list li { margin: var(--space-1) 0; line-height: 1.5; }

    .smart-start-cards {
      list-style: none;
      padding: 0;
      margin: var(--space-6) 0 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-4);
    }
    .smart-start-card {
      background: var(--white);
      border: 1px solid rgba(226, 57, 86, 0.15);
      border-radius: 10px;
      padding: var(--space-5);
      display: flex;
      gap: var(--space-4);
      align-items: flex-start;
    }
    .smart-start-card-icon { width: 32px; height: 32px; flex-shrink: 0; }
    .smart-start-card-text { font-size: var(--text-md); line-height: 1.45; color: var(--fg); }

    .dba-bullets {
      list-style: none;
      padding: 0;
      margin: var(--space-4) 0 0;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-2) var(--space-6);
    }
    .dba-bullets li {
      position: relative;
      padding-left: 28px;
      line-height: 1.5;
    }
    .dba-bullets li::before {
      content: '✓';
      position: absolute;
      left: 0;
      top: 0;
      color: var(--accent);
      font-weight: 700;
      font-size: var(--text-md);
    }

    @media (max-width: 860px) {
      .services-block { padding: var(--space-6) var(--space-5); }
      .services-block-content { max-width: 100%; }
      .services-block-icon { display: none; }
      .smart-start-cards { grid-template-columns: 1fr; }
      .dba-bullets { grid-template-columns: 1fr; }
    }

    /* Final CTA section */
    section.cta-final { border-top: 1px solid var(--border); padding: var(--space-18) 0 var(--space-20); }
    .cta-cards {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-5);
      margin: var(--space-8) 0 var(--space-12);
    }
    .cta-card {
      display: flex;
      flex-direction: column;
      gap: var(--space-3);
      padding: 26px 28px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--bg);
      text-decoration: none;
      color: inherit;
      transition: border-color 0.15s, transform 0.15s;
    }
    .cta-card:hover { border-color: var(--accent); transform: translateY(-2px); }
    .cta-card.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
    .cta-card.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
    .cta-card h3 { margin: 0; font-size: var(--text-xl); letter-spacing: -0.01em; line-height: 1.25; }
    .cta-card p { margin: 0; font-size: var(--text-md); line-height: 1.55; flex-grow: 1; opacity: 0.92; }
    .cta-card .cta-arrow { font-size: var(--text-md); font-weight: 600; }
    .cta-card.primary p { opacity: 0.9; }

    /* Contact form */
    .contact-form {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: var(--space-8);
      margin-top: var(--space-6);
    }
    .contact-form h3 { font-size: var(--text-xl); margin: 0 0 var(--space-2); letter-spacing: -0.01em; }
    .contact-form .form-hint { font-size: var(--text-base); color: var(--fg-muted); margin: 0 0 var(--space-5); }
    .contact-form form { display: grid; gap: var(--space-3); }
    .contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
      padding: 10px var(--space-3);
      font-family: inherit;
      font-size: var(--text-md);
      border: 1px solid var(--border);
      border-radius: 6px;
      background: var(--bg);
      color: var(--fg);
    }
    .contact-form input.is-invalid,
    .contact-form select.is-invalid,
    .contact-form textarea.is-invalid {
      border-color: #c0392b;
      box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
    }
    .contact-form textarea { min-height: 96px; resize: vertical; }
    .contact-form button {
      padding: var(--space-3) var(--space-5);
      font-family: inherit;
      font-size: var(--text-md);
      font-weight: 600;
      border: 0;
      border-radius: 6px;
      background: var(--accent);
      color: #fff;
      cursor: pointer;
      justify-self: flex-start;
    }
    .contact-form button:hover { background: var(--accent-hover); }
    .contact-form button[disabled] { opacity: 0.6; cursor: wait; }
    .contact-form .smart-captcha { margin: var(--space-1) 0; }
    .contact-form .form-status {
      font-size: var(--text-base);
      margin: var(--space-1) 0 0;
      min-height: 20px;
      color: var(--fg-muted);
    }
    .contact-form .form-status.is-success { color: var(--accent); font-weight: 600; }
    .contact-form .form-status.is-error { color: #c0392b; font-weight: 600; }
    .contact-form .consent { font-size: var(--text-2xs); color: var(--fg-muted); margin: var(--space-1) 0 0; line-height: 1.5; }

    @media (max-width: 860px) {
      .cta-cards { grid-template-columns: 1fr; }
      .contact-form .row-2 { grid-template-columns: 1fr; }
    }

    /* Solution section — pillars layout */
    section.solution { border-top: 1px solid var(--border); padding: var(--space-18) 0; background: var(--bg); }
    .solution-pillars {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: var(--space-5);
      margin-top: var(--space-10);
    }
    .pillar {
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 28px var(--space-8);
      display: flex;
      flex-direction: column;
      gap: 14px;
    }
    .pillar-badge {
      display: inline-block;
      font-size: var(--text-2xs);
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.1em;
      align-self: flex-start;
    }
    .pillar h3 {
      font-size: var(--text-xl);
      line-height: 1.3;
      letter-spacing: -0.01em;
      margin: 0;
    }
    .pillar > p {
      margin: 0;
      color: var(--fg);
      line-height: 1.6;
      font-size: var(--text-md);
    }
    .pillar ul {
      margin: 0;
      padding: 0 0 0 var(--space-5);
      font-size: var(--text-base);
      color: var(--fg-muted);
      line-height: 1.55;
    }
    .pillar ul li { margin-bottom: 6px; }
    .pillar em {
      font-style: normal;
      color: var(--fg);
      font-weight: 600;
    }

    @media (max-width: 860px) {
      .solution-pillars { grid-template-columns: 1fr; }
    }

    /* Why better — manifesto + comparison table */
    section.why-better { border-top: 1px solid var(--border); padding: var(--space-18) 0; background: var(--surface); }
    .manifesto {
      list-style: none;
      counter-reset: manifesto;
      padding: 0;
      margin: var(--space-8) 0 var(--space-12);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: var(--space-5);
    }
    .manifesto li {
      counter-increment: manifesto;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: var(--space-6) 26px;
      font-size: var(--text-md);
      line-height: 1.55;
      position: relative;
    }
    .manifesto li::before {
      content: counter(manifesto, decimal-leading-zero);
      display: block;
      font-size: var(--text-2xs);
      font-weight: 700;
      color: var(--accent);
      letter-spacing: 0.1em;
      margin-bottom: 10px;
    }
    .manifesto li strong { font-weight: 700; }

    .comparison-wrap {
      overflow-x: auto;
      margin: 0 0 var(--space-4);
      border: 1px solid var(--border);
      border-radius: 12px;
    }
    .comparison-table {
      width: 100%;
      border-collapse: collapse;
      font-size: var(--text-base);
      min-width: 860px;
    }
    .comparison-table th,
    .comparison-table td {
      padding: var(--space-3) 14px;
      text-align: left;
      vertical-align: top;
      border-bottom: 1px solid var(--border);
      line-height: 1.45;
    }
    .comparison-table thead th {
      background: var(--surface);
      font-weight: 700;
      font-size: var(--text-sm);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      color: var(--fg-muted);
    }
    .comparison-table thead th.highlight {
      background: var(--accent);
      color: #fff;
    }
    .comparison-table tbody th.axis-label {
      width: 22%;
      font-weight: 600;
      color: var(--fg);
      background: var(--surface);
      font-size: var(--text-base);
      text-transform: none;
      letter-spacing: 0;
    }
    .comparison-table tbody td.highlight {
      background: rgba(23, 85, 212, 0.06);
      color: var(--fg);
      font-weight: 500;
    }
    /* «Не подходит» cells are visually flagged so the reader can scan for
       gaps. Picodata's column has none, which is the implicit takeaway. */
    .comparison-table tbody td.verdict-bad {
      color: var(--pico-red-dark);
      font-weight: 600;
    }
    .comparison-table tbody tr:last-child th,
    .comparison-table tbody tr:last-child td { border-bottom: 0; }

    .comparison-note {
      font-size: var(--text-sm);
      color: var(--fg-muted);
      margin: var(--space-3) 0 0;
      line-height: 1.5;
      font-style: italic;
    }

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


    @media (max-width: 860px) {
      /* Dropdowns hide on mobile — keep only the trigger as a direct link */
      nav.primary .dropdown-menu { display: none; }
    }
