/* Tablet and mobile navigation */
@media (max-width: 1000px) {
  .site-header { height: 74px; }

  .header-content {
    position: relative;
    min-height: 74px;
    gap: 20px;
  }

  .logo {
    flex-basis: 150px;
    width: 150px;
    height: 52px;
  }

  .logo img {
    width: 150px;
    height: 52px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel);
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: var(--text);
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .navigation {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100vh - 94px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #111116;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .4);
  }

  .navigation.open { display: flex; }

  .navigation a {
    min-height: 46px;
    padding: 0 12px;
    border-radius: 8px;
  }

  .navigation a:hover,
  .navigation a.active { background: rgba(255, 255, 255, .04); }

  .navigation a::after { display: none; }

  .hero-grid,
  .page-hero .hero-grid,
  .youtube-grid { grid-template-columns: 1fr; }

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

  .youtube-content { max-width: 720px; }
}

/* Phones */
@media (max-width: 640px) {
  .container { width: min(calc(100% - 32px), var(--container)); }

  h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
    overflow-wrap: normal;
    word-break: normal;
  }

  h2 { font-size: clamp(2rem, 10vw, 3rem); }

  .hero,
  .page-hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 64px;
  }

  .page-hero .hero-grid,
  .youtube-grid { gap: 38px; }

  .page-hero .hero-content h1 { margin-bottom: 22px; }

  .intro,
  .page-hero .intro,
  .section-text,
  .vault-intro,
  .youtube-intro { font-size: 1rem; }

  .section { padding: 64px 0; }

  .simple-page {
    min-height: 65vh;
    padding: 120px 0 72px;
  }

  .feature-grid,
  .card-grid,
  .vault-stats { grid-template-columns: 1fr; }

  .feature-card,
  .preview-card,
  .stat-card { padding: 22px; }

  .vault-hero { padding: 120px 0 54px; }
  .vault-controls { padding: 34px 0; }
  .vault-collection { padding: 58px 0 72px; }

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

  .youtube-hero {
    min-height: auto;
    padding: 120px 0 64px;
  }

  .youtube-actions { flex-direction: column; }
  .youtube-actions .button { width: 100%; }
  .short-feature { padding: 18px; }

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

  .closing-title {
    overflow-wrap: normal;
    word-break: normal;
  }

  .footer-content {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }
}