/* v5.4.1 – compact navigation, readable shared footer and contact page. */
body .site-header.perf-navigation .mega-panel{width:min(calc(100vw - 40px),1600px);padding:20px;}
body .perf-navigation .industries-mega{grid-template-columns:minmax(0,1fr);gap:14px;}
.industry-menu-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 2px;color:#171321;}
.industry-menu-head>strong{font-size:20px;font-weight:750;letter-spacing:-.025em;}
body .perf-navigation .industry-mega-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;}
body .perf-navigation .industry-mega-grid>a{display:grid;grid-template-columns:72px minmax(0,1fr) 18px;align-items:center;gap:12px;padding:8px 13px 8px 8px;min-height:64px;background:#fff;border:1px solid #e4ddee;border-radius:12px;}
body .perf-navigation .industry-mega-grid>a:hover,body .perf-navigation .industry-mega-grid>a:focus-visible{background:#f0e9fc;border-color:#ad8aff;}
.industry-mega-grid>a>img{display:block;width:72px;height:48px;object-fit:cover;border-radius:7px;}
body .perf-navigation .industry-mega-grid>a>strong{font-size:14px;line-height:1.35;color:#171321;font-weight:700;overflow-wrap:normal;}
body .perf-navigation .industry-mega-grid .industry-menu-arrow{display:block;color:#6c32e9;font-size:17px;text-align:right;}
body .perf-navigation .tools-dropdown>a{min-height:54px;align-items:center;padding:8px 12px;}
body .perf-navigation .tools-dropdown>a strong{color:#171321;font-size:14px;line-height:1.4;}
body .perf-navigation .service-menu-caption strong{color:#171321;}
body .perf-footer.site-footer{background:#f4f0fa;color:#171321;padding:36px 0 22px;box-shadow:none;border-top:1px solid #e4ddee;}
body .perf-footer .footer-main{display:grid;grid-template-columns:1.15fr 1fr 1fr 1.05fr;gap:clamp(20px,3vw,48px);align-items:start;padding-bottom:24px;}
body .perf-footer .footer-main>*{min-width:0;}
body .perf-footer .footer-brand p{max-width:320px;margin:12px 0 18px;font-size:14px;line-height:1.6;color:#514760;}
body .perf-footer .footer-brand .btn{width:auto;min-height:44px;font-size:13px;padding:10px 16px;justify-content:center;}
body .perf-footer :is(.footer-nav,.footer-contacts){display:flex;flex-direction:column;align-items:flex-start;gap:10px;}
body .perf-footer :is(.footer-nav,.footer-contacts)>strong{margin:0 0 5px;color:#171321;font-size:15px;letter-spacing:0;text-transform:none;font-weight:750;}
body .perf-footer :is(.footer-nav,.footer-contacts)>a{font-size:14px;line-height:1.45;color:#514760;overflow-wrap:anywhere;}
body .perf-footer .footer-contacts>a.footer-phone{color:#171321;font-size:20px;font-weight:750;white-space:normal;}
body .perf-footer .footer-contacts>a.footer-contact-link{color:#5422c8;font-weight:700;}
body .perf-footer .social-links{display:flex;flex-wrap:wrap;gap:8px;margin:5px 0;}
body .perf-footer .social-links .messenger-link,body .perf-mobile-menu .perf-mobile-social .messenger-link{width:44px;height:44px;display:grid;place-items:center;border:1px solid #e2d9ef;background:#fff!important;border-radius:11px;color:#5422c8!important;box-shadow:none;}
body .perf-footer .social-links .messenger-glyph,body .perf-mobile-menu .perf-mobile-social .messenger-glyph{display:grid;place-items:center;background:transparent!important;color:#5422c8!important;font-size:21px;}
body .perf-footer .social-links .messenger-glyph i,body .perf-mobile-menu .perf-mobile-social .messenger-glyph i{color:#5422c8!important;}
body .perf-footer .social-links .messenger-link:hover{border-color:#ad8aff;background:#eae0fc!important;}
body .company-identity{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.8fr);gap:14px 28px;align-items:center;background:#fff;border:1px solid #e4ddee;border-radius:14px;padding:16px 20px;margin:0;color:#171321;}
body .company-identity>div{min-width:0;display:grid;gap:5px;}
body .company-identity strong{font-size:14px;color:#171321;overflow-wrap:anywhere;}
body .company-identity :is(small,span){font-size:13px;line-height:1.45;color:#514760;overflow-wrap:anywhere;}
body .perf-footer .footer-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px 24px;padding-top:18px;margin-top:8px;border:0;color:#514760;font-size:12px;}
body .perf-footer .footer-bottom nav{display:flex;flex-wrap:wrap;gap:8px 20px;}
body .perf-footer .footer-bottom a{color:#514760;font-size:12px;line-height:1.5;}
body .perf-footer a:focus-visible,body .perf-navigation a:focus-visible{outline:2px solid #6c32e9;outline-offset:3px;}
.contacts-main{background:#fcfaff;color:#171321;}
.contacts-opening{padding:clamp(34px,5vw,76px) 0 20px;}
.contacts-hero{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:clamp(20px,4vw,70px);border:1px solid #e4ddee;border-radius:24px;padding:clamp(20px,4vw,60px);background:linear-gradient(120deg,#fff,#eee5fc);}
.contacts-hero h1{font-size:clamp(34px,4.2vw,68px);line-height:1.04;letter-spacing:-.045em;color:#171321;margin:12px 0 18px;}
.contacts-hero p:not(.contacts-kicker),.contacts-request p,.contacts-legal p{font-size:16px;line-height:1.65;color:#514760;max-width:640px;margin:0 0 20px;}
.contacts-kicker{font-size:12px;font-weight:750;letter-spacing:.08em;color:#5422c8!important;margin:0 0 8px;}
.contacts-hero img{width:100%;height:auto;border-radius:16px;display:block;}
.contacts-section{padding:clamp(24px,3vw,48px) 0;}
.contacts-section h2{color:#171321;font-size:clamp(25px,2.6vw,42px);line-height:1.14;letter-spacing:-.035em;margin:0 0 22px;}
.contacts-channels{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:14px;}
.contacts-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;padding:22px;border:1px solid #e4ddee;border-radius:16px;background:#fff;color:#171321;min-width:0;}
.contacts-card>i,.contacts-channel-icon{font-size:24px;color:#5422c8;display:grid;place-items:center;width:44px;height:44px;background:#f0e9fc;border-radius:12px;}
.contacts-channel-icon img{width:24px;height:24px;object-fit:contain;}
.contacts-card h3{margin:0;color:#171321;font-size:17px;line-height:1.3;}
.contacts-card>a,.contacts-card>span:last-child,.contacts-link{color:#5422c8;font-weight:650;font-size:15px;overflow-wrap:anywhere;}
.contacts-channel:hover{background:#f0e9fc;border-color:#ad8aff;}
.contacts-request{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(20px,4vw,60px);align-items:start;}
body .contacts-form{background:#fff;border:1px solid #e4ddee;border-radius:20px;padding:clamp(16px,3vw,32px);color:#171321;box-shadow:0 12px 36px #2514470a;}
.contacts-form>label:not(.consent){display:grid;gap:7px;color:#171321;}
.contacts-form>label>span{overflow-wrap:anywhere;}
.contacts-legal .company-identity{margin-bottom:14px;}
.contacts-main #contact{scroll-margin-top:100px;}
@media(max-width:1250px){body .perf-navigation .industry-mega-grid>a{grid-template-columns:56px minmax(0,1fr) 14px;gap:8px;}.industry-mega-grid>a>img{width:56px;height:40px;}body .perf-navigation .industry-mega-grid>a>strong{font-size:13px;}}
@media(max-width:960px){body .perf-footer .footer-main{grid-template-columns:repeat(2,minmax(0,1fr));}.contacts-hero,.contacts-request{grid-template-columns:minmax(0,1fr);}.contacts-hero img{max-width:600px;}}
@media(max-width:560px){body .perf-footer.site-footer{padding:25px 0 18px;}body .perf-footer .footer-main{gap:24px 16px;}body .perf-footer .footer-brand,body .perf-footer .footer-contacts{grid-column:1/-1;}body .company-identity{grid-template-columns:minmax(0,1fr);padding:14px;gap:10px;}body .perf-footer .footer-bottom{align-items:flex-start;}.contacts-hero{padding:20px;}.contacts-card{padding:18px;}.contacts-opening{padding-top:24px;}}
/* Keep legal tables horizontally scrollable inside their own container. */
body.privacy-page .privacy-table-wrap{width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;}
body.privacy-page .privacy-layout,body.privacy-page .privacy-content{min-width:0;}
body.privacy-page .privacy-table th{background:#f0e9fc;color:#171321;}
body.brief-site .brief-shell,body.brief-site .brief-nav,body.brief-site .brief-card{min-width:0;}
@media(max-width:460px){body.brief-site .actions-right{flex-wrap:wrap;min-width:0;}body.brief-site .actions-right .btn{flex:1 1 100%;min-width:0;white-space:normal;overflow-wrap:anywhere;}body.brief-site .header-meta{min-width:0;overflow-wrap:anywhere;}body.brief-site .footer-inner{gap:10px;}}
/* Keep legal links reachable at the end of the document when fixed controls are visible. */
body:has(.contact-widget) .perf-footer.site-footer{padding-bottom:calc(var(--perf-footer-overlay,70px) + 12px + env(safe-area-inset-bottom,0px));}
body:has(.cookie-notice:not(.hidden)) .perf-footer.site-footer{padding-bottom:calc(max(70px,var(--perf-footer-overlay,130px)) + 12px + env(safe-area-inset-bottom,0px));}
