.mobile-menu-toggle{display:none}
@media(max-width:850px){
 html{scroll-padding-top:20px}body{width:100%;margin:0}
 .shell{width:100%;padding-left:20px;padding-right:20px;min-width:0}
 .hero header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;height:auto;min-height:86px;padding:18px 0}
 .hero header .brand{width:165px;max-width:48%;min-width:0;flex-shrink:1}
 .hero header>.request,.hero header .head-actions{display:none}
 .hero .mobile-menu-toggle{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 15px;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit;font:700 14px Arial;cursor:pointer}
 .hero header nav{display:none;order:5;width:100%;flex-basis:100%;gap:0;white-space:normal;padding:10px 0}
 .hero header nav.mobile-menu-open{display:grid;grid-template-columns:1fr 1fr}
 .hero header nav a{display:flex;align-items:center;min-height:48px;padding:10px 8px;font-size:14px;text-decoration:none;color:inherit;white-space:normal;line-height:1.4;border-bottom:1px solid #8885}
 .hero{height:auto!important;min-height:0!important}
 .hero .hero-copy,.hero .copy{width:100%;padding-top:44px;padding-bottom:52px}
 .hero h1,.hero .copy h1{font-size:clamp(25px,5.9vw,46px)!important;line-height:1.13!important;letter-spacing:-.025em;margin-bottom:24px;overflow-wrap:normal}
 .hero p,.hero .copy p{font-size:16px;line-height:1.6;max-width:100%}
 .hero p br{display:none}
 .hero-buttons{display:grid;grid-template-columns:1fr;gap:12px}
 .hero .hero-buttons a,.hero .copy .button,.hero .copy .outline{display:flex;width:100%;min-height:52px;height:auto;margin:0;padding:16px;font-size:16px;box-sizing:border-box;text-align:center}
 .hero .copy .outline{margin-top:12px}
 .hero .image{position:relative;top:auto;bottom:auto;width:100%;height:240px;clip-path:none;opacity:1;order:2}
 .hero:has(.image){display:flex;flex-direction:column}
 .hero:has(.image)>.shell{order:1}
 .hero .hero-picture{opacity:.5}
 .hero .hero-copy{padding-bottom:64px}
 .services,.technology,.portfolio,.competencies,.capabilities,.workflow,.company{padding-top:48px;padding-bottom:48px}
 h2,.technology>h2,.portfolio h2,.info h2,.materials .material-inner h2{font-size:30px;line-height:1.18;overflow-wrap:anywhere}
 .section-top,.title{display:block}.section-top>a{display:inline-block;margin-top:18px}
 .service-grid,.competency-grid,.capability-grid{grid-template-columns:1fr;gap:16px}
 .service-grid article{min-height:0;padding:24px}.service-grid h3{font-size:24px;line-height:1.2}.service-grid p{font-size:16px}
 .services.shell{grid-template-columns:1fr;gap:12px}.services.shell article{grid-template-columns:44px minmax(0,1fr);gap:14px;padding:20px 0;min-height:0}.services.shell i{width:44px;height:44px}.services.shell h2{font-size:22px;line-height:1.2}
 .material-inner{display:block;padding-top:42px!important;padding-bottom:42px!important}.material-grid,.materials{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.material-grid div,.materials article{padding:18px 14px;min-height:104px}.material-grid small,.materials small{font-size:14px;line-height:1.5}
 .tech-grid{grid-template-columns:1fr 1fr;gap:16px}.tech-grid>div:not(.tech-shot){min-width:0;min-height:0;padding:20px 0}.tech-grid b{font-size:17px;overflow-wrap:anywhere}.tech-grid span{font-size:14px}
 .info{display:grid;grid-template-columns:1fr;gap:36px;padding-top:48px;padding-bottom:48px}.info .technology{border:0;padding:0}
 .portfolio-tabs{gap:8px;margin:24px 0}.portfolio-tabs button{min-height:44px;font-size:13px;padding:10px 13px}
 .works,.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
 .works figure.real-project figcaption,.portfolio-grid figure.real-project figcaption{padding:15px;font-size:15px!important;overflow-wrap:anywhere}
 .portfolio-more{min-height:48px;width:100%}
 .workflow-grid{grid-template-columns:1fr 1fr;gap:24px}.workflow-grid h3{font-size:20px}.workflow-grid p{font-size:15px}
 .closing{padding:44px 0}.closing-inner{display:block}.closing h2{font-size:29px;overflow-wrap:anywhere}.closing p:not(.closing-label){font-size:16px}.closing-actions{display:flex;flex-direction:column;align-items:stretch;gap:20px;text-align:left}.closing-actions .request{min-height:52px;padding:16px 20px}.closing-details{max-width:none}
 .form-modal{padding:12px;align-items:start}.form-modal__card{width:100%;max-height:calc(100dvh - 24px);padding:28px 20px;border-radius:14px}.form-modal__close{width:44px;height:44px;top:10px;right:10px}.form-modal h2{font-size:29px}.form-modal__eyebrow{font-size:10px;padding-right:36px}.form-modal__lead{font-size:14px;line-height:1.6}.form-modal form{grid-template-columns:1fr;gap:16px}.form-modal form .field,.form-modal form .full,.form-modal form .agreement,.form-modal form>button{grid-column:1/-1}.form-modal input,.form-modal textarea,.form-modal select{font-size:16px;min-height:48px}.form-modal textarea{min-height:120px}.service-options{grid-template-columns:1fr}.service-options span{min-height:48px}.form-modal .agreement input{min-height:18px}.form-modal form>button{justify-self:stretch;min-height:52px;font-size:16px}.attachment-list li{align-items:start}.attachment-list button{min-height:44px}
 .portfolio-viewer{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:12px}.portfolio-viewer>img{height:55dvh}.portfolio-viewer button{min-height:44px;padding:12px;font-size:13px}
}
@media(max-width:480px){.hero .image{height:220px}.closing-label{font-size:10px}}
/* Keep the light theme's technology pair horizontal at every breakpoint. */
.info .technology p{min-width:0;margin:0;padding:38px 0 8px;background-position:left top;background-size:26px;font-size:15px;line-height:1.5}
/* Compact two-column sections on phones. */
@media(max-width:850px){
 .services,.technology,.portfolio,.competencies,.capabilities,.workflow,.company{padding-top:46px;padding-bottom:46px}
 .service-grid,.services.shell,.competency-grid,.capability-grid,.workflow-grid,.works,.portfolio-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .service-grid article,.competency-grid article,.capability-grid article{padding:24px 16px;min-width:0;min-height:230px;border-radius:16px}
 .service-grid h3,.competency-grid h3,.capability-grid h3{font-size:18px;line-height:1.25;overflow-wrap:anywhere;hyphens:auto}
 .service-grid h3 br{display:none}
 .service-grid p,.competency-grid p,.capability-grid p{font-size:14px;line-height:1.5;margin:12px 0 0}
 .competency-grid b,.capability-grid b{margin-bottom:18px}
 .services.shell article{display:flex;flex-direction:column;gap:18px;align-items:flex-start;padding:24px 16px;min-height:230px;border:1px solid #ddd;border-radius:16px}
 .services.shell article:first-child{padding-left:16px}
 .services.shell article:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center}
 .services.shell h2{font-size:18px;line-height:1.25}.services.shell p{font-size:14px;line-height:1.5}
 .workflow-grid article{padding-top:24px;padding-bottom:12px;min-width:0}.workflow-grid b{font-size:30px}.workflow-grid h3{font-size:19px;margin:20px 0 12px}.workflow-grid p{font-size:14px;line-height:1.6}
 .works figure.real-project figcaption,.portfolio-grid figure.real-project figcaption{padding:18px 14px;font-size:15px!important;line-height:1.4;min-height:80px}
 .works figure.real-project figcaption span,.portfolio-grid figure.real-project figcaption span{font-size:12px;line-height:1.5;margin-top:7px}
 .portfolio-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0;gap:8px}.portfolio-tabs button{border-radius:10px;white-space:normal;min-width:0;padding:10px 8px;font-size:12px;line-height:1.4}.portfolio-status{margin-top:16px}.portfolio-more{margin-top:16px!important}
 .hero-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.hero .hero-buttons a{font-size:14px;min-width:0;padding:14px 10px}
 .company>p:not(.eyebrow){font-size:16px;line-height:1.6}
 .shell{padding-left:16px;padding-right:16px}
 .works figure.real-project .portfolio-image-button img,.portfolio-grid figure.real-project .portfolio-image-button img{aspect-ratio:1/1}
 .services.shell i{width:52px;height:52px;background-size:32px}
 .services.shell article:last-child:nth-child(odd){min-height:150px;grid-template-columns:52px minmax(0,1fr)}
 .material-grid div,.materials article{min-height:130px;padding:22px 16px;border-radius:14px}
 .material-grid b,.materials b{font-size:23px}
 .info .technology{padding-top:10px;padding-bottom:12px;column-gap:32px}
 .info .technology p{padding-top:48px;padding-bottom:12px;background-size:32px;font-size:16px;min-height:145px}
 .info .technology b:after{font-size:25px}
 .hero .image{height:260px}
 .portfolio-tabs button{min-height:52px;font-size:13px}
 .reasons .shell{grid-template-columns:repeat(2,minmax(0,1fr));padding-top:46px;padding-bottom:46px;gap:14px;align-items:stretch}
 .reasons .shell h2{grid-column:1/-1;font-size:32px;line-height:1.12;margin:0 0 12px;letter-spacing:-.035em}
 .reasons .shell h2 br{display:none}
 .reasons .shell p{position:relative;min-width:0;min-height:185px;margin:0;padding:82px 18px 22px;border:1px solid #1113;border-radius:18px;background-color:#ffffff38;background-position:18px 22px;background-size:38px 38px;box-shadow:0 5px 0 #11108}
 .reasons .shell p b{margin:0;font-family:Arial,sans-serif;font-size:20px;font-weight:800;line-height:1.22;letter-spacing:-.025em}
 .reasons .shell p:nth-of-type(1){background-color:#111;color:#fff;border-color:#111}
 .reasons .shell p:nth-of-type(1)::before{content:'';position:absolute;left:18px;top:22px;width:38px;height:38px;background:var(--y,#ffea00);mask:url('variant-light/assets/icons/badge-check.svg') center/contain no-repeat;-webkit-mask:url('variant-light/assets/icons/badge-check.svg') center/contain no-repeat}
 .reasons .shell p:nth-of-type(1){background-image:none!important}
}
/* Vertical project stages with scroll focus. */
.workflow .workflow-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;max-width:900px;margin:36px auto 0;padding:0}
.workflow .workflow-grid article{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:24px;align-content:center;padding:28px;border:1px solid #8884;border-radius:16px;min-width:0;background:#88805}
.workflow .workflow-grid b{grid-column:1;grid-row:1/3;align-self:start;display:grid;place-items:center;width:64px;height:64px;border-radius:12px;background:#8881;color:inherit;font:700 28px/1 Arial,sans-serif;letter-spacing:-.04em}
.workflow .workflow-grid h3{grid-column:2;margin:0 0 10px;font-size:24px;line-height:1.2}
.workflow .workflow-grid p{grid-column:2;margin:0;font-size:16px;line-height:1.6}
.workflow .workflow-grid article.is-current{border-color:#b69c16;background:#e0b91f0a;box-shadow:0 8px 28px #00006}
.workflow .workflow-grid article.is-current b{background:var(--y,#E0B91F);color:#111}
@media(prefers-reduced-motion:no-preference){.workflow.is-sequenced .workflow-grid article{transition:border-color .35s ease,background-color .35s ease,box-shadow .35s ease,opacity .45s ease,transform .45s ease}.workflow.is-sequenced .workflow-grid article:not(.is-seen){opacity:.55;transform:translateY(12px)}.workflow .workflow-grid b{transition:background-color .35s ease,color .35s ease}}
@media(max-width:600px){.workflow .workflow-grid article{grid-template-columns:44px minmax(0,1fr);column-gap:16px;padding:22px 18px}.workflow .workflow-grid b{width:44px;height:44px;font-size:22px;border-radius:9px}.workflow .workflow-grid h3{font-size:21px}.workflow .workflow-grid p{font-size:15px}}
@media(max-width:850px){
 .hero:has(.image){display:block;isolation:isolate}
 .hero:has(.image)>.shell{position:relative;z-index:1}
 .hero .image{position:absolute;inset:0;width:100%;height:100%;opacity:1;z-index:0;clip-path:none;background:linear-gradient(90deg,rgba(255,234,0,.98) 0%,rgba(255,234,0,.93) 40%,rgba(255,234,0,.78) 68%,rgba(255,234,0,.35) 100%),url('variant-dark/assets/hero-cnc.png') 70% center/cover no-repeat!important}
 .hero:has(.image){min-height:100svh!important}
 .hero:has(.image)>.shell{min-height:100svh;display:flex;flex-direction:column}
 .hero .copy{flex:1;display:flex;flex-direction:column;justify-content:center;padding-top:64px;padding-bottom:88px}
 .hero .copy h1{font-size:clamp(27px,6.4vw,50px)!important;margin-top:0;margin-bottom:30px}
 .hero .copy p{font-size:17px;line-height:1.65;margin-bottom:32px}
 .hero .copy .button,.hero .copy .outline{min-height:58px;font-size:16px}
 .hero .copy .outline{background:#ffea00ba}
 .hero:has(.image) header{width:calc(100% + 32px);margin-left:-16px;margin-right:-16px;padding-left:16px;padding-right:16px;flex-shrink:0;background:var(--y,#ffea00);z-index:5;box-sizing:border-box}
 .hero:has(.image) header nav{max-width:100%;min-width:0;box-sizing:border-box}
 .hero:has(.image) header nav a{white-space:normal;overflow-wrap:anywhere}
 .hero .image,.hero .hero-picture{pointer-events:none}
}
@media(max-width:850px){
 .closing{position:relative;padding:48px 0 calc(30px + env(safe-area-inset-bottom));background:radial-gradient(ellipse at 100% 0,#e0b91f12,transparent 60%),#111214;border-top:1px solid #ffea0055}
 .closing .closing-label{display:inline-block;font-size:10px;line-height:1.6;letter-spacing:.1em;color:var(--y,#E0B91F);max-width:100%;margin:0}
 .closing .closing-inner{display:block}
 .closing h2{font:800 clamp(28px,7.8vw,38px)/1.12 Arial,sans-serif;letter-spacing:-.035em;margin:22px 0 18px;text-wrap:balance;overflow-wrap:normal}
 .closing h2 br{display:none}
 .closing .closing-inner>div>p:not(.closing-label){font-size:15px;line-height:1.65;color:#bfc1c6;margin:0;max-width:36ch}
 .closing .closing-actions{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:stretch;justify-items:stretch;margin-top:30px;text-align:left}
 .closing .closing-actions .request{width:100%;min-height:60px;padding:18px 20px;border-radius:12px;font-size:17px;box-shadow:0 6px 24px #0003}
 .closing .closing-actions>a{display:block;border:1px solid #ffffff24;border-radius:12px;background:#ffffff05;padding:19px 20px;color:#fff;font-size:24px;line-height:1.35;text-decoration:none;letter-spacing:-.025em}
 .closing .closing-actions>a::before{content:'Позвонить';display:block;margin-bottom:8px;color:#aeb1b8;font-size:12px;line-height:1.4;font-weight:400;letter-spacing:.02em}
 .closing .closing-details{width:100%;max-width:none;padding:20px;border:1px solid #ffffff24;border-radius:12px;background:#ffffff05;box-sizing:border-box}
 .closing .closing-details address{color:#f0f0f2;font-size:15px;line-height:1.6}
 .closing .closing-details address::before{content:'Наш адрес';display:block;margin-bottom:8px;color:#aeb1b8;font-size:12px;line-height:1.4;letter-spacing:.02em}
 .closing .closing-details p{padding-top:12px;margin-top:14px;border-top:1px solid #ffffff18;font-size:14px;color:#bfc1c6}
 .closing .closing-actions>a:focus-visible{outline:2px solid var(--y,#E0B91F);outline-offset:4px}
}
