.locations-page {
 min-width: 320px;
}

.locations-page main {
 overflow: clip;
}

.locations-hero {
 position: relative;
 min-height: max(680px, 86svh);
 display: grid;
 overflow: hidden;
 isolation: isolate;
 background:
  radial-gradient(circle at 76% 32%, rgba(6, 81, 147, 0.8), transparent 36%),
  linear-gradient(135deg, var(--blue-ink), var(--blue-deep));
 color: var(--white);
}

.locations-hero::before {
 content: "";
 position: absolute;
 z-index: -1;
 top: -190px;
 left: -210px;
 width: min(850px, 72vw);
 height: 440px;
 background: radial-gradient(ellipse, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.32) 52%, transparent 74%);
 filter: blur(24px);
 transform: rotate(-5deg);
}

.locations-hero-layout {
 display: grid;
 grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
 gap: clamp(48px, 7vw, 96px);
 align-items: center;
 padding-block: clamp(140px, 19vh, 190px) clamp(80px, 10vh, 112px);
}

.locations-hero-copy {
 position: relative;
 z-index: 2;
}

.locations-hero h1 {
 max-width: 780px;
 color: var(--white);
 
 
 
 text-wrap: balance;
}

.locations-hero-copy > p:last-of-type {
 max-width: 610px;
 margin-top: 24px;
 color: rgba(255, 255, 255, 0.8);
 font-size: clamp(1rem, 1.45vw, 1.2rem);
 line-height: 1.65;
}

.locations-hero-actions {
 justify-content: flex-start;
 margin-top: 34px;
}

.locations-hero-route {
 position: relative;
 min-height: 330px;
 display: grid;
 grid-template-columns: auto 1fr auto;
 align-items: center;
 color: rgba(255, 255, 255, 0.78);
 font-family: Sora, Inter, sans-serif;
 font-size: 13px;
 font-weight: 800;
}

.locations-hero-route svg {
 width: 100%;
 overflow: visible;
 fill: none;
 stroke: currentColor;
 stroke-linecap: round;
 stroke-linejoin: round;
 stroke-width: 2;
}

.locations-hero-route svg path:first-child {
 stroke: var(--accent);
 stroke-dasharray: 5 9;
}

.locations-hero-route svg circle {
 fill: var(--accent);
 stroke: rgba(255, 255, 255, 0.85);
}

.locations-section {
 padding: clamp(72px, 9vw, 112px) 0;
 background: var(--ivory);
}

.locations-section-head {
 max-width: 760px;
}

.locations-grid {
 position: relative;
 display: grid;
 grid-template-columns: repeat(2, minmax(0, 1fr));
 gap: clamp(28px, 5vw, 64px);
 margin-top: clamp(38px, 5vw, 58px);
}

.locations-grid::before {
 content: "";
 position: absolute;
 top: 50%;
 left: 50%;
 width: clamp(28px, 5vw, 64px);
 border-top: 1px dashed rgba(6, 81, 147, 0.3);
 transform: translate(-50%, -50%);
}

.location-card {
 position: relative;
 min-height: 390px;
 display: flex;
 flex-direction: column;
 padding: clamp(28px, 4vw, 44px);
 border: 1px solid var(--line);
 border-radius: 18px;
 background: var(--white);
 box-shadow: 0 24px 70px rgba(7, 26, 44, 0.08);
}

.location-card-head {
 display: flex;
 align-items: center;
 justify-content: space-between;
 gap: 20px;
}

.location-card-head svg {
 width: 46px;
 height: 46px;
 color: var(--blue);
 fill: none;
 stroke: currentColor;
 stroke-linecap: round;
 stroke-linejoin: round;
 stroke-width: 1.5;
}

.location-number {
 color: var(--accent);
 font-family: Sora, Inter, sans-serif;
 font-size: 14px;
 font-weight: 800;
}

.location-region {
 margin-top: auto;
 padding-top: 48px;
 color: var(--muted);
 font-size: 12px;
 font-weight: 700;
 letter-spacing: 0.04em;
}

.location-card :is(h2, h3) {
 margin-top: 10px;
 color: var(--blue-ink);
 font-size: clamp(1.55rem, 2.5vw, 2.1rem);
 font-weight: 800;
 line-height: 1.2;
}

.location-card address {
 display: grid;
 gap: 5px;
 margin-top: 18px;
 color: var(--muted);
 font-size: 16px;
 font-style: normal;
 line-height: 1.5;
}

.location-card-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 14px 20px;
 align-items: center;
 margin-top: 26px;
}

.location-card-actions .text-link {
 margin-top: 0;
}

.locations-contact {
 padding: clamp(76px, 9vw, 112px) 0;
 background: var(--white);
}

.locations-contact-layout {
 display: grid;
 grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
 gap: clamp(42px, 8vw, 110px);
 align-items: start;
}

.locations-contact-layout > div:first-child > p:last-child {
 max-width: 480px;
 margin-top: 20px;
 color: var(--muted);
 font-size: 15.5px;
 line-height: 1.7;
}

.contact-channels {
 border-top: 1px solid var(--line);
}

:where(.locations-page) .contact-channel {
 min-height: 126px;
 display: grid;
 grid-template-columns: 1fr auto;
 grid-template-rows: auto auto;
 gap: 8px 24px;
 align-items: center;
 padding: 24px 4px;
 border-bottom: 1px solid var(--line);
}

:where(.locations-page) .contact-channel > span {
 color: var(--muted);
 font-size: 12px;
 font-weight: 800;
 letter-spacing: 0.06em;
 text-transform: uppercase;
}

:where(.locations-page) .contact-channel strong {
 overflow-wrap: anywhere;
 color: var(--blue-ink);
 font-family: Sora, Inter, sans-serif;
 font-size: clamp(1.45rem, 3.1vw, 2.5rem);
 line-height: 1.15;
}

:where(.locations-page) .contact-channel svg {
 grid-column: 2;
 grid-row: 1 / 3;
 width: 30px;
 height: 30px;
 color: var(--accent);
 fill: none;
 stroke: currentColor;
 stroke-linecap: round;
 stroke-linejoin: round;
 stroke-width: 1.8;
 transition: transform 180ms ease;
}

:where(.locations-page) .contact-channel:hover svg,
:where(.locations-page) .contact-channel:focus-visible svg {
 transform: translateX(5px);
}

:where(.locations-page) .contact-channel:focus-visible {
 outline: 3px solid rgba(234, 158, 47, 0.42);
 outline-offset: 5px;
}

.location-detail-page .nav-contact-link.is-active-section {
 background: rgba(255, 255, 255, 0.24);
 color: var(--blue-ink);
}

.location-detail-hero {
 min-height: max(620px, 78svh);
}

.location-detail-marker {
 min-height: 310px;
 display: grid;
 place-content: center;
 justify-items: center;
 gap: 20px;
 color: rgba(255, 255, 255, 0.82);
}

.location-detail-marker span {
 color: var(--accent);
 font-family: Sora, Inter, sans-serif;
 font-size: clamp(4.5rem, 9vw, 8rem);
 font-weight: 800;
 line-height: 1;
}

.location-detail-marker svg {
 width: clamp(84px, 10vw, 132px);
 fill: none;
 stroke: currentColor;
 stroke-linecap: round;
 stroke-linejoin: round;
 stroke-width: 1.2;
}

.location-detail-section {
 padding: clamp(72px, 9vw, 112px) 0;
 background: var(--ivory);
}

.location-detail-grid {
 display: grid;
 grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
 gap: clamp(28px, 5vw, 64px);
 align-items: stretch;
}

.location-detail-card {
 min-height: 500px;
}

.location-detail-card .location-region {
 margin-top: 48px;
}

.location-detail-card address {
 font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.location-detail-actions {
 display: flex;
 flex-wrap: wrap;
 gap: 16px 20px;
 align-items: center;
 margin-top: 34px;
}

.location-detail-actions .text-link {
 margin-top: 0;
}

.location-connection {
 display: flex;
 flex-direction: column;
 justify-content: center;
 padding: clamp(34px, 5vw, 58px);
 border-radius: 18px;
 background: linear-gradient(135deg, var(--blue), var(--blue-deep));
 color: var(--white);
}

.location-connection h2 {
 margin-top: 14px;
 color: var(--white);
 
 
 text-wrap: balance;
}

.location-connection > p:last-of-type {
 margin-top: 22px;
 color: rgba(255, 255, 255, 0.8);
 line-height: 1.7;
}

.location-connection .btn {
 align-self: flex-start;
 margin-top: 32px;
}

.location-detail-back {
 margin-top: 36px;
}

@media (max-width: 1080px) {
 .locations-hero-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
 }

 .locations-contact-layout {
  grid-template-columns: 1fr;
 }
}

@media (max-width: 760px) {
 .locations-hero {
  min-height: 760px;
 }

 .locations-hero-layout,
 .locations-grid,
 .location-detail-grid {
  grid-template-columns: 1fr;
 }

 .locations-hero-layout {
  gap: 34px;
  padding-block: 118px 62px;
 }

 .locations-hero-route {
  min-height: 150px;
 }

 .locations-grid::before {
  top: 50%;
  left: 28px;
  width: 1px;
  height: clamp(28px, 5vw, 64px);
  border-top: 0;
  border-left: 1px dashed rgba(6, 81, 147, 0.3);
 }

 .location-card {
  min-height: 350px;
 }

 .locations-contact-layout {
  gap: 38px;
 }

 .location-detail-marker {
  min-height: 150px;
 }

 .location-detail-card {
  min-height: 440px;
 }

 :where(.locations-page) .contact-channel {
  min-height: 112px;
 }
}

@media (prefers-reduced-motion: reduce) {
 :where(.locations-page) .contact-channel svg {
  transition: none;
 }
}

.location-detail-page .heating-service-grid {
 grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
}
