@media (max-width: 1160px) {
  .constructor-layout {
    grid-template-columns: 1fr;
  }

  .summary-sticky {
    position: static;
  }

  .fillings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 82px;
  }

  .constructor-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 36px;
  }

  .hero-media {
    min-height: 260px;
  }

  .hero-media img {
    margin: 0 auto;
    max-height: 320px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading span {
    max-width: none;
    text-align: left;
  }

  .egg-options,
  .preset-list,
  .fillings-grid {
    grid-template-columns: 1fr;
  }

  .egg-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .egg-card img {
    width: 86px;
    height: 112px;
  }

  .mobile-checkout-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(43, 13, 13, 0.14);
  }

  .mobile-checkout-bar span {
    display: block;
    color: var(--brown-soft);
    font-size: 12px;
  }

  .mobile-checkout-bar strong {
    color: var(--red);
    font-size: 21px;
    line-height: 1;
  }

  .mobile-checkout-bar button {
    min-width: 132px;
    min-height: 46px;
    padding: 10px 16px;
    background: var(--blue);
    border: 0;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

@media (max-width: 520px) {
  .constructor-layout {
    padding-right: 10px;
    padding-left: 10px;
  }

  .section-block,
  .summary-sticky {
    padding: 16px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .summary-product {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .summary-product img {
    width: 72px;
    height: 94px;
  }

  .grand-total strong {
    font-size: 28px;
  }

  .order-success-dialog {
    width: calc(100% - 20px);
    max-height: calc(100vh - 20px);
  }

  .order-success-card {
    padding: 30px 18px 24px;
  }

  .order-success-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 14px;
  }

  .order-success-primary-actions {
    flex-direction: column;
  }

  .order-success-primary-actions .primary-button {
    flex: none;
    width: 100%;
  }

  .order-success-home {
    display: flex;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
