/* ============================================================
   Service pages — additional content blocks (TЗ pbo.kz)
   Brand: Rawline font, neutral base, pink CTA only on actions.
   Standalone file (survives SCSS recompile). Include via <link>.
   ============================================================ */

.svc-section { padding: 56px 0; }
.svc-section__label {
  display: block;
  font-family: 'Rawline', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #717680;
  margin-bottom: 8px;
}
.svc-section__title {
  font-family: 'Rawline', sans-serif;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  color: #0A0D12;
  margin: 0 0 32px;
  max-width: none;
  text-align: left;
}
.svc-section__title::before { content: none; }

/* ---------- Cards grid ("Кому подходит", "Что входит", ТК РК) ---------- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;      /* ровные ряды: карточки одной высоты */
}
.svc-cards .svc-card { height: 100%; box-sizing: border-box; }
.svc-cards--2 { grid-template-columns: repeat(2, 1fr); }
.svc-card {
  background: #FFFFFF;
  border: 1px solid #E9EAEB;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(10,13,18,0.05);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-card__title {
  font-family: 'Rawline', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 1.3;
  color: #181D27;
  margin: 0;
}
.svc-card__text {
  font-family: 'Rawline', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #414651;
  margin: 0;
}
/* law tag (ТК РК) — restrained indigo, no pink */
.svc-card__tag {
  align-self: flex-start;
  margin-top: 4px;
  font-family: 'Rawline', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1;
  color: #29245C;
  background: #ECEBF3;
  border: 1px solid #D9D6E6;
  border-radius: 999px;
  padding: 6px 12px;
}

/* ---------- Steps (numbered cards in a row) ---------- */
.svc-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.svc-step {
  background: #FFFFFF;
  border: 1px solid #E9EAEB;
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-step__num {
  font-family: 'Rawline', sans-serif;
  font-weight: 600;
  font-size: 44px;
  line-height: 1;
  color: #29245C;
  margin-bottom: 6px;
}
.svc-step__title {
  font-family: 'Rawline', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  color: #181D27;
  margin: 0;
}
.svc-step__text {
  font-family: 'Rawline', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #414651;
  margin: 0;
}

/* ---------- Inline tags row ("Для какого персонала") ---------- */
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.svc-tag {
  font-family: 'Rawline', sans-serif;
  font-weight: 500;
  font-size: 17px;
  color: #252B37;
  background: #FFFFFF;
  border: 1px solid #E9EAEB;
  border-radius: 999px;
  padding: 12px 22px;
}

/* ---------- FAQ accordion (works on desktop + mobile) ---------- */
.svc-faq__list {
  border-top: 1px solid #E9EAEB;
}
.svc-faq__item { border-bottom: 1px solid #E9EAEB; }
.svc-faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 22px 0;
  font-family: 'Rawline', sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  color: #181D27;
}
.svc-faq__sign {
  flex-shrink: 0;
  position: relative;
  width: 24px;
  height: 24px;
}
.svc-faq__sign::before,
.svc-faq__sign::after {
  content: '';
  position: absolute;
  background: #29245C;
  border-radius: 2px;
  transition: opacity .2s ease;
}
.svc-faq__sign::before { top: 11px; left: 2px; width: 20px; height: 2px; }
.svc-faq__sign::after  { left: 11px; top: 2px; width: 2px; height: 20px; }
.svc-faq__item.is-open .svc-faq__sign::after { opacity: 0; }
.svc-faq__a {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
}
.svc-faq__a-inner {
  padding: 0 0 22px;
  font-family: 'Rawline', sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: #414651;
}

/* ---------- Quote block (branded apply style) — heading over dark form ---------- */
.block.apply.svc-quote-apply .svc-quote-apply__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}
.block.apply.svc-quote-apply .svc-quote-apply__title {
  font-family: 'Rawline', sans-serif;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 10px;
}
.block.apply.svc-quote-apply .svc-quote-apply__subtitle {
  font-family: 'Rawline', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: #E7E5F2;
  margin: 0;
}
@media (max-width: 640px) {
  .block.apply.svc-quote-apply .svc-quote-apply__title { font-size: 24px; }
  .block.apply.svc-quote-apply .svc-quote-apply__subtitle { font-size: 16px; }
}

/* ---------- Checklist ("Кому подходит") — airy, no boxes ---------- */
.svc-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
  max-width: 900px;
}
.svc-checklist__item { display: flex; align-items: flex-start; gap: 14px; }
.svc-checklist__mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: #ECEBF3;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.svc-checklist__text { display: flex; flex-direction: column; gap: 3px; }
.svc-checklist__title {
  font-family: 'Rawline', sans-serif;
  font-weight: 500; font-size: 19px; line-height: 1.35; color: #181D27;
}
.svc-checklist__sub {
  font-family: 'Rawline', sans-serif;
  font-size: 15px; line-height: 1.45; color: #717680;
}

/* ---------- Highlighted section (legal ТК РК block — the differentiator) ---------- */
.svc-cards-block--highlight {
  background: #F7F6FB;                 /* subtle indigo tint */
  border-radius: 24px;
  padding: 48px 40px;
}
.svc-cards-block--highlight .container { padding: 0; }

/* ---------- Cards: auto layout + icon badge (sanau-style: icon on top) ---------- */
.svc-cards--auto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.svc-cards--auto .svc-card { flex: 1 1 300px; max-width: 360px; }

.svc-card--icon {
  flex-direction: column;       /* иконка сверху, как sanau.kz */
  align-items: flex-start;
  gap: 14px;
}
.svc-card__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ECEBF3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.svc-card__badge svg { width: 24px; height: 24px; }
.svc-card--icon .svc-card__body { display: flex; flex-direction: column; gap: 8px; }

/* ---------- "Что входит" в тарифном стиле (реюз .block.tariffs .box) ---------- */
.block.tariffs.svc-included .svc-included__row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: stretch;
}
.block.tariffs.svc-included .box { width: 400px; }
.block.tariffs.svc-included .box ul li { margin: 0 0 14px; }
.block.tariffs.svc-included .box ul li .sub {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: #717680;
  margin-top: 3px;
}
@media (max-width: 900px) {
  .block.tariffs.svc-included .box { width: 100%; min-width: 0; }
}

/* ---------- Benefits grid (sanau-style): light gradient cards, no border ---------- */
.svc-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.svc-benefit {
  background: linear-gradient(180deg, #F7F7FB 0%, #FFFFFF 100%);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.svc-benefit__img {
  width: 100%;
  max-height: 170px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 6px;
}
.svc-benefit__title {
  font-family: 'Rawline', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: #181D27;
  margin: 0;
}
.svc-benefit__text {
  font-family: 'Rawline', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #535862;
  margin: 0;
}
.svc-benefit .svc-card__tag { margin-top: auto; }

/* steps footnote */
.svc-steps__note {
  margin: 24px 0 0;
  font-family: 'Rawline', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #535862;
}

/* ============================ Responsive ============================ */
@media (max-width: 960px) {
  .svc-cards, .svc-cards--2 { grid-template-columns: repeat(2, 1fr); }
  .svc-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .svc-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-section__title { font-size: 32px; }
}
@media (max-width: 640px) {
  .svc-section { padding: 40px 0; }
  .svc-cards, .svc-cards--2, .svc-steps { grid-template-columns: 1fr; gap: 14px; }
  .svc-benefits__grid { grid-template-columns: 1fr; gap: 14px; }
  .svc-checklist { grid-template-columns: 1fr; gap: 16px; }
  .svc-cards-block--highlight { padding: 28px 20px; border-radius: 18px; }
  .svc-cards--auto .svc-card { flex-basis: 100%; max-width: none; }

  .svc-section__title { font-size: 26px; margin-bottom: 24px; }
  .svc-card, .svc-step { padding: 22px; }
  .svc-quote { padding: 28px 22px; }
  .svc-quote__form { flex-direction: column; }
  .svc-quote__submit { width: 100%; }
  .svc-faq__q { font-size: 17px; }
}
