/* One corporate header/footer for the homepage, projects and offers. */
.header,.footer { font: 400 var(--type-body)/1.55 var(--font-text); letter-spacing: normal; }
.header *,.footer * { box-sizing: border-box; }
.header a,.footer a { color: inherit; text-decoration: none; }
.header button { font: inherit; cursor: pointer; }
.header :focus-visible,.footer :focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
.header img,.footer img { max-width: 100%; }
.header { position: sticky; top: 0; z-index: 20; background: var(--petrol); color: var(--ice); }
.header__inner { display: flex; align-items: center; gap: 40px; height: 88px; }
.header .brand-logo img { width: 172px; }
.header .nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.header .nav a { padding-block: 12px; font-size: var(--type-caption); }
.header .nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header .header__contact { padding: 13px 20px; background: var(--lime); color: var(--petrol); border: 0; border-radius: 4px; font-size: var(--type-caption); font-weight: 500; line-height: 1.55; transition: background .2s; }
.header .header__contact:hover { background: var(--lime-hover); }
.header .burger { display: none; }
.footer { background: var(--petrol); color: var(--ice); padding: 28px 0 20px; font-size: var(--type-caption); }
.footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.footer__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px 40px; padding-bottom: 20px; }
.footer__brand { flex: 0 1 240px; min-width: 0; }
.footer .brand-logo img { width: 156px; height: auto; }
.footer__brand p { margin: 8px 0 0; color: #B7CBC8; }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-end; margin: 0; padding: 0; list-style: none; text-align: right; overflow-wrap: anywhere; }
.footer__contacts li { min-width: 0; max-width: 100%; }
.footer__contacts a { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-height: 32px; padding-block: 4px; }
.footer__contact-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 10px; color: #B7CBC8; }
.footer__copyright { flex-shrink: 0; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 20px; }
.footer__legal a { display: flex; align-items: center; min-width: 0; min-height: 32px; padding-block: 6px; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
 .header__inner { gap: 24px; }
 .header .nav { gap: 24px; }
}
@media (max-width: 900px) {
 .header__inner { height: 76px; gap: 20px; }
 .header .brand-logo img { width: 154px; }
 .header__contact { margin-left: auto; }
 .header .burger { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 44px; height: 44px; flex-shrink: 0; border: 0; padding: 10px; background: transparent; color: inherit; }
 .burger span { display: block; width: 24px; height: 1px; background: currentColor; transition: transform .2s; }
 .burger[aria-expanded=true] span:first-child { transform: translateY(3.5px) rotate(45deg); }
 .burger[aria-expanded=true] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
 .header .nav { display: none; position: absolute; top: 76px; left: 0; right: 0; margin: 0; padding: 20px 28px; background: var(--petrol); }
 .header .nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
 .header .nav a { font-size: var(--type-body); }
 .footer__top { gap: 24px; }
}
@media (max-width: 600px) {
 .header__inner { height: 72px; gap: 8px; }
 .header .brand-logo img { width: 112px; }
 .header .header__contact { padding: 10px 12px; }
 .header .burger { width: 44px; padding: 10px; }
 .header .nav { top: 72px; padding-inline: 20px; }
 .footer { padding: 24px 0 16px; }
 .footer__top { flex-direction: column; align-items: stretch; gap: 20px; padding-bottom: 12px; }
 .footer__brand { flex-basis: auto; }
 .footer .brand-logo img { width: 136px; }
 .footer__contacts { align-items: flex-start; text-align: left; }
 .footer__contacts a { justify-content: flex-start; min-height: 44px; padding-block: 8px; }
 .footer__bottom { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
 .footer__copyright { order: 1; }
 .footer__legal { flex-direction: column; align-items: flex-start; }
 .footer__legal a { min-height: 44px; }
}
@media (max-width: 360px) {
 .header .brand-logo img { width: 96px; }
 .header .header__contact { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
 .header * { transition: none !important; }
}
