/* ============================================================
   landing/pricing/index.html — page-specific styles (2026 redesign).
   Layout referenced Figma node 8710:28678 at 1920.
   Tokens come from landing/styles/base.css.
   ============================================================ */

/* ======================= 1. Hero (page-specific) ======================= */
/* Hero structure lives in landing/styles/components/hero-2026.css; this
   block fills in pricing-specific values (BG image URLs + gradient blob). */
/* BG grid — переиспользуем с /index (одинаковая сетка). */
.page-pricing .hero-2026 {
  --hero-bg-image: url("/images/index/v2/hero-bg-375.svg");
  --hero-bg-image-sm: url("/images/index/v2/hero-bg-768.svg");
  --hero-bg-image-lg: url("/images/index/v2/hero-bg.svg");
}

/* Gradient blob slot — Figma 8710:41509:
   ellipse purple→magenta, blur 175px, opacity 0.4 inside 1920×700 hero. */
.page-pricing .hero-2026-gradient {
  right: -10%;
  top: 8%;
  width: 70%;
  height: 80%;
  background: linear-gradient(220.3deg, #554af0 10%, #f261ff 90%);
  opacity: 0.22;
  filter: blur(150px);
}

@media (max-width: 1023px) {
  .page-pricing .hero-2026-gradient {
    right: -20%;
    top: -10%;
    width: 100%;
    height: 100%;
    opacity: 0.18;
  }
}

/* ======================= 4. Trial banner («3 недели полного доступа») =======================
   Стили переехали в landing/styles/components/pricing-trial-banner-2026.css,
   чтобы partial /partials/shared/_pricing_b2b_banner.html подхватывался
   на любой странице, где он подключён. */

/* ======================= 6. «Платите за реальное потребление» (заголовок) ======================= */
.pay-real-section {
  margin: 72px 0;

  @media (min-width: 768px) {
    margin: 80px 0;
  }
  @media (min-width: 1280px) {
    margin: 120px 0;
  }
}
.pay-real-section-head {
  text-align: center;
  margin: 0 0 24px;

  @media (min-width: 576px) {
    margin-bottom: 28px;
  }
  @media (min-width: 768px) {
    margin-bottom: 32px;
  }
  @media (min-width: 1024px) {
    margin-bottom: 40px;
  }
}
.pay-real-section-head h2 {
  margin: 0 0 12px;
}
.pay-real-section-subtitle {
  margin: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: #111;

  @media (min-width: 768px) {
    font-size: 26px;
    letter-spacing: -0.52px;
  }
  @media (min-width: 1280px) {
    font-size: 30px;
    letter-spacing: -0.6px;
  }
}

.pay-real-section-calc {
  margin-bottom: 56px;

  @media (min-width: 1024px) {
    margin-bottom: 80px;
  }
}

/* ----- Plan calculator (внутри .pay-real-section) ----- */
.plan-calc {
  position: relative;
  max-width: 754px;
  margin: 0 auto;
  padding: 32px 24px;
  background-color: #f6f6f6;
  border-radius: 4px;
  overflow: clip;
  isolation: isolate;

  @media (min-width: 768px) {
    padding: 40px 56px;
  }
  @media (min-width: 1024px) {
    padding: 45px 46px;
  }
}
.plan-calc-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, #ebebeb 1px, transparent 1px),
    linear-gradient(to bottom, #ebebeb 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -24px -28px;
  pointer-events: none;
  z-index: 0;
  /* Мягкое затухание к краям, чтобы клетки не упирались в углы карточки. */
  mask-image: radial-gradient(ellipse at center, #000 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 50%, transparent 95%);
}
.plan-calc-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-calc-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.plan-calc-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-calc-label {
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.32px;
  color: #1a1a1a;

  @media (min-width: 768px) {
    font-size: 20px;
    letter-spacing: -0.4px;
  }
}
.plan-calc-input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  background: #ffffff;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.32px;
  color: #1a1a1a;
  appearance: none;
  -moz-appearance: textfield;
  outline: none;
  transition: border-color 0.15s ease;

  @media (min-width: 768px) {
    padding: 20px 24px;
    font-size: 20px;
    letter-spacing: -0.4px;
  }
}
.plan-calc-input::-webkit-outer-spin-button,
.plan-calc-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.plan-calc-input:focus {
  border-color: var(--brand-blue-strong, #4091f5);
}

.plan-calc-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(60px, max-content);
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 8px;
  background-image: linear-gradient(-47deg, #4091f5 32%, #54bea5 64%, #5fd47f 99%);
  box-shadow: var(--shadow-btn);
  color: #ffffff;
  font-family: "Onest", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.32px;

  @media (min-width: 576px) {
    grid-template-columns: minmax(0, 1fr) auto minmax(80px, max-content);
  }
  @media (min-width: 768px) {
    padding: 20px 32px;
    font-size: 20px;
    letter-spacing: -0.4px;
  }
}
.plan-calc-primary-value {
  text-align: right;
}

.plan-calc-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.plan-calc-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(80px, max-content);
  align-items: center;
  gap: 16px;
  padding: 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: -0.32px;
  color: #1a1a1a;

  @media (min-width: 576px) {
    padding: 0 20px;
  }
  @media (min-width: 768px) {
    padding: 0 32px;
    font-size: 20px;
    letter-spacing: -0.4px;
  }
}
.plan-calc-breakdown-value {
  text-align: right;
}

.plan-calc-total {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-left: auto;
  margin-right: 20px;
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.44px;
  color: #1a1a1a;

  @media (min-width: 768px) {
    margin-right: 30px;
    font-size: 28px;
    letter-spacing: -0.56px;
  }
}
.plan-calc-total-period {
  font-weight: 400;
  font-size: 14px;

  @media (min-width: 768px) {
    font-size: 18px;
  }
}

.plan-calc-disclaimer {
  margin: 16px 0 0;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: -0.26px;
  color: #1a1a1a;

  @media (min-width: 768px) {
    font-size: 14px;
    letter-spacing: -0.28px;
  }
}
.plan-calc-disclaimer a {
  text-decoration: underline;
}

/* ======================= 7. Pricing services (4 tier-cards: CDN / Хранение / Подготовка / Транскрибация) ======================= */
.pricing-services {
  margin: 72px 0;

  @media (min-width: 768px) {
    margin: 80px 0;
  }
  @media (min-width: 1280px) {
    margin: 120px 0;
  }
}

/* ======================= 8. Возможности для бизнеса (marquee) ======================= */
.benefits-marquee {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  background-image: linear-gradient(
    -52deg,
    #e75468 13%,
    #d65578 31%,
    #b5568d 46%,
    #905895 67%,
    #7359bf 85%
  );
  color: var(--brand-white);

  @media (min-width: 768px) {
    padding: 72px 0;
  }
  @media (min-width: 1024px) {
    padding: 100px 0;
  }
}
.benefits-marquee-bg {
  position: absolute;
  inset: 0;
  background-image: url("/images/pricing/v2/benefits-grid.svg");
  background-repeat: repeat;
  background-position: center top;
  background-size: 2433px 769px;
  pointer-events: none;
  z-index: 0;
}
.benefits-marquee-title {
  position: relative;
  z-index: 1;
  margin: 0 0 32px;
  text-align: center;

  @media (min-width: 768px) {
    margin-bottom: 40px;
  }
}
.benefits-marquee-tracks {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;

  @media (min-width: 768px) {
    gap: 18px;
  }
  @media (min-width: 1024px) {
    gap: 24px;
  }
}
.benefits-marquee-track {
  display: flex;
  overflow: hidden;
}
.benefits-marquee-track-inner {
  flex-shrink: 0;
  display: flex;
  gap: 12px;
  padding-right: 12px;
  animation: benefitsMarquee 60s linear infinite;

  @media (min-width: 768px) {
    gap: 18px;
    padding-right: 18px;
  }
  @media (min-width: 1024px) {
    gap: 24px;
    padding-right: 24px;
  }
}
.benefits-marquee-track:nth-child(even) .benefits-marquee-track-inner {
  animation-direction: reverse;
}
@keyframes benefitsMarquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-100%, 0, 0);
  }
}
.benefits-marquee-tag {
  flex-shrink: 0;
  padding: 12px 24px;
  border-radius: 8px;
  background: rgba(97, 42, 108, 0.5);
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  color: var(--brand-white);
  white-space: nowrap;

  @media (min-width: 768px) {
    padding: 16px 40px;
    font-size: 18px;
  }
  @media (min-width: 1024px) {
    padding: 20px 70px;
    font-size: 22px;
    line-height: 32px;
  }
}

/* ======================= 5. Варианты размещения (On-premise / SaaS) ======================= */
.deploy-options {
  padding: 0;
  margin: 72px 0;

  @media (min-width: 768px) {
    margin: 80px 0;
  }
  @media (min-width: 1280px) {
    margin: 120px 0;
  }
}
.deploy-options-title {
  margin: 0 0 32px;
  text-align: center;

  @media (min-width: 768px) {
    margin-bottom: 40px;
  }
}

.deploy-options-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (min-width: 768px) {
    flex-direction: row;
    gap: 24px;
  }
  @media (min-width: 1280px) {
    gap: 80px;
  }
}

.deploy-option {
  position: relative;
  flex: 1 1 0;
  padding: 40px 24px;
  border-radius: 4px;
  background-color: #f6f6f6;
  color: #1a1a1a;
  overflow: clip;
  isolation: isolate;

  @media (min-width: 768px) {
    padding: 48px 32px;
  }
  @media (min-width: 1024px) {
    padding: 60px 50px;
  }
}

/* Декоративный SVG-фон (grid + gradient blob) внутри карточки.
   Точно по Figma: 1440×432, position варьируется по модификатору. */
.deploy-option::before {
  content: "";
  position: absolute;
  width: 1440px;
  height: 432px;
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: 1440px 432px;
  z-index: 0;
  pointer-events: none;
}
.deploy-option--onpremise::before {
  top: -73px;
  left: -62px;
  background-image: url("/images/pricing/v2/deploy-bg-onpremise.svg");
}
.deploy-option--saas::before {
  top: -132px;
  left: -649px;
  background-image: url("/images/pricing/v2/deploy-bg-saas.svg");
}
.deploy-option > * {
  position: relative;
  z-index: 1;
}

.deploy-option-title {
  margin: 0 0 16px;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
  color: #1a1a1a;

  @media (min-width: 1024px) {
    font-size: 36px;
    line-height: 48px;
  }
}
.deploy-option-subtitle {
  margin: 0 0 20px;
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
}
.deploy-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deploy-option-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Onest", sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  color: #1a1a1a;
}
.deploy-option-list li .i-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  font-size: 14px;
  line-height: 1;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ======================= 3. Ссылка «Подробное сравнение тарифов» ======================= */
.pricing-tier-compare {
  margin: 40px 0;
  text-align: center;

  @media (min-width: 1280px) {
    margin: -40px 0;
  }
}
.pricing-tier-compare .page-container {
  display: flex;
  justify-content: center;
}
.pricing-tier-compare-link {
  font-family: "Onest", sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* ======================= 2. Pricing tier section =======================
   Стили секции и margin'ы переехали в
   landing/styles/components/pricing-mode-switch-2026.css —
   partial _pricing_company.html используется не только на /pricing. */
