/* IM Advisories - theme "ima" - generated for Lett System */
/* ============ HEADER ============ */
  ->  <head> of the CMS template (once)
       3. Everything between  LÉTT HEADER PARTIAL START / END  ->  the header
          region of the template (above the content block)
       4. <script id="ima-head-js">  ->  just before </body> (once)

     THE MENU (plain HTML — Létt frontend is HTML+CSS+JS):
       Menu items are ordinary <a> links. The JS reads whatever links exist
       at runtime — number/order of items is not hard-coded, so you can add,
       remove or reorder items freely in the CMS.
       Desktop item:  <a data-nav  href="{url}">{title}</a>
       Mobile  item:  <a data-mnav href="{url}">{title}</a>
       Home-page anchors use absolute URLs (…/#id) so they also work from
       subpages; subpages (Projects, News) use their own path.
======================================================================== -->

<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Raleway:wght@200;400;500;600;700&family=Source+Serif+4:ital,wght@0,400;0,600;1,400&display=swap" rel="stylesheet">

<style id="ima-head-css">
  /* --- reset scoped to what the header needs --- */
  #imaNav, #imaNav *, #imaMobileMenu, #imaMobileMenu * { box-sizing: border-box; }
  #imaNav a, #imaMobileMenu a { text-decoration: none; }

  #imaNav {
    position: fixed; top: 24px; left: 36px; right: 0; z-index: 200;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 22px; background: transparent;
    transition: background .4s ease, box-shadow .4s ease, padding .3s ease;
    font-family: 'Raleway', system-ui, sans-serif;
  }
  #imaNav .ima-logo { position: absolute; top: 18px; display: flex; align-items: center; z-index: 2; }
  #imaNav .ima-logo img {
    width: 120px; height: 120px; border-radius: 7px; object-fit: cover;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4); display: block;
  }
#imaNavPill {
    position: relative; display: flex; align-items: center; gap: 1px; flex: 0 1 auto;
    margin: 0 auto;            /* <- центрирует пилюлю */
    padding: 4px;
    background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28); border-radius: 9999px;
    backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
  }
  #imaNavThumb {
    position: absolute; top: 6px; bottom: 6px; left: 6px; width: 0; z-index: 0; pointer-events: none;
    background: rgba(255,255,255,0.26); border-radius: 9999px;
    transition: left .5s cubic-bezier(.16,1,.3,1), width .5s cubic-bezier(.16,1,.3,1);
  }
  #imaNavPill a[data-nav] {
    position: relative; z-index: 1; color: rgba(255,255,255,0.82);
    padding: 6px 11px; border-radius: 9999px; font-size: 12.5px; font-weight: 500;
    white-space: nowrap; transition: color .25s;
  }
  #imaNavPill a[data-nav]:hover { color: #fff; }
  #imaBurger {
    display: none; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; cursor: pointer;
    align-items: center; justify-content: center; color: #fff; border-radius: 12px;
    background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  #imaLangs {
    display: flex; align-items: center; gap: 4px; margin-right: 14px; flex: 0 0 auto;
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em; border-radius: 9999px; padding: 4px 6px;
    transition: background .4s ease, box-shadow .4s ease;
  }
  #imaLangs a { color: rgba(255,255,255,0.6); padding: 5px 8px; }
  #imaLangs a.is-active { color: #fff; background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.3); border-radius: 9999px; padding: 5px 11px; }

  #imaMobileMenu {
    position: fixed; inset: 0; z-index: 250; display: none;
    flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    background: rgba(10,13,18,0.97); font-family: 'Raleway', system-ui, sans-serif;
  }
  #imaMobileMenu a[data-mnav] { font-weight: 500; font-size: 22px; color: #fff; }
  #imaMobileClose {
    position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; padding: 0; cursor: pointer;
    display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 12px;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  }
  #imaMobileMenu .ima-mlangs { display: flex; gap: 14px; margin-top: 14px; font-size: 14px; font-weight: 600; }
  #imaMobileMenu .ima-mlangs a { color: rgba(255,255,255,0.55); padding: 7px 10px; }
  #imaMobileMenu .ima-mlangs a.is-active { color: #fff; background: rgba(255,255,255,0.22); border: 1px solid rgba(255,255,255,0.3); border-radius: 9999px; padding: 7px 16px; }

  @media (max-width: 900px) {
    #imaNavPill { display: none; }
    #imaBurger { display: flex; margin-left: auto; }
    #imaNav .ima-logo { left: 0; }
    #imaNav .ima-logo img { width: 64px; height: 64px; }
    
  }

  @media (max-width: 560px) { 
    #imaLangs { display: none; }
    #imaNav .ima-logo { left: 0; }
	#imaNav .ima-logo img { width: 64px; height: 64px; }
    }
  
/* ============ HOME (concept base css) ============ */

  html, body { margin: 0; padding: 0; background: #ffffff; }
  html { scroll-behavior: smooth; }
  section[id], footer[id] { scroll-margin-top: 84px; }
  * { box-sizing: border-box; }
  a { color: #0f3160; }
  a:hover { color: #0d1f38; }
  @keyframes heroReveal { 0%{opacity:0;transform:translateY(16px)} 100%{opacity:1;transform:translateY(0)} }
  @keyframes heroFadeUp { 0%{opacity:0;transform:translateY(14px)} 100%{opacity:1;transform:translateY(0)} }
  @keyframes heroZoom { 0%{transform:scale(1.045)} 100%{transform:scale(1)} }
  @keyframes logoIn { 0%{opacity:0;transform:scale(0.82)} 60%{opacity:1} 100%{opacity:1;transform:scale(1)} }
  @keyframes bob { 0%,100%{transform:translateY(0);opacity:0.65} 50%{transform:translateY(7px);opacity:1} }
  @keyframes shine { 0%{left:-70%} 55%{left:120%} 100%{left:120%} }
  @keyframes nodePulse { 0%{transform:scale(0.5);opacity:0.8} 65%{transform:scale(2.1);opacity:0} 100%{transform:scale(2.1);opacity:0} }
  @keyframes twinkle { 0%,100%{opacity:0.55} 50%{opacity:1} }
  @keyframes hqPulse { 0%,100%{opacity:0.25;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.25)} }
  image-slot { display:block; width:100%; height:100%; }
  #mapDots circle { animation: twinkle 3.2s ease-in-out infinite; }
  @media (max-width: 1080px) { #expertise > div { grid-template-columns: 1fr !important; gap: 44px !important; } }
  #team [data-team-grid] > div { min-width: 0; }
  #team [data-team-grid] [data-card-actions] { flex-wrap: wrap; }
  @media (max-width: 1180px) { #team [data-team-grid] { grid-template-columns: repeat(2, 1fr) !important; } }
  @media (max-width: 760px) { #team [data-team-grid] { grid-template-columns: 1fr !important; } }
  #navBurger { display: none; }
  @media (max-width: 1080px) {
    #about [style*="repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
    #stats > div { grid-template-columns: repeat(2,1fr) !important; row-gap: 40px !important; }
    #stats > div > div { border-left: none !important; padding: 0 !important; }
    #projects [data-proj-top] { grid-template-columns: 1fr !important; gap: 40px !important; }
  }
  @media (max-width: 900px) {
    #navPill { display: none !important; }
    #navBurger { display: flex !important; }
    [style*="grid-template-columns:1.15fr 1fr"] { grid-template-columns: 1fr !important; gap: 24px !important; }
    #news a[data-reveal] { grid-template-columns: 1fr !important; }
    #news a[data-reveal] > div:first-child { min-height: 220px; }
    #projects [data-proj-cards] { grid-template-columns: 1fr !important; }
    footer > div:first-of-type { grid-template-columns: 1fr !important; gap: 36px !important; }
  }
  @media (max-width: 860px) {
    #history [data-milestone] { grid-template-columns: 56px 1fr !important; column-gap: 18px !important; padding: 40px 0 !important; }
    #history [data-milestone] [data-mcell] { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin-top: 12px; justify-content: center; }
    #history [data-milestone] [data-myear] { grid-column: 2 !important; grid-row: 1; text-align: left !important; font-size: 54px !important; }
    #history [data-milestone] > div:not([data-mcell]):not([data-myear]) { grid-column: 2; grid-row: 2; text-align: left !important; }
    #history [data-milestone] h3 { font-size: 22px !important; }
    #data [data-reveal] > div { grid-template-columns: 40px 1fr 84px !important; gap: 14px !important; }
    #data [data-reveal] > div > span:nth-child(3) { display: none !important; }
    #expertise [style*="92px 1fr"] { grid-template-columns: 52px 1fr !important; gap: 18px !important; }
    #expertise [style*="92px 1fr"] > span { font-size: 32px !important; }
  }
  @media (max-width: 760px) {
    section, footer { padding-left: 20px !important; padding-right: 20px !important; }
    h2 { font-size: 32px !important; }
    #about [style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
    #data [data-reveal][style*="border-radius:22px"] { padding: 22px 16px 8px !important; }
    #news a[data-reveal] > div:last-child, #news a[data-reveal] > div:nth-child(2) { padding: 26px 22px !important; }
    #news a[data-reveal] span[style*="font-size:36px"] { font-size: 25px !important; }
  }
  @media (max-width: 560px) {
    #navLangs { display: none !important; }
    #stats > div { grid-template-columns: 1fr !important; }
  }


/* ============================================================
   IMA COMPONENTS - CMS-driven cards (history/values/stats/
   expertise/projects/team/news) + footer + inner pages
============================================================ */

/* ---------- tokens ---------- */
:root{
  --ima-dark:#0a0d12; --ima-ink:#0d1f38; --ima-mut:#6b7686; --ima-soft:#9aa4b2;
  --ima-lt:#eef2f8; --ima-lt55:rgba(238,242,248,.55); --ima-lt64:rgba(238,242,248,.64);
  --ima-blue:#3A659F; --ima-acc:rgba(148,190,255,.85); --ima-orange:#FF4E00;
  --f-serif:'Lora',serif; --f-sans:'Raleway',system-ui,sans-serif;
  --f-text:'Source Serif 4',Cambria,Georgia,serif;
}
html{scroll-behavior:smooth}
.ima-anchor{position:relative;top:-90px;display:block;height:0}

/* ---------- HISTORY milestones (alternating) ---------- */
.ima-ms{position:relative;display:grid;grid-template-columns:1fr 230px 1fr;align-items:center;
  padding:56px 0;opacity:.08;transform:translateY(30px);
  transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1);}
.ima-ms:first-child{padding:70px 0 56px}
.ima-ms-text{grid-column:1;grid-row:1;text-align:right}
.ima-ms-cell{grid-column:2;grid-row:1;position:relative;display:flex;justify-content:center;align-items:center;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.ima-ms-year{grid-column:3;grid-row:1;font-family:var(--f-serif);font-weight:500;font-size:96px;line-height:1;
  color:transparent;-webkit-text-stroke:1px rgba(255,255,255,.28);transition:color .9s ease;text-align:left}
.ima-ms:nth-child(even) .ima-ms-text{grid-column:3;text-align:left}
.ima-ms:nth-child(even) .ima-ms-year{grid-column:1;text-align:right}
.ima-ms-label{font-family:var(--f-sans);font-weight:600;font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:var(--ima-acc);margin-bottom:10px}
.ima-ms-title{font-family:var(--f-serif);font-weight:500;font-size:28px;color:var(--ima-lt);margin:0 0 10px}
.ima-ms-p{font-family:var(--f-text);font-size:14.5px;line-height:1.62;color:var(--ima-lt55);margin:0}
.ima-ms-dot{position:relative;width:20px;height:20px;pointer-events:auto;transition:transform .6s cubic-bezier(.22,.61,.36,1)}
.ima-ms-dot span{position:absolute;border-radius:50%}
.ima-d1{inset:-4px;background:rgba(10,13,18,.92)}
.ima-d2{inset:-11px;background:radial-gradient(circle,rgba(170,208,255,.32) 0%,rgba(170,208,255,0) 70%);opacity:0;transition:opacity .8s ease}
.ima-d3{inset:0;border:1px solid rgba(210,232,255,.55);opacity:0}
.ima-d4{inset:0;border:1px solid rgba(222,238,255,.30);background:rgba(234,244,255,.05)}
.ima-d5{inset:6.5px;background:#EAF4FF;box-shadow:0 0 8px rgba(190,220,255,.65);opacity:.22;transform:scale(.7);transition:opacity .7s ease,transform .7s ease}
@media(max-width:860px){
  .ima-ms{grid-template-columns:56px 1fr;padding:36px 0}
  .ima-ms-cell{grid-column:1;grid-row:1 / span 2;align-items:flex-start;padding-top:14px}
  .ima-ms-year{grid-column:2;grid-row:1;text-align:left;font-size:56px}
  .ima-ms-text{grid-column:2;grid-row:2;text-align:left}
  .ima-ms:nth-child(even) .ima-ms-year{grid-column:2;text-align:left}
  .ima-ms:nth-child(even) .ima-ms-text{grid-column:2;text-align:left}
}

/* ---------- VALUES ---------- */
#about{counter-reset:imaval}
.ima-val:nth-child(1),
.ima-val:nth-child(2),
.ima-val:nth-child(3) { border-top: none; padding-top: 0; }
.ima-val{counter-increment:imaval;opacity:0;transform:translateY(24px);border-top:1px solid rgba(13,31,56,.18);padding:22px 0 34px}
.ima-val-num::before{content:counter(imaval,decimal-leading-zero)}
.ima-val-num{font-family:var(--f-serif);font-size:14px;color:var(--ima-soft);margin-bottom:14px}
.ima-val-h{font-family:var(--f-sans);font-weight:600;font-size:17px;color:var(--ima-ink);margin:0 0 8px}
.ima-val-p{font-family:var(--f-text);font-size:14.5px;line-height:1.6;color:var(--ima-mut);margin:0}

/* ---------- STATS ---------- */
.ima-stat{padding:6px 32px 6px 0}
.ima-stat-n{font-family:var(--f-serif);font-weight:500;font-size:52px;color:#fff;line-height:1}
.ima-stat-t{font-family:var(--f-text);font-size:14px;line-height:1.5;color:rgba(238,242,248,.65);margin-top:12px}

/* ---------- EXPERTISE ---------- */
#expertise .ima-exp-list{counter-reset:imaexp}
.ima-exp:first-child { border-top: none; padding-top: 0; }
.ima-exp{counter-increment:imaexp;opacity:0;transform:translateY(24px);display:grid;grid-template-columns:92px 1fr;gap:26px;align-items:start;border-top:1px solid rgba(13,31,56,.18);padding:26px 0}
.ima-exp-num::before{content:counter(imaexp,decimal-leading-zero)}
.ima-exp-num{font-family:var(--f-serif);font-weight:400;font-size:46px;color:var(--ima-blue);line-height:.9;display:block;margin-top:2px}
.ima-exp-h{font-family:var(--f-sans);font-weight:600;font-size:21px;color:var(--ima-ink);margin:0 0 6px}
.ima-exp-p{font-family:var(--f-text);font-size:14.5px;line-height:1.6;color:var(--ima-mut);margin:0}
@media(max-width:640px){.ima-exp{grid-template-columns:56px 1fr;gap:16px}.ima-exp-num{font-size:32px}}
@media (max-width:640px){
  /* на мобильном одна колонка — линия только над первым пунктом убрана */
  .ima-val:nth-child(2),
  .ima-val:nth-child(3){ border-top:1px solid rgba(13,31,56,.18); padding-top:22px; }
}

/* ---------- PROJECT CARDS (dark) ---------- */
.ima-proj{opacity:0;transform:translateY(24px);display:flex;flex-direction:column;background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);border-radius:22px;overflow:hidden;text-decoration:none;
  transition:transform .3s cubic-bezier(.22,.61,.36,1),border-color .3s ease}
.ima-proj:hover{transform:translateY(-6px)!important;border-color:rgba(148,190,255,.4)}
.ima-proj-img{height:210px;overflow:hidden}
.ima-proj-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.ima-proj:hover .ima-proj-img img{transform:scale(1.04)}
.ima-proj-body{display:flex;flex-direction:column;flex:1;padding:26px 28px 28px}
.ima-proj-meta{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:14px}
.ima-proj-tag{font-family:var(--f-sans);font-weight:600;font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--ima-acc)}
.ima-proj-date{font-family:var(--f-text);font-size:13px;color:rgba(238,242,248,.4);white-space:nowrap}
.ima-proj-h{font-family:var(--f-serif);font-weight:500;font-size:24px;color:var(--ima-lt);margin:0 0 10px;line-height:1.25}
.ima-proj-p{font-family:var(--f-text);font-size:14px;line-height:1.6;color:rgba(238,242,248,.5);margin:0 0 22px}
.ima-proj-cta{margin-top:auto;display:inline-flex;align-items:center;gap:8px;font-family:var(--f-sans);font-weight:600;font-size:13px;color:rgba(238,242,248,.85)}
.ima-proj-cta .ima-arr{color:var(--ima-acc)}

/* ---------- TEAM CARDS (light) ---------- */
.ima-teamw{opacity:0;transform:translateY(24px)}
.ima-team-card{display:flex;flex-direction:column;height:100%;background:#fff;border:1px solid #ECECEC;border-radius:22px;
  box-shadow:0 12px 40px rgba(0,0,0,.05);overflow:hidden;
  transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s cubic-bezier(.22,.61,.36,1)}
.ima-team-card:hover{transform:translateY(-6px);box-shadow:0 24px 60px rgba(0,0,0,.09)}
.ima-team-imgw{position:relative;height:340px;overflow:hidden}
.ima-team-img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block;transition:transform .4s ease}
.ima-team-card:hover .ima-team-img{transform:scale(1.04)}
.ima-team-body{display:flex;flex-direction:column;flex:1;padding:28px 30px}
.ima-team-name{font-family:var(--f-serif);font-weight:500;font-size:29px;color:var(--ima-ink);margin:0 0 12px}
.ima-team-role{font-family:var(--f-sans);font-weight:600;font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:#5f7391;margin-bottom:10px}
.ima-team-bio{font-family:var(--f-text);font-size:15px;line-height:1.7;color:var(--ima-mut);margin:0 0 26px}
.ima-team-actions{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.ima-team-btn{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-sans);font-weight:600;font-size:13.5px;color:var(--ima-ink);
  border:1px solid rgba(13,31,56,.25);border-radius:9999px;padding:11px 16px;white-space:nowrap;text-decoration:none;transition:background .3s ease}
.ima-team-btn:hover{background:#f0f2f5}
.ima-team-mail{font-size:20px;color:var(--ima-ink);text-decoration:none;opacity:.75}
.ima-team-mail:hover{opacity:1}

/* ---------- NEWS CARDS (horizontal, light) ---------- */
.ima-news{opacity:0;transform:translateY(24px);display:grid;grid-template-columns:48% 52%;min-height:340px;background:#fff;
  border:1px solid #ECECEC;border-radius:22px;overflow:hidden;text-decoration:none;box-shadow:0 12px 40px rgba(0,0,0,.05);
  transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s cubic-bezier(.22,.61,.36,1)}
.ima-news:hover{transform:translateY(-6px)!important;box-shadow:0 24px 60px rgba(0,0,0,.09)}
.ima-news-imgw{overflow:hidden}
.ima-news-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s ease}
.ima-news:hover .ima-news-img{transform:scale(1.04)}
.ima-news-body{display:flex;flex-direction:column;padding:44px 48px}
.ima-news-meta{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:20px}
.ima-news-date{font-family:var(--f-text);font-size:13px;color:var(--ima-soft)}
.ima-news-h{display:block;font-family:var(--f-serif);font-weight:500;font-size:32px;line-height:1.15;color:var(--ima-ink);margin-bottom:16px}
.ima-news-p{display:block;font-family:var(--f-text);font-size:16px;line-height:1.7;color:var(--ima-mut)}
.ima-news-cta{margin-top:auto;padding-top:24px;display:inline-flex;align-items:center;gap:8px;font-family:var(--f-sans);font-weight:600;font-size:14px;color:#0f3160}
@media(max-width:820px){.ima-news{grid-template-columns:1fr;min-height:0}.ima-news-imgw{height:220px}.ima-news-body{padding:28px 26px}.ima-news-h{font-size:24px}}

/* ---------- FOOTER ---------- */
#imaFooter{background:var(--ima-dark);padding:64px 60px 40px;font-family:var(--f-sans)}
#imaFooter,#imaFooter *{box-sizing:border-box}
#imaFooter a{text-decoration:none}
#imaFooter a:hover{color:#fff!important}
.ima-foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:40px;max-width:1200px;margin:0 auto;padding-bottom:56px}
.ima-foot-logo{width:72px;height:72px;border-radius:9px;object-fit:cover;box-shadow:0 6px 18px rgba(0,0,0,.4);display:block}
.ima-foot-about{font-family:var(--f-text);font-size:15.5px;line-height:1.62;color:var(--ima-lt64);max-width:340px;margin-top:20px}
.ima-foot-cap{font-family:var(--f-sans);font-weight:600;font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:rgba(238,242,248,.4);margin-bottom:16px}
.ima-foot-menu a{display:block;font-family:var(--f-text);font-size:15px;color:var(--ima-lt64);margin-bottom:10px}
.ima-foot-line{display:block;font-family:var(--f-text);font-size:15px;color:var(--ima-lt64);margin-bottom:10px}
.ima-foot-strong{color:var(--ima-lt)}
.ima-foot-bottom{max-width:1200px;margin:0 auto;padding-top:26px;border-top:1px solid rgba(255,255,255,.13);display:flex;justify-content:space-between;gap:12px;font-family:var(--f-text);font-size:13.5px;color:rgba(238,242,248,.4)}
@media(max-width:900px){#imaFooter{padding:52px 26px 36px}.ima-foot-grid{grid-template-columns:1fr;gap:36px}.ima-foot-bottom{flex-direction:column;gap:10px;text-align:center}}

/* ============================================================
   INNER PAGES - reskin of Lett system templates
============================================================ */
body{margin:0;background:#f4f5f7}
.ima-inner{padding-top:96px;min-height:60vh;background:#f4f5f7}
.categirys{max-width:1200px;margin:0 auto;padding:110px 24px 70px}
.categirys .categimg{font-family:var(--f-serif);font-weight:500;font-size:44px;color:var(--ima-ink);margin-bottom:8px}
.categirys .categimg .container,.categirys>.container{padding:0}
.categirys>.container>p,.categirys .cat-desc{font-family:var(--f-text);font-size:16px;color:var(--ima-mut);line-height:1.65}
.categ_short .row{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:34px}
@media(max-width:980px){.categ_short .row{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.categ_short .row{grid-template-columns:1fr}.categirys .categimg{font-size:32px}}

/* short card (light) - used on category/search/archive lists */
.shorstory{display:flex;flex-direction:column;background:#fff;border:1px solid #ECECEC;border-radius:18px;overflow:hidden;
  text-decoration:none;box-shadow:0 10px 30px rgba(0,0,0,.05);transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s ease}
.shorstory:hover{transform:translateY(-5px);box-shadow:0 20px 50px rgba(0,0,0,.09)}
.shorstory .imagesshort{height:200px;background-size:cover!important;background-position:center!important;position:relative}
.shorstory .dateshort{position:absolute;left:14px;bottom:12px;font-family:var(--f-sans);font-weight:600;font-size:11px;letter-spacing:.06em;
  color:#fff;background:rgba(10,13,18,.66);padding:6px 10px;border-radius:9999px;backdrop-filter:blur(6px)}
.shorstory .linkshort{display:none}
.shorstory .shorttext{padding:20px 22px 24px}
.shorstory .shorttext h2{font-family:var(--f-serif);font-weight:500;font-size:20px;line-height:1.3;color:var(--ima-ink);margin:0 0 8px}
.shorstory .shorttext p{font-family:var(--f-text);font-size:14px;line-height:1.6;color:var(--ima-mut);margin:0}

/* full story */
.glavcontrol{max-width:1200px;margin:0 auto;padding:0 24px;font-family:var(--f-sans);font-size:12.5px;color:var(--ima-soft)}
.fulls{max-width:860px;margin:0 auto;padding:28px 24px 80px;font-family:var(--f-text);font-size:17px;line-height:1.75;color:#242b35}
.fulls h2,.fulls h3{font-family:var(--f-serif);color:var(--ima-ink);line-height:1.25}
.fulls img{max-width:100%;height:auto;border-radius:14px}
.fulls a{color:var(--ima-blue)}

/* navigation / pagination */
.navigations{display:flex;align-items:center;justify-content:center;gap:14px;margin:44px 0 10px;font-family:var(--f-sans)}
.navigations .pages a,.navigations .pages span{display:inline-block;min-width:36px;text-align:center;padding:8px 10px;margin:0 3px;border-radius:10px;
  color:var(--ima-ink);text-decoration:none;border:1px solid rgba(13,31,56,.15)}
.navigations .pages span,.navigations .pages a:hover{background:var(--ima-ink);color:#fff}
.previs,.nextis{cursor:pointer;color:var(--ima-ink)}

/* info / offline / notfound */
.infos{max-width:760px;margin:0 auto;padding:130px 24px 60px;text-align:center}
.infos .inftitel{font-family:var(--f-serif);font-size:34px;color:var(--ima-ink);margin-bottom:14px}
.infos .inftext{font-family:var(--f-text);font-size:16px;color:var(--ima-mut)}
.notfond{text-align:center;padding:40px 0}
.notfond img{max-width:280px;opacity:.8}

/* generic content wrapper for non-main pages */
.contentcenters{display:block}

/* ============================================================
   IMA RESPONSIVE HARDENING
   Overrides for the concept's inline (desktop-first) layout.
   Inline styles beat normal CSS, so these use !important and
   [style*=...] attribute selectors to hit exact inline rules.
   ============================================================ */

/* --- global safety: kill horizontal overflow from decorative
       absolute elements (animated sheen: left:-70%;width:65%) --- */
html, body { max-width: 100%; overflow-x: hidden; }

/* ---------- TABLET & BELOW (<= 900px) ---------- */
@media (max-width: 900px) {
  /* section horizontal padding */
  #history, #about, #stats, #expertise,
  #projects, #team, #news, #data {
    padding-left: 34px !important;
    padding-right: 34px !important;
  }
  /* stats: 4 -> 2 columns */
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 34px 24px !important;
  }
  /* values / any 3-col -> 2 columns */
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 34px 28px !important;
  }
  /* two-column text/visual splits -> single column */
  [style*="grid-template-columns:1.15fr 1fr"],
  [style*="grid-template-columns:380px 1fr"],
  [style*="grid-template-columns:420px 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* ---------- PHONE (<= 600px) ---------- */
@media (max-width: 600px) {
  /* tighter section padding + shorter vertical rhythm */
  #history  { padding: 72px 20px 84px !important; }
  #about    { padding: 64px 20px 56px !important; }
  #stats    { padding: 52px 20px !important; }
  #expertise{ padding: 60px 20px !important; }
  #projects { padding: 64px 20px 72px !important; }
  #team     { padding: 60px 20px !important; }
  #news     { padding: 60px 20px !important; }
  #data     { padding: 60px 20px !important; }

  /* all multi-col grids collapse to a single column */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  /* (data table handled in the <=900 block below, using the exact
     concept selector so source-order wins the !important tie) */

  /* cap oversized inline headings */
  [style*="font-size:48px"] { font-size: 30px !important; }
  [style*="font-size:46px"] { font-size: 29px !important; }
  [style*="font-size:44px"] { font-size: 28px !important; }
  [style*="font-size:42px"] { font-size: 27px !important; }
  [style*="font-size:40px"] { font-size: 26px !important; }
  [style*="font-size:36px"] { font-size: 25px !important; }

  /* long fixed max-width intros should be fluid */
  [style*="max-width:520px"],
  [style*="max-width:480px"] { max-width: 100% !important; }
}

/* ---------- SMALL PHONE (<= 380px) ---------- */
@media (max-width: 380px) {
  #history, #about, #stats, #expertise,
  #projects, #team, #news, #data {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  [style*="font-size:48px"] { font-size: 27px !important; }
  [style*="font-size:46px"] { font-size: 26px !important; }
}

/* ============================================================
   IMA FIXES (client feedback round 1)
   1 history header alignment · 2 header underline levels
   3/5/6a stacked section intros · 6b data table fits, no scroll
   ============================================================ */

/* ---- 2) SECTION HEADER: number + label underlines on one level ----
   The concept baseline-aligned the number and label but their underlines
   ended a few px apart. Bottom-aligning the flex items (flex-end) lines
   the two underlines up while keeping the number sitting with the label
   exactly like the (untouched) "03 Projects" header. We deliberately do
   NOT touch the spans' own line-height / padding here. */
[style*="align-items:baseline"][style*="gap:22px"],
[style*="align-items: baseline"][style*="gap: 22px"] { align-items: flex-end !important; }

/* ---- 3/5/6a) SECTION INTRO: stack H2 over full-width text ----
   about / news / data intros used a 2-col grid (H2 | text). Stack them
   like the expertise section: heading on top, description full width.
   Both spacing forms covered (some pipelines reserialize inline styles). */
[style*="grid-template-columns:1.15fr 1fr"],
[style*="grid-template-columns: 1.15fr 1fr"] { display: block !important; }
[style*="grid-template-columns:1.15fr 1fr"] > h2,
[style*="grid-template-columns: 1.15fr 1fr"] > h2 { margin: 0 0 18px !important; }

/* ---- 6b) DATA TABLE: reflow to fit small screens with NO scrollbar ----
   Keeps every column (unlike the concept, which hid "Indicator").
   Rows are the direct <div> children of the white card (border-radius:22px).
   Each row -> Practice (top-left), Indicator (below it), Value (right).
   Card-scoped selector beats the concept's #data [data-reveal] > div rule. */
@media (max-width: 720px) {
  #data [data-reveal][style*="border-radius:22px"] > div,
  #data [data-reveal][style*="border-radius: 22px"] > div {
    grid-template-columns: 1fr auto !important;
    gap: 4px 14px !important;
    padding: 15px 6px !important;
    align-items: start !important;
    min-width: 0 !important;
  }
  /* No -> hidden (just a counter) */
  #data [data-reveal][style*="border-radius:22px"] > div > span:nth-child(1),
  #data [data-reveal][style*="border-radius: 22px"] > div > span:nth-child(1) { display: none !important; }
  /* Practice -> top-left */
  #data [data-reveal][style*="border-radius:22px"] > div > span:nth-child(2),
  #data [data-reveal][style*="border-radius: 22px"] > div > span:nth-child(2) {
    display: block !important; grid-column: 1 !important; grid-row: 1 !important; font-size: 15px !important; }
  /* Indicator -> under Practice (un-hides the concept's hidden column) */
  #data [data-reveal][style*="border-radius:22px"] > div > span:nth-child(3),
  #data [data-reveal][style*="border-radius: 22px"] > div > span:nth-child(3) {
    display: block !important; grid-column: 1 !important; grid-row: 2 !important;
    font-size: 13px !important; line-height: 1.4 !important; color: #6b7686 !important; }
  /* Value -> right, centred against the pair */
  #data [data-reveal][style*="border-radius:22px"] > div > span:nth-child(4),
  #data [data-reveal][style*="border-radius: 22px"] > div > span:nth-child(4) {
    grid-column: 2 !important; grid-row: 1 / span 2 !important;
    align-self: center !important; text-align: right !important; white-space: nowrap !important; }
  /* card padding tighter on phones */
  #data [data-reveal][style*="border-radius:22px"],
  #data [data-reveal][style*="border-radius: 22px"] { padding: 22px 18px 10px !important; }
}

/* ---- 1) HISTORY header: clear the timeline line + align with entries ----
   On <=860px the timeline runs down the far left (x~40). The header
   (eyebrow / title / subtitle) started at the section edge, so the line
   crossed it. Indent the header to line up with the milestone text. */
@media (max-width: 860px) {
  #history > div > [data-reveal] { padding-left: 74px !important; }
}
@media (max-width: 340px) {
  #history > div > [data-reveal] { padding-left: 62px !important; }
}

/* ---- HERO hint: mouse vs touch wording ----
   Desktop (hover-capable) keeps the original "Hover..." text unchanged.
   Touch devices see the swipe instruction instead. */
.ima-hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .ima-hint-mouse { display: none; }
  .ima-hint-touch { display: inline; }
}

/* ============================================================
   IMA FIXES (client feedback round 2 — live positions)
   1  values grid breathes + flows for any number of items
   3  team photo taller + cards slightly wider
   4  news photos alternate left / right (zig-zag) on desktop
   ============================================================ */

/* 1) VALUES — add row spacing and top-align so any count of items
      flows cleanly and nothing crowds/cuts as you add more */
#about [style*="grid-template-columns:repeat(3,1fr)"],
#about [style*="grid-template-columns: repeat(3, 1fr)"] {
  row-gap: 36px !important;
  align-items: start !important;
}

/* 3) TEAM — taller photo area, cards a touch wider (smaller gap) */
.ima-team-imgw { height: 420px !important; }
[data-team-grid] { gap: 28px !important; }

/* 4) NEWS — alternate the photo side (needs the news position's
      "Файл шаблона" set to tpl/newscard.tpl). Desktop only;
      below 820px the card already stacks image-over-text. */
@media (min-width: 821px) {
  .ima-news:nth-child(even) { grid-template-columns: 52% 48% !important; }
  .ima-news:nth-child(even) .ima-news-imgw { order: 2 !important; }
  .ima-news:nth-child(even) .ima-news-body { order: 1 !important; }
}

/* ============================================================
   IMA REDESIGN (round 3) — new hero + alternating blue/white
   ============================================================ */

/* ---------- HERO (split: copy left, 3D render right) ---------- */
.ima-hero-cta:hover { transform: translateY(-2px) !important; box-shadow: 0 20px 52px rgba(0,0,0,0.42) !important; }
.ima-hero-stats .ima-stat { padding: 4px 18px 4px 0; }
.ima-hero-stats .ima-stat-n { font-size: 38px; }
.ima-hero-stats .ima-stat-t { max-width: 108px; font-size: 12px; margin-top: 8px; }
@media (max-width: 960px) {
  .ima-hero-inner { grid-template-columns: 1fr !important; min-height: auto !important; padding: 130px 32px 60px !important; gap: 26px !important; }
  .ima-hero-copy { order: 1; align-self: auto !important; padding-top: 0 !important; }
  .ima-hero-media { order: 2; margin-right: 0 !important; }
  .ima-hero-media img { max-width: 560px !important; margin: 4px auto 0 !important; }
  .ima-hero-stats { flex-wrap: wrap !important; }
}
@media (max-width: 560px) {
  .ima-hero-inner { padding: 110px 20px 46px !important; }
  .ima-hero-stats { margin-top: 38px !important; }
  .ima-hero-stats .ima-stat { padding: 6px 20px 8px 0; }
  .ima-hero-stats .ima-stat-n { font-size: 38px !important; }
}

/* ---------- SECTION BACKGROUNDS ----------
   hero + history + projects -> #06090f (matches the Central Asia map image,
   so it blends across the whole block). about / expertise / team / news /
   data -> #f4f5f7 (same light tone as team). */
#history, #projects { background: #010409 !important; }
#about, #data { background: #f4f5f7 !important; }

/* hero media: enlarge + bleed to the right content edge */
.ima-hero-media { margin-right: -60px; }

/* ============================================================
   IMA REDESIGN (round 4) — team overlay cards + map feather
   ============================================================ */

/* TEAM: photo fills the whole card, text sits over a bottom scrim */
.ima-team-card { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 44px rgba(13,31,56,0.16); }
.ima-team-imgw { position: absolute !important; inset: 0 !important; height: 100% !important; width: 100% !important; }
.ima-team-img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.ima-team-body { position: absolute !important; left: 0; right: 0; bottom: 0; padding: 26px 26px 22px !important;
  background: linear-gradient(to top, rgba(6,10,20,0.96) 0%, rgba(6,10,20,0.82) 30%, rgba(6,10,20,0.30) 66%, transparent 100%) !important; }
.ima-team-name { color: #ffffff !important; margin: 0 0 2px !important; }
.ima-team-role { color: rgba(255,255,255,0.72) !important; margin-bottom: 10px !important; }
.ima-team-bio { color: rgba(255,255,255,0.85) !important; font-size: 13.5px !important; line-height: 1.55 !important; margin: 0 0 16px !important; }
.ima-team-btn { border: 1px solid rgba(255,255,255,0.45) !important; color: #ffffff !important; background: rgba(255,255,255,0.08) !important; }
.ima-team-mail { color: #ffffff !important; opacity: 0.9 !important; }

/* PROJECTS map: background is baked in (#010307) so it blends with the section — no mask needed */

/* ============================================================
   IMA REDESIGN (round 5) — project cards as overlay (like team)
   ============================================================ */
/* PROJECT cards: photo fills the card, text over a bottom scrim */
.ima-proj { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 18px; box-shadow: 0 18px 44px rgba(0,0,0,0.42); }
.ima-proj-img { position: absolute !important; inset: 0 !important; height: 100% !important; width: 100% !important; }
.ima-proj-img img { width: 100%; height: 100%; object-fit: cover; }
.ima-proj-body { position: absolute !important; left: 0; right: 0; bottom: 0; padding: 24px 24px 20px !important; flex: none !important;
  background: linear-gradient(to top, rgba(4,7,14,0.97) 0%, rgba(4,7,14,0.82) 32%, rgba(4,7,14,0.28) 66%, transparent 100%) !important; }
.ima-proj-h { color: #ffffff !important; margin: 0 0 8px !important; }
.ima-proj-p { color: rgba(255,255,255,0.82) !important; margin: 0 0 14px !important; }
.ima-proj-cta { color: #ffffff !important; }
.ima-proj-date { color: rgba(255,255,255,0.6) !important; }
.ima-proj-tag { color: #9fc0ea !important; }

/* map hero a bit shorter so the cards sit higher */
.ima-proj-hero { margin-bottom: -30px; }
.ima-proj-mapwrap { max-height: 600px; overflow: hidden; border-radius: 20px; }
.ima-proj-mapwrap .ima-proj-map { max-height: 600px; object-fit: cover; object-position: center 40%; }
.ima-proj-overlay{ position:absolute; inset:0; z-index:2; }

@media (max-width:900px){
  /* карта — только декор, на узких прячем, чтобы текст не наезжал */
  .ima-proj-mapwrap{ display:none; }
  /* оверлей-текст встаёт нормальным блоком на тёмном фоне */
  .ima-proj-overlay{ position:static; }
  .ima-proj-overlay > div{ height:auto; padding:0; display:block; }
  .ima-proj-overlay [style*="max-width:430px"]{ max-width:100%; margin-top:20px; }
  /* карточки в столбик под кнопкой */
  #projects [data-proj-cards]{ grid-template-columns:1fr; gap:20px; margin-top:62px; }
  #projects .ima-proj{ aspect-ratio:4/3; }
}

/* ===== Projects overlay cards — list page + home position ===== */
.proj-grid,
[data-proj-cards]{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.proj-grid{margin-top:34px;}

.proj-grid .ima-proj,
[data-proj-cards] .ima-proj{opacity:1!important;transform:none!important;}
.proj-grid .ima-proj:hover,
[data-proj-cards] .ima-proj:hover{transform:translateY(-6px)!important;}

.proj-grid .ima-proj-img,
[data-proj-cards] .ima-proj-img{object-fit:cover;}
.proj-grid .ima-proj-shade,
[data-proj-cards] .ima-proj-shade{display:none;}

@media (max-width:1120px){.proj-grid,[data-proj-cards]{grid-template-columns:repeat(2,1fr);}}
@media (max-width:640px){.proj-grid,[data-proj-cards]{grid-template-columns:1fr;}}

/* ===== Project DETAIL (projectfull) ===== */
.proj-detail .pd-sec{background:#fff;border:1px solid #ECECEC;border-radius:20px;
  box-shadow:0 12px 40px rgba(0,0,0,.05);max-width:1000px;margin:40px auto 40px;padding:48px 56px;}
.proj-detail .pd-wrap{max-width:880px;margin:0 auto;}
.proj-detail .pd-hero-img{border-radius:16px;overflow:hidden;margin-bottom:36px;}
.proj-detail .pd-hero-img img{display:block;width:100%;height:auto;}
.proj-detail .pd-lb{font-family:'Raleway',sans-serif;font-weight:600;font-size:12px;
  letter-spacing:.14em;text-transform:uppercase;color:#9aa4b2;margin-bottom:8px;}
.proj-detail .pd-row{display:grid;grid-template-columns:46px 1fr;gap:18px;align-items:start;
  border-bottom:1px solid rgba(13,31,56,.12);padding-bottom:26px;}
.proj-detail .pd-ic{color:#3a659f;display:flex;}
.proj-detail .pd-assign{font-family:'Source Serif 4',Cambria,Georgia,serif;font-size:17px;line-height:1.55;color:#0d1f38;}
.proj-detail .pd-narr{margin-top:30px;}
.proj-detail .pd-lead{font-family:'Source Serif 4',Cambria,Georgia,serif;font-size:17px;line-height:1.66;color:#3c485a;margin:0;}
.proj-detail .pd-info{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:32px;}
.proj-detail .pd-box{display:grid;grid-template-columns:46px 1fr;gap:14px;align-items:center;
  background:#f4f5f7;border-radius:12px;padding:16px 18px;}
.proj-detail .pd-bic{color:#3a659f;display:flex;}
.proj-detail .pd-blb{font-family:'Raleway',sans-serif;font-weight:600;font-size:12px;color:#0d1f38;}
.proj-detail .pd-bvl{font-family:'Source Serif 4',Cambria,Georgia,serif;font-size:14px;color:#6b7686;margin-top:3px;}
.proj-detail .pd-scope{margin-top:34px;}
.proj-detail .pd-scope-body{font-family:'Source Serif 4',Cambria,Georgia,serif;font-size:15px;
  line-height:1.75;color:#3c485a;white-space:pre-line;}
.proj-detail .pd-back{margin-top:40px;border-top:1px solid rgba(13,31,56,.14);padding-top:26px;}
.proj-detail .pd-btn{display:inline-flex;align-items:center;gap:10px;font-family:'Raleway',sans-serif;
  font-weight:600;font-size:14px;color:#0d1f38;border:1px solid rgba(13,31,56,.28);
  border-radius:11px;padding:13px 22px;text-decoration:none;transition:background .25s ease;}
.proj-detail .pd-btn:hover{background:#f0f2f5;}
@media (max-width:760px){.proj-detail .pd-sec{padding:32px 22px;}.proj-detail .pd-info{grid-template-columns:1fr;}}

/* ==== SERVICES PAGE (cat/expertise) ==== */

.ima-inner{ max-width:none !important; padding:0 !important; margin:0 !important; }
.categirys{ margin-top:-120px; }

/* HERO на всю ширину */
.pg-hero{
  position:relative; overflow:hidden; color:#fff;
  width:100vw; left:50%; margin-left:-50vw;
  padding:190px 100px 88px; box-sizing:border-box; background:#0a0d12;
}
.pg-hero::before{ content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(1100px 520px at 50% -160px, rgba(19,60,102,0.42), transparent 70%); }
.pg-hero .pg-wrap{ position:relative; max-width:1200px; margin:0 auto; padding:0 !important; }
.pg-eyebrow{ font-family:'Raleway',sans-serif; font-weight:600; font-size:12px; letter-spacing:0.26em;
  text-transform:uppercase; color:rgba(148,190,255,0.85); }
.pg-h1{ margin:20px 0 0; font-family:'Lora',Georgia,serif; font-weight:500;
  font-size:clamp(38px,5vw,60px); line-height:1.1; color:#fff; max-width:900px; }
.pg-sub{ margin:22px 0 0; font-family:'Source Serif 4',Cambria,Georgia,serif; font-size:17px;
  line-height:1.62; color:rgba(238,242,248,0.62); max-width:640px; }
.pg-sub p{ margin:0 0 10px; }

/* секция услуг */
.pg-sec{ padding:80px 0px; }
.pg-sec.gray{ background:#f4f5f7; }
.pg-sec .pg-wrap{ max-width:1600px; margin:0 auto; padding:0 !important; }

/* сетка карточек */
.svc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.svc-item{ display:grid; grid-template-columns:44px 1px 1fr; gap:16px; align-items:center;
  background:#fff; border:1px solid #ECECEC; border-radius:14px; padding:22px 24px;
  transition:border-color .25s ease, transform .25s ease; }
.svc-item:hover{ border-color:rgba(58,101,159,0.5); transform:translateY(-2px); }
.svc-item .ic{ width:44px; height:44px; display:flex; align-items:center; justify-content:center; }
.svc-item .ic img{ width:100%; height:100%; object-fit:contain; }
.svc-item .bar{ width:1px; height:34px; background:rgba(13,31,56,0.14); }
.svc-item h4{ font-family:'Raleway',sans-serif; font-weight:600; font-size:14.5px; color:#0d1f38; margin:0; }
.svc-item p{ font-family:'Source Serif 4',Cambria,Georgia,serif; font-size:12.5px; color:#8592a6; margin:4px 0 0; line-height:1.45; }
.notfond{ text-align:center; padding:40px 0; opacity:.5; }
.pg-nav:empty{ display:none; }

@media (max-width:900px){ .svc-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){
  .svc-grid{ grid-template-columns:1fr; }
  .pg-hero{ padding:150px 24px 64px; } .pg-sec{ padding:56px 24px; }
}

section[id] { scroll-margin-top: 0px; }

/* ===== Team category page (cat/team) ===== */
.tm-cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:34px;}
.tm-cat-grid .ima-teamw{opacity:1!important;transform:none!important;}

/* обычные карточки — светлые: фото сверху, текст снизу на белом */
.tm-cat-grid .ima-team-card{position:relative!important;aspect-ratio:auto!important;
  display:flex!important;flex-direction:column!important;height:100%!important;
  background:#fff!important;border:1px solid #ECECEC!important;border-radius:20px!important;
  box-shadow:0 12px 40px rgba(0,0,0,.05)!important;overflow:hidden!important;}
.tm-cat-grid .ima-team-imgw{position:relative!important;inset:auto!important;
  width:auto!important;height:460px!important;overflow:hidden!important;}
.tm-cat-grid .ima-team-img{object-position:center top!important;}
.tm-cat-grid .ima-team-body{position:static!important;display:flex!important;flex-direction:column!important;
  flex:1!important;padding:22px 26px!important;background:none!important;}
.tm-cat-grid .ima-team-name{color:#0d1f38!important;margin:0 0 2px!important;}
.tm-cat-grid .ima-team-role{color:#5f7391!important;margin-bottom:12px!important;}
.tm-cat-grid .ima-team-bio{color:#6b7686!important;font-size:15px!important;line-height:1.7!important;margin:0 0 24px!important;}
.tm-cat-grid .ima-team-actions{margin-top:auto!important;}
.tm-cat-grid .ima-team-btn{border:1px solid rgba(13,31,56,.25)!important;color:#0d1f38!important;background:transparent!important;}
.tm-cat-grid .ima-team-mail{color:#0d1f38!important;opacity:.75!important;}

/* LEAD — во весь ряд, наверху; фото слева, текст справа на белом */
.tm-cat--lead{grid-column:1 / -1!important;order:-1!important;}
.tm-cat--lead .ima-team-card{flex-direction:row!important;}
.tm-cat--lead .ima-team-imgw{flex:0 0 44%!important;height:auto!important;min-height:520px!important;}
.tm-cat--lead .ima-team-body{justify-content:center!important;padding:56px!important;}
.tm-cat--lead .ima-team-name{font-size:40px!important;margin:0 0 8px!important;}
.tm-cat--lead .ima-team-bio{font-size:16.5px!important;line-height:1.7!important;max-width:520px!important;margin:0 0 30px!important;}

@media (max-width:1120px){.tm-cat-grid{grid-template-columns:repeat(2,1fr);}}
@media (max-width:900px){
  .tm-cat-grid{grid-template-columns:1fr;}
  .tm-cat--lead .ima-team-card{flex-direction:column!important;}
  .tm-cat--lead .ima-team-imgw{flex:none!important;min-height:460px!important;}
  .tm-cat--lead .ima-team-body{padding:32px 26px!important;}
}

/* News на главной — карточки позиции идут без data-reveal, держим видимыми */
#news .ima-news{opacity:1!important;transform:none!important;}

/* News на главной — одинаковая высота карточек независимо от пропорций фото */
#news .ima-news{min-height:0!important;height:360px!important;}
#news .ima-news-imgw{height:100%!important;overflow:hidden!important;}
#news .ima-news-img{width:100%!important;height:100%!important;object-fit:cover!important;}

/* News — даты шрифтом Cambria */
.ima-news-date,
.dateshort{font-family:Cambria,'Source Serif 4',Georgia,serif!important;}

/* News на главной — мобильная версия: фото крупнее, текст компактнее */
@media (max-width:820px){
  #news .ima-news{height:auto!important;}                 /* снимаем фикс 360px */
  #news .ima-news-imgw{height:320px!important;}           /* фото выше — крути 280/320/360 */
  #news .ima-news-body{padding:20px 24px!important;}      /* текстовый блок компактнее */
}

/* ============================================================
   NEWS DETAIL (fullstory) — обложка слева + заголовок справа
   ============================================================ */
.ima-inner .categirys{max-width:none!important;margin:0!important;padding:0!important;}
.news-detail{max-width:1100px;margin:0 auto;padding:0 24px;}

/* HERO: обложка + заголовок */
.nd-hero{padding:150px 0 40px;}
.nd-hero-in{display:block;}
.nd-hero-in::after{content:'';display:block;clear:both;}
.nd-cover{float:left;width:44%;margin:0 40px 24px 0;
  border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(13,31,56,.16);}
.nd-cover img{display:block;width:100%;height:auto;}
.nd-head{min-width:0;}
.nd-date{font-family:Cambria,'Source Serif 4',Georgia,serif;font-size:14px;letter-spacing:.04em;
  color:#9aa4b2;margin-bottom:16px;}
.nd-title{margin:0;font-family:'Lora',Georgia,serif;font-weight:500;
  font-size:clamp(30px,3.6vw,46px);line-height:1.14;color:#0d1f38;}
.nd-lead{margin:22px 0 0;font-family:'Source Serif 4',Cambria,Georgia,serif;
  font-size:18px;line-height:1.66;color:#3c485a;}

/* ТЕЛО */
.news-detail .fulls{max-width:900px!important;margin:0 auto!important;padding:20px 0 90px!important;}
.news-detail .fulls .container{padding:0!important;}
.news-detail .fulls p{font-family:'Source Serif 4',Cambria,Georgia,serif!important;
  font-size:17px!important;line-height:1.75!important;color:#242b35!important;margin:0 0 22px!important;}

/* текст справа под заголовком */
.nd-body{margin:24px 0 0;font-family:'Source Serif 4',Cambria,Georgia,serif;
  font-size:16.5px;line-height:1.72;color:#3c485a;}
.nd-body p{margin:0 0 16px;}

/* галерея внизу — тело теперь только фото */
.news-detail .nd-gallery{max-width:1100px!important;margin:0 auto!important;padding:10px 0 90px!important;}
.news-detail .nd-gallery .container{display:flex!important;flex-wrap:wrap!important;gap:14px!important;}
.news-detail .nd-gallery p{display:contents!important;}
.news-detail .nd-gallery img{flex:0 0 calc(33.333% - 10px)!important;width:calc(33.333% - 10px)!important;
  height:280px!important;object-fit:cover!important;border-radius:14px!important;display:block!important;margin:0!important;}
@media (max-width:900px){
  .nd-hero{padding:130px 0 32px;}
  .nd-cover{float:none;width:100%;margin:0 0 24px 0;}
}
@media (max-width:900px){.news-detail .nd-gallery img{flex-basis:calc(50% - 7px)!important;width:calc(50% - 7px)!important;height:220px!important;}}
@media (max-width:520px){.news-detail .nd-gallery img{flex-basis:100%!important;width:100%!important;}}

/* Data — убрать линию под последней строкой таблицы */
#siat-rows > div:last-child{border-bottom:none!important;}
@media (max-width:720px){
  #siat-rows > div{
    grid-template-columns:1fr auto!important;
    gap:2px 12px!important;
    align-items:start!important;
    padding:16px 4px!important;
  }
  #siat-rows > div > span:nth-child(1){ display:none!important; }
  #siat-rows > div > span:nth-child(2){ grid-column:1!important; grid-row:1!important; font-size:15px!important; }
  #siat-rows > div > span:nth-child(3){ grid-column:1!important; grid-row:2!important; font-size:13px!important; line-height:1.4!important; margin-top:2px!important; }
  #siat-rows > div > span:nth-child(4){
    grid-column:2!important; grid-row:1 / span 2!important;
    align-self:center!important; text-align:right!important; white-space:nowrap!important; font-size:15px!important;
  }
  #data [data-reveal] > div:first-child{ grid-template-columns:1fr auto!important; }
  #data [data-reveal][style*="border-radius"]{ padding:24px 18px 8px!important; }
}

/* ============================================================
   Фоновые струящиеся линии — индивидуальный opacity на секцию
   Меняешь число opacity у нужной секции, остальные не трогаются
   ============================================================ */

/* базовый слой линий — общий для всех, кроме цвета/прозрачности */
#top::after, #history::after, #projects::after,
#about::after, #team::after, #news::after, #data::after,
#expertise::after,
[data-screen-label="CTA"]::after{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background-repeat:no-repeat;background-position:center;background-size:cover;
}

/* поднимаем контент над линиями во всех секциях */
#top > div, #history > div, #projects > div,
#about > div, #team > div, #news > div, #data > div, 
#expertise > div,
[data-screen-label="CTA"] > div{ position:relative; z-index:1; }

/* секциям, где нет position:relative, добавляем */
#about, #team, #news, #data, #expertise [data-screen-label="CTA"]{ position:relative; }

/* ===== ТЁМНЫЕ секции — белые линии ===== */
#top::after       { background-image:url('/files/waves-white.png'); opacity:.06; }  /* hero */
#history::after   { background-image:url('/files/waves-white.png'); opacity:.07; }  /* history */
#projects::after  { background-image:url('/files/waves-white.png'); opacity:.07; }  /* projects */
[data-screen-label="CTA"]::after { background-image:url('/files/waves-white.png'); opacity:.03; }  /* CTA внизу */

/* ===== СВЕТЛЫЕ секции — тёмные линии ===== */
#about::after     { background-image:url('/files/waves-dark.png'); opacity:.05; }   /* about */
#expertise::after { background-image:url('/files/waves-dark.png'); opacity:.06; }   /* expertise */
#team::after      { background-image:url('/files/waves-dark.png'); opacity:.05; }   /* team */
#news::after      { background-image:url('/files/waves-dark.png'); opacity:.04; }   /* news */
#data::after      { background-image:url('/files/waves-dark.png'); opacity:.05; }   /* data */

/* ============================================================
   Линии на страницах категорий (expertise/projects/team/news)
   ============================================================ */

/* синяя шапка категории — белые линии */
.pg-hero{ position:relative; overflow:hidden; }   /* если ещё не relative */
.pg-hero::after{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url('/files/waves-white.png') no-repeat center/cover;
  opacity:.06;
}
.pg-hero .pg-wrap{ position:relative; z-index:1; }

/* серая секция с карточками — тёмные линии */
.pg-sec.light{ position:relative; overflow:hidden; }
.pg-sec.light::after{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background:url('/files/waves-dark.png') no-repeat center/cover;
  opacity:.04;
}
.pg-sec.light .pg-wrap{ position:relative; z-index:1; }