/* ============================================================
   service-page.css — внутренние страницы /* в дизайне
   главной /uslugi: тёмный full-bleed герой, кнопки-пилюли с
   круглым чипом-стрелкой, стеклянные карточки, тёмный CTA.
   Стилизует существующую detail-разметку поверх uslugi.css.
   ============================================================ */

/* стрелки-иконки для чипов (запекаем цвет обводки) */
.services-detail {
  --arrow-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316181f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  --arrow-cream: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f4f5f8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

body.uslugi.services-detail { background: var(--cream); }

/* контейнер контента под фиксированной шапкой */
.services-shell {
  display: flex; flex-direction: column;
  padding-top: clamp(96px, 12vh, 140px);
  padding-bottom: 0;
}
/* всё, кроме full-bleed-блоков (герой и бегущая строка), — в центральной колонке */
.services-shell > *:not(.services-hero--service):not(.svc-marquee) {
  width: min(1180px, 100% - clamp(32px, 8vw, 128px));
  margin-inline: auto;
}
/* последний блок вплотную к подвалу — без лишнего воздуха */
.services-shell > *:last-child { margin-bottom: 0; }

/* ---------- ГЕРОЙ: тёмный full-bleed (как .whatwedo) ---------- */
.services-hero--service {
  position: relative;
  width: 100vw; margin-inline: calc(50% - 50vw);
  margin-top: calc(-1 * clamp(96px, 12vh, 140px));
  margin-bottom: 0;
  padding: clamp(120px, 16vh, 180px) 0 clamp(48px, 7vw, 88px);
  color: #fff;
  background: radial-gradient(90% 120% at 82% 0%, rgba(79,70,229,.34), transparent 55%),
              radial-gradient(60% 80% at 6% 100%, rgba(236,72,153,.16), transparent 60%),
              linear-gradient(160deg, #1b1d29 0%, #101119 100%);
}
.services-hero--service > * {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--pad);
}

.services-detail .breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: .04em; color: rgba(255,255,255,.6);
  margin-bottom: clamp(22px, 3vw, 34px);
}
.services-detail .breadcrumbs a { color: rgba(255,255,255,.8); transition: color .2s; }
.services-detail .breadcrumbs a:hover { color: #fff; }
.services-detail .breadcrumbs span { color: var(--accent-2); }

.services-hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(30px, 4vw, 70px); align-items: center;
}
.services-hero--service h1 {
  margin: 0 0 clamp(18px, 2vw, 26px);
  font-size: clamp(32px, 5vw, 64px); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.025em; color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.services-hero--service .services-hero__grid > div:first-child > p {
  margin: 0; font-size: clamp(16px, 1.6vw, 19px); font-weight: 300;
  color: rgba(255,255,255,.86); line-height: 1.6; max-width: 52ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(26px, 3vw, 38px); }

/* стеклянная панель «что входит» на тёмном герое */
.feature-panel {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px; padding: clamp(24px, 2.6vw, 32px);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.feature-panel h2 {
  margin: 0 0 18px; font-size: 13px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.78);
  display: flex; align-items: center; gap: 10px;
}
.feature-panel h2::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-2); flex: 0 0 7px;
}
.feature-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.feature-panel li {
  position: relative; padding-left: 26px; font-size: 15px;
  font-weight: 300; color: rgba(255,255,255,.88); line-height: 1.5;
}
.feature-panel li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 9px; background: var(--accent-2);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath fill='%23000' d='M4.8 9 0 4.2l1.4-1.4 3.4 3.4L11.6 0 13 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 9'%3E%3Cpath fill='%23000' d='M4.8 9 0 4.2l1.4-1.4 3.4 3.4L11.6 0 13 1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- секции ---------- */
.services-section { margin-bottom: clamp(48px, 6vw, 88px); }
.section-head { margin-bottom: clamp(24px, 3vw, 38px); max-width: 780px; }
.section-head h2 {
  margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 44px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05; color: var(--ink);
}
.section-head p { margin: 0; font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.6; }

/* ---------- карточки (как .pillar/.service-row) ---------- */
.info-grid, .services-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 22px);
}
.info-card, .service-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: clamp(24px, 2.4vw, 30px);
}
.info-card h2, .service-card h2, .service-card h3 {
  margin: 0; font-size: clamp(18px, 1.8vw, 22px); font-weight: 500; color: var(--ink);
}
.info-card p, .service-card p {
  margin: 0; font-size: 15px; font-weight: 300; color: var(--ink-soft); line-height: 1.58;
}
.service-card__action { margin-top: auto; padding-top: 6px; }

/* FAQ — общий стиль вынесен в uslugi.css (.faq-list/.faq-item), здесь только сетка секции */

/* ---------- CTA «обсудим проект» (СВЕТЛЫЙ блок, как .cta на /uslugi) ---------- */
.lead-section, .services-section--telegram {
  background: transparent; color: var(--ink);
  padding: clamp(56px, 8vw, 100px) 0 clamp(64px, 9vw, 110px); margin-bottom: 0;
}
.lead-telegram { max-width: 760px; margin-inline: auto; text-align: center; }
.lead-telegram > div { display: contents; }
.lead-telegram__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 10px;
}
.lead-telegram h2 {
  margin: 0 auto 14px; font-size: clamp(28px, 4.6vw, 54px);
  font-weight: 500; letter-spacing: -0.025em; line-height: 1.04; color: var(--ink); max-width: 20ch;
}
.lead-telegram p {
  margin: 0 auto 30px; font-size: 17px; font-weight: 300;
  color: var(--muted); line-height: 1.6; max-width: 52ch;
}
.lead-telegram .button { margin: 6px; vertical-align: middle; }

/* ---------- КНОПКИ-ПИЛЮЛИ с круглым чипом-стрелкой (как .btn) ---------- */
.services-detail .button {
  display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 10px 0 24px; border-radius: 40px;
  font-size: 15px; font-weight: 500; line-height: 1; cursor: pointer;
  border: 1px solid transparent;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.services-detail .button:hover { transform: translateY(-1px); }
.services-detail .button::after {
  content: ""; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%;
  background-color: var(--chip-bg, var(--cream));
  background-image: var(--chip-arrow, var(--arrow-ink));
  background-repeat: no-repeat; background-position: center; background-size: 15px 15px;
}
.services-detail .button--no-arrow { padding: 0 28px; }
.services-detail .button--no-arrow::after { display: none; }

/* светлые секции: primary = тёмная пилюля, secondary = контур */
.services-detail .button--primary { background: var(--ink); color: var(--cream); --chip-bg: var(--cream); --chip-arrow: var(--arrow-ink); }
.services-detail .button--primary:hover { background: var(--accent); --chip-bg: #fff; }
.services-detail .button--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); --chip-bg: var(--ink); --chip-arrow: var(--arrow-cream); }
.services-detail .button--secondary:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* только тёмный герой: primary = кремовая пилюля, secondary = контур по белому */
.services-hero--service .button--primary {
  background: var(--cream); color: var(--ink); --chip-bg: var(--ink); --chip-arrow: var(--arrow-cream);
}
.services-hero--service .button--primary:hover { background: #fff; }
.services-hero--service .button--secondary {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.42);
  --chip-bg: #fff; --chip-arrow: var(--arrow-ink);
}
.services-hero--service .button--secondary:hover { background: rgba(255,255,255,.16); }

/* кнопка «подробнее» внутри карточек — текст + круглая стрелка, как .more на /uslugi */
.service-card__action .button,
.service-card__action .button--no-arrow {
  height: auto; padding: 0; gap: 11px; border: 0; background: transparent;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.service-card__action .button:hover { transform: none; background: transparent; color: var(--accent); }
.service-card__action .button::after,
.service-card__action .button--no-arrow::after {
  display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background-color: transparent; background-image: var(--arrow-ink);
  background-repeat: no-repeat; background-position: center; background-size: 16px 16px;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.service-card:hover .service-card__action .button::after { background-color: var(--ink); background-image: var(--arrow-cream); border-color: var(--ink); }

/* ---------- бегущая строка (инжектится JS после героя) ---------- */
.svc-marquee {
  width: 100vw; margin: 0 calc(50% - 50vw) clamp(44px, 6vw, 80px);
}

/* ---------- адаптив ---------- */
@media (max-width: 920px) {
  .services-hero__grid { grid-template-columns: 1fr; }
  .info-grid, .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .services-shell > *:not(.services-hero--service) { width: min(100% - 32px, 640px); }
  .info-grid, .services-list { grid-template-columns: 1fr; }
  .services-hero--service h1 { font-size: clamp(30px, 9vw, 44px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .button { width: 100%; justify-content: space-between; }
  .lead-telegram .button { width: 100%; max-width: 340px; justify-content: space-between; margin: 6px 0 0; }
}
