/* Fourth stage: a dedicated mobile layout without changing the approved desktop composition. */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  .hero {
    height: 100svh;
    min-height: 660px;
  }

  .layer img {
    width: 172%;
    height: 172%;
  }

  .ring.inner { width: 88vw; }
  .ring.outer-ring { width: 176vw; }

  .topbar {
    align-items: center;
    padding: 18px 16px;
    font-size: 9px;
  }

  .topbar > span { display: none; }

  .brand {
    top: 52%;
    width: calc(100% - 28px);
  }

  .brand strong {
    font-size: clamp(46px, 16vw, 70px);
    letter-spacing: .13em;
    text-indent: .13em;
  }

  .brand span {
    max-width: 300px;
    margin: 18px auto 0;
    font-size: 8px;
    line-height: 1.55;
  }

  .glass-menu {
    right: 12px;
    bottom: 12px;
    left: 12px;
    min-height: 150px;
    border-radius: 20px;
  }

  .glass-item {
    min-height: 75px;
    padding: 13px 14px;
    border-right: 1px solid rgba(255,255,255,.18);
    border-bottom: 1px solid rgba(255,255,255,.18);
  }

  .glass-item:nth-child(2n) { border-right: 0; }
  .glass-item:nth-child(n+3) { border-bottom: 0; }
  .glass-item strong { font-size: 18px; }

  .architecture-showcase {
    display: grid;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .architecture-showcase__visual {
    height: clamp(430px, 70vw, 560px);
    min-height: 0;
    padding: 24px 0 24px 38px;
  }

  .architecture-showcase__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .architecture-showcase__vertical {
    top: 50%;
    left: 4px;
    font-size: clamp(50px, 15vw, 68px);
  }

  .architecture-showcase__copy {
    min-height: 0;
    padding: 54px 20px 58px;
  }

  .architecture-showcase__copy h2 {
    max-width: 8ch;
    margin-top: 22px;
    font-size: clamp(46px, 14vw, 66px);
    line-height: .92;
    overflow-wrap: normal;
  }

  .architecture-showcase__heights {
    width: 100%;
    margin-top: 42px;
  }

  .architecture-showcase__heights div,
  .architecture-showcase__heights div:nth-child(2),
  .architecture-showcase__heights div:last-child {
    padding-right: 8px;
    padding-left: 8px;
  }

  .architecture-showcase__heights div:first-child { padding-left: 0; }
  .architecture-showcase__heights strong { font-size: 35px; }
  .architecture-showcase__note { margin-top: 34px; }

  .gardens,
  .services,
  .lead {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .garden-copy,
  .service-copy,
  .lead-copy {
    min-height: 0;
    padding: 54px 20px;
  }

  .garden-copy h2,
  .service-copy h2,
  .lead-copy h2 {
    margin-top: 18px;
    font-size: clamp(44px, 13vw, 62px);
    line-height: .93;
  }

  .garden-faq { margin-top: 32px; }
  .garden-faq summary { padding: 16px 0; }

  .garden-image,
  .service-image {
    width: 100%;
    height: 58svh;
    min-height: 440px;
  }

  .garden-copy { order: -1; }

  .garden-image::after { inset: 14px; }

  .service-image { order: 2; }
  .service-copy { order: 1; }

  .service-stats { margin-top: 40px; }

  .service-stat {
    min-height: 116px;
    padding: 16px;
  }

  .service-stat strong {
    margin-bottom: 15px;
    font-size: 32px;
  }

  .catalog {
    min-height: 0;
    padding: 72px 0 38px;
  }

  .catalog::before { background-position: 58% center; }

  .catalog-head {
    grid-template-columns: 1fr;
    gap: 22px;
    margin: 0 16px 28px;
  }

  .catalog h2 {
    margin-top: 18px;
    font-size: clamp(48px, 14vw, 66px);
  }

  .catalog-summary { max-width: 330px; }

  .catalog-filter-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 24px;
  }

  .catalog-filter-row .filters {
    gap: 7px;
    width: 100%;
    margin: 0;
    overflow-x: auto;
    padding: 0 16px 3px;
    scroll-padding-left: 16px;
    scrollbar-width: none;
  }

  .catalog-filter-row .filters::-webkit-scrollbar { display: none; }
  .catalog-filter-row .filter { flex: 0 0 auto; }

  .filter-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 16px;
  }

  .filter-select {
    width: 100%;
    min-width: 0;
    padding-right: 28px;
    padding-left: 12px;
  }

  .card-track {
    gap: 12px;
    padding: 0 16px 18px;
    scroll-padding-left: 16px;
  }

  .flat-card {
    flex: 0 0 calc(100vw - 32px);
    min-width: 0;
    min-height: 500px;
    border-radius: 24px;
  }

  .plan {
    height: 340px;
    padding: 24px;
  }

  .carousel-controls {
    align-items: center;
    gap: 16px;
    margin: 2px 16px 0;
  }

  .carousel-controls > span:last-child { display: none; }

  .arrow {
    width: 46px;
    height: 46px;
  }

  .poi-section {
    min-height: 0;
    padding: 70px 16px 44px;
  }

  .poi-head {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 26px;
  }

  .poi-head h2 {
    max-width: 8ch;
    margin-top: 16px;
    font-size: clamp(48px, 14vw, 66px);
  }

  .poi-filters {
    margin-right: -16px;
    padding-right: 16px;
  }

  .poi-layout {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 20px;
  }

  .poi-map {
    min-height: 58svh;
    border-radius: 20px 20px 0 0;
  }

  .map-interaction-gate {
    align-content: start;
    padding: 42px 24px 0;
    border-radius: 20px;
    line-height: 1.45;
  }

  .poi-panel {
    max-height: 340px;
    padding: 20px;
  }

  .lead-copy { padding-bottom: 30px; }

  .lead-form {
    gap: 18px;
    margin: 0 16px 46px;
    padding: 30px 20px;
    border-radius: 22px;
  }

  .lead-form button {
    width: 100%;
    text-align: center;
  }

  .legal {
    flex-direction: column;
    gap: 12px;
    padding: 28px 20px;
  }
}

@media (min-width: 600px) and (max-width: 768px) {
  .brand strong { font-size: 84px; }

  .architecture-showcase__visual { height: clamp(500px, 70vw, 560px); }

  .flat-card {
    flex-basis: calc((100vw - 44px) / 2);
  }

  .plan { height: 310px; }

  .catalog-head,
  .poi-head {
    grid-template-columns: 1.1fr .9fr;
  }
}

@media (max-width: 430px) {
  .garden-image,
  .service-image {
    height: 54svh;
    min-height: 400px;
  }

  .service-stats { grid-template-columns: 1fr 1fr; }

  .filter-tools { grid-template-columns: 1fr; }

  .poi-map { min-height: 54svh; }
}

@supports not (overflow: clip) {
  @media (max-width: 768px) {
    html,
    body { overflow-x: hidden; }
  }
}
