/* Stage 3a — home D: tablet (<=1180 / 768) and phone (<=600 / 390, checked at 320).
   Desktop >1180 keeps the accepted composition; every layout rule is inside a
   max-width query. Hidden on desktop: menu button, panel contacts, call bar. */
.menu-btn,.nav-contact,.mobile-actions{display:none}

@media(max-width:1180px){
 :root{--col:calc(100vw - 48px)}
 h2{font-size:clamp(30px,5.8vw,48px)}
 section{padding:96px 0}

 /* header: logo · phone · menu button; links move into the panel */
 .top .wrap{height:88px;gap:16px}
 .top .wrap>.tel{margin-left:auto;font-size:18px}
 .menu-btn{display:inline-flex;align-items:center;gap:12px;flex:none;min-height:48px;padding:0 18px;background:transparent;color:var(--text);border:1px solid rgba(242,240,234,.75);font:500 14px/1 var(--display);text-transform:uppercase;letter-spacing:.06em;cursor:pointer}
 .menu-btn:hover,.menu-btn[aria-expanded=true]{border-color:var(--yellow)}
 .menu-ico{position:relative;display:block;width:20px;height:14px}
 .menu-ico i{position:absolute;left:0;right:0;height:2px;background:currentColor;transition:transform .25s var(--ease),opacity .2s}
 .menu-ico i:nth-child(1){top:0}.menu-ico i:nth-child(2){top:6px}.menu-ico i:nth-child(3){top:12px}
 .menu-btn[aria-expanded=true] .menu-ico i:nth-child(1){transform:translateY(6px) rotate(45deg)}
 .menu-btn[aria-expanded=true] .menu-ico i:nth-child(2){opacity:0}
 .menu-btn[aria-expanded=true] .menu-ico i:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
 .nav{display:none}
 .top.menu-open{position:fixed;background:var(--bg);z-index:61}
 .menu-open .nav{display:flex;position:fixed;left:0;right:0;top:88px;bottom:0;z-index:60;flex-direction:column;gap:0;margin:0;padding:8px 24px 40px;background:var(--bg);overflow-y:auto;overscroll-behavior:contain;font-size:18px;letter-spacing:.04em}
 .menu-open .nav>a{display:flex;align-items:center;min-height:64px;padding:0;border-bottom:1px solid var(--line)}
 .menu-open .nav>a::after{display:none}
 .menu-open .nav>a:hover{color:var(--yellow)}
 .menu-open .nav-contact{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-top:28px;text-transform:none;letter-spacing:0}
 .nav-contact a{display:flex;align-items:center;min-height:48px}
 .nav-contact .tel{font:500 22px/1.4 var(--display);white-space:nowrap}
 .nav-contact .mail{font:400 16px/1.4 var(--body);color:var(--muted)}
 .menu-lock,.menu-lock body{overflow:hidden}
 .m .menu-open .nav{animation:menu-in .25s var(--ease)}
 @keyframes menu-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}

 /* hero: text column over a darker, even scrim; slide caption/counter/arrows join the flow */
 .hero{height:auto}
 .hero::before{background:linear-gradient(180deg,rgba(12,13,15,.86) 0,rgba(12,13,15,.72) 42%,rgba(12,13,15,.8) 78%,rgba(12,13,15,.9) 100%)}
 .hero .wrap{height:auto;justify-content:flex-start;padding:184px 0 132px}
 .hero h1{font-size:clamp(28px,8.2vw,64px);max-width:15ch}
 .hero .sub{font-size:20px;margin-top:24px}
 .hero .acts{flex-wrap:wrap;margin-top:36px}
 .hero .count{position:static;margin-top:64px;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:16px 24px;text-align:left}
 .ticker{height:64px}
 .ticker .stripe{width:64px}
 .ticker .run{font-size:20px}
 .ticker-set{gap:40px;padding-left:40px}
 .ticker .run span::after{margin-left:40px;width:10px;height:10px}

 /* projects mosaic: two columns; the odd fifth card and the wide card become horizontal rows */
 .proj{padding-top:96px}
 .head{margin-bottom:40px}
 .head p{font-size:18px}
 .head .more{white-space:nowrap;flex:none}
 .proj .route .sign,.proj .card.big .route .sign{font-size:15px;padding:10px 14px}
 .proj .route{left:16px;right:auto;bottom:16px;max-width:calc(100% - 32px)}
 .proj .pgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
 .proj .card.big,.proj .card.sm{grid-column:span 1}
 .proj .pgrid>.card:nth-child(5),.proj .pgrid+.pgrid>.card{grid-column:1/-1!important;flex-direction:row!important}
 .proj .pgrid>.card:nth-child(5) .ph,.proj .pgrid+.pgrid>.card .ph{flex:0 0 50%!important;aspect-ratio:auto!important;min-height:300px!important}
 .proj .pgrid+.pgrid{margin-top:20px!important}
 .proj .pgrid+.pgrid>.card .body{padding:28px 30px 30px!important}
 .proj .pgrid+.pgrid>.card h3{font-size:clamp(22px,3vw,30px)!important}
 .proj .card .body{padding:24px 24px 26px}
 .proj .card h3,.proj .card.big h3{font-size:clamp(19px,2.6vw,24px)}

 /* 20+ */
 .years{height:auto;padding:104px 0}
 .years .wrap{grid-template-columns:minmax(0,1fr);gap:32px}
 .big20{font-size:clamp(120px,26vw,220px)}
 .big20 small{font-size:clamp(24px,4.4vw,36px);margin-top:16px}
 .years p{font-size:18px}

 /* services: 2 columns, «Подробнее» always visible (no hover on touch) */
 .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .svc{min-height:0;padding:28px 24px 26px!important}
 .svc .ico{margin-bottom:12px}
 .svc h3{font-size:17px!important}
 .svc .go{opacity:1;transform:none;margin-top:12px}

 /* fleet and industries: two columns of equal photo cards */
 .add-head{display:block;margin-bottom:40px}
 .add-head .more,.add-link{margin-top:24px}
 .add-head h2{font-size:clamp(30px,5.8vw,48px)}
 .add-sub{font-size:20px}
 .add-fleet-grid,.add-ind-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:40px 20px!important}
 .add-b .add-item:first-child{grid-row:auto}
 .add-b .add-item:first-child img,.add-b .add-item:not(:first-child) img{height:auto!important;aspect-ratio:4/3}
 .add-b .add-item:not(:first-child){display:block!important;border:0;padding:0}
 .add-b .add-item>div:last-child,.add-b .add-item:first-child>div:last-child{padding:20px 0 0}
 .add-b .add-ind>div:last-child{padding:20px 0 0}
 .add-item h3,.add-ind h3,.add-b .add-item h3,.add-b .add-ind h3{font-size:clamp(19px,2.8vw,24px)}

 /* why */
 .why .wrap{grid-template-columns:minmax(0,1fr);gap:40px}
 .why .lead{position:static}
 .why .lead p{max-width:48ch}
 .why .lead .btn{margin-top:32px}
 .why-list{gap:0 40px}
 .why-list h3{font-size:20px}

 /* clients: 5 × 7 keeps the 35 plates a full rectangle */
 .cl-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
 .plate{height:120px;padding:20px}
 .plate img{max-height:52px}

 /* call */
 .call .stripe{height:20px}
 .call .wrap{grid-template-columns:minmax(0,1fr);gap:40px;padding:80px 0 88px;align-items:start}
 .call h2{font-size:clamp(40px,9vw,72px)}
 .call .lead{font-size:20px}
 .call .tel{font-size:clamp(24px,7.2vw,56px)!important}
 .call .rest{flex-wrap:wrap;gap:8px 32px;font-size:18px}
 .call .rest a{display:inline-flex;align-items:center;min-height:44px}

 /* footer */
 .f-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
 .f-bottom{flex-wrap:wrap;gap:12px 32px}
 footer ul{gap:0}
 footer ul a,.f-bottom a{display:inline-flex;align-items:center;min-height:44px}

 /* touch targets >=44px */
 .logo{min-height:48px}
 .more{min-height:44px;align-items:flex-end}
 .call .tel{display:flex;align-items:center;min-height:48px}
}

@media(max-width:1000px){
 :root{--col:calc(100vw - 40px)}
 .mobile-actions{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--yellow);color:var(--yellow-ink)}
 .mobile-actions a{width:50%;padding:14px;text-align:center;font-weight:600;min-height:52px;display:flex;align-items:center;justify-content:center}
 .mobile-actions a+a{border-left:1px solid var(--yellow-ink)}
 .mobile-actions a:focus-visible{outline-color:var(--yellow-ink);outline-offset:-4px}
 body{padding-bottom:52px}
}

@media(max-width:600px){
 :root{--col:calc(100vw - 32px)}
 body{font-size:16px}
 section{padding:64px 0}
 h2{font-size:clamp(26px,7.6vw,34px)}

 .top .wrap{height:72px;gap:12px}
 .logo svg{width:120px;height:36px}
 .top .wrap>.tel{font-size:0;gap:0}
 .top .wrap>.tel i{width:48px;height:48px}
 .menu-btn{padding:0 14px}
 .menu-open .nav{top:72px;padding-inline:16px}

 .hero .wrap{padding:128px 0 104px}
 .hero .sub{font-size:17px;margin-top:20px}
 .hero .acts{margin-top:28px;gap:12px}
 .hero .acts .btn{flex:1 1 auto;justify-content:center;font-size:15px;padding:18px 20px}
 .hero .count{margin-top:40px;gap:12px 16px}
 .hero .count [data-slide-caption]{width:100%;max-width:none;min-height:0;font-size:14px}
 .hero .count .n{min-width:0;margin-right:auto}
 .hero .count .n b{font-size:30px}
 .ticker{height:52px}
 .ticker .stripe{width:32px}
 .ticker .run{font-size:16px}
 .ticker-set{gap:28px;padding-left:28px}
 .ticker .run span::after{margin-left:28px;width:8px;height:8px}

 .proj{padding-top:64px}
 .head{flex-direction:column;align-items:flex-start;gap:20px;margin-bottom:32px}
 .head p{font-size:16px;margin-top:12px}
 .proj .pgrid{grid-template-columns:minmax(0,1fr);gap:16px}
 .proj .pgrid>.card:nth-child(5),.proj .pgrid+.pgrid>.card{flex-direction:column!important}
 .proj .pgrid>.card:nth-child(5) .ph,.proj .pgrid+.pgrid>.card .ph{flex:none!important;aspect-ratio:4/3!important;min-height:0!important}
 .proj .card .ph,.proj .card.sm .ph{aspect-ratio:4/3}
 .proj .pgrid+.pgrid{margin-top:16px!important}
 .proj .card .body,.proj .pgrid+.pgrid>.card .body{padding:20px 20px 24px!important}
 .proj .card h3,.proj .card.big h3,.proj .pgrid+.pgrid>.card h3{font-size:19px!important}
 .proj .card .desc{font-size:16px}
 .proj .specs{font-size:15px;gap:6px 16px}
 .proj .route{left:12px;right:12px;bottom:12px}
 .proj .route .sign,.proj .card.big .route .sign{font-size:14px;padding:10px 12px}
 .proj .card .more{min-height:44px;align-items:center}

 .years{padding:72px 0}
 .years::after{background:linear-gradient(180deg,rgba(15,16,18,.88),rgba(15,16,18,.7))}
 .years p{font-size:16px}

 .svc-grid{grid-template-columns:minmax(0,1fr)}
 .svc{padding:24px 20px!important}
 .svc .ico{width:36px;height:36px;margin-bottom:4px}

 .add-sub{font-size:18px}
 .add-desc,.add-item p,.add-ind p{font-size:16px}
 .add-fleet-grid,.add-ind-grid{grid-template-columns:minmax(0,1fr)!important;gap:32px!important}
 .add-b .add-item>div:last-child,.add-b .add-item:first-child>div:last-child,.add-b .add-ind>div:last-child{padding-top:16px}
 .add-project{min-height:44px;margin-top:8px}

 .why-list{grid-template-columns:minmax(0,1fr)}
 .why-list div{padding:24px 0}
 .why-list h3{font-size:18px}
 .why-list p{font-size:16px}
 .why .lead .btn{width:100%;justify-content:center}

 .cl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cl-grid .plate:last-child{grid-column:1/-1}
 .plate{height:96px;padding:16px}
 .plate img{max-height:44px}

 .call .wrap{padding:56px 0 64px;gap:28px}
 .call h2{font-size:clamp(30px,9.4vw,56px)}
 .call .lead{font-size:17px;margin-top:20px}
 .call .rest{font-size:16px}
 .call .btn-k{margin-top:24px;width:100%;justify-content:center}

 .f-grid{grid-template-columns:minmax(0,1fr);gap:32px}
 footer{padding:56px 0 32px;font-size:15px}
 footer ul a{display:inline-flex;align-items:center;min-height:44px}
 footer ul{gap:0}
 .f-bottom{flex-direction:column;margin-top:40px}
 .f-bottom a{display:inline-flex;align-items:center;min-height:44px}
}

@media(max-width:360px){
 .logo svg{width:100px;height:30px}
 .top .wrap{gap:10px}
 .menu-btn{padding:0 10px;gap:10px;letter-spacing:.03em}
 .svc h3{font-size:15px!important}
}

/* Narrow desktop 1181–1439 (between the accepted 1440 layout and the tablet layout):
   same composition, tighter columns so nothing overflows. 1440+ is untouched. */
@media(min-width:1181px) and (max-width:1439px){
 .why .wrap{grid-template-columns:minmax(0,400px) minmax(0,1fr);gap:56px}
 .why-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 40px}
 .why-list h3{font-size:20px}
 .svc{padding-inline:16px!important}
 .svc h3{font-size:clamp(12px,1.05vw,13px)!important}
 .call .wrap{grid-template-columns:minmax(0,1fr);gap:40px}
 .call h2{font-size:clamp(64px,5.8vw,80px)}
}
