/* Decorative reveal must never gate access to substantive card content.
   Override main.js's later-inserted hiding styles at every viewport and for
   every motion preference, without changing the observer or event handlers. */
.service-card, .case, .review, .why, .blog-card, .product-cat {
  opacity: 1 !important;
  transform: none !important;
}

/* Confirmed phone-layout fixes. Desktop layout dimensions stay unchanged. */
@media (max-width: 1024px) {
  .nav .has-dd:hover .dd-menu {
    transform: none;
  }
}

@media (max-width: 800px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-layout > .product-gallery,
  .product-layout > .product-info {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .uses-grid,
  .mat-grid,
  .cases-ph,
  .related,
  .props,
  .social-grid,
  .suv-cat-grid,
  .svc-hero-features,
  .price-tiers,
  .process-steps,
  .biz-cat-grid,
  .cond-grid,
  .biz-segments {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .uses-grid > *,
  .mat-grid > *,
  .cases-ph > *,
  .related > *,
  .props > *,
  .social-grid > *,
  .suv-cat-grid > *,
  .svc-hero-features > *,
  .price-tiers > *,
  .process-steps > *,
  .biz-cat-grid > *,
  .cond-grid > *,
  .biz-segments > *,
  .facts > *,
  .facts-grid > *,
  .tech-list > * {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .section-head > h2 {
    overflow-wrap: anywhere;
  }

  .social-link > div {
    min-width: 0;
  }

  .social-link > svg,
  .social-link > img {
    flex-shrink: 0;
  }

  .hero .hero-content {
    min-width: 0;
    width: 100%;
  }

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

  .hero-stats > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .rating-summary {
    max-width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .rating-summary > a {
    margin-left: 0 !important;
  }

  .btn[href^="https://yandex.ru/maps/org/"],
  .btn[href="/makerworld/"] {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .audience-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .audience-grid > .audience-card {
    min-width: 0;
    padding: 24px !important;
    overflow-wrap: anywhere;
  }

  div.price-table {
    padding: 20px;
  }

  .serial-footer-inner {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 16px;
  }

  .serial-footer-contacts {
    min-width: 0;
    flex-direction: column;
    gap: 12px !important;
    overflow-wrap: anywhere;
  }

  /* On phones, keep analytics settings in the document after the footer.
     It stays focusable and keeps its existing click handler, without covering
     article text or calls to action. Desktop presentation is unchanged. */
  .cc-manage {
    position: static;
    display: block;
    margin: 16px;
    min-height: 44px;
    max-width: calc(100% - 32px);
  }

  /* Preserve all copy, but keep the primary action higher on phone screens. */
  .hero {
    padding-top: 32px;
  }

  .hero .hero-sub {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.5rem;
  }
}
