/* Страницы услуг — единая структура и оформление (sibarbo.ru) */

/* ========== Главная страница «Услуги» (uslugi.html) ========== */
.uslugi-page-wrap {
  padding-top: 0.5rem;
}

.uslugi-page-intro {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(46, 125, 50, 0.08);
  text-align: center;
}

.uslugi-page-intro p {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

.uslugi-catalog-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #162e44;
  margin: 0 0 1.75rem 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.uslugi-cards {
  margin-bottom: 0.5rem;
}

/* Карточки услуг — улучшенный вид */
.uslugi-card {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: box-shadow .3s ease, transform .3s ease;
  height: 100%;
  border: 1px solid rgba(0,0,0,.04);
}

.uslugi-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  transform: translateY(-6px);
  border-color: rgba(46, 125, 50, 0.15);
}

.uslugi-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.uslugi-card:hover img {
  transform: scale(1.03);
}

.uslugi-card-body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.uslugi-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #162e44;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
}

.uslugi-card-text {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.55;
  margin: 0 0 1rem 0;
}

.uslugi-card-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2e7d32;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.uslugi-card-link:hover {
  color: #1b5e20;
}

.uslugi-cta-block {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0,0,0,.06);
  text-align: center;
}

.uslugi-cta-block .button {
  min-width: 220px;
}

/* ========== Внутренние страницы услуг (uslugi-*.html) ========== */
.service-hero {
  padding: 2rem 0 2.5rem;
}

.service-hero .row {
  align-items: center;
}

.service-hero-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
}

.service-hero-img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 420px;
  object-fit: cover;
}

.service-hero-content {
  padding-left: 0;
}

@media (min-width: 992px) {
  .service-hero-content {
    padding-left: 2.5rem;
  }
}

.service-hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: #162e44;
  margin: 0 0 1.25rem 0;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.service-hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}

.service-hero p {
  color: #555;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-hero-buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 12px;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .service-hero-buttons {
    flex-wrap: wrap;
  }
}

.service-hero-buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-height: 52px;
  padding: 0 24px;
  margin: 0;
  box-sizing: border-box;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.2;
  text-decoration: none;
  border-width: 2px;
  font-size: 1rem;
}

.service-hero-buttons .button span {
  display: inline;
}

/* Блоки «Когда нужна» / «Что входит» / «Как мы работаем» */
.service-section {
  padding: 2.5rem 0;
}

.service-section-alt {
  background: linear-gradient(180deg, #f5f7f8 0%, #f0f2f4 100%);
}

.service-blocks {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .service-blocks {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

.service-block {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
}

.service-section-alt .service-block {
  box-shadow: 0 2px 16px rgba(0,0,0,.05), 0 1px 4px rgba(0,0,0,.03);
}

.service-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #162e44;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8ecef;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-list li {
  padding: 0.6rem 0 0.6rem 2rem;
  position: relative;
  line-height: 1.5;
  color: #37474f;
  font-size: 0.9375rem;
}

.service-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 1.35em;
  height: 1.35em;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.7rem;
  font-weight: bold;
  line-height: 1.35em;
  text-align: center;
}

.service-extra {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}

.service-extra::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #2e7d32 0%, #1b5e20 100%);
}

.service-extra-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #162e44;
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8ecef;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

.service-extra p {
  line-height: 1.7;
  color: #37474f;
  margin: 0 0 1rem 0;
  font-size: 0.9375rem;
}

.service-extra p:last-child {
  margin-bottom: 0;
}

.service-cta-strip {
  text-align: center;
  padding: 2rem 0 0.5rem;
}

.service-cta-strip .button,
.uslugi-cta-block .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  min-width: 220px;
  box-sizing: border-box;
  white-space: nowrap;
}
