/* Stage 3.17 — five trust/recommendation cards on the home page. */
.gm-why-grid-five{
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    gap:18px;
    margin-top:40px;
}
.gm-why-grid-five article{
    grid-column:span 2;
    min-height:190px;
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
}
.gm-why-grid-five article:nth-child(4){grid-column:2 / span 2;}
.gm-why-grid-five article:nth-child(5){grid-column:4 / span 2;}
.gm-why-grid-five h3{margin-top:22px;}
@media(max-width:960px){
    .gm-why-grid-five{grid-template-columns:repeat(2,minmax(0,1fr));}
    .gm-why-grid-five article,
    .gm-why-grid-five article:nth-child(4),
    .gm-why-grid-five article:nth-child(5){grid-column:auto;}
    .gm-why-grid-five article:last-child{grid-column:1 / -1;}
}
@media(max-width:640px){
    .gm-why-grid-five{grid-template-columns:1fr;gap:14px;margin-top:30px;}
    .gm-why-grid-five article,
    .gm-why-grid-five article:last-child{grid-column:auto;min-height:0;}
}

/* Stage 3.18 — make the left side of “Как нас найти” useful without overcrowding it. */
.gm-contact-copy{justify-content:flex-start}
.gm-contact-copy h3{margin-bottom:18px}
.gm-contact-arrival strong{max-width:520px;line-height:1.45}
.gm-contact-phone-block{padding-bottom:16px}
.gm-contact-phone{display:inline-block;margin-top:6px;color:var(--gm-text);font-size:21px;font-weight:700;line-height:1.25}
.gm-contact-phone:hover{color:var(--gm-yellow)}
.gm-contact-phone-block p{margin-top:7px;color:var(--gm-muted);font-size:15px;line-height:1.45}
.gm-contact-rating a,.gm-contact-rating strong{display:inline-block;margin-top:6px;color:var(--gm-text);font-size:17px;font-weight:700}
.gm-contact-rating a:hover{color:var(--gm-yellow)}
.gm-contact-route-button{margin-top:22px}
@media(max-width:960px){
  .gm-contact-copy h3{margin-bottom:14px}
}
@media(max-width:640px){
  .gm-contact-phone{font-size:20px}
  .gm-contact-arrival strong{font-size:16px}
}

/* Stage 3.19 — real works / Ходовая photo case. */
.gm-works-page .gm-work-case-wide{
  grid-column:1 / -1;
}
.gm-work-case-copy{
  padding-bottom:8px;
}
.gm-work-case-copy h2{
  margin:0;
}
.gm-work-case-copy p{
  margin-top:8px;
}
.gm-work-case-gallery{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  padding:12px 20px 20px;
}
.gm-work-case-photo{
  margin:0;
  aspect-ratio:4/5;
  overflow:hidden;
  border:1px solid var(--gm-border);
  border-radius:8px;
  background:var(--gm-bg);
}
.gm-work-case-photo img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  transition:transform .2s ease;
}
.gm-work-case-photo:hover img{
  transform:scale(1.02);
}
@media(max-width:960px){
  .gm-work-case-gallery{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media(max-width:700px){
  .gm-work-case-gallery{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px 14px 14px;gap:10px}
}
@media(max-width:420px){
  .gm-work-case-gallery{grid-template-columns:1fr;}
  .gm-work-case-photo{aspect-ratio:4/5;}
}


/* Stage 3.21 — /hodovaya hero refinement only. */
@media (min-width: 961px) {
    .gm-direction-hodovaya .gm-direction-hero-grid {
        min-height: 440px;
        grid-template-columns: 54% 46%;
        align-items: center;
    }

    .gm-direction-hodovaya .gm-direction-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-right: 52px;
    }

    .gm-direction-hodovaya .gm-direction-hero-media {
        height: 440px;
        min-height: 440px;
        align-self: center;
    }

    .gm-direction-hodovaya .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 56%;
    }
}

/* Tablet/mobile remain responsive and do not inherit a forced 440px crop. */
@media (max-width: 960px) {
    .gm-direction-hodovaya .gm-direction-hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }
    .gm-direction-hodovaya .gm-direction-hero-media img {
        object-fit: cover;
        object-position: 50% 56%;
    }
}


/* Stage 3.23 — /tormoza hero refinement only. */
@media (min-width: 961px) {
    .gm-direction-tormoza .gm-direction-hero-grid {
        min-height: 440px;
        grid-template-columns: 54% 46%;
        align-items: center;
    }

    .gm-direction-tormoza .gm-direction-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-right: 52px;
    }

    .gm-direction-tormoza .gm-direction-hero-media {
        height: 440px;
        min-height: 440px;
        align-self: center;
        overflow: hidden;
    }

    .gm-direction-tormoza .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 48%;
    }
}

@media (max-width: 960px) {
    .gm-direction-tormoza .gm-direction-hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .gm-direction-tormoza .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 48%;
    }
}


/* Stage 3.24 — /dvigatel hero refinement only. */
@media (min-width: 961px) {
    .gm-direction-dvigatel .gm-direction-hero-grid {
        min-height: 440px;
        grid-template-columns: 54% 46%;
        align-items: center;
    }

    .gm-direction-dvigatel .gm-direction-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-right: 52px;
    }

    .gm-direction-dvigatel .gm-direction-hero-media {
        height: 440px;
        min-height: 440px;
        align-self: center;
        overflow: hidden;
    }

    .gm-direction-dvigatel .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 48%;
    }
}

@media (max-width: 960px) {
    .gm-direction-dvigatel .gm-direction-hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .gm-direction-dvigatel .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 48%;
    }
}


/* Stage 3.25 — /to hero refinement only. */
@media (min-width: 961px) {
    .gm-direction-to .gm-direction-hero-grid {
        min-height: 440px;
        grid-template-columns: 54% 46%;
        align-items: center;
    }

    .gm-direction-to .gm-direction-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-right: 52px;
    }

    .gm-direction-to .gm-direction-hero-media {
        height: 440px;
        min-height: 440px;
        align-self: center;
        overflow: hidden;
    }

    .gm-direction-to .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }
}

@media (max-width: 960px) {
    .gm-direction-to .gm-direction-hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .gm-direction-to .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }
}


/* Stage 3.26 — /transmissiya hero refinement only. */
@media (min-width: 961px) {
    .gm-direction-transmissiya .gm-direction-hero-grid {
        min-height: 440px;
        grid-template-columns: 54% 46%;
        align-items: center;
    }

    .gm-direction-transmissiya .gm-direction-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-right: 52px;
    }

    .gm-direction-transmissiya .gm-direction-hero-media {
        height: 440px;
        min-height: 440px;
        align-self: center;
        overflow: hidden;
    }

    .gm-direction-transmissiya .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }
}

@media (max-width: 960px) {
    .gm-direction-transmissiya .gm-direction-hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .gm-direction-transmissiya .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 50%;
    }
}


/* Stage 3.27 — /kondicioner hero refinement only. */
@media (min-width: 961px) {
    .gm-direction-kondicioner .gm-direction-hero-grid {
        min-height: 440px;
        grid-template-columns: 54% 46%;
        align-items: center;
    }

    .gm-direction-kondicioner .gm-direction-hero-copy {
        padding-top: 48px;
        padding-bottom: 48px;
        padding-right: 52px;
    }

    .gm-direction-kondicioner .gm-direction-hero-media {
        height: 440px;
        min-height: 440px;
        align-self: center;
        overflow: hidden;
    }

    .gm-direction-kondicioner .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 45%;
    }
}

@media (max-width: 960px) {
    .gm-direction-kondicioner .gm-direction-hero-media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
        overflow: hidden;
    }

    .gm-direction-kondicioner .gm-direction-hero-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 45%;
    }
}


/* Stage 3.30 — production price-list behaviour. */
.gm-direction-price .gm-price-note{
    max-width:760px;
}

.gm-price-search{
    width:min(100%, 460px);
    margin:24px 0 30px;
}

.gm-price-search input{
    width:100%;
    min-height:46px;
    padding:10px 14px;
    border:1px solid var(--gm-border, #303036);
    border-radius:8px;
    background:var(--gm-surface, #151517);
    color:var(--gm-text, #f5f5f2);
    font:inherit;
    font-size:16px;
    outline:none;
    transition:border-color .18s ease, box-shadow .18s ease;
}

.gm-price-search input::placeholder{
    color:var(--gm-muted, #b8b8bc);
}

.gm-price-search input:focus{
    border-color:var(--gm-red, #e31e24);
    box-shadow:0 0 0 2px rgba(227,30,36,.16);
}

.gm-price-group{
    min-width:0;
}

.gm-price-group + .gm-price-group{
    margin-top:34px;
}

.gm-price-group-toggle{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    width:100%;
    margin:0 0 14px;
    padding:0;
    border:0;
    background:transparent;
    color:var(--gm-text, #f5f5f2);
    text-align:left;
    font:inherit;
    font-family:inherit;
    font-size:24px;
    line-height:1.25;
    font-weight:700;
    cursor:default;
}

.gm-price-group-chevron{
    display:none;
    flex:0 0 auto;
    color:var(--gm-muted, #b8b8bc);
    font-size:22px;
    line-height:1;
    transition:transform .18s ease, color .18s ease;
}

.gm-price-list{
    min-width:0;
}

.gm-price-row{
    display:flex;
    align-items:flex-start;
    gap:20px;
    min-width:0;
    padding:14px 0;
    border-bottom:1px solid var(--gm-border, #303036);
    scroll-margin-top:110px;
    transition:background-color .2s ease, box-shadow .2s ease;
}

.gm-price-row:first-child{
    border-top:1px solid var(--gm-border, #303036);
}

.gm-price-name{
    flex:1 1 auto;
    min-width:0;
    color:var(--gm-text, #f5f5f2);
    font-size:16px;
    line-height:1.45;
    overflow-wrap:anywhere;
}

.gm-price-value{
    flex:0 0 auto;
    margin-left:auto;
    color:var(--gm-text, #f5f5f2);
    font-size:17px;
    line-height:1.45;
    font-weight:700;
    text-align:right;
    white-space:nowrap;
}

.gm-price-row-highlight{
    background:rgba(227,30,36,.09);
    box-shadow:inset 3px 0 0 var(--gm-red, #e31e24);
}

.gm-price-no-results{
    margin-top:24px;
    padding:16px 18px;
    border:1px solid var(--gm-border, #303036);
    border-radius:8px;
    background:var(--gm-surface, #151517);
}

.gm-price-no-results p{
    margin:0;
    color:var(--gm-muted, #b8b8bc);
}

.gm-price-no-results a{
    display:inline-block;
    margin-top:8px;
    color:var(--gm-text, #f5f5f2);
    font-weight:700;
    text-decoration:underline;
    text-underline-offset:3px;
}

.gm-price-no-results a:hover{
    color:var(--gm-red-hover, #ff3b47);
}

.gm-price-empty{
    color:var(--gm-muted, #b8b8bc);
}

.gm-price-cta{
    margin-top:34px;
}

.gm-price-cta .button-yellow{
    margin-top:12px;
}

.gm-price-row[hidden],
.gm-price-group[hidden],
.gm-price-no-results[hidden]{
    display:none !important;
}

@media (min-width: 961px){
    .gm-price-group-toggle{
        pointer-events:none;
    }
}

@media (max-width: 960px){
    .gm-price-group + .gm-price-group{
        margin-top:12px;
    }

    .gm-price-group-toggle{
        min-height:48px;
        margin:0;
        padding:12px 0;
        border-bottom:1px solid var(--gm-border, #303036);
        font-size:21px;
        cursor:pointer;
    }

    .gm-price-group-chevron{
        display:inline-block;
    }

    .gm-price-group-toggle[aria-expanded="true"] .gm-price-group-chevron{
        transform:rotate(180deg);
        color:var(--gm-red-hover, #ff3b47);
    }

    .gm-price-list{
        padding-top:4px;
    }

    .gm-price-search{
        margin:20px 0 24px;
    }
}

@media (max-width: 560px){
    .gm-price-row{
        flex-wrap:wrap;
        gap:5px 14px;
        padding:13px 0;
    }

    .gm-price-name{
        flex:1 1 100%;
        font-size:16px;
    }

    .gm-price-value{
        flex:1 1 100%;
        margin-left:0;
        font-size:16px;
        text-align:right;
        white-space:normal;
    }

    .gm-price-group-toggle{
        font-size:20px;
    }
}

/* Stage 3.33 — legal owner requisites */
.gm-footer-bottom-left{
    min-width:0;
}
.gm-footer-requisites{
    margin-top:10px;
    color:var(--gm-muted, #B8B8BC);
    font-size:12px;
    line-height:1.5;
}
.gm-legal-owner{
    margin:0 0 30px;
    padding:20px 22px;
    background:var(--gm-surface, #151517);
    border:1px solid var(--gm-border, #303036);
    border-radius:10px;
}
.gm-legal-owner h2{
    margin:0 0 12px;
    font-size:22px;
}
.gm-legal-owner p{
    margin:6px 0;
}
@media (max-width:640px){
    .gm-footer-requisites{
        max-width:320px;
    }
    .gm-legal-owner{
        padding:18px 16px;
    }
}

/* Stage 3.37 — conversion-first hero on all six direction pages. */
.gm-direction-page .gm-direction-hero-grid{
  min-height:0;
  grid-template-columns:52% 48%;
  align-items:center;
}
.gm-direction-page .gm-direction-hero-copy{
  justify-content:center;
  padding:42px 46px 42px 0;
  min-width:0;
}
.gm-direction-page .gm-direction-brand-lockup{
  display:block;
  width:min(100%,460px);
  height:auto;
  margin:20px 0 22px;
  object-fit:contain;
  object-position:left center;
}
.gm-direction-page .gm-hero-problem-picker{
  max-width:680px;
}
.gm-direction-page .gm-hero-problem-title{
  margin:0 0 12px;
  color:var(--gm-text,#f5f5f2);
  font-size:17px;
  line-height:1.35;
  font-weight:700;
}
.gm-direction-page .gm-hero-symptom-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.gm-direction-page .gm-hero-symptom{
  min-height:40px;
  padding:8px 12px;
  border:1px solid var(--gm-border,#303036);
  border-radius:8px;
  background:var(--gm-surface,#151517);
  color:var(--gm-text,#f5f5f2);
  font-size:14px;
  line-height:1.25;
  font-weight:600;
  text-align:left;
  transition:border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.gm-direction-page .gm-hero-symptom:hover{
  border-color:#5b5b64;
}
.gm-direction-page .gm-hero-symptom.is-selected{
  border-color:var(--gm-red,#e31e24);
  background:#181719;
  box-shadow:inset 3px 0 0 var(--gm-red,#e31e24);
}
.gm-direction-page .gm-hero-contact-choice{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  padding:13px 14px;
  border:1px solid rgba(227,30,36,.5);
  border-radius:9px;
  background:rgba(227,30,36,.07);
}
.gm-direction-page .gm-hero-contact-choice[hidden]{display:none!important}
.gm-direction-page .gm-hero-contact-choice-copy{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
  font-size:14px;
  line-height:1.35;
}
.gm-direction-page .gm-hero-contact-choice-copy strong{
  color:var(--gm-text,#f5f5f2);
}
.gm-direction-page .gm-hero-contact-choice-copy>span{
  color:var(--gm-muted,#b8b8bc);
}
.gm-direction-page .gm-hero-contact-choice-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  flex:0 0 auto;
}
.gm-direction-page .gm-hero-contact-choice-actions .button{
  min-height:44px;
  padding:0 14px;
  font-size:13px;
}
.gm-direction-page .gm-direction-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.gm-direction-page .gm-direction-hero-actions .gm-hero-call{
  margin-top:0;
}
.gm-direction-page .gm-direction-hero-actions .button{
  min-height:52px;
}
.gm-direction-page .gm-direction-hero-copy .gm-trust-line{
  margin-top:16px;
}
.gm-direction-page .gm-price-jump{
  margin-top:12px;
}

.gm-direction-page .gm-direction-hero-media{
  position:relative;
  align-self:center;
  width:100%;
  height:clamp(430px,52vh,500px);
  min-height:0;
  margin:0;
  overflow:hidden;
  background:#101012;
  touch-action:pan-y;
}
.gm-direction-page .gm-direction-work-slides,
.gm-direction-page .gm-direction-work-slide{
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
}
.gm-direction-page .gm-direction-work-slide[hidden]{display:none!important}
.gm-direction-page .gm-direction-work-slide img{
  width:100%;
  height:100%;
  min-height:0;
  object-fit:cover;
  object-position:center;
}
.gm-direction-page .gm-direction-gallery-arrow{
  position:absolute;
  z-index:3;
  top:50%;
  width:44px;
  height:52px;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.28);
  border-radius:8px;
  background:rgba(11,11,12,.68);
  color:#fff;
  font-size:34px;
  line-height:1;
  display:grid;
  place-items:center;
  transition:background .18s ease,border-color .18s ease;
}
.gm-direction-page .gm-direction-gallery-arrow:hover{
  background:rgba(11,11,12,.88);
  border-color:rgba(255,255,255,.55);
}
.gm-direction-page .gm-direction-gallery-prev{left:14px}
.gm-direction-page .gm-direction-gallery-next{right:14px}
.gm-direction-page .gm-direction-gallery-counter{
  position:absolute;
  z-index:3;
  right:14px;
  bottom:14px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:7px;
  background:rgba(11,11,12,.72);
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
}

@media(max-width:1100px) and (min-width:961px){
  .gm-direction-page .gm-direction-hero-copy{padding-right:30px}
  .gm-direction-page .gm-direction-brand-lockup{width:min(100%,400px)}
  .gm-direction-page .gm-hero-symptom{font-size:13px;padding-left:10px;padding-right:10px}
  .gm-direction-page .gm-hero-contact-choice{align-items:flex-start;flex-direction:column}
}

@media(max-width:960px){
  .gm-direction-page .gm-direction-hero-grid{
    min-height:0;
    grid-template-columns:1fr;
  }
  .gm-direction-page .gm-direction-hero-copy{
    padding:42px 0 28px;
  }
  .gm-direction-page .gm-direction-brand-lockup{
    width:min(100%,430px);
    margin:18px 0 20px;
  }
  .gm-direction-page .gm-direction-hero-media{
    height:clamp(300px,78vw,460px);
    min-height:0;
    aspect-ratio:auto;
  }
  .gm-direction-page .gm-direction-work-slides,
  .gm-direction-page .gm-direction-work-slide,
  .gm-direction-page .gm-direction-work-slide img{
    min-height:0;
    height:100%;
  }
}

@media(max-width:640px){
  .gm-direction-page .gm-direction-hero-copy{padding:34px 0 22px}
  .gm-direction-page .gm-direction-brand-lockup{
    width:100%;
    margin:16px 0 18px;
  }
  .gm-direction-page .gm-hero-problem-title{font-size:16px}
  .gm-direction-page .gm-hero-symptom-list{gap:7px}
  .gm-direction-page .gm-hero-symptom{
    min-height:38px;
    padding:7px 10px;
    font-size:13px;
  }
  .gm-direction-page .gm-direction-hero-actions{
    display:grid;
    grid-template-columns:1fr;
    gap:9px;
    margin-top:20px;
  }
  .gm-direction-page .gm-direction-hero-actions .button{width:100%}
  .gm-direction-page .gm-hero-contact-choice{
    align-items:stretch;
    flex-direction:column;
    gap:11px;
  }
  .gm-direction-page .gm-hero-contact-choice-actions{
    display:grid;
    grid-template-columns:1fr;
  }
  .gm-direction-page .gm-hero-contact-choice-actions .button{width:100%}
  .gm-direction-page .gm-direction-gallery-arrow{
    width:40px;
    height:48px;
    font-size:30px;
  }
  .gm-direction-page .gm-direction-gallery-prev{left:10px}
  .gm-direction-page .gm-direction-gallery-next{right:10px}
  .gm-direction-page .gm-direction-gallery-counter{right:10px;bottom:10px}
  .gm-direction-page .gm-direction-hero-media{height:clamp(280px,82vw,360px)}
}

/* Stage 3.38 — direction gallery height mirrors the homepage Hero and adds no auto-rotation. */


/* Stage 3.39 — homepage Hero uses every real-work photo as a manual gallery. */
.gm-home-hero-media.gm-home-work-slider{
  position:relative;
  touch-action:pan-y;
}
.gm-home-hero-media .gm-home-work-slides,
.gm-home-hero-media .gm-home-work-slide{
  width:100%;
  height:100%;
  min-height:0;
  margin:0;
}
.gm-home-hero-media .gm-home-work-slide[hidden]{display:none!important}
.gm-home-hero-media .gm-home-work-slide img{
  display:block;
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:cover;
  object-position:center;
}
.gm-home-gallery-arrow{
  position:absolute;
  z-index:4;
  top:50%;
  width:44px;
  height:52px;
  transform:translateY(-50%);
  border:1px solid rgba(255,255,255,.28);
  border-radius:8px;
  background:rgba(11,11,12,.68);
  color:#fff;
  font-size:34px;
  line-height:1;
  display:grid;
  place-items:center;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.gm-home-gallery-arrow:hover{
  background:rgba(11,11,12,.88);
  border-color:rgba(255,255,255,.55);
}
.gm-home-gallery-prev{left:14px}
.gm-home-gallery-next{right:14px}
.gm-home-gallery-counter{
  position:absolute;
  z-index:4;
  right:14px;
  bottom:14px;
  padding:5px 9px;
  border:1px solid rgba(255,255,255,.22);
  border-radius:7px;
  background:rgba(11,11,12,.72);
  color:#fff;
  font-size:13px;
  font-weight:700;
  line-height:1.2;
}
@media(max-width:640px){
  .gm-home-gallery-arrow{width:40px;height:48px;font-size:30px}
  .gm-home-gallery-prev{left:10px}
  .gm-home-gallery-next{right:10px}
  .gm-home-gallery-counter{right:10px;bottom:10px}
}


/* Stage 3.46 — adaptive polish: align Hero breakpoint with compact header and center Services chevron. */
@media (max-width: 1040px) {
  .gm-home-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .gm-home-hero-copy {
    padding-right: 0;
  }
  .gm-home-hero-media {
    min-height: 0;
    height: clamp(300px, 62vw, 460px);
    aspect-ratio: auto;
  }
}

/* Stage 3.48.1 — Services menu chevron: precise optical centering + brand yellow. */
.gm-nav-dropdown-toggle > span[aria-hidden="true"] {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  font-size: 0;
  line-height: 0;
  color: transparent;
  border-right: 2px solid var(--gm-yellow);
  border-bottom: 2px solid var(--gm-yellow);
  position: relative;
  top: -2px;
  transform: rotate(45deg);
}

/* Stage 3.46.1 — single-column Hero uses the full available container width.
   Applied consistently to the homepage and all six direction pages. */
@media (max-width: 1040px) {
  .gm-home-hero-copy {
    width: 100%;
    max-width: none;
  }
  .gm-home-hero-copy h1 {
    max-width: none;
  }
  .gm-home-hero-body,
  .gm-home-hero-lead,
  .gm-home-hero-directions {
    max-width: 820px;
  }
  .gm-home-hero-chips {
    width: 100%;
    max-width: none;
  }
  .gm-home-hero-media {
    width: 100%;
  }

  .gm-direction-page .gm-direction-hero-copy {
    width: 100%;
    max-width: none;
  }
  .gm-direction-page .gm-hero-problem-picker {
    width: 100%;
    max-width: none;
  }
  .gm-direction-page .gm-hero-contact-choice {
    width: 100%;
  }
}

/* On the narrow-desktop range, direction pages switch to the same
   one-column Hero logic as the homepage instead of keeping a cramped 2-column layout. */
@media (min-width: 961px) and (max-width: 1040px) {
  .gm-direction-page .gm-direction-hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .gm-direction-page .gm-direction-hero-copy {
    padding: 42px 0 28px;
  }
  .gm-direction-page .gm-direction-brand-lockup {
    width: min(100%, 560px);
  }
  .gm-direction-page .gm-direction-hero-media {
    width: 100%;
    height: 460px;
    min-height: 0;
    aspect-ratio: auto;
  }
  .gm-direction-page .gm-direction-work-slides,
  .gm-direction-page .gm-direction-work-slide,
  .gm-direction-page .gm-direction-work-slide img {
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 641px) and (max-width: 960px) {
  .gm-direction-page .gm-direction-brand-lockup {
    width: min(100%, 560px);
  }
}

/* Stage 3.48.2 — mobile footer: keep all legal/cookie links on the same left edge. */
@media (max-width: 640px) {
  .gm-footer-bottom nav {
    align-items: flex-start;
  }

  .gm-footer-bottom nav [data-cookie-settings] {
    align-self: flex-start;
    width: auto;
    margin: 0;
    text-align: left;
  }
}

/* Stage 3.48.3.2 — robust mobile header: normal in document at top, fixed after scroll.
   Using fixed only after scroll avoids sticky failures caused by ancestor overflow rules.
   z-index stays below the mobile menu/cookie UI and above the fixed call CTA. */
@media (max-width: 640px) {
  .gm-site-header {
    position: relative !important;
    top: auto !important;
    left: auto;
    right: auto;
    width: 100%;
    z-index: 220;
    background: rgba(11, 11, 12, .96);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transition: background-color .2s ease,
                -webkit-backdrop-filter .2s ease,
                backdrop-filter .2s ease,
                box-shadow .2s ease;
  }

  body.gm-header-scrolled {
    padding-top: 64px;
  }

  body.gm-header-scrolled .gm-site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(11, 11, 12, .84);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .24);
  }

  body.admin-bar.gm-header-scrolled .gm-site-header {
    top: 46px !important;
  }
}

/* Stage 3.53 — stabilize the two-column Hero on desktop (>1040px).
   Real gap is accounted for by fr tracks, both columns may shrink safely,
   and long H1 text stays inside the left column instead of entering media. */
@media (min-width: 1041px) {
  .gm-home-hero-grid,
  .gm-direction-page .gm-direction-hero-grid {
    grid-template-columns: minmax(0, 54fr) minmax(0, 46fr);
    column-gap: clamp(28px, 2.4vw, 36px);
  }

  .gm-home-hero-copy,
  .gm-direction-page .gm-direction-hero-copy,
  .gm-home-hero-media,
  .gm-direction-page .gm-direction-hero-media {
    min-width: 0;
  }

  .gm-home-hero-copy,
  .gm-direction-page .gm-direction-hero-copy {
    padding-right: 0;
  }

  .gm-home-hero-copy h1 {
    max-width: 100%;
    white-space: nowrap;
    font-size: clamp(44px, 4vw, 52px);
    letter-spacing: -.032em;
  }

  .gm-direction-page .gm-direction-hero h1 {
    max-width: 100%;
    font-size: clamp(40px, 3.7vw, 50px);
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
  }

  .gm-home-hero-brand-slogan,
  .gm-direction-page .gm-direction-brand-lockup,
  .gm-direction-page .gm-hero-problem-picker {
    max-width: 100%;
  }
}

