/* Calm, touch-friendly mobile layout */
@media (max-width: 900px) {
  .header {
    position: sticky !important; top: 0; z-index: 1200;
    min-height: 68px; padding: 12px 5vw !important; gap: 16px;
    background: rgba(17,18,17,.96); mix-blend-mode: normal !important;
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  }
  .header .logo { margin: 0 !important; font-size: 19px; line-height: .98; }
  .header .menu {
    display: inline-flex !important; flex: 0 0 44px; width: 44px; height: 44px;
    align-items: center; justify-content: center; border: 1px solid rgba(242,194,48,.55);
    border-radius: 10px; background: rgba(242,194,48,.08); color: #f2c230;
    font-size: 25px; line-height: 1; cursor: pointer; -webkit-tap-highlight-color: transparent;
  }
  .header .nav, .header .nav.is-open {
    position: absolute !important; top: calc(100% + 8px) !important;
    right: 5vw !important; left: 5vw !important; transform: none !important;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px; border: 1px solid rgba(242,194,48,.25); border-radius: 14px;
    background: #191b19; box-shadow: 0 18px 44px rgba(0,0,0,.38); color: #f4f0e8;
  }
  .header .nav.is-open { display: flex !important; }
  .header .nav a { padding: 15px 3px; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 15px; opacity: 1; }
  .header .nav a:last-child { border-bottom: 0; }
  .header .nav a:after { display: none; }
  .header .menu:focus-visible, .header .nav a:focus-visible { outline: 2px solid #f2c230; outline-offset: 3px; }
  .hero { min-height: min(760px, calc(100svh - 68px)); padding: 90px 6vw 64px; }
  .hero-title { font-size: clamp(38px, 9vw, 64px); line-height: .98; }
  .section, section:not(.hero) { scroll-margin-top: 82px; }
  .cursor, .cursor-follower { display: none !important; }
  .portfolio-wrap { touch-action: pan-x pan-y; }
}
@media (max-width: 600px) {
  body { overflow-x: hidden; }
  .header { min-height: 64px; }
  .hero { padding: 76px 6vw 54px; }
  .hero-content { width: 100%; }
  .hero-title { font-size: clamp(34px, 10vw, 48px); }
  .section, .about, .works, .contacts { padding-left: 6vw !important; padding-right: 6vw !important; }
  .about-content .stats > .stat-feature:last-child { left: 0; }
  button, .button, .btn, a.button { min-height: 44px; }
  input, select, textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
