/* ALMARK — тема B: минималистичный бизнес-вариант.
   Слой поверх site.css. Светлые экраны, один шрифт IBM Plex, графитовые кнопки,
   фирменный красный только в акцентах (авто-линия, маркеры, ключевое слово). */
.theme-b{
  --ink:#0F1B2D; --ink-2:#1B2739; --ink-3:#2B3749; --signal:#D7322A; --signal-d:#B9271F;
  --steel:#6B7685; --steel-l:#98A2AF; --paper:#F5F6F8; --white:#FFFFFF; --line:#E3E6EB; --line-2:#CDD3DB; --muted:#5E6876;
  --eu:#8C96A3; --r:6px;
  --f-display:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-mono:"IBM Plex Mono",ui-monospace,Menlo,monospace;
  background:var(--white);
}

/* ---------- typography ---------- */
.theme-b h1,.theme-b h2,.theme-b h3{letter-spacing:-.022em;font-stretch:normal}
.theme-b h1{font-size:clamp(32px,4.2vw,54px);line-height:1.08;font-weight:600}
.theme-b h2{font-size:clamp(26px,2.9vw,38px);line-height:1.15;font-weight:600}
.theme-b h3{font-size:18px;font-weight:600;letter-spacing:-.01em}
@media (max-width:640px){.theme-b h1{font-size:clamp(28px,7.8vw,36px)}}
.theme-b .eyebrow{font:500 12px/1.3 var(--f-mono);letter-spacing:.08em;color:var(--muted);display:inline-flex;align-items:center;gap:10px}
.theme-b .eyebrow::before{content:"";width:16px;height:2px;background:var(--signal);flex:none}
.theme-b .on-dark .eyebrow{color:var(--muted)}
.theme-b .hero h1 em{color:var(--signal)}

/* ---------- buttons ---------- */
.theme-b .btn{border-radius:var(--r);font-weight:500;letter-spacing:.005em}
.theme-b .btn-primary{background:var(--ink);color:var(--white)}
.theme-b .btn-primary:hover{background:var(--ink-3)}
.theme-b .btn-ghost,.theme-b .on-dark .btn-ghost{color:var(--ink);box-shadow:inset 0 0 0 1px var(--line-2);background:var(--white)}
.theme-b .btn-ghost:hover,.theme-b .on-dark .btn-ghost:hover{background:var(--white);color:var(--ink);box-shadow:inset 0 0 0 1px var(--ink)}

/* ---------- header ---------- */
.theme-b::before{background:var(--white)}
.theme-b .site-head{background:rgba(255,255,255,.94);color:var(--ink);border-bottom:1px solid var(--line)}
.theme-b .logo img{filter:none;height:28px}
.theme-b .nav>.ni>a,.theme-b .nav>.ni>button{color:var(--muted);font-weight:500}
.theme-b .nav>.ni>a:hover,.theme-b .nav>.ni>button:hover,.theme-b .nav>.ni.open>button,.theme-b .nav>.ni>a[aria-current="page"],.theme-b .nav>.ni.cur>button{color:var(--ink)}
.theme-b .nav>.ni.cur>button,.theme-b .nav>.ni>a[aria-current="page"]{box-shadow:inset 0 -2px 0 var(--ink)}
.theme-b .head-phone{font-weight:500}
.theme-b .head-phone small{color:var(--muted)}
.theme-b .mega{box-shadow:0 24px 40px -28px rgba(15,27,45,.25)}
.theme-b .mega-links a{border-radius:var(--r)}
.theme-b .mega-side{border-radius:var(--r)}
.theme-b .burger{border:1px solid var(--line-2);border-radius:var(--r)}
.theme-b .burger span,.theme-b .burger::before,.theme-b .burger::after{background:var(--ink)}
@media (max-width:1020px){
  .theme-b .m-menu{background:var(--white)}
  .theme-b .m-menu details,.theme-b .m-menu>a{border-bottom-color:var(--line)}
  .theme-b .m-menu summary,.theme-b .m-menu>a{color:var(--ink);font-weight:600;font-size:18px}
  .theme-b .m-menu details a{color:var(--muted);border-left-color:var(--line)}
}

/* ---------- light heroes instead of dark ---------- */
.theme-b .on-dark{background:var(--white);color:var(--ink)}
.theme-b .hero.on-dark{border-bottom:1px solid var(--line)}
.theme-b .sec.on-dark{background:var(--paper);border-block:1px solid var(--line)}
.theme-b .hero::before{display:none}
.theme-b .hero>.wrap{padding-block:56px 72px}
.theme-b .hero.page>.wrap,.theme-b .hero.simple>.wrap{padding-block:40px 64px}
.theme-b .hero .sub,.theme-b .on-dark .sec-head p{color:var(--muted)}
.theme-b .crumbs,.theme-b .crumbs a{color:var(--steel)}
.theme-b .crumbs a:hover,.theme-b .crumbs [aria-current]{color:var(--ink)}

.theme-b .facts{background:var(--line);border-color:var(--line);border-radius:var(--r);overflow:hidden}
.theme-b .facts div{background:var(--white)}
.theme-b .facts span{color:var(--muted);letter-spacing:.06em}
.theme-b .facts b{font-weight:600;letter-spacing:-.015em}

.theme-b .mode{background:var(--white);border-color:var(--line-2);color:var(--ink);border-radius:var(--r);font-weight:500}
.theme-b a.mode:hover{border-color:var(--ink);color:var(--ink)}

/* line glyphs: монохром, красный только у авто */
.theme-b .i-auto{background:var(--signal)}
.theme-b .i-sea{background:var(--ink)}
.theme-b .i-rail,.theme-b .light-lines .i-rail,.theme-b .mega .i-rail,.theme-b .svc .i-rail,.theme-b .tmode .i-rail,.theme-b .svc.feature .i-rail{background:repeating-linear-gradient(90deg,var(--ink) 0 6px,transparent 6px 9px)}
.theme-b .i-air,.theme-b .light-lines .i-air,.theme-b .mega .i-air,.theme-b .svc .i-air,.theme-b .tmode .i-air{background:repeating-linear-gradient(90deg,var(--steel) 0 2px,transparent 2px 6px)}
.theme-b .i-eu,.theme-b .mega .i-eu,.theme-b .svc .i-eu,.theme-b .tmode .i-eu{background:repeating-linear-gradient(90deg,var(--eu) 0 6px,transparent 6px 9px)}
.theme-b .i-multi{background:linear-gradient(90deg,var(--signal) 50%,var(--ink) 50%)}
.theme-b .i-wh{background:var(--steel-l)}
.theme-b .i-bulk{background:var(--ink)}

/* ---------- route map on light ---------- */
.theme-b .map-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--r)}
.theme-b .route-map path[stroke="#3A557E"]{stroke:var(--line-2)}
.theme-b .route-map path[stroke="#E9B949"]{stroke:var(--eu)}
.theme-b .route-map path[stroke="#C9D3E2"]{stroke:var(--steel)}
.theme-b .route-map path[stroke="#6F8DB8"]{stroke:var(--ink)}
.theme-b .route-map path[stroke="#E8382F"]{stroke:var(--signal)}
.theme-b .route-map .lbl{fill:var(--muted);font-weight:500}
.theme-b .route-map .lbl.big{fill:var(--ink);font-weight:600}
.theme-b .route-map .node{fill:var(--white);stroke:var(--ink);stroke-width:2}
.theme-b .route-map .hub{fill:var(--ink)}
.theme-b .route-map circle[fill="#0A1C36"]{fill:var(--white)}
.theme-b .route-map .mover circle{fill:var(--white)}
.theme-b .route-map .mover circle[stroke="#6F8DB8"]{stroke:var(--ink)}
.theme-b .route-map .mover circle[stroke="#E9B949"]{stroke:var(--eu)}
.theme-b .route-map .mover circle:not([stroke]){fill:var(--steel)}
.theme-b .map-top .live{color:#1F8A5B}
.theme-b .legend{border-top:1px solid var(--line)}
.theme-b .legend div{color:var(--muted)}
.theme-b .legend b{color:var(--ink);font-weight:500}
.theme-b .map-note{color:var(--muted)}

/* ---------- quote form ---------- */
.theme-b .quote{border:1px solid var(--line);border-radius:var(--r);box-shadow:0 1px 2px rgba(15,27,45,.04),0 18px 40px -24px rgba(15,27,45,.22)}
.theme-b .quote.flat{box-shadow:none}
.theme-b .quote h2{font-weight:600;letter-spacing:-.015em}
.theme-b .field>label,.theme-b .field>.lab,.theme-b .fieldset-t{font-weight:500;letter-spacing:.06em}
.theme-b .field input,.theme-b .field select,.theme-b .field textarea{border:1px solid var(--line-2);border-radius:var(--r);background-color:var(--white)}
.theme-b .field input:focus,.theme-b .field select:focus,.theme-b .field textarea:focus{border-color:var(--ink);box-shadow:0 0 0 3px rgba(15,27,45,.08)}
.theme-b .seg label{border:1px solid var(--line-2);border-radius:var(--r);background:var(--white)}
.theme-b .check input,.theme-b .consent input{border:1px solid var(--line-2);border-radius:4px;background-color:var(--white)}
.theme-b .fieldset-t{border-top:1px solid var(--line)}
.theme-b .progress .bar{height:2px}
.theme-b .progress .pt{border-width:2px}
.theme-b .stamp{border-width:2px;border-radius:4px;font-weight:700;transform:rotate(-2deg)}

/* ---------- stats ---------- */
.theme-b .stats{background:var(--white);color:var(--ink);border-top:0;border-bottom:1px solid var(--line)}
.theme-b .stats .wrap{padding-block:36px}
.theme-b .stat{border-left-color:var(--line)}
.theme-b .stat b{font-weight:600;letter-spacing:-.02em}
.theme-b .stat span{color:var(--muted)}

/* ---------- sections ---------- */
.theme-b .sec{padding-block:96px}
.theme-b .sec.white{background:var(--paper);border-block:1px solid var(--line)}
@media (max-width:640px){.theme-b .sec{padding-block:60px}}

.theme-b .services{border-radius:var(--r);overflow:hidden}
.theme-b .svc{padding:30px}
.theme-b .svc:hover{background:var(--paper)}
.theme-b .svc::after{display:none}
.theme-b .svc.feature{background:var(--white);color:var(--ink)}
.theme-b .svc.feature p{color:var(--muted)}
.theme-b .svc.feature .code{color:var(--steel)}
.theme-b .svc.feature .more{color:var(--ink)}
.theme-b .svc .code{font-weight:500}
.theme-b .svc .more{font-weight:500}
.theme-b .svc:hover .more{color:var(--ink);text-decoration:underline;text-underline-offset:4px}

.theme-b .tbl-wrap{border-radius:var(--r)}
.theme-b th{font-weight:500}
.theme-b td.num{font-weight:500}
.theme-b .tmode{font-weight:500}
.theme-b .countries span{border-radius:4px}

/* process: тонкая линия и маленькие точки */
.theme-b .process::before{top:10px;height:1px;background:var(--line-2)}
.theme-b .pstep::before{top:-35px;width:15px;height:15px;border-width:2px;background:var(--white)}
.theme-b .sec:not(.white) .pstep::before{background:var(--white)}
.theme-b .sec.white .pstep::before{background:var(--paper)}
.theme-b .pstep:first-child::before{background:var(--signal);border-color:var(--signal)}
.theme-b .pstep .n{font-weight:500}
.theme-b .pstep .t{border-radius:4px;font-weight:500}
@media (max-width:900px){
  .theme-b .process::before{left:7px;width:1px;top:8px;bottom:8px;height:auto;background:var(--line-2)}
  .theme-b .pstep::before{top:3px;left:0}
}

.theme-b .dgrid{background:var(--line);border-color:var(--line);border-radius:var(--r);overflow:hidden}
.theme-b .dgrid>div{background:var(--white)}
.theme-b .dgrid p{color:var(--muted)}
.theme-b .dgrid .k{font-weight:500}
.theme-b .cta-strip{border:1px solid var(--line);background:var(--white);border-radius:var(--r);padding:28px 32px}
.theme-b .cta-strip p{font-weight:600;letter-spacing:-.015em}

.theme-b .lgrid>*{border-radius:var(--r)}
.theme-b a.lcard:hover{border-color:var(--ink)}
.theme-b a.lcard:hover .go{color:var(--ink);text-decoration:underline;text-underline-offset:4px}
.theme-b .box{border-radius:var(--r)}
.theme-b ul.ticks li::before{width:12px;height:7px;border-width:2px;top:.5em}
.theme-b .gloss{border-radius:var(--r);overflow:hidden}
.theme-b .gloss b{font-weight:600}
.theme-b .faq summary{font-weight:500}
.theme-b .tl{border-left-width:1px;border-color:var(--line-2);margin-left:7px}
.theme-b .tl div::before{left:-8px;width:15px;height:15px;border-width:2px;background:var(--white)}
.theme-b .tl b{font-weight:600}

.theme-b .channel,.theme-b .on-dark .channel{border:1px solid var(--line);background:var(--white);border-radius:var(--r)}
.theme-b .channel:hover{border-color:var(--ink);background:var(--white)}
.theme-b .channel span{color:var(--muted)}
.theme-b .prose .note{border-radius:0 var(--r) var(--r) 0}

/* ---------- footer ---------- */
.theme-b footer.site-foot{background:var(--ink);color:#A9B2BF}
.theme-b .foot-top h4{color:#7F8A99;font-weight:500}
.theme-b .foot-top a{color:#D5DAE1}
.theme-b .foot-brand .ph{font-weight:500}
.theme-b .foot-bottom{border-top-color:#25324A}
.theme-b .foot-bottom a{color:#A9B2BF}

.theme-b .m-cta .btn{border-radius:var(--r)}
.theme-b .toast{border-radius:var(--r)}

/* ИИ-ассистент: те же формы и шрифт */
.theme-b .ai-panel,.theme-b .ai-hint{border-radius:10px}
.theme-b .ai-head b{font-weight:600}
.theme-b .ai-msg{border-radius:8px}
.theme-b .ai-msg.bot{border-top-left-radius:2px}
.theme-b .ai-msg.user{border-top-right-radius:2px}
.theme-b .ai-acts .primary{background:var(--ink);border-color:var(--ink)}
.theme-b .ai-acts .primary:hover{background:var(--ink-3);border-color:var(--ink-3)}
.theme-b .ai-form input,.theme-b .ai-form button{border-radius:var(--r)}
.theme-b .ai-form button{background:var(--ink)}
.theme-b h1,.theme-b h2{hyphens:manual;-webkit-hyphens:manual}
/* веса: крупные заголовки средним начертанием — строже */
.theme-b h1,.theme-b h2,.theme-b .quote h2{font-weight:500;letter-spacing:-.028em}
.theme-b .facts b{font-weight:500;hyphens:manual;-webkit-hyphens:manual;font-size:19px}
.theme-b .stat b{font-weight:500}
/* шапка страницы услуги: факты сразу под текстом, без пустоты */
.theme-b .hero.page>.wrap{grid-template-rows:auto 1fr}
.theme-b .hero.page .facts{align-self:start}
/* транспорт в одну строку */
.theme-b .seg{gap:6px}
.theme-b .seg label{padding:0 13px;font-size:14.5px}

/* ---------- фото ALMARK ---------- */
.theme-b .pic{margin:0;overflow:hidden;border-radius:var(--r);background:var(--paper);position:relative}
.theme-b .pic img{display:block;width:100%;height:100%;object-fit:cover}
.theme-b .hero-photo{grid-area:photo;align-self:start;aspect-ratio:16/9}
/* главная: фото вместо схемы */
.theme-b .hero.home>.wrap{grid-template-areas:"copy quote" "photo quote";grid-template-rows:auto 1fr}
.theme-b .hero.home .hero-photo{aspect-ratio:16/10}
/* страницы услуг и направлений: фото под фактами */
.theme-b .hero.page.has-photo>.wrap{grid-template-areas:"copy quote" "facts quote" "photo quote";grid-template-rows:auto auto 1fr}
/* простые шапки с фото: текст слева, фото справа */
.theme-b .hero.simple.has-photo>.wrap{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-areas:"copy photo";align-items:center;gap:48px}
.theme-b .hero.simple.has-photo .hero-photo{aspect-ratio:4/3;align-self:center}
@media (max-width:960px){
  .theme-b .hero.home>.wrap{grid-template-areas:"copy" "photo" "quote";grid-template-rows:none}
  .theme-b .hero.page.has-photo>.wrap{grid-template-areas:"copy" "facts" "quote" "photo";grid-template-rows:none}
  .theme-b .hero.simple.has-photo>.wrap{grid-template-columns:1fr;grid-template-areas:"copy" "photo";gap:28px}
}
/* карточки услуг */
.theme-b .svc .svc-img{margin:-30px -30px 8px;border-radius:0;aspect-ratio:16/10}
.theme-b .svc .svc-img img{transition:transform .5s cubic-bezier(.2,.7,.2,1)}
.theme-b .svc:hover .svc-img img{transform:scale(1.04)}
/* схема рядом с направлениями */
.theme-b .map-cols{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:20px;align-items:start}
.theme-b .map-cols .lgrid{grid-template-columns:1fr}
.theme-b .map-cols .map-card{background:var(--white)}
@media (max-width:900px){.theme-b .map-cols{grid-template-columns:1fr}}
/* почему ALMARK */
.theme-b .why-photo{aspect-ratio:21/8;margin-bottom:20px}
@media (max-width:640px){.theme-b .why-photo{aspect-ratio:4/3}}
/* руководство */
.theme-b .gm-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:48px;align-items:center}
.theme-b .gm-photo{aspect-ratio:3/2}
.theme-b .photo-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}
.theme-b .photo-strip .mini{aspect-ratio:1/1}
@media (max-width:860px){.theme-b .gm-row{grid-template-columns:1fr;gap:28px}}

/* ---------- правки по ревью ---------- */
/* общий .theme-b h2 перебивал локальные размеры заголовков */
.theme-b .quote h2{font-size:24px;line-height:1.2}
.theme-b .faq-group h2{font-size:24px}
.theme-b .prose h2{font-size:clamp(22px,2.2vw,28px)}
