.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 {
  height: 615px;
  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: 56% 44%;
  padding-block: 18px;
  padding-inline: max(36px, calc((100% - 1400px) / 2));
}

.service-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,rgba(4,9,17,.9),rgba(7,10,15,.25) 64%,rgba(0,0,0,.05));
}

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

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

.service-hero h1 { font: 700 62px/1.12 Raleway,sans-serif; margin: 28px 0 24px; }
.service-hero-copy > p { max-width: 520px; font-size: 19px; }
.service-hero-copy .line { width: 100%; max-width: 560px; margin: 27px 0 36px; }

.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 {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(199,39,52,.28);
  outline: none;
}

.service-form {
  align-self: center;
  width: 100%;
  height: 580px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 16px;
  background: rgba(245,245,245,.5);
  backdrop-filter: blur(9px);
  padding: 35px;
  color: #182048;
}

.service-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 17px; }
.service-form em { font-style: normal; color: var(--red); }
.service-form input,
.service-form textarea { display: block; width: 100%; border: 0; background: #fff; margin-top: 5px; height: 42px; padding: 9px; }
.service-form textarea { height: 138px; resize: none; }
.message-label { position: relative; }
.message-label small { position: absolute; right: 0; top: 0; color: #686868; font-weight: 500; }

.service-form button {
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 11px 30px;
  transition: background-color .2s ease, transform .2s ease;
}

.service-form button:hover { background: #a91e29; transform: translateY(-1px); }

.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(199,39,52,.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: 100px;
  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 { height: auto; min-height: 680px; grid-template-columns: 1fr; padding: 28px; }
  .service-hero-copy { padding: 30px 0 0; }
  .service-hero h1 { font-size: 48px; }
  .service-form { height: auto; margin: 25px 0 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: 22px; }
  .service-hero h1 { font-size: 41px; }
  .service-hero-copy > p { font-size: 18px; }
  .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; }
}
