/* Телефоны: макеты нарисованы под 1440px, здесь крупные заголовки и сетки ужимаются под узкий экран. */
@media (max-width: 760px) {
  h1 { font-size: clamp(40px, 12vw, 96px) !important; overflow-wrap: anywhere; }
  h2 { font-size: clamp(30px, 9vw, 64px) !important; overflow-wrap: anywhere; }
  [style*="font-size:140px"], [style*="font-size:120px"] { font-size: clamp(56px, 19vw, 140px) !important; }
  [style*="font-size:200px"] { font-size: clamp(56px, 19vw, 200px) !important; }
  [style*="grid-template-columns:repeat"]:not(.skills):not(.links):not(.ggrid),
  [style*="grid-template-columns:240px"], [style*="grid-template-columns:200px"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="grid-column"] { grid-column: auto !important; }
  .ggrid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .wk { margin-top: 0 !important; }
  :has(> .stat) { flex-wrap: wrap !important; }
  [style*="padding:64px"], [style*="padding:56px 64px"] { padding: 28px !important; }
  [data-tilt] { width: min(360px, 100%) !important; }
  section > div, section > a { min-width: 0; }
}
@media (max-width: 480px) {
  .skills { grid-template-columns: minmax(0, 1fr) !important; }
}
