@media (max-width: 1360px) {
	.site-header > .wrap { padding-inline: 20px; }
	.banner { height: 700px;}
  .banner img { width: 1360px; height: 700px;}
}

@media (max-width: 1200px) {
  .wrap { padding-inline: 20px; }
  #mainmenu .menu > li .menu-row > a { font-size: 16px; padding: 10px 7px 26px 7px; }
  .banner { height: 618px;}
  .banner img { width: 1200px; height: 618px;}
  .banner .avizo .avizo-inner { padding: 30px 20px; }
  .news-carousel .news-item { flex: 0 0 calc((100% - 60px) / 3); max-width: calc((100% - 60px) / 3); }
}

@media (max-width: 1024px) {
  .site-header .site-logo img, .site-header #logo img {height: calc(100px - 24px);}
  .banner { height: 540px;}
  .banner img { width: 1050px; height: 540px;}
  .cols-2-66 > :nth-child(1) { grid-column: span 7; }       /* 66/33 */
  .cols-2-66 > :nth-child(2) { grid-column: span 5; }       /* 66/33 */
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
  .news-items { grid-template-columns: repeat(3, 1fr); }
  .news-items.news-items--3 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 990px) {
  .header-flex {
    display: flex !important;
    align-items: center;
    flex-direction: row !important;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
    position: relative;
    min-height: 90px;
  }
  /* --- HIDE DESKTOP MENU, SHOW HAMBURGER & TOPICOS --- */
  .site-header .header-right {
    display: flex !important;
    flex-direction: column;
    margin-left: auto !important;
    align-items: flex-end !important;
    justify-content: center;
    text-align: right;
  }
  .site-header #topicos {
    margin: -8px 0 6px 0;
    margin-left: auto;
    align-self: flex-end;
    justify-content: flex-end;
  }
  .site-header #mainmenu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    margin-left: auto !important;
    flex: 0 0 auto;
    gap: 12px;
  }
  #mainmenu .menu {
    display: none !important;
  }
  #menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--color-bg, #fff);
    cursor: pointer;
    margin: 0 10px 0 0;
    z-index: 10;
    flex: 0 0 auto;
    order: 1;
  }
  #langs {
    order: 2;
    margin-top: -2px;
  }
  .mobile-header .mobile-header-right #langs {
    margin: -1px -15px 0 0;
    padding: 0px 0px 0 0;
  }
  .mobile-header .mobile-header-right #mobile-close {
    margin-top: -3px;
  }
  
  /* --- MOBILE OVERLAY --- */
  #mobile-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    background: var(--color-main);
    overflow-y: auto;
    box-sizing: border-box;
  }
  #mobile-overlay.open {
    display: block;
    animation: fadein 0.2s;
  }
  @keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  #mobile-overlay .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* klĂ­ÄŤovĂ© */
    height: 101px;
    padding: 0px 5px 0 20px;
    background: var(--color-main);
    border-bottom: 1px solid #eee;
    width: 100%;
    box-sizing: border-box;
    gap: 0;
  }
  #mobile-logo {
    flex: 0 0 auto;
    margin-right: 20px;
  }
  #mobile-logo img {
    height: 76px;
    width: auto;
    display: block;
  }
  .mobile-header-right {
    display: flex;
    align-items: center;
    gap: 12px; /* mezera mezi kĹ™Ă­Ĺľkem a ikonami */
  }
  .mobile-header .mobile-header-right {
    margin: 27px 30px 0 0;
  }
  #mobile-close {
    display: flex;
    font-size: 36px;
    color: var(--color-bg);
    background: none;
    border: none;
    cursor: pointer;
    margin: 4px 0px 0 0;
    align-items: center;
  }
  #mobile-overlay .topicos li {
    display: none;
  }
  /* --- MOBILE MENU --- */
  #mobile-overlay .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
  }
  #mobile-overlay .menu > li {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: static;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
  }
  #mobile-overlay .menu > li .menu-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
  }
  #mobile-overlay .menu > li .menu-row > a {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px 15px 20px 30px;
    font-size: 1.1em;
    color: var(--color-bg);
    text-transform: none;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
  }
  #mobile-overlay .menu > li .menu-row > a:hover {
    color: var(--color-accent);
  }
  #mobile-overlay .menu > li .menu-row > .submenu-toggle {
    flex: 0 0 auto;
    padding: 0 24px 0 0px;
    font-size: 30px;
    color: var(--color-bg);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
  }
  .submenu-toggle:hover i {
    color: var(--color-main);
    background: var(--color-accent);
  }
    .submenu-toggle i {
    transition: transform 0.2s;
    transform-origin: center center;
  }

  #mobile-overlay .menu > li.open > .menu-row > .submenu-toggle i {
    transform: rotate(180deg);
    color: var(--color-bg);
  }
  #mobile-overlay .menu > li > ul.submenu {
    display: none;
    position: static !important;
    width: 100% !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--color-main);
    box-sizing: border-box;
    border-radius: 0;
    box-shadow: none;
    z-index: 1;
  }
  #mobile-overlay .menu > li.open > ul.submenu {
    display: block !important;
  }
  #mobile-overlay .menu > li > ul.submenu > li {
    width: 100% !important;
    box-sizing: border-box;
  }
  #mobile-overlay .menu > li > ul.submenu > li > a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 14px 24px 14px 40px;
    color: var(--color-bg);
    text-decoration: none;
    border-bottom: 1px solid var(--color-bg);
    background: none;
    font-size: 1em;
  }
  #mobile-overlay .menu > li > ul.submenu > li > a:hover {
    color: var(--color-accent) !important;
    /*background: var(--color-main-less);*/
  }
  #mobile-overlay .menu > li > ul.submenu > li:last-child > a {
    border-bottom: none;
  }
  /* Zvýraznění aktuální sekce a stránky v mobilním menu */
  #mobile-overlay .menu > li.current-section > .menu-row > a {
    color: var(--color-accent);
  }
  .site-header #mobile-overlay .submenu-list a.active {
    color: var(--color-accent) !important;
    font-weight: 600;
  }
  .submenu-inner .col-left { display: none; }
  .submenu-inner .col-right { display: none; }
  .site-header #mobile-overlay .submenu-inner,
  .site-header #mobile-overlay .submenu-inner .col-center,
  .site-header #mobile-overlay .submenu-list { text-align: left; padding: 0px 0px 10px 0px;}
  .site-header #mobile-overlay .submenu-list a {
    display: block;
    color: var(--color-bg) !important;
    padding: 15px 24px 15px 40px;
    text-decoration: none;
    border-top: 1px solid var(--color-bg);
  }
  .site-header #mobile-overlay .submenu-list a::before {
    color: var(--color-bg) !important;
  }
  .site-header #mobile-overlay .submenu-list a:hover,
  .site-header #mobile-overlay .submenu-list a:focus {
    color: var(--color-accent) !important;
  }
}

@media (max-width: 900px) {
  .banner { height: 480px;}
  .banner img { width: 933px; height: 480px;}
  .site-header.is-sticky #mainmenu { margin-top: -60px; }
  .cols-3-33 > :nth-child(1),
  .cols-3-33 > :nth-child(2),
  .cols-3-33 > :nth-child(3) { grid-column: span 12; }
  .teaser-card {
    width: 100%;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(150px, 38%) 1fr;
    align-items: stretch;
    overflow: hidden;
    margin-bottom: 20px;
  }
  .teaser-media {
    width: 100%;
    height: 100%;
    min-height: 170px;
  }
  .teaser-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin-top: 0 !important;
  }
  .teaser-footer {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none !important;
    transition: none;
    will-change: auto;
    pointer-events: auto;
    height: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .teaser-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .teaser-meta { flex: 1 1 auto; min-width: 0; }
  .teaser-cta { flex: 0 0 50px; width: 50px; text-align: right; margin-top: 0; }
  .teaser-title { font-size: 24px; line-height: 1.2; }
  .teaser-text { margin-bottom: 12px; }
  .teaser-card:hover .teaser-footer,
  .teaser-card.open .teaser-footer,
  .teaser-card:focus-within .teaser-footer { transform: none; }
  .teaser-card:hover .teaser-media img,
  .teaser-card.open .teaser-media img,
  .teaser-card:focus-within .teaser-media img { width: 100%; height: 100%; margin-top: 0; }
}

@media (max-width: 800px) {
  .banner { height: 420px;}
  .banner img { width: 816px; height: 420px;}
  .items { gap: 20px; margin: 20px 0;}
  .items .item { padding: 0px 0px; }
  footer .foot div.finfos, footer .foot div.fmenu, footer .foot div.fcont { padding: 0px 20px 0px 0px; }
  footer .foot .finfos p { width: 100%; }
  .row.cols-2-fixed-right { grid-template-columns: 1fr !important; }
  .row.cols-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .news-gallery h3 { font-size: 20px; }
  .category-item { font-size: 14px; }
  .news-items { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .news-items.news-items--3 { grid-template-columns: repeat(2, 1fr); }
  .news-carousel .news-item { flex: 0 0 calc((100% - 30px) / 2); max-width: calc((100% - 30px) / 2); }
}

@media (max-width: 700px) {
  .overlap-130 { margin-top: -60px; }
  .overlap-100 { margin-top: -40px; }
  .flinks { display: flex; flex-direction: column; min-height: 0; }
  .flinks .flink { width: 100%; }
  footer .foot { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  footer .foot .finfos { grid-column: 1 / -1; padding-bottom: 20px !important; }
  footer .foot .finfos p { width: 100%; }
  .items { grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 20px 0;}
  div.copy .row { row-gap: 0px; }
  div.copy .row .txleft, div.copy .row .txright { text-align: center; }
  .cols-2-50 > .col { grid-column: span 12; }                /* 50/50 */
  .cols-2-66 > :nth-child(1) { grid-column: span 12; }       /* 66/33 */
  .cols-2-66 > :nth-child(2) { grid-column: span 12; }       
  .cols-2-33 > :nth-child(1) { grid-column: span 12; }       /* 33/66 */
  .cols-2-33 > :nth-child(2) { grid-column: span 12; }       
  .cols-2-60 > :nth-child(1) { grid-column: span 12; }       /* 60/40 (7/5) */
  .cols-2-60 > :nth-child(2) { grid-column: span 12; }
  .cols-2-40 > :nth-child(1) { grid-column: span 12; }       /* 40/60 */
  .cols-2-40 > :nth-child(2) { grid-column: span 12; }
  .cnt-grid { grid-template-columns: repeat(2, 1fr); }
  .read-more-btn, .read-less-btn { display: inline-block; padding: 0 0 0 40px; }
  #subpg { height: 200px; }
  #subpg h2 { font-size: 40px;padding: 70px 0 0 0; }
  .site-header .header-right #topicos .icotxt { display: none !important; }
  .job-items { margin-left: 0px; } 
  .carousel { flex-direction: column; }
  .carousel__static { width: 100%; flex: 0 0 auto; padding-right: 0; }
  .carousel__clip { width: 100%; margin-top: 30px; }
  .carousel__mask { display: none; }
  form.form .field:not(.checkbox):not(.radio) { flex-direction: column; gap: 5px; }
  form.form .field:not(.checkbox):not(.radio) label { flex: none; width: 100%; margin-top: 0; }
  form .sided { padding-left: 0px; }
  .row.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .banner { height: 340px;}
  .banner img { width: 661px; height: 340px;}
  .banner .avizo { display: none !important; }
  .pb-15   { padding-bottom: 10px; }
  .pb-30  { padding-bottom: 15px; }
  .pb-60  { padding-bottom: 30px; }
  .pt-10  { padding-top: 5px; }
  .pt-15  { padding-top: 10px; }
  .pt-30  { padding-top: 15px; }
  .pt-60  { padding-top: 30px; }
  .wrap { padding-inline: 10px; }
  footer .foot { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  footer .foot .finfos { grid-column: 1 / -1; padding-bottom: 20px !important; }
}

@media (max-width: 500px) {
  .banner { height: 300px;}
  .banner img { width: 583px; height: 300px;}
  .cnt-grid { grid-template-columns: repeat(1, 1fr); }
  .row.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teaser-card { display: flex; flex-direction: column; }
  .teaser-media { min-height: 220px; height: 220px; }
  .teaser-footer { padding: 14px; }
  .teaser-title { font-size: 22px; }
  /* Form: label nad inputem na úzkých displejích */
  /*form.form .field { flex-direction: column; align-items: stretch; margin-bottom: 10px; }
  form.form .field label { flex: none; width: 100%; margin: 0 0 2px 0 !important; text-align: left; }
  form.form .field input,
  form.form .field select,
  form.form .field textarea { width: 100%; }
  form.form .field:not(.checkbox):not(.radio) label { flex: 0 0 0px; }
  form .sided { padding-left: 0px; }*/
  /* Ikony: na mobilu ikona vlevo, text vpravo */
  .icos.row.cols-4 { grid-template-columns: 1fr; }
  .icos .col { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: flex-start; }
  .icos .col img, .icos .col span { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .icos .col h4 { grid-column: 2; margin: 0 0 4px 0; padding: 0 0 5px 0; }
  .icos .col p { grid-column: 2; margin: 0; }
  .job-item-date { display: none; }
}

@media (max-width: 480px) {
  .row { display: block; }
  .row > .col { width: 100%; max-width: 100%;}
  #applyform .form, #invisit .form, #opendoors .form { margin-top: 30px; }
  footer .foot { display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  footer .foot .finfos,
  footer .foot .fmenu,
  footer .foot .fcont { grid-column: 1 / -1; width: 100%; }
  footer .foot .fmenu { margin-bottom: 20px; } 
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .news-categories { padding: 15px; }
  .news-items { grid-template-columns: 1fr; }
  .news-items.news-items--3 { grid-template-columns: 1fr; }
  .news-carousel .news-item { flex: 0 0 100%; max-width: 100%; }
  .icos .col { margin: 0 0 20px 0; }
  .icos .col:last-child { margin: 0 0 0 0; }
  #progg .col:last-child, #densko .col:last-child, #progr .col:last-child, 
  #carer .col:last-child, #konts .col:last-child { margin-top: 20px; }
}

@media (max-width: 400px) {
  #subpg { height: 150px; }
  #subpg h2 { font-size: 36px;padding: 50px 0 0 0; }
  .site-header #topicos { display: none; }
  .site-header.is-sticky #menu-toggle, .site-header.is-sticky #langs { padding-top: 25px; } 
  .site-header #mainmenu { gap: 6px; }
  .mobile-header .mobile-header-right #langs { margin: -30px -15px 0 0; padding: 0px 0px 0 0; }
  .mobile-header .mobile-header-right #mobile-close { margin-top: -25px; }
  #logo a img { width: 140px; height: auto; }
  .row.cols-5 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
  .btnwrap { flex-direction: column; align-items: stretch; gap: 10px; }
  .btnwrap .btn { font-size: 16px; padding: 10px 15px 10px 15px; width: 100%; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .btnwrap .btn i { margin-left: auto; }
}

@media (max-width: 360px) {
  #logo a img { width: 150px; height: 50px; }
  .carousel__item { width: calc(100% - 15px); flex: 0 0 100%; margin-right: 15px; margin-top: 30px; }
}