/**
 * Посадочная «Сервис и ремонт» — energostan.ru v4
 * <link href="/static/css/service-page.css?v=19" rel="stylesheet">
 */

/* Плавная прокрутка к якорям (#egs-svc-form и др.) */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

#egs-svc-form,
#egs-svc-form-2,
#egs-about,
#egs-projects {
  scroll-margin-top: 24px;
}

/*
 * Контент на всю ширину колонки .page__content (~1158px),
 * но НЕ шире неё: max-width:none раздувал flex-layout сайта.
 */
.page__content:has(.egs-svc),
.page__content:has(.user-text .egs-svc) {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.page__content .user-text,
.user-text .egs-svc,
.page__content > .egs-svc,
.egs-svc {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.egs-svc {
  --egs-teal: #015479;
  --egs-teal-2: #02709e;
  --egs-teal-dark: #012f44;
  --egs-cyan: #1a9bc7;
  --egs-ink: #1a242c;
  --egs-muted: #5a6b76;
  --egs-line: #d5e0e7;
  --egs-bg: #eef4f7;
  --egs-white: #fff;
  --egs-ok: #1a7a4c;
  --egs-radius: 4px;
  --egs-shadow: 0 12px 36px rgba(1, 47, 68, 0.14);

  color: var(--egs-ink);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 32px;
}

.egs-svc *,
.egs-svc *::before,
.egs-svc *::after { box-sizing: border-box; }

.egs-svc img { max-width: 100%; height: auto; display: block; }
.egs-svc a { color: var(--egs-teal); }

.egs-svc h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.22;
  font-weight: 800;
  color: var(--egs-teal-dark);
}

.egs-svc h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--egs-ink);
}

.egs-svc p { margin: 0 0 12px; }

.egs-svc__lead {
  color: var(--egs-muted);
  font-size: 15px;
  margin: 0 0 18px;
  max-width: none;
}

.egs-svc__section { margin: 0 0 32px; }
.egs-svc__section-head { margin: 0 0 16px; }

/* ——— Соцсети ——— */
.egs-svc__social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.egs-svc__social-row--top {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--egs-line);
}

.egs-svc__social-label {
  display: inline-block;
  margin: 0;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 30px;
  color: var(--egs-muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.egs-svc__social-icons {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  line-height: 0;
}

.egs-svc__social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  line-height: 0;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.egs-svc__social-icons a:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.egs-svc__social-icons img {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 !important;
  object-fit: contain;
}

/* ——— Hero ——— */
.egs-svc__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 300px;
  border-radius: var(--egs-radius);
  overflow: hidden;
  margin: 0 0 14px;
  box-shadow: var(--egs-shadow);
}

.egs-svc__hero-copy {
  background: linear-gradient(160deg, #012f44 0%, #015479 55%, #02709e 100%);
  color: #fff;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.egs-svc__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.egs-svc__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5dcf9a;
}

.egs-svc__hero-copy h2 {
  color: #fff;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.18;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.egs-svc__hero-copy p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  max-width: none;
}

.egs-svc__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.egs-svc__hero-media {
  position: relative;
  background: #d9e4ea;
  min-height: 240px;
}

.egs-svc__hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.egs-svc__hero-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(1, 47, 68, 0.88);
  color: #fff;
  padding: 10px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
}

.egs-svc__hero-badge span {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 2px;
}

/* ——— Buttons ——— */
.egs-svc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  background: #fff;
  color: var(--egs-teal) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.egs-svc__btn:hover {
  background: #e5f3fa;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

.egs-svc__btn--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.egs-svc__btn--ghost:hover { background: rgba(255, 255, 255, 0.1); color: #fff !important; }
.egs-svc__btn--solid { background: var(--egs-teal); color: #fff !important; }
.egs-svc__btn--solid:hover { background: var(--egs-teal-2); color: #fff !important; }
.egs-svc__btn--block { width: 100%; }

/* ——— Advantages ——— */
.egs-svc__adv {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 32px;
}

.egs-svc__adv-item {
  background: #fff;
  border: 1px solid var(--egs-line);
  border-radius: var(--egs-radius);
  padding: 16px 12px;
  text-align: center;
}

.egs-svc__adv-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(1, 84, 121, 0.09);
  color: var(--egs-teal);
}

.egs-svc__adv-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.egs-svc__adv-val {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--egs-teal);
  line-height: 1.15;
  margin-bottom: 4px;
}

.egs-svc__adv-label {
  display: block;
  font-size: 13px;
  color: var(--egs-muted);
}

/* ——— About ——— */
.egs-svc__about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  border-radius: var(--egs-radius);
  overflow: hidden;
  background: var(--egs-bg);
  margin: 0 0 32px;
}

.egs-svc__about-media {
  position: relative;
  min-height: 260px;
}

.egs-svc__about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.egs-svc__about-body {
  padding: 24px 22px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.egs-svc__about-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.user-text .egs-svc__about-points {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.egs-svc__about-points li {
  background: var(--egs-bg);
  border-radius: var(--egs-radius);
  padding: 12px 14px;
  border-left: 3px solid var(--egs-teal);
}

.user-text .egs-svc__about-points li {
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

.egs-svc__about-points strong {
  display: block;
  font-size: 14px;
  color: var(--egs-teal-dark);
  margin-bottom: 4px;
}

.egs-svc__about-points span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--egs-muted);
}

/* ——— Equipment grid (иконки с главной) ——— */
.egs-svc__equip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.egs-svc__equip-grid > li {
  width: calc(25% - 15px);
  border: 1px solid transparent;
  border-radius: var(--egs-radius);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.egs-svc__equip-grid > li:hover {
  border-color: var(--egs-line);
  box-shadow: 0 4px 14px rgba(1, 47, 68, 0.08);
}

.egs-svc__equip-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 12px 8px;
  height: 100%;
  text-decoration: none !important;
  color: var(--egs-ink) !important;
  cursor: pointer;
}

.egs-svc__equip-link:hover span:last-child {
  color: var(--egs-teal) !important;
}

.egs-svc__equip-grid img {
  width: 100%;
  max-height: 110px;
  object-fit: contain;
  margin-bottom: 10px;
}

.egs-svc__equip-link > span:last-child {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: uppercase;
}

.egs-svc__equip-icon {
  width: 100%;
  max-height: 110px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--egs-teal);
}

.egs-svc__equip-icon svg {
  width: 88px;
  height: 88px;
}

.egs-svc__equip-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--egs-muted);
  text-align: center;
}

/* ——— Service cards ——— */
.egs-svc__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.egs-svc__card {
  background: #fff;
  border: 1px solid var(--egs-line);
  border-radius: var(--egs-radius);
  overflow: hidden;
}

.egs-svc__card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d9e4ea;
}

.egs-svc__card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.egs-svc__card-body { padding: 14px; }
.egs-svc__card-body p { margin: 0; font-size: 13px; color: var(--egs-muted); }

.egs-svc__card-num {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--egs-cyan);
}

/* ——— Steps / symptoms ——— */
.egs-svc__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  counter-reset: egs-step;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.user-text .egs-svc__steps {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.egs-svc__steps li {
  background: var(--egs-bg);
  border-radius: var(--egs-radius);
  padding: 14px 12px;
  counter-increment: egs-step;
  margin-left: 0 !important;
  margin-bottom: 0 !important;
}

.egs-svc__steps li::before {
  content: counter(egs-step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--egs-teal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.egs-svc__steps strong { display: block; margin-bottom: 4px; font-size: 14px; }
.egs-svc__steps span { display: block; font-size: 12px; color: var(--egs-muted); }

.egs-svc__symptoms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.egs-svc__symptoms li {
  position: relative;
  padding: 8px 8px 8px 28px;
  font-size: 14px;
  border-bottom: 1px solid #eef2f5;
}

.egs-svc__symptoms li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background:
    linear-gradient(#fff, #fff) center / 8px 2px no-repeat,
    linear-gradient(#fff, #fff) center / 2px 8px no-repeat,
    var(--egs-teal);
}

/* ——— Strip ——— */
.egs-svc__strip {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0;
  margin: 0 0 32px;
  border-radius: var(--egs-radius);
  overflow: hidden;
}

.egs-svc__strip-body {
  background: linear-gradient(120deg, #012f44, #015479);
  color: #fff;
  padding: 22px 20px;
}

.egs-svc__strip-body strong { display: block; font-size: 17px; margin-bottom: 8px; }
.egs-svc__strip-body p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.85); }

.egs-svc__strip-media {
  position: relative;
  min-height: 160px;
}

.egs-svc__strip-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* ——— Projects slider ——— */
.egs-svc__slider-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.egs-svc__slider-head a {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
}

.egs-svc__slider {
  position: relative;
}

.egs-svc__slider-track-wrap {
  overflow: hidden;
  margin: 0 44px;
}

.egs-svc__slider-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0 8px;
}

.egs-svc__slider-track::-webkit-scrollbar { display: none; }

.egs-svc__project {
  flex: 0 0 calc(33.333% - 10px);
  min-width: 260px;
  scroll-snap-align: start;
  position: relative;
  height: 220px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--egs-radius);
  overflow: hidden;
  text-decoration: none !important;
  color: #fff !important;
}

.egs-svc__project-img {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.egs-svc__project-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  z-index: 2;
}

.egs-svc__project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.egs-svc__project p {
  position: relative;
  z-index: 3;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.egs-svc__project span {
  position: relative;
  z-index: 3;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}

.egs-svc__slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  border: 1px solid var(--egs-line);
  border-radius: 50%;
  background: #fff;
  color: var(--egs-teal);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.egs-svc__slider-arrow:hover {
  background: var(--egs-bg);
  border-color: var(--egs-teal);
}

.egs-svc__slider-arrow--prev { left: 0; }
.egs-svc__slider-arrow--next { right: 0; }

.egs-svc__slider-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

/* ——— Follow ——— */
.egs-svc__follow {
  padding: 18px 20px;
  margin: 0 0 32px;
  background: #fff;
  border: 1px solid var(--egs-line);
  border-radius: var(--egs-radius);
}

.egs-svc__follow-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--egs-teal-dark);
}

.egs-svc__follow-text {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--egs-muted);
}

.egs-svc__social-row--inline {
  margin: 0;
}

/* ——— Form ——— */
.egs-svc__form-wrap {
  background: var(--egs-bg);
  border: 1px solid var(--egs-line);
  border-radius: var(--egs-radius);
  padding: 22px 20px;
  scroll-margin-top: 20px;
}

.egs-svc__form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.egs-svc__form .egs-svc__field--full { grid-column: 1 / -1; }

.egs-svc__field label {
  display: block;
  margin-bottom: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--egs-muted);
}

.egs-svc__field input,
.egs-svc__field input.form__input,
.egs-svc__field select,
.egs-svc__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 16px !important;
  border: 1px solid #c5d3db !important;
  border-radius: 25px !important;
  background: #fff !important;
  font: inherit;
  font-size: 15px !important;
  line-height: 1.3;
  color: var(--egs-ink);
  text-align: left !important;
  outline: none;
}

.egs-svc__field select {
  padding-right: 42px !important;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%23015479' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-color: #fff !important;
  background-size: 12px 8px !important;
  cursor: pointer;
}

.egs-svc__field select::-ms-expand {
  display: none;
}

.egs-svc__field textarea {
  min-height: 96px;
  border-radius: 16px !important;
  resize: vertical;
  text-align: left !important;
}

.egs-svc__field input:focus,
.egs-svc__field select:focus,
.egs-svc__field textarea:focus {
  border-color: var(--egs-teal);
  box-shadow: 0 0 0 3px rgba(1, 84, 121, 0.12);
}

.egs-svc__field input.egs-svc__invalid { background: #ffb18b; border-color: #e07a4a; }

.egs-svc__form-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.egs-svc__disclaimer {
  margin: 0;
  font-size: 10px;
  line-height: 1.35;
  color: #8a9aa3;
}

.egs-svc__disclaimer a {
  font-size: inherit;
  color: inherit;
}

/* ——— Brands ——— */
.egs-svc__brands .egs-svc__section-head,
.egs-svc__brands .egs-svc__equip-note {
  text-align: left;
}

.egs-svc__brands .egs-svc__equip-note,
.user-text .egs-svc__brands .egs-svc__equip-note {
  margin-top: 20px !important;
}

.egs-svc__brands-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.user-text .egs-svc__brands-list {
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  list-style: none !important;
}

.user-text .egs-svc__brands-list li {
  margin: 0 !important;
  padding: 8px 12px !important;
  text-align: center !important;
  list-style: none !important;
}

.egs-svc__brands-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--egs-bg);
  border: 1px solid var(--egs-line);
  border-radius: 3px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--egs-teal-dark);
  text-align: center;
  text-transform: uppercase;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.egs-svc__brands-list li:hover {
  background: #fff;
  border-color: var(--egs-teal);
  color: var(--egs-teal);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 84, 121, 0.12);
}

.egs-svc__form-result { display: none; padding: 18px; text-align: center; background: #fff; border-radius: var(--egs-radius); border: 1px solid var(--egs-line); }
.egs-svc__form-result.is-visible { display: block; }
.egs-svc__form-result h3 { color: var(--egs-ok); }
.egs-svc__form-result--err h3 { color: #b33a2b; }
.egs-svc__form.is-hidden { display: none; }

/* ——— FAQ ——— */
.egs-svc__faq {
  border: 1px solid var(--egs-line);
  border-radius: var(--egs-radius);
  overflow: hidden;
}

.egs-svc__faq details { border-bottom: 1px solid var(--egs-line); }
.egs-svc__faq details:last-child { border-bottom: 0; }

.egs-svc__faq summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 44px 14px 16px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  background: #fff;
}

.egs-svc__faq summary::-webkit-details-marker { display: none; }

.egs-svc__faq summary::after {
  content: "+";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--egs-bg);
  color: var(--egs-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.egs-svc__faq details[open] summary::after { content: "−"; }
.egs-svc__faq details p { margin: 0; padding: 0 16px 14px; font-size: 14px; color: var(--egs-muted); }

/* ——— CTA ——— */
.egs-svc__cta {
  margin-top: 8px;
  padding: 24px 20px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(1, 47, 68, 0.92), rgba(1, 84, 121, 0.88)),
    url("/images/service/egs-hero-cnc.jpg") center / cover;
  color: #fff;
  border-radius: var(--egs-radius);
}

.egs-svc__cta h2 { color: #fff; }
.egs-svc__cta p { margin: 8px 0 14px; color: rgba(255, 255, 255, 0.88); }

.egs-svc__social-row--cta {
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  width: 100%;
}

.egs-svc__social-row--cta .egs-svc__social-label {
  color: rgba(255, 255, 255, 0.78);
}

.egs-svc__phone {
  font-size: 22px;
  font-weight: 800;
  color: #fff !important;
  text-decoration: none !important;
}

.egs-svc--prod .egs-svc__cta {
  background:
    linear-gradient(135deg, rgba(1, 47, 68, 0.92), rgba(1, 84, 121, 0.88)),
    url("/images/service/egs-hero-cnc.jpg") center / cover;
}

/* ——— Responsive ——— */
@media (max-width: 1100px) {
  .egs-svc__adv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .egs-svc__equip-grid > li { width: calc(33.333% - 14px); }
  .egs-svc__project { flex-basis: calc(50% - 8px); min-width: 240px; }
}

@media (max-width: 900px) {
  .egs-svc__adv { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .egs-svc__hero,
  .egs-svc__about,
  .egs-svc__strip { grid-template-columns: 1fr; }

  .egs-svc__hero-media,
  .egs-svc__about-media,
  .egs-svc__strip-media { min-height: 220px; }

  .egs-svc__hero-media img,
  .egs-svc__about-media img,
  .egs-svc__strip-media img { position: relative; height: 220px; }

  .egs-svc__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .egs-svc__cards { grid-template-columns: 1fr; }
  .egs-svc__form { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .egs-svc__adv,
  .egs-svc__about-points,
  .egs-svc__symptoms,
  .egs-svc__form { grid-template-columns: 1fr; }

  /* Каталог оборудования — компактный список (иконка + название в строку) */
  .egs-svc__equip-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .egs-svc__equip-grid > li {
    width: auto;
  }

  .egs-svc__equip-grid > li:hover {
    border-color: transparent;
    box-shadow: none;
  }

  .egs-svc__equip-link {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 10px 12px;
    background: var(--egs-bg);
    border-radius: var(--egs-radius);
  }

  .egs-svc__equip-link:hover {
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--egs-line);
  }

  .egs-svc__equip-grid img {
    flex: 0 0 48px;
    width: 48px;
    max-width: 48px;
    max-height: 44px;
    margin: 0 12px 0 0;
    object-fit: contain;
  }

  .egs-svc__equip-icon {
    flex: 0 0 48px;
    width: 48px;
    min-height: 0;
    max-height: 44px;
    margin: 0 12px 0 0;
  }

  .egs-svc__equip-icon svg {
    width: 32px;
    height: 32px;
  }

  .egs-svc__equip-link > span:last-child {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
  }

  .egs-svc__steps { grid-template-columns: 1fr; }
  .egs-svc__project { flex-basis: 85%; min-width: 0; }
  .egs-svc__slider-track-wrap { margin: 0 36px; }
}
