/* Адаптивность и мобильная полировка. */

@media (max-width: 1100px) {
  .nav-inner {
    gap: 12px;
  }

  .nav-links a {
    padding: 0 10px;
    font-size: 0.84rem;
  }

  .chip-1 {
    right: -2%;
  }
  .chip-2 {
    left: -8%;
  }
  .chip-3 {
    right: 0;
  }

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

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .burger {
    display: inline-grid;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 32px);
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    text-align: center;
  }

  .hero-copy h1 {
    max-width: 22ch;
    margin-inline: auto;
  }

  .hero-copy .hero-sub {
    margin-inline: auto;
  }

  .hero-actions,
  .hero-facts {
    justify-content: center;
  }

  .hero-visual {
    justify-self: center;
    width: min(100%, 460px);
  }

  .one-app-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .one-app-stage {
    order: 2;
    height: clamp(360px, 60vw, 460px);
  }

  .one-app-copy {
    order: 1;
  }

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

  .bento-tasks {
    grid-column: span 2;
  }

  .games-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .ttt-panel {
    max-width: 520px;
    width: 100%;
    margin-inline: auto;
  }

  .city-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .city-panel.is-reversed .city-copy,
  .city-panel.is-reversed .city-visual {
    order: initial;
  }

  .city-visual {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

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

  .bento-tasks {
    grid-column: auto;
  }

  .bento-card {
    min-height: 0;
  }

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

  .float-chip {
    position: static;
    animation: none;
    white-space: normal;
    text-align: left;
    font-size: 0.78rem;
    padding: 9px 12px;
  }

  .phone-wrap {
    display: grid;
    justify-items: center;
    gap: 9px;
  }

  .phone-glow {
    height: 50%;
  }

  .scene-tabs {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .scene-tabs::-webkit-scrollbar {
    display: none;
  }

  .scene-tabs button {
    padding: 0 14px;
  }

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

  .creator-photo {
    max-width: 300px;
    margin-inline: auto;
  }

  .store-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    margin-inline: auto;
  }

  .qr-box {
    display: none;
    width: 170px;
    height: 170px;
    margin-top: 6px;
  }

  .qr-wrap.is-open .qr-box {
    display: block;
  }

  .qr-reveal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .qr-note {
    display: none;
  }

  .apk-card {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .apk-card .btn {
    width: 100%;
  }

  .modal {
    padding: 0;
    align-items: end;
  }

  .modal-dialog {
    max-height: 92dvh;
    border-radius: 22px 22px 0 0;
    width: 100%;
  }

  .modal-head {
    padding: 16px 18px;
  }

  .modal-body {
    padding: 18px 18px 24px;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    bottom: 12px;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  .toast-region {
    bottom: 16px;
  }

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

  .feed-card > img {
    height: 170px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .week-strip {
    gap: 4px;
  }

  .week-strip button {
    min-height: 52px;
    font-size: 0.72rem;
  }
}

@media (max-width: 600px) {
  .beta-badge {
    display: none;
  }

  .nav-inner {
    width: min(100% - 28px, 1280px);
  }

  .hero {
    padding-top: calc(var(--nav-h) + 24px);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-facts {
    gap: 8px 16px;
    font-size: 0.8rem;
  }

  .phone {
    width: clamp(240px, 68vw, 292px);
  }

  .one-app-stage {
    height: 380px;
  }

  .app-tile {
    width: 78px;
    padding: 9px 6px;
    border-radius: 15px;
  }

  .app-tile svg {
    width: 22px;
    height: 22px;
  }

  .app-tile em {
    font-size: 0.58rem;
  }

  .tile-1 {
    left: 16%;
    top: 15%;
  }
  .tile-2 {
    left: 42%;
    top: 8%;
  }
  .tile-3 {
    left: 70%;
    top: 14%;
  }
  .tile-4 {
    left: 86%;
    top: 38%;
  }
  .tile-5 {
    left: 81%;
    top: 70%;
  }
  .tile-6 {
    left: 58%;
    top: 87%;
  }
  .tile-7 {
    left: 28%;
    top: 86%;
  }
  .tile-8 {
    left: 10%;
    top: 55%;
  }

  .share-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-actions {
    width: 100%;
  }

  .share-actions .btn,
  .share-link {
    flex: 1 1 auto;
    justify-content: center;
  }

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

  .creator-links {
    flex-direction: column;
    gap: 0;
  }

  .aside-drawer-note {
    display: none;
  }
}

@media (max-width: 420px) {
  .navbar .theme-toggle {
    display: none;
  }

  .nav-inner {
    gap: 10px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .hero-badge {
    font-size: 0.74rem;
  }

  .voice-bubble {
    gap: 7px;
    padding: 7px 9px;
  }

  .voice-wave {
    gap: 2px;
  }

  .transcript-btn {
    min-width: 36px;
  }

  .week-strip button span {
    font-size: 0.68rem;
  }

  .week-strip button i {
    min-width: 16px;
    height: 16px;
    font-size: 0.56rem;
  }
}

@media (max-width: 360px) {
  .navbar .brand-sub {
    display: none;
  }

  .nav-cta {
    width: 46px;
    padding: 0;
  }

  .nav-cta span {
    display: none;
  }

  .brand-name {
    font-size: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.82rem;
  }

  .phone {
    width: 226px;
  }

  .app-tile {
    width: 70px;
  }

  .app-tile em {
    display: none;
  }
}

@media (min-width: 768px) {
  .qr-reveal {
    display: none;
  }

  .qr-box {
    display: block;
  }
}

@media (hover: none) {
  .float-chip {
    animation: none;
  }

  .spotlight::before {
    display: none;
  }
}
