/* ===== B2C page only ===== */
body.page-uslugi-fizicheskim-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-fizicheskim-licam .sl-menu > li > a{
  color: rgba(255,255,255,.92);
}
body.page-uslugi-fizicheskim-licam .sl-menu > li > a:hover{
  color: var(--sl-white);
}
body.page-uslugi-fizicheskim-licam .sl-menu-toggle{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
}

/* ===== Page background ===== */
.sl-main--b2c{
  background: var(--sl-bg-light);
}

.sl-page-hero--b2c,
.sl-b2c-section--dark{
  background: var(--sl-hero-bg);
}

/* ===== Hero ===== */
.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) ===== */
.sl-b2c-section{
  padding: clamp(34px, 4.2vw, 56px) 0;
}

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

.sl-b2c-section--dark{
  padding-top: clamp(40px, 5.2vw, 72px);
  padding-bottom: clamp(36px, 4.4vw, 58px);
}

/* Thin divider only between same “light” sections */
.sl-b2c-section + .sl-b2c-section{
  border-top: 1px solid rgba(18,21,33,.06);
}
.sl-b2c-section--alt + .sl-b2c-section,
.sl-b2c-section + .sl-b2c-section--alt{
  border-top: none;
}

@media (max-width: 640px){
  .sl-b2c-section{ padding: 28px 0; }
  .sl-b2c-section--alt{ padding: 32px 0; }
  .sl-b2c-section--dark{
    padding-top: 34px;
    padding-bottom: 30px;
  }
}

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

.sl-b2c-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-b2c-section--dark .sl-b2c-title{
  color: #fff;
}

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

.sl-b2c-grid--directions{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 1024px){
  .sl-b2c-grid--directions{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .sl-b2c-grid--directions,
  .sl-b2c-grid--two{
    grid-template-columns: 1fr;
  }
}

/* ===== Base Cards ===== */
.sl-b2c-card{
  background: #fff;
  border-radius: var(--sl-radius-lg);
  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-b2c-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-b2c-card{ transition: none; }
  .sl-b2c-card:hover{ transform: none; }
}

/* =========================================================
   B2C Directions (dark)
========================================================= */

.sl-b2c-section--dark .sl-b2c-grid--directions > *{
  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: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease;
  cursor: default;
  transform: translateY(0);
  will-change: transform;
}

/* Left rail */
.sl-b2c-section--dark .sl-b2c-grid--directions > *::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;
}

/* Right arrow bubble */
.sl-b2c-section--dark .sl-b2c-grid--directions > *::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;
}

.sl-b2c-section--dark .sl-b2c-grid--directions > *: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);
  transform: translateY(-1px);
}

.sl-b2c-section--dark .sl-b2c-grid--directions > *:hover::before{
  opacity: .95;
  transform: translateX(0);
}

.sl-b2c-section--dark .sl-b2c-grid--directions > *: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);
}

/* Keyboard focus */
.sl-b2c-section--dark .sl-b2c-grid--directions > *:focus-within{
  transform: translateY(-1px);
  border-color: rgba(255, 90, 0, .45);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .18), 0 26px 70px rgba(0,0,0,.28);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .sl-b2c-section--dark .sl-b2c-grid--directions > *,
  .sl-b2c-section--dark .sl-b2c-grid--directions > *::before,
  .sl-b2c-section--dark .sl-b2c-grid--directions > *::after{
    transition: none;
  }

  .sl-b2c-section--dark .sl-b2c-grid--directions > *,
  .sl-b2c-section--dark .sl-b2c-grid--directions > *:hover,
  .sl-b2c-section--dark .sl-b2c-grid--directions > *:focus-within{
    transform: none;
  }
}

/* If you still use this class in markup — keep it neutral (no conflicts) */
.sl-b2c-card--direction{
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* ===== Typography inside cards ===== */
.sl-b2c-card__title{
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 700;
}

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

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

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

/* ===== List style (premium bullets) ===== */
.sl-b2c-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-b2c-list li{
  position: relative;
  padding-left: 18px;
  margin: 8px 0;
}

.sl-b2c-list li::before{
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 90, 0, .92);
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .12);
}

/* ===== FAQ ===== */
.sl-b2c-faq{
  display: grid;
  gap: 10px;
}

.sl-b2c-faq__item{
  background: #fff;
  border: 1px solid rgba(18,21,33,.08);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(18,21,33,.05);
  overflow: hidden;
}

.sl-b2c-faq__q{
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background-color .16s ease;
}

.sl-b2c-faq__q:hover{
  background: rgba(18,21,33,.02);
}

.sl-b2c-faq__q:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .16);
}

.sl-b2c-faq__q::-webkit-details-marker{ display: none; }

.sl-b2c-faq__q::after{
  content: "+";
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: rgba(18,21,33,.62);
  background: rgba(18,21,33,.04);
  border: 1px solid rgba(18,21,33,.08);
  flex: 0 0 auto;
}

.sl-b2c-faq__item[open] .sl-b2c-faq__q::after{
  content: "—";
  color: rgba(18,21,33,.70);
}

.sl-b2c-faq__a{
  padding: 0 16px 14px;
  color: rgba(18,21,33,.78);
  font-size: 14px;
  line-height: 1.65;
}

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

.sl-b2c-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-b2c-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-b2c-cta__lead{
  margin: 0 0 12px;
  color: rgba(255,255,255,.80);
  font-size: 14px;
  line-height: 1.65;
  max-width: 62ch;
}

.sl-b2c-cta__hint{
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,.68);
}

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

/* ===== Contacts ===== */
.sl-b2c-contacts{
  margin-top: 10px;
  display: grid;
  gap: 12px;
}

.sl-b2c-contacts__row{
  display: grid;
  gap: 6px;
}

.sl-b2c-contacts__label{
  font-size: 12px;
  color: rgba(255,255,255,.68);
}

.sl-b2c-contacts__value{
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.sl-b2c-contacts__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sl-b2c-chip{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.sl-b2c-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.18);
}

.sl-b2c-chip:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 90, 0, .16);
}

/* ===== Form ===== */
.sl-b2c-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-b2c-field{
  display: grid;
  gap: 6px;
}

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

.sl-b2c-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-b2c-field__input::placeholder{
  color: rgba(255,255,255,.45);
}

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

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

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

/* =========================================================
   B2C Premium polish pack (two-cards + cases)
   (safe selectors; won't touch directions tiles)
========================================================= */

/* 1) Two cards (Court / Trust) */
.sl-b2c-grid--two .sl-b2c-card{
  position: relative;
  overflow: hidden;
  padding: 18px 18px 16px;
  border-radius: 18px;

  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);
  border-color: rgba(18,21,33,.06);
}

.sl-b2c-grid--two .sl-b2c-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-b2c-grid--two .sl-b2c-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-b2c-grid--two .sl-b2c-card__title{
  letter-spacing: -0.012em;
  line-height: 1.18;
}
.sl-b2c-grid--two .sl-b2c-card__text{
  color: rgba(18,21,33,.72);
  line-height: 1.6;
}
.sl-b2c-grid--two .sl-b2c-list li{
  margin: 10px 0;
}
.sl-b2c-grid--two .sl-b2c-list li::before{
  width: 7px;
  height: 7px;
  background: rgba(255, 90, 0, .95);
  box-shadow: 0 0 0 4px rgba(255, 90, 0, .10);
}

/* 2) Cases (optional: if you add these wrappers later) */
.sl-b2c-section--cases .sl-b2c-card,
.sl-b2c-grid--cases .sl-b2c-card{
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 18px 18px 16px;

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

  box-shadow: 0 20px 54px rgba(12, 16, 30, .06);
}

.sl-b2c-section--cases .sl-b2c-card::before,
.sl-b2c-grid--cases .sl-b2c-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: .65;
}

.sl-b2c-section--cases .sl-b2c-card::after,
.sl-b2c-grid--cases .sl-b2c-card::after{
  content:"";
  position:absolute;
  left: -160px;
  bottom: -180px;
  width: 360px;
  height: 360px;
  background: radial-gradient(closest-side, rgba(255,90,0,.10), transparent 70%);
  pointer-events:none;
}

.sl-b2c-section--cases .sl-b2c-card:hover,
.sl-b2c-grid--cases .sl-b2c-card:hover{
  transform: translateY(-1px);
  box-shadow: 0 24px 64px rgba(12, 16, 30, .075);
  border-color: rgba(18,21,33,.09);
}

@media (max-width: 640px){
  .sl-b2c-grid--two .sl-b2c-card{
    padding: 16px 14px 14px;
    border-radius: 16px;
  }
  .sl-b2c-grid--two .sl-b2c-card::before{
    left: 14px;
    right: 14px;
  }
}