html {
  scroll-behavior: smooth;
}

.ase-onepage-section {
  scroll-margin-top: 90px;
}

.content-wrapper.contact {
  align-items: flex-start;
}
.column-wrapper.contact-1,
.column-wrapper.contact-2 {
  align-self: flex-start;
}

/* Jednostránka: skrýt Webflow hero carousel (5× obrazovka + modrý pruh) */
.hero-section_wrapper .service-overwiew_section,
.hero-section_wrapper .services_list-wrapper,
.hero-section_wrapper .blue-element,
#uvod .service-overwiew_section,
#uvod .services_list-wrapper,
#uvod .blue-element {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
}

.hero-section_wrapper,
#uvod.hero-section_wrapper {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

#uvod > .hero_section:first-child,
.hero-section_wrapper > .hero_section:first-child {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  width: 100% !important;
  padding-top: 44px !important;
  padding-bottom: 48px !important;
  -webkit-box-pack: start !important;
  -webkit-justify-content: flex-start !important;
  -ms-flex-pack: start !important;
  justify-content: flex-start !important;
}

/* O nás – stejné rozložení jako původní Webflow (bez scroll-hero) */
#uvod .content_wrapper._2.new-hero {
  width: 100% !important;
  max-width: 1000px !important;
  -webkit-box-orient: horizontal !important;
  -webkit-box-direction: normal !important;
  -webkit-flex-direction: row !important;
  -ms-flex-direction: row !important;
  flex-direction: row !important;
  -webkit-box-align: start !important;
  -webkit-align-items: flex-start !important;
  -ms-flex-align: start !important;
  align-items: flex-start !important;
}

#uvod .onas_col._3.hero {
  -webkit-box-flex: 1 !important;
  -webkit-flex: 1 1 60% !important;
  -ms-flex: 1 1 60% !important;
  flex: 1 1 60% !important;
  max-width: 60% !important;
}

#uvod .onas_col._4.hero {
  -webkit-box-flex: 1 !important;
  -webkit-flex: 1 1 40% !important;
  -ms-flex: 1 1 40% !important;
  flex: 1 1 40% !important;
  max-width: 40% !important;
  text-align: left !important;
}

#uvod .onas_col._3.hero .slider-2 {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

#uvod .ase-onas-slideshow .w-slider-mask {
  position: relative !important;
  width: 100% !important;
  white-space: normal !important;
  overflow: hidden !important;
  z-index: 1;
}

/* Modrý podklad jen za fotkou, ne pod celým sloupcem */
#uvod .ase-onas-slideshow .w-slider-mask .div-block-9 {
  position: absolute !important;
  z-index: 0 !important;
  left: -8px !important;
  right: auto !important;
  bottom: 16px !important;
  top: auto !important;
  width: 94% !important;
  height: 87% !important;
  max-height: none !important;
  pointer-events: none !important;
}

#uvod .ase-onas-slideshow .w-slide {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  display: block !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  pointer-events: none;
  z-index: 1;
}

#uvod .ase-onas-slideshow .w-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Výška sloupce hned při načtení (před JS), pak jen podle aktivního snímku */
#uvod .ase-onas-slideshow:not([data-ase-slideshow]) .w-slide.is-active {
  position: relative !important;
}

#uvod .onas_col._3.hero .w-slide img {
  position: relative;
  z-index: 1;
  width: 100% !important;
  height: auto !important;
  display: block !important;
  vertical-align: top;
}

#uvod .content_wrapper.align-top._2.new-hero {
  margin-top: 8px !important;
}

#uvod .content_wrapper.align-top._2 .onas_col._2 {
  -webkit-box-pack: center !important;
  -webkit-justify-content: center !important;
  -ms-flex-pack: center !important;
  justify-content: center !important;
}

@media (max-width: 767px) {
  #uvod .content_wrapper._2.new-hero {
    -webkit-box-orient: vertical !important;
    -webkit-flex-direction: column !important;
    -ms-flex-direction: column !important;
    flex-direction: column !important;
  }

  #uvod .onas_col._3.hero,
  #uvod .onas_col._4.hero,
  #uvod .onas_col._1,
  #uvod .onas_col._2 {
    width: 100% !important;
    max-width: 100% !important;
    -webkit-box-flex: 0 !important;
    -webkit-flex: 0 0 auto !important;
    -ms-flex: 0 0 auto !important;
    flex: 0 0 auto !important;
  }

  #uvod .onas_col._4.hero {
    text-align: center !important;
  }

  #uvod .content_wrapper.align-top._2 .onas_col._2 {
    -webkit-box-pack: start !important;
    -webkit-justify-content: flex-start !important;
    -ms-flex-pack: start !important;
    justify-content: flex-start !important;
    text-align: center !important;
  }
}

/* Realizace + certifikáty: mřížka náhledů */
#realizace .services_page-content,
#certifikaty .services_page-content { width: 100% !important; }
#realizace .content_wrapper,
#certifikaty .content_wrapper {
  width: 100% !important;
  max-width: 1200px !important;
  margin-left: auto;
  margin-right: auto;
}
#realizace .shortcode,
#certifikaty .shortcode { width: 100% !important; }
#realizace .tg-grid-wrapper,
#certifikaty .tg-grid-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 20px 40px;
  box-sizing: border-box;
}
#realizace .tg-grid-holder,
#certifikaty .tg-grid-holder {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  position: relative !important;
}
#realizace .tg-item,
#certifikaty .tg-item {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  opacity: 1 !important;
  margin: 0 !important;
  cursor: zoom-in;
}

#realizace .tg-item-overlay,
#certifikaty .tg-item-overlay {
  pointer-events: none !important;
}

#realizace .tg-item-media-holder,
#certifikaty .tg-item-media-holder,
#realizace .tg-media-button,
#certifikaty .tg-media-button {
  pointer-events: auto !important;
  cursor: zoom-in !important;
}
#realizace .tg-item-image {
  display: block;
  width: 100% !important;
  height: 160px !important;
  object-fit: cover;
  cursor: zoom-in;
}

#certifikaty .tg-item-image {
  display: block;
  width: 100% !important;
  height: 220px !important;
  object-fit: contain;
  object-position: center top;
  cursor: zoom-in;
  background: #f4f4f4;
}

#certifikaty .tg-item-inner,
#certifikaty .tg-item-media-holder {
  background: #f4f4f4;
}
#realizace .tg-grid-sizer,
#realizace .tg-gutter-sizer,
#certifikaty .tg-grid-sizer,
#certifikaty .tg-gutter-sizer { display: none !important; }

.ase-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  padding: 56px 64px 48px;
  box-sizing: border-box;
}
.ase-lightbox.is-hidden { display: none; }
.ase-lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-width: 1200px;
}
.ase-lightbox-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.ase-lightbox-close {
  position: absolute; top: 16px; right: 20px;
  border: 0; background: transparent; color: #fff;
  font-size: 36px; cursor: pointer;
  z-index: 2;
}
.ase-lightbox-prev,
.ase-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 42px;
  line-height: 1;
  width: 48px;
  height: 64px;
  cursor: pointer;
  z-index: 2;
  border-radius: 4px;
}
.ase-lightbox-prev:hover,
.ase-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}
.ase-lightbox-prev { left: 12px; }
.ase-lightbox-next { right: 12px; }
.ase-lightbox-counter {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 14px;
  opacity: 0.85;
  z-index: 2;
}

#realizace .services_page-content {
  height: auto !important;
  overflow: visible !important;
  position: relative;
  z-index: 3;
}
/* Webflow .page-content-hp { margin-top:-80vh; z-index:3 } překrývalo galerii – nešlo klikat na náhledy */
.page-content-hp {
  clear: both;
  position: relative;
  z-index: 1 !important;
  margin-top: 0 !important;
  pointer-events: auto;
}
#realizace .tg-grid-wrapper {
  height: auto !important;
  overflow: visible !important;
  position: relative;
  z-index: 2;
}
#realizace .tg-grid-holder {
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  overflow: visible !important;
}
.page-content-hp .garance_grid {
  display: grid !important;
  width: 100% !important;
  max-width: 1200px !important;
  margin: 48px auto 0 !important;
  padding: 0 20px 40px !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-column-gap: 32px !important;
  grid-row-gap: 40px !important;
  clear: both !important;
  background: #fff !important;
  z-index: 2 !important;
  box-sizing: border-box;
}
.page-content-hp .garance_grid > .heading {
  grid-column: 1 / -1 !important;
  text-align: left;
}
.page-content-hp .garance_single-wrapper {
  position: relative !important;
  padding-left: 36px !important;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.page-content-hp .garance_single-wrapper > div:last-child {
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.page-content-hp .number-garance {
  font-size: 56px !important;
  left: 0 !important;
  top: -4px !important;
}

@media (max-width: 991px) {
  .page-content-hp .garance_grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-column-gap: 24px !important;
    grid-row-gap: 32px !important;
  }
}

@media (max-width: 767px) {
  .page-content-hp .garance_grid {
    grid-template-columns: 1fr !important;
    grid-row-gap: 28px !important;
    margin-top: 32px !important;
    padding: 0 16px 32px !important;
  }

  .page-content-hp .garance_grid > .heading {
    text-align: left !important;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .page-content-hp .garance_single-wrapper {
    padding-left: 44px !important;
  }

  .page-content-hp .number-garance {
    font-size: 44px !important;
    top: 0 !important;
  }
}

header.header-2.hero {
  position: fixed !important;
  top: 0; left: 0; right: 0; width: 100%;
  z-index: 10050;
  background: #fff !important;
  margin-bottom: 0 !important;
  box-shadow: 0 1px 0 rgba(0,0,0,.1);
}
header.header-2.hero .nav_link.is-white { color: #1a1a1a !important; }
header.header-2.hero .nav_link.is-white:hover { color: #0c5885 !important; }
#uvod > .hero_section:first-child { padding-top: 90px !important; }

.footer-link[href*="behavin"],
a.footer-link[href*="behavin.com"] {
  display: none !important;
}
.text-block-3 {
  font-size: inherit;
}

/* Modrý řádek „ASE-MC s.r.o.“ nad nadpisy sekcí (Realizace, …) */
.servies-hero .blue-text-like-heading,
.section.servies-hero .blue-text-like-heading {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Nad 623 px: klasické menu v liště, žádný hamburger (624–767 px Webflow jinak ukazuje burger) */
@media (min-width: 624px) {
  header.header-2.hero {
    justify-content: space-between !important;
    align-items: center !important;
  }

  header.header-2 .image-8 {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  header.header-2 .header_col._1 {
    width: 20% !important;
    flex: 0 0 auto !important;
    max-width: none !important;
    overflow: visible !important;
    justify-content: flex-start !important;
    padding-top: 36px !important;
    padding-left: 30px !important;
  }

  header.header-2 .header_col._2 {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-content: flex-end !important;
    padding-top: 36px !important;
    padding-right: 30px !important;
  }

  header.header-2 .header_col._2 .nav_wrapper.hero {
    display: flex !important;
    visibility: visible !important;
    justify-content: flex-end !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: auto !important;
  }

  header.header-2 .header_logo {
    max-width: 150px !important;
  }

  .nav_wrapper-phone {
    display: none !important;
    visibility: hidden !important;
  }
}

@media (max-width: 623px) {
  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  /* Mobilní režim: hamburger + vysouvací panel */
  header.header-2.hero {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 10050 !important;
    margin-bottom: 0 !important;
    height: auto;
    min-height: 64px;
    max-height: none;
    overflow: visible !important;
    box-sizing: border-box;
    padding: 8px 4px !important;
    gap: 4px;
  }

  header.header-2 .header_col._1 {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 48px);
    padding-top: 0 !important;
    padding-left: 8px !important;
    overflow: hidden;
  }

  header.header-2 .header_col._1 a {
    display: block;
    max-width: 100%;
  }

  header.header-2 .header_logo {
    max-width: min(120px, calc(100vw - 56px)) !important;
    width: auto !important;
    height: auto !important;
  }

  header.header-2 .header_col._2 {
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    padding-top: 0 !important;
    padding-right: 8px !important;
    justify-content: flex-end !important;
    overflow: visible !important;
  }

  header.header-2 .header_col._2 .nav_wrapper.hero {
    display: none !important;
  }

  header.header-2 .image-8 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 10060;
    cursor: pointer;
    pointer-events: auto !important;
    flex-shrink: 0;
    width: 33px !important;
    min-width: 33px !important;
    height: auto !important;
  }

  .hero-section_wrapper .hero_section,
  #uvod .hero_section {
    min-height: 0 !important;
    height: auto !important;
  }

  #uvod > .hero_section:first-child {
    padding-top: 72px !important;
  }

  /* Webflow modrý/červený full-screen blok překrýval odkazy */
  .nav_wrapper-phone .div-block-2 {
    display: none !important;
  }

  .nav_wrapper-phone {
    display: none !important;
    visibility: hidden;
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    z-index: 100000 !important;
    overflow: auto;
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    min-height: 100vh;
    margin: 0;
    padding: 100px 24px 40px;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: #fff !important;
    transform: none !important;
    -webkit-transform: none !important;
  }

  body.ase-mobile-menu-open .nav_wrapper-phone {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav_wrapper-phone .image-11 {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100001;
    pointer-events: auto !important;
    cursor: pointer;
  }

  .nav_wrapper-phone .nav_links-wrapper {
    width: 100%;
    max-width: 320px;
    text-align: center;
    position: relative;
    z-index: 100002 !important;
  }

  .nav_wrapper-phone .nav_link.mobile {
    display: block !important;
    margin-bottom: 28px;
    font-size: 26px;
    color: #1a1a1a !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .nav_wrapper-phone .image-11 {
    opacity: 1 !important;
    filter: none;
  }

  .ase-onepage-section {
    scroll-margin-top: 80px;
  }
}

@media (max-width: 623px) {
  header.header-2 .header_col._1._2 {
    width: auto !important;
  }

  body.ase-mobile-menu-open .nav_wrapper-phone,
  .nav_wrapper-phone.ase-force-open {
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    transform: none !important;
    display: flex !important;
  }
}

@media (max-width: 479px) {
  header.header-2.hero {
    display: flex !important;
    visibility: visible !important;
    min-height: 52px;
    padding: 6px 2px !important;
  }

  header.header-2 .image-8 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 28px !important;
    min-width: 28px !important;
  }

  header.header-2 .header_logo {
    max-width: min(96px, calc(100vw - 48px)) !important;
  }

  header.header-2 .header_col._2 {
    flex: 0 0 36px !important;
    width: 36px !important;
    min-width: 36px !important;
    padding-right: 4px !important;
  }
}

/* Extrémně úzké (≈200–320 px) — logo zmenšit, burger vždy vpravo na stejném řádku */
@media (max-width: 320px) {
  header.header-2.hero {
    min-height: 48px;
  }

  header.header-2 .header_logo {
    max-width: min(72px, calc(100vw - 44px)) !important;
  }

  header.header-2 .header_col._1 {
    padding-left: 4px !important;
    max-width: calc(100% - 40px) !important;
  }

  header.header-2 .header_col._2 {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
  }

  header.header-2 .image-8 {
    width: 26px !important;
    min-width: 26px !important;
  }

  .nav_wrapper-phone {
    padding: 80px 12px 24px !important;
  }

  .nav_wrapper-phone .nav_link.mobile {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
}
