/*страницы услуг шапка и все остальное в бейззз*/

:root {
  --service-width: 960px;
}

/*верх страницы фото*/
.service-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 420px;
  min-height: clamp(420px, 64svh, 680px);
  padding: 150px 20px clamp(40px, 6vw, 72px);
  background:
    linear-gradient(180deg, rgba(6, 53, 92, 0.50) 0%, rgba(6, 53, 92, 0.86) 100%),
    var(--hero-photo, linear-gradient(135deg, #0864a5, #06355c));
  background-size: cover;
  background-position: center;
  color: #fff;
}

.service-hero-inner {
  width: min(var(--service-width), 100%);
  margin-inline: auto;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 10px;
  opacity: 0.6;
}

.breadcrumbs a {
  text-underline-offset: 3px;
}

.breadcrumbs [aria-current="page"] {
  color: #fff;
  font-weight: 600;
}

.service-hero h1 {
  margin: 0 0 32px;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.service-hero .more-button {
  border-color: #fff;
  background: #fff;
  color: #0864a5;
}

.service-hero .more-button:hover {
  border-color: #e8f2fa;
  background: #e8f2fa;
  color: #064c80;
}

.service-hero :focus-visible {
  outline-color: #fff;
}

/*этапы работ типооо*/
.stages-section {
  padding: clamp(56px, 8vw, 104px) 20px;
}

.stages {
  width: min(var(--service-width), 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 24px;
  padding-bottom: clamp(36px, 5vw, 56px);
}

.stage:last-child {
  padding-bottom: 0;
}

/*вертикальная линия между номерами этапов*/
.stage::before {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 8px;
  left: 23px;
  width: 2px;
  background: var(--line);
}

.stage:last-child::before {
  display: none;
}

.stage-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--btn-solid-bg);
  color: var(--btn-solid-text);
  font-size: 1.15rem;
  font-weight: 800;
}

.stage-title {
  margin: 8px 0 14px;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.stage-note {
  margin: 0 0 8px;
  color: var(--muted);
}

.stage-items {
  margin: 0;
}

.stage-item {
  display: grid;
  grid-template-columns: minmax(150px, 230px) minmax(0, 1fr);
  gap: 4px 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.stage-item dt {
  font-weight: 700;
}

.stage-item dd {
  margin: 0;
  color: var(--muted);
}

/*другие услуги ну ты понял вась*/
.more-services {
  padding: clamp(48px, 7vw, 88px) 20px clamp(56px, 8vw, 104px);
  background: var(--bg-soft);
}

.more-services-title {
  width: min(var(--service-width), 100%);
  margin: 0 auto 28px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  width: min(var(--service-width), 100%);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.service-link {
  display: block;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.service-link:hover {
  border-color: var(--brand-light);
  background: var(--doc-hover-bg);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  width: min(var(--service-width), 100%);
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.cta p {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 700;
}

/*вась чтоб на телефоне чотко*/
@media (max-width: 720px) {
  .service-hero {
    padding-top: 120px;
  }
}

@media (max-width: 640px) {
  .stage {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 16px;
  }

  .stage::before {
    top: 44px;
    left: 17px;
  }

  .stage-num {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .stage-title {
    margin-top: 4px;
  }

  .stage-item {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
