/* ==========================================================================
   Шаблон страницы услуги (service.php)
   Источник дизайна: Figma, файл "Сайты", узел 11081:6 ("Услуги 1")
   ========================================================================== */

.service-page {
  --sp-maroon: #5a0000;
  --sp-maroon-dark: #470000;
  --sp-orange: #ff8a01;
  --sp-orange-tint: #fff6e5;
  --sp-dark: #30313d;
  --sp-cream: #f3efe8;
  --sp-ink: #1e1e1e;
  font-family: 'Source Sans Pro', Arial, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1; /* базовый line-height макета (110%) — почти весь текст, кроме заголовков и лейблов */
  color: var(--sp-ink);
  overflow: hidden;
}
.service-page img { max-width: 100%; }
.service-page ul { list-style: none; }
.service-page .container { max-width: 1170px; }
.service-page a { transition: opacity .2s ease, color .2s ease, background-color .2s ease; }

/* ---------- служебные блоки ---------- */
.service-section { padding: 90px 0; }
.service-section--cream { background: var(--sp-cream); }
.service-section--dark { background: var(--sp-dark); color: #fff; }
.service-section--maroon { background: var(--sp-maroon); color: #fff; }

.service-kicker {
  display: block;
  font-size: 20px;
  font-weight: 600;
  line-height: .78;
  text-transform: uppercase;
  color: var(--sp-maroon);
  margin: 0 0 16px;
}
.service-kicker .num { color: var(--sp-orange); }
.service-section--dark .service-kicker,
.service-section--maroon .service-kicker { color: var(--sp-orange); }
.service-section--dark .service-kicker .num,
.service-section--maroon .service-kicker .num { color: rgba(255, 138, 1, .81); }

.service-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 40px;
  margin-bottom: 50px;
}
.service-heading__title {
  font-size: 40px;
  font-weight: 700;
  line-height: .94;
  margin: 0;
  max-width: 540px;
}
.service-heading__lede {
  font-size: 18px;
  color: rgba(30, 30, 30, .6);
  max-width: 560px;
  margin: 0;
}
.service-section--dark .service-heading__title,
.service-section--maroon .service-heading__title { color: #fff; }
.service-section--dark .service-heading__lede,
.service-section--maroon .service-heading__lede { color: rgba(255, 255, 255, .6); }

/* Кнопки и ссылки-стрелки */
.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: .78;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
}
.service-btn--maroon { background: var(--sp-maroon); color: #fff; }
.service-btn--maroon:hover { background: var(--sp-maroon-dark); color: #fff; }
.service-btn--orange { background: var(--sp-orange); color: #422400; }
.service-btn--orange:hover { background: #e67c00; color: #422400; }
.service-btn--outline { background: transparent; border-color: var(--sp-maroon); color: var(--sp-maroon); }
.service-btn--outline:hover { background: var(--sp-maroon); color: #fff; }
.service-btn--ghost { background: rgba(48, 49, 61, .8); color: #fff; }
.service-btn--ghost:hover { background: rgba(48, 49, 61, 1); color: #fff; }
.service-btn img { width: 24px; height: 24px; }

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 600;
  line-height: .78;
  color: var(--sp-maroon);
}
.service-link:hover { opacity: .7; color: var(--sp-maroon); }
.service-link--orange { color: var(--sp-orange); }
.service-link--orange:hover { color: var(--sp-orange); }
.service-link img { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.service-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 760px;
  padding: 150px 0 60px;
  background: var(--sp-dark);
  color: #fff;
  overflow: hidden;
}
.service-hero__media { position: absolute; inset: 0; z-index: 0; }
.service-hero__media img {
  position: absolute;
  top: 0; right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
}
.service-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sp-dark) 0%, var(--sp-dark) 40%, rgba(48, 49, 61, .05) 70%);
}
.service-hero .container { position: relative; z-index: 1; }

.service-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0 0 30px;
  font-size: 18px;
  line-height: .78;
  color: rgba(255, 255, 255, .6);
}
.service-hero__breadcrumb li,
.service-hero__breadcrumb li.breadcrumb-item,
.service-hero__breadcrumb li.breadcrumb-item.active {
  background: none !important;
  padding: 0 !important;
  float: none;
  text-transform: none !important;
  color: rgba(255, 255, 255, .6) !important;
}
/* тема (bootstrap.min.css / style.css) навешивает свой разделитель "|" на
   .breadcrumb-item + .breadcrumb-item::before — глушим его и рисуем свой "/" */
.service-hero__breadcrumb li.breadcrumb-item + li.breadcrumb-item::before { content: none !important; }
.service-hero__breadcrumb li:not(:last-child)::after { content: '/'; margin: 0 8px; opacity: .7; }
.service-hero__breadcrumb a,
.service-hero__breadcrumb li.breadcrumb-item a { color: rgba(255, 255, 255, .6) !important; text-transform: none !important; }
.service-hero__breadcrumb a:hover,
.service-hero__breadcrumb li.breadcrumb-item a:hover { color: #fff !important; }

.service-hero__eyebrow {
  color: var(--sp-orange);
  font-size: 18px;
  font-weight: 600;
  line-height: .78;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.service-hero__title {
  /* тема красит все h1/h2 в тёмный (style.css: "h1, h2 { color }"), явно перебиваем */
  color: #fff;
  font-size: 64px;
  font-weight: 700;
  line-height: .94;
  margin: 0 0 24px;
  max-width: 760px;
}
.service-hero__lede {
  font-size: 18px;
  color: rgba(255, 255, 255, .6);
  max-width: 620px;
  margin: 0 0 40px;
}
.service-hero__lede p:last-child { margin-bottom: 0; }
.service-hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.service-hero__badge {
  display: flex;
  width: fit-content;
  gap: 12px;
  align-items: center;
  background: rgba(48, 49, 61, .8);
  border-radius: 10px;
  padding: 20px;
  font-size: 18px;
  line-height: 1.1;
  flex-wrap: wrap;
}
.service-hero__badge span:first-child { color: rgba(255, 255, 255, .6); }
/* в макете плашка-кейс стоит справа, над фото, а не в текстовой колонке под кнопками */
@media (min-width: 1200px) {
  .service-hero__badge { margin-left: auto; }
  .service-hero__actions { margin-bottom: 0; }
}
.service-hero__badge span:last-child { color: #fff; }

/* ---------- Статистика (нахлёст на hero) ---------- */
.service-stats {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 31.5px rgba(0, 0, 0, .1);
  margin-top: -70px;
  display: flex;
  flex-wrap: wrap;
}
.service-stats__item {
  flex: 1 1 33.33%;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 40px 30px;
  border-right: 1px solid rgba(23, 23, 23, .12);
}
.service-stats__item:last-child { border-right: 0; }
.service-stats__item b { font-size: 40px; font-weight: 700; color: var(--sp-maroon); line-height: .94; }
.service-stats__item span { font-size: 18px; color: rgba(23, 23, 23, .6); white-space: nowrap; }

/* ---------- Что входит в услугу ---------- */
.service-includes__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 40px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(30, 30, 30, .1);
  position: relative;
}
.service-includes__row:last-child { border-bottom: 0; }
.service-includes__icon {
  flex: 0 0 92px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.service-includes__icon--maroon { background: var(--sp-maroon); }
.service-includes__icon--orange { background: var(--sp-orange); }
.service-includes__icon img { width: 50px; height: 50px; }
.service-includes__row:not(:last-child) .service-includes__icon::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 37px;
  background: rgba(30, 30, 30, .12);
  transform: translateX(-50%);
}
.service-includes__text { flex: 1 1 320px; }
.service-includes__text h3 { color: var(--sp-ink); font-size: 32px; font-weight: 700; line-height: .94; margin: 0 0 8px; }
.service-includes__text p { font-size: 16px; color: rgba(30, 30, 30, .6); max-width: 400px; margin: 0; }
.service-includes__row .service-link { flex-shrink: 0; margin-left: auto; }

/* ---------- Стоимость работ ---------- */
.service-price__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.service-price__col { flex: 1 1 340px; }
.service-price__col p { font-size: 18px; color: rgba(30, 30, 30, .6); max-width: 370px; margin: 0 0 30px; }
.service-price-card { flex: 1 1 480px; background: #fff; border-radius: 30px; overflow: hidden; }
.service-price-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: var(--sp-maroon);
  color: #fff;
  padding: 20px 30px;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
}
.service-price-card__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 30px;
  border-bottom: 1px solid rgba(30, 30, 30, .1);
  font-size: 16px;
  color: rgba(30, 30, 30, .8);
}
.service-price-card__row strong { font-weight: 700; color: var(--sp-maroon); white-space: nowrap; }
.service-price-card__note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 30px 24px;
  font-size: 13px;
  color: rgba(30, 30, 30, .6);
}
.service-price-card__note img { width: 24px; height: 24px; flex-shrink: 0; }

/* ---------- Порядок работы ---------- */
.service-process__steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  position: relative;
  margin-top: 40px;
  row-gap: 40px;
}
.service-process__steps::before {
  content: '';
  position: absolute;
  top: 43px;
  left: 7.2%;
  right: 7.2%;
  height: 1px;
  background: rgba(255, 255, 255, .2);
}
.service-process__step {
  position: relative;
  flex: 1 1 0;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
  padding: 0 8px;
}
.service-process__num {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 2px solid var(--sp-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-dark);
  font-size: 32px;
  line-height: .78;
  color: var(--sp-orange);
  position: relative;
  z-index: 1;
}
.service-process__step--active .service-process__num { background: var(--sp-orange); color: #422400; }
.service-process__step h4 { font-size: 18px; font-weight: 600; margin: 0; color: #fff; }
.service-process__step p { font-size: 16px; margin: 0; color: rgba(255, 255, 255, .6); }

/* ---------- Документы ---------- */
.service-docs__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 30px; }
.service-docs__grid { display: flex; gap: 30px; flex-wrap: wrap; }
.service-doc-card { background: #fff; border-radius: 30px; overflow: hidden; color: var(--sp-ink); }
.service-doc-card--featured { flex: 2 1 420px; display: flex; }
.service-doc-card--featured .service-doc-card__media { width: 256px; flex-shrink: 0; box-shadow: 2px 0 10.6px rgba(0, 0, 0, .25); }
.service-doc-card--featured .service-doc-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-doc-card--featured .service-doc-card__body { padding: 40px 30px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.service-doc-card__title { color: var(--sp-ink); }
.service-doc-card--featured .service-doc-card__title { font-size: 24px; font-weight: 600; line-height: .9; margin: 0; }
.service-doc-card--small { flex: 1 1 160px; padding: 20px; display: flex; flex-direction: column; min-height: 300px; }
.service-doc-card__eyebrow { font-size: 16px; font-weight: 600; line-height: .78; color: var(--sp-orange); text-transform: uppercase; margin: 0; }
.service-doc-card--small .service-doc-card__eyebrow { order: 3; font-size: 14px; margin-top: 24px; }
.service-doc-card__badge {
  align-self: flex-start;
  background: var(--sp-orange-tint);
  color: var(--sp-maroon);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  order: 1;
}
.service-doc-card__footer { margin-top: auto; order: 2; }
.service-doc-card--small .service-doc-card__title { font-size: 16px; font-weight: 600; margin: 4px 0 0; }

/* ---------- Примеры работ ---------- */
.service-portfolio__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 30px; }
.service-portfolio__grid {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
}
.service-portfolio__card {
  position: relative;
  min-height: 210px;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
.service-portfolio__card--big { grid-row: 1 / 3; min-height: 440px; }
.service-portfolio__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-portfolio__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .85) 100%);
}
.service-portfolio__caption { position: relative; z-index: 1; padding: 24px 30px; color: #fff; }
.service-portfolio__caption .tag { display: block; font-size: 14px; font-weight: 600; color: var(--sp-orange); margin: 0 0 8px; }
.service-portfolio__caption h3 { color: #fff; font-size: 32px; font-weight: 700; line-height: .94; margin: 0 0 8px; }
.service-portfolio__caption p { font-size: 18px; color: rgba(255, 255, 255, .7); margin: 0; }

/* ---------- FAQ ---------- */
.service-faq__grid { display: flex; gap: 60px; flex-wrap: wrap; }
.service-faq__aside { flex: 1 1 280px; }
.service-faq__aside p { font-size: 16px; color: rgba(30, 30, 30, .6); max-width: 460px; margin: 0; }
.service-faq__phone { display: inline-block; margin-top: 40px; font-size: 32px; font-weight: 700; line-height: .94; color: var(--sp-maroon); }
.service-faq__phone:hover { color: var(--sp-maroon-dark); }
.service-faq__list { flex: 2 1 480px; }
.service-faq__item { border-bottom: 1px solid rgba(30, 30, 30, .15); }
.service-faq__item:first-child { border-top: 1px solid rgba(30, 30, 30, .15); }
.service-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: inherit;
  color: var(--sp-ink);
  cursor: pointer;
}
.service-faq__q:hover { color: var(--sp-maroon); }
.service-faq__q .icon-plus,
.service-faq__q .icon-close { width: 20px; height: 20px; flex-shrink: 0; }
.service-faq__q .icon-close { display: none; }
.service-faq__q[aria-expanded="true"] .icon-plus { display: none; }
.service-faq__q[aria-expanded="true"] .icon-close { display: block; }
.service-faq__a-inner { padding: 0 30px 24px 0; font-size: 16px; line-height: 1.4; color: rgba(30, 30, 30, .6); }

/* ---------- CTA-блок с формой ---------- */
.service-cta {
  background: var(--sp-maroon);
  border-radius: 30px;
  padding: 50px;
  margin-top: 60px;
  color: #fff;
}
.service-cta__grid { display: flex; gap: 40px; flex-wrap: wrap; }
.service-cta__intro { flex: 1 1 280px; }
.service-cta__intro .service-kicker { margin-bottom: 24px; }
.service-cta__intro h3 { color: #fff; font-size: 40px; font-weight: 700; line-height: .94; margin: 0 0 20px; }
.service-cta__intro > p { font-size: 18px; color: rgba(255, 255, 255, .6); margin: 0 0 32px; max-width: 340px; }
.service-cta__contacts { display: flex; flex-direction: column; gap: 14px; font-size: 18px; font-weight: 600; margin: 0; padding: 0; }
.service-cta__contacts a { color: #fff; }
.service-cta__contacts a:hover { color: var(--sp-orange); }

.service-cta__form {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 40px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  border-right: 1px solid rgba(255, 255, 255, .2);
}
.service-cta__row { display: flex; gap: 16px; flex-wrap: wrap; }
.service-cta__field { flex: 1 1 140px; }
.service-cta__field label { display: block; font-size: 16px; color: rgba(255, 255, 255, .6); margin: 0 0 5px; }
.service-cta__field input,
.service-cta__field textarea {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: inherit;
  color: rgba(48, 49, 61, .85);
  background: #fff;
}
.service-cta__field textarea { min-height: 77px; resize: vertical; }
.service-cta__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.05; color: rgba(255, 255, 255, .68); }
.service-cta__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 5px;
  background: #fff;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
}
.service-cta__consent input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 2px;
  background: var(--sp-orange);
}
.service-cta__consent a { color: var(--sp-orange); }
.service-cta__consent a:hover { text-decoration: underline; }
.service-cta__submit { margin-top: 4px; align-self: flex-start; }

.service-cta__related { flex: 1 1 220px; }
.service-cta__related h4 { font-size: 20px; font-weight: 600; line-height: .78; color: rgba(255, 255, 255, .8); text-transform: uppercase; margin: 0 0 20px; }
.service-cta__related-list { margin: 0; padding: 0; }
.service-cta__related-list li { border-top: 1px solid rgba(255, 255, 255, .2); }
.service-cta__related-list li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.service-cta__related-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}
.service-cta__related-list a:hover { color: var(--sp-orange); }
.service-cta__related-list img { width: 24px; height: 24px; flex-shrink: 0; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1199px) {
  .service-hero__title { font-size: 48px; }
  .service-heading__title { font-size: 34px; }
}

@media (max-width: 991px) {
  .service-section { padding: 64px 0; }
  .service-hero { min-height: 0; padding: 130px 0 50px; }
  .service-hero__media img { width: 75%; }
  .service-stats { margin-top: -40px; }
  .service-stats__item { flex: 1 1 50%; }
  .service-stats__item:nth-child(2) { border-right: 0; }
  .service-includes__row .service-link { margin-left: 0; }
  .service-doc-card--featured { flex-direction: column; }
  .service-doc-card--featured .service-doc-card__media { width: 100%; height: 200px; }
  .service-portfolio__grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .service-portfolio__card--big { grid-row: auto; min-height: 320px; }
  .service-process__steps::before { display: none; }
  .service-process__step { flex: 1 1 33.33%; }
  .service-cta__form { border-left: 0; border-right: 0; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .2); border-bottom: 1px solid rgba(255, 255, 255, .2); }
}

@media (max-width: 767px) {
  .service-hero__title { font-size: 34px; }
  .service-hero__media img { width: 100%; opacity: .35; }
  .service-hero__media::after { background: linear-gradient(180deg, var(--sp-dark) 55%, rgba(48, 49, 61, .55) 100%); }
  .service-heading__title { font-size: 28px; }
  .service-stats { flex-direction: column; border-radius: 16px; }
  .service-stats__item { flex: 1 1 auto; border-right: 0; border-bottom: 1px solid rgba(23, 23, 23, .12); }
  .service-stats__item:last-child { border-bottom: 0; }
  .service-includes__icon::after { display: none; }
  .service-price-card__head,
  .service-price-card__row { padding: 16px 20px; }
  .service-process__step { flex: 1 1 50%; }
  .service-doc-card--small { flex: 1 1 45%; }
  .service-cta { padding: 32px 24px; }
  .service-cta__row { flex-direction: column; }
  .service-cta__submit { align-self: stretch; }
}

@media (max-width: 575px) {
  .service-hero__title { font-size: 28px; }
  .service-hero__actions .service-btn { width: 100%; }
  .service-doc-card--small { flex: 1 1 100%; }
}
