/* NABWORK v61 — approved simple hero on desktop + one category carousel on phones.
 * Deliberately leaves the approved mobile city photo, its white headline,
 * the exact search box and "აღმოაჩინე მეტი" real-service cards untouched.
 * No app/auth/payment/data logic.
 */
@media (min-width:1080px) {
  /* The only visible content on the desktop photograph is the main title
     ("ფრილანს პლატფორმა საქართველოში") and the existing working search. */
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero :is(
    .nw-v6-eyebrow, #heroSubtitle, .nw-v40-desktop-subtitle,
    .nw-v35-hero-description, .nw-v57-hero-points, .nw-v52-trust-points,
    .nw-v44-hero-benefits, .nw-v42-proof-row, .nw-v6-hero-actions,
    .nw-v6-chips, .nw11-home-mobile-points
  ) {
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nw-v6-hero-grid {
    min-height:350px!important;
    padding-top:39px!important;
    padding-bottom:39px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-copy {
    width:min(62%,730px)!important; max-width:730px!important;
    display:flex!important; flex-direction:column!important;
    align-items:flex-start!important; justify-content:center!important;
    gap:0!important; text-align:left!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle {
    max-width:710px!important; width:100%!important;
    margin:0 0 23px!important; padding:0!important;
    font-size:clamp(39px,3.3vw,56px)!important;
    font-weight:900!important; letter-spacing:-.035em!important;
    line-height:1.20!important; text-align:left!important;
    color:#fff!important; text-wrap:balance!important;
    text-shadow:0 2px 9px rgba(4,17,40,.22)!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle .nw-v33-desktop-headline {
    display:inline!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle .nw-v33-mobile-headline {
    display:none!important;
  }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle .nw-v40-emphasis {
    display:inline!important; color:#fff!important;
    -webkit-text-fill-color:#fff!important;
    background:none!important; font-size:inherit!important;
    white-space:normal!important;
  }
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero .nab-premium-search {
    margin:0!important; width:min(100%,610px)!important;
    max-width:610px!important;
  }
}
@media (min-width:1080px) and (max-width:1199px) {
  #homeView:not(.nw-v26-catalog-mode) .nw-v6-hero-copy { width:min(66%,680px)!important; }
  #homeView:not(.nw-v26-catalog-mode) #heroTitle { font-size:clamp(34px,3.65vw,45px)!important; }
}

/* One row, all 8 functioning categories, with a glimpse of the next tile.
   The old clone script is updated to generate exactly one horizontal row. */
@media (max-width:600px) {
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-mobile-rows {
    display:block!important;
    width:100%!important; max-width:100%!important;
    margin:0!important; padding:2px 0 9px!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row {
    display:flex!important; flex-flow:row nowrap!important;
    align-items:stretch!important; justify-content:flex-start!important;
    width:100%!important; max-width:100%!important;
    gap:10px!important;
    padding:4px 1px 10px!important; margin:0!important;
    overflow-x:auto!important; overflow-y:hidden!important;
    scroll-snap-type:x mandatory!important; scroll-padding-inline:2px!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important; box-sizing:border-box!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row::-webkit-scrollbar {
    display:none!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button {
    display:flex!important; flex:0 0 clamp(106px,29.3vw,132px)!important;
    flex-direction:column!important; align-items:center!important;
    justify-content:center!important;
    width:clamp(106px,29.3vw,132px)!important;
    min-width:106px!important; max-width:132px!important;
    height:105px!important; min-height:105px!important; max-height:105px!important;
    padding:10px 7px!important; gap:7px!important;
    background:#fff!important; border:1px solid #e3ecf7!important;
    border-radius:15px!important;
    box-shadow:0 5px 14px rgba(19,65,120,.065)!important;
    text-align:center!important; white-space:normal!important;
    scroll-snap-align:start!important; box-sizing:border-box!important;
    transition:border-color .16s ease, box-shadow .16s ease!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button:hover {
    border-color:#afcef4!important; box-shadow:0 8px 19px rgba(18,75,153,.11)!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button:focus-visible {
    outline:3px solid #66b0ff!important; outline-offset:2px!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row>button::after {
    display:none!important; content:none!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon {
    display:grid!important; place-items:center!important;
    flex:0 0 42px!important; width:42px!important;
    min-width:42px!important; height:42px!important;
    margin:0!important; border-radius:13px!important;
    background:var(--nw38-soft,#e7f3ff)!important;
    color:var(--nw38-ink,#0a86d6)!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-icon svg {
    width:22px!important; height:22px!important;
    stroke:currentColor!important; stroke-width:2!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v35-cat-copy {
    display:flex!important; flex-direction:column!important; align-items:center!important;
    justify-content:center!important; gap:0!important; padding:0!important;
    flex:0 1 auto!important; min-width:0!important; width:100%!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v6-cat-label {
    display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    flex:0 1 auto!important; width:100%!important; min-width:0!important;
    max-height:34px!important; overflow:hidden!important;
    font-size:clamp(10px,2.8vw,11.5px)!important;
    line-height:1.27!important; font-weight:830!important;
    text-align:center!important; color:#193650!important;
    overflow-wrap:anywhere!important; white-space:normal!important;
  }
  html.nw-v37-rails-ready #homeView:not(.nw-v26-catalog-mode) .nw-v37-category-row .nw-v35-cat-sub {
    display:none!important;
  }
  /* The extra vertical whitespace came from two stacked rails. */
  #homeView:not(.nw-v26-catalog-mode) > .nab-premium-categories {
    padding-bottom:1px!important;
  }
  #homeView:not(.nw-v26-catalog-mode) > .nw-v30-popular {
    margin-top:14px!important;
  }
  /* Fix the screenshot's hamburger overlapping the sign-in button. */
  .nab-header .nab30-account {
    padding-right:48px!important;
    box-sizing:border-box!important;
  }
  .nab-header #nab29MobileToggle {
    right:11px!important; z-index:14!important;
  }
}
@media (prefers-reduced-motion:reduce) {
  #homeView .nw-v37-category-row>button { transition:none!important; }
}
