/* Mobile-only simplification. Loaded last so the desktop composition stays intact. */
@media (max-width: 760px) {
  :root { --pad: 18px; }

  .header { height: 68px; padding-inline: var(--pad); }
  .header-actions { gap: 10px; }
  .header-cta { padding: 10px 12px; font-size: 10px; letter-spacing: .02em; }
  .header-cta span,
  .scroll-hint i,
  .contact-link span,
  .identity-scroll i { display: none !important; }

  .hero { min-height: 88svh; padding: 88px var(--pad) 26px; }
  .eyebrow,
  .hero-bottom > p,
  .hero-tag { display: none; }
  .hero h1 { font-size: clamp(54px, 17.5vw, 88px); line-height: .86; }
  .hero-line.right { margin-top: 2.2vh; font-size: .47em; }
  .hero-bottom { justify-content: flex-end; margin-top: 4vh; padding: 0; font-size: 10px; letter-spacing: .16em; }
  .hero-scribble { right: -12%; bottom: 2%; width: 48vw; opacity: .68; }

  .manifesto { height: 166svh; }
  .portrait-scene { padding: 7.5vh var(--pad) 3vh; }
  .portrait-scene > .section-no { top: 6.5vh; }
  .about-portrait { width: 84vw; height: 61svh; margin-top: 2.5vh; }
  .about-left { left: var(--pad); bottom: 4vh; }
  .about-left h2 { font-size: 8.6vw; }
  .about-right { display: none; }
  .about-portrait figcaption { right: -4px; top: 9%; padding: 9px 11px; box-shadow: 4px 4px 0 var(--black); }
  .about-portrait figcaption span { display: none; }
  .manifesto-scene .stamp { display: none; }
  .manifesto-text { font-size: 11.2vw; }

  .horizontal { height: 500svh; }
  .horizontal-head { height: 62px; padding-inline: var(--pad); }
  .track { height: calc(100svh - 62px); }
  .service,
  .intro-card,
  .outro-card { width: 84vw; padding: 22px; }
  .service ul,
  .card-ai-pay small { display: none; }
  .service div > p { margin-bottom: 8px; }
  .service h3 { font-size: clamp(64px, 20vw, 100px); }
  .intro-card h2,
  .outro-card h2 { font-size: clamp(52px, 15vw, 78px); }
  .outro-card a { margin-top: 30px; }
  .outro-card a { font-size: 0; }
  .outro-card a::before { content: "Начать проект"; font-size: 11px; }
  html[lang="en"] .outro-card a::before { content: "Start a project"; }

  .project-archive { padding: 8vh var(--pad) 6vh; }
  .works-title h2 { font-size: 23vw; }
  .works-title .section-no { margin-bottom: 4vh; }
  .archive-intro { margin: 3.5vh 0 5vh; }
  .archive-lead { font-size: 8.5vw; }
  .project-stack { gap: 14px; }
  .project-panel,
  .project-panel:hover,
  .project-stack:has(.project-panel:hover) .project-panel:not(:hover) { height: 54svh; min-height: 410px; }
  .project-bar { height: 88px; min-height: 88px; grid-template-columns: 26px minmax(0, 1fr); padding: 0 12px; }
  .project-bar h3 { min-width: 0; font-size: clamp(36px, 11vw, 54px); line-height: .9; }
  .project-bar b { display: none !important; }
  .project-stage { inset: 88px 0 0; }
  .browser-ui { height: 26px; font-size: 7px; }
  .browser-ui b,
  .project-graffiti,
  .code-rain { display: none; }
  .archive-future { margin-top: 5vh; padding: 2.5vh 0; }
  .archive-future > p { margin: 0; font-size: 24px; }
  .archive-future > div { display: none; }

  .identity-lab { height: 190svh; min-height: 1120px; }
  .identity-sticky { padding: 5.5vh var(--pad) 2vh; }
  .identity-head > .section-no { margin-bottom: 0; }
  .identity-head h2 { font-size: 12.5vw; }
  .identity-stage { inset: 21vh 12px 3vh; }
  .identity-card-meta p { font-size: 7px; }
  .identity-scroll { left: var(--pad); bottom: 2vh; }

  .contact { min-height: 78svh; padding: 9vh var(--pad) max(24px, env(safe-area-inset-bottom)); }
  .contact .section-no { margin-bottom: 5vh; }
  .contact h2 { margin: 0 0 6vh; font-size: 24vw; }
  .contact-link { font-size: clamp(18px, 6vw, 30px); }
  .contact-bottom { display: block; margin-top: auto; padding-top: 6vh; }
  .contact-bottom > p { display: none; }
  .contact-bottom div { flex-wrap: wrap; gap: 14px 22px; }
}

@media (max-width: 600px) {
  .language-switcher { display: none; }
  .header-cta { min-width: 88px; max-width: 104px; overflow: hidden; text-align: center; white-space: nowrap; font-size: 0; }
  .header-cta::before { content: "Обсудить"; font-size: 10px; }
  html[lang="en"] .header-cta::before { content: "Contact"; }
  .hero-line.right { justify-content: flex-start; font-size: .38em; }
}

@media (max-width: 390px) {
  .project-panel,
  .project-panel:hover,
  .project-stack:has(.project-panel:hover) .project-panel:not(:hover) { min-height: 380px; }
}
