:root { 
      color-scheme: dark; 
      --cream: #f8f6f2; 
      --ink: #0a0a0a; 
      --accent: #ffffff; 
      --glass: rgba(255, 255, 255, 0.03);
      --border: rgba(255, 255, 255, 0.1);
      --text-dim: rgba(255, 255, 255, 0.6);
    }
    * { box-sizing: border-box; -webkit-font-smoothing: antialiased; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      background: #050505;
      color: var(--cream);
      overflow-y: auto;
      overflow-x: hidden;
      font-family: 'IBM Plex Sans', system-ui, sans-serif;
    }
    
    #bgWrap { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; opacity: 1; transition: opacity 0.15s linear; }
    #bgCanvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: block; }
    #heroOverlay { position: fixed; inset: 0; z-index: 2; pointer-events: none;
      background: linear-gradient(
        to bottom,
        rgba(5,5,5,0.45) 0%,
        rgba(5,5,5,0.25) 40%,
        rgba(5,5,5,0.45) 100%
      );
    }
    
    #postFrameBackdrop {
      position: fixed; inset: 0; z-index: 25; pointer-events: none; opacity: 0; transition: opacity 0.15s linear;
      background: 
        radial-gradient(circle at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%),
        #050505;
    }

    .noise-overlay {
      position: fixed; inset: 0; z-index: 5; pointer-events: none; opacity: 0.02;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    #loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; flex-direction: column; background: #050505; }
    #loaderWrap { width: 180px; height: 1px; background: rgba(255,255,255,.1); overflow: hidden; }
    #loader-bar { height: 100%; width: 0%; background: #fff; transition: width .2s linear; }

    #overlay { position: fixed; inset: 0; z-index: 20; pointer-events: none; padding: 24px; display: flex; flex-direction: column; align-items: center; }
    
    .nav-pill { 
      pointer-events: auto; 
      position: fixed; 
      top: 32px; 
      left: 50%; 
      transform: translateX(-50%); 
      z-index: 40; 
      display: flex; 
      justify-content: space-between; 
      align-items: center; 
      gap: 48px; 
      padding: 12px 36px; 
      border-radius: 100px; 
      background: rgba(10, 10, 10, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border: 1px solid var(--border);
      transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    }
    /* Уезжает за верхний край целиком: никакой полупрозрачности над контентом */
    .nav-pill.nav-hidden {
      pointer-events: none;
      transform: translateX(-50%) translateY(calc(-100% - 48px));
    }
    .brand { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; letter-spacing: 0.25em; font-size: 13px; text-transform: uppercase; color: #fff; }
    /* Логотип в шапке. Если SVG не загрузится, alt-текст отрисуется
       стилями .brand выше — прежний вид набором букв сохраняется. */
    .brand-logo { height: 22px; width: auto; display: block; }
    .links { display: flex; gap: 20px; align-items: center; }
    .links a { position: relative; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; transition: color 0.2s; white-space: nowrap; display: inline-flex; align-items: center; height: 28px; }
    .links a:hover { color: #fff; }

    /* Кнопка «наверх»: с любого места возвращает к меню на первом экране */
    .to-top {
      position: fixed;
      left: 50%;
      bottom: calc(24px + var(--cookie-h, 0px));
      z-index: 50;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(10, 10, 10, 0.85);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      cursor: pointer;
      opacity: 0;
      transform: translateX(-50%) translateY(12px);
      pointer-events: none;
      transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.25s ease, background 0.25s ease;
    }
    .to-top.is-on {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }
    .to-top::before {
      content: '';
      width: 10px;
      height: 10px;
      border-top: 2px solid rgba(255, 255, 255, 0.75);
      border-right: 2px solid rgba(255, 255, 255, 0.75);
      transform: rotate(-45deg);
      margin-top: 3px;
      transition: border-color 0.25s ease;
    }
    .to-top:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.45); }
    .to-top:hover::before { border-color: #fff; }
    .to-top:focus-visible { outline: 1px solid rgba(255, 255, 255, 0.7); outline-offset: 4px; }

    .hero { margin-top: 18vh; text-align: center; width: 100%; max-width: 900px; pointer-events: auto; padding: 0 20px; margin-left: auto; margin-right: auto; }
    h1 {
      font-family: 'IBM Plex Sans', system-ui, sans-serif;
      font-size: clamp(30px, 3.2vw, 46px);
      font-weight: 500;
      line-height: 1.25;
      margin-bottom: 20px;
      color: rgba(255, 255, 255, 0.9);
      text-wrap: pretty;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      text-shadow: 0 10px 30px rgba(0,0,0,0.5);
      letter-spacing: -0.01em;
    }
    h1 .hero-subtitle {
      display: block;
      font-size: 0.75em;
      color: rgba(255, 255, 255, 0.7);
      margin-top: 40px;
      font-weight: 400;
      letter-spacing: -0.005em;
    }
    .subhead {
      font-size: clamp(13px, 1.0vw, 16px);
      color: rgba(255, 255, 255, 0.7);
      max-width: 800px;
      margin: 0 auto 40px;
      line-height: 1.65;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-weight: 500;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    @keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

    .hero-lead {
      font-size: clamp(15px, 1.25vw, 19px);
      color: rgba(255, 255, 255, 0.78);
      max-width: 680px;
      margin: 28px auto 0;
      line-height: 1.6;
      font-weight: 400;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .hero-note {
      font-size: clamp(12px, 0.95vw, 14px);
      color: rgba(255, 255, 255, 0.5);
      max-width: 620px;
      margin: 20px auto 0;
      line-height: 1.6;
      font-weight: 400;
      letter-spacing: 0.01em;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    /* Полоса доверия под кнопкой первого экрана */
    .hero-trust {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      list-style: none;
      padding: 0;
      margin: 34px auto 0;
      max-width: 860px;
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 1.2s 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    .hero-trust li {
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.04);
      border-radius: 999px;
      padding: 7px 15px;
      font-size: 12px;
      letter-spacing: 0.04em;
      color: rgba(255, 255, 255, 0.6);
    }
    .cta { 
      display: inline-flex; 
      padding: 20px 48px; 
      border: 1px solid rgba(255,255,255,0.3); 
      color: #fff; 
      background: rgba(255,255,255,0.05);
      text-decoration: none; 
      font-weight: 600; 
      font-size: 13px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      border-radius: 2px;
      transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
      opacity: 0;
      animation: fadeInUp 1.2s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
      backdrop-filter: blur(10px);
    }
    .cta:hover { background: #fff; color: #000; border-color: #fff; transform: translateY(-2px); }

    #pageRoot { position: relative; z-index: 30; pointer-events: auto; margin-top: 100vh; }
    #pageRoot::before {
      content: '';
      position: absolute;
      top: -80px;
      left: 0;
      right: 0;
      height: 120px;
      background: linear-gradient(to bottom, rgba(5,5,5,0) 0%, rgba(5,5,5,1) 100%);
      z-index: 1;
      pointer-events: none;
    }
    
    section {
      min-height: 80vh;
      padding: 120px 10vw;
      display: flex;
      flex-direction: column;
      justify-content: center;
      background: rgba(5, 5, 5, 0.55);
      position: relative;
    }

    /* Появление секций: класс навешивает скрипт, без JS секции видимы */
    .reveal {
      opacity: 0;
      transform: translateY(26px);
      transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                  transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .reveal.is-in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) {
      .reveal { opacity: 1; transform: none; transition: none; }
    }

    /* Первые две секции — такой же полупрозрачный фон, как у остальных секций */
    section:first-of-type,
    section:nth-of-type(2) {
      background: rgba(5, 5, 5, 0.55);
    }

    /* Плавный переход от Hero к первой секции */
    section:first-of-type::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0;
      height: 220px;
      background: linear-gradient(to bottom, rgba(5,5,5,1) 0%, transparent 100%);
      pointer-events: none;
      z-index: 1;
    }

    .content-grid {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr;
      gap: 80px;
      align-items: start;
    }

    .card {
      background: rgba(12, 12, 12, 0.82);
      border: 1px solid var(--border);
      padding: 48px;
      border-radius: 4px;
      transition: all 0.4s ease;
      position: relative;
    }
    .card:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.05); }
    .card-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: rgba(255,255,255,0.4); margin-bottom: 24px; display: block; font-weight: 700; }
    
    section h2 { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: clamp(34px, 4vw, 54px); font-weight: 500; margin: 0 0 32px; color: var(--cream); line-height: 1.1; }
    section p { font-size: 16px; color: var(--text-dim); line-height: 1.7; margin-bottom: 24px; font-weight: 400; }
    
    .bento-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 24px;
      margin-top: 40px;
      align-items: stretch;
    }
    .bento-item { grid-column: span 1; display: flex; flex-direction: column; }
    /* Строка «доказательство масштаба» под вводным блоком команды */
    .team-scale {
      margin: 28px 0 0;
      font-size: 13px;
      line-height: 1.6;
      color: rgba(255, 255, 255, 0.45);
      letter-spacing: 0.02em;
      max-width: 70ch;
      padding-top: 20px;
      border-top: 1px solid var(--border);
    }
    .partner-tags-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 32px; }
    .partner-tags-list li { border: 1px solid var(--border); background: rgba(255,255,255,0.04); border-radius: 999px; padding: 6px 14px; font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.05em; }
    .partner-photo-bio { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
    .partner-photo-bio p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0; }
    .partner-expertise-list { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 8px; }
    .partner-expertise-list li { font-size: 14px; color: rgba(255,255,255,0.7); padding-left: 16px; position: relative; line-height: 1.5; }
    .partner-expertise-list li::before { content: '·'; position: absolute; left: 0; color: rgba(255,255,255,0.4); }
    .bento-item h3 { font-family: 'IBM Plex Sans', sans-serif; font-size: 18px; margin-bottom: 12px; font-weight: 600; color: #fff; letter-spacing: -0.01em; }
    .bento-item p { font-size: 14px; line-height: 1.6; margin-bottom: 0; }
    /* Английский домен-надзаголовок на карточках направлений */
    .bento-item .eyebrow {
      display: block;
      font-size: 10.5px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(150, 180, 230, 0.85);
      margin-bottom: 12px;
    }
    /* ── Блок «Коммерческие решения на основе данных» ─────────────────── */
    #commercial {
      min-height: auto;
      padding-top: 80px;
      padding-bottom: 96px;
    }
    #commercial h2 {
      font-size: clamp(30px, 3.4vw, 46px);
      max-width: 900px;
      margin: 0 auto 14px;
      text-wrap: balance;
    }
    #commercial .data-intro {
      margin-bottom: 16px;
      color: rgba(226, 238, 255, 0.72);
    }
    #commercial .card {
      padding: 34px 34px 28px;
      background: rgba(6, 20, 48, 0.74);
    }
    #commercial .card h3 { margin-bottom: 10px; }
    #commercial .card p { color: rgba(226, 238, 255, 0.86); }
    /* селектор с типом: .bento-item p перебивает одиночный класс */
    #commercial .card p.card-meta {
      margin: auto 0 0;
      padding-top: 18px;
      font-size: 10.5px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: rgba(216, 232, 255, 0.64);
      line-height: 1.6;
    }
    .commercial-result {
      margin-top: 32px;
      border: 1px solid var(--border);
      background: rgba(6, 20, 48, 0.42);
      border-radius: 8px;
      padding: 20px 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    .commercial-result p {
      margin: 0;
      font-size: 13.5px;
      line-height: 1.55;
      color: rgba(226, 238, 255, 0.8);
      max-width: 66ch;
    }
    .commercial-result b { color: rgba(240, 247, 255, 0.95); font-weight: 600; }
    #commercial .cta {
      animation: none;
      opacity: 1;
      flex-shrink: 0;
      padding: 13px 30px;
      font-size: 11px;
    }
    @media (max-width: 860px) {
      .commercial-result { flex-direction: column; align-items: stretch; padding: 20px; gap: 18px; }
      #commercial .cta { width: 100%; justify-content: center; }
    }

    /* Блок «Работа с коммерческими данными» */
    .data-intro {
      text-align: center;
      max-width: 780px;
      margin: 0 auto 56px;
      font-size: 15px;
      line-height: 1.7;
      color: var(--text-dim);
    }
    .data-list {
      list-style: none;
      padding: 0;
      margin: 16px 0 0;
      display: flex;
      flex-direction: column;
      gap: 7px;
    }
    .data-list li {
      font-size: 13px;
      line-height: 1.5;
      color: rgba(255, 255, 255, 0.55);
      padding-left: 14px;
      position: relative;
    }
    .data-list li::before { content: '·'; position: absolute; left: 0; color: rgba(255, 255, 255, 0.35); }
    /* Строка-ответ в карточках «Когда к нам приходят»: что мы с этим делаем.
       Тот же приём, что у «Результат» в блоке данных — тонкая линия сверху. */
    .bento-item .usecase-answer {
      margin: 18px 0 0;
      padding-top: 14px;
      border-top: 1px solid var(--border);
      font-size: 13px;
      line-height: 1.55;
      color: rgba(255, 255, 255, 0.78);
    }
    .bento-item .data-result {
      margin: 20px 0 0;
      padding-top: 16px;
      border-top: 1px solid var(--border);
      font-size: 13px;
      line-height: 1.55;
      color: rgba(255, 255, 255, 0.75);
    }
    @media (max-width: 1024px) { #data .bento-grid { grid-template-columns: 1fr !important; } }

    /* Подводящая строка под заголовком секции «Направления» */
    .expertise-lead {
      text-align: center;
      font-size: 13px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, 0.45);
      max-width: 720px;
      margin: 0 auto 56px;
    }

    .partner-profile {
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 60px;
      align-items: start;
      background: rgba(255,255,255,0.02);
      border: 1px solid var(--border);
      padding: 60px;
      border-radius: 4px;
    }
    /* Двое партнёров на одном экране: фото слева, текст справа */
    .partners-2up {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 20px;
      align-items: stretch;
    }
    .partner-card {
      display: block;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      border-radius: 4px;
      padding: 28px;
    }
    /* Фото обтекается текстом: ниже него строки идут во всю ширину карточки */
    .partner-card::after { content: ""; display: table; clear: both; }
    .partner-card > div:first-of-type {
      float: left;
      width: 200px;
      margin: 0 24px 18px 0;
    }
    .partner-card .partner-info h3 { font-size: 26px; margin: 0 0 6px; }
    .partner-card .partner-role { font-size: 10.5px; letter-spacing: 0.14em; line-height: 1.5; margin-bottom: 16px; }
    .partner-card-lead { color: var(--cream); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
    .partner-card .partner-tags-list { margin: 0 0 18px; gap: 8px; }
    .partner-card .partner-tags-list li { font-size: 11.5px; padding: 5px 12px; }
    .partner-card .partner-expertise-list { margin: 0; gap: 7px; }
    .partner-card .partner-expertise-list li { font-size: 13px; }
    @media (max-width: 1024px) { .partners-2up { grid-template-columns: 1fr; } }
    @media (max-width: 560px) { .partner-card > div:first-of-type { float: none; width: 100%; margin: 0 0 20px; } }

    .partner-info h3 { font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 38px; margin: 0 0 8px; font-weight: 500; }
    .partner-role { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: rgba(255,255,255,0.4); margin-bottom: 32px; display: block; }
    .partner-bio { font-size: 15px; color: var(--text-dim); line-height: 1.8; grid-column: 1 / -1; padding-top: 32px; border-top: 1px solid var(--border); }
    .partner-bio ul { list-style: none; padding: 0; margin: 24px 0 0; }
    .partner-bio li { margin-bottom: 12px; padding-left: 20px; position: relative; }
    .partner-bio li::before { content: "—"; position: absolute; left: 0; color: rgba(255,255,255,0.3); }

    .metrics-strip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 48px 10vw;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      position: relative;
      z-index: 30;
      background: rgba(255,255,255,0.02);
    }
    .metric-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      flex: 1;
    }
    .metric-num {
      font-size: clamp(28px, 3vw, 42px);
      font-weight: 600;
      color: #fff;
      letter-spacing: -0.02em;
      line-height: 1;
    }
    .metric-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: rgba(255,255,255,0.4);
      font-weight: 500;
    }
    .metric-divider {
      width: 1px;
      height: 48px;
      background: var(--border);
      flex-shrink: 0;
    }
    .card-cta {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-top: 20px;
      font-size: 11px;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      color: rgba(255,255,255,0.4);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    /* Стрелка рисуется оформлением, а не символом в тексте:
       не растягивается разрядкой и может двигаться при наведении */
    .card-cta::after {
      content: '';
      width: 7px;
      height: 7px;
      border-top: 1.5px solid currentColor;
      border-right: 1.5px solid currentColor;
      transform: rotate(45deg);
      transition: margin-left 0.25s ease;
    }
    .card:hover .card-cta { color: rgba(255,255,255,0.9); }
    .card:hover .card-cta::after { margin-left: 5px; }

    footer { padding: 80px 10vw; border-top: 1px solid var(--border); text-align: left; color: rgba(255,255,255,0.3); font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; display: flex; justify-content: space-between; align-items: center; }
    /* Раскладка расширенного футера: блоки в ряд, реквизиты + контакты — двумя колонками */
    /* Три колонки фиксированной сетки: бренд — адрес — контакты.
       Раньше это был flex с переносом, и «Политика» уезжала на вторую
       строку, а колонки вставали вразнобой. */
    .footer-top {
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: start;
      gap: 24px 48px;
      width: 100%;
    }
    .footer-brand > div + div { margin-top: 5px; }
    .footer-address { justify-self: center; line-height: 1.8; text-align: center; }
    .footer-contacts { text-align: right; line-height: 1.8; }
    .footer-bottom {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      margin-top: 32px;
      padding-top: 20px;
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      font-size: 10px;
      color: rgba(255, 255, 255, 0.25);
      letter-spacing: 0.08em;
    }
    .footer-bottom a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
    .footer-bottom a:hover { color: rgba(255, 255, 255, 0.6); }
    .footer-links { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
    .footer-requisites {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 48px;
      line-height: 1.7;
    }

    @media (max-width: 1024px) {
      .partner-profile { grid-template-columns: 260px 1fr; gap: 40px; padding: 40px; }
      .bento-grid { grid-template-columns: repeat(2, 1fr); }
    }

    .hamburger { display: none; }
    .mobile-menu { display: none; }

    @media (max-width: 768px) {
      html, body { overflow-x: hidden; max-width: 100vw; }
      #bgWrap { width: 100vw !important; }

      .nav-pill {
        width: calc(100% - 32px);
        gap: 0;
        padding: 10px 16px;
        justify-content: space-between;
      }
      .links { display: none; }
      .brand-logo { height: 18px; }
      .lang-switcher { margin-left: 0; padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.15); }

      .content-grid { grid-template-columns: 1fr; gap: 40px; }
      .bento-grid { grid-template-columns: 1fr !important; }
      #commercial { padding-top: 56px; padding-bottom: 64px; }
      #commercial .card { padding: 24px 20px 20px; }
      #commercial .bento-grid { gap: 14px; }
      #commercial .card p.card-meta { letter-spacing: 0.05em; font-size: 10.5px; padding-top: 16px; }

      section {
        padding: 60px 20px;
        min-height: auto;
        background: rgba(5, 5, 5, 0.97) !important;
      }

      .hero { margin-top: 20vh; padding: 0 16px; }
      .hero-trust { gap: 6px; margin-top: 26px; }
      .hero-trust li { font-size: 11px; padding: 6px 12px; }
      /* Кегль подобран так, чтобы каждая строка заголовка помещалась в одну
         строку экрана: при 7vw «Экспертиза фармрынка.» переносилась и первый
         экран занимал на 50px больше. */
      h1 { font-size: clamp(18px, 5.6vw, 26px); line-height: 1.4; margin-bottom: 22px; color: rgba(255,255,255,0.9); }
      h1 .hero-subtitle { font-size: 0.75em; color: rgba(255,255,255,0.7); margin-top: 24px; }
      .subhead { font-size: 12px; letter-spacing: 0.08em; }

      .partner-profile { grid-template-columns: 1fr; gap: 32px; padding: 32px 20px; }
      .partner-bio { grid-column: 1; }
      .partner-info h3 { font-size: 28px; }
      .partner-profile > div:first-child img { max-height: 320px; object-fit: cover; object-position: center top; }

      .card { padding: 28px 20px; background: rgba(12, 12, 12, 0.97) !important; }
      .cta { padding: 14px 28px; font-size: 11px; }

      footer { padding: 40px 20px; flex-direction: column; gap: 12px; text-align: center; }
      .footer-top { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; }
      .footer-address { justify-self: center; }
      .footer-contacts { text-align: center; }
      .footer-bottom { flex-direction: column; gap: 10px; }

      /* Hamburger button */
      .hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 32px;
        height: 32px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 4px;
        flex-shrink: 0;
      }
      .hamburger span {
        display: block;
        height: 1.5px;
        width: 100%;
        background: rgba(255,255,255,0.8);
        border-radius: 2px;
        transition: transform 0.25s ease, opacity 0.25s ease;
        transform-origin: center;
      }
      .hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
      .hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
      .hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

      /* Mobile nav overlay */
      .mobile-menu {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 35;
        background: rgba(5,5,5,0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 40px 20px;
      }
      .mobile-menu.is-open { display: flex; }
      .mobile-menu a {
        font-family: 'IBM Plex Sans', sans-serif;
        font-size: 20px;
        font-weight: 400;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: color 0.2s;
      }
      .mobile-menu a:hover { color: #fff; }
      .mobile-menu .mobile-lang {
        display: flex;
        gap: 16px;
        margin-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
        padding-top: 32px;
        width: 100%;
        justify-content: center;
      }
      .mobile-menu .mobile-lang button {
        background: none;
        border: none;
        color: rgba(255,255,255,0.4);
        font-size: 12px;
        letter-spacing: 0.12em;
        font-family: 'IBM Plex Sans', sans-serif;
        text-transform: uppercase;
        cursor: pointer;
        padding: 6px 10px;
      }
      .mobile-menu .mobile-lang button.active { color: #fff; }
    }

    /* ================================================================
       ФИРМЕННАЯ СИНЯЯ ПАЛИТРА
       Блок переопределяет тёмно-чёрную схему выше. Чтобы вернуть
       прежний вид — удалить всё от этой рамки до конца файла.
       ================================================================ */
    :root {
      --border: rgba(130, 172, 232, 0.20);
      --text-dim: rgba(216, 232, 255, 0.66);
    }
    /* Плоская подложка; свечение — на #bgWrap, он position:fixed.
       На body с background-attachment:fixed мобильный Safari растягивал
       градиент по всей высоте страницы, и экран выглядел почти чёрным. */
    body { background: #04102a; }
    #bgWrap {
      background:
        radial-gradient(1400px 860px at 50% 20%, rgba(28, 96, 196, 0.46) 0%, transparent 62%),
        radial-gradient(1000px 580px at 86% 78%, rgba(18, 100, 205, 0.26) 0%, transparent 62%),
        linear-gradient(168deg, #02091c 0%, #06183e 46%, #030e24 100%);
    }
    /* фон рисуется кодом — предзагружать нечего */
    #loader { display: none !important; }
    #heroOverlay { background: linear-gradient(to bottom, rgba(4,16,42,0.20) 0%, rgba(4,16,42,0.06) 38%, rgba(4,16,42,0.40) 100%); }
    #postFrameBackdrop { background: radial-gradient(circle at 50% 0%, rgba(120,170,255,0.07) 0%, transparent 70%), #04102a; }
    section { background: rgba(4, 16, 42, 0.55); }
    section:nth-of-type(2) { background: rgba(4, 16, 42, 0.55); }
    /* Стык первого экрана и первой секции.
       Было три накладывающихся слоя, и #pageRoot::before доходил до альфы 1.0 —
       получалась сплошная горизонтальная полоса, за которой не видно фона.
       Оставляем одну плавную растяжку прозрачности от 0 до 0.55. */
    #pageRoot::before,
    section:first-of-type::before { display: none; }
    section:first-of-type {
      background: linear-gradient(to bottom, rgba(4, 16, 42, 0) 0, rgba(4, 16, 42, 0.55) 260px);
    }
    .card { background: rgba(6, 20, 48, 0.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    .card:hover { background: rgba(20, 44, 86, 0.62); border-color: rgba(150, 190, 250, 0.34); }
    .partner-card, .partner-profile { background: rgba(6, 20, 48, 0.56); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
    .nav-pill { background: rgba(6, 18, 44, 0.92); }
    .to-top { background: rgba(6, 18, 44, 0.85); border-color: rgba(140, 180, 240, 0.28); }
    .to-top:hover { background: rgba(120, 170, 255, 0.12); border-color: rgba(160, 200, 255, 0.5); }
    .partner-tags-list li { border-color: rgba(140, 180, 240, 0.22); background: rgba(120, 170, 255, 0.08); color: rgba(216, 232, 255, 0.70); }
    .hero-trust li { border-color: rgba(140, 180, 240, 0.22); background: rgba(120, 170, 255, 0.07); color: rgba(216, 232, 255, 0.66); }
    /* Оранжевый акцент из фирменной графики: метка раздела.
       Иерархия — оранжевый маркирует раздел, голубой отраслевые термины. */
    .card-label { color: #f28a22; }
    .bento-item .eyebrow { color: #7fb4ff; }
    /* Активный язык — оранжевым. Селектор намеренно специфичнее, чем
       .lang-btn.active в инлайновом блоке страниц: тот идёт после main.css. */
    .nav-pill .lang-btn.active { color: #f28a22; }
    .card-cta { color: rgba(190, 220, 255, 0.72); }
    .card:hover .card-cta { color: #fff; }
    .data-list li::before, .partner-expertise-list li::before { color: rgba(160, 200, 255, 0.5); }
    @media (max-width: 768px) {
      section { background: rgba(4, 16, 42, 0.95) !important; }
      section:first-of-type { background: linear-gradient(to bottom, rgba(4, 16, 42, 0) 0, rgba(4, 16, 42, 0.95) 200px) !important; }
      .card { background: rgba(6, 20, 48, 0.92) !important; }
      .mobile-menu { background: rgba(4, 16, 42, 0.97); }
      .mobile-menu .mobile-lang button.active { color: #f28a22; }
    }
