/* ════════════════════════════════════════════════════════════════
   ALEBID — mobile.css
   Тільки мобільна адаптація. Десктоп (>1100px) НЕ ЧІПАЄМО.
   
   Breakpoints:
     ≤1100px  tablet landscape
     ≤768px   tablet portrait
     ≤480px   phone landscape / large phone
     ≤375px   small phone
════════════════════════════════════════════════════════════════ */

/* ────────────────────────────────────────────────────────────
   TOUCH: прибираємо курсор та -webkit-tap-highlight
──────────────────────────────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {
  body { cursor: auto !important; }
  *, *::before, *::after { cursor: auto !important; }
  .cur, .cur-r { display: none !important; }
  a, button, [role="button"], label { cursor: pointer !important; }
}

a, button { -webkit-tap-highlight-color: transparent; }
input, select, textarea { font-size: 16px; } /* запобігає auto-zoom на iOS */

/* ────────────────────────────────────────────────────────────
   SAFE AREA — iPhone notch / Dynamic Island
──────────────────────────────────────────────────────────── */
@supports (padding: env(safe-area-inset-top)) {
  nav {
    padding-top: max(22px, env(safe-area-inset-top));
    padding-left: max(56px, env(safe-area-inset-left));
    padding-right: max(56px, env(safe-area-inset-right));
  }
  @media (max-width: 1100px) {
    nav {
      padding-top: max(16px, env(safe-area-inset-top));
      padding-left: max(20px, env(safe-area-inset-left));
      padding-right: max(20px, env(safe-area-inset-right));
    }
  }
  footer {
    padding-bottom: max(40px, env(safe-area-inset-bottom));
  }
}

/* ────────────────────────────────────────────────────────────
   HAMBURGER BUTTON
──────────────────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-burger {
  display: none; /* hidden on desktop */
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .3s;
}
.nav-burger:hover { border-color: var(--accent); }
.nav-burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--white);
  transition: transform .3s cubic-bezier(.16,1,.3,1), opacity .2s, background .3s;
  transform-origin: center;
  pointer-events: none;
}
.nav-burger.is-active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
  background: var(--accent);
}
.nav-burger.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-burger.is-active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
  background: var(--accent);
}

/* ────────────────────────────────────────────────────────────
   MOBILE DRAWER
──────────────────────────────────────────────────────────── */
.mob-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(300px, 88vw);
  background: var(--gray);
  border-left: 1px solid var(--border);
  z-index: 9500;
  transform: translateX(100%);
  transition: transform .42s cubic-bezier(.16,1,.3,1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mob-drawer.is-open { transform: translateX(0); }

.mob-drawer-bg {
  position: fixed; inset: 0;
  background: rgba(10,10,10,.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9499;
  opacity: 0; pointer-events: none;
  transition: opacity .35s;
}
.mob-drawer-bg.is-open { opacity: 1; pointer-events: all; }

.mob-drawer-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 24px 28px 40px;
}

/* Drawer top row */
.mob-drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-top: max(0px, env(safe-area-inset-top));
}
.mob-drawer-logo .logo-mark {
  font-size: 17px; font-weight: 900;
  letter-spacing: -.03em; color: var(--white);
  margin-bottom: 4px;
}
.mob-drawer-logo .logo-mark span { color: var(--accent); }
.mob-drawer-logo .logo-sub {
  font-size: 7px; font-weight: 500;
  letter-spacing: .2em; color: var(--muted); text-transform: uppercase;
}
.mob-drawer-close {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); flex-shrink: 0;
  transition: border-color .25s, color .25s;
}
.mob-drawer-close:hover { border-color: var(--accent); color: var(--accent); }

/* Drawer nav links */
.mob-drawer-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  flex: 1;
}
.mob-drawer-nav a {
  display: block;
  padding: 16px 0;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(245,245,240,.55); text-decoration: none;
  border-bottom: 1px solid rgba(212,255,70,.05);
  transition: color .22s, padding-left .22s;
}
.mob-drawer-nav a:hover { color: var(--accent); padding-left: 6px; }

/* Drawer CTA */
.mob-drawer-cta {
  margin-top: 28px;
  font-family: 'Unbounded', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--black); background: var(--accent);
  border: none; padding: 16px 20px;
  text-transform: uppercase; cursor: pointer;
  transition: box-shadow .25s;
  text-align: center;
}
.mob-drawer-cta:hover { box-shadow: 0 0 28px rgba(212,255,70,.4); }

/* Drawer socials */
.mob-drawer-social {
  margin-top: 20px;
  display: flex; gap: 16px;
}
.mob-drawer-social a {
  font-size: 9px; font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--muted);
  text-decoration: none; transition: color .25s;
}
.mob-drawer-social a:hover { color: var(--accent); }


/* ════════════════════════════════════════════════════════════
   ≤ 1100px  —  TABLET LANDSCAPE
════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {

  /* Nav */
  nav { padding: 16px 20px; }
  nav.scrolled { padding: 12px 20px; }
  .nav-links { display: none; }
  .nav-btn   { display: none; }
  .nav-burger { display: flex; }

  /* Hero — text full width, map below */
  .hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-left { padding: 96px 24px 48px; }
  .hero-title { font-size: clamp(36px, 7vw, 64px); }

  /* Кнопки героя — стопка */
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn-primary,
  .hero-actions .btn-ghost {
    width: 100%; text-align: center;
    padding: 16px 20px; display: block;
  }

  /* Stats 2 колонки */
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .h-stat + .h-stat { border-left: none; padding-left: 0; }

  /* MAP block — показуємо під текстом */
  #heroRight {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: 360px !important;
    overflow: hidden;
    background: var(--black);
  }
  #heroRight .pl-wrap {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
  }
  #heroRight .pl-map-wrap { width: 88%; height: 88%; }
  #heroRight .hero-badge { bottom: 16px; right: 16px; padding: 14px 18px; }
  #heroRight .hb-val { font-size: 28px; }

  /* Why */
  .why-sec { padding: 64px 24px; }
  .why-top { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .why-grid { grid-template-columns: 1fr 1fr; }

  /* Cases carousel */
  .cases-sec { padding: 64px 0; }
  .cases-header { padding: 0 24px 32px; flex-direction: column; gap: 20px; }
  .cases-track-wrap { padding: 0 24px; }
  .carousel-card { width: calc(100vw - 48px); }
  .cases-cta-bar { padding: 28px 24px 0; flex-direction: column; gap: 20px; }
  .ccb-stats { gap: 28px; }

  /* About */
  .about-sec { padding: 64px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-platforms { display: none; }
  .about-photo-block { width: 100%; height: 300px; }

  /* Process */
  .process-sec { padding: 64px 24px; }
  .process-header { flex-direction: column; gap: 8px; }
  .process-labels, .process-numbers, .process-cards { grid-template-columns: repeat(3, 1fr); }
  .process-numbers::after { display: none; }
  .proc-card + .proc-card { border-left: none; padding-left: 0; }
  .proc-card { padding-right: 0; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid rgba(212,255,70,.06); }

  /* VS */
  .vs-sec { padding: 0 24px 64px; grid-template-columns: 1fr; }

  /* Services */
  .services-sec { padding: 64px 24px; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .srv-card.featured { grid-column: span 3; flex-direction: column; gap: 20px; }
  .srv-card.featured .srv-right { flex-wrap: wrap; gap: 12px; }

  /* Pricing */
  .pricing-sec { padding: 64px 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-actions { flex-direction: column; gap: 10px; }
  .price-actions .btn-primary,
  .price-actions .btn-ghost { width: 100%; text-align: center; }

  /* CTA */
  .cta-sec { padding: 64px 24px; }
  .cta-actions { flex-direction: column; gap: 12px; }
  .cta-actions .btn-dark,
  .cta-actions .btn-dark-ghost { width: 100%; text-align: center; padding: 18px 20px; display: block; }

  /* Footer */
  footer { padding: 48px 24px 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-geo { justify-content: center; }

  /* Archive */
  .archive-hero { padding: 120px 24px 56px !important; }
  .hero-bottom { flex-direction: column; gap: 28px; }
  .hero-total { justify-content: flex-start; gap: 24px; }
  .niches-section { padding: 48px 24px 0 !important; }
  .niches-list { flex-wrap: wrap; }
  .niche-item { min-width: 50%; }
  .filters-bar { padding: 0 24px !important; }
  .stats-strip { grid-template-columns: repeat(2, 1fr) !important; padding: 0 24px !important; }
  .cases-archive { padding: 2px 24px 72px !important; }
  .featured-row { grid-template-columns: 1fr !important; }
  .cases-grid-main { grid-template-columns: repeat(2, 1fr) !important; }
  .case-card.horizontal { flex-direction: column !important; grid-column: span 2 !important; }
  .case-card.horizontal .card-vis-strip { width: 100% !important; min-height: 200px; }
  .archive-cta { margin: 48px 24px !important; padding: 48px 32px !important; flex-direction: column !important; gap: 32px !important; }

  /* Single case */
  .case-hero { padding: 140px 24px 80px !important; }
  .case-crumbs { left: 24px !important; }
  .case-hero-meta { gap: 28px; flex-wrap: wrap; }
  .kpi-strip { margin-left: 0 !important; flex-wrap: wrap !important; }
  .det-grid { grid-template-columns: 1fr !important; }
  .det-col { padding: 32px 24px !important; }
  .desc-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .results-kpi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .creatives-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .testimonial-wrap { grid-template-columns: 1fr !important; }
  .next-case-section { padding: 60px 24px !important; }
}


/* ════════════════════════════════════════════════════════════
   ≤ 768px  —  TABLET PORTRAIT
════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Nav */
  nav { padding: 14px 18px; }

  /* Hero */
  .hero-title { font-size: clamp(30px, 8vw, 52px); }
  .hero-desc { font-size: 11px; margin-bottom: 32px; }
  .hero-stats { gap: 16px; padding-top: 24px; }
  .h-stat-val { font-size: clamp(20px, 5vw, 28px); }

  /* MAP */
  #heroRight { height: 300px !important; }
  #heroRight .pl-map-wrap { width: 90%; height: 90%; }
  #heroRight .hero-badge { display: none; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { padding: 28px 24px; }

  /* Process — 2 col */
  .process-labels, .process-numbers, .process-cards { grid-template-columns: repeat(2, 1fr); }

  /* Services */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .srv-card.featured { grid-column: span 2; }

  /* Pricing */
  .price-val { font-size: clamp(44px, 10vw, 64px); }
  .price-main { padding: 36px 24px; }
  .price-checklist { padding: 36px 24px; }

  /* Footer */
  .footer-links { grid-template-columns: 1fr; gap: 24px; }

  /* Archive */
  .cases-grid-main { grid-template-columns: 1fr !important; }
  .case-card.horizontal { grid-column: span 1 !important; }
  .filters-bar { flex-wrap: wrap !important; gap: 8px !important; }
  .filters-right { display: none; }
  .stat-block { padding: 24px 20px; }
  .stat-val { font-size: 28px; }

  /* Single */
  .results-kpi-grid { grid-template-columns: 1fr !important; }
  .h-title { font-size: clamp(28px, 8vw, 56px); }
  .kpi-block { flex: 1; min-width: auto !important; padding: 16px !important; }
  .kpi-v { font-size: 22px; }
}


/* ════════════════════════════════════════════════════════════
   ≤ 480px  —  LARGE PHONE / LANDSCAPE
════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Nav */
  nav { padding: 12px 16px; }
  .logo-sub { display: none; }

  /* Hero */
  .hero-left { padding: 80px 16px 36px; }
  .hero-eyebrow { font-size: 9px; margin-bottom: 16px; }
  .hero-title { font-size: clamp(26px, 9vw, 40px); letter-spacing: -.04em; margin-bottom: 16px; }
  .hero-desc { font-size: 10px; margin-bottom: 24px; }
  .h-stat-val { font-size: 22px; }
  .h-stat-lbl { font-size: 8px; }

  /* MAP */
  #heroRight { height: 240px !important; }
  #heroRight .pl-map-wrap { width: 94%; height: 92%; }

  /* Marquee */
  .mq-item { padding: 0 14px; font-size: 9px; gap: 16px; }

  /* Section base */
  .sec-label { font-size: 9px; }
  .sec-label::before { width: 20px; }
  .sec-heading { font-size: clamp(22px, 7.5vw, 36px); }

  /* Why */
  .why-sec { padding: 52px 16px; }
  .why-card { padding: 22px 18px; }
  .wc-icon { width: 36px; height: 36px; margin-bottom: 18px; }
  .wc-title { font-size: 11px; }
  .wc-desc { font-size: 10px; }
  .wc-num { font-size: 40px; }

  /* Cases */
  .cases-header { padding: 0 16px 24px; }
  .cases-track-wrap { padding: 0 16px; }
  .carousel-card { width: calc(100vw - 32px); }
  .card-body { padding: 20px 16px; }
  .card-title { font-size: 13px; }
  .vmb-val { font-size: 28px !important; }
  .card-vis-strip { min-height: 200px !important; }
  .cases-cta-bar { padding: 24px 16px 0; }
  .ccb-val { font-size: 22px; }

  /* About */
  .about-sec { padding: 52px 16px; }
  .about-photo-block { height: 240px; }
  .about-badge { padding: 16px 18px; }
  .ab-val { font-size: 26px; }
  .ap-item { padding: 14px 16px; }

  /* Process */
  .process-sec { padding: 52px 16px; }
  .process-title { font-size: clamp(28px, 8vw, 48px); }
  .process-labels, .process-numbers, .process-cards { grid-template-columns: 1fr; }
  .proc-num { font-size: clamp(32px, 9vw, 52px); }

  /* VS */
  .vs-sec { padding: 0 16px 52px; }
  .vs-col { padding: 36px 22px; }
  .vs-title { font-size: clamp(18px, 7vw, 28px); }

  /* Services */
  .services-sec { padding: 52px 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .srv-card.featured { grid-column: span 1; flex-direction: column; }
  .srv-card.featured .srv-right { flex-direction: column; align-items: flex-start; gap: 12px; }
  .srv-feat-badge { min-width: auto; }

  /* Pricing */
  .pricing-sec { padding: 52px 16px; }
  .price-main { padding: 28px 16px; }
  .price-checklist { padding: 28px 16px; }
  .price-val { font-size: clamp(40px, 11vw, 56px); }

  /* CTA */
  .cta-sec { padding: 52px 16px; }
  .cta-title { font-size: clamp(26px, 9vw, 48px); }

  /* Footer */
  footer { padding: 40px 16px 28px; }
  .footer-logo-mark { font-size: 18px; }

  /* Archive */
  .archive-hero { padding: 96px 16px 44px !important; }
  .hero-title { font-size: clamp(36px, 11vw, 56px) !important; }
  .stats-strip { grid-template-columns: 1fr !important; margin: 2px 16px 0 !important; }
  .cases-archive { padding: 2px 16px 52px !important; }
  .archive-cta { margin: 36px 16px !important; padding: 36px 20px !important; }
  .niche-item { min-width: 100%; }
  .filter-tab { padding: 14px 12px; font-size: 9px; }
  .stat-block { padding: 20px 14px; }
  .stat-val { font-size: 26px; }

  /* Single */
  .case-hero { padding: 96px 16px 56px !important; }
  .h-crumb { left: 16px !important; top: 108px !important; font-size: 8px; }
  .h-title { font-size: clamp(26px, 9vw, 48px) !important; }
  .h-badge { font-size: 9px; padding: 4px 10px; }
  .det-col { padding: 22px 16px !important; }
  .det-k { min-width: 90px; font-size: 8px; }
  .s-lbl { font-size: 8px; margin-bottom: 36px; }
  .s-ttl { font-size: clamp(18px, 6.5vw, 32px); }
  .desc-lead { font-size: 13px; }
  .creatives-grid { grid-template-columns: 1fr !important; }
  .t-qm { font-size: 64px; }
  .t-qt { font-size: clamp(12px, 4vw, 17px); }
  .next-case-section { padding: 48px 16px !important; }
  .next-case-title { font-size: clamp(18px, 5.5vw, 32px); }

  /* Form */
  .alebid-panel { margin: 0; }
  .alebid-fheader { padding: 20px 16px 16px; }
  .alebid-fbody { padding: 20px 16px 24px; }
  .alebid-ftitle { font-size: 20px; }
}


/* ════════════════════════════════════════════════════════════
   ≤ 375px  —  SMALL PHONE
════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {

  nav { padding: 12px 14px; }

  .hero-left { padding: 76px 14px 32px; }
  .hero-title { font-size: clamp(24px, 10vw, 36px); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .h-stat-val { font-size: 20px; }

  #heroRight { height: 210px !important; }

  .why-sec, .about-sec, .process-sec,
  .services-sec, .pricing-sec { padding: 44px 14px; }
  .vs-sec { padding: 0 14px 44px; }
  .cta-sec { padding: 44px 14px; }
  footer { padding: 36px 14px 24px; }

  .cases-header { padding: 0 14px 20px; }
  .cases-track-wrap { padding: 0 14px; }
  .carousel-card { width: calc(100vw - 28px); }
  .card-body { padding: 16px 14px; }

  .why-card { padding: 18px 14px; }
  .price-main, .price-checklist { padding: 24px 14px; }
  .vs-col { padding: 28px 18px; }

  /* Drawer full-width */
  .mob-drawer { width: 100vw; }
  .mob-drawer-inner { padding: 20px 20px 32px; }
  .mob-drawer-top { padding-top: max(0px, env(safe-area-inset-top)); }

  /* Archive */
  .archive-hero { padding: 86px 14px 36px !important; }
  .stats-strip { margin: 2px 14px 0 !important; }
  .cases-archive { padding: 2px 14px 44px !important; }
  .archive-cta { margin: 28px 14px !important; padding: 28px 14px !important; }
  .stat-block { padding: 16px 12px; }
  .stat-val { font-size: 22px; }

  /* Single */
  .case-hero { padding: 84px 14px 48px !important; }
  .h-crumb { left: 14px !important; }
  .det-col { padding: 18px 14px !important; }

  /* Form */
  .alebid-fheader { padding: 18px 14px 14px; }
  .alebid-fbody { padding: 18px 14px 20px; }
}


/* ════════════════════════════════════════════════════════════
   CONTACT FORM — mobile
════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* overlay scrolls, panel no scroll */
  .alebid-overlay { overflow-y: auto; align-items: flex-end; }
  .alebid-panel { margin: 0 !important; max-height: none !important; overflow: visible !important; }

  /* 2-col → 1-col grid */
  .alebid-fbody .wpforms-field-container { grid-template-columns: 1fr !important; }
  .alebid-fbody .Budget_form,
  .alebid-fbody .Task_form,
  .alebid-fbody .Policy_form,
  .alebid-fbody .Name_form,
  .alebid-fbody .Social_form,
  .alebid-fbody .Busines_form,
  .alebid-fbody .Chanel_form { grid-column: span 1 !important; }

  /* Submit row */
  .alebid-fbody .wpforms-submit-container {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .alebid-fbody .wpforms-submit-container::before { display: none; }
  .alebid-fbody .wpforms-submit,
  .alebid-fbody .Btn_form { width: 100% !important; }

  /* Radio pills — wrap */
  .alebid-fbody .Budget_form .wpforms-field-radio ul { flex-wrap: wrap !important; }
  .alebid-fbody .Budget_form .wpforms-field-radio li { flex: 1; min-width: calc(50% - 1px); }

  /* Success cards stack */
  .success-cards { flex-direction: column; }
  .success-panel { padding: 40px 16px; }
}


/* ════════════════════════════════════════════════════════════
   FRONT PAGE HERO TITLE — тільки на головній (body.home)
   Не конфліктує з архівом та single case
════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  body.home .hero-title {
    font-size: 46px !important;
    line-height: 1.0 !important;
    letter-spacing: -.03em !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
}
@media (max-width: 480px) {
  body.home .hero-title {
    font-size: 46px !important;
    line-height: 1.0 !important;
    letter-spacing: -.03em !important;
  }
}
@media (max-width: 375px) {
  body.home .hero-title {
    font-size: 46px !important;
  }
}


/* ════════════════════════════════════════════════════════════
   REDUCED MOTION
════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .marquee-track { animation: none; }
}