:root {
  --mast-rail: max(clamp(24px, 5vw, 80px), calc((100vw - 1440px) / 2));
  --mast-utility-height: 34px;
  --mast-main-height: 90px;
  --header: calc(var(--mast-utility-height) + var(--mast-main-height));
  --mast-type: var(--brand-font);
  --mast-mono: var(--brand-font);
  --mast-action: #cb2532;
}
.site-mast {position: sticky; top: 0; z-index: 30; font-family: var(--mast-type); color: #202528}
.mast-utility, .mast-main {display: flex; align-items: center; padding-inline: var(--mast-rail)}
.mast-utility {
  position: relative; z-index: 2; height: var(--mast-utility-height); background: #202528;
  color: white; border-bottom: 1px solid #ffffff14; justify-content: space-between;
}
.mast-location {display: inline-flex; align-items: center; gap: 14px; font: 400 10px/1.4 var(--mast-mono); letter-spacing: .03em}
.mast-location i {width: 3px; height: 3px; border-radius: 50%; background: #ef3340}
.mast-tools, .mast-languages {display: flex; align-items: center}
.mast-tools {gap: 20px}
.mast-languages {gap: 2px}
.mast-language {
  display: grid; place-items: center; min-width: 34px; height: 30px; padding: 3px 8px;
  border-block: 2px solid transparent; color: #d7dce3; font: 600 10px/1.4 var(--mast-type);
}
.mast-language:hover, .mast-language[aria-current] {color: #fff; border-bottom-color: #ef3340}
.company-picker summary {display: flex; align-items: center; gap: 16px; min-height: 30px; cursor: pointer; list-style: none; font-size: 10px}
.company-picker summary::-webkit-details-marker {display: none}
.company-picker summary:focus-visible {outline: 2px solid white; outline-offset: 1px}
.company-picker summary span {font-size: 18px; line-height: 1; color: #d7dce3; transition: transform .2s}
.company-picker[open] summary span {transform: rotate(45deg)}
.company-panel {
  position: absolute; top: calc(100% + 9px); right: var(--mast-rail);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  width: min(620px,calc(100% - 2 * var(--mast-rail))); padding: 14px;
  background: #202528; box-shadow: 0 12px 36px #12161936; border-radius: 12px;
}
.company-item {position: relative; display: flex; align-items: center; justify-content: center; height: 88px; padding: 16px; border-radius: 6px; background: white; color: #202528}
.company-item img {max-width: 85%; max-height: 42px; width: auto; object-fit: contain}
.company-item svg {width: 12px; height: 12px; position: absolute; right: 7px; bottom: 7px}
.company-item:hover {background: #f2eeee}
.company-item:has(img[src$="sols-company.png"]) {background: #363c3e; color: white}
.company-item:has(img[src$="sols-company.png"]):hover {background: #465053}
.mast-main {gap: 28px; height: var(--mast-main-height); background: #fff; border-bottom: 1px solid #d3d6d2}
.mast-logo {display: flex; align-items: center; width: 188px; flex: 0 1 188px; min-width: 0}
.mast-logo img {height: 57px; width: auto; max-width: 100%; object-fit: contain; object-position: left}
.mast-links, .mast-buttons {display: flex; align-items: center}
.mast-links {gap: 24px; margin-left: auto}
.mast-buttons {gap: 14px; flex: none}
.mast-link {display: inline-flex; align-items: center; position: relative; min-height: 44px; white-space: nowrap; font: 600 12px/1.35 var(--mast-type)}
.mast-links .mast-link::after {
  position: absolute; content: ''; left: 0; right: 0; bottom: 5px;
  height: 2px; background: #ef3340; transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.mast-links .mast-link:is(:hover, [aria-current])::after {transform: scaleX(1)}
.mast-quote, .opening-button {
  display: inline-flex; align-items: center; justify-content: space-between; background: var(--mast-action);
  color: white; border: 1px solid var(--mast-action); border-radius: 999px; font-weight: 600;
  transition: background .2s, border-color .2s;
}
.mast-quote {min-height: 48px; padding: 12px 18px; gap: 20px; font-size: 12px; line-height: 1.4; white-space: nowrap}
.mast-quote:hover, .opening-button:hover {background: #a81e2a; border-color: #a81e2a}
.mast-quote svg, .opening-button svg {width: 18px; height: 18px; flex: none; transition: transform .2s}
.mast-quote:hover svg, .opening-button:hover svg {transform: translate(2px,-2px)}
.mast-quote .short-label, .mast-toggle, .mast-mobile {display: none}
.mast-toggle {
  align-items: center; gap: 9px; justify-content: center; min-height: 44px; padding: 0 12px; font-size: 11px;
  border: 1px solid #d3d6d2; border-radius: 999px; background: white;
}
.mast-toggle i {width: 13px; height: 7px; border-block: 1px solid}
.mast-mobile {position: absolute; top: 100%; width: 100%; padding: 8px var(--mast-rail) 16px; background: white; box-shadow: 0 12px 24px #20252820; max-height: calc(100dvh - var(--header)); overflow-y: auto}
.mast-mobile .mast-link {font-size: 15px; border-bottom: 1px solid #d3d6d2}
.opening {
  display: grid; grid-template-rows: 1fr auto; position: relative; isolation: isolate; overflow: hidden;
  padding: 0 var(--mast-rail) 27px; min-height: calc(100vh - var(--header)); min-height: calc(100dvh - var(--header));
  background: #202528; color: white; font-family: var(--mast-type);
}
.opening-photo {position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center}
.opening::before {
  position: absolute; z-index: -1; content: ''; inset: 0;
  background: linear-gradient(90deg,rgba(16,22,24,.84),rgba(16,22,24,.52) 46%,rgba(16,22,24,.08) 80%), linear-gradient(0deg,rgba(16,22,24,.72),transparent 35%);
}
.opening-copy {align-self: center; max-width: 1000px; padding: 50px 0 36px}
.opening-kicker {color: white; display: flex; align-items: center; gap: 12px; margin: 0 0 34px; font: 400 11px/1.6 var(--mast-mono); letter-spacing: .055em; text-transform: uppercase}
.opening-kicker::before {content: ''; width: 24px; height: 2px; background: #ef3340}
.opening h1 {margin: 0; color: #fff; font: 600 clamp(58px,7.4vw,112px)/1.01 var(--mast-type); letter-spacing: -.055em}
.opening-description {max-width: 470px; margin-top: 28px; color: #f0f1ee; font: 400 17px/1.65 var(--mast-type)}
.opening-actions {display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px}
.opening-button {gap: 22px; padding: 14px 22px; min-height: 50px; font-size: 13px; line-height: 1.5}
.opening-button.secondary {background: transparent; border-color: #ffffff70}
.opening-button.secondary:hover {background: #ffffff12; border-color: white}
.opening-foot {display: flex; align-items: end; justify-content: space-between; gap: 28px; border-top: 1px solid #ffffff50; padding-top: 19px}
.opening-scroll {display: flex; align-items: center; gap: 28px; font-size: 11px}
.opening-foot svg {width: 17px; height: 17px}
.opening-feature {display: grid; gap: 5px; max-width: 420px}
.opening-feature span {font: 400 9px/1.4 var(--mast-mono); letter-spacing: .08em; text-transform: uppercase; color: #e3e4e1}
.opening-feature strong {font: 600 15px/1.5 var(--mast-type); display: flex; align-items: center; gap: 32px}
.opening-feature small {font-size: 9px; line-height: 1.6; color: #eee}
.opening a:focus-visible {outline-color: white}
@media (max-width: 1250px) {
  .mast-main {gap: 20px}
  .mast-logo {flex-basis: 168px}
  .mast-links {gap: 17px}
  .mast-link {font-size: 11px}
  .mast-quote {padding-inline: 15px; gap: 15px}
}
@media (max-width: 1100px) {
  .mast-links {display: none}
  .mast-buttons {margin-left: auto}
  .mast-toggle {display: inline-flex}
  .mast-mobile:not([hidden]) {display: grid}
}
@media (max-width: 800px) {
  :root {--mast-main-height: 74px; --mast-rail: 24px}
  .mast-logo {flex-basis: 153px}
  .mast-logo img {height: 49px}
}
@media (max-width: 600px) {
  :root {--mast-utility-height: 32px; --mast-main-height: 68px; --mast-rail: 20px}
  .mast-location {display: none}
  .mast-tools {width: 100%; justify-content: space-between}
  .mast-main {gap: 12px}
  .mast-logo {flex-basis: 136px}
  .mast-logo img {height: 45px}
  .mast-buttons {gap: 8px}
  .mast-quote {min-height: 42px; padding: 10px 12px; font-size: 11px}
  .mast-quote .short-label {display: inline}
  .mast-quote .full-label, .mast-quote svg {display: none}
  .mast-toggle {min-height: 42px; padding-inline: 10px; gap: 8px; font-size: 10px}
  .company-panel {left: var(--mast-rail); gap: 8px; padding: 10px}
  .company-item {padding: 8px; height: 65px}
  .company-item img {max-height: 33px}
  .opening {padding-bottom: max(24px,env(safe-area-inset-bottom))}
  .opening-photo {object-position: 57% center}
  .opening::before {background: linear-gradient(90deg,#151b1dde,#151b1d60),linear-gradient(0deg,#151b1dd9,transparent 45%)}
  .opening-copy {padding: 35px 0 27px}
  .opening-kicker {font-size: 9px; margin-bottom: 28px}
  .opening h1 {font-size: clamp(48px,12.4vw,72px); line-height: 1.04; letter-spacing: -.05em}
  .opening-description {font-size: 14px; margin-top: 25px}
  .opening-actions {margin-top: 28px; gap: 12px}
  .opening-button {min-height: 49px; padding: 12px 16px; gap: 12px; font-size: 12px}
  .opening-foot {padding-top: 17px}
  .opening-scroll {display: none}
  .opening-feature span, .opening-feature small {font-size: 8px}
  .opening-feature strong {font-size: 14px}
}
@media (min-width: 601px) and (max-height: 710px) {
  .opening-copy {padding-block: 24px}
  .opening h1 {font-size: clamp(52px,min(7.4vw,12vh),90px)}
  .opening-kicker, .opening-description, .opening-actions {margin-block: 0}
  .opening-kicker {margin-bottom: 18px}
  .opening-description, .opening-actions {margin-top: 16px}
  .opening {padding-bottom: 15px}
  .opening-foot {padding-top: 12px}
}
@media (max-height: 470px) and (min-width: 601px) {
  :root {--mast-main-height: 54px; --mast-utility-height: 30px}
  .mast-logo img {height: 40px}
  .opening-copy {padding-block: 14px}
  .opening h1 {font-size: 40px}
  .opening-kicker {margin-bottom: 8px}
  .opening-description, .opening-actions {margin-top: 8px}
  .opening-description {font-size: 13px}
  .opening-button {min-height: 38px; padding: 8px 15px}
  .opening-foot {padding-top: 6px}
  .opening-feature {gap: 1px}
}
@media (prefers-reduced-motion: reduce) {
  .site-mast *, .opening * {transition: none !important}
}

/* The sticky navigation stays visible while each content section fills the available viewport. */
:root {--screen-section: calc(100vh - var(--header))}
@supports (height: 100dvh) {:root {--screen-section: calc(100dvh - var(--header))}}
main > section, .site-footer {min-height: var(--screen-section)}
main > :is(.section,.inner-hero,.group-block,.contact-head,.contact-strip) {display: grid; align-content: center}
main > .company-band {width: 100%; max-width: none}
.site-footer {display: grid; align-items: stretch; padding-bottom: env(safe-area-inset-bottom)}
.site-footer > .wrap {display: grid; grid-template-rows: 1fr auto}
.footer-main {align-self: center; align-items: start}
.foot-links, .contacts article, .mail-plain {min-width: 0; overflow-wrap: anywhere}
.contacts .steps-grid {grid-template-columns: repeat(3,minmax(0,1fr))}
.editorial .btn {margin-top: 1.35rem}
.mast-main {position: relative}
.mast-toggle i {height: 12px; position: relative; border: 0}
.mast-toggle i::before,.mast-toggle i::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 1px; background: currentColor;
  transition: transform .24s ease; transform-origin: center;
}
.mast-toggle i::before {top: 3px}
.mast-toggle i::after {bottom: 3px}
.mast-toggle[aria-expanded="true"] i::before {transform: translateY(2.5px) rotate(45deg)}
.mast-toggle[aria-expanded="true"] i::after {transform: translateY(-2.5px) rotate(-45deg)}
.site-footer a:focus-visible, .site-mast :is(summary,.mast-language):focus-visible {outline: 2px solid white; outline-offset: -2px}
.mast-language {scroll-margin-top: var(--header)}
main h1,main h2,main h3 {overflow-wrap: break-word}
@media (max-width: 800px) {
  .contacts .steps-grid {grid-template-columns: 1fr}
}
@media (max-width: 640px) {
  .opening-actions {column-gap: 9px}
  .opening h1 {font-size: clamp(43px,12.4vw,72px)}
  .company-band {grid-template-rows: auto 1fr}
  .company-text {align-self: center}
  .credits-list article {min-width: 0}
  .credits-list article > div {min-width: 0}
}
@keyframes lift-in {
  from {opacity: 0; transform: translateY(18px)}
  to {opacity: 1; transform: translateY(0)}
}
@keyframes photo-in {
  from {transform: scale(1.04)}
  to {transform: scale(1)}
}
@keyframes menu-in {
  from {opacity: 0; transform: translateY(-6px)}
  to {opacity: 1; transform: translateY(0)}
}
@media (prefers-reduced-motion: no-preference) {
  .opening-copy > *, .opening-foot, .inner-hero .wrap > div, .contact-head .wrap > div:first-child, .credits > h1 {
    animation: lift-in .6s cubic-bezier(.22,.68,.15,1) both;
  }
  .opening-copy > h1 {animation-delay: 55ms}
  .opening-description {animation-delay: 105ms}
  .opening-actions {animation-delay: 145ms}
  .opening-foot {animation-delay: 170ms}
  .opening-photo,.inner-photo img {animation: photo-in 1.35s cubic-bezier(.18,.6,.25,1) both}
  .entered-view {animation: lift-in .55s cubic-bezier(.2,.7,.25,1) both; animation-delay: var(--enter-delay,0ms)}
  .entered-view:focus-within {animation: none}
  .company-picker[open] .company-panel, .mast-mobile:not([hidden]) {animation: menu-in .18s ease-out both}
  .company-item img, .opening-feature svg, .opening-scroll svg {transition: transform .24s ease}
  .company-item:is(:hover,:focus-visible) img {transform: scale(1.045)}
  .opening-feature:is(:hover,:focus-visible) svg {transform: translate(2px,-2px)}
  .opening-scroll:is(:hover,:focus-visible) svg {transform: translateY(3px)}
  .service-card:is(:hover,:focus-visible) img {transform: scale(1.045)}
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after {animation: none !important; transition: none !important; scroll-behavior: auto !important}
}

/* Keep the reading indicator attached to the header without a scroll event handler. */
@keyframes reading-progress {from {transform: scaleX(0)} to {transform: scaleX(1)}}
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .mast-main::after {
      content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
      background: var(--red); transform: scaleX(0); transform-origin: left;
      animation: reading-progress 1s linear both; animation-timeline: scroll(root block);
    }
  }
}
.static-menu {display: none}
@media (max-width:1100px) {
  .static-menu {display: block}
  .static-menu summary {cursor: pointer; font-size: 12px; padding: 12px; border: 1px solid #d3d6d2; border-radius: 24px}
  .static-links {position: absolute; z-index: 3; top: 100%; left: 0; right: 0; background: white; padding: 10px var(--mast-rail); display: grid; max-height: var(--screen-section); overflow-y: auto}
}
