/* ==========================================================================
   Страница «Услуги»
   Figma: sPziMpKKGID82N0WMopEja / фрейм "Услуги" (42:42) 1920×15888
   Дополняет css/style.css — токены, шапка, футер и аккордеон берутся оттуда.
   ========================================================================== */

/* ---------- Hero страницы ---------- */
.shero {
  position: relative;
  min-height: 1032px;
  display: flex;
  background: var(--bg);
}
.shero__copy {
  width: 50.625%; /* 972/1920 */
  flex: none;
  padding: 120px var(--shell) 60px;
  /* на экранах шире 1920 текст прижимается к краю контейнера */
  padding-left: max(var(--shell), calc((100vw - 1920px) / 2 + var(--shell)));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.shero__title {
  /* в макете 792px, но строка «КОНСАЛТИНГОВЫЕ УСЛУГИ» ровно 792px —
     округление выталкивает её на третью строку, даём 8px запаса */
  max-width: 800px;
  margin-top: 18px;
  font-size: clamp(34px, 2.865vw, 55px);
  line-height: 1.28;
  font-weight: 600;
}
.shero__title .accent { color: var(--blue); }

.shero__text {
  max-width: 774px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shero__text p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--grey-27);
}
.shero__text .accent { color: var(--blue); }

.shero__media { flex: 1 1 auto; min-width: 0; }
.shero__media img {
  width: 100%;
  height: 100%;
  min-height: 1032px;
  object-fit: cover;
}

/* ---------- Выбор процедуры ---------- */
.chooser { padding: 100px 0; }
.chooser__grid {
  display: grid;
  grid-template-columns: 46.4% 49.4%; /* 757 / 870 из 1760 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.chooser__head .section-title { margin-top: 18px; }
.chooser__lead {
  margin-top: 24px;
  max-width: 667px;
  font-size: 18px;
  line-height: 1.4;
  color: var(--grey-27);
}

/* Список процедур — раскрывающийся, разметка совпадает с .faq__* */
.chooser__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.chooser__list .faq__item { border: 0; }
.chooser__list .faq__q {
  font-family: Roboto, Inter, sans-serif;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 500;
  color: #000;
  padding: 20px;
  gap: 8px;
}
.chooser__list .faq__icon { width: 44px; height: 44px; }
.chooser__list .faq__a p {
  font-family: Roboto, Inter, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(0, 0, 0, .7);
  padding: 0 20px 20px;
}
.chooser__list .faq__a .accent {
  font-weight: 500;
  color: var(--blue);
}

/* ==========================================================================
   Блок услуги — шаблон, повторяется 5 раз
   ========================================================================== */
.srv { padding: 100px 0; }

/* --- Верх: заголовок + текст слева, фото справа --- */
.srv__top {
  display: grid;
  grid-template-columns: 42.7% 49.4%; /* 751 / 870 из 1760 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}

.srv__tag {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  padding: 10px 24px;
  border-radius: 100px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  background: rgba(204, 39, 39, .13);
  color: var(--red);
}
.srv__tag--blue { background: rgba(74, 85, 211, .13); color: var(--blue); }

.srv__title {
  margin-top: 20px;
  font-size: clamp(28px, 2.344vw, 45px);
  line-height: 1.28;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}

.srv__intro {
  margin-top: 32px;
  max-width: 746px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.srv__intro p {
  font-size: 18px;
  line-height: 1.65;
  color: #2a2a2a;
}
.srv__intro .accent {
  font-weight: 500;
  color: var(--blue);
}
.srv__source {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(42, 42, 42, .5);
}

.srv__photo {
  border-radius: 12px;
  overflow: hidden;
}
.srv__photo img {
  width: 100%;
  height: 497px;
  object-fit: cover;
}

/* --- Тезис + цитата слева, пояснения справа --- */
.srv__claim {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 44.6% 48.9%; /* 786 / 860 из 1760 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.srv__claim-title {
  font-size: clamp(26px, 2.083vw, 40px);
  line-height: 1.28;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.srv__claim-title .accent-red { color: var(--red); }

.quote {
  margin-top: 24px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(45, 53, 141, .08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quote__label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--blue);
}
.quote__label img { width: 24px; height: 24px; flex: none; }
.quote p {
  max-width: 488px;
  font-size: 18px;
  line-height: 1.65;
  color: #2a2a2a;
}

.srv__notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.srv__notes p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}

/* --- Как мы работаем --- */
.steps { margin-top: 90px; }
.steps__title {
  font-size: clamp(28px, 2.344vw, 45px);
  line-height: 1.28;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}
.steps__grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch; /* ряды ровные — как на главной */
}

.step {
  position: relative;
  /* 20px паддинг + 20px внутренней обёртки из макета */
  padding: 20px 20px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
/* квадратный маркер в правом верхнем углу */
.step::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: var(--blue);
}
.step__num {
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--red);
}
.step p {
  font-size: 18px;
  line-height: 1.65;
  color: var(--grey-27);
}
/* в макете текст уже карточки: 440px при карточке 573px */
.steps__grid:not(.steps__grid--wide):not(.steps__grid--half) .step p { max-width: 440px; }
.steps__grid:not(.steps__grid--wide):not(.steps__grid--half) .step--accent p { max-width: 504px; }

/* «Кому подходит» — акцентная карточка без маркера */
.step--accent {
  border: 0;
  background: var(--red);
}
.step--accent::after { content: none; }
.step--accent .step__title {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--white);
}
.step--accent p { color: var(--white); }
.step--purple { background: var(--blue); }

/* Вариант сетки: 3 карточки + ряд из двух широких */
.steps__grid--wide { grid-template-columns: repeat(6, 1fr); }
.steps__grid--wide > .step:nth-child(-n+3) { grid-column: span 2; }
.steps__grid--wide > .step:nth-child(n+4) { grid-column: span 3; }

/* --- Вопросы --- */
.qa {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 36.4% 49.4%; /* 641 / 870 из 1760 */
  justify-content: space-between;
  align-items: start;
  gap: 40px;
}
.qa__head .section-title { margin-top: 18px; color: var(--ink-soft); }
.qa__head .section-title .accent { color: var(--blue); }
.qa__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.qa__list .faq__item { border: 0; }
/* на серой секции пункты белые — иначе сливаются с фоном */
.srv--grey .faq__item { background: var(--white); }
.qa__list .faq__q { font-family: Roboto, Inter, sans-serif; }
.qa__list .faq__a p { font-family: Roboto, Inter, sans-serif; }

/* ==========================================================================
   Варианты секций
   ========================================================================== */
.srv--grey { background: var(--bg); }

/* Тёмная секция */
.srv--dark { background: var(--ink-soft); color: var(--white); }
.srv--dark .eyebrow { color: var(--white); }
.srv--dark .srv__title,
.srv--dark .steps__title,
.srv--dark .qa__head .section-title { color: var(--white); }
.srv--dark .srv__intro p { color: var(--white); }
.srv--dark .srv__source { color: rgba(255, 255, 255, .5); }
.srv--dark .srv__tag { background: rgba(204, 39, 39, .27); color: #f41e1e; }
.srv--dark .srv__intro .accent { color: #fe3535; }

.srv--dark .step {
  background: #1a1a1a;
  border-color: #737373;
}
.srv--dark .step__num { color: var(--blue-bright); }
.srv--dark .step p { color: var(--white); }
.srv--dark .step--purple { background: var(--blue); border-color: var(--blue); }

.srv--dark .faq__item { background: #1a1a1a; border: 1px solid #737373; }
.srv--dark .faq__q { color: var(--white); }
.srv--dark .faq__a p { color: rgba(255, 255, 255, .7); }

/* ==========================================================================
   Адаптив — те же брейкпоинты, что на главной
   ========================================================================== */
@media (max-width: 1199px) {
  .shero { min-height: 766px; }
  .shero__copy { width: 63.4%; padding: 110px var(--shell) 60px; }
  .shero__media img { min-height: 0; height: 100%; }
  .shero__title { font-size: 40px; }

  .chooser__grid,
  .srv__top,
  .srv__claim,
  .qa { grid-template-columns: 1fr; gap: 32px; }

  .steps__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid--wide { grid-template-columns: repeat(2, 1fr); }
  .steps__grid--wide > .step:nth-child(-n+3),
  .steps__grid--wide > .step:nth-child(n+4) { grid-column: auto; }

  .srv__photo img { height: 380px; }
  .srv__claim, .steps, .qa { margin-top: 60px; }
}

@media (max-width: 640px) {
  .shero { display: block; position: relative; min-height: 640px; }
  .shero__media { position: absolute; inset: 56px 0 0; z-index: 0; }
  .shero__media img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .shero::after {
    content: "";
    position: absolute;
    inset: 56px 0 0;
    z-index: 1;
    background: rgba(0, 0, 0, .8);
  }
  .shero__copy {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px var(--shell) 40px;
    gap: 20px;
  }
  .shero__title { font-size: 30px; color: var(--white); }
  .shero__title .accent { color: var(--blue-soft); }
  .shero__text p { font-size: 14px; color: var(--white); }
  .shero .eyebrow { color: #c0c0c0; }

  .chooser { padding: 40px 0; }
  .srv { padding: 40px 0; }
  .chooser__grid { gap: 20px; }
  .chooser__lead { font-size: 14px; margin-top: 16px; }
  .chooser__list .faq__q { font-size: 18px; padding: 16px; }
  .chooser__list .faq__icon { width: 32px; height: 32px; }

  .srv__title,
  .steps__title,
  .qa__head .section-title { font-size: 24px; }
  .srv__claim-title { font-size: 24px; }
  .srv__tag { font-size: 14px; padding: 8px 16px; }
  .srv__intro { margin-top: 20px; gap: 12px; }
  .srv__intro p,
  .srv__notes p,
  .step p,
  .quote p { font-size: 14px; }
  .srv__photo img { height: 240px; }

  .srv__claim, .steps, .qa { margin-top: 40px; }
  .steps__grid,
  .steps__grid--wide { grid-template-columns: 1fr; }
  .step { padding: 12px; }
  .quote__label { font-size: 16px; }
}

/* ---------- Дополнения ---------- */
/* Надзаголовок hero — без линии слева (в макете её нет) */
.eyebrow--plain::before { content: none; }

/* Подзаголовок под «Как мы работаем» */
.steps__lead {
  margin-top: 26px;
  max-width: 1124px;
  font-size: 18px;
  line-height: 1.65;
}
.steps__title .accent { color: var(--blue); }

/* Заголовок внутри карточки-шага */
.step__title {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--white);
}
.srv--dark .step .step__title { color: var(--white); }
.step:not(.step--accent) .step__title { color: inherit; }

/* Сетка «половинками»: 4 карточки по две в ряд */
.steps__grid--half { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 640px) {
  .steps__grid--half { grid-template-columns: 1fr; }
  .steps__lead { font-size: 14px; margin-top: 16px; }
  .step__title { font-size: 16px; }
}

/* Между последней секцией услуг и футером — белый отступ, как в макете:
   90px десктоп, 60 планшет, 50 мобильный (зазор 15438−15348 в макете). */
#firms { margin-bottom: 90px; }
@media (max-width: 1199px) { #firms { margin-bottom: 60px; } }
@media (max-width: 640px)  { #firms { margin-bottom: 50px; } }
