/* Shared header and footer: content parity with the original PROAVTO70 site. */
html{scroll-padding-top:100px}
.header .nav-row{gap:18px;justify-content:flex-start;position:relative}
.header nav:not(.mobile-nav){gap:14px;margin-left:0;flex:none}
.header nav:not(.mobile-nav) a{white-space:nowrap;min-height:44px;display:inline-flex;align-items:center}
.header-phone{flex:none;white-space:nowrap}
.header-max{width:36px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:0;flex:none;margin-left:auto}
.header-max:hover{opacity:.8}
.header .menu-toggle:hover{background:#ffffff15}
.header-max img{width:28px;height:28px;object-fit:contain}
.header-address{font-size:12px;line-height:1.65;color:#c2cde0;white-space:nowrap;position:absolute;left:50%;transform:translateX(-50%)}
.header-address:hover{text-decoration:underline;text-underline-offset:4px}
@media(min-width:1431px){
  .header-address{position:static;transform:none;flex:1;text-align:center}
  .header-max{margin-left:0}
}
.header .mobile-address{grid-column:1/-1;color:#c2cde0;border-top:1px solid #ffffff20;margin-top:8px}
.mobile-max{display:flex;align-items:center;gap:12px}
.header .mobile-nav:not([hidden]){max-height:calc(100dvh - 112px);overflow-y:auto;overscroll-behavior:contain}
.site-footer .footer-main{grid-template-columns:1.1fr 1fr 1fr;gap:64px;padding-block:48px 36px}
.footer-main h3{font-size:16px;line-height:1.5;font-weight:650;color:#eef3ff;margin:0 0 18px}
.footer-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.footer-actions a{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:10px 18px;border:1px solid #53627b;border-radius:10px;font-size:14px;font-weight:600;min-height:44px}
.footer-actions a:hover{background:#ffffff10}
.footer-actions img{width:24px;height:24px}
.footer-about .footer-requisites{margin-top:28px}
.footer-about .footer-requisites h3{font-size:13px;color:#aebdd3;margin-bottom:10px}
.footer-about .footer-requisites p{margin-top:5px;font-size:13px}
.footer-contact dl,.footer-hours dl{margin:0;display:grid;gap:18px}
.footer-contact dl>div,.footer-hours dl>div{min-width:0}
.footer-contact dt,.footer-hours dt{font-size:12px;line-height:1.6;color:#aebdd3;margin-bottom:4px}
.footer-contact dd,.footer-hours dd{margin:0;font-size:14px;line-height:1.8;color:#eef3ff;max-width:36ch;overflow-wrap:anywhere}
.footer-contact dd a{display:inline-block;padding-block:3px;text-underline-offset:4px}
.footer-contact dd a:hover{text-decoration:underline}
.footer-legal{gap:12px 24px;padding-block:20px;font-size:12px}
.footer-legal a{min-height:36px}
.footer-legal>a:last-child{white-space:nowrap}
@media(max-width:1430px){
  .header nav:not(.mobile-nav){display:none}
  .header-address{position:static;transform:none;margin-left:8px;margin-right:auto}
  .header-max{margin-left:0}
  .header .menu-toggle{display:flex;color:#eef3ff;border-color:#5a6880}
  .header .mobile-nav:not([hidden]){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;padding:12px 32px 20px;border-top:1px solid #ffffff20}
  .header .mobile-nav a{padding-block:12px;min-height:44px}
}
@media(max-width:1180px){.footer-main{gap:32px!important}}
@media(max-width:800px){
  .header-address{display:none}
  .header-max{margin-left:auto}
  .site-footer .footer-main{grid-template-columns:1fr 1fr;gap:32px}
  .footer-about{grid-column:1/-1}
  .footer-about p{max-width:52ch}
}
@media(max-width:600px){
  html{scroll-padding-top:88px}
  .header .nav-row{gap:10px;height:68px}
  .header .brand>span{display:none}
  .header .brand img{width:42px;height:42px}
  .header .header-phone{font-size:13px}
  .header-phone{margin-left:auto}
  .header-phone span{font-size:10px}
  .header .header-max{display:none}
  .header .theme-toggle,.header .menu-toggle{width:38px;height:38px;min-width:38px}
  .header .mobile-nav:not([hidden]){padding-inline:20px;gap:0 16px;max-height:calc(100dvh - 100px)}
  .header .mobile-nav a{font-size:14px}
  .site-footer .footer-main{grid-template-columns:1fr;padding-block:36px 28px;gap:32px}
  .footer-about{grid-column:auto}
  .footer-contact dl{gap:16px}
  .footer-contact dd a{min-height:32px}
  .footer-legal{gap:4px 18px}
  .footer-legal a{min-height:44px}
}
@media(max-width:360px){
  .header .nav-row{gap:8px}
  .header .brand img{width:36px;height:36px}
  .header .header-phone{font-size:12px}
  .header .theme-toggle,.header .menu-toggle{width:36px;height:36px;min-width:36px}
}
