/* ══════════ ADAPTIVE / мобилка и планшет варианта 01 (светлый) — 03.09.2026 ══════════
   Две раскладки, не три: до 767 — телефон, дальше десктопная сетка ужимается
   (правило Германа из AST, 01.09.2026). Файл грузится последним и переписывает
   только то, что на узком экране ломается. Десктоп не трогает. */

/* ── сквозное: куки-плашка, согласие в формах ── */
.ck{position:fixed;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));z-index:8000;display:none;
  align-items:center;gap:14px;max-width:560px;padding:14px 14px 14px 18px;border-radius:16px;
  background:#13212a;color:#fff;font-size:12px;line-height:1.45;box-shadow:0 18px 50px rgba(0,0,0,.3)}
.ck.is-on{display:flex}
.ck a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.ck-btns{display:flex;gap:6px;flex:0 0 auto}
.ck-btns button{height:40px;padding:0 14px;border-radius:12px;font-size:12px;font-weight:600;white-space:nowrap}
.ck-ok{background:var(--g);color:#13212a}
.ck-no{background:rgba(255,255,255,.12);color:#fff}
@media(min-width:768px){.ck{left:24px;right:auto;bottom:24px}}

.agree{display:flex;align-items:flex-start;gap:10px;margin-top:6px;font-size:11px;line-height:1.45;color:var(--muted);cursor:pointer;text-align:left}
.agree input,.pp-fields .agree input{appearance:none;-webkit-appearance:none;flex:0 0 20px;width:20px;height:20px;min-width:20px;
  padding:0;margin:0;border:1.5px solid #b8c0bb;border-radius:6px;background:#fff;box-sizing:border-box;
  display:grid;place-items:center;cursor:pointer;box-shadow:none;transition:background .18s,border-color .18s}
.pp-fields .agree input:focus,.agree input:focus{box-shadow:0 0 0 3px rgba(188,228,125,.45);border-color:#13212a}
.agree input:checked,.pp-fields .agree input:checked{background:#13212a;border-color:#13212a}
.agree input:checked::after{content:"";display:block;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;
  transform:rotate(45deg);margin:-2px 0 0 1px}
.agree.is-error input{border-color:#d9432f;box-shadow:0 0 0 4px rgba(217,67,47,.14)}
.agree a{color:var(--ink);font-weight:600;border-bottom:1px solid rgba(18,26,18,.25)}
.contact-main .agree{color:#3e503f}.contact-main .agree a{color:#13212a}
.contact-main .agree input{border-color:rgba(18,26,18,.3)}
.contact-legal{display:none}
.pp-legal{display:none}
.team-copy h2 .team-title-mobile,.r5 .mobile-card-icon{display:none}
/* тап-зона у чекбокса 44px — расширяем через невидимое поле */
.agree{position:relative;padding:6px 0}
.agree input{position:relative}
.agree input::before{content:"";position:absolute;inset:-13px}

/* ── планшет 768–1100: десктопная сетка ужимается ── */
@media(min-width:768px) and (max-width:1100px){
  .r5 .header{width:calc(100% - 32px);top:16px}
  .header .menu-island{display:none}
  .header .contact-island .callback{display:none}
  .r5.r4-one .copy{left:5%;top:auto;bottom:6%;width:50%}
  .r5.r4-one .display{font-size:clamp(44px,5.8vw,64px)}
  .r5.r4-one .lead{width:auto;max-width:none}
  .r5.r4-one .lead .ll{display:inline;white-space:normal}
  .r5.r4-one .lead .ll::after{content:" "}
  .r5.r4-one .portrait-stack{left:50%;width:62%;height:112%;top:-2%;opacity:1;transform:none}
  .r5.r4-one .role{display:block;right:4%;top:14%!important}
  .r5 .calc-head{grid-template-columns:1fr;gap:12px}
  .r5 .calc-head>.lead{grid-column:1}
  .r5 .calc-layout{grid-template-columns:1fr;min-height:0}
  .r5 .calc-visual{min-height:0}
  .r5 .calc-assist.r6{grid-template-columns:1fr 1fr}
  .r6 .assist-c{display:none}
  .card-grid.two{grid-template-columns:1fr 1fr}
  .team-grid{grid-template-columns:1fr}
  .team-copy{order:1;padding-left:0}
  .phone-big{order:2;width:300px;margin:10px auto -190px}
  .team-plate .section-action{padding-bottom:0}
  .tax-number{min-height:0;padding:30px;display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center}
  .tax-number strong{font-size:120px}
  .tax-number>span{margin:0}
  .tax-number .ill,.r5 .tax-number .ill{display:none}
  .tax-cards{grid-template-columns:1fr 1fr}
  .handoff-grid{grid-template-columns:1fr 1fr}
  .handoff-line,.r5 .handoff-line,.r5 .handoff-progress{display:none!important}
  .ahead-visual{min-height:320px}
  .case-files{grid-template-columns:1fr 1fr}
  .wowB-site{grid-template-columns:1fr 1fr}
  .wowB-site .wowB-copy{padding:56px 36px}
  .founder-photo{min-height:460px}
  .proof-row{grid-template-columns:1fr}
  .r5 .proof-card{display:grid;grid-template-columns:44px 1fr;gap:4px 16px;min-height:0;padding:22px 22px}
  .r5 .proof-card .card-icon{grid-row:1/3;grid-column:1;margin:0}
  .r5 .proof-card b{grid-column:2;margin:0}
  .r5 .proof-card>span:last-child{grid-column:2;max-width:none}
  .contact-stage{grid-template-columns:1fr}
  .contact-main{grid-template-columns:1fr}
  .contact-visual{display:none}
  .contact-side{min-height:0;gap:24px}
  /* плита с биндером: мокап полосой сверху, текст ниже — как на телефоне, наезда на папку нет */
  .wowA-site{display:flex;flex-direction:column;min-height:0}
  .wowA-bg{position:relative;inset:auto;order:-1;width:100%;height:340px}
  .wowA-bg img{object-position:50% 40%;-webkit-mask-image:linear-gradient(to bottom,#000 50%,transparent 100%);mask-image:linear-gradient(to bottom,#000 50%,transparent 100%)}
  .wowA-site .wowA-copy{padding:0 40px 56px;min-height:0;max-width:none}
  .wowA-site h2,.wowA-site p{max-width:560px}
}

/* ── телефон ── */
@media(max-width:1100px){
html{-webkit-text-size-adjust:100%}
body.r5{overflow-x:hidden}

/* ── шапка: логотип / телефон / WhatsApp / бургер. Меню и языки — в бургере ── */
.r5 .header,.header.hd-sticky,.header.hd-compact{top:14px;width:calc(100% - 28px);height:52px;gap:8px}
.r5 .header .island{height:52px;border-radius:16px}
.header .menu-island,.header .lang-island,.header .hd-grid,.header .contact-island>span,.header .brand-copy,.header .status-dot{display:none!important}
.header .brand-island{min-width:0;padding:0 16px;background:#fff}
.header .contact-island{margin-left:auto;padding:0 5px;gap:5px;background:#fff;transform:none!important}
.header .contact-island .circle-action{width:42px;height:42px;border:1px solid #afd980;color:#458047;background:transparent}
.header .contact-island .mob-tel{border-color:#d7dcd8;color:#13212a}
.header .contact-island .circle-action .local-icon,.header .contact-island .circle-action svg{width:17px;height:17px}
.mob-burger{flex:0 0 52px;width:52px;height:52px;padding:0;border-radius:16px;background:#13212a;color:#fff;
  display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;transition:background .3s}
.mob-burger span{display:block;width:20px;height:2px;border-radius:2px;background:currentColor;
  transition:transform .35s cubic-bezier(.65,0,.2,1),width .35s cubic-bezier(.65,0,.2,1)}
.mob-burger span:nth-child(2){width:13px;align-self:flex-end;margin-right:16px}
.mob-burger.is-open span{width:20px;margin:0;align-self:center}
.mob-burger.is-open span:nth-child(1){transform:translateY(3.5px) rotate(45deg)}
.mob-burger.is-open span:nth-child(2){transform:translateY(-3.5px) rotate(-45deg)}
.mob-open .header .island{visibility:hidden}
.mob-open .header .mob-burger{visibility:visible;background:var(--g);color:#13212a}

/* панель меню: тёмная, крупная типографика, выезжает целиком */
.mob-menu{position:fixed;inset:0;z-index:79;display:flex;flex-direction:column;
  padding:88px 22px calc(22px + env(safe-area-inset-bottom));background:#0f1a13;color:#fff;
  opacity:0;visibility:hidden;pointer-events:none;transition:opacity .38s ease,visibility 0s linear .38s;overflow:auto}
.mob-menu.is-open{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .38s ease}
.mob-menu__brand{position:absolute;left:22px;top:24px;font:600 22px/1 InterTight;letter-spacing:-.06em}
.mob-menu__brand .amp{color:var(--g)}
.mob-menu__nav{display:flex;flex-direction:column}
.mob-menu__nav a{display:flex;align-items:baseline;justify-content:space-between;padding:15px 0;border-bottom:1px solid rgba(255,255,255,.1);
  font:500 clamp(30px,8.6vw,36px)/1 InterTight,sans-serif;letter-spacing:-.045em;color:#fff;
  transform:translateY(22px);opacity:0;transition:transform .55s cubic-bezier(.2,.8,.2,1),opacity .45s ease}
.mob-menu__nav a small{font:400 10px/1 Golos,sans-serif;letter-spacing:.12em;color:rgba(255,255,255,.4)}
.mob-menu.is-open .mob-menu__nav a{transform:none;opacity:1}
.mob-menu.is-open .mob-menu__nav a:nth-child(2){transition-delay:.05s}
.mob-menu.is-open .mob-menu__nav a:nth-child(3){transition-delay:.1s}
.mob-menu.is-open .mob-menu__nav a:nth-child(4){transition-delay:.15s}
.mob-menu.is-open .mob-menu__nav a:nth-child(5){transition-delay:.2s}
.mob-menu__langs{display:flex;gap:6px;margin-top:22px}
.mob-menu__langs button{height:44px;min-width:56px;padding:0 16px;border-radius:14px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:600}
.mob-menu__langs button.active{background:var(--g);color:#13212a}
.mob-menu__foot{margin-top:auto;padding-top:26px;display:flex;flex-direction:column;gap:14px}
.mob-menu__tel{font:500 26px/1 InterTight;letter-spacing:-.04em;color:#fff}
.mob-menu__mail{font-size:13px;color:rgba(255,255,255,.6)}
.mob-menu__cta{width:100%;min-width:0;height:58px;justify-content:space-between;background:var(--g);color:#13212a;border-radius:18px}
.mob-menu__cta .cta-arrow{background:#fff;color:#13212a}
.mob-menu__note{font-size:11px;line-height:1.45;color:rgba(255,255,255,.4)}
.mob-lock,.mob-lock body{overflow:hidden}

/* ── первый экран: текст сверху, руководитель внизу, всё в один экран ── */
.r5.r4-one .hero-inner{display:flex;flex-direction:column;width:calc(100% - 20px);min-height:calc(100svh - 20px);margin:10px auto;border-radius:22px}
.r5.r4-one .copy{position:relative;left:auto;top:auto;bottom:auto;width:auto;padding:80px 20px 0;z-index:3}
.r5.r4-one .year-chip{min-height:30px;padding:0 11px;margin-bottom:16px;font-size:9px}
.r5.r4-one .display{font-size:clamp(40px,11.8vw,52px);line-height:.94;letter-spacing:-.05em}
.r5.r4-one .display span{display:block;white-space:normal}
.r5.r4-one .lead{width:auto;max-width:none;margin:16px 0 18px;font-size:13.5px;line-height:1.5}
.r5.r4-one .lead .ll{display:inline;white-space:normal}
.r5 .hero-cta-row{max-width:none;gap:12px}
.r5 .cta{min-width:0;width:100%;height:58px;justify-content:space-between;white-space:normal}
.r5 .hero-cta-note{font-size:11.5px;max-width:none;text-align:center;width:100%}
.r5.r4-one .portrait-stack{position:relative;inset:auto;left:auto;top:auto;right:auto;bottom:auto;width:100%;height:auto;flex:1 1 auto;min-height:280px;margin-top:6px;transform:none;opacity:1;z-index:1}
.r5.r4-one .portrait-choice,.r5.r4-one .portrait-choice.active{left:-4%;width:108%;height:118%;top:auto;bottom:-2%;object-position:center bottom;object-fit:contain;transform:translateY(140px) scale(1.4);transform-origin:center bottom}
/* подпись лежит на тёмном свитере и создаёт логику доверия к живому руководителю */
.r5.r4-one .role{display:block;position:absolute;left:50%;right:auto;top:auto!important;bottom:24px;transform:translateX(-50%);text-align:left;font-size:9.5px;line-height:1.35;z-index:4;width:176px;max-width:none;padding:10px 12px;border-radius:12px;background:rgba(19,33,42,.88);color:rgba(255,255,255,.72)}
.r5.r4-one .role strong{color:#fff;font-size:10.5px}
.switcher{display:none}
.r5 .route-lines{display:none}
.portrait-picker{display:none}

/* ── лента цифр: два на два ── */
.r5 .facts-ribbon{width:calc(100% - 20px);grid-template-columns:1fr 1fr;margin:10px auto;border-radius:22px}
.r5 .fact{min-height:0;padding:20px 18px 22px;border-right:0}
.r5 .fact:nth-child(odd){border-right:1px solid rgba(20,30,30,.11)}
.r5 .fact:nth-child(-n+2){border-bottom:1px solid rgba(20,30,30,.11)}
.r5 .fact-value{font-size:24px;margin:16px 0 6px}
.r5 .fact-copy{font-size:10.5px;max-width:none}
.r5 .fact-copy .l{display:inline;white-space:normal}

/* ── калькулятор ── */
.r5 .calculator{width:calc(100% - 20px);min-height:0;height:auto;padding:44px 18px 18px;border-radius:22px}
.r5 .calc-head{grid-template-columns:1fr;gap:12px;margin-bottom:24px}
.r5 .calc-head>.lead{grid-column:1;font-size:13px}
.r5 .calc-head h2{font-size:clamp(32px,9.2vw,38px);letter-spacing:-.045em}
.r5 .calc-head h2 span{white-space:normal}
.r5 .calc-layout{grid-template-columns:1fr;min-height:0;gap:10px}
.r5 .calc-form{padding:20px 18px 22px}
.r5 .calc-step.has-rule{padding-bottom:18px;margin-bottom:18px}
.r5 .calc-option{min-height:44px;padding:10px 14px;font-size:12.5px}
.r5 .calc-visual{min-height:0;padding:12px}
.calc-visual .visual-label,.calc-visual h3,.calc-badge,.calc-wave,.calc-docs{display:none}
.r5 .calc-price{font-size:38px}
.r5 .calc-result .cta{gap:12px;padding-left:18px}
.r5 .calc-result .cta>span:first-child{white-space:nowrap;font-size:12px}
.r5 .calc-assist.r6{grid-template-columns:1fr;min-height:0;margin-top:10px}
.r6 .assist-l{padding:26px 20px 0}
.r6 .assist-l h3{font-size:32px}
.r6 .assist-c{display:none}
.r6 .assist-r{padding:14px 20px 26px;gap:16px}
.r6 .assist-r p{max-width:none}
.r6 .assist-r p span{display:inline;white-space:normal}
.r5 .calc-assist.r6 .assist-button{display:flex;width:100%;justify-content:space-between}

/* текущая цена всегда под пальцем, пока пользователь выбирает опции */
.calc-mobile-price{position:fixed;z-index:74;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:66px;padding:8px 8px 8px 18px;border-radius:19px;background:#13212a;color:#fff;box-shadow:0 18px 46px rgba(13,28,22,.28);opacity:0;visibility:hidden;transform:translateY(22px) scale(.98);transition:opacity .28s ease,transform .38s cubic-bezier(.2,.8,.2,1),visibility 0s linear .38s}
.calc-mobile-price.is-on{opacity:1;visibility:visible;transform:none;transition:opacity .28s ease,transform .38s cubic-bezier(.2,.8,.2,1)}
.calc-mobile-price small{display:block;margin-bottom:3px;font-size:9px;line-height:1.1;letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.5)}
.calc-mobile-price b{display:block;font:500 22px/1 InterTight,sans-serif;letter-spacing:-.035em;white-space:nowrap}
.calc-mobile-price__go{flex:0 0 48px;width:48px;height:48px;border-radius:14px;background:var(--g);color:#13212a;display:grid;place-items:center}
.calc-mobile-price__go .local-icon,.calc-mobile-price__go svg{width:18px;height:18px}
.calc-mobile-price__go .local-icon,.calc-mobile-price__go .duo-icon{transform:rotate(90deg)}

/* ── общее для секций ── */
.full-site{width:calc(100% - 20px);margin:10px auto 34px}
.story-section{margin:10px 0;padding:50px 18px 46px;border-radius:22px}
.section-head{grid-template-columns:1fr;gap:12px;margin-bottom:26px}
.r5 .story-section>.section-head{padding-top:0}
.r5 .story-section>.section-head::before{display:none}
.section-kicker,.section-intro{grid-column:1}
.section-head h2{font-size:clamp(32px,9.2vw,38px);letter-spacing:-.045em}
.section-intro{max-width:none;font-size:13px}
/* строки, зашитые под десктопную ширину, снова переносятся сами */
.l,.section-head h2 .l,.section-intro .l,.soft-card p .l,.team-copy h2 .l,.team-intro .l,.team-points span .l,.team-points b .l,
.tax-number span .l,.ahead-caption .l,.scope-why .l,.contact-main h2 .l,.case-file h3 .l,.case-out span .l,
.trust-open-copy h3 .l,.trust-open-note .l,.wowA-site h2 .l,.wowA-site p .l,.wowB-site h2 .l,.wowB-site p .l,.r6 .assist-l h3 .l{display:inline;white-space:normal}
/* строки склеены без пробела — возвращаем пробел на стыке */
.l::after,.ll::after{content:" "}
.section-action{flex-direction:column;align-items:stretch;gap:12px;margin-top:26px}
.section-action .cta{width:100%;min-width:0}
.section-action-note{text-align:center}
.card-grid.two{grid-template-columns:1fr;gap:10px}
.soft-card,.r5 .soft-card{min-height:0;padding:22px 20px 24px;border-radius:20px}
.soft-card h3{max-width:none;margin-bottom:10px;font-size:22px}
.soft-card p{max-width:none;font-size:12.5px}
.ill-card h3,.ill-card p{max-width:none}
.ill-card .ill,.r5 .ill-card .ill{display:none}
.card-index{margin-bottom:14px}
.card-icon{margin-bottom:16px}

/* горизонтальная лента с полосой прогресса — для длинных стопок карточек */
.mtrack{display:flex!important;grid-template-columns:none!important;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;
  gap:10px;margin:0 -18px 0 0;padding:0 18px 4px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.mtrack::-webkit-scrollbar{display:none}
.mtrack>*{flex:0 0 78%;max-width:330px;min-width:0;scroll-snap-align:start;min-height:0;height:auto}
.mtrack-bar{position:relative;height:2px;margin:18px 0 0;border-radius:2px;background:rgba(18,26,18,.12)}
.mtrack-bar i{position:absolute;top:0;bottom:0;left:0;width:30%;border-radius:2px;background:#13212a;transition:left .12s}
.dark .mtrack-bar,.cases-files .mtrack-bar{background:rgba(255,255,255,.16)}
.dark .mtrack-bar i,.cases-files .mtrack-bar i{background:var(--g)}
.green .mtrack-bar{background:rgba(18,26,18,.16)}
.mtrack-hint{display:block;margin-top:10px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.dark .mtrack-hint,.cases-files .mtrack-hint{color:rgba(255,255,255,.45)}

/* ── 04 боли: иконка слева, текст справа — четыре карточки видны целиком ── */
.pain-card,.r5 .pain-card{display:grid;grid-template-columns:44px 1fr;gap:6px 16px;min-height:0;padding:20px 18px 22px}
.pain-card .card-icon{grid-row:1/3;margin:0}
.pain-card h3{font-size:19px;margin:0 0 2px;max-width:none}
.pain-card p{grid-column:2;max-width:none}

/* ── 05 один номер: текст, потом телефон уходит под низ плашки ── */
.team-plate{padding:50px 18px 0;min-height:0;overflow:hidden}
.team-grid{grid-template-columns:1fr;gap:0;min-height:0}
.team-copy{padding:0;order:1}
.team-copy h2{font-size:clamp(32px,9.2vw,38px)}
.team-copy h2>.l{display:none}
.team-copy h2 .team-title-mobile{display:block}
.team-title-mobile>span{display:block;white-space:nowrap}
/* Мобильная разбивка заголовка нарисована под русские строки — в переводе они другой длины
   и «We reply within 15 minutes» уезжала за карточку. В KZ/EN отдаём строки .l потоку. */
html:not([lang="ru"]) .team-copy h2 .team-title-mobile{display:none}
html:not([lang="ru"]) .team-copy h2>.l{display:inline;white-space:normal}
html:not([lang="ru"]) .team-copy h2>.l::after{content:" "}
.team-intro{max-width:none;margin-bottom:22px}
.team-points{grid-template-columns:1fr;gap:16px;margin-bottom:24px}
.team-points li{grid-template-columns:40px 1fr;gap:3px 14px}
.team-points .card-icon{grid-row:1/3;margin:0}
.team-points b{font-size:14.5px}
.team-plate .section-action{padding-bottom:0}
.phone-big{order:2;width:min(290px,86%);margin:28px auto -104px}
.phone-big .wa-top{padding-left:6px;padding-right:6px;gap:5px}
.phone-big .wa-top .avatar-mini{flex:0 0 22px;width:22px;height:22px}
.phone-big .wa-top>div:not(.wa-icons){min-width:0}
.phone-big .wa-top small{white-space:nowrap}
.phone-big .wa-icons{flex:0 0 auto;gap:4px}
.phone-big .wa-msg{max-width:88%}
.phone-small,.float-msg{display:none}

/* ── 06 налоговая: число в строку, карточки лентой ── */
.tax-layout{grid-template-columns:1fr;gap:10px}
.tax-number{display:grid;grid-template-columns:auto 1fr;gap:16px;align-items:center;min-height:0;padding:22px 22px 24px}
.tax-number strong{font-size:88px;line-height:.8}
.tax-number>span{margin:0;max-width:none;font-size:12.5px}
.tax-number .ill,.r5 .tax-number .ill{display:none}
.tax-cards .soft-card,.tax-cards .soft-card:first-child{grid-column:auto;min-height:0}
.tax-cards .soft-card h3,.tax-cards .soft-card:first-child h3,.tax-cards .soft-card:first-child p{max-width:none}

/* ── 07 переход: шаги в столбик, иконка слева ── */
.handoff-stage{padding:0;background:transparent;border-radius:0}
.handoff-line,.handoff-progress,.r5 .handoff-line,.r5 .handoff-progress{display:none!important}
.handoff-grid{grid-template-columns:1fr;gap:10px;position:relative}
.handoff-grid::before{content:"";position:absolute;z-index:0;left:44px;top:28px;bottom:28px;width:2px;background:linear-gradient(#bce47d 0 50%,transparent 50% 100%);background-size:2px 9px}
.handoff-card,.r5 .handoff-card{display:grid;grid-template-columns:52px 1fr;gap:4px 16px;min-height:0;padding:20px 18px 22px;background:#fff}
.handoff-card{position:relative;z-index:1}
.handoff-card .card-icon,.r5 .handoff-card .card-icon{grid-row:1/3;width:52px;height:52px;margin:0;box-shadow:none;opacity:1;transform:none;animation:none;background:#f0f2ef}
.handoff-card h3,.r5 .handoff-card h3{margin:0;padding-top:0;font-size:19px}
.handoff-card p,.r5 .handoff-card p{grid-column:2;font-size:12.5px}
.handoff-card.last,.r5 .handoff-card.last{background:var(--g)}
.handoff-card.last .card-icon{background:#fff}
.handoff-card.last h3,.handoff-card.last p{max-width:none}
.handoff-card.last .ill{display:none}

/* ── 08 на опережение: «Декабрь» компактно, карточки лентой ── */
.ahead-layout{grid-template-columns:1fr;gap:10px}
.ahead-visual,.r5 .ahead-visual{display:grid;grid-template-columns:1fr 124px;gap:6px 14px;align-items:end;min-height:0;padding:22px 20px 22px;overflow:hidden}
.ahead-month{font-size:44px;grid-column:1}
.ahead-caption{grid-column:1;max-width:none;margin-top:0}
.ahead-ill{position:relative;left:auto;right:-28px;top:auto;bottom:-12px;grid-column:2;grid-row:1/3;width:154px;max-width:none;height:auto;max-height:none;align-self:end}
.ahead-list .soft-card,.r5 .ahead-list .soft-card{background:#fff}

/* в мобильной ленте разовых услуг иконки заменяют скрытые десктопные иллюстрации */
.service-card{position:relative;padding-top:22px!important}
.service-card .mobile-card-icon{display:grid;position:absolute;top:16px;right:16px;width:46px;height:46px;margin:0;background:#fff}
.service-card .card-index{display:block;padding-right:58px}
.service-card h3{padding-right:56px;text-wrap:wrap}

/* ── 10 кейсы лентой ── */
.case-files{margin-top:22px}
.cases-files .section-head h2{font-family:InterTight,sans-serif;font-weight:500;line-height:.95;letter-spacing:-.045em}
.case-file{padding-top:30px}
.case-file-body{padding:22px 20px 24px}
.case-out b{font-size:36px}

/* ── картотека дел ── */
.wowB-site{min-height:0;grid-template-columns:1fr;padding:0}
.wowB-site .wowB-copy{padding:48px 20px 0}
.wowB-site h2{font-size:clamp(30px,8.6vw,36px)}
.wowB-site p{max-width:none}
.wowB-counter{display:flex;flex-direction:column;align-items:center;width:88%;margin:20px 6% 0;text-align:center;line-height:1.25}
.wowB-counter b{display:block;margin:0 0 6px;font-size:50px}
.stack-stage{height:320px;margin-top:6px}
.stack-card{left:6%;right:6%;height:200px;padding:20px 22px}
.stack-card h3{font-size:22px}
.stack-card .stack-fact b{font-size:20px}

/* ── 11 рекомендации ── */
.trust-open-lead,.trust-open-row{grid-template-columns:1fr;gap:14px;padding:22px 0}
.trust-open-lead{margin-top:20px}
.trust-open-value{font-size:clamp(88px,26vw,110px)}
.trust-open-copy h3{font-size:24px}
.trust-open-item b{font-size:30px}
.trust-open-industries{padding-top:20px}

/* ── 12 компания: фото первым, текст, плашки компактно ── */
.founder-layout{grid-template-columns:1fr;gap:10px}
.founder-photo{order:-1;min-height:0;aspect-ratio:4/5}
.founder-label{left:14px;right:14px;bottom:14px;padding:14px 16px}
.founder-copy,.r5 .founder-copy{padding:26px 20px 28px}
.founder-copy h2{font-size:clamp(30px,8.6vw,36px);margin:14px 0 16px}
.founder-copy p{font-size:12.5px;max-width:none}
.proof-row{grid-template-columns:1fr;gap:10px;margin-top:10px}
.proof-card,.r5 .proof-card{display:grid;grid-template-columns:44px 1fr;gap:4px 14px;min-height:0;padding:20px 18px 22px}
.proof-card .card-icon{grid-row:1/3;grid-column:1;margin:0}
.proof-card b,.r5 .proof-card b{grid-column:2;font-size:17px;margin:0 0 4px;max-width:none}
.proof-card>span:last-child{grid-column:2;max-width:none;font-size:12px}

/* ── 13 границы и FAQ ── */
.scope-grid{grid-template-columns:1fr;gap:10px}
.scope-card{padding:24px 20px}
.scope-card h3{font-size:28px;margin-bottom:12px}
.r5 .scope-card li{padding:11px 0;min-height:0;font-size:12.5px}
.scope-why{margin-top:20px;max-width:none}
.faq-list{margin-top:10px}
.faq-question{padding:18px 18px;font-size:14px;gap:14px}
.faq-answer p{padding:0 18px 20px 18px}
.r5 .faq-item.open{background:#eef1ee}

/* ── плита с биндером: мокап полосой сверху, текст ниже ── */
.wowA-site{display:flex;flex-direction:column;min-height:0;padding:0}
.wowA-bg{position:relative;inset:auto;order:-1;width:100%;height:250px}
.wowA-bg img{object-position:50% 40%;-webkit-mask-image:linear-gradient(to bottom,#000 50%,transparent 100%);mask-image:linear-gradient(to bottom,#000 50%,transparent 100%)}
.wowA-site .wowA-copy{padding:0 20px 44px;min-height:0;max-width:none}
.wowA-site h2{font-size:clamp(30px,8.6vw,36px);max-width:none}
.wowA-site p{max-width:none}
.wowA-site .section-action{margin-top:26px}

/* ── 14 контакты ── */
.contact-stage{grid-template-columns:1fr;gap:10px}
#contact.story-section{padding-top:18px}
.contact-main{grid-template-columns:1fr;gap:0;padding:20px 20px 28px}
.contact-main h2{font-size:clamp(34px,10vw,42px);max-width:none}
.contact-main .contact-lead{max-width:none;margin-bottom:22px}
.contact-visual{display:none}
.r5 .contact-label{margin-top:18px}
.contact-options{flex-wrap:wrap;gap:6px}
.contact-option{flex:1 1 auto;padding:0 10px;font-size:12px}
.contact-form{max-width:none}
.contact-form input,.contact-form button{height:56px;font-size:16px}
.contact-side{min-height:0;padding:24px 20px;gap:18px}
.contact-side .brand-mark{font-size:28px}
.contact-data b{font-size:22px}
.footer-line{flex-direction:column;gap:6px;padding:20px 4px 0;font-size:10px}
.footer-line a{display:inline-flex;align-items:center;width:max-content;min-height:44px;font-size:13px;text-decoration:underline;text-underline-offset:4px}

.r5 .fact:last-child .fact-index,.r5 .fact:last-child .fact-index b,.r5 .fact:last-child .fact-index span{color:#13212a}

/* ── попапы: шторка снизу, без правой колонки ── */
.pp-root{padding:0;align-items:end;place-items:end center}
.pp-box{width:100%;max-height:100svh;border-radius:24px 24px 0 0;transform:translateY(40px)}
.pp-on .pp-box{transform:none}
.pp-grid{grid-template-columns:1fr;min-height:0}
.pp-side{display:none}
.pp-form{padding:26px 20px calc(22px + env(safe-area-inset-bottom))}
.pp-h{font-size:26px;margin:14px 0 10px}
.pp-p{font-size:13px;margin-bottom:18px;max-width:none}
.pp-fields input,.pp-fields textarea{font-size:16px;padding:16px 18px}
.pp-channels .contact-option{flex:1 1 auto;padding:0 10px;height:44px}
.pp-x{right:14px;top:14px}
.pp-direct{font-size:12px}

/* ── прелоадер компактнее ── */
.pl-inner{width:min(520px,84vw)}
.pl-it{font-size:14px}
.pl-num{font-size:38px}
}

/* ── совсем узкие (320–360) ── */
@media(max-width:360px){
.r5.r4-one .display{font-size:38px}
.section-head h2,.team-copy h2,.r5 .calc-head h2{font-size:29px}
.mtrack>*{flex-basis:84%}
.r5 .calc-result{left:10px;right:10px;padding:16px 12px}
.r5 .calc-result .cta{padding-left:14px;gap:8px}
.r5 .calc-result .cta>span:first-child{font-size:12px}
.r5 .calc-result .cta-arrow{flex-basis:40px;width:40px;height:40px}
.stack-card h3{font-size:20px}
}

/* Планшеты: логика та же, что на телефоне, но масштаб и плотность под большой экран. */
@media(min-width:768px) and (max-width:1100px){
  .r5 .header,.header.hd-sticky,.header.hd-compact{top:16px;width:calc(100% - 32px);height:58px;gap:10px}
  .r5 .header .island{height:58px;border-radius:18px}
  .header .brand-island{padding:0 22px}
  .header .contact-island .circle-action{width:48px;height:48px}
  .mob-burger{flex-basis:58px;width:58px;height:58px;border-radius:18px}
  .mob-burger span:nth-child(2){margin-right:19px}
  .mob-menu{padding:110px 44px calc(36px + env(safe-area-inset-bottom))}
  .mob-menu__brand{left:44px;top:34px;font-size:28px}
  .mob-menu__nav a{padding:18px 0;font-size:44px}

  .r5.r4-one .hero-inner{min-height:calc(100svh - 32px);margin:16px auto;width:calc(100% - 32px);border-radius:28px}
  .r5.r4-one .copy{padding:104px 44px 0}
  .r5.r4-one .year-chip{margin-bottom:20px}
  .r5.r4-one .display{font-size:clamp(58px,7.2vw,74px);max-width:700px}
  .r5.r4-one .lead{max-width:680px;font-size:15px}
  .r5 .hero-cta-row{max-width:620px}
  .r5.r4-one .portrait-stack{min-height:500px;margin-top:10px}
  .r5.r4-one .portrait-choice,.r5.r4-one .portrait-choice.active{transform:translateY(280px) scale(1.4)}
  .r5.r4-one .role{width:230px;bottom:40px;padding:13px 15px;font-size:11px;border-radius:15px}
  .r5.r4-one .role strong{font-size:12.5px}

  .r5 .facts-ribbon,.r5 .calculator{width:calc(100% - 32px);border-radius:28px}
  .r5 .calculator{padding:62px 38px 24px}
  .r5 .calc-head h2,.section-head h2,.team-copy h2{font-size:clamp(44px,5.8vw,54px)}
  .r5 .calc-head>.lead,.section-intro{font-size:14px}
  .r5 .calc-form{padding:28px 26px}
  .r5 .calc-result .cta>span:first-child{font-size:14px}
  .r5 .calc-assist.r6{grid-template-columns:1fr 1fr}
  .r6 .assist-l{padding:34px 30px}
  .r6 .assist-r{padding:34px 30px}

  .full-site{width:calc(100% - 32px);margin:16px auto 44px}
  .story-section{margin:12px 0;padding:64px 36px 58px;border-radius:28px}
  .card-grid.two{grid-template-columns:1fr 1fr;gap:12px}
  .pain-card,.r5 .pain-card{min-height:220px}
  .mtrack>*{flex-basis:58%;max-width:520px}
  .mtrack{margin-right:-36px}
  .soft-card h3{font-size:27px}
  .soft-card p{font-size:13px}

  .team-plate{padding:64px 36px 0}
  .team-copy h2{max-width:720px}
  .team-points{grid-template-columns:1fr 1fr}
  .phone-big{width:min(360px,62%);margin:34px auto -132px}

  .handoff-grid{grid-template-columns:1fr 1fr}
  .handoff-grid::before{display:none}
  .ahead-visual,.r5 .ahead-visual{grid-template-columns:1fr 180px;padding:30px}
  .ahead-ill{width:210px;right:-40px}
  .wowB-site .wowB-copy{padding:58px 40px 10px}
  .stack-stage{height:400px}
  .founder-photo{aspect-ratio:16/10}
  #contact.story-section{padding-top:28px}
  .contact-main{padding:32px}
  .contact-side{padding:32px}
}

/* В landscape до 1100 px возвращаем две колонки: герой остаётся в первом экране, но не ломает текст. */
@media(min-width:768px) and (max-width:1100px) and (orientation:landscape){
  .r5.r4-one .hero-inner{display:block;min-height:calc(100svh - 32px)}
  .r5.r4-one .copy{position:absolute;left:5%;top:auto;bottom:7%;width:49%;padding:0;z-index:3}
  .r5.r4-one .display{font-size:clamp(48px,5.8vw,62px)}
  .r5.r4-one .lead{font-size:13px}
  .r5 .hero-cta-row{max-width:360px}
  .r5.r4-one .portrait-stack{position:absolute;left:42%;right:auto;top:0;bottom:0;width:62%;height:112%;min-height:0;margin:0}
  .r5.r4-one .portrait-choice,.r5.r4-one .portrait-choice.active{left:0;width:100%;height:100%;bottom:0;transform:none;object-position:center bottom}
  .r5.r4-one .role{left:auto;right:8%;bottom:16%;transform:none;width:210px}
}

/* Узкий desktop и landscape-планшеты не сохраняют жёсткие строки, если колонка уже текста. */
@media(min-width:1101px) and (max-width:1500px){
  .section-head h2 .l,.section-intro .l,.team-copy h2 .l,.team-intro .l,.team-points span .l,.team-points b .l,
  /* заголовок контактов держим ровно в две строки (обратка 04.09) — иначе «вашу ситуацию»
     переносится и плашка вырастает на строку */
  .trust-open-copy h3 .l,.scope-why .l,.wowA-site h2 .l{white-space:normal}
  .contact-main h2 .l{white-space:nowrap;display:block}
  .l::after,.ll::after{content:" "}
  /* кегль заголовка карточки один на весь сайт — 27px (свод 04.09.26) */
  .team-grid{grid-template-columns:380px minmax(0,1fr);gap:42px}
  .phone-big{width:390px;margin:0 0 -210px -18px}
  .phone-small,.float-msg{display:none}
  .team-copy h2{font-size:42px}
  /* ~~тёмная плашка подписи~~ [неактуально, 04.09.26 — Герман: «верни, как было»].
     Плашка живёт только на мобилке; на десктопе подпись — обычный текст справа,
     верх выравнивает alignRole() по плашке «С 2006 года», поэтому top тут не трогаем. */
}

/* Строки в акцентном блоке не обрезаются даже на нетипичном desktop-масштабе. */
.wowA-site h2 .l{white-space:normal}

/* 🔴 Плашка расчёта — только мобильная. Все её правила лежат внутри @media(max-width:1100px),
   поэтому на широком экране элемент оставался в потоке и падал сырым блоком в конец страницы
   («что-то в конце», обратка 04.09.26). Гасим на верхнем уровне, вне медиазапросов. */
.calc-mobile-price{display:none}
@media(max-width:1100px){.calc-mobile-price{display:flex}}

/* ══════════ Правки по финальному ревью 04.09.2026 ══════════ */

/* 🔴 Висячие одинокие слова в заголовках на узких экранах: строки назначены под десктоп,
   на телефоне текст течёт сам и последним словом уходит «работу», «books», «phone».
   text-wrap:balance выравнивает строки и не оставляет одиночек. */
@media(max-width:1100px){
  .section-head h2,.team-copy h2,.contact-main h2,.soft-card h3,.handoff-card h3,
  .case-file h3,.trust-open-copy h3,.trust-open-item b,.wowA-site h2,.wowB-site h2,
  .stack-card h3,.scope-card h3,.proof-card b,.faq-question,.r6 .assist-l h3,
  .pain-card h3,.service-card h3,.calc-head h2,.section-intro,.mob-menu__nav a{text-wrap:balance}
}

/* 🔴 На планшете кнопка растягивалась во всю колонку (620–680 px при контейнере 720)
   и читалась как ошибка вёрстки. Держим по контенту. */
@media(min-width:768px) and (max-width:1100px){
  .cta,.section-action .cta,.assist-button{width:auto;max-width:360px}
  .contact-form button{max-width:none}
}

/* тап-цели: круглые действия и кнопки куки добираем до 44 */
.header .circle-action,.header .contact-island .circle-action{width:44px;height:44px}
.ck-btns button{height:44px}

/* подпись руководителя на телефоне была 9.5/10.5 — мелко для имени */
@media(max-width:767px){
  .r5.r4-one .role{font-size:11px}
  .r5.r4-one .role strong{font-size:12px}
}

/* на служебных страницах бургера нет — переключатель языков остаётся в шапке и на телефоне */
@media(max-width:767px){
  body.util-page .header .lang-island{display:flex!important;padding:4px;gap:2px}
  body.util-page .header .lang-island button{width:34px;height:44px;font-size:10px}
}

/* 🔴 Пробел на стыке строк нужен везде, где .l становится inline, а не только на телефоне:
   на планшете «в двух словах —» слипалось со следующей строкой в середине абзаца. */
@media(max-width:1100px){
  .l::after,.ll::after{content:" "}
  .r6 .assist-r p .l{display:inline;white-space:normal}
}

/* Проверено 04.09: снимать неразрывные пробелы в заголовках на мобилке нельзя —
   висячее слово уходит, но вместо него на концах строк повисают предлоги
   («Отвечаем на / уведомления», «Нашли ошибку в / основных средствах»), а это грубее.
   Оставляем склейки; balance доигрывает там, где их нет — в казахском и английском. */

/* телефон и почта в бургер-панели были 26 и 16 px по высоте — добираем до тап-цели */
@media(max-width:767px){
  .mob-menu__tel{display:flex;align-items:center;min-height:48px}
  .mob-menu__mail{display:flex;align-items:center;min-height:44px}
}

/* 🔴 ПРИВИВКА. Строки .l / .ll — это обёртки для переноса, а не стилевые элементы.
   Любое правило по голому потомку (.team-points span, .proof-card span и подобные)
   способно поймать их и подменить кегль или цвет: так «Работаем по принципу одного окна»
   рендерился 12 px вместо 15, хотя у самого <b> стояло 15. Поймано Германом 04.09.26.
   Наследование делает такие промахи невозможными по всему сайту. */
.l,.ll{font-size:inherit;color:inherit;font-weight:inherit;letter-spacing:inherit;font-family:inherit}
