/*
  Production — Mobile ≤833px (440 Figma)
  Hero 440: как Telegram — текст, кнопки, размеры под стандарт
*/
@media (max-width: 833px) {
  .demo-prod {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 auto !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Hero — стандарт как Telegram (min-height, overflow, фон) */
  .demo-prod .hero--production {
    width: 100% !important;
    min-height: 485px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .demo-prod .hero--production .hero__bg {
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
  }

  .demo-prod .hero--production .hero__bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
  }

  .demo-prod .hero--production .hero__bg-img--desktop {
    display: none !important;
  }

  .demo-prod .hero--production .hero__bg-img--mobile {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .demo-prod .hero--production .hero__overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.8) 4.38%,
      rgba(0, 0, 0, 0.619) 28.02%,
      rgba(0, 0, 0, 0.4) 56.72%,
      rgba(0, 0, 0, 0.1) 66.25%
    ) !important;
    z-index: 1 !important;
  }

  /* Контент: absolute, слева 16px, по центру по вертикали, gap 36px */
  .demo-prod .hero--production .container {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .demo-prod .hero--production .hero__content {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: min(408px, calc(100% - 32px)) !important;
    max-width: 408px !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 36px !important;
    text-align: left !important;
  }

  /* Заголовок: 32px, 800, 1.3 */
  .demo-prod .hero--production .hero__title {
    width: 100% !important;
    margin: 0 !important;
    font-family: 'Poppins', var(--font-sans) !important;
    font-weight: 800 !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
    letter-spacing: 0.48px !important;
    color: #ffffff !important;
  }

  /* Подзаголовок: 16px, max-width 277px */
  .demo-prod .hero--production .hero__subtitle {
    width: 100% !important;
    max-width: 277px !important;
    margin: 0 !important;
    font-family: 'Poppins', var(--font-sans) !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 24px !important;
    color: #c4c4c4 !important;
  }

  /* Кнопки: flex row wrap, fluid как reference (Print/Telegram) */
  .demo-prod .hero--production .hero__actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: clamp(10px, calc(14 * 100vw / 440), 21px) !important;
  }

  .demo-prod .hero--production .hero__actions .button--primary {
    min-width: 140px !important;
    width: auto !important;
    max-width: 218px !important;
    height: 56px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    line-height: 24px !important;
    background: #14f195 !important;
    color: #000000 !important;
    border-radius: 64px !important;
  }

  .demo-prod .hero--production .hero__actions .button--outline {
    min-width: 120px !important;
    width: auto !important;
    max-width: 176px !important;
    height: 56px !important;
    padding: 16px 32px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    letter-spacing: -0.02em !important;
    line-height: 24px !important;
    border: 1px solid #ffffff !important;
    border-radius: 64px !important;
    color: #ffffff !important;
  }

  /* Десктопная фигура — скрыть на 440 */
  .demo-prod .hero--production .hero__image-wrap {
    display: none !important;
  }

  /* AI-фигура: как на Telegram — ~15% обрезка справа, по центру, clamp(260px, 75vw, 420px) */
  .demo-prod .hero--production .hero__ai {
    display: block !important;
    position: absolute !important;
    right: -15% !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    left: auto !important;
    width: clamp(260px, 75vw, 420px) !important;
    height: clamp(260px, 75vw, 420px) !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .demo-prod .hero--production .hero__ai-glow {
    position: absolute !important;
    width: 55% !important;
    height: 59% !important;
    left: 55% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    background: rgba(255, 123, 0, 0.58) !important;
    filter: blur(56px) !important;
    border-radius: 100px !important;
  }

  .demo-prod .hero--production .hero__ai-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* Blok2 «Бренд — это и эмоции, и метрология» — fluid scaling 440→834 как reference */
  .demo-prod .why-cards .container {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 clamp(16px, calc(20 * 100vw / 440), 32px) !important;
    gap: 42px !important;
    width: 100% !important;
    max-width: min(100%, clamp(440px, calc(100vw - 32px), 770px)) !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .demo-prod .why-cards__title {
    width: 100% !important;
    max-width: 408px !important;
    font-family: 'Poppins', var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: 24px !important;
    line-height: 130% !important;
    letter-spacing: -0.03em !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  .demo-prod .why-cards__grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 22px !important;
    width: 100% !important;
    max-width: min(100%, clamp(408px, calc(100vw - 48px), 770px)) !important;
  }

  .demo-prod .why-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 28px 14px !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    background: #19161c !important;
    border-radius: 12px !important;
  }

  .demo-prod .why-card__icon {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
  }

  .demo-prod .why-card__body {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .demo-prod .why-card__title {
    font-family: 'Poppins', var(--font-sans) !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    line-height: 26px !important;
    letter-spacing: 1.5px !important;
    color: #ff7b00 !important;
    margin: 0 !important;
  }

  .demo-prod .why-card__text {
    font-family: 'Poppins', var(--font-sans) !important;
    font-weight: 400 !important;
    font-size: 14px !important;
    line-height: 21px !important;
    color: #ffffff !important;
    margin: 0 !important;
  }

  /* Benefits «Как мы создаем результат» — как Design, те же паттерны */
  .demo-prod .benefits .container {
    padding: 0 clamp(16px, calc(20 * 100vw / 440), 24px) !important;
    max-width: min(100%, clamp(320px, calc(408 * 100vw / 440), 600px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .demo-prod .benefits__title {
    margin: 0 0 42px !important;
    font-size: 24px !important;
    line-height: 1.3 !important;
  }

  .demo-prod .benefits__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: clamp(12px, calc(18 * 100vw / 440), 24px) clamp(10px, calc(12 * 100vw / 440), 18px) !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .demo-prod .benefit-card {
    width: 100% !important;
    max-width: min(100%, 198px) !important;
    min-width: 0 !important;
    justify-self: center !important;
  }

  .demo-prod .benefit-card__ring {
    width: 94px !important;
    height: 94px !important;
    border-width: 3px !important;
  }

  .demo-prod .benefit-card__icon {
    width: 42px !important;
    height: 42px !important;
  }

  .demo-prod .benefit-card__title {
    font-size: 18px !important;
  }

  .demo-prod .benefit-card__text {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  /* Contact: отступ подзаголовок → карточка формы (gap на container, не на cta-form) */
  .demo-prod .cta-form.cta-form--production .container {
    display: flex !important;
    flex-direction: column !important;
    gap: 42px !important;
  }
}

/* Экраны < 440: кнопки в одну строку */
@media (max-width: 439px) {
  .demo-prod .hero--production .hero__actions {
    flex-wrap: nowrap !important;
    width: 100% !important;
    gap: 10px !important;
  }

  .demo-prod .hero--production .hero__actions .button--primary,
  .demo-prod .hero--production .hero__actions .button--outline {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 16px 12px !important;
    height: 52px !important;
    font-size: 14px !important;
    white-space: nowrap !important;
  }
}
