/* B2B / Оптовым покупателям — page enhancements
   Brand: #BBD92E, #1D2E2F, Montserrat (Frutto)
*/

.b2b {
  --b2b-green: #BBD92E;
  --b2b-ink: #1D2E2F;
  --b2b-muted: #5E5E5E;
  --b2b-line: #E6E6E6;
  --b2b-soft: #F6F8EE;
  --b2b-card: #FFFFFF;
}

/* Only the page root — not nested tabs `.b2b`, which otherwise get a covering overlay */
[data-fls-b2b].b2b {
  position: relative;
  padding-bottom: 40px;
}

[data-fls-b2b].b2b::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: min(420px, 55vh);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(187, 217, 46, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 60% at 0% 20%, rgba(29, 46, 47, 0.06), transparent 50%),
    linear-gradient(180deg, #F7FAF0 0%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 0;
}

[data-fls-b2b] > .b2b__container {
  position: relative;
  z-index: 1;
}

/* Hero */
.b2b-hero {
  margin-top: 12px;
  margin-bottom: 48px;
  max-width: 820px;
  animation: b2b-rise 0.55s ease both;
}

.b2b-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(187, 217, 46, 0.22);
  color: var(--b2b-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.b2b-hero__title {
  margin-bottom: 18px;
}

.b2b-hero__lead {
  margin: 0 0 28px;
  color: var(--b2b-muted);
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  max-width: 640px;
}

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

.b2b-hero__ghost {
  background: #fff;
  color: var(--b2b-ink);
  border: 1px solid #C7C7C7;
}

.b2b-hero__ghost:hover {
  border-color: var(--b2b-green);
  color: var(--b2b-ink);
}

/* Override flat block spacing from app.css */
.b2b .b2b-block {
  margin-top: 0;
  margin-bottom: 60px;
}

.b2b .b2b-block > h3 {
  display: none; /* subtitle moved to hero */
}

/* Section heads */
.b2b-section-head {
  margin-bottom: 28px;
  max-width: 640px;
}

.b2b-section-head__title {
  margin: 0 0 10px;
  color: var(--b2b-ink);
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.b2b-section-head__text {
  margin: 0;
  color: var(--b2b-muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

/* Info cards */
.b2b-info {
  margin-bottom: 56px;
}

.b2b-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.b2b-info-card {
  position: relative;
  padding: 28px 28px 24px;
  border-radius: 24px;
  background: var(--b2b-card);
  box-shadow: 0 0 12px 0 rgba(59, 59, 59, 0.1);
  border: 1px solid transparent;
  overflow: hidden;
  animation: b2b-rise 0.6s ease both;
  animation-delay: var(--b2b-delay, 0s);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.b2b-info-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--b2b-green), #d6e86a);
}

.b2b-info-card:hover {
  border-color: rgba(187, 217, 46, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(59, 59, 59, 0.12);
}

.b2b-info-card__num {
  display: block;
  margin-bottom: 14px;
  color: var(--b2b-green);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.b2b-info-card__title {
  margin: 0 0 14px;
  color: var(--b2b-ink);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.b2b-info-card__text,
.b2b-info-card__text p {
  color: #414141;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

.b2b-info-card__text p {
  margin: 0 0 12px;
}

.b2b-info-card__text p:last-child {
  margin-bottom: 0;
}

.b2b-info-card__text ul {
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.b2b-info-card__text ul li {
  position: relative;
  padding-left: 22px;
  margin: 0 !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #414141;
  line-height: 1.45;
}

.b2b-info-card__text ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--b2b-green);
}

/* Hide old plain info block look if any leftover */
.b2b .b2b-block-info {
  display: none;
}

/* Price / tabs */
.b2b-price {
  margin-bottom: 56px;
}

.b2b .b2b-tabs-block {
  margin-top: 0;
  padding: 28px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 0 12px 0 rgba(59, 59, 59, 0.1);
}

.b2b .b2b-block .b2b__navigation {
  margin-bottom: 24px;
  gap: 12px;
  padding-bottom: 4px;
}

.b2b .b2b-block .b2b__title {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid #D5D5D5;
  background: #FFF;
  font-size: 16px;
  font-weight: 600;
  height: auto;
  min-height: 44px;
  color: #5E5E5E;
}

.b2b .b2b-block .b2b__title.--tab-active,
.b2b .b2b-block .b2b__title.--tab-active:hover {
  background: var(--b2b-green);
  border-color: var(--b2b-green);
  color: #1D2E2F;
}

.b2b .b2b-block .b2b__title:hover {
  border-color: var(--b2b-green);
  color: var(--b2b-ink);
}

.b2b .b2b-block .b2b::after {
  display: none;
}

.b2b-table-wrap {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--b2b-line);
}

.b2b .b2b-block .b2b-tabs-content-table {
  max-width: none;
  margin: 0;
}

.b2b .b2b-block .b2b-product-table {
  border: 0;
  font-size: 16px;
}

.b2b .b2b-block .b2b-product-table th {
  background: var(--b2b-ink);
  color: #fff;
  font-weight: 600;
  padding: 16px 20px;
}

.b2b .b2b-block .b2b-product-table td {
  padding: 16px 20px;
  vertical-align: middle;
}

.b2b .b2b-block .row-gray {
  background: var(--b2b-soft);
}

.b2b .b2b-block .row-white {
  background: #fff;
}

.b2b-product-name {
  display: block;
  font-weight: 600;
  color: var(--b2b-ink);
  margin-bottom: 6px;
}

.b2b-stock {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.b2b-stock--in {
  background: rgba(187, 217, 46, 0.25);
  color: #3d5a00;
}

.b2b-stock--out {
  background: #F0F0F0;
  color: #727272;
}

.b2b .b2b-block .product-table-text {
  margin-top: 14px;
  color: #868686;
  font-size: 14px;
}

/* Services */
.b2b-services {
  margin-bottom: 48px;
}

.b2b-services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.b2b-service-card {
  padding: 28px;
  border-radius: 24px;
  background: var(--b2b-soft);
  border: 1px solid rgba(187, 217, 46, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.b2b-service-card:hover {
  transform: translateY(-2px);
  background: #fff;
}

.b2b-service-card__title {
  margin: 0 0 12px;
  color: var(--b2b-ink);
  font-size: 20px;
  font-weight: 700;
}

.b2b-service-card__text {
  color: #414141;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
}

/* CTA */
.b2b-cta {
  margin-top: 8px;
}

.b2b-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 24px;
  background:
    linear-gradient(120deg, rgba(187, 217, 46, 0.92) 0%, #BBD92E 45%, #a8c628 100%);
  color: var(--b2b-ink);
  animation: b2b-rise 0.7s ease both;
  animation-delay: 0.15s;
}

.b2b-cta__title {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 700;
  line-height: 1.25;
}

.b2b-cta__text {
  margin: 0;
  max-width: 520px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: rgba(29, 46, 47, 0.85);
}

.b2b-cta__btn {
  flex-shrink: 0;
  background: #1D2E2F !important;
  color: #fff !important;
}

.b2b-cta__btn:hover {
  background: #142022 !important;
}

/* Mobile lists polish */
.b2b .mobile-content-list {
  border-radius: 16px;
  border: 1px solid var(--b2b-line) !important;
  padding: 18px !important;
  margin-bottom: 14px !important;
  border-bottom: 1px solid var(--b2b-line) !important;
  background: #fff;
}

.b2b .mobile-content-list.is-empty {
  opacity: 0.72;
}

@keyframes b2b-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .b2b-hero,
  .b2b-info-card,
  .b2b-cta__inner {
    animation: none;
  }

  .b2b-info-card:hover,
  .b2b-service-card:hover {
    transform: none;
  }
}

@media (max-width: 900px) {
  .b2b-info__grid,
  .b2b-services__grid {
    grid-template-columns: 1fr;
  }

  .b2b-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }

  .b2b .b2b-tabs-block {
    padding: 18px;
  }
}

@media (max-width: 768px) {
  .b2b-hero {
    margin-bottom: 36px;
  }

  .b2b-info,
  .b2b-price {
    margin-bottom: 40px;
  }

  .b2b-info-card,
  .b2b-service-card {
    border-radius: 18px;
    padding: 22px;
  }
}
