/* ============================================================
   ВГТ B2C — Тарифные карточки v1
   Используется: b2c/internet.html, b2c/index.html, b2c/telephony.html
   ============================================================ */

/* ── Слайдер — обёртка ── */
.b2c-slider {
  outline: none;
  margin-top: var(--space-10, 40px);
  padding-top: 12px; /* запас сверху для translateY(-4px) + тени при ховере */
}

/* ── Track ── */
.b2c-slider__wrap {
  overflow-x: scroll;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  /* При overflow-x: scroll браузер режет и вертикаль (overflow-y
     фактически auto) — тень и ховер-подъём карточек обрезались.
     Даём тени пространство внутри скролл-области и компенсируем
     раскладку отрицательными маргинами. */
  padding: 14px 0 24px;
  margin: -14px 0 -24px;
}

.b2c-slider__wrap::-webkit-scrollbar {
  display: none;
}

.b2c-slider__wrap:active {
  cursor: grabbing;
}

.b2c-slider__track {
  display: flex;
  gap: 20px;
}

/* ── Nav: стрелки + точки ── */
.b2c-slider__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ── Стрелки ── */
.b2c-arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(13, 19, 32, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-gray-900, #0D1320);
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.b2c-arrow:hover {
  background: var(--color-brand-500, #0A6CFF);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(10, 108, 255, 0.3);
}

/* ── Dots ── */
.b2c-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.b2c-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(13, 19, 32, 0.15);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s, border-radius 0.25s, background 0.25s;
}

.b2c-dot--active {
  width: 22px;
  border-radius: 4px;
  background: var(--color-brand-500, #0A6CFF);
}

/* ════════════════════════════════════════════
   КАРТОЧКА ТАРИФА
   ════════════════════════════════════════════ */

.b2c-plan {
  flex: 0 0 auto;
  scroll-snap-align: start;
  position: relative;
  background: #fff;
  border: 1px solid rgba(13, 19, 32, 0.08);
  border-radius: 16px;
  padding: 28px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.b2c-plan:hover {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* Featured — синяя обводка */
.b2c-plan--featured {
  border: 2px solid var(--color-brand-500, #0A6CFF);
  box-shadow: 0 4px 20px rgba(10, 108, 255, 0.1), 0 1px 4px rgba(10, 108, 255, 0.08);
}

.b2c-plan--featured:hover {
  box-shadow: 0 8px 32px rgba(10, 108, 255, 0.18), 0 2px 8px rgba(10, 108, 255, 0.1);
}

/* Overlay для фоновых изображений */
.b2c-plan__overlay {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
}

.b2c-plan > *:not(.b2c-plan__overlay):not(.b2c-plan__badge) {
  position: relative;
  z-index: 1;
}

/* ── Бейдж ── */
.b2c-plan__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-brand-500, #0A6CFF);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
  line-height: 1.4;
}

/* ── Имя тарифа ── */
.b2c-plan__top {
  margin-bottom: 20px;
  padding-right: 90px; /* не перекрывать бейдж */
}

.b2c-plan__name {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-gray-900, #0D1320);
  line-height: 1.2;
  margin: 0;
}

/* ── Строки услуг ── */
.b2c-plan__services {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.b2c-svc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(13, 19, 32, 0.06);
}

.b2c-svc:first-child {
  border-top: none;
  padding-top: 0;
}

.b2c-svc:last-child {
  padding-bottom: 0;
}

.b2c-svc__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--color-brand-50, #E8F0FF);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-500, #0A6CFF);
  transition: background 0.2s, color 0.2s;
}

.b2c-svc--off .b2c-svc__icon {
  background: rgba(13, 19, 32, 0.05);
  color: rgba(13, 19, 32, 0.25);
}

.b2c-svc__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.b2c-svc__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-gray-900, #0D1320);
  line-height: 1.3;
}

.b2c-svc--off .b2c-svc__value {
  color: rgba(13, 19, 32, 0.3);
}

.b2c-svc__label {
  font-size: 12px;
  color: var(--color-gray-500, #556D93);
  line-height: 1.3;
}

.b2c-svc--off .b2c-svc__label {
  color: rgba(13, 19, 32, 0.25);
}

/* ── Мета (теги + промо) ── */
.b2c-plan__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  min-height: 0;
}

.b2c-plan__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.b2c-plan__tag {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--color-accent-400, #35ECC3);
  color: #052E18;
  line-height: 1.5;
}

.b2c-plan__promo {
  font-size: 13px;
  color: var(--color-gray-500, #556D93);
  line-height: 1.45;
  margin: 0;
}

/* ── Футер: цена + кнопка ── */
.b2c-plan__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(13, 19, 32, 0.07);
  padding-top: 20px;
}

/* ── Цена ── */
.b2c-plan__price {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  gap: 8px;
}

.b2c-plan__price-old {
  font-size: 13px;
  color: rgba(13, 19, 32, 0.35);
  text-decoration: line-through;
  line-height: 1.4;
}

.b2c-plan__price-row {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.b2c-plan__price-val {
  font-size: 34px;
  font-weight: 800;
  color: var(--color-gray-900, #0D1320);
  line-height: 1;
  letter-spacing: -0.02em;
}

.b2c-plan__price-cur {
  font-size: 14px;
  color: var(--color-gray-500, #556D93);
  font-weight: 500;
}

/* ── CTA ── */
.b2c-plan__cta {
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--color-brand-500, #0A6CFF);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  line-height: 1.3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.b2c-plan__cta-label {
  pointer-events: none;
}

.b2c-plan__cta-arrow {
  position: absolute;
  right: 18px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.b2c-plan:hover .b2c-plan__cta-arrow {
  opacity: 1;
  transform: translateX(0);
}

.b2c-plan__cta:hover {
  background: #0960e8;
  box-shadow: 0 4px 14px rgba(10, 108, 255, 0.35);
}

.b2c-plan__cta:active {
  transform: scale(0.985);
}

/* ── Ссылка "Подробнее" ── */
.b2c-plan__link {
  text-align: center;
  font-size: 13px;
  color: var(--color-gray-500, #556D93);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s;
  display: block;
}

.b2c-plan__link:hover {
  color: var(--color-brand-500, #0A6CFF);
}

/* ════════════════════════════════════════════
   МОДИФИКАТОР — СВЕТЛЫЙ ТЕКСТ (тёмный фон)
   ════════════════════════════════════════════ */

.b2c-plan--light .b2c-plan__name,
.b2c-plan--light .b2c-svc__value,
.b2c-plan--light .b2c-plan__price-val {
  color: #fff;
}

.b2c-plan--light .b2c-svc__label,
.b2c-plan--light .b2c-plan__promo,
.b2c-plan--light .b2c-plan__price-cur,
.b2c-plan--light .b2c-plan__price-old {
  color: rgba(255, 255, 255, 0.6);
}

.b2c-plan--light .b2c-svc {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.b2c-plan--light .b2c-plan__footer {
  border-top-color: rgba(255, 255, 255, 0.12);
}

.b2c-plan--light .b2c-svc__icon {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.b2c-plan--light .b2c-svc--off .b2c-svc__icon {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.3);
}

.b2c-plan--light .b2c-svc--off .b2c-svc__value {
  color: rgba(255, 255, 255, 0.25);
}

.b2c-plan--light .b2c-svc--off .b2c-svc__label {
  color: rgba(255, 255, 255, 0.2);
}

.b2c-plan--light .b2c-plan__tag {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.b2c-plan--light .b2c-plan__cta {
  background: #fff;
  color: var(--color-gray-900, #0D1320);
}

.b2c-plan--light .b2c-plan__cta:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.b2c-plan--light .b2c-plan__link {
  color: rgba(255, 255, 255, 0.55);
}

.b2c-plan--light .b2c-plan__link:hover {
  color: rgba(255, 255, 255, 0.9);
}

.b2c-plan--light .b2c-plan__badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

