:root{--profile-width:1180px}
.profile-topbar{justify-content:space-between;gap:18px}.profile-topbar .mark{font-family:var(--serif);font-size:19px;color:var(--ink)}
.profile-nav{display:flex;flex-wrap:wrap;gap:20px}.profile-nav a,.profile-lang{color:var(--muted);font-size:13px;text-decoration:none}
.profile-nav a:hover,.profile-lang:hover{color:var(--ink)}.profile-topbar-actions{display:flex;align-items:center;gap:16px}
.profile-main{max-width:var(--profile-width);margin:auto;padding:0 24px}.profile-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,.8fr);gap:60px;align-items:center;padding:70px 0 78px}.profile-hero h1{font-size:clamp(35px,5.4vw,64px);max-width:720px}.profile-hero-lead{font-size:clamp(17px,2vw,21px);line-height:1.55;margin-top:24px;max-width:700px}.profile-hero-note,.profile-disclaimer{font-size:13px;color:var(--muted);margin-top:20px;max-width:720px}
.profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.profile-facts{display:flex;gap:10px;flex-wrap:wrap;margin-top:34px}.profile-facts span{border:1px solid var(--line);border-radius:99px;padding:7px 12px;font-size:12px;color:var(--muted)}
.profile-portrait{margin:0;min-height:350px;border-radius:18px;overflow:hidden;background:var(--accent-soft)}.profile-portrait img{width:100%;height:100%;max-height:600px;object-fit:cover}
.profile-section{border-top:1px solid var(--line);padding:65px 0 76px;scroll-margin-top:80px}.profile-heading{max-width:770px;margin-bottom:32px}.profile-heading .eyebrow{margin-bottom:14px}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.profile-area,.profile-case,.profile-proof{border:1px solid var(--line);border-radius:14px;padding:25px;background:var(--panel)}
.profile-area h3,.profile-case h3,.profile-proof h3{font-size:24px;margin-top:10px}.profile-area-lead{margin:15px 0 24px;color:var(--muted)}
.profile-area dl,.profile-case dl{margin:0 0 20px;display:grid;gap:14px}.profile-area dt,.profile-case dt{font-size:12px;text-transform:uppercase;letter-spacing:.075em;color:var(--accent)}
.profile-area dd,.profile-case dd{margin:3px 0 0;font-size:14px;line-height:1.55}
.profile-step{border-bottom:1px solid var(--line);padding:16px 0}.profile-step:first-child{border-top:1px solid var(--line)}.profile-step summary{cursor:pointer;display:flex;align-items:center;gap:20px;font-size:19px;list-style:none}.profile-step summary::-webkit-details-marker{display:none}.profile-step summary:after{content:"+";margin-left:auto;color:var(--muted)}.profile-step[open] summary:after{content:"−"}.profile-step-num{font-size:12px;color:var(--accent)}.profile-step p{padding:13px 25px 7px 43px;max-width:760px;color:var(--muted)}
.profile-case-grid,.profile-proof-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.profile-case dl{margin-top:20px}.profile-text-link{color:var(--accent);text-decoration:underline;text-underline-offset:4px;font-size:14px}.profile-proof p{margin-top:12px;color:var(--muted);font-size:14px}
.profile-choose{padding-bottom:95px}.profile-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.profile-choice{border-radius:11px;padding:13px 10px;border:1px solid var(--line);background:var(--panel);color:var(--ink);font:inherit;font-size:13px;cursor:pointer;text-align:center}.profile-choice[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft)}.profile-choice:focus-visible,.profile-nav a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.profile-result{margin-top:15px;padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:25px}.profile-result p{max-width:610px}.profile-footer{max-width:var(--profile-width);margin:auto;padding:30px 24px 45px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:var(--muted);font-size:13px}.profile-footer a{color:inherit}
@media(max-width:800px){.profile-nav{display:none}.profile-hero{grid-template-columns:1fr;gap:25px;padding:34px 0 55px}.profile-portrait{min-height:0;max-height:430px;max-width:400px}.profile-grid{grid-template-columns:1fr}.profile-case-grid,.profile-proof-grid{grid-template-columns:1fr}.profile-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-result{align-items:flex-start;flex-direction:column}}
@media(max-width:450px){.profile-main{padding:0 16px}.profile-topbar{gap:9px}.profile-topbar .mark{font-size:16px}.profile-topbar-actions{gap:8px}.profile-topbar-actions .btn{padding:9px;font-size:12px}.profile-choices{grid-template-columns:1fr 1fr}.profile-choice{padding:12px 6px}.profile-area,.profile-case,.profile-proof{padding:19px}.profile-section{padding:46px 0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* Страницы направлений консалтинга */
.sp-hero{padding:64px 0 56px;max-width:860px}.sp-hero h1{font-size:clamp(34px,5.4vw,60px);margin:12px 0 18px}
.sp-decision{margin:18px 0 0;font-size:16px;color:var(--ink)}.sp-decision b{display:block;font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:4px}
.sp-lead{margin:14px 0 0;font-size:15px;line-height:1.6;color:var(--muted);max-width:720px}
.sp-more{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 0}
.sp-section{padding:48px 0 54px}
.sp-list{margin:0;padding-left:20px;display:grid;gap:9px;max-width:780px;font-size:16px;line-height:1.55;color:var(--ink)}
.sp-list li::marker{color:var(--accent)}
.sp-card p{margin:0;font-size:15px;line-height:1.55}
.sp-card .sp-list{font-size:15px;color:var(--muted);margin-top:14px}
.sp-steps{margin:0;padding:0;list-style:none;counter-reset:sp;display:grid;gap:0;max-width:780px}
.sp-steps li{counter-increment:sp;display:flex;gap:18px;padding:14px 0;border-bottom:1px solid var(--line);font-size:16px;line-height:1.55}
.sp-steps li:first-child{border-top:1px solid var(--line)}
.sp-steps li::before{content:counter(sp,decimal-leading-zero);font-size:12px;letter-spacing:.1em;color:var(--muted);padding-top:4px;min-width:24px}
.sp-boundary{margin:26px 0 0;max-width:780px;font-size:14px;line-height:1.65;color:var(--muted)}.sp-boundary b{color:var(--ink);font-weight:500}
.sp-link{display:flex;flex-direction:column;gap:8px;text-decoration:none;color:inherit;transition:border-color .15s ease}.sp-link:hover{border-color:var(--ink)}
.sp-link h3{font-size:20px;margin:0;font-weight:400}.sp-link .svc-n{font-size:12px;letter-spacing:.1em;color:var(--muted)}.sp-link p{color:var(--muted)}
@media(max-width:800px){.sp-hero{padding:34px 0 36px}.sp-section{padding:34px 0 40px}}
.profile-grid .profile-area:last-child:nth-child(odd){grid-column:1/-1}
.profile-area .sp-list{font-size:15px;color:var(--muted);gap:6px;margin-top:6px}
.profile-area dd{margin:6px 0 0}
.sp-crumb{margin:26px 0 0}.sp-crumb a{font-size:14px;color:var(--muted);text-decoration:none}.sp-crumb a:hover{color:var(--accent)}
.sp-hero .sp-crumb{margin:0 0 18px}
.profile-steps{display:grid;max-width:900px}
.profile-step{display:flex;gap:20px;align-items:flex-start}.profile-step-num{font-size:12px;letter-spacing:.1em;color:var(--muted);padding-top:6px;min-width:24px}
.profile-step h3{font-size:20px;font-weight:400;margin:0 0 4px}.profile-step p{margin:0;color:var(--muted);font-size:15px;line-height:1.55}
/* Линия времени «Что я делал» */
.tl{list-style:none;margin:0;padding:0;position:relative;max-width:900px}
.tl-item{position:relative;display:flex;gap:22px;padding:0 0 22px}
.tl-item:last-child{padding-bottom:0}
.tl-node{flex:0 0 44px;width:44px;height:44px;border-radius:50%;background:var(--panel);border:2px solid var(--accent);display:flex;align-items:center;justify-content:center;font-size:13px;letter-spacing:.06em;color:var(--accent);position:relative;z-index:1}
.tl-card{flex:1;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 20px;transition:border-color .15s ease}
.tl-card:hover{border-color:var(--ink)}
.tl-card h3{font:400 21px/1.25 var(--serif);margin:0 0 6px}
.tl-card p{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.tl-card .tl-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.tl-tags span{font-size:12px;letter-spacing:.04em;color:var(--accent);background:var(--accent-soft);border-radius:99px;padding:4px 10px}
@media(max-width:560px){.tl::before{left:17px}.tl-item{gap:14px}.tl-node{flex-basis:36px;width:36px;height:36px;font-size:11px}.tl-card{padding:14px 16px}}
/* Примеры: кнопка «ещё» */
.profile-more{margin-top:12px}.profile-more[hidden]{display:none}
.profile-more-row{margin:22px 0 0}
/* Продукты — во всю ширину */
.profile-wide{display:flex;gap:28px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:16px;background:var(--panel);padding:30px 32px}
.profile-wide h2{margin:6px 0 10px}.profile-wide-text{margin:0;font-size:17px;line-height:1.6;color:var(--ink);max-width:none}
.profile-wide .btn{flex:0 0 auto;white-space:nowrap}
@media(max-width:800px){.profile-wide{flex-direction:column;align-items:flex-start;padding:22px 20px}}
/* Чем полезен: четыре блока */
.profile-quad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.profile-help{display:flex;flex-direction:column;gap:12px}.profile-help h3{margin:0}.profile-help p{margin:0;font-size:15px;color:var(--muted);line-height:1.55}
.profile-help .sp-list{font-size:14px;color:var(--ink);gap:6px}.profile-help .profile-text-link{margin-top:auto;padding-top:6px}
@media(max-width:1100px){.profile-quad{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.profile-quad{grid-template-columns:1fr}}
/* Принципы */
.profile-proof{display:flex;flex-direction:column;gap:10px}.profile-proof h3{margin:0}.profile-proof p{margin:0}
.profile-proof h4{font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin:12px 0 0}
.profile-proof .sp-list{font-size:15px;color:var(--muted);gap:7px}
.profile-proof .svc-n{font-size:12px;letter-spacing:.1em;color:var(--muted)}
.profile-grid .profile-area:last-child:nth-child(odd){grid-column:auto}
/* Горизонтальная прокрутка карточек */
.hs-nav{display:flex;justify-content:flex-end;gap:8px;margin:-8px 0 12px}
.hs-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--ink);font-size:24px;line-height:1;cursor:pointer;transition:border-color .15s ease,opacity .15s ease}
.hs-btn:hover{border-color:var(--ink)}.hs-btn:disabled{opacity:.35;cursor:default}.hs-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.hs{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;padding:2px 2px 16px;scrollbar-width:thin;align-items:stretch}
.hs:focus-visible{outline:2px solid var(--accent);outline-offset:4px}
.hs > *{flex:0 0 min(440px,86%);scroll-snap-align:start;margin:0}
.hs-cases > *{flex-basis:min(400px,86%)}
.hs .profile-area:last-child:nth-child(odd){grid-column:auto}
/* Линия времени: движение по мере прокрутки */
.tl::before{content:"";position:absolute;left:21px;top:22px;height:var(--tl-len,calc(100% - 44px));width:2px;background:var(--line);bottom:auto}
.tl::after{content:"";position:absolute;left:21px;top:22px;width:2px;background:var(--accent);height:calc(var(--tl-len,0px) * var(--tl-p,0));transition:height .25s ease}
.tl-node{transition:background .25s ease,color .25s ease,box-shadow .25s ease,transform .25s ease}
.tl-item.is-passed .tl-node{background:var(--accent);color:#fff}
.tl-item.is-passed .tl-card{border-color:color-mix(in srgb,var(--accent) 45%,var(--line))}
.tl-item.is-current .tl-node{box-shadow:0 0 0 7px var(--accent-soft);transform:scale(1.08)}
.tl-tags span{background:none;border:1px solid var(--accent);color:var(--accent);font-weight:500}
@media(prefers-reduced-motion:reduce){.tl::after,.tl-node{transition:none}.tl-item.is-current .tl-node{transform:none}}
/* Точки прокрутки */
.hs-dots{display:flex;justify-content:center;gap:2px;margin-top:2px}
.hs-dot{width:30px;height:44px;border:0;background:none;padding:0;cursor:pointer;position:relative}
.hs-dot::after{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;border-radius:99px;background:var(--line);transform:translate(-50%,-50%);transition:width .2s ease,background .2s ease}
.hs-dot[aria-current="true"]::after{width:24px;background:var(--accent)}
.hs-dot:focus-visible{outline:2px solid var(--accent);outline-offset:-2px;border-radius:8px}
@media(prefers-reduced-motion:reduce){.hs-dot::after{transition:none}}
/* Навигация по якорям: цели касания и телефон */
.profile-nav a{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:800px){
  .profile-nav{display:flex!important;order:3;width:100%;overflow-x:auto;gap:18px;padding:0 0 4px;scrollbar-width:none}
  .profile-nav::-webkit-scrollbar{display:none}
  .profile-nav a{white-space:nowrap;flex:0 0 auto}
  .profile-topbar{flex-wrap:wrap}
}
.profile-cta-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex:0 0 auto}
@media(max-width:800px){.profile-cta-actions{align-items:flex-start}}

/* ===== Закреплённые заголовки разделов (как на главной) ===== */
.profile-section > .profile-heading{display:contents}
.profile-section > .profile-heading > h2{
  position:sticky;top:var(--profile-top,58px);z-index:6;margin:0;padding:11px 0;
  background:var(--bg);border-bottom:1px solid var(--line);font-size:clamp(21px,3vw,30px);
}
.profile-section > .profile-heading > .eyebrow{margin:0 0 12px}
.profile-section > .profile-heading > .sub{margin:12px 0 24px;max-width:760px}

/* ===== Живые карточки: рамка подсвечивается при наведении ===== */
.profile-area,.profile-case,.profile-proof,.profile-help,.tl-card,.tl-branch,.proj-tile,.profile-wide{
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.profile-area:hover,.profile-case:hover,.profile-proof:hover,.profile-help:hover,.tl-branch:hover,.proj-tile:hover,.profile-wide:hover,.tl-card:hover{
  border-color:var(--accent);box-shadow:var(--shadow);
}
.proj-tile:hover{transform:translateY(-3px)}
@media(prefers-reduced-motion:reduce){.profile-area,.profile-case,.profile-proof,.profile-help,.tl-card,.tl-branch,.proj-tile,.profile-wide{transition:none}.proj-tile:hover{transform:none}}

/* ===== Развилка линии времени ===== */
.tl-fork .tl-card{padding:20px 22px}
.tl-fork .tl-card > p{max-width:720px}
.tl-branches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:26px;position:relative}
.tl-branches::before{content:"";position:absolute;left:25%;right:25%;top:-14px;height:12px;border:2px solid var(--accent);border-bottom:0;border-radius:12px 12px 0 0}
.tl-branches::after{content:"";position:absolute;left:50%;top:-26px;height:12px;width:2px;background:var(--accent);transform:translateX(-1px)}
.tl-branch{border:1px solid var(--line);border-radius:12px;padding:16px 18px;background:var(--bg)}
.tl-branch h4{font:400 19px/1.25 var(--serif);margin:0 0 8px}
.tl-branch p{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.tl-branch .tl-tags{margin-top:12px}
@media(max-width:700px){.tl-branches{grid-template-columns:1fr}.tl-branches::before,.tl-branches::after{display:none}}

/* ===== Примеры: подробные карточки ===== */
.profile-case-full dl{display:grid;gap:14px}
.profile-case-full dd p{margin:0;font-size:14px;line-height:1.55}
.profile-case-full .sp-list{font-size:14px;color:var(--muted);gap:5px;margin-top:2px}
.profile-case-full h3{font-size:22px}

/* ===== Плитки продуктов ===== */
.proj-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}
.proj-tile{display:flex;flex-direction:column;align-items:flex-start;gap:10px;text-align:left;min-height:190px;padding:18px;background:var(--panel);border:1px solid var(--line);border-radius:14px;color:var(--ink);font:inherit;cursor:pointer}
.proj-tile .svc-n{font-size:12px;letter-spacing:.08em;color:var(--muted);text-transform:none}
.proj-tile b{font:400 23px/1.2 var(--serif)}
.proj-stage{font-size:12px;font-weight:500;letter-spacing:.04em;color:var(--accent);border:1px solid var(--accent);border-radius:99px;padding:4px 10px}
.proj-more{margin-top:auto;font-size:13px;color:var(--muted)}
.proj-tile:hover .proj-more{color:var(--accent)}
.proj-tile:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.proj-dialog .proj-meta{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin:0 0 8px}
.proj-dialog h2{font:400 clamp(26px,4vw,34px)/1.15 var(--serif);margin:0 0 8px;padding-right:48px}
.proj-dialog .pg-tag{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin:0 0 10px}
.proj-dialog .pg-lead{font-size:17px;line-height:1.6;color:var(--ink);margin:0 0 8px}
.proj-dialog .pg-act{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.proj-dialog .modal-body{max-width:640px}
.profile-more-row{margin:22px 0 0}

/* ===== Блок «Связаться» ===== */
.profile-cta .profile-wide{align-items:center;gap:40px;padding:36px 40px;background:linear-gradient(135deg,var(--panel),var(--accent-soft))}
.profile-cta .profile-wide h2{margin:6px 0 12px}
.profile-cta .profile-wide-text{max-width:560px;font-size:16px;color:var(--muted)}
.profile-cta-actions{display:grid;grid-template-columns:1fr;gap:12px;flex:0 0 280px;width:280px}
.profile-cta-actions .btn{width:100%;justify-content:center;min-height:48px;text-align:center}
.profile-cta .profile-wide:hover{border-color:var(--line);box-shadow:none}
@media(max-width:800px){.profile-cta .profile-wide{padding:24px 20px;gap:22px}.profile-cta-actions{flex:1 1 auto;width:100%}}

/* ===== Поток опыта: пары этапов сливаются и переходят в следующие ===== */
.flow{display:grid;max-width:1040px}
.flow-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.flow-card{position:relative;display:flex;flex-direction:column;gap:8px;padding:18px 20px 16px;background:var(--panel);border:1px solid var(--line);border-radius:14px;transition:border-color .2s ease,box-shadow .2s ease}
.flow-card:hover{border-color:var(--accent);box-shadow:var(--shadow)}
.flow-card h3{font:400 21px/1.25 var(--serif);margin:0}
.flow-card p{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.flow-num{align-self:flex-start;width:36px;height:36px;border-radius:50%;border:2px solid var(--accent);display:flex;align-items:center;justify-content:center;font-size:12px;letter-spacing:.06em;color:var(--accent);background:var(--panel);transition:background .25s ease,color .25s ease,box-shadow .25s ease}
.flow-row.is-passed .flow-num{background:var(--accent);color:#fff}
.flow-row.is-current .flow-num{box-shadow:0 0 0 6px var(--accent-soft)}
.flow-row.is-current .flow-card{border-color:color-mix(in srgb,var(--accent) 55%,var(--line))}
.flow-join{position:relative;height:56px}
.flow-join svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.flow-join path{fill:none;stroke:var(--line);stroke-width:2;vector-effect:non-scaling-stroke;transition:stroke .3s ease}
.flow-join.is-passed path{stroke:var(--accent)}
.flow-dot{position:absolute;left:50%;top:50%;width:14px;height:14px;border-radius:50%;background:var(--bg);border:2px solid var(--line);transform:translate(-50%,-50%);transition:background .3s ease,border-color .3s ease}
.flow-join.is-passed .flow-dot{background:var(--accent);border-color:var(--accent)}
.flow-label{margin:4px 0 14px;text-align:center;font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.flow-bridge{margin:20px auto 0;max-width:780px;text-align:center;font-size:15px;line-height:1.6;color:var(--muted)}
.flow-bridge::before{content:"⇄  ";color:var(--accent)}
@media(max-width:700px){
  .flow-row{grid-template-columns:1fr}
  .flow-join{height:34px}.flow-join svg{display:none}
  .flow-join::before{content:"";position:absolute;left:50%;top:0;bottom:0;width:2px;background:var(--line);transform:translateX(-1px)}
  .flow-join.is-passed::before{background:var(--accent)}
}
@media(prefers-reduced-motion:reduce){.flow-card,.flow-num,.flow-join path,.flow-dot{transition:none}}

/* ===== Чипы под вводным текстом — в одну строку ===== */
.profile-facts{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.profile-facts::-webkit-scrollbar{display:none}
.profile-facts span{white-space:nowrap;flex:0 0 auto}

/* ===== Плитки: стадия и «Подробнее» на одном уровне ===== */
.proj-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;flex-wrap:wrap}
.proj-more{margin-top:0}
.proj-dialog .proj-note{margin:14px 0 0;padding:10px 14px;border-left:3px solid var(--accent);background:var(--accent-soft);border-radius:0 10px 10px 0;font-size:14px;line-height:1.55;color:var(--ink)}

/* ===== Карточки «Как мы можем работать вместе» ===== */
.help-when{margin:0;font-size:14px;line-height:1.5;color:var(--ink)}
.help-when b{color:var(--accent);font-weight:500}
.flow-card .tl-tags{display:flex;flex-wrap:wrap;gap:8px 6px;margin-top:8px}
.flow-card .tl-tags span{padding:4px 11px;line-height:1.3}
.proj-tiles{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.proj-foot{flex-wrap:nowrap}
.proj-tile{min-height:170px}
.proj-stage,.proj-more{white-space:nowrap}

/* ===== Плитки продуктов: квадратные, в одну ленту ===== */
.proj-tiles.hs{display:flex;grid-template-columns:none;gap:12px}
.proj-tiles.hs > .proj-tile{flex:0 0 calc((100% - 48px) / 5);min-width:176px;aspect-ratio:1 / 1;min-height:0;padding:16px;justify-content:flex-start}
.proj-tile b{font-size:21px}
.proj-foot{margin-top:auto;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;flex-wrap:nowrap}
.hs-nav[hidden],.hs-dots[hidden]{display:none}

/* ===== 7 и 8 — текущая стадия (зелёным) ===== */
:root{--now:#2e7d5b;--now-soft:#e4f1ea}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--now:#5fc596;--now-soft:#173326}}
:root[data-theme="dark"]{--now:#5fc596;--now-soft:#173326}
.flow{max-width:none}
.flow-branch{border-color:color-mix(in srgb,var(--now) 45%,var(--line));background:linear-gradient(180deg,var(--now-soft),var(--panel) 60%)}
.flow-branch:hover{border-color:var(--now)}
.flow-branch .flow-num{border-color:var(--now);color:#fff;background:var(--now)}
.flow-row.is-passed .flow-branch .flow-num,.flow-row-end.is-passed .flow-num{background:var(--now);color:#fff}
.flow-row-end.is-current .flow-num{box-shadow:0 0 0 6px var(--now-soft)}
.flow-row-end.is-current .flow-card{border-color:var(--now)}
.flow-branch .tl-tags span{border-color:var(--now);color:var(--now)}
.flow-now{position:absolute;top:18px;right:20px;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--now);border:1px solid var(--now);border-radius:99px;padding:3px 10px}
.flow-bridge{max-width:none;white-space:nowrap}
@media(max-width:1100px){.flow-bridge{white-space:normal}}
.flow{grid-template-columns:minmax(0,1fr)}
.flow-bridge{overflow-wrap:anywhere}

/* ===== Телефон: без горизонтального скролла ===== */
@media(max-width:640px){
  .profile-topbar{min-width:0;max-width:100%}
  .profile-topbar .mark{flex:0 0 auto}
  .profile-nav{min-width:0;max-width:100%}
  .profile-main{min-width:0;overflow-x:clip}
  .profile-hero > div{min-width:0}
  .profile-hero h1{overflow-wrap:anywhere}
  .profile-actions,.profile-facts{max-width:100%}
  .profile-portrait{max-width:100%}
}
@media(max-width:800px){.profile-nav{flex-wrap:nowrap!important}}

/* ===== Страница проекта Digital Legal Concierge ===== */
.dlc-hero{padding:64px 0 56px;max-width:900px}
.dlc-hero h1{font-size:clamp(34px,5.4vw,60px);margin:12px 0 18px}
.dlc-stage{margin:18px 0 0}.dlc-stage span{display:inline-block;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);border:1px solid var(--accent);border-radius:99px;padding:4px 12px}
.dlc-text{max-width:820px}.dlc-text p{font-size:17px;line-height:1.7;margin:0 0 14px;color:var(--ink)}
.dlc-sub{font:400 22px/1.25 var(--serif);margin:32px 0 14px}
.dlc-video{margin:0 0 26px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:#0b1020;box-shadow:var(--shadow)}
.dlc-video video{display:block;width:100%;height:auto}
.dlc-video figcaption{padding:14px 18px;font-size:15px;line-height:1.5;color:var(--muted);background:var(--panel);border-top:1px solid var(--line)}
.dlc-shots{display:grid;gap:26px}
.dlc-shot{margin:0;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:var(--panel);box-shadow:var(--shadow)}
.dlc-shot img{display:block;width:100%;height:auto}
.dlc-shot figcaption{padding:14px 18px;font-size:15px;line-height:1.5;color:var(--muted);border-top:1px solid var(--line)}
.dlc-shot figcaption b{color:var(--ink);font-weight:500}
.dlc-demo{margin:16px 0 0;font-size:13px;color:var(--muted)}
.dlc-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:860px}
.dlc-step{display:flex;gap:18px;align-items:flex-start;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 20px;transition:border-color .18s ease}
.dlc-step:hover{border-color:var(--accent)}
.dlc-step-n{flex:0 0 38px;width:38px;height:38px;border-radius:50%;border:2px solid var(--accent);color:var(--accent);display:flex;align-items:center;justify-content:center;font-size:12px;letter-spacing:.06em}
.dlc-step h3{font:400 20px/1.25 var(--serif);margin:0 0 4px}.dlc-step p{margin:0;font-size:15px;line-height:1.55;color:var(--muted)}
.dlc-deals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dlc-deal{display:flex;flex-direction:column;gap:8px}.dlc-deal h3{margin:0}
.dlc-price{font:400 32px/1.2 var(--serif);color:var(--accent);margin:0 0 6px}
@media(max-width:700px){.dlc-deals{grid-template-columns:1fr}.dlc-step{padding:14px 16px;gap:12px}}

@media(max-width:800px){.dlc-hero{padding:34px 0 36px}}
.profile-nav a,.profile-lang,.hs-dot{min-height:var(--hit);display:inline-flex;align-items:center;justify-content:center}.hs-dot{min-width:var(--hit)}
/* планшет: меню разделов — одной строкой под шапкой, как на телефоне */
@media(min-width:801px) and (max-width:1100px){
  .profile-topbar{flex-wrap:wrap}
  .profile-nav{display:flex;order:3;width:100%;flex-wrap:nowrap;overflow-x:auto;gap:18px;padding:0 0 4px;scrollbar-width:none}
  .profile-nav::-webkit-scrollbar{display:none}
  .profile-nav a{white-space:nowrap;flex:0 0 auto}
}
/* единая шапка сайта: «Назад» и меню разделов теперь первой строкой страницы */
.profile-main>.doc-back{margin:26px 0 6px}
.profile-main>.profile-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:20px;margin:0 0 4px;padding:0;scrollbar-width:none}
.profile-main>.profile-nav::-webkit-scrollbar{display:none}
.profile-main>.profile-nav a{white-space:nowrap;flex:0 0 auto}
.profile-hero{padding-top:28px}.sp-hero{padding-top:28px}.dlc-hero{padding-top:28px}
@media(max-width:800px){.profile-main>.profile-nav{display:flex!important;order:0;width:auto}.profile-hero{padding-top:20px}.sp-hero,.dlc-hero{padding-top:16px}}
.profile-main>.profile-nav a{padding-inline:0;justify-content:flex-start}
