/* ============================================================
     DIAGENTA · тёмно-синяя палитра · синий градиентный акцент
     Под лого 2026: D из молекулярной сетки, navy вордмарк,
     синий градиент. Единственный источник цвета — этот блок.

     Старые имена (--bark, --euc, --cream) сохранены как алиасы
     в конце блока, чтобы ничего не сломалось в разметке и в
     страничных <style>-блоках. Новый код пишем на семантических.
     ============================================================ */
  :root{
    /* navy — из финального лого. Стопы градиента подобраны
       под него: сверить с SVG знака и при расхождении
       поправить --grad-a / --grad-b. */
    --navy:        #001842;   /* вордмарк, тёмные секции, заголовки */
    --navy-deep:   #000E28;   /* футер, самые тёмные плашки */
    --accent:      #0B4BC0;   /* акцент на светлом фоне */
    
    --accent-light:#57A5FF;   /* акцент на тёмном фоне */
    --accent-deep: #08337F;   /* ховер */
        --accent-wash: #F0F4FB;
    --grad-a:       #001842;   /* градиент: начало (как в знаке) */
    --grad-b:      #2E6BC4;  /* градиент: конец */
    /* ---------------------------------------------------------- */

    --mist:      #EDEFF2;   /* светлые секции и текст на тёмном */
    --paper:     #FFFFFF;   /* фон страницы */
    --hair:      #D1D5DD;   /* тонкие линии, заглушки */
    --ink:       #0C1C33;   /* основной текст */
    --muted:     #52627E;   /* вторичный текст */

    --grad:      linear-gradient(115deg, var(--grad-a), var(--grad-b));

    --display: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
    --body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --max: 1240px;
    --gut: clamp(20px, 5vw, 64px);

    /* --- алиасы под старые правила: не удалять --- */
    --bark:      var(--navy);
    --bark-deep: var(--navy-deep);
    --cream:     var(--mist);
    --sand:      var(--hair);
    --euc:       var(--accent);
    --euc-light: var(--accent-light);
    --euc-deep:  var(--accent-deep);
  }


  *,*::before,*::after{ box-sizing:border-box; }
  html{ scroll-behavior:smooth; }
  body{
    margin:0; background:var(--paper); color:var(--ink);
    font-family:var(--body); font-size:17.5px; line-height:1.62;
    -webkit-font-smoothing:antialiased;
  }
  img{ max-width:100%; display:block; }
  a{ color:inherit; }
  .wrap{ max-width:var(--max); margin:0 auto; padding-inline:var(--gut); }
  :focus-visible{ outline:2px solid var(--euc); outline-offset:3px; border-radius:2px; }

  h1,h2,h3{
    font-family:var(--display); font-weight:600; letter-spacing:-.022em;
    margin:0; text-wrap:balance;
  }


  .btn{
    display:inline-flex; align-items:center; justify-content:center;
    font-family:var(--body); font-size:15px; font-weight:500;
    padding:15px 32px; border-radius:2px; text-decoration:none;
    border:1px solid transparent; cursor:pointer;
    transition:background .2s, color .2s, border-color .2s;
  }
  .btn-solid{ background:var(--navy); background-image:var(--grad); color:var(--cream); }
  .btn-ghost{ border-color:currentColor; }
  .btn-cream{ background:var(--paper); color:var(--navy); }

  /* ---------- плейсхолдеры ---------- */
  .ph{
  position:relative; overflow:hidden;
  background:none;
  border:0;
  display:grid; place-items:center; text-align:center; padding:20px;
}
.ph span{ display:none; }
  .ph img{
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; display:block;
   
  }
  .ph.has-img{ background:none; border-color:transparent; padding:0; }
  .ph.has-img span{ display:none; }
  .ico-sm img{ width:100%; height:100%; object-fit:contain; display:block; }
  .ico-sm.has-img{ border:0; }
  .ico-sm.has-img span{ display:none; }
  .ph span{ display:none;
    font-size:11px; font-weight:600; letter-spacing:.12em;
    text-transform:uppercase; color:rgba(0,24,66,.6); line-height:2;
  }
  .ph.on-dark{
   background:none;
    border:0;
  }
  .ph.on-dark span{ color:rgba(255,255,255,.6); }

  .ico-sm{
    width:22px; height:22px; flex:0 0 22px; border-radius:50%;
    border:1px dashed rgba(255,255,255,.45);
    display:grid; place-items:center;
    font-size:7px; font-weight:600; letter-spacing:.04em;
    text-transform:uppercase; color:rgba(255,255,255,.6);
  }

  /* ---------- секции ---------- */
  .section{ padding-block:clamp(64px,8vw,112px); }
  .section-head{ max-width:64ch; margin-bottom:clamp(32px,4vw,54px); }
  .section-head h2{
    font-size:clamp(32px,4.4vw,54px); line-height:1.08;
    color:var(--bark); margin-bottom:16px;
  }
  .section-head p{ margin:0; color:var(--muted); font-size:18px; max-width:54ch; }

  .split{
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(28px,4vw,64px); align-items:center;
  }

  .bullets{ list-style:none; margin:0; padding:0; }
  .bullets li{
    padding:15px 0; border-top:1px solid rgba(0,24,66,.14);
    font-size:16px; line-height:1.5;
  }
  .bullets li:last-child{ border-bottom:1px solid rgba(0,24,66,.14); }
  .bullets strong{ font-weight:600; }

  /* список со стрелками */
  .bullets.arrows li{
    display:flex; gap:14px; align-items:baseline;
    transition:padding-left .35s cubic-bezier(.22,.61,.36,1);
  }
  .bullets.arrows li::before{
    content:"\2197"; flex:0 0 auto; font-size:15px; line-height:1;
    color:var(--euc); position:relative; top:1px;
    transition:transform .35s cubic-bezier(.22,.61,.36,1), color .35s;
  }
  .bullets.arrows li:hover{ padding-left:6px; }
  .bullets.arrows li:hover::before{ transform:translate(2px,-2px); color:var(--euc-deep); }

  /* на тёмном фоне стрелка светлеет, а не темнеет */
  .why .bullets.arrows li::before{ color:var(--euc-light); }
  .why .bullets.arrows li:hover::before{ color:var(--cream); }

  /* ================= HEADER ================= */
  .site-header{
  position:sticky; top:0; z-index:90;
  background:#fff;
  border-bottom:1px solid rgba(0,24,66,.12);
  padding-top:env(safe-area-inset-top);
}
.site-header::before{
  content:'';
  position:absolute;
  left:0; right:0; bottom:100%;
  height:200px;
  background:#fff;
}
  .header-inner{ display:flex; align-items:center; gap:32px; min-height:78px; }
  .brand{ text-decoration:none; margin-right:auto; }
  /* SLOT: логотип — заменить на <img src="assets/logo.svg" alt="Diagenta" height="28"> */
.brand-img{ height:32px; width:auto; display:block; }
  .nav{ display:flex; gap:30px; }
  .nav a{ text-decoration:none; font-size:15px; padding-block:4px; position:relative; }
  .nav a::after{
    content:""; position:absolute; left:0; right:0; bottom:0; height:1px;
    background:var(--grad-a); background-image:var(--grad);
    transform:scaleX(0); transform-origin:left; transition:transform .25s;
  }
  .nav a:hover::after, .nav a[aria-current="page"]::after{ transform:scaleX(1); }
  .nav-toggle{ display:none; }

  /* ================= 1. HERO ================= */
  .hero{
    display:grid; grid-template-columns:1fr 1fr;   /* ровно пополам */
    border-bottom:1px solid rgba(0,24,66,.12);
  }
  .hero-copy{
    /* левый край текста совпадает с левым краем .wrap в шапке.
       100% здесь = половина страницы, поэтому вся страница = 200%. */
    padding:clamp(56px,8vw,116px) clamp(28px,4vw,72px) clamp(56px,8vw,116px)
            max(var(--gut), calc(100% - var(--max) / 2 + var(--gut)));
    display:flex; flex-direction:column; justify-content:center;
    width:100%;
  }
  .hero h1{
    font-size:clamp(40px,5.6vw,74px); line-height:.98; letter-spacing:-.026em;
    color:var(--bark); margin-bottom:22px;
  }
  .hero .sub{
    font-family:var(--display); font-weight:600;
    font-size:clamp(19px,2vw,26px); line-height:1.3;
    color:var(--euc); margin:0 0 24px; max-width:26ch;
  }
  .hero .intro{ font-size:17px; color:var(--muted); max-width:50ch; margin:0 0 34px; }
  /* SLOT: assets/hero.jpg */
  .hero-media{ min-height:clamp(320px,50vh,600px); }
  .hero-media.ph{ border:0; border-left:1px solid rgba(0,24,66,.12); }

  /* ---- интро hero на главной: картинка падает сверху, накрывает всю
     секцию и усаживается в свою половину; текст проявляется следом.
     Классы навешивает JS (app.js) — см. блок «Интро hero (главная)». ---- */
  .hero-copy--pending > *{ opacity:0; transform:translateY(16px); }
  .hero-copy--in > *{
    opacity:1; transform:translateY(0);
    transition:opacity .6s ease, transform .6s ease;
  }
  .hero-copy--in > *:nth-child(2){ transition-delay:.08s; }
  .hero-copy--in > *:nth-child(3){ transition-delay:.16s; }
  .hero-copy--in > *:nth-child(4){ transition-delay:.24s; }

  /* — герой внутренней страницы: по центру, без картинки (чтобы не дублировать home) — */
  .lab-hero{
    text-align:center;
    padding-block:clamp(40px,5vw,84px);
    border-bottom:1px solid rgba(0,24,66,.12);
  }
  .lab-hero .wrap{ max-width:860px; }
  .lab-hero .eyebrow{
    display:inline-block;
    font-family:var(--body); font-weight:600;
    font-size:12.5px; letter-spacing:.2em; text-transform:uppercase;
    color:var(--euc); margin-bottom:24px;
  }
  .lab-hero h1{
    font-family:var(--display); font-weight:600;
    font-size:clamp(38px,5.6vw,70px); line-height:1.02; letter-spacing:-.024em;
    color:var(--bark); margin:0 0 20px; text-wrap:balance;
  }
  .lab-hero .sub{
    font-family:var(--display); font-weight:500;
    font-size:clamp(19px,2.2vw,27px); line-height:1.25;
    color:var(--bark); margin:0 0 22px;
  }
  .lab-hero .intro{
    font-family:var(--body); font-size:17px; line-height:1.62;
    color:var(--muted); max-width:54ch; margin:0 auto 34px;
  }
  /* маленькая картинка сверху по центру — разбавляет белый фон */
  .lab-hero-media{
    width:clamp(168px,24vw,208px); aspect-ratio:2/1;
    margin:0 auto 30px; border-radius:2px;
  }

  /* ---- интро героя: картинка садится в свой слот ----
     Работает только при включённом JS; без него герой обычный.
     Картинку из правила исключаем — ей управляет скрипт. */
  .lab-hero.is-intro .reveal:not(.lab-hero-media){
    opacity:0; transform:translateY(16px);
  }

  /* ================= 2. WHY AUSTRALIA ================= */
    .why{ background:var(--navy-deep); color:var(--mist); }
  .why .section-head h2{ color:var(--cream); }
  .why h2{
    font-size:clamp(32px,4.4vw,54px); line-height:1.08;
    color:var(--cream); margin-bottom:26px;
  }
  .why .lead{
    font-family:var(--display); font-weight:600;
    font-size:clamp(24px,2.8vw,34px); line-height:1.22;
    margin:0 0 30px; max-width:18ch;
  }
  .why .bullets li{ border-color:rgba(255,255,255,.22); color:rgba(255,255,255,.88); }
  .why .bullets li:last-child{ border-bottom-color:rgba(255,255,255,.22); }
  .why .bullets strong{ color:var(--cream); }
  /* картинка занимает ровно левую половину экрана и уходит в левый край,
     сверху и снизу её держат вертикальные отступы секции */
  .why-grid{ display:grid; grid-template-columns:1fr 1fr; align-items:stretch; }
  .why-media{ min-height:clamp(420px,60vh,700px); aspect-ratio:auto; }
  .why-copy{
    display:flex; flex-direction:column; justify-content:center;
    padding-left:clamp(28px,4vw,72px);
    /* правый край текста совпадает с правым краем .wrap — как в герое,
       только зеркально: 100% здесь = половина страницы */
    padding-right:max(var(--gut), calc(100% - var(--max) / 2 + var(--gut)));
  }

  /* ================= 3. COMPETENCIES — переключаемый блок ================= */
  .comps{ background:var(--cream); }

  .comps-ui{
    display:grid; grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);
    gap:clamp(28px,4vw,72px); align-items:stretch;
  }

  /* ---- левая колонка ---- */
  .comps-rail{ display:flex; flex-direction:column; height:100%; }
  .rail-item{
    position:relative; flex:1;                 /* три пункта одной высоты */
    display:grid; grid-template-columns:auto 1fr; gap:20px;
    align-content:center;
    text-align:left; background:transparent; border:0;
    border-top:1px solid rgba(0,24,66,.14);
    padding:30px 0 32px;
    cursor:pointer; color:inherit; font:inherit; width:100%;
  }
  .rail-item:last-child{ border-bottom:1px solid rgba(0,24,66,.14); }

  .rail-num{
    font-size:12px; font-weight:600; letter-spacing:.14em;
    color:rgba(0,24,66,.35); padding-top:9px;
    transition:color .55s ease;
  }
  .rail-title{
    display:block; font-family:var(--display); font-weight:600;
    font-size:clamp(21px,2.2vw,29px); line-height:1.15; letter-spacing:-.013em;
    color:rgba(0,24,66,.56); transition:color .55s ease;
  }
  .rail-desc{
    display:block; margin-top:10px; font-size:15px; line-height:1.5;
    max-width:36ch; color:rgba(0,24,66,.48); transition:color .55s ease;
  }
  .rail-item:hover .rail-title{ color:rgba(0,24,66,.78); }
  .rail-item.is-active .rail-num{ color:var(--euc); }
  .rail-item.is-active .rail-title{ color:var(--bark); }
  .rail-item.is-active .rail-desc{ color:var(--muted); }

  /* полоса прогресса до следующего переключения */
  .rail-progress{
    position:absolute; left:0; right:0; top:-1px; height:2px;
    overflow:hidden; pointer-events:none;
  }
  .rail-progress i{
    display:block; height:100%; width:100%;
    background:var(--grad-a); background-image:var(--grad);
    transform:scaleX(0); transform-origin:left;
  }
  .rail-item.is-active .rail-progress i{ animation:railfill var(--switch,5s) linear forwards; }
  @keyframes railfill{ from{ transform:scaleX(0); } to{ transform:scaleX(1); } }

  /* ---- правая колонка ---- */
  .comps-stage{
    height:100%;
    display:grid;                              /* все панели в одной ячейке —
                                                  высота по самой высокой, ничего не прыгает */
  }
  /* уходящая панель гаснет первой, входящая стартует после неё —
     иначе два текста накладываются друг на друга */
  .comp-panel{
    grid-area:1 / 1; align-self:start; pointer-events:none;
    opacity:0; visibility:hidden; transform:translateY(10px);
    transition:opacity .26s ease,
               transform .26s ease,
               visibility 0s linear .26s;
  }
  .comp-panel.is-active{
    opacity:1; visibility:visible; transform:none; pointer-events:auto;
    transition:opacity .4s ease .26s,
               transform .5s cubic-bezier(.22,.61,.36,1) .26s,
               visibility 0s;
  }
  .comp-panel .ph{ aspect-ratio:16/9; margin-bottom:28px; }
  /* картинки компетенций — png без фона: вписываем целиком,
     а не обрезаем по cover, иначе объект режется по краям слота */
  .comp-panel .ph img{ object-fit:contain; }


  /* ============ INTEGRATED LABS ============ */
  .labs-band{
    position:relative; overflow:hidden;
    padding-block:clamp(56px,8vw,124px);
  }
  .labs-bg{
    position:absolute; inset:0; z-index:0;
    border:0; padding:0; align-content:center;
  }
  .labs-bg span{ position:relative; z-index:2; }
  /* затемнение, чтобы карточка читалась поверх любого фото */
  .labs-band::before{
    content:""; position:absolute; inset:0; z-index:1;
    background:rgba(0,24,66,.34); pointer-events:none;
  }
  .labs-band .wrap{ position:relative; z-index:2; }

  .labs-card{
    display:grid; grid-template-columns:1fr 1fr;
    max-width:1080px; margin:0 auto; align-items:stretch;
    box-shadow:0 40px 90px -50px rgba(0,24,66,.6);
  }
  .labs-card-text{
    background:var(--paper);
    padding:clamp(30px,4vw,64px);
    display:flex; flex-direction:column; justify-content:center;
  }
  .labs-card-text h2{
    font-size:clamp(30px,3.6vw,48px); line-height:1.06;
    color:var(--bark); margin-bottom:22px;
  }
  .labs-card-text p{
    margin:0 0 34px; color:var(--muted); font-size:17px; max-width:34ch;
  }
  .labs-card-media{
    min-height:clamp(320px,40vw,540px);
    border:0;
  }

  /* ================= 4. THREE CONTINENTS ================= */
  .global{ background:var(--cream); }
  .global-head{
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:clamp(28px,5vw,72px); align-items:start;
    margin-bottom:clamp(48px,7vw,96px);
  }
  .global-head h2{
    font-size:clamp(32px,4.4vw,54px); line-height:1.08; color:var(--bark);
  }
  .global-head p{ margin:0; color:var(--muted); font-size:17px; max-width:46ch; }

  /* три региона вместо карты */
  .regions{
    display:grid; grid-template-columns:repeat(3,1fr);
    border-top:1px solid rgba(0,24,66,.2);
  }
  .region{
    padding:clamp(28px,3vw,42px) clamp(20px,2.4vw,36px) clamp(28px,3.4vw,48px) 0;
    border-right:1px solid rgba(0,24,66,.14);
  }
  .region:not(:first-child){ padding-left:clamp(20px,2.4vw,36px); }
  .region:last-child{ border-right:0; padding-right:0; }
  .region h3{
    font-size:clamp(28px,3.4vw,42px); line-height:1.05;
    color:var(--bark); margin-bottom:14px;
  }
  .region .city{
    margin:0 0 20px; font-size:12px; font-weight:600;
    letter-spacing:.14em; text-transform:uppercase; color:var(--euc);
  }
  .region .role{ margin:0; font-size:15.5px; line-height:1.55; color:var(--muted); max-width:28ch; }

  .continents{
  margin-top:clamp(32px,4vw,52px); padding-top:22px;
  border-top:1px solid rgba(0,24,66,.16);
  font-family:var(--body); font-size:14px; font-weight:400;
  letter-spacing:.12em; line-height:24px;
  text-transform:uppercase; color:var(--euc);
  text-align:center;
}

  /* ================= 5. WHO WE WORK WITH ================= */
  /* SLOT: assets/clients.jpg */
  
  .clients .lead{
    font-family:var(--display); font-weight:600;
    font-size:clamp(24px,2.8vw,34px); line-height:1.22;
    color:var(--bark); margin:0 0 28px; max-width:19ch;
  }

  /* ================= 6. CONTACT — тёмная секция ================= */
  .contact{ background:var(--ink); color:#fff; padding-block:clamp(64px,8vw,116px); }
  .contact .field label{ color:rgba(255,255,255,.62); }
  .contact .field input:focus ~ label,
  .contact .field input:not(:placeholder-shown) ~ label,
  .contact .field textarea:focus ~ label,
  .contact .field textarea:not(:placeholder-shown) ~ label{ color:var(--euc-light); }
  .contact .btn-cream{ background:#fff; color:var(--ink); }
  .contact .btn-cream:hover, .contact .btn-cream:focus-visible{ background:#fff; color:#fff; }
  .contact-grid{
    display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);
    gap:clamp(36px,6vw,96px); align-items:start;
  }
  .contact h2{ font-size:clamp(32px,4.4vw,54px); line-height:1.05; margin-bottom:20px; }
  .contact .pitch{
    font-size:17px; line-height:1.55; margin:0;
    color:rgba(255,255,255,.82); max-width:38ch;
  }

  /* плавающие лейблы */
  .field{ position:relative; margin-bottom:34px; }
  .field input,
  .field textarea{
    width:100%; background:transparent; border:0;
    border-bottom:1px solid rgba(255,255,255,.4);
    color:#fff; font-family:var(--body); font-size:17px;
    padding:24px 0 11px; transition:border-color .22s;
  }
  .field textarea{ resize:vertical; min-height:96px; }
  .field input::placeholder,
  .field textarea::placeholder{ color:transparent; }
  .field label{
    position:absolute; left:0; top:24px;
    font-size:17px; color:rgba(255,255,255,.72);
    pointer-events:none;
    transition:top .22s, font-size .22s, letter-spacing .22s, color .22s;
  }
  .field input:focus,
  .field textarea:focus{ outline:none; border-bottom-color:#fff; }
  .field input:focus ~ label,
  .field input:not(:placeholder-shown) ~ label,
  .field textarea:focus ~ label,
  .field textarea:not(:placeholder-shown) ~ label{
    top:0; font-size:11px; font-weight:600;
    letter-spacing:.14em; text-transform:uppercase;
    color:rgba(255,255,255,.75);
  }
  .field .req{ font-weight:400; opacity:.6; }
  .field-row{ display:grid; grid-template-columns:1fr 1fr; gap:0 28px; }
  .check{
    display:flex; align-items:center; gap:12px;
    margin:6px 0 34px; font-size:16px; color:rgba(255,255,255,.88);
  }
  .check input{ width:18px; height:18px; accent-color:var(--cream); }
 /* ================= Who we work with — заголовок + лид + список ================= */
  .clients .cl-copy h2{
    font-family:var(--display); font-weight:600;
    font-size:clamp(32px,4vw,54px); line-height:1.08; letter-spacing:-.022em;
    color:var(--euc); margin:0 0 20px;
  }
  .cl-lead{
    font-family:var(--display); font-weight:600;
    font-size:clamp(24px,2.8vw,34px); line-height:1.22; letter-spacing:-.006em;
    color:var(--bark); margin:0 0 30px; max-width:16ch;
  }
  .cl-list{ max-width:420px; margin:0; }

    /* ============================================================
     ЗАГОЛОВКИ СЕКЦИЙ
     Раньше все h2 были акцентными (оранжевыми). Синий акцент
     в такой роли читается мутно и спорит с вордмарком, поэтому
     заголовки теперь navy, а акцент остаётся на мелочах:
     eyebrow, номера, города, подчёркивания, стрелки.
     ============================================================ */
  .section-head h2{ color:var(--navy); }
  .why h2{ color:var(--mist); }
  .labs-card-text h2{ color:var(--navy); }
  .global-head h2{ color:var(--navy); }
  .contact h2{ color:#fff; }
  .clients .cl-copy h2{ color:var(--navy); }

/* ================= FOOTER (светлый — по макету Figma) ================= */
  .site-footer{ background:var(--cream); color:var(--ink); padding-block:clamp(56px,7vw,88px) 34px; }
  .footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:clamp(28px,4vw,56px); }
 .footer-brand .brand-img{ height:44px; }
  .footer-brand p{ margin:16px 0 0; color:var(--muted); font-size:15px; line-height:1.75; max-width:24ch; }
  .footer-col h3{
    font-family:var(--display); font-weight:600;
    font-size:22px; letter-spacing:-.022em; color:var(--bark); margin-bottom:18px;
  }
  .footer-col .region{
    font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
    color:var(--muted); display:block; margin-bottom:14px;
  }
  .contact-line{ display:flex; align-items:center; gap:12px; margin-bottom:14px; }
.contact-line:has(address){ align-items:flex-start; }
  .contact-line a{ color:var(--bark); text-decoration:none; border-bottom:1px solid rgba(0,24,66,.28); }
  .contact-line a:hover{ color:var(--euc); border-color:var(--euc); }
  .contact-line address{ font-style:normal; color:var(--ink); font-size:15px; line-height:1.6; }
  .site-footer .ico-sm{ border-color:rgba(0,24,66,.32); color:rgba(0,24,66,.5); }
  .footer-links{ list-style:none; margin:0; padding:0; }
  .footer-links li{ margin-bottom:11px; }
  .footer-links a{ color:var(--ink); text-decoration:none; }
  .footer-links a:hover{ color:var(--euc); }
  .footer-base{
    margin-top:clamp(40px,5vw,62px); padding-top:23px;
    border-top:1px solid rgba(0,24,66,.14);
    display:flex; justify-content:space-between; align-items:center;
    gap:14px; flex-wrap:wrap;
    font-size:12px; color:var(--muted);
  }


  /* ============================================================
     КРЕАТИВНЫЙ СЛОЙ
     Всё ниже — только оформление. Порядок секций и тексты не тронуты.
     Каждый блок помечен, любой можно выключить отдельно.
     ============================================================ */

  /* — зерно на всей странице, чтобы бежевый не был плоским — */
  body::after{
    content:""; position:fixed; inset:0; z-index:200; pointer-events:none;
    opacity:.022; mix-blend-mode:multiply;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  }





  /* — строки клиентов: акцентная линия слева — */
  .clients .bullets li{ position:relative; padding-left:0; transition:padding-left .3s, color .3s; }
  .clients .bullets li::after{
    content:""; position:absolute; left:0; bottom:-1px; height:1px;
    width:0; background:var(--euc); transition:width .45s cubic-bezier(.2,.7,.3,1);
  }
  .clients .bullets li:hover{ padding-left:14px; }
  .clients .bullets li:hover::after{ width:100%; }

  /* — водяной знак в контакт-секции — */
  .contact{ position:relative; overflow:hidden; }
    .contact::before{
    content:"DIAGENTA"; position:absolute;
    left:0; bottom:-.34em; margin:0; pointer-events:none;
    font-family:var(--display); font-weight:600;
    font-size:clamp(180px,26vw,420px); line-height:1;
    color:#fff; opacity:.045; letter-spacing:.04em;
  }
  .contact .wrap{ position:relative; z-index:1; }

  /* — кнопки с заливкой из центра — */
  /* заливка приходит снизу; на ховере любая кнопка уходит в градиент */
  .btn{ position:relative; overflow:hidden; isolation:isolate; }
  .btn::before{
    content:""; position:absolute; inset:0; z-index:-1;
    background:var(--navy); background-image:none;
        transform:scaleX(0); transform-origin:left;
    transition:transform .55s cubic-bezier(.2,.7,.3,1);
  }
    .btn:hover::before, .btn:focus-visible::before{ transform:scaleX(1); }

  /* фон не трогаем: его закрывает заливка ::before, иначе цвет щёлкает мгновенно */
  .btn-solid:hover, .btn-solid:focus-visible{ color:#fff; }
  .btn-ghost:hover, .btn-ghost:focus-visible{
    background:transparent; color:#fff; border-color:var(--euc);
  }
  .btn-cream:hover, .btn-cream:focus-visible{ color:#fff; }

  @media (max-width:760px){
  }
  @media (prefers-reduced-motion:reduce){
    .rail-item.is-active .rail-progress i{ animation:none; transform:scaleX(1); }
    .comp-panel{ transition:none; transform:none; }
  }

  /* ================= reveal ================= */
  .reveal{ opacity:0; transform:translateY(140px); transition:opacity .3s ease, transform .5s cubic-bezier(.22,1,.36,1); }
  .reveal.in{ opacity:1; transform:none; }

  /* ================= responsive ================= */
  @media (max-width:1000px){
    .hero{ grid-template-columns:1fr; }
    .hero-copy{ max-width:none; padding-inline:var(--gut); }
    .hero-media{ min-height:300px; order:-1; }
    .hero-media.ph{ border-left:0; }
    .split{ grid-template-columns:1fr; }
   .tech .ph, .clients .ph{ aspect-ratio:auto; height:62vw; order:-1; }
    .why-grid{ grid-template-columns:1fr; }
    .why-media{ min-height:0; aspect-ratio:auto; height:62vw; }
    .why-copy{ padding:clamp(28px,5vw,44px) var(--gut) 0; }
    .comps-ui{ grid-template-columns:1fr; }
    .rail-desc{ max-width:none; }
    .rail-item{ flex:0 0 auto; }
    .labs-card{ grid-template-columns:1fr; }
   .labs-card-media{ min-height:0; aspect-ratio:auto; height:62vw; order:-1; }
    .global-head{ grid-template-columns:1fr; gap:20px; }
    .regions{ grid-template-columns:1fr; }
    .region{
      border-right:0; border-bottom:1px solid rgba(0,24,66,.14);
      padding:26px 0 30px !important;
    }
    .region:last-child{ border-bottom:0; }
    .contact-grid{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns:1fr; }
    .nav{
      position:fixed; inset:78px 0 auto; flex-direction:column; gap:0;
      background:var(--paper); border-bottom:1px solid rgba(0,24,66,.12);
      padding:8px var(--gut) 26px; transform:translateY(-180%); transition:transform .3s;
    }
    .nav[data-open="true"]{ transform:none; }
    .nav a{ padding:15px 0; border-bottom:1px solid rgba(0,24,66,.1); font-size:17px; }
    .nav-toggle{
      display:inline-flex; align-items:center; background:none;
      border:1px solid rgba(0,24,66,.25); border-radius:2px;
      padding:9px 16px; font-family:var(--body); font-size:14px;
      color:var(--ink); cursor:pointer;
    }
    .header-cta{ display:none; }
  }
  @media (max-width:600px){
    .field-row{ grid-template-columns:1fr; gap:0; }
  }
  @media (prefers-reduced-motion:reduce){
    *,*::before,*::after{ transition:none !important; animation:none !important; }
    html{ scroll-behavior:auto; }
    .reveal{ opacity:1; transform:none; }
  }
  /* ============================================================
     ПОП-АП «Partner with us» + экран «Message sent»
     Панель тёмная, поэтому все .field-стили из общей системы
     работают как есть — переопределены только цвета лейблов.
     ============================================================ */
  .modal{
    position:fixed; inset:0; z-index:300;
    display:grid; place-items:center;
    padding:clamp(16px,4vw,44px);
  }
  .modal[hidden]{ display:none; }
  .modal-backdrop{
    position:absolute; inset:0;
    background:rgba(0,24,66,.62); backdrop-filter:blur(3px);
    animation:modalfade .25s ease;
  }
  .modal-panel{
    position:relative; z-index:1;
    width:min(660px,100%);
    max-height:calc(100vh - clamp(32px,8vw,88px));
    overflow:auto;
    background:var(--ink); color:#fff;
    border-radius:2px;
    padding:clamp(30px,4vw,54px);
    box-shadow:0 50px 110px -40px rgba(0,24,66,.75);
    animation:modalrise .32s cubic-bezier(.22,.61,.36,1);
  }
  @keyframes modalfade{ from{ opacity:0; } to{ opacity:1; } }
  @keyframes modalrise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }

  .modal-panel h2{
    font-size:clamp(26px,3.2vw,38px); line-height:1.08;
    color:var(--euc-light); margin:0 0 14px; padding-right:44px;
  }
  .modal-panel .pitch{
    margin:0 0 30px; font-size:16px; line-height:1.55;
    color:rgba(255,255,255,.82); max-width:44ch;
  }
  .modal-close{
    position:absolute; top:14px; right:14px;
    width:40px; height:40px; display:grid; place-items:center;
    background:none; border:1px solid rgba(255,255,255,.28); border-radius:2px;
    color:#fff; font-family:var(--body); font-size:16px; line-height:1; cursor:pointer;
    transition:background .2s, border-color .2s;
  }
  .modal-close:hover{ background:var(--euc); border-color:var(--euc); }

  .modal-panel .field label{ color:rgba(255,255,255,.62); }
  .modal-panel .field input:focus ~ label,
  .modal-panel .field input:not(:placeholder-shown) ~ label,
  .modal-panel .field textarea:focus ~ label,
  .modal-panel .field textarea:not(:placeholder-shown) ~ label{ color:var(--euc-light); }
  .modal-panel .btn-cream{ background:#fff; color:var(--ink); }
  .modal-panel .btn-cream:hover, .modal-panel .btn-cream:focus-visible{ background:#fff; color:#fff; }

  /* строка ошибки — есть в каждой форме, показывается только если отправка не прошла */
  .form-error{ margin:16px 0 0; font-size:14.5px; line-height:1.5; color:var(--euc-light); }
  .form-error[hidden]{ display:none; }
  .form-error a{ color:inherit; }

  /* — состояние «отправлено» — */
  .modal-done{ text-align:center; padding:clamp(6px,2vw,18px) 0 4px; }
  .modal-done[hidden], .modal-form[hidden]{ display:none; }
  .modal-done h2{ padding:0; margin-bottom:14px; }
  .modal-done p{
    margin:0 auto 30px; max-width:36ch;
    color:rgba(255,255,255,.82); font-size:16px; line-height:1.6;
  }
  body.modal-open{ overflow:hidden; }

  /* кнопка CTA в мобильном меню — в шапке .header-cta скрыт на узких */
  .nav-cta{ display:none; }
  @media (max-width:1000px){
    .nav-cta{ display:inline-flex; width:100%; margin:18px 0 6px; }
  }
  @media (prefers-reduced-motion:reduce){
    .modal-backdrop, .modal-panel{ animation:none; }
  }



  /* ============================================================
     LABORATORIES — страничные компоненты
     Перенесено из <style> в laboratories.html, чтобы правки
     палитры и типографики жили в одном месте.
     ============================================================ */
/* ============================================================
     LABORATORIES — доп. компоненты страницы
     Всё остальное (герой, тёмная секция, split, контакт, футер,
     кнопки, .ph-заглушки, зерно, reveal) — из общей системы выше.
     ============================================================ */

  /* якоря не прячутся под липкой шапкой */
  section[id]{ scroll-margin-top:92px; }

  /* Overview (шелл .why): подпись под лидом на тёмном */
  #overview .note{
    margin:0; color:rgba(255,255,255,.72);
    font-size:17px; line-height:1.55; max-width:40ch;
  }

  /* Partnership: крупный засечный лид + подпись на светлом */
  .lab-lead{
    font-family:var(--display); font-weight:600;
    font-size:clamp(24px,2.8vw,34px); line-height:1.22;
    color:var(--bark); margin:0 0 22px; max-width:15ch;
  }
  .lab-sub{ margin:0; color:var(--muted); font-size:15px; line-height:1.75; max-width:46ch; }
  .partnership .p-copy h2{
    font-family:var(--display); font-weight:600;
    font-size:clamp(32px,4vw,54px); line-height:1.08; letter-spacing:-.022em;
    color:var(--navy); margin:0 0 22px;
  }

  /* Our expertise — три карточки на кремовом */
  .lab-expertise{ background:var(--cream); }
  .exp-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(24px,3vw,44px); }
  .exp-card{ display:flex; flex-direction:column; }
  .exp-card .ph{ aspect-ratio:16/9; margin-bottom:22px; }
  .exp-card h3{
    font-family:var(--display); font-weight:600;
    font-size:clamp(20px,2vw,25px); line-height:1.15; letter-spacing:-.013em;
    color:var(--bark); margin-bottom:12px;
  }
  .exp-card p{ margin:0; color:var(--muted); font-size:15.5px; line-height:1.55; max-width:34ch; }

  /* The Diagenta advantage — слева заголовок, справа карточки */
  .lab-advantage{ background:var(--cream); }
  .adv-layout{
    display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
    gap:clamp(32px,5vw,84px); align-items:start;
  }
  /* заголовок блока стоит на месте, без sticky: при скролле он ездил
     вслед за карточками справа */
  .adv-intro{ position:static; }
  .adv-intro h2{
    /* стиль заголовка из Figma: Archivo SemiBold 54 / lh 1.08 / трекинг −0.035em, оранжевый */
    font-family:var(--display); font-weight:600;
    font-size:clamp(34px,4.6vw,54px); line-height:1.08; letter-spacing:-.022em;
    color:var(--navy); margin:0 0 22px;
  }
  .adv-intro p{ margin:0; color:var(--muted); font-size:17px; line-height:1.62; max-width:34ch; }

  .adv-list{
    display:flex; flex-direction:column; gap:0;
    background:var(--paper);
    border:1px solid rgba(0,24,66,.09); border-radius:2px;
    overflow:hidden;
  }
  .adv-row{
    position:relative;
    display:grid; grid-template-columns:auto 1fr auto; gap:22px; align-items:center;
    border-top:1px solid rgba(0,24,66,.09);
    padding:26px 30px;
    transition:background .45s ease,
               transform .45s cubic-bezier(.22,.61,.36,1),
               box-shadow .45s ease,
               border-color .45s ease;
  }
  .adv-row:first-child{ border-top:0; }
 
  .adv-ico{
    width:46px; height:46px; flex:0 0 46px; border-radius:2px;
    display:grid; place-items:center;
    background:var(--cream); color:var(--bark);
    transition:background .45s cubic-bezier(.22,.61,.36,1), color .45s ease;
  }
  /* подъём строки: z-index — чтобы тень легла поверх соседей,
     прозрачная верхняя граница — чтобы линия не отрывалась от строки */
  .adv-row:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 34px rgba(0,24,66,.10);
    border-top-color:transparent;
    z-index:1;
  }
  .adv-row:hover .adv-ico{ background-image:var(--grad); color:#fff; }
  .adv-ico svg{ width:22px; height:22px; display:block; }
  .adv-text h3{
    font-family:var(--display); font-weight:600;
    font-size:clamp(18px,1.8vw,23px); line-height:1.2; letter-spacing:-.01em;
    color:var(--bark); margin-bottom:6px;
  }
  .adv-text p{ margin:0; color:var(--muted); font-size:15.5px; line-height:1.5; }
  /* стрелка справа — забирает пустоту и повторяет мотив ↗ из списков сайта */
  .adv-arrow{
    justify-self:end; font-size:19px; line-height:1; color:rgba(0,24,66,.24);
    transition:transform .45s cubic-bezier(.22,.61,.36,1), color .45s ease;
  }
  .adv-row:hover .adv-arrow{ transform:translate(3px,-3px); color:var(--euc); }

  /* оранжевый заголовок контакт-секции (тёмный фон → --euc-light) */
  .contact h2{ color:var(--euc-light); }

  /* оранжевые заголовки всех секций, КРОМЕ hero (он остаётся тёмным) */
  .section-head h2{ color:var(--euc); }   /* Our expertise, Partnership — светлый фон */
  #overview.why h2{ color:var(--euc-light); }   /* Overview — тёмный фон */

  @media (max-width:1000px){
    .exp-grid{ grid-template-columns:1fr; gap:clamp(28px,5vw,40px); }
    .adv-layout{ grid-template-columns:1fr; gap:clamp(26px,5vw,40px); }
    .adv-intro{ position:static; }
    .adv-intro p{ max-width:46ch; }
  }
  @media (max-width:600px){
    .adv-row{ padding:22px; gap:16px; }
    .adv-ico{ width:40px; height:40px; flex-basis:40px; }
    .adv-arrow{ display:none; }
  }


  /* ============================================================
     SERVICES — страничные компоненты
     Перенесено из <style> в services.html.
     ============================================================ */
/* ============================================================
   БЛОК 1 · CORE CAPABILITIES — карточки с иконкой, три в ряд
   ============================================================ */
.cap{ background:var(--cream); }
.cap-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1px; background:rgba(0,24,66,.14); border:1px solid rgba(0,24,66,.14); }
.cap-card{
  background:var(--paper); padding:clamp(28px,3vw,40px);
  display:flex; flex-direction:column;
  transition:background .3s ease;
}
.cap-card:hover{ background:#fff; }
.cap-card h3{ font-size:clamp(19px,1.7vw,23px); line-height:1.2; margin-bottom:12px; }
.cap-card p{ font-size:16px; line-height:1.6; color:var(--muted); margin:0; }
.cap-tag{
  margin-top:auto; padding-top:clamp(40px,5vw,72px);
  font-size:11px; font-weight:600; letter-spacing:.14em;
  text-transform:uppercase; color:var(--euc);
}

/* ============================================================
   БЛОК 2 · COMPETENCIES — карточки с фото, четыре в ряд
   ============================================================ */
.comp-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:clamp(20px,2.5vw,36px); }
.comp-card{ display:flex; flex-direction:column; }
.comp-media{ aspect-ratio:16/10; margin-bottom:22px; }
.comp-card h3{ font-size:clamp(18px,1.5vw,21px); line-height:1.22; margin-bottom:10px; }
.comp-card p{ font-size:15px; line-height:1.6; color:var(--muted); margin:0; }
.comp-card .rule{
  height:2px; background:var(--euc); width:36px;
  margin-bottom:18px; transition:width .35s ease;
}
.comp-card:hover .rule{ width:100%; }

/* ============================================================
   БЛОК 3 · OPERATIONS — тёмная секция, сетка 3 + 2
   ============================================================ */
.ops{ background:var(--cream); }
.ops-layout{
  display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  gap:clamp(32px,5vw,84px); align-items:start;
}
.ops-intro{ position:sticky; top:104px; }
.ops-intro h2{
  font-size:clamp(34px,4.6vw,54px); line-height:1.08;
  color:var(--navy); margin:0 0 22px;
}
.ops-intro p{ margin:0; color:var(--muted); font-size:17px; line-height:1.62; max-width:34ch; }

.ops-list{
  display:flex; flex-direction:column;
  background:var(--paper);
  border:1px solid rgba(0,24,66,.09);
  overflow:hidden;
}
.ops-row{
  position:relative;
  display:grid; grid-template-columns:auto 1fr auto; gap:24px; align-items:center;
  border-top:1px solid rgba(0,24,66,.09);
  padding:26px 30px;
  transition:background .45s ease,
             transform .45s cubic-bezier(.22,.61,.36,1),
             box-shadow .45s ease,
             border-color .45s ease;
}
.ops-row:first-child{ border-top:0; }
.ops-ico{
  width:46px; height:46px; flex:0 0 46px;
  display:grid; place-items:center;
  background:var(--cream); color:var(--bark);
  transition:background .45s cubic-bezier(.22,.61,.36,1), color .45s ease;
}
  /* подъём строки: z-index — чтобы тень легла поверх соседей,
     прозрачная верхняя граница — чтобы линия не отрывалась от строки */
  .ops-row:hover{
    transform:translateY(-3px);
    box-shadow:0 14px 34px rgba(0,24,66,.10);
    border-top-color:transparent;
    z-index:1;
  }
  .ops-row:hover .ops-ico{ background-image:var(--grad); }
.ops-ico img{ width:22px; height:22px; display:block; transition:filter .45s ease; }
  /* иконки подключены файлами: цвет запечён, поэтому на градиенте выбеливаем фильтром */
  .ops-row:hover .ops-ico img{ filter:brightness(0) invert(1); }
.ops-text h3{
  font-size:clamp(18px,1.8vw,23px); line-height:1.2; letter-spacing:-.006em;
  color:var(--bark); margin-bottom:6px;
}
.ops-text p{ margin:0; color:var(--muted); font-size:15.5px; line-height:1.5; }
  /* стрелка справа — тот же мотив, что в .adv-row на laboratories */
  .ops-arrow{
    justify-self:end; font-size:19px; line-height:1; color:rgba(0,24,66,.24);
    transition:transform .45s cubic-bezier(.22,.61,.36,1), color .45s ease;
  }
  .ops-row:hover .ops-arrow{ transform:translate(3px,-3px); color:var(--accent); }

@media (max-width:1100px){
  .comp-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:1000px){
  .cap-grid{ grid-template-columns:1fr; }
  .ops-layout{ grid-template-columns:1fr; gap:clamp(26px,5vw,40px); }
  .ops-intro{ position:static; }
  .ops-intro p{ max-width:46ch; }
}
@media (max-width:600px){
  .comp-grid{ grid-template-columns:1fr; }
  .ops-row{ padding:22px; gap:16px; }
  .ops-arrow{ display:none; }
}


  /* ============================================================
     OUR TEAM — страничные компоненты
     Перенесено из <style> в our-team.html.
     ============================================================ */
/* ============================================================
     OUR TEAM — доп. компоненты страницы
     Всё остальное (герой .lab-hero, контакт-форма, футер,
     кнопки, .ph-заглушки, зерно, reveal) — из общей системы выше.
     ============================================================ */

  /* якоря не прячутся под липкой шапкой */
  section[id]{ scroll-margin-top:92px; }

  /* ---- сетка людей: 2 ряда по 3 карточки, фон кремовый ---- */
  .team{ background:var(--cream); }
  .team-grid{
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:clamp(28px,3.4vw,52px) clamp(24px,3vw,44px);
  }
  .team-card{ display:flex; flex-direction:column; }
  .team-card .ph{ aspect-ratio:4/5; margin-bottom:20px; }
  .team-card h3{
    font-size:clamp(21px,2.1vw,26px); line-height:1.14;
    color:var(--bark); margin-bottom:8px;
  }
  .team-role{
    display:block; margin-bottom:12px;
    font-size:12px; font-weight:600; letter-spacing:.14em;
    text-transform:uppercase; color:var(--euc);
  }
  .team-card p{
    margin:0; color:var(--muted); font-size:15.5px; line-height:1.55;
    max-width:32ch;
  }

  /* портрет чуть проявляется на наведении — тот же приём, что в .adv-row */
   .team-card .ph img{ transition:transform .6s cubic-bezier(.22,.61,.36,1); }
   .team-card:hover .ph img{ transform:scale(1.03); }

  /* оранжевые заголовки секций — как на /laboratories и /contact */
  .section-head h2{ color:var(--navy); }
  .contact h2{ color:#fff; }

  @media (max-width:1000px){
    .team-grid{ grid-template-columns:repeat(2,1fr); }
    .team-card p{ max-width:38ch; }
  }
  @media (max-width:600px){
    .team-grid{ grid-template-columns:1fr; gap:clamp(26px,6vw,36px); }
    .team-card p{ max-width:46ch; }
  }


  /* ============================================================
     CONTACT — страничные компоненты
     Перенесено из <style> в contact.html.
     ============================================================ */
/* ============================================================
     CONTACT — доп. компоненты страницы
     Всё остальное (герой .lab-hero, .why-grid, контакт-форма,
     футер, кнопки, .ph-заглушки, зерно, reveal) — из общей
     системы выше.
     ============================================================ */

  /* якоря не прячутся под липкой шапкой */
  section[id]{ scroll-margin-top:92px; }

  /* Герой берёт .lab-hero + .lab-hero-media из общей системы —
     маленькая картинка 2:1 по центру, как на /laboratories. */

  /* ---- Our office: фото слева на половину экрана, реквизиты справа.
          Раскладка .why-grid — та же, что Overview и Partnership.
          Фон кремовый --cream, как у Competencies / Our expertise ---- */
  .office{ background:var(--cream); }
  .office .o-copy h2{
    font-family:var(--display); font-weight:600;
    font-size:clamp(32px,4vw,54px); line-height:1.08; letter-spacing:-.022em;
    color:var(--navy); margin:0 0 22px;
  }
  .office .o-lead{
    font-family:var(--display); font-weight:600;
    font-size:clamp(23px,2.6vw,32px); line-height:1.22;
    color:var(--bark); margin:0 0 30px; max-width:19ch;
  }

  /* реквизиты: два блока через хейрлайн — мотив .bullets */
  .office-details{ border-top:1px solid rgba(0,24,66,.16); }
  .office-block{
    padding:22px 0 24px;
    border-bottom:1px solid rgba(0,24,66,.16);
  }
  .office-block .label{
    display:block; margin:0 0 14px;
    font-size:12px; font-weight:600; letter-spacing:.14em;
    text-transform:uppercase; color:var(--euc);
  }
  .office-block address{
    font-style:normal; font-size:16.5px; line-height:1.62;
    color:var(--ink); margin:0;
  }
  /* строка-ссылка: почта, телефон */
  .office-link{
    display:block; width:fit-content; margin-bottom:12px;
    font-size:16.5px; color:var(--bark); text-decoration:none;
    border-bottom:1px solid rgba(0,24,66,.28);
    transition:color .2s, border-color .2s;
  }
  .office-link:hover{ color:var(--euc); border-color:var(--euc); }
  .office-note{
    margin:14px 0 0; font-size:15px; line-height:1.6;
    color:var(--muted); max-width:34ch;
  }
  .office-hours{
    display:block; margin-top:14px;
    font-size:12px; font-weight:600; letter-spacing:.14em;
    text-transform:uppercase; color:var(--muted);
  }

  /* оранжевые заголовки — как на /laboratories */
  .section-head h2{ color:var(--navy); }
  .contact h2{ color:#fff; }

  /* ============================================================
     LEGAL — страница Privacy Policy
     Одна колонка, ограниченная по мере строки: юридический текст
     читают подряд, а не сканируют.
     ============================================================ */
  .legal{ background:var(--paper); }
  .legal-head{ max-width:62ch; margin-bottom:clamp(36px,5vw,60px); }
  .legal-head h1{
    font-size:clamp(34px,4.6vw,56px); line-height:1.06; letter-spacing:-.024em;
    color:var(--navy); margin:0 0 14px;
  }
  .legal-date{ margin:0; font-size:14px; color:var(--muted); }

  .legal-body{ max-width:68ch; }
  .legal-block{ padding-top:26px; border-top:1px solid rgba(0,24,66,.09); margin-top:26px; }
  .legal-block:first-child{ border-top:0; margin-top:0; padding-top:0; }
  .legal-block h2{
    font-size:clamp(19px,1.9vw,23px); line-height:1.24; letter-spacing:-.006em;
    color:var(--navy); margin:0 0 12px;
  }
  .legal-block p{
    margin:0 0 12px; color:var(--ink); font-size:16.5px; line-height:1.7;
  }
  .legal-block p:last-child{ margin-bottom:0; }

  /* заглушки под юридический текст — намеренно кричащие, чтобы не уехали в прод */
  .legal-todo{
    background:#FFF3C4; color:#6B4E00; padding:1px 6px;
    font-size:.92em; font-weight:600; border-radius:2px;
  }

  .footer-base a{ color:var(--muted); text-decoration:underline; text-underline-offset:2px; }
  .footer-base a:hover{ color:var(--accent); }

  /* ============================================================
     ХЛЕБНЫЕ КРОШКИ — внутренние страницы
     ============================================================ */
  .crumbs{ margin-bottom:22px; }
  .crumbs ol{
    list-style:none; margin:0; padding:0;
    display:flex; flex-wrap:wrap; align-items:center; gap:8px;
    font-size:12px; letter-spacing:.12em; text-transform:uppercase;
    color:var(--muted);
  }
  .crumbs li + li::before{
    content:"/"; margin-right:8px; color:rgba(0,24,66,.28);
  }
  .crumbs a{ color:var(--muted); text-decoration:none; }
  .crumbs a:hover{ color:var(--accent); }
  .crumbs [aria-current="page"]{ color:var(--navy); }

  /* ============================================================
     ПРАВКИ ПО КОММЕНТАРИЯМ МЕНЕДЖЕРА (октябрь)
     Добавлено в конец файла, чтобы ничего выше не переопределять.
     1. .why-sub / .why-facts / .why-fact / .why-note — блок
        «Why start in Australia»: тайтл, сабтайтл и четыре факта
        сеткой 2×2 вместо прежнего списка .bullets.
        Фото слева остаётся, раскладка .why-grid не менялась.
     ============================================================ */


  /* ---------- герой: медиа ровно во всю высоту секции ---------- */
  /* Заголовок стал длиннее прежнего, поэтому текстовая колонка выше
     картинки. Тянем .hero-media по высоте строки грида и слегка
     уменьшаем h1, чтобы герой укладывался в один экран. */
  .hero{ align-items:stretch; }
  .hero-media{ height:100%; min-height:0; align-self:stretch; }
  .hero-media.ph{ display:block; }
  .hero h1{ font-size:clamp(36px,4.3vw,58px); line-height:1.02; }
  @media (max-width:1000px){
    .hero-media{ min-height:300px; }
  }

  /* ---------- Why Australia: решётка на тонких линиях ---------- */
  /* Та же система, что в блоке со странами: синяя линия сверху,
     внутренние разделители тоньше и приглушённее. Никаких плашек. */
  .why-sub{
    margin:0 0 clamp(26px,3vw,38px); max-width:48ch;
    font-size:17px; line-height:1.55; color:rgba(255,255,255,.74);
  }
  .why-facts{ display:grid; grid-template-columns:1fr 1fr; }
  .why-fact{
    padding:clamp(22px,2.4vw,30px) clamp(22px,2.4vw,32px) clamp(22px,2.4vw,30px) 0;
  }
  .why-fact:nth-child(2n){
    border-left:1px solid rgba(255,255,255,.16);
    padding-left:clamp(22px,2.4vw,32px); padding-right:0;
  }
  .why-fact:nth-child(n+3){ border-top:1px solid rgba(255,255,255,.16); }
  .why-fact h3{
    font-family:var(--display); font-weight:600;
    font-size:17px; line-height:1.25; letter-spacing:-.012em;
    color:var(--cream); margin:0 0 10px;
  }
  .why-fact h3 sup{ font-size:.62em; font-weight:500; }
  .why-fact p{ margin:0; font-size:14.5px; line-height:1.5; color:rgba(255,255,255,.7); }
  .why-note{
    margin:clamp(24px,3vw,34px) 0 0; max-width:62ch;
    font-size:12.5px; line-height:1.55; color:rgba(255,255,255,.5);
  }
  .why-note sup{ font-size:.85em; }

  @media (max-width:1000px){
    .why-copy{ padding-bottom:clamp(28px,5vw,44px); }
  }
  @media (max-width:560px){
    .why-facts{ grid-template-columns:1fr; }
    .why-fact{ padding-right:0; }
    .why-fact:nth-child(2n){ border-left:0; padding-left:0; }
    .why-fact + .why-fact{ border-top:1px solid rgba(255,255,255,.16); }
  }

  /* ============================================================
     .steps — «How we get your study running»
     Только на /clinical-trials, с главной на него ведёт ссылка.
     Раскладка на тонких линиях, как в блоке со странами:
     линия над каждым шагом, вертикальные разделители между.
     Пятый шаг помечен акцентной линией — там подключается
     лаборатория.
     ============================================================ */
  .steps{
    --step-pad:clamp(18px,1.8vw,26px);
    display:grid; grid-template-columns:repeat(4,1fr);
    grid-template-rows:auto auto auto; row-gap:0;
    /* поля одинаковые у всех колонок, включая первую, а сама решётка
       выезжает на их ширину — текст первого шага остаётся на одной
       вертикали с заголовком секции */
    margin-inline:calc(-1 * var(--step-pad));
  }
  .step{
    position:relative;
    padding:clamp(20px,2vw,26px) var(--step-pad);
    border-top:1px solid rgba(0,24,66,.16);
    transition:background .35s ease;
  }
  /* три строки одной высоты во всех колонках: подпись, заголовок, текст.
     Заголовки в две строки больше не сдвигают описание соседей. */
  .step h3{ min-height:2.5em; }                 /* фолбэк без subgrid */
  @supports (grid-template-rows: subgrid){
    .step{ display:grid; grid-row:span 3; grid-template-rows:subgrid; align-content:start; }
    .step h3{ min-height:0; }
  }
  /* ховер: колонка слегка подсвечивается, верхняя линия наливается
     акцентом слева направо, у заголовка выезжает стрелка */
  .step::before{
    content:""; position:absolute; top:-1px; left:0; right:0; height:2px;
    background:var(--accent); transform:scaleX(0); transform-origin:left;
    transition:transform .45s cubic-bezier(.22,.61,.36,1);
  }
  .step:hover::before{ transform:scaleX(1); }
  .step::after{
    content:"\2197"; position:absolute;
    top:clamp(18px,1.8vw,24px); right:clamp(14px,1.4vw,20px);
    font-size:16px; line-height:1; color:var(--accent);
    opacity:0; transform:translate(-4px,4px);
    transition:opacity .3s ease, transform .3s ease;
  }
  .step:hover::after{ opacity:1; transform:translate(0,0); }
  .step + .step{ border-left:1px solid rgba(0,24,66,.12); }
  .step--lab{ border-top:1px solid var(--accent); }
  .step-num{
    display:block; font-family:var(--display); font-weight:600;
    font-size:12px; letter-spacing:.14em; text-transform:uppercase;
    color:var(--accent); margin-bottom:clamp(20px,2.4vw,34px);
    transition:color .3s ease;
  }
  .step h3{
    font-family:var(--display); font-weight:600;
    font-size:17px; line-height:1.25; letter-spacing:-.012em;
    color:var(--navy); margin:0 0 8px;
  }
  .step p{ margin:0; font-size:14.5px; line-height:1.5; color:var(--muted); }

  @media (max-width:1000px){
    .steps{ grid-template-columns:1fr 1fr; }
    .step:nth-child(odd){ border-left:0; }
    .step:nth-child(even){ border-left:1px solid rgba(0,24,66,.12); }
  }
  @media (max-width:560px){
    .steps{ grid-template-columns:1fr; margin-inline:0; --step-pad:0px; }
    .step, .step + .step{ border-left:0; }
    .step-num{ margin-bottom:14px; }
  }

  /* ============================================================
     #stages — «What we do, by stage of development»
     (только /clinical-trials, базовый .cap-grid на /services не трогаем)
     Карточка = subgrid из четырёх строк: картинка, заголовок, описание,
     список. За счёт subgrid все четыре строки одной высоты во всех
     трёх колонках, поэтому заголовки, тексты и буллиты стоят на одних
     линиях при любой длине текста.
     ============================================================ */
  #stages .cap-grid{
    grid-template-rows:auto auto auto auto;
    row-gap:0; column-gap:1px;     /* иначе фон решётки даст лишние
                                      горизонтальные линии внутри карточек */
  }
  #stages .cap-card{ padding:clamp(22px,2.2vw,30px); }   /* поля уже, чтобы текст дышал */
  #stages .section-head p{ max-width:48ch; text-wrap:balance; }

  /* картинка маленькая, не на всю ширину карточки */
  #stages .cap-media{
    width:clamp(104px,11vw,140px); aspect-ratio:4/3;
    margin-bottom:clamp(20px,2vw,26px);
  }
  /* пока файла нет — видимый слот, чтобы было понятно, куда класть */
  #stages .cap-media:not(.has-img){
    background:var(--accent-wash);
    border:1px dashed rgba(0,24,66,.2);
  }
  #stages .cap-card p{ min-height:4.8em; }   /* фолбэк без subgrid */

  @supports (grid-template-rows: subgrid){
    #stages .cap-card{
      display:grid; grid-row:span 4; grid-template-rows:subgrid;
      align-content:start;
    }
    #stages .cap-card p{ min-height:0; }
  }

  #stages .cap-card .bullets{ margin:clamp(18px,2vw,24px) 0 0; align-self:start; }
  #stages .cap-card .bullets li{ font-size:15px; padding:11px 0; }

  @media (max-width:1000px){
    #stages .cap-grid{ row-gap:1px; }
    #stages .cap-card p{ min-height:0; }
  }


  /* ---------- .process на тёмном navy ---------- */
  .process{ background:var(--navy-deep); color:var(--mist); }
  .process .section-head h2{ color:var(--cream); }
  .process .section-head p{ color:rgba(255,255,255,.72); }
  .process .step{ border-top-color:rgba(255,255,255,.2); }
  .process .step + .step{ border-left-color:rgba(255,255,255,.16); }
  .process .step--lab{ border-top-color:var(--accent-light); }
  .process .step-num{ color:var(--accent-light); }
  .process .step h3{ color:var(--cream); }
  .process .step p{ color:rgba(255,255,255,.7); }


  /* ховер шагов на тёмном фоне */
  .process .step:hover{ background:rgba(255,255,255,.05); }
  .process .step::before{ background:var(--accent-light); }
  .process .step:hover .step-num{ color:#fff; }
  .process .step::after{ color:var(--accent-light); }

  /* ---------- блок со странами: симметричный воздух ---------- */
  /* Было: нижний отступ колонки плюс большой margin у .continents,
     из-за чего снизу зияло, а сверху нет. Нижний убран, расстояние
     до нижней линии задаёт теперь только .continents. */
  .region{ padding-bottom:0; }
  .continents{ margin-top:clamp(28px,3vw,42px); }

  /* ---------- шапка блока про RAMBAM group ---------- */
  /* Колонки ровно по половине с увеличенным зазором: заголовок
     перестаёт теснить сам себя, а текст справа не растягивается. */
  .global-head{ gap:clamp(32px,6vw,96px); align-items:start; }
  .global-head h2{ font-size:clamp(30px,3.6vw,46px); max-width:16ch; }
  .global-head h2 .hl{ color:var(--accent); }
  .global-head p{ max-width:44ch; }
  @media (max-width:1000px){
    .global-head h2{ max-width:none; }
  }


  /* ---------- шаги: шире контейнер ---------- */
  /* Колонок стало четыре, но текста в них больше, чем было в пяти:
     в 1240px строки рвутся по три слова. Секцию расширяем до 1440px,
     заголовок и решётка едут вместе, внутри секции всё выровнено. */
  .process .wrap{ max-width:1440px; }


  /* ============================================================
     .why--light — тот же блок .why, но на светлом фоне
     Только /clinical-trials (The regulatory route, handled).
     Тёмный вариант на главной не затронут.
     ============================================================ */
  .why--light{ background:var(--paper); color:var(--bark); }
  .why--light h2,
  .why--light .section-head h2{ color:var(--navy); }
  .why--light .why-sub{ color:var(--muted); }
  .why--light .bullets li{ border-color:rgba(0,24,66,.14); color:var(--bark); }
  .why--light .bullets li:last-child{ border-bottom-color:rgba(0,24,66,.14); }
  .why--light .bullets strong{ color:var(--navy); }
  .why--light .bullets.arrows li::before{ color:var(--accent); }
  .why--light .bullets.arrows li:hover::before{ color:var(--navy); }
  .why--light .why-note{ color:var(--muted); }

  /* секция, скрытая атрибутом hidden, не должна всплывать
     из-за display у .section */
  [hidden]{ display:none !important; }

  /* ---------- одинаковая высота героев внутренних страниц ---------- */
  /* Высота зависела от длины текста: у Contact три строки интро,
     у Clinical trials пять, и секции получались разной высоты.
     Задаём общий минимум и центрируем содержимое по вертикали —
     теперь все внутренние герои одного роста. */
  .lab-hero{
    display:grid; align-content:center;
    min-height:clamp(520px,62vh,680px);
  }
  @media (max-width:700px){
    .lab-hero{ min-height:clamp(420px,56vh,520px); }
  }

  /* ---------- строка переходов под кнопками героя ---------- */
  .hero-routes{
    display:flex; flex-wrap:wrap; gap:clamp(20px,2.6vw,36px);
    margin:clamp(6px,0.8vw,12px) 0 0;   /* у .hero .intro уже есть свои 34px снизу */
  }
  .hero-routes a{
    display:inline-flex; align-items:center; gap:8px;
    font-size:16px; font-weight:600; color:var(--accent);
    text-decoration:none;
  }
  .hero-routes a::after{
    content:"\2197"; font-size:.9em;
    transition:transform .25s ease;
  }
  .hero-routes a:hover{ color:var(--navy); }
  .hero-routes a:hover::after{ transform:translate(2px,-2px); }

  /* подзаголовок героя: синий спорил со ссылками ниже,
     которые тоже акцентные. Переводим в основной цвет текста. */
  .hero .sub{ color:var(--bark); }

  /* ---------- Our team: деление на две группы ---------- */
  .team-group{
    margin:clamp(18px,2vw,26px) 0 clamp(10px,1.2vw,14px);
    padding:0; border:0;
  }
  /* линия только МЕЖДУ группами: над первой её быть не должно,
     там уже есть шапка секции */
  .team-group:not(:first-of-type){
    margin-top:clamp(34px,4vw,52px);
    padding-top:clamp(22px,2.4vw,32px);
    border-top:1px solid rgba(0,24,66,.14);
  }
  .team-group:first-of-type{ margin-top:0; }
  .team-group-title{
    margin:0; font-family:var(--display); font-weight:600;
    font-size:12px; letter-spacing:.14em; text-transform:uppercase;
    color:var(--accent);
  }


  /* ============================================================
     ГЕРОЙ ГЛАВНОЙ: живая картинка вместо статичного фото
     ------------------------------------------------------------
     Правая половина .hero. Исходник разрезан на два слоя —
     размытый фон (hero-bg.webp) и вырезанная клетка с мягкой
     альфа-маской (hero-cell.webp). Слои едут с разной скоростью,
     поэтому появляется глубина, а не сдвиг плоской картинки.
     Движение и частицы — в app.js, блок «Живой герой».

     Класс .ph снят намеренно: заглушка больше не нужна, и логика
     удаления битых картинок из app.js сюда не лезет.
     ============================================================ */
  .dg-media{
    position:relative;
    overflow:hidden;
    display:block;
    background:var(--navy, #001842);   /* видно, пока грузятся слои */
    border-left:1px solid rgba(0,24,66,.12);
  }

  /* кадр держит исходную пропорцию 1672×941, поэтому вырезанная
     клетка всегда стоит ровно на своём месте поверх фона */
  .dg-media__frame{
    position:absolute;
    top:50%; left:50%;
    width:max(100%, 177.7vh);
    aspect-ratio:1672 / 941;
    transform:translate(-50%,-50%);
    will-change:transform;
  }
  .dg-media__layer{
    position:absolute;
    display:block;
    backface-visibility:hidden;
    will-change:transform;
  }
  .dg-media__bg{
    top:0; left:0; width:100%; height:auto;
    transform:scale(1.07);
  }
  .dg-media__cell{                  /* кроп (695,0)–(1635,935) оригинала */
    left:41.567%; top:0;
    width:56.22%; height:auto;
    transform-origin:50% 49%;
  }

  .dg-media__glow{
    position:absolute;
    left:41.5%; top:-1%;
    width:56%; aspect-ratio:1/1;
    background:radial-gradient(circle at 50% 48%,
      rgba(130,210,245,.26) 0%,
      rgba(70,150,205,.12) 32%,
      rgba(0,24,66,0) 62%);
    mix-blend-mode:screen;
    pointer-events:none;
    animation:dg-breathe 13s ease-in-out infinite;
  }
  @keyframes dg-breathe{
    0%,100%{ opacity:.55; transform:scale(1); }
    50%    { opacity:1;   transform:scale(1.05); }
  }

  .dg-media__dust{
    position:absolute; inset:0;
    width:100%; height:100%;
    pointer-events:none;
  }

  /* лёгкая виньетка: уводит края в navy, центр оставляет чистым */
  .dg-media__grade{
    position:absolute; inset:0;
    pointer-events:none;
    background:radial-gradient(120% 100% at 50% 45%,
      rgba(0,24,66,0) 42%,
      rgba(0,24,66,.30) 82%,
      rgba(0,20,56,.55) 100%);
  }

  @media (max-width:1000px){
    .dg-media{ border-left:0; }
  }

  @media (prefers-reduced-motion: reduce){
    .dg-media__glow{ animation:none; opacity:.8; }
  }

  /* ============================================================
     ГЕРОЙ ГЛАВНОЙ: картинка на всю секцию
     ------------------------------------------------------------
     Слои уходят из грида в absolute и накрывают всю .hero,
     текстовая колонка ложится поверх и становится белой.
     Размытие запечено в самих webp, а не в filter: blur() —
     слои двигаются каждый кадр, и CSS-фильтр пересчитывался бы
     на каждом из них.
     ============================================================ */
  .hero--immersive{
    position:relative;
    isolation:isolate;
    min-height:clamp(560px,86vh,900px);
    align-items:stretch;
    background:var(--navy-deep);
    border-bottom:0;
  }
  .hero--immersive .dg-media{
    position:absolute; inset:0;
    z-index:0;
    height:auto; min-height:0;
    border-left:0;
  }
  .hero--immersive .hero-copy{
    position:relative;
    z-index:2;
    justify-content:center;
  }

  /* затемнение: плотное слева под текстом, прозрачное над клеткой */
  .hero--immersive .dg-media__grade{
    background:
      linear-gradient(100deg,
        rgba(0,14,40,.72)  0%,
        rgba(0,16,46,.52) 32%,
        rgba(0,20,56,.18) 60%,
        rgba(0,20,56,.06) 100%),
      radial-gradient(120% 105% at 70% 48%,
        rgba(0,24,66,0)   38%,
        rgba(0,20,56,.20) 82%,
        rgba(0,14,40,.50) 100%);
  }
  .hero--immersive .dg-media__glow{
    background:radial-gradient(circle at 50% 48%,
      rgba(140,215,250,.30) 0%,
      rgba(70,150,205,.14) 32%,
      rgba(0,24,66,0) 62%);
  }

  /* текст на тёмном */
  .hero--immersive h1{ color:#fff; }
  .hero--immersive .sub{ color:rgba(255,255,255,.92); }
  .hero--immersive .intro{ color:rgba(226,236,250,.76); }
  .hero--immersive .hero-routes a{ color:#fff; }
  .hero--immersive .hero-routes a:hover{ color:var(--accent-light); }
  .hero--immersive :focus-visible{ outline-color:var(--accent-light); }

  @media (max-width:1000px){
    .hero--immersive{ min-height:clamp(500px,78vh,760px); }
    .hero--immersive .hero-copy{ padding-block:clamp(64px,12vw,96px); }
    /* текст идёт во всю ширину, поэтому затемняем снизу вверх */
    .hero--immersive .dg-media__grade{
      background:linear-gradient(to bottom,
        rgba(0,14,40,.40)  0%,
        rgba(0,16,46,.70) 40%,
        rgba(0,14,40,.90) 100%);
    }
  }

  /* тонкое зерно поверх героя: тёмно-синие градиенты на больших
     экранах уходят в полосы, зерно их разбивает. Общее зерно
     страницы идёт на multiply и на тёмном почти не видно. */
  .hero--immersive::after{
    content:""; position:absolute; inset:0; z-index:1;
    pointer-events:none; opacity:.05; mix-blend-mode:overlay;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='hn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23hn)'/%3E%3C/svg%3E");
  }

  /* ============================================================
     ВНУТРЕННИЕ СТРАНИЦЫ: графика вместо фото в герое
     ------------------------------------------------------------
     Слот с картинкой 2:1 убран из разметки, вместо него одна
     иллюстрация на страницу (нейрон, вирус, клетка, антитело)
     в двух углах. Вторая копия отзеркалена и повёрнута, иначе
     два одинаковых объекта по диагонали читаются как дубль.
     Картинки — webp с альфа-каналом, ложатся на светлый фон
     без обтравки и без подложки.
     ============================================================ */
  .lab-hero{
    position:relative;
    overflow:hidden;
    isolation:isolate;
    /* герой во весь экран под шапкой.
       79px — высота .site-header, она фиксированная на всех ширинах */
    min-height:calc(100svh - 79px);
  }
  .lab-hero .wrap{ position:relative; z-index:2; }

  .lab-hero__art{
    position:absolute;
    aspect-ratio:1/1;
    pointer-events:none;
    z-index:1;
  }
  .lab-hero__art img{ width:100%; height:100%; object-fit:contain; display:block; }

  /* графика не растёт на широких мониторах: при vw на 2К она
     заезжала на заголовок, поэтому потолок в пикселях.
     Сдвиги тоже в пикселях: проценты считаются от секции,
     и на 2К графика уезжала в угол и терялась */
  .lab-hero__art--tr{ width:min(520px,38vw); top:-110px; right:-80px; }
  .lab-hero__art--bl{ width:min(440px,32vw); bottom:-120px; left:-90px; }

  /* зеркало и поворот висят на img, а не на обёртке:
     обёртка занята анимацией, и transform бы перетёрся */
  .lab-hero__art--bl img{ transform:scaleX(-1) rotate(12deg); }

  /* --flip: углы меняются местами (сверху слева и снизу справа).
     Для вируса и антитела, у них масса смещена вправо,
     и в правом верхнем углу они наезжали на заголовок */
  .lab-hero--flip .lab-hero__art--tr{ right:auto; left:-80px; }
  .lab-hero--flip .lab-hero__art--bl{ left:auto; right:-90px; }
  .lab-hero--flip .lab-hero__art--tr img{ transform:scaleX(-1); }
  .lab-hero--flip .lab-hero__art--bl img{ transform:rotate(-12deg); }

  /* на узких экранах текст идёт во всю ширину, поэтому графика
     уменьшается и сильнее уходит за края */
  @media (max-width:900px){
    .lab-hero__art--tr{ width:48vw; top:-40px; right:-70px; }
    .lab-hero__art--bl{ width:40vw; bottom:-40px; left:-60px; }
    .lab-hero--flip .lab-hero__art--tr{ right:auto; left:-70px; }
    .lab-hero--flip .lab-hero__art--bl{ left:auto; right:-60px; }
  }

  /* ------------------------------------------------------------
     Плавание графики
     ------------------------------------------------------------
     Две независимые анимации на одной обёртке: дрейф (translate)
     и покачивание (rotate). Длительности не кратны друг другу,
     поэтому движение не повторяется в одном и том же ритме.
     Свойства translate и rotate отдельные, они не трогают
     transform на img и складываются с ним.
     Вторая копия плывёт в другую сторону и с другой фазой,
     чтобы пара не двигалась синхронно, как одна картинка. */
  @keyframes dg-float-drift{
    0%   { translate:0 0; }
    25%  { translate:10px -14px; }
    50%  { translate:-6px -22px; }
    75%  { translate:-12px -8px; }
    100% { translate:0 0; }
  }
  @keyframes dg-float-sway{
    0%   { rotate:-2.5deg; scale:1; }
    100% { rotate:2.5deg;  scale:1.03; }
  }

  .lab-hero__art{
    will-change:translate, rotate;
    animation:
      dg-float-drift 17s ease-in-out infinite,
      dg-float-sway 11s ease-in-out infinite alternate;
  }
  .lab-hero__art--bl{
    animation-duration:21s, 13s;
    animation-delay:-7s, -5s;
    animation-direction:reverse, alternate-reverse;
  }

  @media (prefers-reduced-motion: reduce){
    .lab-hero__art{ animation:none; }
  }

  /* ============================================================
     RAMBAM GROUP: новая раскладка карточек компаний
     ------------------------------------------------------------
     Ссылка «More about Rambam Group» переехала под абзац справа,
     отдельная строка внизу секции и её линия убраны. Название
     компании больше не ссылка и без подчёркивания, страна стоит
     в скобках рядом. Переход на сайт компании — отдельная ссылка
     под ролью, со стрелкой ↗ как в списках сайта.
     Нижний отступ секции уменьшен: после нижней линии было
     слишком много пустоты.
     ============================================================ */
  .global{ padding-bottom:clamp(56px,6vw,88px); }

  .global-intro p{ margin:0; color:var(--muted); font-size:17px; max-width:44ch; }
  .global-more{
    display:inline-block; margin-top:18px;
    font-size:12px; font-weight:500; letter-spacing:.12em; text-transform:uppercase;
    color:var(--accent); text-decoration:underline; text-underline-offset:4px;
    text-decoration-thickness:1px;
  }
  .global-more:hover{ color:var(--navy); }

  .regions{ border-bottom:1px solid rgba(0,24,66,.2); }
  .region{
    padding-bottom:clamp(28px,3vw,42px);
    display:flex; flex-direction:column; align-items:flex-start;
  }
  .region h3{ margin-bottom:16px; }
  .region .region-place{
    font-family:var(--body); font-size:16px; font-weight:400; letter-spacing:0;
    color:var(--ink); white-space:nowrap;
  }
  .region .role{ margin-bottom:18px; }

  /* ссылка на сайт компании: стрелка двигается по ховеру,
     как у .bullets.arrows */
  .region-link{
    margin-top:auto; display:inline-flex; align-items:baseline; gap:6px;
    font-size:15px; color:var(--accent); text-decoration:none;
  }
  .region-link::after{
    content:"\2197"; font-size:14px; line-height:1;
    transition:transform .35s cubic-bezier(.22,.61,.36,1);
  }
  .region-link:hover{ color:var(--navy); }
  .region-link:hover::after{ transform:translate(2px,-2px); }

  /* метка у Diagenta: точка вместо стрелки, без ссылки */
  .region-here{
    margin-top:auto; display:inline-flex; align-items:center; gap:8px;
    font-size:15px; color:var(--muted);
  }
  .region-here::before{
    content:""; width:7px; height:7px; border-radius:50%;
    background:var(--accent); box-shadow:0 0 0 4px rgba(11,75,192,.14);
  }

  @media (max-width:900px){
    .regions{ border-bottom:0; }
  }

  /* ------------------------------------------------------------
     Иллюстрация на белом фоне в блоке .why (regulatory)
     ------------------------------------------------------------
     Слот шире, чем картинка, и cover резал её сверху и снизу:
     на срезе была видна обрубленная тень и отражение. Теперь
     картинка вписывается целиком, а края самого файла
     растушёваны в чистый белый, поэтому граница кадра на белой
     секции не читается. */
  .why-media--contain img{ object-fit:contain; }
  @media (max-width:900px){
    /* на мобильном слот низкий, картинка в нём мельчила:
       делаем его квадратным */
    .why-media.why-media--contain{ height:auto; aspect-ratio:1/1; }
  }

  /* ------------------------------------------------------------
     Выезд графики героя из углов
     ------------------------------------------------------------
     Раньше картинка просто появлялась, когда догружалась, отсюда
     микрозадержка. Теперь она загружена заранее (preload в head),
     спрятана за углом и выезжает, когда app.js ставит .is-in.
     Выезд идёт через transform, а плавание через translate и
     rotate, поэтому одно другому не мешает.
     Прячем только при .js на html: без скрипта графика видна. */
  .js .lab-hero__art{
    opacity:0;
    transform:translate(var(--from-x), var(--from-y)) scale(.9);
    transition:
      transform 1.6s cubic-bezier(.16,1,.3,1),
      opacity 1s ease;
  }
  .js .lab-hero__art--tr{ --from-x:22%;  --from-y:-22%; }
  .js .lab-hero__art--bl{ --from-x:-22%; --from-y:22%; transition-delay:.15s; }
  .js .lab-hero--flip .lab-hero__art--tr{ --from-x:-22%; }
  .js .lab-hero--flip .lab-hero__art--bl{ --from-x:22%; }
  .js .lab-hero__art.is-in{ opacity:1; transform:none; }

  @media (prefers-reduced-motion: reduce){
    .js .lab-hero__art{ opacity:1; transform:none; transition:none; }
  }
