.service-page .site-header {
  position: sticky;
  top: 8px;
  transition: box-shadow .2s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.service-page .site-header .brand img {
  transition: transform .2s ease;
}

.service-page .site-header.is-stuck {
  box-shadow: 0 10px 30px rgba(12,13,49,.2);
}

.service-page .site-header.is-stuck .brand img { transform: scale(.88); }

.service-hero {
  min-height: 800px;
  border-radius: 20px;
  margin-top: 18px;
  background: url("assets/hero.jpg") center/cover no-repeat;
  position: relative;
  overflow: hidden;
  color: #fff;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(420px,.78fr);
  gap: 84px;
  align-items: center;
  padding: 88px max(32px, calc((100% - 1400px) / 2));
}

.service-hero.shell { width: 100%; max-width: none; }

.service-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(7,8,29,.9) 0%,rgba(7,8,29,.68) 48%,rgba(7,8,29,.22) 100%);
}

.service-hero-copy,
.service-form { position: relative; z-index: 1; }

.service-hero-copy {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-hero-copy .kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.service-hero-copy .kicker i {
  flex: none;
  width: 9px;
  height: 9px;
  margin: 0;
  background: #2b4e9a;
}

.service-hero h1 { font: 800 clamp(50px,5vw,78px)/.98 Raleway,sans-serif; letter-spacing: -.047em; margin: 25px 0 24px; }
.service-hero-copy > p { max-width: 720px; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.75; }
.service-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.service-hero-actions .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 24px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 800; text-decoration: none; }
.service-hero-actions .btn-red { background: #2b4e9a; color: #fff; }
.service-hero-actions .btn-outline { border-color: rgba(255,255,255,.72); background: transparent; color: #fff; }
.service-hero-actions .btn-outline:hover { background: #fff; color: #11132f; }

.service-hero-copy .btn {
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.service-hero-copy .btn:hover,
.service-hero-copy .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(43,78,154,.28);
  outline: none;
}
.service-hero-actions .btn-red:hover,
.service-hero-actions .btn-red:focus-visible { background: #203c79; }
.service-hero-actions .btn-outline:hover,
.service-hero-actions .btn-outline:focus-visible { background: #fff; color: #11132f; }

.service-form {
  align-self: center;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 16px;
  background: rgba(255,255,255,.93);
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
  padding: 20px;
  color: #11132f;
}

.service-form>span { display: inline; color: var(--red); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.service-form h2 { margin: 6px 0 22px; font: 800 30px/1.14 Raleway,sans-serif; }
.service-form iframe { display: block; width: 100%; max-width: 100%; min-width: 0; }

.service-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(340px,400px);
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  gap: 35px;
  padding: 55px 0 85px;
  align-items: stretch;
  justify-content: center;
}

.service-article { min-width: 0; height: 100%; }
.content-block { overflow: hidden; border-bottom: 1px solid #c7c7c7; padding-bottom: 18px; margin-bottom: 56px; }
.content-block h2,
.consultation-card h2 { font: 700 39px/1.2 Raleway,sans-serif; color: #12234e; margin: 0 0 12px; }
.title-rule { height: 2px; background: #c4c4c4; margin-bottom: 18px; }
.title-rule b { display: block; width: 70px; height: 5px; position: relative; top: -2px; background: var(--red); }

.content-block img {
  width: 300px;
  height: 244px;
  object-fit: cover;
  float: left;
  margin: 0 14px 8px 0;
  border-radius: 12px;
}

.storefront-block img { height: 200px; }
.content-block p { margin: 0 0 9px; color: #4d4d54; line-height: 1.5; }
.content-block p a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.content-block strong { color: #333; }

.service-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: static;
  align-self: stretch;
  max-height: none;
  overflow: visible;
}

.service-sidebar section { background: #fff; border-radius: 18px; padding: 34px; }
.service-sidebar h2 { font: 700 25px Raleway; margin: 0 0 25px; padding-left: 18px; border-left: 5px solid var(--red); }
.directory { background: #f1f1f1; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 7px; }

.directory a {
  min-height: 41px;
  border: 1px solid #c6c6c6;
  background: #fff;
  border-radius: 10px;
  padding: 8px 15px;
  font-weight: 700;
  color: #17244b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color .38s cubic-bezier(.16,1,.3,1), color .38s cubic-bezier(.16,1,.3,1), border-color .38s cubic-bezier(.16,1,.3,1), transform .38s cubic-bezier(.16,1,.3,1), box-shadow .38s cubic-bezier(.16,1,.3,1);
}

.directory a::after { content: "↘"; font-size: 18px; font-weight: 400; }
.directory a:hover,
.directory a:focus-visible { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(3px); box-shadow: 0 8px 18px rgba(43,78,154,.18); outline: none; }

@media (prefers-reduced-motion: reduce) {
  .directory a {
    transition: none;
  }

  .directory a:hover,
  .directory a:focus-visible {
    transform: none;
  }
}

.consultation-card {
  background: linear-gradient(rgba(18,37,74,.86),rgba(18,37,74,.86)),url("assets/channel-consultation.jpg") center/cover;
  border-radius: 18px;
  color: #fff;
  padding: 50px 35px;
  margin: 64px 0 24px;
}

.consultation-card h2 { color: #fff; border-left: 5px solid var(--red); padding-left: 18px; }
.consultation-card p { margin: 25px 0 0; line-height: 1.45; }
.consultation-card a { display: flex; align-items: center; gap: 14px; margin-top: 35px; }
.consultation-card a > span { width: 60px; height: 60px; border-radius: 8px; background: #fff; color: var(--red); display: grid; place-items: center; font-size: 26px; }
.consultation-card a strong { display: flex; flex-direction: column; font-size: 20px; }
.consultation-card small { font-size: 18px; }

.sidebar-consultation-slot {
  position: sticky;
  top: 142px;
  min-height: 0;
  margin-top: 20px;
}

.sidebar-consultation {
  position: relative;
  top: auto;
  margin: 0;
  padding: 34px 26px;
  z-index: 2;
}

.sidebar-consultation h2 { font-size: 32px; white-space: nowrap; }
.sidebar-consultation p { font-size: 17px; }

.map-wrap { height: 520px; border-radius: 15px; overflow: hidden; margin-bottom: 20px; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.reviews-grid article { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 1px 8px rgba(0,0,0,.08); }
.reviews-grid header { display: flex; align-items: center; gap: 10px; }
.reviews-grid header > b { width: 43px; height: 43px; border-radius: 50%; background: #586dca; color: #fff; display: grid; place-items: center; }
.reviews-grid header span { display: flex; flex-direction: column; }
.reviews-grid header small { color: #777; }
.reviews-grid header i { margin-left: auto; color: #4285f4; font-style: normal; font-weight: 700; font-size: 20px; }
.reviews-grid article > div { color: #f7b500; margin-top: 10px; letter-spacing: 2px; }
.reviews-grid p { margin-bottom: 0; }

.service-gallery { background: #fff; border-radius: 18px; padding-block: 25px; padding-inline: max(17px, calc((100% - 1400px) / 2)); display: grid; grid-template-columns: repeat(4,1fr); gap: 75px; margin-bottom: 18px; overflow: hidden; }
.service-gallery img { width: 100%; height: 380px; object-fit: cover; }
.service-gallery img:nth-child(n+5) { display: none; }

@media (max-width: 900px) {
  .service-page .site-header { top: 6px; }
  .service-hero { min-height: 680px; grid-template-columns: 1fr; gap: 48px; padding: 58px 28px; }
  .service-hero-copy { padding: 0; }
  .service-hero h1 { font-size: 48px; }
  .service-form { max-width: 720px; margin: 0; }
  .service-layout { grid-template-columns: 1fr; }
  .service-sidebar { grid-row: 2; position: static; max-height: none; overflow: visible; }
  .sidebar-consultation-slot { position: static; min-height: auto; margin-top: 20px; }
  .sidebar-consultation { position: static !important; inset: auto !important; width: auto !important; }
  .service-gallery { grid-template-columns: 1fr 1fr; gap: 20px; }
  .service-gallery img:nth-child(n+5) { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .service-hero { padding: 14px; }
  .service-hero-copy { padding-top: 36px; }
  .service-hero h1 { font-size: 41px; }
  .service-hero-copy > p { font-size: 18px; }
  .service-hero-actions { flex-direction: column; }
  .service-hero-actions .btn { width: 100%; }
  .service-form { padding: 14px; }
  .service-form h2 { font-size: 25px; }
  .service-layout { padding-top: 45px; }
  .content-block h2,
  .consultation-card h2 { font-size: 31px; }
  .sidebar-consultation h2 { white-space: normal; }
  .content-block img { width: 100%; height: 250px; float: none; margin: 0 0 16px; }
  .service-sidebar section { padding: 22px; }
  .directory { padding: 10px; }
  .consultation-card { padding: 35px 22px; }
  .map-wrap { height: 420px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .service-gallery { grid-template-columns: 1fr; gap: 18px; }
  .service-gallery img { height: 340px; }
  .site-footer { margin-top: 0; }
}

/* Keep completed signs fully visible in service-page photo frames. */
.content-block img,
.service-gallery img {
  object-fit: contain;
  background: #eef0f3;
}

/* Match the homepage hero frame, inner gutters, and consultation card at every breakpoint. */
@media (max-width: 1100px) {
  .service-hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 88px 20px;
  }
  .service-hero-copy { padding: 0; }
  .service-form { max-width: 720px; margin: 0; }
}

@media (max-width: 900px) {
  .service-hero.shell { width: calc(100% - 20px); max-width: none; }
}

@media (max-width: 780px) {
  .service-hero { margin-top: 10px; padding: 58px 14px; }
  .service-hero-shade { background: rgba(7,8,29,.82); }
  .service-hero h1 { font-size: 43px; }
  .service-hero-copy > p { font-size: 17px; }
  .service-hero-actions { flex-direction: column; }
  .service-hero-actions .btn { width: 100%; }
  .service-form { padding: 14px; }
}

@media (max-width: 440px) {
  .service-hero h1 { font-size: 39px; }
  .service-form h2 { font-size: 25px; }
}
