/* Consolidated DS responsive layer: legacy media.css + product responsive overrides. */
/* Desktop */
@media (min-width: 1024px) {
  .container {
    padding-left: 48px;
    padding-right: 48px;
  }

  .section-hero h2 {
    font-size: 48px;
  }

  .section-hero .container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    column-gap: 56px;
    row-gap: 0;
    padding-left: 48px;
    padding-right: 48px;
  }

  .section-hero .content {
    grid-column: 1;
  }

  .section-hero .img.desk {
    grid-column: 2;
    width: 92%;
  }
}

/* Tablet */
@media (min-width: 601px) and (max-width: 1023px) {
  section:not(.section-hero) h2 {
    font-size: 32px;
  }

  .container {
    padding-left: clamp(24px, 4vw, 40px);
    padding-right: clamp(24px, 4vw, 40px);
  }

  .section-hero h2 {
    font-size: 44px;
  }

  .section-hero .container {
    padding-left: 24px;
    padding-right: 24px;
    gap: 0;
  }

  .section-hero .img {
    margin-top: 32px;
  }

  #divflex {
    flex-wrap: nowrap;
  }

}

@media (max-width: 768px) {
  #divflex {
    flex-direction: column;
  }
}

/* Mobile */
@media (max-width: 600px) {
  section:not(.section-hero) h2 {
    font-size: 30px;
    text-align: center;
  }

  section:not(.section-hero) h3 {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 500;
    color: #333333;
    margin-bottom: 24px;
  }

  #s12h3 {
    margin-bottom: 0;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .desk {
    display: none !important;
  }

  .mob {
    display: block !important;
  }

  .section-hero .img.mob {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 320px;
    object-fit: contain;
    border-radius: 24px;
    margin-top: 32px;
    background: transparent;
  }

  .section-hero .img {
    width: 100%;
    max-width: 448px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-hero h2 {
    font-size: 30px;
    line-height: 1.1;
    margin-top: 16px;
  }

  .section-hero h4 {
    font-size: 18px;
    line-height: 1.45;
    margin-top: 12px;
    text-align: center;
  }

  .hero-badge {
    align-self: center;
  }

  .hero-highlights {
    gap: 12px;
    margin-top: 8px;
    align-items: center;
  }

  .hero-highlights__title {
    text-align: center;
    font-size: 16px;
  }

  .hero-highlights__chips {
    justify-content: center;
    gap: 12px;
  }

  .hero-highlights__chips span {
    font-size: 13px;
    padding: 6px 9px;
  }

  .hero-highlights__note {
    text-align: center;
    font-size: 15px;
  }

  .section-hero .content,
  .section-hero p,
  .section-hero .price,
  .section-hero .price span {
    text-align: center;
  }

  .section-hero .price span {
    font-size: 28px;
  }

  .section-hero #divprice .openModal {
    width: 100%;
    max-width: 100%;
    padding: 10px 32px;
    border-radius: 14px;
    font-size: 18px;
    min-height: 40px;
  }

  #menu .openModal {
    width: 100%;
    max-width: 100%;
    padding: 10px 32px;
    border-radius: 14px;
    font-size: 18px;
    min-height: 40px;
    font-weight: 700;
    line-height: 1.2;
    box-shadow: none;
  }

  #menu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-hero .container {
    padding-left: 20px;
    padding-right: 20px;
    gap: 0;
  }

  .section-hero #divprice {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  .section-hero #divprice p {
    font-size: 12px;
    white-space: normal;
    text-align: center;
    margin-top: 0;
    display: block;
    width: 100%;
  }

  #divflex {
    flex-direction: column;
  }

  .bluebg h3,
  .bluebg strong {
    min-height: 0;
  }

  .grid-item {
    width: 100%;
  }


  #iframe {
    width: 100%;
    height: 300px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer {
    padding-bottom: 64px;
    padding-top: 0;
  }

  .footer-section {
    width: auto;
    margin-bottom: 0;
  }

  #footer-left {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #footer-center,
  #footer-right {
    text-align: center;
  }

  .footer-logo-payments {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .footer #footer-right .item {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
  }

  .footer #footer-right .item a {
    display: inline-flex;
    align-items: center;
  }

  .footer #footer-right .item img {
    width: 32px;
    height: 32px;
    display: block;
  }


  .precheckout-modal__panel {
    width: min(100%, 520px);
    margin: 0;
    border-radius: 20px;
    max-height: calc(100dvh - 24px);
    padding: 24px 20px 22px;
  }

  .precheckout-modal h3 {
    font-size: 28px;
  }

  .precheckout-modal__subtitle {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .precheckout-modal__submit {
    min-height: 46px;
    font-size: 16px;
  }
}


/* Product responsive overrides */
@media (min-width: 64rem) {
  .section-hero .container {
    max-width: var(--ds-container-max);
  }
}

@media (min-width: 37.5625rem) and (max-width: 63.9375rem) {
  .section-program,
  .section-format,
  .section-proof,
  .section-expert,
  .section-offer,
  .section-faq,
  .section-addon-results,
  .section-addon-foundations,
  .section-addon-protocol,
  .section-addon-guarantee {
    padding-inline: var(--ds-space-4);
  }

  .section-program .grid-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-problem .items {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 48rem) {
  .section-expert .s55-grid {
    grid-template-columns: 1fr;
  }

  .section-addon-protocol .items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 37.5rem) {
  .section-hero .openModal,
  .section-offer .openModal,
  [data-sticky-menu] .openModal {
    width: 100%;
  }

  .section-problem .items {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .section-expert .s55-text {
    text-align: left;
    padding-right: 0;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  .section-expert .s55-image {
    position: relative;
    width: 100%;
    max-width: 360px;
    right: 0;
    top: auto;
    transform: none;
    display: block;
  }

  .section-expert h2 {
    text-align: center;
    display: block;
  }

  .section-expert p,
  .section-expert ul {
    text-align: left;
  }

  .section-program .lesson {
    padding: 5px 10px;
    font-size: 14px;
  }

  .section-program .items {
    padding: 18px;
    width: 100%;
    max-width: 100%;
  }

  .itemsli {
    padding: 24px 18px;
  }

  .section-program .grid-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-addon-foundations .grid-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .section-addon-foundations .grid-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 16px 10px;
  }

  .section-addon-foundations .divicon {
    width: 68px;
    height: 68px;
  }

  .section-addon-foundations .divp {
    font-size: 14px;
    line-height: 1.35;
  }
}
