/* Nexode mobile design system — intentionally separate from desktop. */
@media (max-width: 767px) {
  :root {
    --m-gutter: 20px;
    --m-section: 72px;
    --m-radius: 18px;
    --m-blue: #1769ff;
    --m-ink: #070b14;
    --m-paper: #f5f7fb;
    --m-line: rgba(7, 11, 20, .11);
  }

  *, *::before, *::after { box-sizing: border-box; }
  html { overflow-x: clip; scroll-padding-top: 72px; }
  body { width: 100%; overflow-x: clip; background: #fff; font-size: 16px; line-height: 1.55; }
  main { display: block; width: 100%; overflow: clip; }
  img, video { max-width: 100%; height: auto; }
  .container, .nav { width: calc(100% - (var(--m-gutter) * 2)); max-width: none; }
  .section { padding: var(--m-section) 0; }
  h1, h2, h3 { text-wrap: balance; overflow-wrap: normal; word-break: normal; }
  h1 { font-size: clamp(40px, 12vw, 52px); line-height: .98; letter-spacing: -.058em; }
  h2 { font-size: clamp(31px, 9.7vw, 40px); line-height: 1.02; letter-spacing: -.05em; }
  h3 { font-size: 21px; line-height: 1.15; }
  .lead { font-size: 17px; line-height: 1.5; }
  .copy { font-size: 15px; line-height: 1.58; }
  .eyebrow { margin-bottom: 14px; padding: 6px 9px; font-size: 10px; line-height: 1.2; letter-spacing: .11em; }
  .reveal-section { opacity: 1; transform: none; transition: none; }

  .site-header { position: sticky; top: 0; padding: 8px 0; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
  .nav { height: 56px; padding: 0 6px 0 14px; border: 1px solid var(--m-line); border-radius: 15px; background: rgba(255,255,255,.96); box-shadow: 0 8px 28px rgba(9,32,74,.08); }
  .brand { font-size: 23px; letter-spacing: -.04em; }
  .menu-toggle { display: block; width: 44px; height: 44px; border: 0; border-radius: 12px; background: #f2f5fa; }
  .menu-toggle span { width: 19px; height: 2px; margin: 4px auto; border-radius: 2px; }
  .nav-links { position: fixed; top: 72px; left: var(--m-gutter); right: var(--m-gutter); width: auto; max-height: calc(100svh - 88px); padding: 10px; border: 1px solid var(--m-line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(7,11,20,.18); overflow-y: auto; overscroll-behavior: contain; }
  .nav-links.open { display: grid; gap: 2px; }
  .nav-links > a:not(.btn), .nav-dropdown-toggle { min-height: 48px; padding: 13px 14px; border-radius: 10px; font-size: 15px; }
  .nav-links > a:hover, .nav-dropdown-toggle:hover { background: var(--m-paper); }
  .nav-dropdown-menu { position: static; width: 100%; margin: 2px 0 8px; padding: 6px; border: 0; border-radius: 13px; background: var(--m-paper); box-shadow: none; transform: none; }
  .nav-dropdown-menu a { min-height: 45px; padding: 12px; font-size: 14px; }
  .nav-links .btn { width: 100%; min-height: 50px; margin-top: 6px; }

  .btn { width: auto; min-height: 50px; padding: 0 20px; border-radius: 12px; font-size: 14px; }
  .hero-image { min-height: auto; margin: 0; padding: 64px 0 38px; border-radius: 0 0 24px 24px; background: var(--m-ink); box-shadow: none; }
  .hero-image::after { background: linear-gradient(180deg, rgba(4,8,18,.72), rgba(4,8,18,.95)); }
  .hero-slides .hero-bg { animation: none !important; }
  .hero-slides .hero-bg:not(:first-child) { display: none; }
  .hero-slides .hero-bg:first-child { opacity: .3; }
  .hero-content, .hero-home-grid { min-height: 0; }
  .hero-home-grid { display: block; }
  .hero-showcase { display: none; }
  .hero-copy { width: 100%; }
  .hero-image h1 { max-width: 340px; margin: 0 0 20px; font-size: clamp(41px, 12.5vw, 52px); line-height: .96; }
  .hero-image .lead { max-width: 355px; margin: 0; color: rgba(255,255,255,.72); font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 28px 0 30px; }
  .hero-actions .btn { width: 100%; min-height: 52px; }
  .hero-image .hero-actions .btn-secondary { border-color: rgba(255,255,255,.42); background: transparent; }
  .hero-proof { display: grid; grid-template-columns: 1fr; gap: 0; }
  .proof-item { display: grid; grid-template-columns: 115px 1fr; align-items: center; min-height: 62px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); }
  .proof-item strong { font-size: 15px; }
  .proof-item span { margin: 0; font-size: 11px; line-height: 1.4; text-align: left; }

  .manifesto { padding: 88px 0; background: #fff; text-align: left; }
  .manifesto-inner { display: block; }
  .manifesto h2 { max-width: 330px; margin: 0; font-size: clamp(45px, 14vw, 58px); line-height: .92; }
  .manifesto-copy { max-width: 340px; margin: 28px 0 0; font-size: 17px; }
  .capability-rail { justify-content: flex-start; gap: 7px; margin-top: 30px; }
  .capability-rail span { padding: 9px 12px; font-size: 11px; box-shadow: none; }

  .about-section { padding: 0 0 var(--m-section); background: #fff; }
  .about-showcase { display: flex; flex-direction: column; width: calc(100% - (var(--m-gutter) * 2)); border-radius: 18px; overflow: hidden; }
  .about-visual { min-height: 0; aspect-ratio: 16 / 10; }
  .about-visual img { width: 100%; height: 100%; min-height: 0; object-fit: cover; }
  .about-visual figcaption { display: none; }
  .about-experience { top: auto; right: auto; bottom: 14px; left: 14px; display: inline-flex; width: auto; max-width: calc(100% - 28px); padding: 9px 12px; border-radius: 10px; box-shadow: 0 12px 28px rgba(0,0,0,.2); }
  .about-experience strong { font-size: 24px; line-height: 1; }
  .about-experience span { font-size: 10px; line-height: 1.25; }
  .about-content { padding: 28px 18px 30px; }
  .about-content h2 { max-width: 310px; font-size: clamp(29px, 8.7vw, 35px); line-height: 1.01; }
  .about-content .lead { font-size: 16px; line-height: 1.48; }
  .about-content .copy { font-size: 14px; line-height: 1.55; }
  .about-principles { margin-top: 20px; }
  .about-principles > div { grid-template-columns: 32px 1fr; gap: 10px; padding: 13px 0; }
  .about-principles span { width: 30px; height: 30px; }
  .about-principles small { grid-column: 2; margin-top: -4px; }

  .ai-callout { padding: 0 0 var(--m-section); background: #fff; }
  .ai-callout-box { display: block; width: calc(100% - 24px); padding: 32px 20px; border-radius: 20px; }
  .ai-callout-box h2 { font-size: clamp(30px, 9vw, 38px); }
  .ai-callout-box .btn { width: 100%; margin-top: 24px; }

  .dark-panel { margin: 0; border-radius: 0; }
  .dark-panel .container { width: calc(100% - (var(--m-gutter) * 2)); }
  .section-head { display: block; margin-bottom: 34px; }
  .section-head .lead { margin-top: 18px; }
  .section-image { margin: 0 0 28px; border-radius: 16px; }
  .section-image img { display: block; aspect-ratio: 16 / 10; object-fit: cover; }
  .service-list { display: grid; grid-template-columns: 1fr; gap: 1px; border-top: 1px solid rgba(255,255,255,.14); }
  .service-row { display: grid; grid-template-columns: 36px 1fr; min-height: 0; padding: 22px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.14); border-radius: 0; background: transparent; }
  .service-row:hover { background: transparent; }
  .service-row .icon { width: 30px; height: 30px; border-radius: 8px; font-size: 11px; }
  .service-row h3 { margin-bottom: 8px; font-size: 22px; }
  .service-row .copy { margin: 0; font-size: 14px; }
  .service-arrow { grid-column: 2; margin-top: 12px; font-size: 12px; }

  .selected-work { background: var(--m-paper); }
  .showcase-cases { display: grid; grid-template-columns: 1fr; gap: 14px; }
  .showcase-cases .case-card, .showcase-cases .case-card:last-child { grid-column: auto; grid-row: auto; }
  .case-card { border: 1px solid rgba(7,11,20,.07); border-radius: 18px; box-shadow: none; }
  .case-card-featured .case-media-img, .case-media-img { height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
  .case-card-featured .case-body, .case-body { padding: 22px 18px 24px; }
  .case-card-featured h3 { font-size: 26px; }
  .case-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .case-actions .btn { width: 100%; }

  .impact-strip { padding: 0 0 var(--m-section); background: var(--m-paper); }
  .impact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border-radius: 18px; }
  .impact-grid > div, .impact-grid > p { min-height: 128px; padding: 18px; }
  .impact-grid > div:nth-child(3), .impact-grid > p { grid-column: 1 / -1; }
  .impact-grid strong { font-size: 36px; }
  .impact-grid span { font-size: 11px; }
  .impact-grid > p { min-height: 140px; font-size: 20px; }

  .band { background: #fff; }
  .steps-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 30px; border-top: 1px solid var(--m-line); }
  .steps-grid .card { padding: 22px 0; border: 0; border-bottom: 1px solid var(--m-line); border-radius: 0; background: transparent; }
  .steps-grid .card::before { width: 4px; border-radius: 4px; }
  .steps-grid .card h3 { font-size: 20px; }

  .final-statement { padding: 0 0 var(--m-section); background: #fff; }
  .final-statement .cta-box { display: block; width: calc(100% - 24px); min-height: 0; padding: 38px 20px; border-radius: 22px; }
  .final-statement .cta-box > div { min-width: 0; }
  .final-statement h2 { max-width: 315px; font-size: clamp(40px, 12vw, 50px); line-height: .96; }
  .final-statement .lead { margin-top: 20px; font-size: 16px; }
  .final-statement .btn { width: 100%; margin-top: 28px; white-space: normal; }

  #kontakt { padding-top: 72px; }
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 38px; }
  .contact-copy h2 { max-width: 300px; }
  .contact-email { min-height: 58px; padding: 14px; border-radius: 12px; }
  .billing-box { padding: 20px 16px; border-radius: 16px; }
  .billing-box dl div { grid-template-columns: 96px 1fr; gap: 10px; }
  .contact-grid form.card { padding: 24px 18px; border-radius: 18px; box-shadow: 0 18px 55px rgba(13,44,101,.1); }
  .contact-grid form label:not(.checkbox-line) { gap: 7px; }
  input, select, textarea { min-height: 52px; padding: 12px 14px !important; border-radius: 10px !important; font-size: 16px !important; }
  textarea { min-height: 132px; resize: vertical; }
  .checkbox-line { align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; }
  .checkbox-line input { flex: 0 0 auto; width: 22px; min-height: 22px; margin-top: 1px; padding: 0 !important; }
  form .btn[type="submit"] { width: 100%; }

  .site-footer { padding: 56px 0 40px; }
  .footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .site-footer a, .footer-cookie-link { min-height: 36px; }

  .page-hero { padding: 72px 0 54px; }
  .page-hero.visual { min-height: 0; margin: 0; padding: 72px 0 48px; border-radius: 0 0 22px 22px; }
  .page-hero.visual::after { background: linear-gradient(180deg, rgba(4,8,18,.62), rgba(4,8,18,.9)); }
  .page-hero.visual h1, .page-hero h1 { max-width: 340px; font-size: clamp(39px, 11.5vw, 48px); line-height: .98; }
  .page-hero.visual .lead { font-size: 17px; }
  .breadcrumb { margin-bottom: 22px; }
  .service-hero-proof { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 28px; }
  .service-hero-proof span { min-height: 46px; padding: 11px 14px; border-radius: 10px; }
  .service-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }
  .service-lead-block { padding-bottom: 8px; }
  .service-benefits { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .service-benefit { padding: 22px 18px; border-radius: 16px; }
  .service-feature-panel { margin-top: 54px; padding: 30px 18px; border-radius: 18px; }
  .service-feature-grid { display: grid; grid-template-columns: 1fr; gap: 1px; }
  .service-feature { padding: 20px 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.13); border-radius: 0; background: transparent; }
  .service-process-section { margin-top: 58px; }
  .service-process { display: grid; gap: 10px; }
  .service-process-step { padding: 20px 16px; border-radius: 15px; }
  .service-result-band { margin-top: 54px; padding: 30px 18px; border-radius: 18px; }
  .service-result-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .service-result-grid span { min-height: 48px; padding: 12px 14px; border-radius: 10px; }
  .service-side { position: static; display: grid; gap: 12px; }
  .service-side .card { padding: 22px 18px; border-radius: 16px; }
  .service-cta-card .btn { width: 100%; }

  .case-feature { padding: 18px; border-radius: 18px; }
  .case-feature-media { border-radius: 12px; }
  .case-feature-content { padding-top: 20px; }
  .reference-gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .reference-gallery figure { border-radius: 14px; }
  .gallery-trigger { border-radius: 12px; }
  .sticky-panel { position: static; }

  .callback-popup { align-items: flex-end; padding: 8px; }
  .callback-card { display: block; width: 100%; max-height: calc(100svh - 16px); border-radius: 20px 20px 14px 14px; overflow-y: auto; overscroll-behavior: contain; }
  .callback-intro { padding: 28px 18px 22px; }
  .callback-intro h2 { max-width: 280px; font-size: 34px; }
  .callback-form { padding: 22px 18px 26px; }
  .callback-close { top: 12px; right: 12px; width: 42px; height: 42px; }
  .callback-success { padding: 18px 0; }

  .cookie-panel { padding: 8px; }
  .cookie-card { display: block; max-height: calc(100svh - 16px); padding: 22px 18px; border-radius: 18px; overflow-y: auto; overscroll-behavior: contain; }
  .cookie-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 18px; }
  .cookie-actions .btn { width: 100%; }
  .cookie-preferences { margin-top: 16px; }
}

@media (max-width: 359px) {
  :root { --m-gutter: 16px; --m-section: 64px; }
  h1 { font-size: 39px; }
  .hero-image h1 { font-size: 40px; }
  .proof-item { grid-template-columns: 104px 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div { grid-column: auto !important; }
}
