/* ==========================================================================
   SERVICES PAGE STYLES (Специфичные стили для страницы услуг)
   ========================================================================== */

/* Правильное отображение и масштабирование SVG-иконок */
svg.i {
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Фикс для разметки спрайта иконок, чтобы он не занимал место */
svg[style*="position:absolute"] {
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Сетка страницы: оглавление слева + контент справа */
.services-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 56px;
  align-items: start;
}

/* Оглавление (TOC) */
.toc {
  position: sticky;
  top: 96px;
}

.toc__title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(156, 130, 104);
  margin: 0 0 10px;
}

.toc__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-left: 1px solid rgb(221, 211, 194);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.toc__list a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 13.5px;
  line-height: 1.4;
  color: rgb(107, 101, 88);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.toc__list a:hover {
  color: rgb(38, 34, 32);
}

.toc__list a.is-active {
  color: rgb(38, 34, 32);
  font-weight: 600;
  border-left-color: rgb(156, 130, 104);
}

.toc__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* Карточка блока стоимости в Hero */
.price-card {
  background: rgb(255, 255, 255);
  border: 1px solid rgb(210, 196, 168);
  border-radius: 12px;
  padding: 24px 26px;
  box-shadow: 0 2px 8px rgba(38, 34, 32, 0.05);
}

.price-card h2 {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(156, 130, 104);
  margin-bottom: 10px;
}

.price-card p {
  font-size: 13.5px;
  color: rgb(43, 36, 31);
}

.price-card ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgb(221, 211, 194);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.price-card li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(239, 233, 221);
  color: rgb(74, 64, 56);
}

.price-card a {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: rgb(156, 130, 104);
  text-decoration: none;
}

.price-card a:hover {
  text-decoration: underline;
}

/* Группы услуг */
.services-group {
  margin-bottom: 48px;
}

.services-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(221, 211, 194);
}

.services-group__head h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: rgb(38, 34, 32);
  margin: 0;
}

.services-group__head p {
  font-size: 13.5px;
  color: rgb(107, 101, 88);
  max-width: 40ch;
  text-align: right;
  margin: 0;
}

/* Карточка услуги (аккордеон) */
.svc {
  background: rgb(255, 255, 255);
  border: 1px solid rgb(210, 196, 168);
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(38, 34, 32, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.svc:hover {
  border-color: rgb(156, 130, 104);
}

.svc__summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px 0;
  cursor: default;
}

.svc__summary::-webkit-details-marker {
  display: none;
}

.svc__icon {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 12px;
  background: rgb(239, 233, 221);
  border: 1px solid rgb(221, 211, 194);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(156, 130, 104);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.svc:hover .svc__icon {
  background: rgb(38, 34, 32);
  border-color: rgb(38, 34, 32);
  color: rgb(201, 173, 143);
}

.svc__title-wrap {
  flex: 1;
  min-width: 0;
}

.svc__num {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 12.5px;
  font-weight: 600;
  color: rgb(201, 173, 143);
  letter-spacing: 0.04em;
}

.svc__heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 600;
  color: rgb(38, 34, 32);
  margin: 0;
}

.svc__chev {
  display: none;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgb(221, 211, 194);
  align-items: center;
  justify-content: center;
  color: rgb(38, 34, 32);
  transition: transform 0.25s;
}

.svc[open] .svc__chev {
  transform: rotate(180deg);
}

.svc__body {
  padding: 16px 28px 24px;
}

.svc__intro {
  color: rgb(107, 101, 88);
  font-size: 14px;
  max-width: 65ch;
  margin: 0 0 16px;
}

.svc__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.svc__label {
  font-family: 'Inter', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(156, 130, 104);
  margin: 0 0 8px;
}

.svc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.svc li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.45;
  color: rgb(43, 36, 31);
}

.svc .when li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(201, 173, 143);
}

.svc .what li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 10px;
  height: 6px;
  border-left: 2px solid rgb(156, 130, 104);
  border-bottom: 2px solid rgb(156, 130, 104);
  transform: rotate(-45deg);
}

.svc__result {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgb(239, 233, 221);
  border-left: 3px solid rgb(156, 130, 104);
  font-size: 13.5px;
  color: rgb(43, 36, 31);
}

.svc__result b {
  font-weight: 600;
  color: rgb(38, 34, 32);
}

.svc__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgb(221, 211, 194);
}

.svc__case {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgb(107, 101, 88);
  text-decoration: none;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px dashed rgb(210, 196, 168);
  transition: border-color 0.2s, color 0.2s;
}

.svc__case svg {
  color: rgb(156, 130, 104);
}

.svc__case strong {
  color: rgb(38, 34, 32);
  font-weight: 500;
}

.svc__case:hover {
  border-color: rgb(156, 130, 104);
  color: rgb(38, 34, 32);
}

.svc__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.page-note {
  margin-top: 16px;
  font-size: 13.5px;
  color: rgb(107, 101, 88);
}

/* Карточки ситуаций в группе 2 */
.routes-lead {
  font-size: 14px;
  color: rgb(107, 101, 88);
  margin: 0 0 16px;
  max-width: 65ch;
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 24px;
  border-radius: 12px;
  background: rgb(38, 34, 32);
  color: rgb(207, 198, 186);
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
  box-shadow: 0 2px 8px rgba(38, 34, 32, 0.05);
}

.route-card:hover {
  transform: translateY(-2px);
  background: rgb(47, 42, 39);
}

.route-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(201, 173, 143, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgb(201, 173, 143);
  margin-bottom: 4px;
}

.route-card strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  color: rgb(242, 235, 221);
}

.route-card span {
  font-size: 13.5px;
  line-height: 1.45;
}

.route-card em {
  font-style: normal;
  margin-top: auto;
  padding-top: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgb(201, 173, 143);
}

/* Адаптивность для мобильных и планшетов */
@media (max-width: 1024px) {
  .services-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    display: none;
  }
  .routes-grid {
    grid-template-columns: 1fr;
  }
  .services-group__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .services-group__head p {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .services-layout {
    padding: 0 16px 48px;
  }
  .svc__summary {
    cursor: pointer;
    padding-bottom: 16px;
  }
  .svc[open] .svc__summary {
    padding-bottom: 0;
  }
  .svc__chev {
    display: flex;
  }
  .svc__cols {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .svc__btns {
    margin-left: 0;
    width: 100%;
  }
  .svc__btns a {
    flex: 1;
    justify-content: center;
  }
}