/* ===== B2B page only (slug-based scope) ===== */
body.page-uslugi-yuridicheskim-licam .sl-site-header{
  background: rgba(5, 10, 45, 0.96);
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: var(--sl-white);
}

body.page-uslugi-yuridicheskim-licam .sl-menu > li > a{
  color: rgba(255,255,255,.92);
}
body.page-uslugi-yuridicheskim-licam .sl-menu > li > a:hover{
  color: var(--sl-white);
}

body.page-uslugi-yuridicheskim-licam .sl-menu-toggle{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

/* ===== Page background ===== */
.sl-main--b2b{
  background:
    linear-gradient(to bottom, var(--sl-hero-bg) 0 520px, var(--sl-bg-light) 520px 100%);
}

@media (max-width: 1024px){
  .sl-main--b2b{
    background:
      linear-gradient(to bottom, var(--sl-hero-bg) 0 480px, var(--sl-bg-light) 480px 100%);
  }
}

/* ===== Hero (premium) ===== */
.sl-page-hero{
  padding: 52px 0 26px;
}

@media (max-width: 640px){
  .sl-page-hero{
    padding: 38px 0 22px;
  }
}

.sl-page-hero__card{
  border-radius: var(--sl-radius-xl);
  border: 1px solid var(--sl-hero-card-border);
  box-shadow: var(--sl-hero-card-shadow);
  background:
    radial-gradient(1200px 520px at 12% 8%, rgba(255, 90, 0, .18), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: clamp(22px, 3.4vw, 34px);
  color: var(--sl-white);
}

.sl-page-hero__title{
  font-family: var(--sl-font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  margin: 0 0 10px;
  max-width: 20ch;
  text-wrap: balance;
}

.sl-page-hero__lead{
  margin: 0 0 18px;
  max-width: 58ch;
  color: rgba(255,255,255,.82);
  font-size: 15px;
  line-height: 1.6;
}

.sl-page-hero__actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.sl-page-hero__note{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.70);
}

/* ===== Sections (vertical rhythm premium) ===== */
.sl-b2b-section{
  padding: clamp(34px, 4.2vw, 56px) 0;
}

.sl-b2b-section--alt{
  background: var(--sl-bg-light-2);
  padding: clamp(40px, 4.8vw, 64px) 0;
}

.sl-b2b-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(16px, 2.0vw, 22px);
}

.sl-b2b-title{
  margin: 0;
  font-family: var(--sl-font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.15;
  text-wrap: balance;
}

/* Тонкий разделитель только между одинаковыми “светлыми” секциями */
.sl-b2b-section + .sl-b2b-section{
  border-top: 1px solid rgba(18,21,33,.06);
}
.sl-b2b-section--alt + .sl-b2b-section,
.sl-b2b-section + .sl-b2b-section--alt{
  border-top: none;
}

/* ===== FIX: #tasks полностью на тёмном фоне ===== */
#tasks.sl-b2b-section{
  position: relative;
  background: var(--sl-hero-bg);
  background:
    radial-gradient(1100px 520px at 14% 0%, rgba(255, 90, 0, .12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0) 40%),
    var(--sl-hero-bg);
  padding-top: clamp(40px, 5.2vw, 72px);
  padding-bottom: clamp(36px, 4.4vw, 58px);
}

#tasks .sl-b2b-title{
  color: #fff;
  font-size: clamp(20px, 2.0vw, 26px);
  letter-spacing: -0.014em;
}

#tasks .sl-b2b-head{
  margin-bottom: clamp(16px, 2.0vw, 22px);
}

/* Не рисуем “разделитель-линию” на границе тёмного tasks → светлая секция */
#tasks + .sl-b2b-section{
  border-top: none;
}

/* ===== Grids ===== */
.sl-b2b-grid{
  display: grid;
  gap: clamp(14px, 1.6vw, 18px);
}

.sl-b2b-grid--tasks{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 18px);
}

.sl-b2b-grid--two{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sl-b2b-grid--benefits{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px){
  .sl-b2b-grid--tasks{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sl-b2b-grid--benefits{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  .sl-b2b-grid--tasks,
  .sl-b2b-grid--two,
  .sl-b2b-grid--benefits{
    grid-template-columns: 1fr;
  }

  .sl-b2b-section{ padding: 28px 0; }
  .sl-b2b-section--alt{ padding: 32px 0; }
  #tasks.sl-b2b-section{
    padding-top: 34px;
    padding-bottom: 30px;
  }
}

/* ===== Cards (base) ===== */
.sl-b2b-card{
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(18,21,33,.06);
  box-shadow: 0 14px 34px rgba(12, 16, 30, .055);
  padding: 16px 16px 14px;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease, background-color .18s ease;
}

.sl-b2b-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 18px 44px rgba(12, 16, 30, .075);
  border-color: rgba(18,21,33,.09);
}

@media (prefers-reduced-motion: reduce){
  .sl-b2b-card{ transition: none; }
  .sl-b2b-card:hover{ transform: none; }
}

/* ===== Tasks cards (premium + interactive) ===== */
/* ВАЖНО: делаем селектор устойчивым — даже если в разметке карточки задач не имеют .sl-b2b-card */
#tasks .sl-b2b-grid--tasks > *{
  position: relative;
  overflow: hidden;
  border-radius: 16px;

  /* “стекло” */
  background:
    linear-gradient(135deg, rgba(255,255,255,.34), rgba(255,255,255,0) 55%),
    rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 52px rgba(0,0,0,.22);

  min-height: 78px;
  display: flex;
  align-items: center;

  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(18,21,33,.92);

  padding: 18px 56px 18px 22px; /* справа место под стрелку */
  transition: box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  cursor: default;
}

/* Левая “рейка” */
#tasks .sl-b2b-grid--tasks > *::before{
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--sl-orange);
  opacity: .14;
  transform: translateX(-1px);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}

/* Мини-стрелка справа (как намёк на интерактив) */
#tasks .sl-b2b-grid--tasks > *::after{
  content: "→";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(18,21,33,.06);
  border: 1px solid rgba(18,21,33,.08);
  color: rgba(18,21,33,.72);

  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
  pointer-events: none;
}

#tasks .sl-b2b-grid--tasks > *:hover{
  background:
    linear-gradient(135deg, rgba(255,255,255,.40), rgba(255,255,255,0) 55%),
    rgba(255,255,255,.965);
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 26px 70px rgba(0,0,0,.28);
}

#tasks .sl-b2b-grid--tasks > *:hover::before{
  opacity: .95;
  transform: translateX(0);
}

#tasks .sl-b2b-grid--tasks > *:hover::after{
  transform: translateY(-50%) translateX(2px);
  background: rgba(255, 90, 0, .10);
  border-color: rgba(255, 90, 0, .18);
  color: rgba(18,21,33,.92);
}

/* ===== Two service cards (remove “Word look”) ===== */
.sl-b2b-grid--two .sl-b2b-card{
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  background:
    radial-gradient(640px 240px at 100% 0%, rgba(255,90,0,.045), transparent 60%),
    radial-gradient(560px 220px at 0% 100%, rgba(8,20,74,.035), transparent 62%),
    #fff;
  box-shadow: 0 20px 54px rgba(12, 16, 30, .06);
}

/* Верхняя рейка-градиент (дорогой штрих) */
.sl-b2b-grid--two .sl-b2b-card::before{
  content:"";
  position:absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8,20,74,.85), rgba(29,59,157,.55), rgba(255,90,0,.85));
  opacity: .75;
}

/* Лёгкий “свет” в углу */
.sl-b2b-grid--two .sl-b2b-card::after{
  content:"";
  position:absolute;
  right: -140px;
  top: -140px;
  width: 320px;
  height: 320px;
  background: radial-gradient(closest-side, rgba(93,130,255,.12), transparent 70%);
  pointer-events:none;
}

/* Типографика внутри сервисных карточек */
.sl-b2b-grid--two .sl-b2b-card__title{
  letter-spacing: -0.012em;
  line-height: 1.18;
}

.sl-b2b-grid--two .sl-b2b-card__text{
  color: rgba(18,21,33,.72);
  line-height: 1.6;
}

/* Список — чуть богаче */
.sl-b2b-list{
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  color: rgba(18,21,33,.86);
  font-size: 14px;
  line-height: 1.65;
}

.sl-b2b-list li{
  position: relative;
  padding-left: 18px;
  margin: 10px 0;
}

.sl-b2b-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 90, 0, .95);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, .10);
}

/* ===== Card typography (global for B2B page cards) ===== */
.sl-b2b-card__title{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

.sl-b2b-card__text{
  margin: 0 0 10px;
  color: rgba(18,21,33,.78);
  font-size: 14px;
  line-height: 1.6;
}

.sl-b2b-card__hint{
  margin: 10px 0 0;
  color: rgba(18,21,33,.70);
  font-size: 13px;
  line-height: 1.6;
}

.sl-b2b-card__result{
  margin-top: 10px;
  font-weight: 600;
  color: rgba(18,21,33,.92);
  font-size: 13px;
}

/* ===== Chips ===== */
.sl-b2b-chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-b2b-chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(18,21,33,.03);
  border: 1px solid rgba(18,21,33,.08);
  font-size: 14px;
  font-weight: 600;
}

/* ===== CTA ===== */
.sl-b2b-cta{
  padding: clamp(54px, 6vw, 78px) 0 clamp(60px, 6.4vw, 84px);
  background: var(--sl-hero-bg);
}

.sl-b2b-cta__grid{
  border-radius: var(--sl-radius-xl);
  border: 1px solid var(--sl-hero-card-border);
  box-shadow: var(--sl-hero-card-shadow);
  background:
    radial-gradient(1200px 520px at 18% 15%, rgba(255, 90, 0, .20), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  padding: clamp(18px, 2.8vw, 28px);
  display: grid;
  grid-template-columns: var(--sl-col-main-left) var(--sl-col-main-right);
  gap: 16px;
  color: #fff;
}

.sl-b2b-cta__title{
  margin: 0 0 10px;
  font-family: var(--sl-font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.12;
}

.sl-b2b-cta__lead{
  margin: 0 0 12px;
  color: rgba(255,255,255,.80);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}

.sl-b2b-cta__hint{
  font-size: 13px;
  color: rgba(255,255,255,.68);
}

@media (max-width: 991px){
  .sl-b2b-cta__grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px){
  .sl-b2b-cta{
    padding-top: 44px;
    padding-bottom: 52px;
  }
}

/* ===== Form ===== */
.sl-b2b-form{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.sl-b2b-field{
  display: grid;
  gap: 6px;
}

.sl-b2b-field__label{
  font-size: 12px;
  color: rgba(255,255,255,.70);
}

.sl-b2b-field__input{
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7, 10, 20, .22);
  color: #fff;
  padding: 12px 12px;
  outline: none;
  font-size: 14px;
}

.sl-b2b-field__input::placeholder{
  color: rgba(255,255,255,.45);
}

.sl-b2b-field__input:focus{
  border-color: rgba(255, 90, 0, .55);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .16);
}

.sl-b2b-field__input--textarea{
  resize: vertical;
  min-height: 96px;
}

.sl-b2b-form__policy{
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255,255,255,.60);
  line-height: 1.45;
}

/* ===== Premium: Benefits tiles (only inside .sl-b2b-grid--benefits) ===== */
.sl-b2b-grid--benefits{
  gap: clamp(12px, 1.4vw, 18px);
}

/* Работает и если там div, и если там .sl-b2b-chip */
.sl-b2b-grid--benefits > *{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(18,21,33,.06);
  box-shadow: 0 18px 46px rgba(12, 16, 30, .055);

  background:
    radial-gradient(560px 220px at 100% 0%, rgba(255,90,0,.045), transparent 60%),
    radial-gradient(520px 220px at 0% 100%, rgba(8,20,74,.035), transparent 62%),
    #fff;

  /* “премиальная” компоновка текста */
  display: flex;
  align-items: center;
  min-height: 74px;
  padding: 16px 18px 16px 46px; /* слева место под маркер */
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  color: rgba(18,21,33,.90);
  text-wrap: balance;

  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

/* Верхняя тонкая рейка-градиент (дорогой штрих) */
.sl-b2b-grid--benefits > *::before{
  content:"";
  position:absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(8,20,74,.85), rgba(29,59,157,.55), rgba(255,90,0,.85));
  opacity: .55;
}

/* Маркер слева: “точка-акцент” */
.sl-b2b-grid--benefits > *::after{
  content:"";
  position:absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 90, 0, .95);
  box-shadow: 0 0 0 6px rgba(255, 90, 0, .10);
  opacity: .92;
}

/* Hover: без “прыжков”, но заметно “дороже” */
.sl-b2b-grid--benefits > *:hover{
  transform: translateY(-1px);
  border-color: rgba(18,21,33,.09);
  box-shadow: 0 22px 58px rgba(12, 16, 30, .075);
}

/* Focus (на случай, если в будущем сделаем кликабельными) */
.sl-b2b-grid--benefits > *:focus-within{
  outline: 3px solid rgba(255, 90, 0, .18);
  outline-offset: 2px;
}

/* Если “преимущества” размечены классом .sl-b2b-chip — убираем его прежний вид только тут */
.sl-b2b-grid--benefits .sl-b2b-chip{
  background: transparent;
  border: none;
  padding: 0;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce){
  .sl-b2b-grid--benefits > *{ transition: none; }
  .sl-b2b-grid--benefits > *:hover{ transform: none; }
}

/* Mobile tweaks: чтобы не было ощущения “пухлых” карточек */
@media (max-width: 640px){
  .sl-b2b-grid--benefits > *{
    min-height: 66px;
    padding: 14px 14px 14px 42px;
    border-radius: 16px;
  }
  .sl-b2b-grid--benefits > *::before{
    left: 14px; right: 14px;
  }
  .sl-b2b-grid--benefits > *::after{
    left: 16px;
  }
}