/* Phone layouts: full-width cards, reachable navigation and readable market data. */
.mobile-nav, .home-intro-mobile { display: none; }
@media (max-width: 767.98px) {
  html { scroll-padding-top: 84px; }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  .site-header { position: sticky; top: 0; z-index: 40; }
  .site-header .container { min-height: 60px; gap: .5rem !important; }
  .site-logo { font-size: 19px; }
  .site-header nav { margin-left: auto; margin-right: 0; }
  .header-actions { gap: .5rem; }
  .header-actions .header-telegram { padding: 0 .75rem; font-size: 13px; gap: .35rem; }
  .header-telegram svg { width: 17px; }
  .site-nav { max-height: calc(100dvh - 140px); overflow-y: auto; padding: .5rem 16px 1rem; }
  .site-nav a { min-height: 48px; padding: .25rem .75rem; border-radius: 10px; }
  .site-nav a[aria-current] { background: #eff4ff; }
  #content { padding-top: 20px !important; }
  h1, .h1 { font-size: 28px; line-height: 1.22; overflow-wrap: break-word; }
  h2, .h2 { font-size: 21px; }
  .lead { font-size: 16px; line-height: 1.55; }
  .hero-grid { gap: 16px; padding-top: 0; }
  .hero-grid > .hero-text { flex-basis: 100%; }
  .home-intro { display: none; }
  .home-intro-mobile { display: block; margin: 0; color: var(--cs-muted); font-size: 15px; }
  .p2p-card { flex-basis: 100%; padding: 16px; gap: 8px; }
  .p2p-card .p2p-card-values { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .p2p-card .rate-value { font-size: 28px; }
  .section-head { gap: 8px; align-items: center; }
  .section-head h2 { flex: 1 1 180px; }
  .section-head .more-link { font-size: 14px; padding: 8px 0; }
  .card-cs, .card-cs-muted, .review-card, .scenario { padding: 16px; }
  .forecast-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .forecast-tile { padding: 16px; gap: 5px; }
  .forecast-tile-head { align-items: center; }
  .forecast-tile-head .coin-name { font-size: 17px; }
  .forecast-tile-price { font-size: 24px; line-height: 1.25; }
  .forecast-tile-more { padding-top: 8px; }
  .home-analysis .forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .home-analysis .forecast-grid > li:nth-child(n+3) { display: none; }
  .home-analysis .forecast-tile { padding: 12px 10px; gap: 4px; }
  .home-analysis .forecast-tile-head .coin-name { font-size: 14px; }
  .home-analysis .forecast-tile-head .coin-ticker { display: block; font-size: 12px; }
  .home-analysis .forecast-tile-price { font-size: 17px; line-height: 1.3; }
  .home-analysis .forecast-tile-meta, .home-analysis .forecast-tile-now { font-size: 12px; }

  .forecast-tile-now { gap: 6px 10px; }
  .plan-teaser { padding: 16px; }
  .plan-teaser-row { flex-wrap: wrap; min-width: 0; }
  .plan-teaser-row .chip { flex: 0 1 auto; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
  .plan-teaser-levels { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .plan-teaser-levels > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
  .chip { max-width: 100%; white-space: normal; }
  .forecast-tile .trade-plan-badge { font-size: 13px; }
  .coin-table { table-layout: fixed; }
  .coin-table th:first-child, .coin-table td:first-child { width: 36%; }
  .coin-table th:nth-child(2), .coin-table td:nth-child(2) { width: 39%; }
  .coin-table th, .coin-table td { padding: 12px 8px; font-size: 13px; }
  .coin-table td { white-space: normal; overflow-wrap: anywhere; }
  .coin-table .coin-cell { display: flex; flex-direction: column; gap: 0; align-items: flex-start; min-height: 44px; justify-content: center; line-height: 1.4; }
  .coin-table .coin-name { font-size: 14px; }
  .coin-table .coin-ticker { font-size: 12px; }
  .home-prices .coin-table tbody tr:nth-child(n+6) { display: none; }
  .table-more { display: flex; min-height: 48px; align-items: center; justify-content: space-between; font-size: 14px; }
  .table-cs:not(.coin-table) th, .table-cs:not(.coin-table) td { padding: 10px 12px; font-size: 14px; }
  .table-wrap { overscroll-behavior-x: contain; }
  .period-switch { display: flex; width: 100%; }
  .period-switch button { min-width: 0; flex: 1; padding: 0 8px; }
  .price-main { font-size: clamp(26px, 8vw, 34px); }
  .stat-list div { flex-wrap: wrap; gap: 4px 12px; padding: 12px; }
  .stat-list dd { margin-left: auto; }
  .chart-box { height: 240px; }
  .breadcrumb { font-size: 12px; line-height: 1.6; }
  .content-body { font-size: 16px; line-height: 1.75; overflow-wrap: break-word; }
  .content-body img { height: auto; }
  .definition { font-size: 17px; padding: 16px; }
  .news-summary { font-size: 15px; line-height: 1.55; }
  .home-layout .news-summary { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .review-card-title { font-size: 19px; }
  .letter-nav { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; }
  .letter-nav a { flex: 0 0 44px; }
  .cta-block { padding: 20px 16px; gap: 16px; }
  .cta-title { font-size: 21px; }
  .cta-actions .btn { min-height: 50px; }
  .mobile-nav { display: flex; position: fixed; z-index: 45; bottom: 0; left: 0; right: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--cs-line); box-shadow: 0 -4px 20px #0d1b2a08; }
  .mobile-nav a { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 3px; min-height: 50px; color: var(--cs-muted); font-size: 11px; font-weight: 600; text-decoration: none; }
  .mobile-nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .mobile-nav a[aria-current] { color: var(--cs-accent); background: #eff4ff; border-radius: 12px; }
  .mobile-nav .mobile-nav-telegram { color: var(--cs-tg); }
  .push-banner { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-height: calc(100dvh - 170px); overflow-y: auto; }
  .footer-links { display: grid; grid-template-columns: 1fr; gap: 0; }
  .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

@media (max-width: 767.98px) {
  /* Clipping must not create a scrolling ancestor for the sticky header. */
  html, body { overflow-x: clip; }
  .site-logo { min-height: 44px; }
  .section-head .more-link { display: inline-flex; align-items: center; min-height: 44px; }
  .coin-chip { min-height: 44px; }
  .faq summary { min-height: 44px; }
}
