/* =========================
   FONTS
   ========================= */
@font-face {
  font-family: 'vag-black';
  src: url('../fonts/vag-rounded-ce-black.woff2') format('woff2'),
    url('../fonts/vag-rounded-ce-black.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'vag-bold';
  src: url('../fonts/vag-rounded-ce-bold.woff2') format('woff2'),
    url('../fonts/vag-rounded-ce-bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'vag-light';
  src: url('../fonts/vag-rounded-ce-light.woff2') format('woff2'),
    url('../fonts/vag-rounded-ce-light.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'vag-thin';
  src: url('../fonts/vag-rounded-ce-thin.woff2') format('woff2'),
    url('../fonts/vag-rounded-ce-thin.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* =========================
   BASE TYPOGRAPHY
   ========================= */
body {
  font-size: 16px;
  font-size: 1rem;
}

h1,
h2,
h3 {
  font-family: 'vag-black';
}

a {
  transition: color 400ms ease-in-out;
  color: #381a0c;
}

a:hover {
  color: #e5ae24;
}

/* =========================
   MAIN CONTENT
   ========================= */
#mainc {
  padding-top: 0;
  font-size: 1em;
  width: auto;
}

#mainc h1 {
  line-height: 1.2em;
}

#mainc h2 {
  font-size: 1.5rem;
}

#mainc h3 {
  font-size: 1.25rem;
  width: 100%;
}

#mainc dl.courses {
  margin-left: 1em;
}

#mainc dl.courses dt {
  width: 3.5em;
}

#mainc dl.courses+h2 {
  font-size: 1.25rem;
}

.guaranteed-terms {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
}

.guaranteed-terms__icon {
  display: inline-flex;
  position: relative;
  top: -4px;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fab90f;
  vertical-align: middle;
}

.guaranteed-terms__icon svg {
  display: block;
}

.guaranteed-terms__table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  border: 1px solid #ebecec;
  background: #fff;
}

.guaranteed-terms__table th,
.guaranteed-terms__table td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid #ebecec;
  vertical-align: middle;
}

.guaranteed-terms__table th {
  background: #fab90f;
  color: #fff;
  font-family: 'vag-bold';
  font-weight: normal;
  text-align: center;
}

.guaranteed-terms__table tbody tr:nth-child(even) {
  background: #fafafa;
}

.guaranteed-terms__table tbody tr:hover {
  background: #fff7df;
}

.guaranteed-terms__location,
.guaranteed-terms__date,
.guaranteed-terms__days,
.guaranteed-terms__price {
  text-align: center;
  white-space: nowrap;
}

.guaranteed-terms__course {
  text-align: left;
}

.guaranteed-terms__course a {
  font-family: 'vag-bold';
}

.webinars__table th:nth-child(1),
.webinars__table td:nth-child(1) {
  width: 10%;
}

.webinars__table th:nth-child(2),
.webinars__table td:nth-child(2) {
  width: 60%;
}

.webinars__table th:nth-child(3),
.webinars__table td:nth-child(3),
.webinars__table th:nth-child(4),
.webinars__table td:nth-child(4),
.webinars__table th:nth-child(5),
.webinars__table td:nth-child(5) {
  width: 10%;
}

.webinars__time {
  text-align: center;
  white-space: nowrap;
}

#mainc .info-icon {
  float: left;
  margin: 2px 10px 8px 0;
}

@media (max-width: 640px) {
  .hidden-mobile {
    display: none !important;
  }
}

/* =========================
   GLOBAL RESPONSIVE WRAPPERS
   ========================= */
@media (max-width: 960px) {

  #header,
  #container,
  #footer,
  .footer {
    width: 92%;
  }
}

@media (max-width: 640px) {

  #header,
  #container,
  #footer,
  .footer {
    width: 94%;
  }
}

@media (max-width: 480px) {

  #header,
  #container,
  #footer,
  .footer {
    width: 96%;
  }
}

@media (max-width: 960px) {

  #header #main,
  #container #main,
  #footer #main,
  .footer #main {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 960px) {
  #flash {
    width: 100%;
    height: auto;
  }

  #flash img {
    max-width: 100%;
    height: auto !important;
    position: relative;
  }

  #flash img.ictpro_banner_2 {
    display: none;
  }
}

@media (max-width: 960px) {
  #main {
    width: 92%;
    margin-left: 4%;
  }

  #main #mainc {
    padding-left: 0;
    width: auto;
  }
}

@media (max-width: 640px) {
  #main {
    width: 94%;
    margin-left: 3%;
  }
}

@media (max-width: 480px) {
  #main {
    width: 96%;
    margin-left: 2%;
  }
}

@media (min-width: 640px) {
  .pull-left {
    float: left;
    margin: 0px 1em 1px 0px;
    max-width: 33%;
  }
}

/* =========================
   BLOCKQUOTE (COURSE)
   ========================= */
.course blockquote {
  margin-left: 4rem;
  position: relative;
  font-size: 1.5rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.course blockquote::before {
  content: "„";
  position: absolute;
  left: -4rem;
  bottom: -1rem;
  color: #c19c30;
  font-weight: bold;
  font-size: 6rem;
}

/* =========================
   HEADER (fixed bar)
   ========================= */
#header-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 115px;
  background: #fff;
  border-bottom: 1px solid #eceded;
}

#header {
  position: relative;
  max-width: 1260px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-top: 12px;
}

@media (max-width: 960px) {
  #header {
    text-align: center;
  }
}

#header .right {
  position: absolute;
  right: 0;
  top: 6px;
}

@media (max-width: 960px) {
  #header .right {
    left: 0;
    width: 100%;
  }
}

#header .big {
  font-size: 0.85rem;
}

@media (max-width: 960px) {
  #header h3 {
    width: 100%;
    margin-bottom: 10px;
  }

  #header h3 span,
  #header h3 b {
    display: none;
  }

  #header h3 .img {
    width: 200px;
    margin: 0 0 0 -100px;
    left: 50%;
    display: block;
  }
}

@media (max-width: 960px) {
  #langchooser {
    text-align: left;
    font-size: 12px;
    float: left;
  }

  #login_link {
    text-align: right;
    font-size: 12px;
    float: right;
    padding-right: 0;
    background: none;
    line-height: 1;
  }
}

/* =========================
   SEARCH
   ========================= */
#search {
  position: static;
  width: 330px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 10px 0 0;
}

@media (max-width: 960px) {
  #search {
    position: relative;
    width: 50%;
    float: left;
    bottom: auto;
    margin: 5px 0 20px;
  }
}

#search input[type="image"],
#search input[type="submit"] {
  height: 35px;
  width: 35px;
  background: #ecac00 url('../images/ic_search.svg') no-repeat center center !important;
  background-size: 16px 16px;
  /* lupičku trochu zklidní */
}

#search input[type="text"] {
  height: 35px;
  box-sizing: border-box;
  width: 295px;
  font-size: .825rem;
}

@media (max-width: 960px) {
  #search input[type="text"] {
    width: 100%;
  }
}

#search .search-suggest {
  display: none;
  position: absolute;
  left: auto;
  right: 0;
  top: 38px;
  width: 600px;
  background: #fff;
  border: 1px solid #c5c6c7;
  box-shadow: 0 10px 22px rgba(56, 26, 12, 0.16);
  z-index: 1000;
  white-space: normal;
  text-align: left;
}

#search .search-suggest__item {
  display: table;
  table-layout: fixed;
  width: 100%;
  box-sizing: border-box;
  padding: 7px 10px;
  border-top: 1px solid #eceded;
  color: #3d3c3f;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
}

#search .search-suggest__item:first-child {
  border-top: 0;
}

#search .search-suggest__item:hover,
#search .search-suggest__item--active {
  background: #f7f1df;
}

#search .search-suggest__code {
  display: table-cell;
  width: 66px;
  padding-right: 8px;
  color: #846e39;
  font-weight: bold;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
}

#search .search-suggest__title {
  display: table-cell;
  font-weight: bold;
  vertical-align: top;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#search .search-suggest__more {
  display: block;
  padding: 7px 10px;
  border-top: 1px solid #eceded;
  color: #846e39;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
}

#search .search-suggest__more:hover {
  background: #f7f1df;
  text-decoration: underline;
}

@media (max-width: 960px) {
  #search .search-suggest {
    width: 100%;
  }
}

.search-result-count {
  margin: 0 0 14px;
  color: #6f655f;
}

.search-result-section {
  margin-top: 22px;
  padding-top: 10px;
  border-top: 2px solid #ecac00;
}

#main .search-result-section h3,
.search-result-section h3 {
  margin: 0 0 8px;
  color: #846e39;
  font-size: 1.15rem;
  font-weight: normal;
  text-transform: uppercase;
}

.search-result {
  padding: 12px 0;
  border-top: 1px solid #eceded;
}

.search-result:first-of-type {
  border-top: 0;
}

.search-result-title {
  font-weight: bold;
  line-height: 1.35;
}

.search-result-title a {
  color: #381a0c;
  text-decoration: none;
}

.search-result-title a:hover {
  text-decoration: underline;
}

.search-result-description {
  margin-top: 5px;
  color: #3d3c3f;
  line-height: 1.45;
}

.search-empty {
  padding: 14px 16px;
  background: #eceded;
  border-left: 4px solid #ecac00;
  color: #3d3c3f;
}

/* =========================
   MAIN MENU (top)
   ========================= */
#mainmenu {
  display: table;
  width: 100%;
  margin-bottom: 4px;
}

@media (max-width: 960px) {
  #mainmenu {
    width: 100%;
    position: fixed;
    display: block;
    left: 0;
    top: 0;
    margin: 0 0 0 -220px;
    width: 220px;
    height: 100%;
    background-color: #fff;
    z-index: 900;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
    padding-top: 22px;
    transition: all 0.4s ease-in-out;
    box-sizing: border-box;
  }
}

#mainmenu li {
  display: table-cell;
  width: 1%;
  float: none;
  padding-left: 4px;
}

@media (max-width: 960px) {
  #mainmenu li {
    display: block;
    width: 100%;
    border-bottom: 1px solid #eceded;
    text-align: left;
  }
}

#mainmenu li:first-child {
  padding-left: 0;
}

#mainmenu li a {
  width: auto;
  display: block;
  font-size: 1rem;
  height: 32px;
  line-height: 32px;
  position: relative;
  background: url('../images/border-gray-light-6.png') no-repeat right bottom;
}

@media (max-width: 960px) {
  #mainmenu li a {
    background: none;
    height: 36px;
    line-height: 36px;
  }
}

#mainmenu li a:hover,
#mainmenu li a:focus {
  background-image: url('../images/border-gray-light-6-hover.png');
  background-position: right bottom;
}

@media (max-width: 960px) {

  #mainmenu li a:hover,
  #mainmenu li a:focus {
    background-image: none;
  }
}

#mainmenu li a:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #eceded;
  z-index: -1;
}

@media (max-width: 960px) {
  #mainmenu li a:before {
    display: none;
  }
}

@media (max-width: 960px) {
  #mainmenu li.selected a {
    background-image: none;
    background: #ecac00;
    color: #ffffff;
  }

  #mainmenu li.selected a:hover,
  #mainmenu li.selected a:focus {
    background-image: none;
    background: #ecac00;
    color: #ffffff;
  }
}

@media (max-width: 960px) {
  #headimg {
    width: 100%;
  }
}

#headimg .note p {
  font-size: 0.75rem;
  line-height: 1rem;
}

/* Mobile burger */
#showmenu {
  display: none;
}

@media (max-width: 960px) {
  #showmenu:checked+#showmenu_label {
    content: "";
    position: fixed;
    display: block;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
  }

  #showmenu:checked+#showmenu_label span {
    z-index: 1;
    right: 10px;
    top: 25px;
    left: auto;
    background-color: #fff;
    transform: rotate(45deg);
  }

  #showmenu:checked+#showmenu_label span:nth-child(1) {
    transform: rotate(-45deg);
  }

  #showmenu:checked+#showmenu_label+#mainmenu {
    margin: 0;
    box-shadow: 2px 0 3px rgba(0, 0, 0, 0.6);
  }
}

#showmenu_label {
  display: none;
}

@media (max-width: 960px) {
  #showmenu_label {
    display: block;
    width: 46px;
    height: 38px;
    position: relative;
    float: right;
    transition: margin 0.5s ease-in-out;
    cursor: pointer;
    background-color: rgba(236, 172, 0, 0.5);
    box-sizing: border-box;
  }

  #showmenu_label span {
    display: block;
    position: absolute;
    height: 4px;
    width: 36px;
    background: #846e39;
    opacity: 1;
    left: 5px;
    transform: rotate(0deg);
    transition: 0.25s ease-in-out;
  }

  #showmenu_label span:nth-child(1) {
    top: 6px;
  }

  #showmenu_label span:nth-child(2) {
    top: 17px;
  }

  #showmenu_label span:nth-child(3) {
    top: 28px;
  }
}

/* =========================
   FOOTER
   ========================= */
.footer {
  border-top: 1px solid #eceded;
  padding: 1rem 0 1.5rem;
  overflow: hidden;
}

@media (max-width: 960px) {
  .footer {
    text-align: center;
  }
}

.copy {
  padding-left: 0;
  font-size: 12px;
  white-space: nowrap;
}

@media (max-width: 960px) {
  .copy {
    white-space: normal;
  }
}

.social-icons {
  margin-right: 0;
}

@media (max-width: 960px) {
  .social-icons {
    float: none;
    margin: 0 auto 10px;
    text-align: center;
  }

  .social-icons a {
    display: inline-block;
    float: none;
  }
}

/* =========================
   LEFT MENU (legacy wrappers)
   ========================= */
@media (max-width: 960px) {
  #menu {
    width: auto;
    display: block;
    float: none;
  }

  #menu .menu1 {
    margin: 0 0 15px;
  }
}

#menu .menu1 ul li {
  margin-bottom: 1px;
}

/* Desktop left menu base padding */
#menu .menu1 ul li a {
  line-height: 1.2em;
  padding: 6px 6px 6px .75rem;
}

/* Hide specific legacy sections on mobile */
@media (max-width: 960px) {

  #menu .menu1 #menuKurzy,
  #menu .menu1 #menuCertifikace,
  #menu .menu1 #menuKontakty {
    display: none;
  }

  #menu .sectionrn,
  #menu .menu1 {
    margin: 0 0 15px;
  }
}

/* Collapsible blocks (mobile) */
#menu .sectionrn>input[type="checkbox"],
#menu .menu1>input[type="checkbox"] {
  display: none;
}

@media (max-width: 960px) {

  #menu .sectionrn>input[type="checkbox"]:checked~.body,
  #menu .menu1>input[type="checkbox"]:checked~.body {
    display: block;
  }

  #menu .sectionrn>input[type="checkbox"]:checked~#menuKurzy,
  #menu .menu1>input[type="checkbox"]:checked~#menuKurzy,
  #menu .sectionrn>input[type="checkbox"]:checked~#menuCertifikace,
  #menu .menu1>input[type="checkbox"]:checked~#menuCertifikace,
  #menu .sectionrn>input[type="checkbox"]:checked~#menuKontakty,
  #menu .menu1>input[type="checkbox"]:checked~#menuKontakty {
    display: block;
  }
}

#menu .sectionrn>input[type="checkbox"]:checked+.sectionrn-label:after,
#menu .menu1>input[type="checkbox"]:checked+.sectionrn-label:after {
  transform: rotate(-90deg);
  top: 0;
}

#menu .sectionrn>input[type="checkbox"]+.sectionrn-label,
#menu .menu1>input[type="checkbox"]+.sectionrn-label {
  display: none;
}

@media (max-width: 960px) {

  #menu .sectionrn>input[type="checkbox"]+.sectionrn-label,
  #menu .menu1>input[type="checkbox"]+.sectionrn-label {
    display: block;
    background-color: #ECAC00;
    color: white;
    text-transform: uppercase;
    font-size: 1.2em;
    padding: .75rem .75rem .5rem;
    line-height: 1em;
    position: relative;
    cursor: pointer;
  }

  #menu .sectionrn>input[type="checkbox"]+.sectionrn-label:after,
  #menu .menu1>input[type="checkbox"]+.sectionrn-label:after {
    content: "»";
    position: absolute;
    right: 6px;
    top: 8px;
    line-height: 26px;
    width: 24px;
    font-size: 26px;
    color: #fff;
    transform: rotate(90deg);
    transform-origin: center center;
  }
}

#menu .sectionrn h2,
#menu .menu1 h2 {
  padding: .75rem .75rem .5rem;
  line-height: 1em;
}

@media (max-width: 960px) {

  #menu .sectionrn h2,
  #menu .menu1 h2 {
    display: none;
  }
}

/* Box styling of left blocks */
#menu .sectionrn .body,
#menu .menu1 .body,
#menu .sectionrn .menu-rychla-navigace-container,
#menu .menu1 .menu-rychla-navigace-container {
  padding: 0;
  position: relative;
  background: #fefefe;
}

@media (max-width: 960px) {

  #menu .sectionrn .body,
  #menu .menu1 .body,
  #menu .sectionrn .menu-rychla-navigace-container,
  #menu .menu1 .menu-rychla-navigace-container {
    display: none;
  }
}

#menu .sectionrn .body:before,
#menu .menu1 .body:before,
#menu .sectionrn .menu-rychla-navigace-container:before,
#menu .menu1 .menu-rychla-navigace-container:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #eceded;
  background: #fefefe;
  z-index: -1;
  transition: all 500ms ease-in-out;
}

#menu .sectionrn .body li,
#menu .menu1 .body li,
#menu .sectionrn .menu-rychla-navigace-container li,
#menu .menu1 .menu-rychla-navigace-container li {
  /*   padding-bottom: .5rem;   */
}

#menu .sectionrn .body td a,
#menu .menu1 .body td a,
#menu .sectionrn .menu-rychla-navigace-container td a,
#menu .menu1 .menu-rychla-navigace-container td a {
  display: block;
  padding-bottom: .5rem;
}

#menu .sectionrn .menu-rychla-navigace-container,
#menu .menu1 .menu-rychla-navigace-container {
  margin-bottom: 15px;
}

@media (max-width: 960px) {
  .fb-like-box.fb_iframe_widget {
    display: none;
  }
}

#navi .pbc {
  margin-right: 2px;
}


/* ===== Levé menu – horní statická část ===== */

#menuKurzy {
  margin: 0;
  padding: 0;
  list-style: none;
}

#menuKurzy>li {
  margin: 0;
  padding: 0;
}

/* jemná linka mezi položkami (stejný princip jako dl.courses) */
#menuKurzy>li+li,
#menuFirma>li+li,
#menuKontakty>li+li,
#menuCertifikace>li+li {
  border-top: 1px solid rgba(56, 26, 12, 0.08);
}

/* klikací řádek */
#menuKurzy>li>a {
  display: block;
  padding: 8px 10px;
  color: #381a0c;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;

}

/* hover – jen lehký nádech */
#menuKurzy>li>a:hover {
  background: rgba(236, 172, 0, 0.06);
}

/* aktivní položka */
#menuKurzy>li.selected>a {
  font-family: 'vag-bold';
  background: rgba(236, 172, 0, 0.10);
}


/* =========================
   SECTIONS (homepage blocks)
   ========================= */
.section h1,
.section h2 {
  color: #ecac00;
  background: none;
  text-transform: uppercase;
  font-size: 1.7rem;
  line-height: 1.5rem;
  padding: 0;
  margin: 0 0 .5rem;
}

.section .body {
  background: none;
  padding: 0;
}

.section p {
  margin: 0 0 1rem;
  text-align: inherit;
  line-height: 1.125rem;
}

.section .text-columns {
  margin: 0;
}

.section .text-column {
  width: 50%;
  padding: 0 1rem 0 0;
  margin: 0;
  box-sizing: border-box;
}

.section .text-column.last {
  padding: 0 0 0 1rem;
}

#flash+.clear+.section .text-columns {
  display: table;
  border-collapse: separate;
  border-spacing: 1rem;
  margin: -1rem -1rem 0;
}

@media (max-width: 640px) {
  #flash+.clear+.section .text-columns {
    display: block;
    margin: 0;
  }
}

#flash+.clear+.section .text-column {
  display: table-cell;
  float: none;
  position: relative;
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
  vertical-align: top;
  background: url('../images/border-gray-light.png') no-repeat right bottom;
}

@media (max-width: 640px) {
  #flash+.clear+.section .text-column {
    display: block;
    width: 100%;
    margin: 0 0 15px;
  }
}

#flash+.clear+.section .text-column:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #eceded;
  z-index: -1;
}

#flash+.clear+.section .text-column.last h2 {
  margin-top: 1.5rem;
}

#flash+.clear+.section .text-column h2 {
  margin: 0 0 1rem;
  padding: 0 0 .5rem;
  font-size: 1.25rem;
  border-bottom: 1px solid #ecac00;
}

@media (max-width: 960px) {
  .sections-columns {
    clear: both;
    float: none;
    width: 100%;
  }

  .sections-columns .sections-column {
    clear: both;
    float: none;
    width: auto;
    margin: 0 0 25px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .sections-columns .sections-column:first-child {
    border: 0;
    width: auto;
  }
}

.sections-columns .sections-column:first-child {
  border-right: 1px solid #eceded;
}

.section-new-courses table {
  font-size: 14px;
}

.section-new-courses dt {
  display: none;
}

.section-new-courses dd {
  font-weight: bold;
}

.section-slider:nth-child(2) {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eceded;
}

.section-slider h2 {
  font-size: 1.125rem;
}

@media (max-width: 960px) {
  .section-slider .slider.horizontal {
    width: 100%;
  }

  .section-slider .slider ul {
    min-height: 60px;
  }

  .section-slider .slider ul li {
    width: 96vw;
    font-size: 12px;
    min-height: 60px;
    padding-left: 0;
  }

  .section-slider .slider ul li table tbody tr td:nth-child(2) {
    text-align: right;
  }

  .section-slider .slider ul.actual-courses li {
    line-height: 1.6em;
  }

  .section-slider .slider ul.actual-courses li span {
    width: 50%;
    text-align: right;
  }

  .section-slider .slider ul.actual-courses li a {
    width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .section-slider .slider-controls {
    opacity: .5;
  }
}

.section-slider .slider ul li table {
  margin-left: 0;
}

.section-slider .slider ul.actual-courses li span {
  width: 132px;
}

/* Modern slider layout (flex) */
.section-slider .slider.horizontal {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.section-slider .slider.horizontal>ul {
  display: flex;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
  transition: transform 400ms ease;
}

.section-slider .slider.horizontal>ul>li {
  flex: 0 0 100%;
  box-sizing: border-box;
}

.section-slider .slider.horizontal>ul>li table {
  margin: 0;
  width: 100%;
}

.section-slider .slider-controls a {
  cursor: pointer;
  user-select: none;
}

/* =========================
   COURSES COLUMNS / CATEGORY BLOCKS
   ========================= */
@media (max-width: 960px) {
  .courses-columns {
    margin: 0;
  }
}

.course-category .icon {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 32px;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  margin: 0;
  opacity: .6;
  transition: opacity 500ms ease-in-out;
}

.courses-column {
  position: relative;
  padding: 1rem;
  margin: 0 7px 15px 8px;
  vertical-align: top;
  /* background: url('../images/border-gray-light.png') no-repeat right bottom; */

  box-sizing: border-box;
  width: 300px;
  min-height: 210px;

  --cut: 1.5em;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

@media (max-width: 960px) {
  .courses-column {
    width: calc(50% - 15px);
  }
}

@media (max-width: 480px) {
  .courses-column {
    width: 100%;
    margin: 0 0 15px 0;
    min-height: auto;
  }
}

.courses-column:before {
  position: absolute;
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #eceded;
  background: #fefefe;
  z-index: -1;
  transition: all 500ms ease-in-out;
}

.courses-column:hover:before {
  background: #fff4db;
}

.courses-column:hover .course-category .icon {
  opacity: 1;
}

.courses-column:nth-child(6) {
  padding-bottom: .5rem;
}

.courses-column:nth-child(6) .courses ul:first-child {
  width: 50%;
}

.courses-column:nth-child(6) .courses ul:last-child {
  width: 45%;
}

.courses-column:nth-child(12) {
  padding-bottom: .5rem;
}

.courses-column.first {
  padding: 1rem;
  width: 300px;
  clear: both;
}

@media (max-width: 960px) {
  .courses-column.first {
    width: calc(50% - 15px);
    clear: none;
  }
}

@media (max-width: 480px) {
  .courses-column.first {
    width: 100%;
  }
}

.courses-column .course-category {
  position: relative;
  margin: 0 0 1rem;
  padding-top: 44px;
  font-size: 1.3rem;
  display: block;
  font-family: 'vag-black';
  text-align: center;
}

.courses-column .courses ul {
  width: 50%;
}

.courses-column .courses ul li {
  display: table-row;
}

.courses-column .courses ul li a {
  font-size: 13px;
}

/* =========================
   COURSE DETAIL (terms/table)
   ========================= */
#main p.course_info {
  line-height: 1.5em;
}

.course-highlights {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: start;
  gap: 34px;
  margin: 0 0 1.75rem;
}

.course-highlights__text {
  min-width: 0;
}

.course-highlights--image-only {
  grid-template-columns: 400px minmax(0, 1fr);
}

.course-highlights--text-only {
  display: block;
}

.course-highlights--image-only .course-highlights__text {
  display: none;
}

.course-main-image {
  width: 400px;
  max-width: 100%;
  margin: 0;
  justify-self: end;
  color: #381a0c;
}

.course-highlights--image-only .course-main-image {
  justify-self: start;
}

.course-main-image img {
  display: block;
  width: 400px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: #f4f3f2;
  border: 1px solid rgba(56, 26, 12, .12);
  box-shadow: 0 2px 14px rgba(56, 26, 12, .06);
}

.course-main-image figcaption {
  padding: 10px 14px 0;
  color: #381a0c;
  font-size: .95rem;
  line-height: 1.45;
}

@media (max-width: 960px) {
  .course-highlights,
  .course-highlights--image-only {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .course-main-image {
    order: 1;
    width: 100%;
    justify-self: auto;
  }

  .course-main-image img {
    width: 100%;
  }

  .course-highlights__text {
    order: 2;
  }
}

#main .course_term {
  background: none;
  padding-left: 0;
  padding-top: 15px;
  float: none;
  color: #381a0c;
  font-family: 'vag-black';
  font-size: 1.25rem;
}

#main .course_term+br,
#main .course_term+br+br {
  display: none;
}

.TermTabl {
  font-size: .75rem;
}

@media (max-width: 960px) {
  .TermTabl {
    font-size: .725rem;
  }
}

.TermTabl .TermRadek td {
  text-transform: none;
}

.TermTabl .TermRadek td svg {
  display: inline-block;
  vertical-align: middle;
  fill: #fff;
  margin: -3px 0 0;
}

.TermTabl .TermRadek td small {
  text-transform: uppercase;
  color: #d60000;
  display: block;
  margin: -5px 0 -30px;
}

.course .req {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 32%) minmax(0, 1fr);
  gap: 1px 0;
  overflow: hidden;
  margin: 2rem 0 1.75rem;
  padding: 1px;
  background: #eceded;
  font-size: .9rem;
  line-height: 1.45;

  --cut: 1.35rem;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

.course .req:before {
  content: "";
  position: absolute;
  left: 14px;
  top: 0;
  width: 56px;
  height: 4px;
  background: #ecac00;
}

.course .req dt,
.course .req dd {
  float: none;
  width: auto;
  min-width: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

.course .req dt {
  clear: none;
  padding: .85rem 1rem .8rem 1.15rem;
  background: #f6f6f6;
  color: #381a0c;
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.course .req dd {
  padding: .8rem 1.15rem .8rem 1rem;
  background: #fff;
  color: #381a0c;
}

.course .req dd a {
  color: #381a0c;
  text-decoration-color: #ecac00;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.course .req dd a:hover,
.course .req dd a:focus {
  color: #e5ae24;
}

@media (max-width: 640px) {
  .course .req {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 1.5rem;
    font-size: .9rem;
  }

  .course .req dt {
    padding: .85rem 1rem .35rem;
    background: #fff;
    border-top: 1px solid #eceded;
    color: #8c8d8e;
  }

  .course .req dt:first-child {
    border-top: 0;
  }

  .course .req dd {
    padding: 0 1rem .9rem;
  }
}

.KurzPopis {
  background: none;
  position: relative;
  font-weight: bold;
}

.KurzPopis:before {
  position: absolute;
  left: 7px;
  top: 0;
  font-size: 1rem;
}

.Subpopis li {
  position: relative;
  margin: 5px 0;
}

.Subpopis li:before {
  content: "-";
  position: absolute;
  left: -8px;
  top: -1px;
  opacity: .5;
}

@media (max-width: 960px) {
  .PnlRefItem {
    padding-left: 0;
  }
}

/* =========================
   FORMS
   ========================= */
input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
select {
  padding: 4px 8px;
  margin: 0 0 5px;
}

input[type="submit"] {
  display: block;
  background-color: #ecac00;
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  /*   margin: 10px 0 5px;
    padding: 0 1rem;  */
  height: 28px;
  line-height: 28px;
  border: 0;
  outline: 0;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
}

input[type="submit"]:hover {
  background-color: #c38e00;
}

#ctl00_MainContent_tbrLogin input[type="submit"] {
  margin: 0 0 5px;
}

@media (max-width: 640px) {
  #ctl00_MainContent_tbrLogin td {
    display: block;
    width: 100%;
  }

  #ctl00_MainContent_tbrLogin td input {
    width: 100%;
  }
}

#mainc table hr {
  border-color: #eceded;
}

#mainc table td h2 {
  font-size: 1.25rem;
}

@media (max-width: 480px) {
  #mainc table td input[id^=ctl00_MainContent_tb] {
    max-width: 160px;
  }
}

#articleList h2 {
  font-size: 1.25rem;
  line-height: 1.5rem;
}

#articleList p {
  font-size: .825rem;
}

#articleList .row {
  font-size: .75em;
}

.widget_wysija_cont form {
  padding: .75rem .75rem .5rem;
}

.widget_wysija_cont form .wysija-paragraph {
  margin-bottom: 0;
}

#contacts #main h3 {
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  #contacts #main .columns .column {
    float: none;
    width: auto;
    margin-left: 0;
  }
}

/* =========================
   ORDER UI (progress, tables, buttons)
   ========================= */
.order-progress {
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
  counter-reset: item;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .order-progress {
    flex-wrap: nowrap;
  }
}

.order-progress__item {
  counter-increment: item;
  float: left;
  flex: 1 1 auto;
  height: 36px;
  position: relative;
  padding: 0;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
}

@media (min-width: 640px) {
  .order-progress__item {
    border-bottom: 0;
  }
}

.order-progress__item:last-child {
  border-right: 0;
}

.order-progress__item:before {
  content: counter(item);
  position: absolute;
  left: 4px;
  top: 10px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  color: #fff;
  background-color: #acabab;
  font-size: .75rem;
}

@media (min-width: 640px) {
  .order-progress__item:before {
    left: 6px;
    top: 6px;
    width: 24px;
    height: 24px;
    line-height: 24px;
    font-size: 14px;
  }
}

.order-progress__item--selected:before {
  background-color: #cd9600;
}

.order-progress__item--selected .order-progress__title {
  background-color: #ecac00;
  color: #fff;
}

.order-progress__item--active:before {
  background-color: #967d41;
}

.order-progress__item--active:hover .order-progress__title {
  text-decoration: underline;
}

.order-progress__item--active .order-progress__title {
  text-decoration: none;
  background-color: #846e39;
  color: #fff;
}

.order-progress__title {
  display: block;
  background-color: #8c8d8e;
  color: rgba(255, 255, 255, 0.8);
  height: 36px;
  line-height: 36px;
  padding: 0 6px 0 26px;
  font-size: .825rem;
}

@media (min-width: 640px) {
  .order-progress__title {
    font-size: 14px;
    padding: 0 10px 0 36px;
  }
}

.order-progress__title:hover {
  color: #fff;
}

.order-table {
  width: 100%;
  margin: 0 0 15px;
}

@media (max-width: 640px) {
  .order-table tr {
    display: block;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eceded;
  }
}

.order-table tr:hover td {
  background-color: rgba(236, 172, 0, 0.1);
}

.order-table tr th,
.order-table tr td {
  padding: 5px 10px;
  vertical-align: middle;
  transition: background-color 0.3s ease-in-out;
}

@media (max-width: 640px) {

  .order-table tr th.text-right,
  .order-table tr td.text-right {
    text-align: left;
  }
}

.order-table tr th input:not(type['checkbox']),
.order-table tr td input:not(type['checkbox']) {
  max-width: 320px;
}

@media (max-width: 640px) {

  .order-table tr th input:not(type['checkbox']),
  .order-table tr td input:not(type['checkbox']) {
    width: 96%;
  }
}

.order-table tr th textarea,
.order-table tr td textarea {
  font-family: Arial, sans-serif;
  width: 100%;
  height: 80px;
}

.order-table tr th {
  background-color: #846e39;
  color: #fff;
  font-weight: normal;
  text-align: left;
}

@media (max-width: 640px) {
  .order-table tr th {
    display: none;
  }
}

.order-table tr td {
  white-space: nowrap;
  border-bottom: 1px solid #eceded;
}

@media (max-width: 640px) {
  .order-table tr td {
    display: block;
    border-bottom: 0;
  }
}

.order-table tr td svg {
  vertical-align: middle;
  display: inline-block;
  margin: -5px 0 0 4px;
}

.order-table--sm {
  width: auto;
}

@media (max-width: 640px) {
  .order-table--sm {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .order-table--sm tr {
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.order-table--sm tr:hover td {
  background: none;
}

.order-table--sm tr td {
  border-bottom: 0;
}

.order-table--xs {
  width: auto;
}

@media (max-width: 640px) {
  .order-table--xs {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .order-table--xs tr {
    margin-bottom: 2px;
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.order-table--xs tr:hover td {
  background: none;
}

.order-table--xs tr td {
  border-bottom: 0;
  padding: 0 10px 0 0;
}

@media (max-width: 640px) {
  .order-table--xs tr td {
    padding: 0 10px 5px 0;
  }
}

.order-table--users {
  width: auto;
}

@media (max-width: 640px) {
  .order-table--users {
    width: 100%;
  }
}

.order-table--users tr:hover td {
  background: none;
}

.order-table--users tr td {
  border-bottom: 0;
  padding: 0 10px 15px 0;
}

.order-table--users tr td:last-child {
  padding-right: 0;
}

@media (max-width: 640px) {
  .order-table--users tr td {
    padding: 0 0 5px 0;
  }
}

.order-table--users tr td label {
  display: block;
  margin: 0 0 2px 0;
}

.order-table--users tr td input {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.order-table--notes {
  margin: 25px 0 5px;
}

.order-table--notes tr {
  border: 0;
}

.order-table--notes tr:hover td {
  background: none;
}

.order-table--notes tr td {
  border-bottom: 0;
  padding: 0 10px 15px 0;
}

.order-table--notes tr td:last-child {
  padding-right: 0;
}

.order-table--notes tr td textarea {
  display: block;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-width: 300px;
  padding: 10px;
}

.order-table--notes tr td label {
  margin: 0 0 5px;
  display: block;
}

.order-table--notes tr td input[type="checkbox"]+label {
  margin: 0;
  display: inline-block;
}

.order-table-guaranteed svg {
  fill: #6bb34c;
}

.order-table-sale {
  font-weight: bold;
}

.order-table-sale small {
  color: #d60000;
  display: inline-block;
  text-transform: uppercase;
  margin: 0 6px 0 0;
  font-weight: normal;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.order-btn {
  display: block;
  padding: 9px 10px 7px;
  background-color: #ecac00;
  border: 0;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
}

.order-btn:hover {
  background-color: #846e39;
  color: #fff;
}

.order-btn svg {
  vertical-align: middle;
  fill: #fff;
  display: inline-block;
  margin: 0 6px 0 0;
}

.order-btn--sm {
  font-size: 14px;
  padding: 6px 10px;
  display: inline-block;
}

.order-btn--main {
  color: #fff !important;
}

.order-btn--main svg {
  margin: -2px 6px 0 0;
}

.order-btn--next,
.order-btn--back {
  display: inline-block;
  font-size: 15px;
  padding: 9px 15px 8px 15px;
}

@media (min-width: 640px) {

  .order-btn--next,
  .order-btn--back {
    font-size: 18px;
  }
}

.order-btn--next svg,
.order-btn--back svg {
  margin: -2px 0 0 0;
}

.order-btn--back {
  background-color: #846e39;
  font-weight: normal;
}

.order-btn--back svg {
  transform: rotate(180deg);
}

#main h3.order-title--h3 {
  width: 100%;
  min-height: 0;
  margin: 10px 0 10px;
  border-top: 1px solid #eceded;
  padding-top: 10px;
}

#main h3.order-title--h3 small {
  display: block;
  font-weight: normal;
  font-family: Arial, sans-serif;
  font-size: 12px;
}

.hidden {
  display: none;
}

/* =========================
   TEAM CONTACTS
   ========================= */
.team-page + table {
  display: none;
}

.team-page {
  margin: 1.25rem 0 2.5rem;
}

.team-section {
  margin-top: 1.6rem;
}

.team-section:first-child {
  margin-top: 0;
}

.team-section h3 {
  margin: 0;
  color: #381a0c;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
  position: relative;
}

.team-section h3:after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 8px 0;
  background: #ecac00;
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.team-grid--leadership {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.team-card {
  position: relative;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 142px;
  padding: 18px 20px;
  box-sizing: border-box;
  color: #381a0c;

  --cut: 1.5em;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

.team-card:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #eceded;
  background: #fefefe;
  z-index: -1;
}

.team-card:hover:before {
  background: #fff4db;
}

.team-card .foto,
.team-card__photo {
  width: 110px;
  height: 110px;
  margin: 0;
  display: block;
}

.team-card__photo-link {
  display: block;
  width: 110px;
  height: 110px;
  color: inherit;
  text-decoration: none;
}

.team-card__body {
  min-width: 0;
}

#main .team-card h4,
.team-card h4 {
  margin: 0 0 4px;
  color: #381a0c;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
  text-transform: none !important;
}

.team-card__role {
  margin: 0 0 12px;
  color: #6f6f72;
  font-style: italic;
  line-height: 1.25;
}

.team-card__contact {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin: 7px 0 0;
  color: #381a0c;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.team-icon {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  background-color: #381a0c;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.team-icon--mail {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2Zm0 4-8 5-8-5V6l8 5 8-5v2Z'/%3E%3C/svg%3E");
}

.team-icon--mobile {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1H7C5.9 1 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2Zm-5 21c-.83 0-1.5-.67-1.5-1.5S11.17 19 12 19s1.5.67 1.5 1.5S12.83 22 12 22Zm5-4H7V4h10v14Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 1H7C5.9 1 5 1.9 5 3v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2Zm-5 21c-.83 0-1.5-.67-1.5-1.5S11.17 19 12 19s1.5.67 1.5 1.5S12.83 22 12 22Zm5-4H7V4h10v14Z'/%3E%3C/svg%3E");
}

.team-icon--phone {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1C10.61 21 3 13.39 3 4c0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.24.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2Z'/%3E%3C/svg%3E");
}

@media (max-width: 820px) {
  .team-grid,
  .team-grid--leadership {
    grid-template-columns: 1fr;
  }

  .team-card {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 16px;
  }

  .team-card .foto,
  .team-card__photo,
  .team-card__photo-link {
    width: 86px;
    height: 86px;
  }
}

@media (max-width: 420px) {
  .team-card {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .team-card .foto,
  .team-card__photo,
  .team-card__photo-link {
    width: 74px;
    height: 74px;
  }

  .team-card h4 {
    font-size: .95rem;
  }
}

/* =========================
   HP stats (2x3)
   ========================= */
.hp-stats {
  margin: 22px 0 35px;
}

.hp-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hp-stats__item {
  position: relative;
  text-align: center;
  padding: 1.25rem 1.5rem 1.1rem;

  --cut: 1.5em;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

.hp-stats__item:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #eceded;
  background: #fefefe;
  z-index: -1;
}

.hp-stats__item:hover:before {
  background: #fff4db;
}

.hp-stats__bar {
  width: 56px;
  height: 4px;
  background: #ecac00;
  margin: 0 auto 14px;
}

.hp-stats__num {
  font-family: 'vag-black';
  font-size: 2.6rem;
  line-height: 1.05;
  color: #381a0c;
  letter-spacing: 0.02em;
}

.hp-stats__label {
  margin-top: 8px;
  font-family: 'vag-bold';
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
  color: #8c8d8e;
}

@media (max-width: 960px) {
  .hp-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hp-stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .hp-stats {
    margin: 16px 0 26px;
  }

  .hp-stats__item {
    padding: 12px 6px 11px;
    --cut: 14px;
  }

  .hp-stats__bar {
    width: 42px;
    height: 3px;
    margin-bottom: 9px;
  }

  .hp-stats__num {
    font-size: 1.7rem;
    line-height: 1;
    letter-spacing: 0;
  }

  .hp-stats__label {
    margin-top: 5px;
    font-size: 0.68rem;
    line-height: 1.12;
    letter-spacing: 0.04em;
  }
}

/* =========================
   MENU OVERRIDE (desktop) – clean text + active bar
   ========================= */
@media (min-width: 961px) {
  #mainmenu {
    display: block !important;
    width: 100% !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
    margin: 10px 0 35px 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }

  #mainmenu li {
    display: inline-block !important;
    width: auto !important;
    float: none !important;
    padding-left: 0 !important;
    margin: 0 20px !important;
    list-style: none !important;
    vertical-align: middle !important;
  }

  #mainmenu li a {
    display: inline-block !important;
    position: relative;
    font-family: 'vag-black', Arial, sans-serif !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: .06em;

    height: auto !important;
    line-height: 1.15 !important;

    background: none !important;
    background-image: none !important;
    border: 0 !important;

    padding: 14px 0 0 0 !important;
    margin: 0 !important;

    color: #381a0c !important;
    text-decoration: none !important;

    transition: color 250ms ease, transform 250ms ease;
  }

  /* kill old tile frame */
  #mainmenu li a:before {
    content: none !important;
    display: none !important;
  }

  #mainmenu li a:hover,
  #mainmenu li a:focus {
    color: #e5ae24 !important;
    transform: translateY(-1px);
  }

  /* active bar */
  #mainmenu li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: #ecac00;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 220ms ease;
    border-radius: 2px;
  }

  #mainmenu li.selected a {
    color: #381a0c !important;
    transform: none;
  }

  #mainmenu li.selected a::after {
    transform: scaleX(1);
  }
}

/* Desktop: right header row = search -> user -> language */
@media (min-width: 961px) {
  #header .right {
    position: absolute;
    right: 0;
    top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    white-space: nowrap;
  }

  #search,
  #login_link,
  #langchooser {
    position: static !important;
    float: none !important;
  }

  #langchooser {
    margin: 0;
    padding: 0;
  }

  #langchooser li {
    display: inline-block;
    margin: 0 4px;
  }

  #search {
    order: 1;
    margin: 0 !important;
  }

  #login_link {
    order: 2;
  }

  #langchooser {
    order: 3;
    margin: 0 !important;
  }
}

@media (max-width: 960px) {
  #header-top {
    position: sticky;
    top: -82px;
    height: 130px;
  }

  #header {
    min-height: 138px;
    padding-bottom: 12px;
  }

  #header .right {
    position: static;
    width: auto;
    padding-top: 4px;
  }

  #langchooser {
    margin: 0;
    padding: 0;
  }

  #login_link {
    margin: 0;
  }

  #search {
    position: absolute;
    left: 0;
    top: 84px;
    width: calc(100% - 66px);
    margin: 0;
  }

  #search input[type="text"] {
    width: calc(100% - 35px);
  }

  #showmenu_label {
    position: absolute;
    right: 0;
    top: 82px;
    float: none;
  }

  #container {
    padding-top: 0;
  }
}

/* offset content under fixed header */
#container {
  padding-top: 130px;
}

@media (max-width: 960px) {
  #container {
    padding-top: 0;
  }

  .section h1 {
    font-size: 1.45rem;
    line-height: 1.16;
    overflow: visible;
  }
}

/* =========================
   LEFT MENU (menu1) – modern clean list
   ========================= */
#menu .menu1 ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#menu .menu1 ul li {
  margin: 0 0 0 0;
}

#menu .menu1 ul li a {
  background: #fefefe;
  background-image: none !important;
  text-decoration: none;
  display: block;
  padding: 8px 18px;
  line-height: 1.2;
  border-radius: 2px;
  color: #381a0c;
  font-family: 'vag-thin', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 0.95rem;
  position: relative;
  transition: background-color 250ms ease, color 250ms ease;
}

#menu .menu1 ul li a:hover {
  background-color: rgba(236, 172, 0, 0.10);
  color: #381a0c;
}

#menu .menu1 ul li.selected a {
  background-color: #ecac00 !important;
  color: #381a0c !important;
  box-shadow: 0 0 0 1px #eceded;
}

/* nested submenu */
#menu .menu1 ul li ul {
  margin-top: 8px;
  padding-left: 10px;
}

#menu .menu1 ul li li a {
  font-family: 'vag-light', Arial, sans-serif;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  padding: 10px 12px;
}


/* =========================
   QUICKNAV (Rychlá navigace) – stejné styly jako #menu .menu1
   ========================= */

#menu ul.quicknav {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* zrušit staré šipky a absolutní :before z legacy pravidel */
#menu ul.quicknav li:before {
  content: none !important;
  display: none !important;
}

/* položky */
#menu ul.quicknav li {
  margin: 0;
  padding: 0;
}

/* odkazy stejně jako #menu .menu1 ul li a */
#menu ul.quicknav li a {
  background: #fefefe;
  background-image: none !important;
  text-decoration: none;
  display: block;
  padding: 8px 18px;
  line-height: 1.2;
  border-radius: 2px;
  color: #381a0c;
  font-family: 'vag-thin', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 0.95rem;
  font-weight: bold;
  position: relative;
  transition: background-color 250ms ease, color 250ms ease;
}

#menu ul.quicknav li a:hover {
  background-color: rgba(236, 172, 0, 0.10);
  color: #381a0c;
}

/* jemná linka mezi řádky (pokud chceš jako u menuKurzy) */
#menu ul.quicknav li+li {
  border-top: 1px solid rgba(56, 26, 12, 0.08);
}


/* =========================
   LAYOUT FIX (desktop) – remove legacy 680px main
   ========================= */
@media (min-width: 961px) {
  #navi {
    clear: both;
    width: 100%;
    box-sizing: border-box;
    margin-left: .4rem;
  }

  #menu {
    float: left;
    width: 280px;
    background: #fff;
  }

  #main {
    float: left;
    width: calc(100% - 280px - 30px) !important;
    margin-left: 30px;
    box-sizing: border-box;
  }

  #mainc {
    width: auto !important;
    padding-left: 0 !important;
  }
}

/* =========================
   TERMÍNY KURZU – modern cards + grid
   (bez změny HTML)
   ========================= */
.containerTermin {
  width: 100%;
  max-width: 960px;
  margin-top: 10px;
}

/* Lokality container = grid + card */
.containerLokalita {
  /* hotfix: no height limits */
  height: auto !important;
  max-height: none !important;
  min-height: 0 !important;
  overflow: visible !important;
  clear: both;

  /* card feel */

  /* border: 1px solid #eceded;
    border-radius: 8px; 
    padding: 14px 16px 16px; */
  margin: 12px 0;
  box-sizing: border-box;

  /* grid */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 15px;
}

/* hard 4 columns on wide screens */
@media (min-width: 1200px) {
  .containerLokalita {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* header (Brno/Praha...) */
.containerLokalita .navigace2,
.containerNamiru .navigace2 {
  float: none !important;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  color: #381a0c;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;

  grid-column: 1 / -1;
  /* header across grid */
  position: relative;
}

.containerLokalita .navigace2:after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #ecac00;
  border-radius: 2px;
  margin-top: 10px;
}

.containerLokalita .navigace1 {
  /* tvoje původní styly... */
  background: #f4f4f4;
  border: 1px solid #eceded;

  position: relative !important;
  padding: 10px 30px 8px 30px !important;
  box-sizing: border-box;


  /* CUT CORNER */
  /*     --cut: 1.5em;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - var(--cut)),
    calc(100% - var(--cut)) 100%,
    0 100%
  ); */
}



/* date */
.containerLokalita .navigace1 .termin {
  display: block;
  width: 100%;
  text-align: center;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.05rem;
  color: #381a0c;
  margin: 0 0 4px 0;
}

/* price */
.containerLokalita .navigace1 span[id*="lblCena"],
.containerLokalita .navigace1>div:nth-of-type(1) span {
  display: inline-block;
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: 1rem;
  color: #381a0c;
}

/* price row */
.containerLokalita .navigace1>div:first-of-type {
  display: block !important;
  width: 100%;
  text-align: center;
  margin: 0;
}

/* hide empty small */
.containerLokalita .navigace1 small:empty {
  display: none;
}

/* button */
.containerLokalita .navigace1 a,
.containerNamiru .namiru-box a, .webinar-registrace a {
  display: inline-block;
  margin-top: 8px;
  background: #ecac00;
  color: #381a0c;
  text-decoration: none;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 1px;
  transition: background-color 250ms ease, transform 250ms ease;


}

.webinar-registrace a {
  font-size: 0.95rem;
}

.webinar-registrace {
  margin: 26px 0 46px;
}

.webinar-registrace h3 {
  margin-bottom: 18px;
}

.webinar-registrace .containerTermin--webinar {
  width: min(100%, 520px);
}

.webinar-registrace .containerTermin--webinar .navigace1 {
  display: block;
  width: 100%;
  padding: 24px 28px 30px;
  text-align: center;
}

.webinar-registrace .containerTermin--webinar .termin,
.webinar-registrace .containerTermin--webinar small,
.webinar-registrace .containerTermin--webinar span {
  color: #381a0c;
  font-family: 'vag-black', Arial, sans-serif;
}

.webinar-registrace .containerTermin--webinar .termin {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 10px;
}

.webinar-registrace .containerTermin--webinar small {
  display: block;
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.webinar-registrace .containerTermin--webinar span {
  font-size: 1.55rem;
}

.webinar-registrace .containerTermin--webinar a {
  margin-top: 18px;
  font-size: 1.25rem;
  padding: 12px 22px;
}

.containerNamiru .namiru-box a {
  display: block;
  width: fit-content;
  margin: 8px auto 0 auto;


}

.containerLokalita .navigace1 a:hover,
.containerNamiru .namiru-box a:hover,
.webinar-registrace a:hover {
  background-color: #c38e00;
  transform: translateY(-1px);
}

.containerNamiru--alt .namiru-box a,
.containerNamiru--alt .namiru-box a:hover {
  display: inline;
  width: auto;
  margin: 0;
  background: transparent;
  color: #89701d;
  text-decoration: underline;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  border-radius: 0;
  transform: none;
}

/* legacy overlap safety */
.containerTermin>.containerLokalita,
.containerTermin>.containerVirtualpro,
.containerTermin>.containerNamiru {
  position: relative;
  z-index: 1;
}

.containerLokalita .navigace1,
.containerLokalita .navigace2 {
  position: relative;
}

/* =========================
   Info box "virtualpro"
   ========================= */
.containerVirtualpro {
  background: #fefefe;
  border: 1px solid #eceded;
  padding: 14px 16px;
  margin: 12px 0;
  color: #3d3c3f;
  line-height: 1.6;

  --cut: 1.5em;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);

}

.containerVirtualpro a {
  color: #381a0c;
  font-weight: bold;
}

/* =========================
   "Školení na míru" box
   ========================= */
.containerNamiru {


  /*  border: 1px solid #eceded;
    border-radius: 8px;
    padding: 14px 16px; */
  margin: 12px 0;
  font-size: 1em;
}

/*
.containerNamiru .navigace2 { margin: 0 0 8px 0; }
.containerNamiru a {
    display: inline-block;
    font-family: 'vag-black', Arial, sans-serif;
    color: #381a0c;
    text-decoration: none;
    border-bottom: 1px solid rgba(56,26,12,0.25);
}
.containerNamiru a:hover {
    color: #e5ae24;
    border-bottom-color: rgba(229,174,36,0.6);
} */

/* =========================
   GUARANTEED badge (FINAL)
   ========================= */
.term-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ecac00;
  margin-left: 8px;
  vertical-align: middle;
}

.term-badge__icon {
  width: 18px;
  height: 18px;
  fill: #381a0c;
  background: none !important;
  box-shadow: none !important;
  position: static !important;
  transform: none !important;
}

/* tooltip */
.term-badge[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  white-space: nowrap;
  background: #381a0c;
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.2;
  padding: 8px 10px;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 20;
}

.term-badge[data-tooltip]::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #381a0c;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 20;
}

.term-badge:hover::after,
.term-badge:hover::before {
  opacity: 1;
}

.term-badge:hover::after {
  transform: translateX(-50%) translateY(-2px);
}




/* overlay badge inside term card */
.containerLokalita .term-badge {
  position: absolute !important;
  right: 12px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ecac00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  /* kill baseline jump */
}

.containerLokalita .term-badge svg,
.containerLokalita .term-badge .term-badge__icon {
  display: block !important;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  padding: 0 !important;
  transform: translate(6.5px, 6.5px) !important;

}


/* =========================
   "Školení na míru" – header + full width grey box
   ========================= */

.containerNamiru {

  /* border: 1px solid #eceded;
  border-radius: 8px;
  padding: 14px 16px 16px; */
  margin: 12px 0;
  box-sizing: border-box;

}

/* Nadpis stejně jako Praha/Brno */
.containerNamiru .navigace2 {
  float: none !important;
  width: auto;
  margin: 0;
  padding: 0;
  text-align: left;
  color: #381a0c;


  line-height: 1.2;
  position: relative;
}

.containerNamiru .navigace2:after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #ecac00;
  border-radius: 2px;
  margin-top: 10px;
}

/* Šedý box jako term-card, ale přes celou šířku */
.containerNamiru .namiru-box {
  margin-top: 14px;
  background: #fefefe;
  border: 1px solid #eceded;
  /* border-radius: 8px; */
  padding: 12px 14px;
  color: #3d3c3f;
  line-height: 1.6;
  font-size: 1em;

  --cut: 1.5em;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

.containerNamiru .namiru-box p {
  margin: 0 0 10px 0;
}

/* Tlačítko stejně jako "Objednat" */
.containerNamiru .namiru-btn {
  display: inline-block;
  margin-top: 6px;
  background: #ecac00;
  color: #381a0c;
  text-decoration: none;

  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: background-color 250ms ease, transform 250ms ease;
}

.containerNamiru .namiru-btn:hover {
  background-color: #c38e00;
  transform: translateY(-1px);
}

/* Mobile – ať je text hezky čitelný */
@media (max-width: 650px) {
  .containerNamiru {
    padding: 12px;
  }

  .containerNamiru .namiru-box {
    padding: 12px;
  }

  .containerNamiru .namiru-btn {
    width: 100%;
    text-align: center;
  }
}

/* TERM CARD – cut corner + border via drop-shadow */
.containerLokalita .navigace1 {
  --cut: 1.35em;
  background: #fefefe;
  ;
  border: 0;

  position: relative !important;
  padding: 10px 30px 8px 30px !important;
  box-sizing: border-box;

  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);

  /* šedý "border" kolem seříznutého tvaru */
  filter: drop-shadow(0 0 0 #eceded);
}

/* GUARANTEED – správný selektor (stejný element) */
.containerLokalita .navigace1.term-card--guaranteed {
  background: #fff4db;
  color: #fff;
  filter:
    drop-shadow(0 0 0 rgba(236, 172, 0, .75)) drop-shadow(0 0 10px rgba(236, 172, 0, .22));
}

@media (max-width: 650px) {
  .containerLokalita {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0 24px;
  }

  .containerLokalita .navigace2 {
    margin-bottom: 4px;
  }

  .containerLokalita .navigace1 {
    --cut: 1rem;
    min-width: 0;
    padding: 12px 8px 10px !important;
  }

  .containerLokalita .navigace1 .termin {
    font-size: .92rem;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .containerLokalita .navigace1 span[id*="lblCena"],
  .containerLokalita .navigace1>div:nth-of-type(1) span {
    font-size: .9rem;
  }

  .containerLokalita .navigace1 a {
    margin-top: 8px;
    padding: 7px 9px;
    font-size: .85rem;
  }

  .containerLokalita .term-badge {
    right: 8px;
    top: 8px;
    width: 28px;
    height: 28px;
  }

  .containerLokalita .term-badge svg,
  .containerLokalita .term-badge .term-badge__icon {
    width: 17px;
    height: 17px;
    transform: translate(5.5px, 5.5px) !important;
  }
}

/* TOOLTIP – uvnitř karty, aby ho clip-path neodřízl */
.term-badge[data-tooltip]::after {
  left: auto;
  right: 0;
  bottom: auto;
  top: calc(100% + 8px);
  transform: none;
}

.term-badge[data-tooltip]::before {
  display: none;
}

/* =========================
   TREEVIEW – modern (bez zásahu do .NET generování)
   Cíl:
   - schovat root "Kurzy"
   - moderní typografie + pill odkazy
   - odlišení hlavních kategorií vs podkategorií
   - zvýraznění otevřené větve (žlutá linka)
   - moderní + / ☒ toggle
   ========================= */

/* ZØKLAD */
#tvKurzy {
  font-family: 'vag-light', Arial, sans-serif;
  font-size: 0.95rem;
}

/* SCHOVAT ROOT "Kurzy" (první řádek stromu) */
#tvKurzy>table {
  display: none;
}

/* TABULKOVÉ ODSAZENÍ / RESET */
#tvKurzy table {
  border-collapse: separate;
  border-spacing: 0;
  padding-left: 15px;
}

#tvKurzy td {
  padding: 0;
}

/* PILL ODKAZY (všechny uzly) */
#tvKurzy a.tvKurzy_0 {
  display: inline-block;
  padding: 8px 10px;
  margin: 2px 0;
  text-decoration: none;
  color: #381a0c;
  border-radius: 8px;
  transition: background-color 160ms ease, transform 160ms ease;
}

#tvKurzy a.tvKurzy_0:hover {
  background: rgba(236, 172, 0, 0.12);
  transform: translateX(1px);
}

/* HLAVNÍ KATEGORIE (Depth 1) – přímé děti #tvKurzyn0Nodes */
#tvKurzyn0Nodes>table a.tvKurzy_0 {
  font-family: 'vag-thin', Arial, sans-serif;
  font-weight: bold;
  font-size: 0.98rem;
  text-transform: uppercase;
}

/* po schování rootu zrušíme první odsazovací sloupec (div width:20) u hlavních kategorií */
#tvKurzyn0Nodes>table td:first-child {
  display: none;
}

/* PODKATEGORIE (Depth 2) – uvnitř divů tvKurzynXXNodes */
#tvKurzyn0Nodes>div[id^="tvKurzyn"][id$="Nodes"] table a.tvKurzy_0 {
  font-family: 'vag-thin', Arial, sans-serif;
  font-size: 0.92rem;
  opacity: 0.95;
  padding: 6px 10px;
}

/* u podkategorií skryjeme „indent“ sloupce + prázdný img sloupec */
#tvKurzyn0Nodes>div[id^="tvKurzyn"][id$="Nodes"] table td:nth-child(1),
#tvKurzyn0Nodes>div[id^="tvKurzyn"][id$="Nodes"] table td:nth-child(2),
#tvKurzyn0Nodes>div[id^="tvKurzyn"][id$="Nodes"] table td:nth-child(3) {
  display: none;
}

/* ZVÝRAZNĚNÍ OTEVŘENÉ VĚTVE (sjednocené odsazení) */
#tvKurzyn0Nodes>div[id^="tvKurzyn"][id$="Nodes"][style*="display:block"] {
  margin: 4px 0 10px 30px;
  padding-left: 12px;
  border-left: 2px solid #ecac00;
}

#tvKurzyn0Nodes>div[id^="tvKurzyn"][id$="Nodes"][style*="display:block"] table {
  margin-left: 0;
}

/* MODERNÍ + / ☒ (nahrazení ASP.NET obrázků) */
#tvKurzy a[id^="tvKurzyn"] img {
  display: none !important;
}

#tvKurzy a[id^="tvKurzyn"] {
  display: inline-flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  text-decoration: none;
  vertical-align: middle;
}

#tvKurzy a[id^="tvKurzyn"]::before {
  content: "+";
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  color: #381a0c;
  border: 1px solid rgba(56, 26, 12, 0.18);
  border-radius: 5px;
  background: rgba(236, 172, 0, 0.10);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

#tvKurzy a[id^="tvKurzyn"]:hover::before {
  background: rgba(236, 172, 0, 0.18);
  border-color: rgba(56, 26, 12, 0.28);
  transform: scale(1.06);
}

/* otevřený uzel má v alt "Collapse ..." */
#tvKurzy a[id^="tvKurzyn"]:has(img[alt^="Collapse"])::before {
  content: "☒";
}

/* =========================
   KATEGORIE / PODKATEGORIE – VARIANTA B
   (čisté, čitelné, moderní "chips", bez rámování/rounded)
   ========================= */

/* karta sloupce (necháváme cut-corner jako u brandu) */
.courses-column {
  position: relative;
  padding: 14px 14px 16px;
  margin: 0;
  box-sizing: border-box;
  min-height: 210px;

  background: #fefefe;
  border: 1px solid #eceded;

  --cut: 1.5em;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);

  transition: background-color 220ms ease, transform 220ms ease;
}

/* jemný hover bez "orámování" navíc */
.courses-column:hover {
  background: rgba(236, 172, 0, 0.06);
  transform: translateY(-1px);
}

/* hlavička: nadpis vlevo, ikona vpravo */
.courses-column .course-category {
  position: relative;
  display: block;

  padding: 0 44px 10px 0;
  /* prostor na ikonu vpravo */
  margin: 0 0 10px 0;

  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.1rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .04em;

  color: #381a0c;
  text-decoration: none;
  /* zruš podtržení hlavní kategorie */
}

/* žlutá linka pod nadpisem (stejná logika jako jinde) */
.courses-column .course-category::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #ecac00;
  margin-top: 10px;
}

/* ikona vpravo nahoře */
.courses-column .course-category .icon {
  position: absolute;
  right: 0;
  top: 0;

  width: 34px;
  height: 34px;

  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  opacity: .75;
  transition: opacity 220ms ease;
}

.courses-column:hover .course-category .icon {
  opacity: 1;
}

/* zruš staré absolutní "icon přes celou šířku", co máš níž v CSS */
.course-category .icon {
  left: auto;
  width: 34px;
  height: 34px;
}

/* podkategorie: místo dvou UL vedle sebe uděláme "flow" */
.courses-column .courses {
  margin: 0;
  overflow: visible;
}

/* zruš plovoucí sloupce UL */
.courses-column .courses ul {
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  display: contents;
  /* spojí více <ul> do jedné vizuální vrstvy (moderní prohlížeče) */
}

/* každá položka jako chip */
.courses-column .courses ul li {
  list-style: none;
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 0;
}

/* vypnout staré "»" před li */
.courses-column .courses ul li:before {
  content: none !important;
  display: none !important;
}

/* link jako chip (bez radiusů) */
.courses-column .courses ul li a {
  display: inline-block;
  padding: 7px 10px 6px;

  font-family: 'vag-thin', Arial, sans-serif;
  font-size: 0.95rem;
  line-height: 1.1;

  color: #381a0c;
  text-decoration: none;

  background: #f4f4f4;
  border: 1px solid #eceded;

  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.courses-column .courses ul li a:hover {
  background: rgba(236, 172, 0, 0.14);
  border-color: rgba(236, 172, 0, 0.55);
  transform: translateY(-1px);
}

/* když je chip dlouhý (Dynamics...), ať se nezničí řádek */
.courses-column .courses ul li a {
  max-width: 100%;
  white-space: nowrap;
}

/* responsivně: dovol zalamování chipů */
@media (max-width: 960px) {
  .courses-column .courses ul li a {
    white-space: normal;
  }
}

/* grid už máš, jen drobná kosmetika gap */
.courses-columns {
  gap: 14px;
}


/* Nadpis vlevo jen v tomhle boxu */
.courses-column .course-category,
.courses-column h2,
.courses-column h1 {
  text-align: left !important;
  justify-content: flex-start;
}


.courses-column {
  position: relative;
  padding: 14px 14px 16px;
  box-sizing: border-box;

  background: #fefefe;

  --cut: 1.5em;
  --b: 1px;
  --border: #eceded;

  /* důležité: border dáme pryč, dělá ho ::before */
  border: 0;

  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

/* obrys (border) přes pseudo-element */
.courses-column::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background: var(--border);

  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

/* “vnitřek” boxu, aby byl vidět jen 1px obrys */
.courses-column::after {
  content: "";
  position: absolute;
  inset: var(--b);
  pointer-events: none;

  background: #fefefe;

  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

/* obsah musí být nad pseudo-elementy */
.courses-column>* {
  position: relative;
  z-index: 1;
}

.courses-column:hover::after {
  background: rgba(236, 172, 0, 0.06);
}

.orezany-roh {
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
}

/* 1) vypni starou linku na celém .sectionrn (jen pro jistotu) */
#menu .sectionrn::before {
  content: none !important;
}

/* 2) udělej linku NAD NADPISEM uvnitř levého menu */
#menu .sectionrn h2 {
  position: relative;
  /* ukotvení pseudo-elementu */
  padding-top: 12px;
  /* prostor pro žlutou linku */
  margin: 0 0 0 0;
  /* doladění rozestupů */
}

/* žlutá linka – zarovnaná s vnitřním paddingem boxu */
#menu .sectionrn h2::before {
  content: "";
  position: absolute;
  top: 0;
  left: .75rem;
  /* stejné jako padding v #menu .sectionrn .body */
  width: 56px;
  height: 3px;
  background: #ECAC00;
}


/* =========================================================
   ORDER PAGE – clean redesign (scoped, overrides legacy)
   VLOŽ NA KONEC style.css
   ========================================================= */

.order-page {
  --bg: #f4f3f2;
  --text: #381a0c;
  --muted: rgba(56, 26, 12, .70);
  --line: rgba(56, 26, 12, .10);
  --card: #ffffff;
  --brand: #ecac00;
  /* firemní žlutá */
  --brand2: #c38e00;
  /* hover */
  --radius: 2;
  --shadow: 0 10px 22px rgba(0, 0, 0, .06);

  color: var(--text);
}

/* ---------- hard reset jen pro objednávku (kvůli legacy) ---------- */
.order-page * {
  box-sizing: border-box;
}

.order-page h1,
.order-page h2,
.order-page h3 {
  width: auto !important;
  display: block !important;
  float: none !important;
}

.order-page table {
  border-collapse: collapse;
}

.order-page a {
  color: var(--text);
}

.order-page a:hover {
  color: var(--brand);
}

/* ---------- layout stránky ---------- */
.order-page {
  margin-top: 10px;
}

.order-header {
  margin-bottom: 14px;
}

/* Titulky */
.order-header h1 {
  margin: 0 0 6px 0;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.8rem;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
}

.order-header h2 {
  margin: 0 0 14px 0;
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.25;
  text-transform: none;
  color: var(--muted);
}

/* Karta (použití pro .card všude v objednávce) */
.order-page .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- souhrn kurzu ---------- */
.order-summary {
  padding: 14px 16px;
}

.order-summary .tblPrihlaska {
  width: 100%;
  border: 0;
  margin: 0;
}

.order-summary .tblPrihlaska td {
  padding: 6px 0;
  vertical-align: top;
  border: 0;
}

.order-summary .tblPrihlaska td:first-child {
  color: var(--muted);
  width: 160px;
  padding-right: 12px;
  white-space: nowrap;
}

.order-summary .KurzVypis {
  font-family: 'vag-bold', Arial, sans-serif;
  color: var(--text);
}

.order-note {
  margin: 10px 0 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
}

/* ---------- kroky (nahrazuje legacy #mainmenu1) ---------- */
.order-steps {
  list-style: none;
  padding: 0;
  margin: 14px 0 18px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  float: none !important;
  /* přebije legacy */
  clear: both;
}

.order-steps li {
  margin: 0;
}

.order-steps li a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px;
  text-decoration: none;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: .95rem;
  line-height: 1;
  background-image: none !important;
  /* kill mb.png */
  width: auto !important;
}

.order-steps li.selected a {
  background: var(--brand);
  border-color: rgba(0, 0, 0, .08);
  color: #fff;
}

.order-steps li.disabled a {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- validační box ---------- */
.order-validation {
  margin: 0 0 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(214, 0, 0, .18);
  background: rgba(214, 0, 0, .06);
  color: #a60000;
}

/* ---------- hlavní 2-sloupcový layout ---------- */
.order-layout {
  /* display: grid;
  grid-template-columns: minmax(0,1fr) 360px;
  gap: 18px; */
  align-items: start;
}

.order-main {
  min-width: 0;
}

.order-side {
  min-width: 0;
}

/* mobile */
@media (max-width: 1020px) {
  .order-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- sekce ---------- */
.order-section {
  padding: 16px;
  margin-bottom: 14px;
}

.order-section-title {
  margin: 0 0 12px 0;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.15rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.order-section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--brand);
  margin-top: 10px;
}

/* ---------- grid formuláře ---------- */
.order-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

@media (max-width: 720px) {
  .order-grid {
    grid-template-columns: 1fr;
  }
}

.order-field label {
  display: block;
  margin: 0 0 6px 0;
  font-size: .92rem;
  color: var(--muted);
}

/* vstupy */
.order-page input[type="text"],
.order-page input[type="password"],
.order-page input[type="email"],
.order-page input[type="number"],
.order-page select {
  width: 100%;
  height: 42px;
  padding: 8px 10px;
  border-radius: 2px;
  border: 1px solid rgba(56, 26, 12, .16);
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.order-page select {
  height: 42px;
}

.order-page input:focus,
.order-page select:focus {
  border-color: rgba(236, 172, 0, .65);
  box-shadow: 0 0 0 4px rgba(236, 172, 0, .18);
}

/* inline (IČO + ARES) */
.order-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

@media (max-width: 520px) {
  .order-inline {
    grid-template-columns: 1fr;
  }
}

/* ---------- radio (firma / soukromě) ---------- */
.order-radio {
  border: 0;
  margin: 0 0 12px 0;
}

.order-radio td {
  padding: 0 14px 0 0;
  vertical-align: middle;
}

.order-radio input[type="radio"] {
  transform: translateY(1px);
  margin-right: 8px;
}

/* ---------- checkboxy (Souhlasy) ---------- */
.order-page input[type="checkbox"] {
  transform: translateY(1px);
  margin-right: 8px;
}

.order-page .order-field>input[type="checkbox"]+label {
  margin-right: 16px;
  color: var(--text);
  font-size: .95rem;
}

/* chyby u polí */
.form-error {
  display: block;
  margin-top: 6px;
  color: #b40000;
  font-size: .85rem;
  min-height: 1em;
}

/* ---------- tlačítka ---------- */
.order-page input[type="submit"].btn-primary,
.order-page input[type="submit"].btn-secondary {
  height: 42px;
  padding: 0 14px;
  border-radius: 2px;
  border: 0;
  cursor: pointer;
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: .98rem;
  transition: transform 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .10);
}

/* primary */
.order-page input[type="submit"].btn-primary {
  background: var(--brand);
  color: #fff;
}

.order-page input[type="submit"].btn-primary:hover {
  background: var(--brand2);
  transform: translateY(-1px);
}

/* secondary */
.order-page input[type="submit"].btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}

.order-page input[type="submit"].btn-secondary:hover {
  background: rgba(236, 172, 0, .08);
  transform: translateY(-1px);
}

/* zarovnání CTA */
.order-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 720px) {
  .order-actions {
    justify-content: stretch;
  }

  .order-actions .btn-primary {
    width: 100%;
  }
}

/* ---------- pravý panel (login) ---------- */
.order-login {
  padding: 16px;
  position: sticky;
  top: 140px;
  /* kvůli fixed headeru */
}

@media (max-width: 1020px) {
  .order-login {
    position: static;
    top: auto;
  }
}

.order-side-hint {
  margin: 0 0 12px 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.35;
}

.order-forgot {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.35;
}

/* schované legacy tabulky */
.order-hidden {
  display: none;
}

.order-header {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
  align-items: start;
}

/* Nadpisy přes oba sloupce */
.order-header-title {
  grid-column: 1 / -1;
}

/* FLOATING LABEL */

.order-field.float {
  position: relative;
  margin: 0 0 10px;
}

.order-field.float input {
  width: 100%;
  height: 40px;
  padding: 14px 12px 8px;
  border-radius: 2px;
  border: 1px solid rgba(56, 26, 12, .25);
  background: #fff;
  font-size: 14px;
  outline: none;
}

.order-field.float label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: rgba(56, 26, 12, .65);
  pointer-events: none;
  background: #fff;
  padding: 0 6px;
  transition: all .15s ease;
}

.order-field.float input:focus+label,
.order-field.float input:not(:placeholder-shown)+label {
  top: 0px;
  transform: translateY(-50%);
  font-size: 12px;
  color: rgba(56, 26, 12, .85);
}

.order-field.float input:focus {
  border-color: #f4b71a;
  box-shadow: 0 0 0 3px rgba(244, 183, 26, .25);
}

/* Heslo + tlačítko vedle */
.order-pass-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.btn-compact {
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  white-space: nowrap;
}

.order-pass-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  /* místo end */
}

.order-pass-row .order-field.float {
  margin: 0;
  /* aby nevznikal vertikální posun */
}

/* ===== PROGRESS BAR ===== */

.order-steps {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 15px 0 20px;
}

.order-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9b9b9b;
  font-size: 16px;
  position: relative;
}

.order-steps li a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
}

/* kolečko s číslem */
.order-steps li::before {
  content: counter(step);
  counter-increment: step;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
  color: #9b9b9b;
  flex: 0 0 auto;
}

/* reset counter */
.order-steps {
  counter-reset: step;
}

/* šipka mezi kroky */
.order-steps li:not(:last-child)::after {
  content: "›";
  margin-left: 10px;
  color: #c6c6c6;
  font-size: 22px;
}

/* ===== AKTIVNÍ KROK ===== */
.order-steps li.active {
  color: #381a0c;
}

.order-steps li.active::before {
  background: #f4b71a;
  /* vaše žlutá */
  border-color: #f4b71a;
  color: #381a0c;
}

.order-steps li.active a {
  font-weight: 800;
}

/* hotový krok (volitelné) */
.order-steps li.done {
  color: #381a0c;
}

.order-steps li.done::before {
  border-color: #381a0c33;
  color: #381a0c;
}

.order-header {
  display: grid;
  grid-template-columns: 1fr 360px;
  /* pravý sloupec pevnější */
  gap: 20px;
  align-items: stretch;
  /* důležité */
}

.order-header-title {
  grid-column: 1 / -1;
  /* nadpis přes oba */
}

/* aby karta vyplnila výšku sloupce */
.order-header-left,
.order-header-right {
  display: flex;
}

.order-header-left .card,
.order-header-right .card {
  width: 100%;
  height: 100%;
}

@media (max-width: 860px) {
  .order-header {
    grid-template-columns: 1fr;
  }

  .order-header-right {
    display: none !important;
  }
}

/* radio wrapper */
.order-radio {
  margin-top: 10px;
}

.order-radio tbody,
.order-radio tr {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.order-radio td {
  padding: 0 !important;
  border: 0 !important;
}

/* schovej původní radio */
.order-radio input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* label jako pill */
.order-radio label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e3e0dc;
  border-radius: 2px;
  background: #fff;
  color: #381a0c;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: transform .05s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

/* malé kolečko uvnitř pill */
.order-radio label::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #c8c2bc;
  background: #fff;
  display: inline-block;
  flex: 0 0 auto;
}

/* hover */
.order-radio label:hover {
  border-color: #d8c38a;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .06);
}

/* checked stav */
.order-radio input[type="radio"]:checked+label {
  border-color: #f4b71a;
  background: #fff7df;
  box-shadow: 0 10px 24px rgba(244, 183, 26, .18);
}

.order-radio input[type="radio"]:checked+label::before {
  border-color: #f4b71a;
  background: radial-gradient(circle at center, #381a0c 0 45%, transparent 46% 100%);
}

/* na menších šířkách ať to sedí */
@media (max-width: 520px) {
  .order-radio label {
    width: 100%;
    justify-content: flex-start;
  }
}

.order-grid-contact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
}

.order-field.float {
  position: relative;
}

.order-field.float input[type="text"],
.order-field.float input[type="password"],
.order-field.float textarea {
  width: 100%;
  padding: 16px 14px 12px;
  border: 1px solid #d7d0c9;
  border-radius: 2px;
  background: #fff;
  outline: none;
}

.order-field.float label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #7a6a5f;
  pointer-events: none;
  transition: all .12s ease;
  background: transparent;
  padding: 0 6px;
}

/* aktivace: focus nebo vyplněno (placeholder=" " je nutný) */
.order-field.float input:focus+label,
.order-field.float input:not(:placeholder-shown)+label,
.order-field.float textarea:focus+label,
.order-field.float textarea:not(:placeholder-shown)+label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: #381a0c;
  background: #fff;
}

/* pokud máš validátory s "!" */
.form-error {
  position: absolute;
  right: 10px;
  top: 10px;
}

/* Přístupný "skrytý" label */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Billing grid layout */
.order-grid-billing {
  display: grid;
  grid-template-columns: 1fr auto;
  /* 1. řádek: IČO + tlačítko */
  gap: 14px 16px;
  align-items: end;
}

/* 1. řádek */
.order-grid-billing #trIC {
  grid-column: 2;
}

.order-grid-billing .billing-ares-btn {
  grid-column: 1;
}

/* 2. řádek: Název (75%) + DIČ (25%) */
.order-grid-billing #trNaz {
  grid-column: 1;
}

.order-grid-billing #trDic {
  grid-column: 2;
}

/* 3. řádek: 4 položky vedle sebe */
.order-grid-billing .order-field:nth-of-type(5),
/* tbUlice wrapper */
.order-grid-billing .order-field:nth-of-type(6),
/* tbMesto wrapper */
.order-grid-billing .order-field:nth-of-type(7),
/* tbPsc wrapper */
.order-grid-billing .billing-country {
  /* ddlStat wrapper */
  /* nic – jen pro čitelnost */
}

/* Přepneme grid pro 3. řádek na 4 sloupce pomocí "sub-grid" přes celou šířku */
.order-grid-billing {
  grid-auto-flow: row;
}

/* Uděláme 3. řádek jako 4 sloupce tak, že od 3. řádku použijeme plnou šířku a zanoříme vnitřní grid */
.order-grid-billing .order-field.float:nth-of-type(n+5),
.order-grid-billing .billing-country {
  /* 3. řádek bude řízen přes další pravidlo níž */
}

.order-grid-billing {
  /* aby to šlo jednoduše: přepneme na 4 sloupce a řídíme spany */
  grid-template-columns: 1fr auto;
  /* default pro desktop – řádek 1/2 */
}

/* Vytvoříme 3. řádek jako "full row" blok */
.order-grid-billing .billing-row-3 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.6fr 1fr;
  /* Ulice, Město, PSČ, Stát */
  gap: 14px 16px;
}

/* styl selectu jako input */
.order-select {
  width: 100%;
  padding: 14px 14px;
  border: 1px solid #d7d0c9;
  border-radius: 10px;
  background: #fff;
}

/* tlačítko ARES zarovnat výškou k inputu */
.billing-ares-btn .btn-secondary {
  height: 44px;
  padding: 0 14px;
}

/* Mobil: vše pod sebe */
@media (max-width: 860px) {
  .order-grid-billing {
    grid-template-columns: 1fr;
  }

  .order-grid-billing #trIC,
  .order-grid-billing .billing-ares-btn,
  .order-grid-billing #trNaz,
  .order-grid-billing #trDic {
    grid-column: 1;
  }

  .order-grid-billing .billing-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Billing grid */
.order-grid-billing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* pro řádky 2+ klidně */
  gap: 14px 16px;
  align-items: end;
}

/* 1. řádek jako samostatný "full row" blok */
.order-grid-billing .billing-row-1 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: max-content 220px;
  /* tlačítko jen podle obsahu, IČO úzké */
  gap: 14px 16px;
  align-items: end;
  justify-content: start;
  /* nenechá to roztáhnout přes celý box */
}

/* aby se tlačítko chovalo hezky */
.order-grid-billing .billing-row-1 .btn-secondary {
  white-space: nowrap;
  height: 44px;
}

/* mobil: pod sebe */
@media (max-width: 860px) {
  .order-grid-billing {
    grid-template-columns: 1fr;
  }

  .order-grid-billing .billing-row-1 {
    grid-template-columns: 1fr;
  }
}

.ico-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;

}

.ico-field {
  flex: 1;
  /* input zabere zbytek šířky */
  min-width: 200px;
}

.btn-ares {
  white-space: nowrap;
  /* aby se text nelámal */
  height: 44px;
  /* dorovnej podle výšky inputu */
  padding: 0 14px;
}

.errbar {
  position: sticky;
  top: 12px;
  z-index: 999;
  background: #fff3f3;
  border: 1px solid #f3b1b1;
  border-left: 6px solid #e34b4b;
  padding: 12px 12px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  margin: 10px 0 14px 0;
}

.errbar-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.errbar-list {
  font-size: 14px;
  line-height: 1.35;
}

.errbar-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  opacity: .7;
}

.errbar-close:hover {
  opacity: 1;
}

.field-error {
  outline: none;
  border-color: #e34b4b !important;
  box-shadow: 0 0 0 3px rgba(227, 75, 75, .15);
}

.field-error-msg {
  color: #c62828;
  font-size: 12px;
  margin-top: 4px;
}


.participant-card {
  border: 1px solid #e5e5e5;
  padding: 16px;
  margin-bottom: 14px;
  border-radius: 10px;
}

.participant-title {
  font-weight: 600;
  margin-bottom: 12px;
}

.participant-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.field {
  display: flex;
  flex-direction: column;
}

.w15 {
  width: 15%
}

.w35 {
  width: 35%
}

.w70 {
  width: 70%
}

.w30 {
  width: 30%
}

.field label {
  font-size: 13px;
  margin-bottom: 4px;
}

.field input,
.field select {
  padding: 8px;
}

.order-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.order-field {
  display: flex;
  flex-direction: column;
}

.order-inline {
  display: flex;
  gap: 8px;
  align-items: center;
}

.order-count {
  width: 60px;
  text-align: center;
}

.w25 {
  width: 25%
}

.w45 {
  width: 45%
}

.w30 {
  width: 30%
}

/* STEP INPUT */

.order-stepper {
  display: flex;
  align-items: center;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  overflow: hidden;
  width: 140px;
  height: 40px;
}

.stepper-input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: 16px;
  outline: none;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f3f3f3;
  cursor: pointer;
  font-size: 20px;
  transition: background 0.2s;
}

.stepper-btn:hover {
  background: #e6e6e6;
}

.stepper-btn:active {
  background: #dcdcdc;
}

.order-textarea {
  width: 100%;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s, box-shadow .2s;
}

.order-textarea:focus {
  outline: none;
  border-color: #f4b71a;
  box-shadow: 0 0 0 2px rgba(244, 183, 26, 0.15);
}

/* speciálně pro poznámku */

.order-textarea-note {
  min-height: 110px;
  resize: vertical;
}

.order-field .form-error {
  position: absolute;
  left: 105%;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  color: #c00;
  font-size: 13px;
}
/* =========================
   ORDER PAGE - CUSTOM COURSE REQUEST
   ========================= */
.order-page--custom .order-header--custom {
  align-items: stretch;
}

.order-page--custom .order-summary--custom,
.order-page--custom .order-sidecard {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.order-code-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 38px;
  padding: 8px 14px;
  background: #fff7df;
  border: 1px solid rgba(236, 172, 0, 0.35);
  color: #381a0c;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.order-page--custom .KurzVypis {
  color: inherit;
  font-size: 0.95rem;
}

.order-side-list {
  margin: 0;
  padding: 0 0 0 18px;
  color: rgba(56, 26, 12, 0.82);
}

.order-side-list li {
  margin-bottom: 8px;
}

.order-status {
  display: block;
}

.order-validation-summary {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: #fff3f3;
  border-left: 6px solid #e34b4b;
  border: 1px solid #f3b1b1;
  color: #7c1f1f;
}

.order-validation-summary ul {
  margin: 10px 0 0 18px;
  padding: 0;
}

.order-validation-summary:empty {
  display: none;
}

.order-formview {
  display: block;
}

.order-grid-request-top,
.order-grid-request-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.order-field-full,
.order-inline-note {
  grid-column: 1 / -1;
}

.order-field-sm,
.order-field-time {
  max-width: none;
}

.order-field-select {
  position: relative;
}

.order-field-select label {
  display: block;
  margin: 0 0 6px;
  color: #7a6a5f;
  font-size: 0.9rem;
}

.order-inline-note {
  padding: 14px 16px;
  border: 1px solid rgba(236, 172, 0, 0.35);
  background: #fffaf0;
  color: #5b4637;
}

.order-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.order-note-submit {
  margin: 0;
}

@media (max-width: 860px) {
  .order-grid-request-top,
  .order-grid-request-bottom {
    grid-template-columns: 1fr;
  }

  .order-field-sm {
    max-width: none;
  }

  .order-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Final mobile overrides: header language switcher and course cards */
@media (max-width: 960px) {
  #header .right {
    position: static;
  }

  #langchooser {
    position: absolute !important;
    right: 0;
    top: 48px;
    z-index: 8;
    display: flex;
    gap: 6px;
    margin: 0 !important;
    padding: 0;
  }

  #langchooser li {
    display: inline-block;
    margin: 0;
    padding: 0;
  }

  #langchooser li:after {
    content: "";
  }

  #langchooser a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 28px;
    padding: 0 8px;
    border: 1px solid rgba(76, 105, 171, .25);
    border-radius: 4px;
    background: #f4f7ff;
    color: #4c69ab;
    font-family: 'vag-bold', Arial, sans-serif;
    font-size: .88rem;
    line-height: 1;
    text-decoration: none;
    box-sizing: border-box;
  }

  #langchooser li.selected a {
    background: #4c69ab;
    color: #fff;
    border-color: #4c69ab;
  }
}

@media (max-width: 520px) {
  #mainc > h1 {
    margin-bottom: 18px;
  }

  #mainc > h2 {
    margin-top: 24px;
    margin-bottom: 14px;
    font-size: 1.55rem;
    line-height: 1.1;
    text-transform: uppercase;
  }

  #mainc dl.courses {
    margin: 8px 0 24px;
  }

  #mainc dl.courses > div {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title title"
      "code status";
    gap: 12px 12px;
    align-items: center;
    margin: 0 0 14px;
    padding: 14px 18px 16px;
    border: 1px solid rgba(56, 26, 12, .12);
    border-left: 3px solid #ecac00;
    border-radius: 6px;
    background: #fffefa;
    box-shadow: 0 2px 10px rgba(56, 26, 12, .04);
    transition: none;
  }

  #mainc dl.courses > div + div {
    border-top: 1px solid rgba(56, 26, 12, .12);
  }

  #mainc dl.courses > div:hover {
    background: #fffefa;
    transform: none;
  }

  #mainc dl.courses dt {
    grid-area: code;
    padding: 0;
    font-size: .98rem;
    color: rgba(56, 26, 12, .72);
  }

  #mainc dl.courses dd {
    display: contents;
  }

  #mainc dl.courses dd a {
    grid-area: title;
    display: block;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(56, 26, 12, .10);
    font-size: 1.18rem;
    line-height: 1.22;
  }

  #mainc dl.courses .course-status {
    grid-area: status;
    justify-self: end;
    margin: 0;
    padding: 5px 12px 4px;
    border-radius: 8px;
    font-size: .86rem;
    line-height: 1.1;
  }

  #mainc dl.courses .course-status.has-terms {
    border-color: #8fa7e3;
    background: #f4f7ff;
    color: #4c69ab;
  }

  #mainc dl.courses .course-status.on-request {
    border-color: #aeb4bf;
    background: #f8f9fb;
    color: #5c6472;
  }
}

#mainc dl.courses dd:before {
  content: none;
}

/* Kategorie / podkategorie: radek kurzu po presunu schema dat do JSON-LD. */
.category-subnav {
  margin: 18px 0 28px;
}

.category-subnav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-subnav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.category-subnav li:before {
  content: none !important;
  display: none !important;
}

.category-subnav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 16px 7px;
  border: 1px solid rgba(56, 26, 12, .12);
  background: #fff;
  color: #381a0c;
  font-family: 'vag-bold', Arial, sans-serif;
  font-size: .98rem;
  line-height: 1.15;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.category-subnav a:hover,
.category-subnav a:focus {
  background: rgba(236, 172, 0, .10);
  border-color: rgba(236, 172, 0, .55);
  color: #381a0c;
  text-decoration: none;
  transform: translateY(-1px);
}

#mainc h2 .course-section-link {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

#mainc h2 .course-section-link:hover,
#mainc h2 .course-section-link:focus {
  color: inherit;
  text-decoration: none;
}

#mainc dl.courses {
  margin: 6px 0 22px;
  padding: 0;
}

#mainc dl.courses > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  column-gap: 12px;
  align-items: start;
  padding: 9px 0;
  transition: background-color 160ms ease, transform 160ms ease;
}

#mainc dl.courses > div + div {
  border-top: 1px solid rgba(56, 26, 12, .08);
}

#mainc dl.courses > div:hover {
  background: rgba(236, 172, 0, .07);
  transform: translateY(-1px);
}

#mainc dl.courses dt {
  margin: 0;
  padding-top: 2px;
  white-space: nowrap;
}

#mainc dl.courses dd {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
}

#mainc dl.courses dd a {
  flex: 1 1 auto;
  min-width: 0;
}

#mainc dl.courses .course-status {
  flex: 0 0 auto;
  margin-left: auto;
}

.subcategory-image-carousel {
  position: relative;
  margin: 0 0 34px;
  color: #381a0c;
}

.subcategory-image-carousel__viewport {
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(56, 26, 12, .12);
  background: #f4f3f2;
  box-shadow: 0 2px 14px rgba(56, 26, 12, .06);
}

.subcategory-image-carousel__track {
  display: flex;
  transition: transform 300ms ease;
  will-change: transform;
}

.subcategory-image-carousel__slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
  background: #fff;
}

.subcategory-image-carousel__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  /* max-height: 520px; */
  object-fit: contain;
  background: #f4f3f2;
}

.subcategory-image-carousel__slide figcaption {
  padding: 12px 18px 14px;
  color: #381a0c;
  font-size: .96rem;
  line-height: 1.45;
  background: #fff;
  border-top: 1px solid rgba(56, 26, 12, .10);
}

.subcategory-image-carousel__title {
  display: block;
  margin: 0 0 4px;
  font-weight: 700;
}

.subcategory-image-carousel__btn {
  position: absolute;
  top: calc(50% - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #381a0c;
  background: #ecac00;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(56, 26, 12, .18);
}

.subcategory-image-carousel__btn:hover,
.subcategory-image-carousel__btn:focus {
  background: #fab90f;
}

.subcategory-image-carousel__btn--prev {
  left: 12px;
}

.subcategory-image-carousel__btn--next {
  right: 12px;
}

.subcategory-image-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 0;
}

.subcategory-image-carousel__dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 1px solid #ecac00;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.subcategory-image-carousel__dots button.is-active {
  background: #ecac00;
}

.related-webinars {
  margin: 0 0 34px;
}

.related-webinars p {
  margin: 0 0 18px;
  color: #381a0c;
  line-height: 1.5;
}

@media (max-width: 520px) {
  #mainc dl.courses > div {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title title"
      "code status";
    gap: 12px 12px;
    margin: 0 0 14px;
    padding: 14px 18px 16px;
    border: 1px solid rgba(56, 26, 12, .12);
    border-left: 3px solid #ecac00;
    border-radius: 6px;
    background: #fffefa;
    box-shadow: 0 2px 10px rgba(56, 26, 12, .04);
    transform: none;
  }

  #mainc dl.courses > div:hover {
    background: #fffefa;
    transform: none;
  }

  #mainc dl.courses dt {
    grid-area: code;
    padding: 0;
  }

  #mainc dl.courses dd {
    display: contents;
  }

  #mainc dl.courses dd a {
    grid-area: title;
    display: block;
    padding: 0 0 12px;
    border-bottom: 1px solid rgba(56, 26, 12, .10);
  }

  #mainc dl.courses .course-status {
    grid-area: status;
    justify-self: end;
    margin: 0;
  }

  .subcategory-image-carousel {
    margin-bottom: 28px;
  }

  .subcategory-image-carousel__slide figcaption {
    padding: 10px 12px 12px;
    font-size: .9rem;
  }

  .subcategory-image-carousel__btn {
    top: calc(50% - 20px);
    width: 40px;
    height: 40px;
    font-size: 1.7rem;
  }

  .subcategory-image-carousel__btn--prev {
    left: 8px;
  }

  .subcategory-image-carousel__btn--next {
    right: 8px;
  }
}

.webinar-registrace .containerTermin.containerTermin--webinar {
  width: min(100%, 540px) !important;
  max-width: 540px !important;
  margin: 0 0 8px 0 !important;
  overflow: visible !important;
}

.webinar-registrace .containerTermin--webinar .containerLokalita {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
}

.webinar-registrace .containerTermin--webinar .navigace1 {
  width: 100% !important;
  min-width: 0 !important;
  padding: 24px 30px 28px !important;
  background: #fefefe;
  text-align: center !important;
  overflow: visible !important;
}

.webinar-registrace .containerTermin--webinar .termin,
.webinar-registrace .containerTermin--webinar small,
.webinar-registrace .containerTermin--webinar span {
  color: #381a0c !important;
  white-space: normal !important;
  line-height: 1.2 !important;
}

.webinar-registrace .containerTermin--webinar .termin {
  font-size: 1.7rem !important;
  margin-bottom: 10px !important;
}

.webinar-registrace .containerTermin--webinar small {
  font-size: 1.22rem !important;
  margin-bottom: 10px !important;
}

.webinar-registrace .containerTermin--webinar span {
  font-size: 1.55rem !important;
}

.webinar-registrace .containerTermin--webinar a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  margin-top: 18px !important;
  padding: 12px 24px !important;
  font-size: 1.16rem !important;
  line-height: 1.15 !important;
  box-sizing: border-box !important;
  float: none !important;
}

@media (max-width: 650px) {
  .webinar-registrace .containerTermin.containerTermin--webinar {
    width: 100% !important;
    max-width: none !important;
  }

  .webinar-registrace .containerTermin--webinar .navigace1 {
    padding: 20px 16px 24px !important;
  }

  .webinar-registrace .containerTermin--webinar a {
    display: flex !important;
    width: 100% !important;
    min-width: 0;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

.webinar-registrace .webinar-record {
  --cut: 1.5em;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  width: 100%;
  box-sizing: border-box;
  margin: 10px 0 40px;
  padding: 28px 34px;
  background: #fefefe;
  border: 1px solid rgba(56, 26, 12, .18);
  border-radius: 0;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - var(--cut)),
      calc(100% - var(--cut)) 100%,
      0 100%);
  box-shadow: 0 2px 14px rgba(56, 26, 12, .06);
}

.webinar-registrace .webinar-record__text {
  min-width: 0;
}

.webinar-registrace .webinar-record__text h3 {
  margin: 0 0 12px;
  color: #381a0c;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.35rem;
  line-height: 1.25;
}

.webinar-registrace .webinar-record__text p {
  margin: 0;
  color: #3d3c3f;
  font-size: 1.05rem;
  line-height: 1.55;
}

.webinar-registrace .webinar-record__action {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  padding-left: 34px;
  border-left: 1px solid rgba(56, 26, 12, .14);
}

.webinar-registrace .webinar-record__action a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 230px;
  margin: 0 !important;
  padding: 14px 24px !important;
  box-sizing: border-box;
  color: #381a0c;
  background: #ecac00;
  font-family: 'vag-black', Arial, sans-serif;
  font-size: 1.1rem !important;
  line-height: 1.15;
  text-decoration: none;
}

.webinar-registrace .webinar-record__action svg {
  flex: 0 0 auto;
  fill: currentColor;
}

.webinar-registrace .webinar-record--registration .webinar-record__text {
  display: grid;
  gap: 8px;
  align-self: center;
  justify-items: center;
  text-align: center;
}

.webinar-registrace .webinar-registration__date,
.webinar-registrace .webinar-registration__time,
.webinar-registrace .webinar-registration__price {
  color: #381a0c;
  font-family: 'vag-black', Arial, sans-serif;
  line-height: 1.2;
}

.webinar-registrace .webinar-registration__date {
  font-size: 1.65rem;
}

.webinar-registrace .webinar-registration__time {
  font-size: 1.18rem;
}

.webinar-registrace .webinar-registration__price {
  font-size: 1.5rem;
}

@media (max-width: 650px) {
  .webinar-registrace .webinar-record {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px 18px;
  }

  .webinar-registrace .webinar-record__action {
    min-height: 0;
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid rgba(56, 26, 12, .14);
  }

  .webinar-registrace .webinar-record__action a {
    width: 100%;
    min-width: 0;
  }
}
